@mlightcad/cad-viewer 1.4.9 → 1.4.11
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 +15 -4
- package/dist/app/app.d.ts.map +1 -1
- package/dist/app/register.d.ts +1 -0
- package/dist/app/register.d.ts.map +1 -1
- package/dist/component/MlCadViewer.vue.d.ts +1 -1
- package/dist/component/MlCadViewer.vue.d.ts.map +1 -1
- package/dist/component/common/MlBaseDialog.vue.d.ts +6 -6
- package/dist/component/common/MlBaseDrawStyleToolbar.vue.d.ts +5 -5
- package/dist/component/common/MlBaseDrawStyleToolbar.vue.d.ts.map +1 -1
- package/dist/component/common/MlColorPickerDropdown.vue.d.ts +73 -0
- package/dist/component/common/MlColorPickerDropdown.vue.d.ts.map +1 -0
- package/dist/component/common/MlColorPickerTabs.vue.d.ts +41 -0
- package/dist/component/common/MlColorPickerTabs.vue.d.ts.map +1 -0
- package/dist/component/common/MlDialogManager.vue.d.ts +6 -0
- package/dist/component/common/MlDialogManager.vue.d.ts.map +1 -0
- package/dist/component/common/MlFileReader.vue.d.ts.map +1 -1
- package/dist/component/common/createMlColorIndexPickerToolbarFactory.d.ts +7 -0
- package/dist/component/common/createMlColorIndexPickerToolbarFactory.d.ts.map +1 -0
- package/dist/component/common/index.d.ts +3 -0
- package/dist/component/common/index.d.ts.map +1 -1
- package/dist/component/dialog/MlColorPickerDlg.vue.d.ts +1 -1
- package/dist/component/dialog/MlColorPickerDlg.vue.d.ts.map +1 -1
- package/dist/component/layout/MlEntityDrawStyleToolbar.vue.d.ts +3 -3
- package/dist/component/layout/MlEntityDrawStyleToolbar.vue.d.ts.map +1 -1
- package/dist/component/layout/MlToolBars.vue.d.ts.map +1 -1
- package/dist/component/palette/MlEntityProperties.vue.d.ts.map +1 -1
- package/dist/component/palette/MlLayerList.vue.d.ts.map +1 -1
- package/dist/composable/useDark.d.ts +4 -1
- package/dist/composable/useDark.d.ts.map +1 -1
- package/dist/composable/useDialogManager.d.ts +1 -1
- package/dist/composable/useDialogManager.d.ts.map +1 -1
- package/dist/composable/useEntityDrawStyle.d.ts +2 -2
- package/dist/composable/useEntityDrawStyle.d.ts.map +1 -1
- package/dist/composable/useHover.d.ts +68 -12
- package/dist/composable/useHover.d.ts.map +1 -1
- package/dist/composable/useLayers.d.ts +2 -1
- package/dist/composable/useLayers.d.ts.map +1 -1
- package/dist/composable/useSystemVars.d.ts +7 -0
- package/dist/composable/useSystemVars.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +26597 -3526
- package/dist/locale/en/main.d.ts +24 -0
- package/dist/locale/en/main.d.ts.map +1 -1
- package/dist/locale/zh/main.d.ts +24 -0
- package/dist/locale/zh/main.d.ts.map +1 -1
- package/dist/svg/index.d.ts +6 -0
- package/dist/svg/index.d.ts.map +1 -1
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -189,7 +189,7 @@ The `MlCadViewer` component accepts the following props:
|
|
|
189
189
|
| `background` | `number` | `undefined` | Background color as 24-bit hexadecimal RGB (e.g., `0x000000` for black, `0x808080` for gray). |
|
|
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
|
-
| `theme` | `'light' \| 'dark'` | `'dark'` | Initial theme of the CAD viewer.
|
|
192
|
+
| `theme` | `'light' \| 'dark'` | `'dark'` | Initial UI theme of the CAD viewer. On mount, this prop initializes the `COLORTHEME` system variable in the active database (`0 = dark`, `1 = light`). After that, the viewer theme is driven by `COLORTHEME`, so runtime changes from the status bar theme button or direct system-variable updates stay synchronized across `cad-viewer` and `cad-simple-viewer`. |
|
|
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
|
|
|
@@ -298,7 +298,7 @@ The `MlCadViewer` component includes:
|
|
|
298
298
|
- **File Reader** - Local file loading via file dialog and drag-and-drop support
|
|
299
299
|
- **Entity Info** - Detailed information about selected entities
|
|
300
300
|
- **Language Selector** - UI language switching
|
|
301
|
-
- **Theme Support** - Dark/light mode
|
|
301
|
+
- **Theme Support** - Dark/light mode driven by the `COLORTHEME` system variable
|
|
302
302
|
|
|
303
303
|
### Event Handling
|
|
304
304
|
|
|
@@ -340,7 +340,7 @@ Please refer to [readme of cad-simple-viewer](../cad-simple-viewer/README.md) to
|
|
|
340
340
|
|
|
341
341
|
- `useCommands` - Command management
|
|
342
342
|
- `useCurrentPos` - Current position tracking
|
|
343
|
-
- `useDark` -
|
|
343
|
+
- `useDark` - Reactive dark-mode state backed by the `COLORTHEME` system variable
|
|
344
344
|
- `useDialogManager` - Dialog management
|
|
345
345
|
- `useFileTypes` - File type utilities
|
|
346
346
|
- `useLayers` - Layer management
|
|
@@ -349,6 +349,17 @@ Please refer to [readme of cad-simple-viewer](../cad-simple-viewer/README.md) to
|
|
|
349
349
|
- `useSettings` - Settings management
|
|
350
350
|
- `useSystemVars` - System variables
|
|
351
351
|
|
|
352
|
+
### Theme Synchronization
|
|
353
|
+
|
|
354
|
+
The viewer UI theme is synchronized through the `COLORTHEME` system variable managed by `AcDbSysVarManager`.
|
|
355
|
+
|
|
356
|
+
- `COLORTHEME = 0` means dark theme.
|
|
357
|
+
- `COLORTHEME = 1` means light theme.
|
|
358
|
+
- The `theme` prop provides the initial value when `MlCadViewer` mounts.
|
|
359
|
+
- Clicking the status bar theme button updates `COLORTHEME`.
|
|
360
|
+
- Any runtime change to `COLORTHEME` is reflected automatically in viewer UI and MTEXT-related UI.
|
|
361
|
+
- The exported `useDark` composable is still available, but it now wraps `COLORTHEME` instead of maintaining an isolated local dark-mode state.
|
|
362
|
+
|
|
352
363
|
### Locale
|
|
353
364
|
|
|
354
365
|
- `i18n` - Internationalization instance
|
|
@@ -378,4 +389,4 @@ pnpm preview
|
|
|
378
389
|
|
|
379
390
|
## License
|
|
380
391
|
|
|
381
|
-
MIT
|
|
392
|
+
MIT
|
package/dist/app/app.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app/app.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAA;AACpC,OAAO,oBAAoB,CAAA;AAC3B,OAAO,qBAAqB,CAAA;AAE5B,OAAO,EAEL,qBAAqB,EACtB,MAAM,8BAA8B,CAAA;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../src/app/app.ts"],"names":[],"mappings":"AAAA,OAAO,6BAA6B,CAAA;AACpC,OAAO,oBAAoB,CAAA;AAC3B,OAAO,qBAAqB,CAAA;AAE5B,OAAO,EAEL,qBAAqB,EACtB,MAAM,8BAA8B,CAAA;AAQrC,eAAO,MAAM,mBAAmB,GAAI,UAAS,qBAA0B,SAKtE,CAAA"}
|
package/dist/app/register.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/app/register.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/app/register.ts"],"names":[],"mappings":"AAoBA,eAAO,MAAM,YAAY,YAuBxB,CAAA;AAGD,eAAO,MAAM,eAAe,YAe3B,CAAA;AAGD,eAAO,MAAM,wBAAwB,YAOpC,CAAA"}
|
|
@@ -52,10 +52,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
52
52
|
onCreate?: (() => any) | undefined;
|
|
53
53
|
onDestroy?: (() => any) | undefined;
|
|
54
54
|
}>, {
|
|
55
|
+
theme: "light" | "dark";
|
|
55
56
|
locale: LocaleProp;
|
|
56
57
|
mode: AcEdOpenMode;
|
|
57
58
|
url: string;
|
|
58
|
-
theme: "light" | "dark";
|
|
59
59
|
localFile: File;
|
|
60
60
|
background: number;
|
|
61
61
|
baseUrl: string;
|
|
@@ -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;AAukBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAGL,YAAY,EAEb,MAAM,8BAA8B,CAAA;AAiBrC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AA2BtC,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,yEAAyE;IACzE,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,uGAAuG;IACvG,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,kCAAkC;IAClC,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,YAAY,CAAA;CACpB;;;;;;;;;;;;;;;;;;;;;;;;;;WARS,OAAO,GAAG,MAAM;YAhBf,UAAU;UAuBZ,YAAY;SArBb,MAAM;eAEA,IAAI;gBAEH,MAAM;aAET,MAAM;uBAMI,OAAO;;AAihB7B,wBAOG;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,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"}
|
|
@@ -18,7 +18,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
width: {
|
|
21
|
-
type: (
|
|
21
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
22
22
|
default: number;
|
|
23
23
|
};
|
|
24
24
|
icon: {
|
|
@@ -26,10 +26,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
26
26
|
default: null;
|
|
27
27
|
};
|
|
28
28
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
|
-
|
|
29
|
+
open: (...args: any[]) => void;
|
|
30
30
|
ok: (...args: any[]) => void;
|
|
31
31
|
cancel: (...args: any[]) => void;
|
|
32
|
-
|
|
32
|
+
"update:modelValue": (...args: any[]) => void;
|
|
33
33
|
opened: (...args: any[]) => void;
|
|
34
34
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
35
35
|
modelValue: {
|
|
@@ -41,7 +41,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
41
41
|
required: true;
|
|
42
42
|
};
|
|
43
43
|
width: {
|
|
44
|
-
type: (
|
|
44
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
45
45
|
default: number;
|
|
46
46
|
};
|
|
47
47
|
icon: {
|
|
@@ -49,10 +49,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
49
49
|
default: null;
|
|
50
50
|
};
|
|
51
51
|
}>> & Readonly<{
|
|
52
|
-
|
|
52
|
+
onOpen?: ((...args: any[]) => any) | undefined;
|
|
53
53
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
54
54
|
onCancel?: ((...args: any[]) => any) | undefined;
|
|
55
|
-
|
|
55
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
56
56
|
onOpened?: ((...args: any[]) => any) | undefined;
|
|
57
57
|
}>, {
|
|
58
58
|
width: string | number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AcGiLineWeight } from '@mlightcad/data-model';
|
|
1
|
+
import { AcCmColor, AcGiLineWeight } from '@mlightcad/data-model';
|
|
2
2
|
/**
|
|
3
3
|
* =============================================================
|
|
4
4
|
* MlBaseDrawStyleToolbar
|
|
@@ -16,8 +16,8 @@ import { AcGiLineWeight } from '@mlightcad/data-model';
|
|
|
16
16
|
* =============================================================
|
|
17
17
|
*/
|
|
18
18
|
type __VLS_Props = {
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/** Current draw color */
|
|
20
|
+
color?: AcCmColor;
|
|
21
21
|
/** CSS color string for preview */
|
|
22
22
|
cssColor?: string;
|
|
23
23
|
/** Current line weight */
|
|
@@ -35,10 +35,10 @@ declare function __VLS_template(): {
|
|
|
35
35
|
};
|
|
36
36
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
37
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:
|
|
38
|
+
"color-change": (v: AcCmColor | undefined) => void;
|
|
39
39
|
"lineweight-change": (v: AcGiLineWeight) => void;
|
|
40
40
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
|
|
41
|
-
"onColor-change"?: ((v:
|
|
41
|
+
"onColor-change"?: ((v: AcCmColor | undefined) => any) | undefined;
|
|
42
42
|
"onLineweight-change"?: ((v: AcGiLineWeight) => any) | undefined;
|
|
43
43
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
44
44
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlBaseDrawStyleToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlBaseDrawStyleToolbar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MlBaseDrawStyleToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlBaseDrawStyleToolbar.vue"],"names":[],"mappings":"AAoCA;AAiIA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAKtD;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,KAAK,WAAW,GAAG;IACjB,yBAAyB;IACzB,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,0BAA0B;IAC1B,UAAU,EAAE,cAAc,CAAA;IAC1B,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;AA2CF,iBAAS,cAAc;WAiGT,OAAO,IAA6B;;wBAVtB,GAAG;;;;EAe9B;AAgBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;iFAOnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,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,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { AcCmColor } from '@mlightcad/data-model';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: AcCmColor;
|
|
4
|
+
displayColor?: string;
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
teleported?: boolean;
|
|
7
|
+
popperClass?: string;
|
|
8
|
+
closeOnChange?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
reference?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: HTMLDivElement;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
20
|
+
modelValue: undefined;
|
|
21
|
+
displayColor: undefined;
|
|
22
|
+
disabled: boolean;
|
|
23
|
+
teleported: boolean;
|
|
24
|
+
popperClass: undefined;
|
|
25
|
+
closeOnChange: boolean;
|
|
26
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
27
|
+
"update:modelValue": (value: AcCmColor | undefined) => void;
|
|
28
|
+
change: (value: AcCmColor | undefined) => void;
|
|
29
|
+
close: () => void;
|
|
30
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
31
|
+
modelValue: undefined;
|
|
32
|
+
displayColor: undefined;
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
teleported: boolean;
|
|
35
|
+
popperClass: undefined;
|
|
36
|
+
closeOnChange: boolean;
|
|
37
|
+
}>>> & Readonly<{
|
|
38
|
+
"onUpdate:modelValue"?: ((value: AcCmColor | undefined) => any) | undefined;
|
|
39
|
+
onChange?: ((value: AcCmColor | undefined) => any) | undefined;
|
|
40
|
+
onClose?: (() => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
modelValue: AcCmColor;
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
displayColor: string;
|
|
45
|
+
teleported: boolean;
|
|
46
|
+
popperClass: string;
|
|
47
|
+
closeOnChange: boolean;
|
|
48
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
50
|
+
export default _default;
|
|
51
|
+
type __VLS_WithDefaults<P, D> = {
|
|
52
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
53
|
+
default: D[K];
|
|
54
|
+
}> : P[K];
|
|
55
|
+
};
|
|
56
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
57
|
+
type __VLS_TypePropsToOption<T> = {
|
|
58
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
59
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
60
|
+
} : {
|
|
61
|
+
type: import('vue').PropType<T[K]>;
|
|
62
|
+
required: true;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
type __VLS_PrettifyLocal<T> = {
|
|
71
|
+
[K in keyof T]: T[K];
|
|
72
|
+
} & {};
|
|
73
|
+
//# sourceMappingURL=MlColorPickerDropdown.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MlColorPickerDropdown.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlColorPickerDropdown.vue"],"names":[],"mappings":"AAiCA;AA6IA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAMjD,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB,CAAC;AAyDJ,iBAAS,cAAc;WAqFT,OAAO,IAA6B;;2BAVlB,GAAG;;;;EAelC;AAeD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;gBAzKJ,SAAS;cAEX,OAAO;kBADH,MAAM;gBAER,OAAO;iBACN,MAAM;mBACJ,OAAO;4EA2KzB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,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,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,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC;AACF,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { AcCmColor } from '@mlightcad/data-model';
|
|
2
|
+
type TabPosition = 'top' | 'right' | 'bottom' | 'left';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
modelValue?: AcCmColor;
|
|
5
|
+
tabPosition?: TabPosition;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
8
|
+
modelValue: undefined;
|
|
9
|
+
tabPosition: string;
|
|
10
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (value: AcCmColor | undefined) => void;
|
|
12
|
+
change: (value: AcCmColor | undefined) => void;
|
|
13
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_Props>, {
|
|
14
|
+
modelValue: undefined;
|
|
15
|
+
tabPosition: string;
|
|
16
|
+
}>>> & Readonly<{
|
|
17
|
+
"onUpdate:modelValue"?: ((value: AcCmColor | undefined) => any) | undefined;
|
|
18
|
+
onChange?: ((value: AcCmColor | undefined) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
modelValue: AcCmColor;
|
|
21
|
+
tabPosition: TabPosition;
|
|
22
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithDefaults<P, D> = {
|
|
25
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal<P[K] & {
|
|
26
|
+
default: D[K];
|
|
27
|
+
}> : P[K];
|
|
28
|
+
};
|
|
29
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
type __VLS_TypePropsToOption<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: import('vue').PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
type __VLS_PrettifyLocal<T> = {
|
|
39
|
+
[K in keyof T]: T[K];
|
|
40
|
+
} & {};
|
|
41
|
+
//# sourceMappingURL=MlColorPickerTabs.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MlColorPickerTabs.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlColorPickerTabs.vue"],"names":[],"mappings":"AAmBA;AAuHA,OAAO,yDAAyD,CAAA;AAEhE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AASjD,KAAK,WAAW,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;AAEtD,KAAK,WAAW,GAAG;IACf,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,WAAW,CAAC,EAAE,WAAW,CAAA;CAC1B,CAAC;;;;;;;;;;;;;;gBAFa,SAAS;iBACR,WAAW;;AAuM7B,wBAOG;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,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"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {
|
|
2
|
+
toggleDialog: (key: string, visible: boolean) => void;
|
|
3
|
+
registerDialog: (dialog: Omit<import('../../composable').Dialog, "visible">) => void;
|
|
4
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
5
|
+
export default _default;
|
|
6
|
+
//# sourceMappingURL=MlDialogManager.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MlDialogManager.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlDialogManager.vue"],"names":[],"mappings":"AAUA;;;;;AAmFA,wBAMG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlFileReader.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlFileReader.vue"],"names":[],"mappings":"AAUA;;;;;;
|
|
1
|
+
{"version":3,"file":"MlFileReader.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlFileReader.vue"],"names":[],"mappings":"AAUA;;;;;;AAkLA,wBAMG"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { MTextToolbarColorPickerFactory } from '@mlightcad/cad-simple-viewer';
|
|
2
|
+
/**
|
|
3
|
+
* Creates a toolbar color picker factory that mounts a unified (ACI + RGB)
|
|
4
|
+
* picker in the MTEXT toolbar and syncs with {@link MTextInputBox} colors.
|
|
5
|
+
*/
|
|
6
|
+
export declare function createMlColorIndexPickerToolbarFactory(): MTextToolbarColorPickerFactory;
|
|
7
|
+
//# sourceMappingURL=createMlColorIndexPickerToolbarFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createMlColorIndexPickerToolbarFactory.d.ts","sourceRoot":"","sources":["../../../src/component/common/createMlColorIndexPickerToolbarFactory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,8BAA8B,EAAE,MAAM,8BAA8B,CAAA;AAQlF;;;GAGG;AACH,wBAAgB,sCAAsC,IAAI,8BAA8B,CAiDvF"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+
export { createMlColorIndexPickerToolbarFactory } from './createMlColorIndexPickerToolbarFactory';
|
|
1
2
|
export { default as MlBaseDialog } from './MlBaseDialog.vue';
|
|
2
3
|
export { default as MlBaseDrawStyleToolbar } from './MlBaseDrawStyleToolbar.vue';
|
|
3
4
|
export { default as MlBaseInputNumber } from './MlBaseInputNumber.vue';
|
|
4
5
|
export { default as MlColorDropdown } from './MlColorDropdown.vue';
|
|
5
6
|
export { default as MlColorIndexPicker } from './MlColorIndexPicker.vue';
|
|
7
|
+
export { default as MlColorPickerDropdown } from './MlColorPickerDropdown.vue';
|
|
8
|
+
export { default as MlColorPickerTabs } from './MlColorPickerTabs.vue';
|
|
6
9
|
export { default as MlDialogManager } from './MlDialogManager.vue';
|
|
7
10
|
export { default as MlLineWeightSelect } from './MlLineWeightSelect.vue';
|
|
8
11
|
export { default as MlFileReader } from './MlFileReader.vue';
|
|
@@ -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,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"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/common/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sCAAsC,EAAE,MAAM,0CAA0C,CAAA;AACjG,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,qBAAqB,EAAE,MAAM,6BAA6B,CAAA;AAC9E,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,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5D,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -12,9 +12,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
12
12
|
ok: (v: AcCmColor) => void;
|
|
13
13
|
cancel: (v: undefined) => void;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
|
|
15
|
-
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
16
15
|
onOk?: ((v: AcCmColor) => any) | undefined;
|
|
17
16
|
onCancel?: ((v: undefined) => any) | undefined;
|
|
17
|
+
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
18
18
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
19
19
|
export default _default;
|
|
20
20
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlColorPickerDlg.vue.d.ts","sourceRoot":"","sources":["../../../src/component/dialog/MlColorPickerDlg.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MlColorPickerDlg.vue.d.ts","sourceRoot":"","sources":["../../../src/component/dialog/MlColorPickerDlg.vue"],"names":[],"mappings":"AAWA;AAgFA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAKjD;;GAEG;AACH,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,KAAK,EAAE,MAAM,CAAA;CACd,CAAC;;;;;;;;;;AAkIF,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,5 +1,5 @@
|
|
|
1
1
|
import { AcApDocManager } from '@mlightcad/cad-simple-viewer';
|
|
2
|
-
import { AcGiLineWeight } from '@mlightcad/data-model';
|
|
2
|
+
import { AcCmColor, AcGiLineWeight } from '@mlightcad/data-model';
|
|
3
3
|
/**
|
|
4
4
|
* =============================================================
|
|
5
5
|
* EntityDrawStyleToolbar
|
|
@@ -21,12 +21,12 @@ type __VLS_Props = {
|
|
|
21
21
|
};
|
|
22
22
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
23
|
"style-change": (v: {
|
|
24
|
-
|
|
24
|
+
color: AcCmColor;
|
|
25
25
|
lineWeight: AcGiLineWeight;
|
|
26
26
|
}) => void;
|
|
27
27
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
|
|
28
28
|
"onStyle-change"?: ((v: {
|
|
29
|
-
|
|
29
|
+
color: AcCmColor;
|
|
30
30
|
lineWeight: AcGiLineWeight;
|
|
31
31
|
}) => any) | undefined;
|
|
32
32
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlEntityDrawStyleToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/component/layout/MlEntityDrawStyleToolbar.vue"],"names":[],"mappings":"AAWA;
|
|
1
|
+
{"version":3,"file":"MlEntityDrawStyleToolbar.vue.d.ts","sourceRoot":"","sources":["../../../src/component/layout/MlEntityDrawStyleToolbar.vue"],"names":[],"mappings":"AAWA;AAgGA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAMjE;;;;;;;;;;GAUG;AAEH;;;;GAIG;AACH,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,cAAc,GAAG,IAAI,CAAA;CAC9B,CAAC;;;eAYW,SAAS;oBACJ,cAAc;;;;eADnB,SAAS;oBACJ,cAAc;;;AA+GhC,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":";AAwbA,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlEntityProperties.vue.d.ts","sourceRoot":"","sources":["../../../src/component/palette/MlEntityProperties.vue"],"names":[],"mappings":"AAsJA;
|
|
1
|
+
{"version":3,"file":"MlEntityProperties.vue.d.ts","sourceRoot":"","sources":["../../../src/component/palette/MlEntityProperties.vue"],"names":[],"mappings":"AAsJA;AAyfA,OAAO,EAGL,oBAAoB,EAKrB,MAAM,uBAAuB,CAAA;AAY9B,KAAK,WAAW,GAAG;IACjB,eAAe,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAA;IAC/C,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAC;;;mBAOe,MAAM;sBACH,MAAM;kBACV,OAAO;;;;mBAFN,MAAM;sBACH,MAAM;kBACV,OAAO;;;AAwoBvB,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":"MlLayerList.vue.d.ts","sourceRoot":"","sources":["../../../src/component/palette/MlLayerList.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MlLayerList.vue.d.ts","sourceRoot":"","sources":["../../../src/component/palette/MlLayerList.vue"],"names":[],"mappings":"AA+DA;AA+PA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAW7D;;;;;;GAMG;AACH,UAAU,KAAK;IACb,MAAM,EAAE,cAAc,CAAA;CACvB;;AA4VD,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"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { AcDbColorTheme, AcDbDatabase } from '@mlightcad/data-model';
|
|
2
|
+
export declare function ensureColorThemeSync(): void;
|
|
3
|
+
export declare function setColorTheme(theme: AcDbColorTheme, database?: AcDbDatabase | null): void;
|
|
1
4
|
export declare const isDark: import('vue').WritableComputedRef<boolean, boolean>;
|
|
2
|
-
export declare const toggleDark: (
|
|
5
|
+
export declare const toggleDark: () => void;
|
|
3
6
|
//# sourceMappingURL=useDark.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDark.d.ts","sourceRoot":"","sources":["../../src/composable/useDark.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDark.d.ts","sourceRoot":"","sources":["../../src/composable/useDark.ts"],"names":[],"mappings":"AACA,OAAO,EACL,KAAK,cAAc,EACnB,YAAY,EAGb,MAAM,uBAAuB,CAAA;AAuC9B,wBAAgB,oBAAoB,SAqBnC;AAED,wBAAgB,aAAa,CAC3B,KAAK,EAAE,cAAc,EACrB,QAAQ,CAAC,EAAE,YAAY,GAAG,IAAI,QAW/B;AAED,eAAO,MAAM,MAAM,qDAKjB,CAAA;AAEF,eAAO,MAAM,UAAU,YAEtB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDialogManager.d.ts","sourceRoot":"","sources":["../../src/composable/useDialogManager.ts"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"useDialogManager.d.ts","sourceRoot":"","sources":["../../src/composable/useDialogManager.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAA;IAEZ,SAAS,EAAE,GAAG,CAAA;IAEd,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC3B,OAAO,EAAE,OAAO,CAAA;CACjB;AAID,iBAAS,cAAc,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,QAKtD;AAED,iBAAS,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,QAKlD;AAED,iBAAS,eAAe,CAAC,GAAG,EAAE,MAAM;UAxB5B,MAAM;eAED,GAAG;YAEN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;aAClB,OAAO;cAqBjB;AAED,wBAAgB,gBAAgB;;;;;EAO/B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AcApDocManager } from '@mlightcad/cad-simple-viewer';
|
|
2
|
-
import { AcGiLineWeight } from '@mlightcad/data-model';
|
|
2
|
+
import { AcCmColor, AcGiLineWeight } from '@mlightcad/data-model';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
/**
|
|
5
5
|
* =============================================================
|
|
@@ -24,7 +24,7 @@ export declare function useEntityDrawStyle(editorRef: Ref<AcApDocManager | null>
|
|
|
24
24
|
lineWeight: Ref<AcGiLineWeight, AcGiLineWeight>;
|
|
25
25
|
cssColor: import('vue').ComputedRef<string>;
|
|
26
26
|
isShowToolbar: Ref<boolean, boolean>;
|
|
27
|
-
|
|
27
|
+
setColor: (nextColor: AcCmColor) => void;
|
|
28
28
|
setLineWeight: (v: AcGiLineWeight) => void;
|
|
29
29
|
syncFromDatabase: () => void;
|
|
30
30
|
syncToDatabase: () => void;
|
|
@@ -1 +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,
|
|
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,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,EAAY,KAAK,GAAG,EAAc,MAAM,KAAK,CAAA;AAEpD;;;;;;;;;;;;GAYG;AAEH;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,GAAG,CAAC,cAAc,GAAG,IAAI,CAAC;;;;;0BA6FzC,SAAS;uBASZ,cAAc;;;EAoDzC"}
|