@mlightcad/cad-viewer 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -179,7 +179,6 @@ The `MlCadViewer` component accepts the following props:
179
179
  | `locale` | `'en' \| 'zh' \| 'default'` | `'default'` | Sets the language for the component interface. Use `'en'` for English, `'zh'` for Chinese, or `'default'` to use the browser's default language. |
180
180
  | `url` | `string` | `undefined` | Optional URL to automatically load a CAD file when the component mounts. The file will be fetched and opened automatically. **Note**: If not provided, users can still load local files using the main menu "Open" option. |
181
181
  | `localFile` | `File` | `undefined` | Optional local File object to automatically load a CAD file when the component mounts. The file will be read and opened automatically. **Note**: This takes precedence over the `url` prop if both are provided. |
182
- | `wait` | `number` | `10` | When set to a positive number, the component will wait for DWG converter ready to use for the specified number of seconds before initializing. This is useful when you need to ensure DWG file support is available before the component becomes interactive. Set to `0` or negative value to disable waiting. |
183
182
  | `background` | `number` | `undefined` | Background color as 24-bit hexadecimal RGB (e.g., `0x000000` for black, `0x808080` for gray). |
184
183
 
185
184
  ### UI Settings
@@ -203,7 +202,6 @@ The `MlCadViewer` reads its UI visibility from the global `AcApSettingManager` (
203
202
  <!-- <MlCadViewer
204
203
  locale="en"
205
204
  :url="'https://example.com/drawing.dwg'"
206
- :wait="10"
207
205
  /> -->
208
206
 
209
207
  <!-- Local file loading - automatically loads from File object -->
@@ -6,8 +6,6 @@ interface Props {
6
6
  url?: string;
7
7
  /** Optional local File object to automatically load a CAD file on component mount */
8
8
  localFile?: File;
9
- /** Timeout in seconds to wait for DWG converter (libredwg.js) to load before proceeding */
10
- wait?: number;
11
9
  /** Background color as 24-bit hexadecimal RGB number (e.g., 0x000000) */
12
10
  background?: number;
13
11
  }
@@ -15,20 +13,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
15
13
  locale: string;
16
14
  url: undefined;
17
15
  localFile: undefined;
18
- wait: number;
19
16
  background: undefined;
20
17
  }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
21
18
  locale: string;
22
19
  url: undefined;
23
20
  localFile: undefined;
24
- wait: number;
25
21
  background: undefined;
26
22
  }>>> & Readonly<{}>, {
27
23
  locale: LocaleProp;
28
24
  url: string;
29
25
  background: number;
30
26
  localFile: File;
31
- wait: number;
32
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
33
28
  export default _default;
34
29
  type __VLS_WithDefaults<P, D> = {
@@ -1 +1 @@
1
- {"version":3,"file":"MlCadViewer.vue.d.ts","sourceRoot":"","sources":["../../src/component/MlCadViewer.vue"],"names":[],"mappings":"AAyCA;AAudA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AAatC,UAAU,KAAK;IACb,0EAA0E;IAC1E,MAAM,CAAC,EAAE,UAAU,CAAA;IACnB,uEAAuE;IACvE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,qFAAqF;IACrF,SAAS,CAAC,EAAE,IAAI,CAAA;IAChB,2FAA2F;IAC3F,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;;;;;;;;;;;;;;YATU,UAAU;SAEb,MAAM;gBAMC,MAAM;eAJP,IAAI;UAET,MAAM;;AAuYf,wBAMG;AAEH,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAC9B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAC7C,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GAC5C,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AACF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AAC,CAAC,GAAG;QAAE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KAAC,CAAC,GAC5C,CAAC,CAAC,CAAC,CAAC;CACP,CAAC;AACF,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,uBAAuB,CAAC,CAAC,IAAI;KAChC,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GACpC;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAC9D;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CACzD,CAAC;AACF,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
package/dist/index.js CHANGED
@@ -2949,7 +2949,6 @@ const _l = /* @__PURE__ */ L({
2949
2949
  locale: { default: "default" },
2950
2950
  url: { default: void 0 },
2951
2951
  localFile: { default: void 0 },
2952
- wait: { default: 10 },
2953
2952
  background: { default: void 0 }
2954
2953
  },
2955
2954
  setup(t) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mlightcad/cad-viewer",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "repository": {
@@ -42,8 +42,8 @@
42
42
  "vite-svg-loader": "^5.1.0",
43
43
  "vue-eslint-parser": "^9.4.3",
44
44
  "vue-tsc": "^2.1.6",
45
- "@mlightcad/svg-renderer": "0.0.16",
46
- "@mlightcad/three-renderer": "1.0.17"
45
+ "@mlightcad/svg-renderer": "0.0.17",
46
+ "@mlightcad/three-renderer": "1.0.19"
47
47
  },
48
48
  "dependencies": {
49
49
  "@element-plus/icons-vue": "^2.3.1",
@@ -51,12 +51,12 @@
51
51
  "three": "^0.172.0"
52
52
  },
53
53
  "peerDependencies": {
54
- "@mlightcad/data-model": "1.2.8",
54
+ "@mlightcad/data-model": "1.2.12",
55
55
  "@vueuse/core": "^11.1.0",
56
56
  "element-plus": "^2.9.1",
57
57
  "vue": "^3.4.21",
58
58
  "vue-i18n": "^10.0.1",
59
- "@mlightcad/cad-simple-viewer": "1.1.0"
59
+ "@mlightcad/cad-simple-viewer": "1.1.2"
60
60
  },
61
61
  "scripts": {
62
62
  "analyze": "vite build --mode analyze",