Skip to content

Commit c3c406d

Browse files
committed
feat: update cad-simple-viewer to version 1.4.2
1 parent e6d52d8 commit c3c406d

6 files changed

Lines changed: 47 additions & 43 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ Firstly, add the following dependencies into your `package.json`.
3434
- @mlightcad/cad-simple-viewer
3535
- @mlightcad/data-model
3636

37-
Secondly, add one canvas element in your html.
37+
Secondly, add one contain element for cad-simple-viewer.
3838

3939
```html
4040
<body>
41-
<canvas id="canvas"></canvas>
41+
<div id="cad-container"></div>
4242
</body>
4343
```
4444

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"vue-tsc": "^2.1.6"
2020
},
2121
"dependencies": {
22-
"@mlightcad/cad-simple-viewer": "1.4.0",
23-
"@mlightcad/data-model": "1.5.4"
22+
"@mlightcad/cad-simple-viewer": "1.4.2",
23+
"@mlightcad/data-model": "1.6.1"
2424
}
2525
}

pnpm-lock.yaml

Lines changed: 36 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/i8n/en.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export default {
88
},
99
command: {
1010
ACAD: {
11-
ellipse: 'Creates one ellipse by center, major axis, and minor radius',
11+
ellipse: {
12+
description: 'Creates one ellipse by center, major axis, and minor radius'
13+
}
1214
}
1315
}
1416
}

src/i8n/zh.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ export default {
88
},
99
command: {
1010
ACAD: {
11-
ellipse: '通过中心点、长轴半径和短轴半径创建一个椭圆',
11+
ellipse: {
12+
description: '通过中心点、长轴半径和短轴半径创建一个椭圆'
13+
}
1214
}
1315
}
1416
}

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CadViewerApp {
4242
}
4343

4444
private registerCommands() {
45-
const register = AcEdCommandStack.instance
45+
const register = AcApDocManager.instance.commandManager
4646
register.addCommand(
4747
AcEdCommandStack.SYSTEMT_COMMAND_GROUP_NAME,
4848
'ellipse',

0 commit comments

Comments
 (0)