@mlightcad/cad-viewer 1.4.7 → 1.4.9
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 +1 -1
- package/dist/command/AcApLayerStateCmd.d.ts +1 -1
- package/dist/command/AcApLayerStateCmd.d.ts.map +1 -1
- package/dist/command/AcApMissedDataCmd.d.ts +1 -1
- package/dist/command/AcApMissedDataCmd.d.ts.map +1 -1
- package/dist/command/AcApPointStyleCmd.d.ts +1 -1
- package/dist/command/AcApPointStyleCmd.d.ts.map +1 -1
- package/dist/component/MlCadViewer.vue.d.ts +11 -0
- package/dist/component/MlCadViewer.vue.d.ts.map +1 -1
- package/dist/component/common/MlBaseDrawStyleToolbar.vue.d.ts +60 -0
- package/dist/component/common/MlBaseDrawStyleToolbar.vue.d.ts.map +1 -0
- package/dist/component/common/MlColorIndexPicker.vue.d.ts.map +1 -1
- package/dist/component/common/MlLineWeightSelect.vue.d.ts +22 -0
- package/dist/component/common/MlLineWeightSelect.vue.d.ts.map +1 -0
- package/dist/component/common/index.d.ts +2 -0
- package/dist/component/common/index.d.ts.map +1 -1
- package/dist/component/layout/MlEntityDrawStyleToolbar.vue.d.ts +43 -0
- package/dist/component/layout/MlEntityDrawStyleToolbar.vue.d.ts.map +1 -0
- package/dist/component/layout/MlLayerDrawStyleToolbar.vue.d.ts +36 -0
- package/dist/component/layout/MlLayerDrawStyleToolbar.vue.d.ts.map +1 -0
- package/dist/component/layout/MlToolBars.vue.d.ts.map +1 -1
- package/dist/component/layout/index.d.ts +2 -0
- package/dist/component/layout/index.d.ts.map +1 -1
- package/dist/component/palette/MlLayerList.vue.d.ts.map +1 -1
- package/dist/composable/index.d.ts +2 -0
- package/dist/composable/index.d.ts.map +1 -1
- package/dist/composable/useDocOpenMode.d.ts +3 -0
- package/dist/composable/useDocOpenMode.d.ts.map +1 -0
- package/dist/composable/useEntityDrawStyle.d.ts +32 -0
- package/dist/composable/useEntityDrawStyle.d.ts.map +1 -0
- package/dist/composable/useHover.d.ts +554 -14
- package/dist/composable/useHover.d.ts.map +1 -1
- package/dist/composable/useLayers.d.ts +8 -1
- package/dist/composable/useLayers.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +2912 -2123
- package/dist/locale/en/main.d.ts +40 -4
- package/dist/locale/en/main.d.ts.map +1 -1
- package/dist/locale/zh/main.d.ts +40 -4
- package/dist/locale/zh/main.d.ts.map +1 -1
- package/dist/svg/index.d.ts +8 -0
- package/dist/svg/index.d.ts.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -190,7 +190,7 @@ The `MlCadViewer` component accepts the following props:
|
|
|
190
190
|
| `baseUrl` | `string` | `undefined` | Base URL for loading fonts, templates, and example files. This URL is used by the CAD viewer to load resources like fonts and drawing templates. **Note**: If not provided, uses the default URL. |
|
|
191
191
|
| `useMainThreadDraw` | `boolean` | `false` | Optional flag whether to use main thread or webwork to render drawing. The true value means using main thread to render drawing. This approach take less memory and take longer time to show rendering results. The false value means using web worker to render drawing. This approach take more memory and take shorter time to show rendering results. |
|
|
192
192
|
| `theme` | `'light' \| 'dark'` | `'dark'` | Initial theme of the CAD viewer. `'light'` applies the light theme (`ml-theme-light` class) and `'dark'` applies the dark theme (`ml-theme-dark` class). The theme can also be toggled at runtime using the status bar theme button. |
|
|
193
|
-
|
|
193
|
+
| `mode` | `AcEdOpenMode` | `'AcEdOpenMode.Write'` | Access mode for opening CAD files. `'AcEdOpenMode.Read'` means read-only access. `'AcEdOpenMode.Review'` means review access, compatible with read. `'AcEdOpenMode.Write'` means full read/write access, compatible with review and read. |
|
|
194
194
|
### UI Settings
|
|
195
195
|
|
|
196
196
|
The `MlCadViewer` reads its UI visibility from the global `AcApSettingManager` (provided by `@mlightcad/cad-simple-viewer`). Configure these flags anywhere before rendering the viewer to customize the UI.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AcApContext, AcEdCommand } from '@mlightcad/cad-simple-viewer';
|
|
2
2
|
export declare class AcApLayerStateCmd extends AcEdCommand {
|
|
3
|
-
execute(_context: AcApContext): void
|
|
3
|
+
execute(_context: AcApContext): Promise<void>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=AcApLayerStateCmd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApLayerStateCmd.d.ts","sourceRoot":"","sources":["../../src/command/AcApLayerStateCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAIvE,qBAAa,iBAAkB,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"AcApLayerStateCmd.d.ts","sourceRoot":"","sources":["../../src/command/AcApLayerStateCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAIvE,qBAAa,iBAAkB,SAAQ,WAAW;IAC1C,OAAO,CAAC,QAAQ,EAAE,WAAW;CAGpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AcApContext, AcEdCommand } from '@mlightcad/cad-simple-viewer';
|
|
2
2
|
export declare class AcApMissedDataCmd extends AcEdCommand {
|
|
3
|
-
execute(_context: AcApContext): void
|
|
3
|
+
execute(_context: AcApContext): Promise<void>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=AcApMissedDataCmd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApMissedDataCmd.d.ts","sourceRoot":"","sources":["../../src/command/AcApMissedDataCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAIvE,qBAAa,iBAAkB,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"AcApMissedDataCmd.d.ts","sourceRoot":"","sources":["../../src/command/AcApMissedDataCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAIvE,qBAAa,iBAAkB,SAAQ,WAAW;IAC1C,OAAO,CAAC,QAAQ,EAAE,WAAW;CAIpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AcApContext, AcEdCommand } from '@mlightcad/cad-simple-viewer';
|
|
2
2
|
export declare class AcApPointStyleCmd extends AcEdCommand {
|
|
3
|
-
execute(_context: AcApContext): void
|
|
3
|
+
execute(_context: AcApContext): Promise<void>;
|
|
4
4
|
}
|
|
5
5
|
//# sourceMappingURL=AcApPointStyleCmd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AcApPointStyleCmd.d.ts","sourceRoot":"","sources":["../../src/command/AcApPointStyleCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAIvE,qBAAa,iBAAkB,SAAQ,WAAW;
|
|
1
|
+
{"version":3,"file":"AcApPointStyleCmd.d.ts","sourceRoot":"","sources":["../../src/command/AcApPointStyleCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAIvE,qBAAa,iBAAkB,SAAQ,WAAW;IAC1C,OAAO,CAAC,QAAQ,EAAE,WAAW;CAIpC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AcEdOpenMode } from '@mlightcad/cad-simple-viewer';
|
|
1
2
|
import { LocaleProp } from '../locale';
|
|
2
3
|
interface Props {
|
|
3
4
|
/** Language locale for internationalization ('en', 'zh', or 'default') */
|
|
@@ -18,6 +19,13 @@ interface Props {
|
|
|
18
19
|
useMainThreadDraw?: boolean;
|
|
19
20
|
/** Initial theme of the viewer */
|
|
20
21
|
theme?: 'light' | 'dark';
|
|
22
|
+
/**
|
|
23
|
+
* Access mode for opening CAD files.
|
|
24
|
+
* - Read (0): Read-only access
|
|
25
|
+
* - Review (4): Review access, compatible with Read
|
|
26
|
+
* - Write (8): Full read/write access, compatible with Review and Read
|
|
27
|
+
*/
|
|
28
|
+
mode?: AcEdOpenMode;
|
|
21
29
|
}
|
|
22
30
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
23
31
|
locale: string;
|
|
@@ -27,6 +35,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
35
|
baseUrl: undefined;
|
|
28
36
|
useMainThreadDraw: boolean;
|
|
29
37
|
theme: string;
|
|
38
|
+
mode: AcEdOpenMode;
|
|
30
39
|
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
40
|
create: () => void;
|
|
32
41
|
destroy: () => void;
|
|
@@ -38,11 +47,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
38
47
|
baseUrl: undefined;
|
|
39
48
|
useMainThreadDraw: boolean;
|
|
40
49
|
theme: string;
|
|
50
|
+
mode: AcEdOpenMode;
|
|
41
51
|
}>>> & Readonly<{
|
|
42
52
|
onCreate?: (() => any) | undefined;
|
|
43
53
|
onDestroy?: (() => any) | undefined;
|
|
44
54
|
}>, {
|
|
45
55
|
locale: LocaleProp;
|
|
56
|
+
mode: AcEdOpenMode;
|
|
46
57
|
url: string;
|
|
47
58
|
theme: "light" | "dark";
|
|
48
59
|
localFile: File;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlCadViewer.vue.d.ts","sourceRoot":"","sources":["../../src/component/MlCadViewer.vue"],"names":[],"mappings":"AA0CA;
|
|
1
|
+
{"version":3,"file":"MlCadViewer.vue.d.ts","sourceRoot":"","sources":["../../src/component/MlCadViewer.vue"],"names":[],"mappings":"AA0CA;AAwkBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AAEH,OAAO,EAGL,YAAY,EAEb,MAAM,8BAA8B,CA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,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"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { AcGiLineWeight } from '@mlightcad/data-model';
|
|
2
|
+
/**
|
|
3
|
+
* =============================================================
|
|
4
|
+
* MlBaseDrawStyleToolbar
|
|
5
|
+
* =============================================================
|
|
6
|
+
*
|
|
7
|
+
* Stateless, UI-only draw style toolbar.
|
|
8
|
+
*
|
|
9
|
+
* - No knowledge of layers or entities
|
|
10
|
+
* - Emits pure style change events
|
|
11
|
+
* - Can be composed by layer/entity toolbars
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* =============================================================
|
|
15
|
+
* Props
|
|
16
|
+
* =============================================================
|
|
17
|
+
*/
|
|
18
|
+
type __VLS_Props = {
|
|
19
|
+
/** Color index (AutoCAD style) */
|
|
20
|
+
colorIndex: number;
|
|
21
|
+
/** CSS color string for preview */
|
|
22
|
+
cssColor?: string;
|
|
23
|
+
/** Current line weight */
|
|
24
|
+
lineWeight: AcGiLineWeight;
|
|
25
|
+
/** Disable entire toolbar */
|
|
26
|
+
disabled?: boolean;
|
|
27
|
+
};
|
|
28
|
+
declare function __VLS_template(): {
|
|
29
|
+
attrs: Partial<{}>;
|
|
30
|
+
slots: {
|
|
31
|
+
prefix?(_: {}): any;
|
|
32
|
+
};
|
|
33
|
+
refs: {};
|
|
34
|
+
rootEl: any;
|
|
35
|
+
};
|
|
36
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
38
|
+
"color-change": (v: number) => void;
|
|
39
|
+
"lineweight-change": (v: AcGiLineWeight) => void;
|
|
40
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
|
|
41
|
+
"onColor-change"?: ((v: number) => any) | undefined;
|
|
42
|
+
"onLineweight-change"?: ((v: AcGiLineWeight) => any) | undefined;
|
|
43
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
44
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
47
|
+
type __VLS_TypePropsToOption<T> = {
|
|
48
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
49
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
50
|
+
} : {
|
|
51
|
+
type: import('vue').PropType<T[K]>;
|
|
52
|
+
required: true;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=MlBaseDrawStyleToolbar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MlBaseDrawStyleToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlBaseDrawStyleToolbar.vue"],"names":[],"mappings":"AA0CA;AAoIA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAKtD;;;;;;;;;;GAUG;AAEH;;;;GAIG;AAC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|
1
|
+
{"version":3,"file":"MlColorIndexPicker.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlColorIndexPicker.vue"],"names":[],"mappings":"AA+EA;;;;;;;;;;;;;;;;;;AA0jBA,wBASG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AcGiLineWeight } from '@mlightcad/data-model';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue: AcGiLineWeight;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
6
|
+
"update:modelValue": (value: AcGiLineWeight) => void;
|
|
7
|
+
change: (value: AcGiLineWeight) => void;
|
|
8
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: AcGiLineWeight) => any) | undefined;
|
|
10
|
+
onChange?: ((value: AcGiLineWeight) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
+
type __VLS_TypePropsToOption<T> = {
|
|
15
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
+
} : {
|
|
18
|
+
type: import('vue').PropType<T[K]>;
|
|
19
|
+
required: true;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=MlLineWeightSelect.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MlLineWeightSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlLineWeightSelect.vue"],"names":[],"mappings":"AAwCA;AAsJA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAStD,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,cAAc,CAAA;CAC3B,CAAC;;;;;;;;AA4NF,wBAOG;AAEH,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"}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export { default as MlBaseDialog } from './MlBaseDialog.vue';
|
|
2
|
+
export { default as MlBaseDrawStyleToolbar } from './MlBaseDrawStyleToolbar.vue';
|
|
2
3
|
export { default as MlBaseInputNumber } from './MlBaseInputNumber.vue';
|
|
3
4
|
export { default as MlColorDropdown } from './MlColorDropdown.vue';
|
|
4
5
|
export { default as MlColorIndexPicker } from './MlColorIndexPicker.vue';
|
|
5
6
|
export { default as MlDialogManager } from './MlDialogManager.vue';
|
|
7
|
+
export { default as MlLineWeightSelect } from './MlLineWeightSelect.vue';
|
|
6
8
|
export { default as MlFileReader } from './MlFileReader.vue';
|
|
7
9
|
export { default as MlToggleButton } from './MlToggleButton.vue';
|
|
8
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAChF,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { AcApDocManager } from '@mlightcad/cad-simple-viewer';
|
|
2
|
+
import { AcGiLineWeight } from '@mlightcad/data-model';
|
|
3
|
+
/**
|
|
4
|
+
* =============================================================
|
|
5
|
+
* EntityDrawStyleToolbar
|
|
6
|
+
* =============================================================
|
|
7
|
+
*
|
|
8
|
+
* Draw style toolbar for newly created entities.
|
|
9
|
+
*
|
|
10
|
+
* - Does NOT mutate layers
|
|
11
|
+
* - Maintains local draw style state
|
|
12
|
+
* - Uses current layer only as context / label
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* =============================================================
|
|
16
|
+
* Props
|
|
17
|
+
* =============================================================
|
|
18
|
+
*/
|
|
19
|
+
type __VLS_Props = {
|
|
20
|
+
editor: AcApDocManager | null;
|
|
21
|
+
};
|
|
22
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
|
+
"style-change": (v: {
|
|
24
|
+
colorIndex: number;
|
|
25
|
+
lineWeight: AcGiLineWeight;
|
|
26
|
+
}) => void;
|
|
27
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
|
|
28
|
+
"onStyle-change"?: ((v: {
|
|
29
|
+
colorIndex: number;
|
|
30
|
+
lineWeight: AcGiLineWeight;
|
|
31
|
+
}) => any) | undefined;
|
|
32
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
35
|
+
type __VLS_TypePropsToOption<T> = {
|
|
36
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
37
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
38
|
+
} : {
|
|
39
|
+
type: import('vue').PropType<T[K]>;
|
|
40
|
+
required: true;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=MlEntityDrawStyleToolbar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MlEntityDrawStyleToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/component/layout/MlEntityDrawStyleToolbar.vue"],"names":[],"mappings":"AAWA;AAuGA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAa,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAMjE;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,cAAc,GAAG,IAAI,CAAA;CAC9B,CAAC;;;oBAYgB,MAAM;oBACN,cAAc;;;;oBADd,MAAM;oBACN,cAAc;;;AAsHhC,wBAOG;AAEH,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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { AcApDocManager } from '@mlightcad/cad-simple-viewer';
|
|
2
|
+
/**
|
|
3
|
+
* =============================================================
|
|
4
|
+
* MlLayerDrawStyleToolbar
|
|
5
|
+
* =============================================================
|
|
6
|
+
*
|
|
7
|
+
* Layer-driven draw style toolbar.
|
|
8
|
+
*
|
|
9
|
+
* - Layer is the source of truth
|
|
10
|
+
* - Color & line width edits update the CURRENT layer
|
|
11
|
+
* - Actual layer mutation is delegated to external logic
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* =============================================================
|
|
15
|
+
* Props
|
|
16
|
+
* =============================================================
|
|
17
|
+
*/
|
|
18
|
+
type __VLS_Props = {
|
|
19
|
+
editor: AcApDocManager;
|
|
20
|
+
};
|
|
21
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"layer-change": (v: string) => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
|
|
24
|
+
"onLayer-change"?: ((v: string) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
28
|
+
type __VLS_TypePropsToOption<T> = {
|
|
29
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
30
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
31
|
+
} : {
|
|
32
|
+
type: import('vue').PropType<T[K]>;
|
|
33
|
+
required: true;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=MlLayerDrawStyleToolbar.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MlLayerDrawStyleToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/component/layout/MlLayerDrawStyleToolbar.vue"],"names":[],"mappings":"AAkDA;AAyLA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAO7D;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,cAAc,CAAA;CACvB,CAAC;;;;;;AA8PF,wBAOG;AAEH,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlToolBars.vue.d.ts","sourceRoot":"","sources":["../../../src/component/layout/MlToolBars.vue"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"MlToolBars.vue.d.ts","sourceRoot":"","sources":["../../../src/component/layout/MlToolBars.vue"],"names":[],"mappings":";AAoWA,wBAKG"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
+
export { default as MlEntityDrawStyleToolbar } from './MlEntityDrawStyleToolbar.vue';
|
|
1
2
|
export { default as MlEntityInfo } from './MlEntityInfo.vue';
|
|
2
3
|
export { default as MlLanguageSelector } from './MlLanguageSelector.vue';
|
|
4
|
+
export { default as MlLayerDrawStyleToolbar } from './MlLayerDrawStyleToolbar.vue';
|
|
3
5
|
export { default as MlMainMenu } from './MlMainMenu.vue';
|
|
4
6
|
export { default as MlToolBars } from './MlToolBars.vue';
|
|
5
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/layout/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,gCAAgC,CAAA;AACpF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,+BAA+B,CAAA;AAClF,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,kBAAkB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlLayerList.vue.d.ts","sourceRoot":"","sources":["../../../src/component/palette/MlLayerList.vue"],"names":[],"mappings":"AAqDA;
|
|
1
|
+
{"version":3,"file":"MlLayerList.vue.d.ts","sourceRoot":"","sources":["../../../src/component/palette/MlLayerList.vue"],"names":[],"mappings":"AAqDA;AAoNA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAW7D;;;;;;GAMG;AACH,UAAU,KAAK;IACb,MAAM,EAAE,cAAc,CAAA;CACvB;;AAkSD,wBAMG;AAEH,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"}
|
|
@@ -2,6 +2,8 @@ export * from './useCommands';
|
|
|
2
2
|
export * from './useCurrentPos';
|
|
3
3
|
export * from './useDark';
|
|
4
4
|
export * from './useDialogManager';
|
|
5
|
+
export * from './useDocOpenMode';
|
|
6
|
+
export * from './useEntityDrawStyle';
|
|
5
7
|
export * from './useFileTypes';
|
|
6
8
|
export * from './useHover';
|
|
7
9
|
export * from './useLayers';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composable/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composable/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useDocOpenMode.d.ts","sourceRoot":"","sources":["../../src/composable/useDocOpenMode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkB,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAG3E,wBAAgB,cAAc,kDAQ7B"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AcApDocManager } from '@mlightcad/cad-simple-viewer';
|
|
2
|
+
import { AcGiLineWeight } from '@mlightcad/data-model';
|
|
3
|
+
import { Ref } from 'vue';
|
|
4
|
+
/**
|
|
5
|
+
* =============================================================
|
|
6
|
+
* useEntityDrawStyle
|
|
7
|
+
* =============================================================
|
|
8
|
+
*
|
|
9
|
+
* Composable for managing draw style of newly created entities.
|
|
10
|
+
*
|
|
11
|
+
* - Source of truth: editor.curDocument.database
|
|
12
|
+
* - Does NOT mutate layers
|
|
13
|
+
* - Explicit setters for color & line weight
|
|
14
|
+
* - Safe with async editor initialization
|
|
15
|
+
* - Reactive & UI-friendly
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* =============================================================
|
|
19
|
+
* Composable
|
|
20
|
+
* =============================================================
|
|
21
|
+
*/
|
|
22
|
+
export declare function useEntityDrawStyle(editorRef: Ref<AcApDocManager | null>): {
|
|
23
|
+
color: Ref<string, string>;
|
|
24
|
+
lineWeight: Ref<AcGiLineWeight, AcGiLineWeight>;
|
|
25
|
+
cssColor: import('vue').ComputedRef<string>;
|
|
26
|
+
isShowToolbar: Ref<boolean, boolean>;
|
|
27
|
+
setColorIndex: (v: number) => void;
|
|
28
|
+
setLineWeight: (v: AcGiLineWeight) => void;
|
|
29
|
+
syncFromDatabase: () => void;
|
|
30
|
+
syncToDatabase: () => void;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=useEntityDrawStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useEntityDrawStyle.d.ts","sourceRoot":"","sources":["../../src/composable/useEntityDrawStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,cAAc,EAEf,MAAM,8BAA8B,CAAA;AACrC,OAAO,EAGL,cAAc,EACf,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAAY,KAAK,GAAG,EAAc,MAAM,KAAK,CAAA;AAEpD;;;;;;;;;;;;GAYG;AAEH;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC;;;;;uBA2F5C,MAAM;uBAUN,cAAc;;;EAoDzC"}
|