@mlightcad/cad-viewer 1.5.1 → 1.5.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/dist/app/app.d.ts.map +1 -1
- package/dist/app/register.d.ts +9 -0
- package/dist/app/register.d.ts.map +1 -1
- package/dist/component/MlCadViewer.vue.d.ts +2 -2
- package/dist/component/MlCadViewer.vue.d.ts.map +1 -1
- package/dist/component/common/MlBaseDialog.vue.d.ts.map +1 -1
- package/dist/component/dialog/MlReplacementDlg.vue.d.ts.map +1 -1
- package/dist/component/layout/MlMainMenu.vue.d.ts.map +1 -1
- package/dist/component/ribbon/MlRibbonCommands.vue.d.ts.map +1 -1
- package/dist/component/statusBar/MlPolarTrackingButton.vue.d.ts +3 -0
- package/dist/component/statusBar/MlPolarTrackingButton.vue.d.ts.map +1 -0
- package/dist/component/statusBar/MlStatusBar.vue.d.ts.map +1 -1
- package/dist/component/statusBar/polarTrackingMenu.d.ts +10 -0
- package/dist/component/statusBar/polarTrackingMenu.d.ts.map +1 -0
- package/dist/composable/useHover.d.ts +2 -0
- package/dist/composable/useHover.d.ts.map +1 -1
- package/dist/composable/useMissedData.d.ts +68 -4
- package/dist/composable/useMissedData.d.ts.map +1 -1
- package/dist/composable/useNotificationCenter.d.ts +107 -35
- package/dist/composable/useNotificationCenter.d.ts.map +1 -1
- package/dist/composable/useSystemVars.d.ts +16 -0
- package/dist/composable/useSystemVars.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +9116 -8262
- package/dist/locale/en/dialog.d.ts +1 -0
- package/dist/locale/en/dialog.d.ts.map +1 -1
- package/dist/locale/en/main.d.ts +13 -0
- package/dist/locale/en/main.d.ts.map +1 -1
- package/dist/locale/zh/dialog.d.ts +1 -0
- package/dist/locale/zh/dialog.d.ts.map +1 -1
- package/dist/locale/zh/main.d.ts +13 -0
- package/dist/locale/zh/main.d.ts.map +1 -1
- package/dist/svg/index.d.ts +2 -0
- package/dist/svg/index.d.ts.map +1 -1
- package/package.json +24 -8
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;AASrC,eAAO,MAAM,mBAAmB,GAAI,UAAS,qBAA0B,SAMtE,CAAA"}
|
package/dist/app/register.d.ts
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
export declare const registerCmds: () => void;
|
|
2
2
|
export declare const registerDialogs: () => void;
|
|
3
3
|
export declare const registerMTextColorPicker: () => void;
|
|
4
|
+
/**
|
|
5
|
+
* Registers lazy plugins that load on first use of their trigger commands.
|
|
6
|
+
*
|
|
7
|
+
* Currently registers the PDF plugin (`cpdf`, `ipdf`), the HTML export
|
|
8
|
+
* plugin (`chtml`), and the SVG export plugin (`csvg`), which are fetched
|
|
9
|
+
* only when one of those commands runs.
|
|
10
|
+
* Safe to call multiple times; registration runs once per application lifetime.
|
|
11
|
+
*/
|
|
12
|
+
export declare const registerLazyPlugins: () => void;
|
|
4
13
|
//# sourceMappingURL=register.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/app/register.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,YAAY,YA+CxB,CAAA;AAGD,eAAO,MAAM,eAAe,YAyB3B,CAAA;AAGD,eAAO,MAAM,wBAAwB,YAOpC,CAAA"}
|
|
1
|
+
{"version":3,"file":"register.d.ts","sourceRoot":"","sources":["../../src/app/register.ts"],"names":[],"mappings":"AA0BA,eAAO,MAAM,YAAY,YA+CxB,CAAA;AAGD,eAAO,MAAM,eAAe,YAyB3B,CAAA;AAGD,eAAO,MAAM,wBAAwB,YAOpC,CAAA;AAID;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,YAiC/B,CAAA"}
|
|
@@ -14,7 +14,7 @@ interface Props {
|
|
|
14
14
|
/**
|
|
15
15
|
* URL of the offline HTML viewer runtime (`viewer-runtime.iife.js`).
|
|
16
16
|
* Required for File menu “Export to HTML”; copy the file from
|
|
17
|
-
* `@mlightcad/cad-html-
|
|
17
|
+
* `@mlightcad/cad-html-plugin` build output into your app assets.
|
|
18
18
|
*/
|
|
19
19
|
htmlViewerRuntimeUrl?: string | URL;
|
|
20
20
|
/**
|
|
@@ -63,8 +63,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
63
63
|
theme: "light" | "dark";
|
|
64
64
|
locale: LocaleProp;
|
|
65
65
|
mode: AcEdOpenMode;
|
|
66
|
-
background: number;
|
|
67
66
|
url: string;
|
|
67
|
+
background: number;
|
|
68
68
|
localFile: File;
|
|
69
69
|
baseUrl: string;
|
|
70
70
|
htmlViewerRuntimeUrl: string | URL;
|
|
@@ -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;AAiyBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsCG;AACH,OAAO,EAKL,YAAY,EAEb,MAAM,8BAA8B,CAAA;AAoBrC,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAA;AA4B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,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlBaseDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlBaseDialog.vue"],"names":[],"mappings":"AA4CA;
|
|
1
|
+
{"version":3,"file":"MlBaseDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlBaseDialog.vue"],"names":[],"mappings":"AA4CA;AAiPA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,KAAK,CAAA;AAkD/D,iBAAS,cAAc;WAyKT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AAuBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;cAUK,MAAM,SAAS,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;cAAtB,MAAM,SAAS,GAAG,IAAI;;;;;;;;;;;;4EAE9C,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAEpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlReplacementDlg.vue.d.ts","sourceRoot":"","sources":["../../../src/component/dialog/MlReplacementDlg.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MlReplacementDlg.vue.d.ts","sourceRoot":"","sources":["../../../src/component/dialog/MlReplacementDlg.vue"],"names":[],"mappings":"AA+KA;;AA++BA,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlMainMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/component/layout/MlMainMenu.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MlMainMenu.vue.d.ts","sourceRoot":"","sources":["../../../src/component/layout/MlMainMenu.vue"],"names":[],"mappings":"AAkCA;;AAiUA,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlRibbonCommands.vue.d.ts","sourceRoot":"","sources":["../../../src/component/ribbon/MlRibbonCommands.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MlRibbonCommands.vue.d.ts","sourceRoot":"","sources":["../../../src/component/ribbon/MlRibbonCommands.vue"],"names":[],"mappings":"AA6lDA,OAAO,6BAA6B,CAAA;AA6CpC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAkEzC,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,UAAU,CAAA;CAC3B;;;;;;mBADiB,UAAU;;AAwkD5B,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,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,3 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
3
|
+
//# sourceMappingURL=MlPolarTrackingButton.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MlPolarTrackingButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlPolarTrackingButton.vue"],"names":[],"mappings":"AAuCA;;AA4YA,wBAKG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlStatusBar.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlStatusBar.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MlStatusBar.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlStatusBar.vue"],"names":[],"mappings":"AAyEA;AAuMA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB,CAAC;;;;;;AAoUF,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,10 @@
|
|
|
1
|
+
/** Common POLARANG values shown in the status bar polar tracking menu. */
|
|
2
|
+
export declare const POLAR_TRACKING_INCREMENTS: readonly [90, 45, 30, 22.5, 18, 15, 10, 5];
|
|
3
|
+
export type PolarTrackingIncrement = (typeof POLAR_TRACKING_INCREMENTS)[number];
|
|
4
|
+
/**
|
|
5
|
+
* Formats the preview label for a polar angle increment (e.g. `45, 90, 135, 180...`).
|
|
6
|
+
* Matches AutoCAD status bar polar tracking menu text.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatPolarIncrementMenuLabel(increment: number): string;
|
|
9
|
+
export declare function isSamePolarIncrement(current: number, increment: number): boolean;
|
|
10
|
+
//# sourceMappingURL=polarTrackingMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polarTrackingMenu.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/polarTrackingMenu.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,eAAO,MAAM,yBAAyB,4CAE5B,CAAA;AAEV,MAAM,MAAM,sBAAsB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAA;AAE/E;;;GAGG;AACH,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAMvE;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,MAAM,GAChB,OAAO,CAET"}
|
|
@@ -2325,6 +2325,7 @@ export declare function useHover(): {
|
|
|
2325
2325
|
pdmode: number;
|
|
2326
2326
|
pdsize: number;
|
|
2327
2327
|
osmode: number;
|
|
2328
|
+
orthomode: number;
|
|
2328
2329
|
read: (data: ArrayBuffer, options: import('@mlightcad/data-model').AcDbOpenDatabaseOptions, fileType?: import('@mlightcad/data-model').AcDbConverterType) => Promise<void>;
|
|
2329
2330
|
openUri: (url: string, options: import('@mlightcad/data-model').AcDbOpenDatabaseOptions) => Promise<void>;
|
|
2330
2331
|
dxfOut: (_fileName?: string, precision?: number, version?: import('@mlightcad/data-model').AcDbDwgVersion | string | number, _saveThumbnailImage?: boolean) => string;
|
|
@@ -4659,6 +4660,7 @@ export declare function useHover(): {
|
|
|
4659
4660
|
pdmode: number;
|
|
4660
4661
|
pdsize: number;
|
|
4661
4662
|
osmode: number;
|
|
4663
|
+
orthomode: number;
|
|
4662
4664
|
read: (data: ArrayBuffer, options: import('@mlightcad/data-model').AcDbOpenDatabaseOptions, fileType?: import('@mlightcad/data-model').AcDbConverterType) => Promise<void>;
|
|
4663
4665
|
openUri: (url: string, options: import('@mlightcad/data-model').AcDbOpenDatabaseOptions) => Promise<void>;
|
|
4664
4666
|
dxfOut: (_fileName?: string, precision?: number, version?: import('@mlightcad/data-model').AcDbDwgVersion | string | number, _saveThumbnailImage?: boolean) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHover.d.ts","sourceRoot":"","sources":["../../src/composable/useHover.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EADt/Q"}
|
|
@@ -1,11 +1,75 @@
|
|
|
1
1
|
import { AcDbObjectId } from '@mlightcad/data-model';
|
|
2
|
+
/**
|
|
3
|
+
* Missed Data Composable
|
|
4
|
+
*
|
|
5
|
+
* Tracks fonts and raster images that the current drawing references but that are
|
|
6
|
+
* missing on disk or unavailable to the renderer. State is shared module-wide so
|
|
7
|
+
* every caller sees the same reactive maps (for example the status-bar warning
|
|
8
|
+
* button and the replacement dialog).
|
|
9
|
+
*
|
|
10
|
+
* Data is synchronized from {@link AcApDocManager.instance.curView.missedData}
|
|
11
|
+
* and persisted font substitutions from
|
|
12
|
+
* {@link AcApSettingManager.instance.fontMapping}. Consumers may mutate the
|
|
13
|
+
* returned maps (choose replacement fonts, attach image files) before applying
|
|
14
|
+
* changes through the replacement dialog.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import { useMissedData } from '@mlightcad/cad-viewer'
|
|
19
|
+
*
|
|
20
|
+
* const { fonts, images } = useMissedData()
|
|
21
|
+
*
|
|
22
|
+
* if (fonts.size > 0) {
|
|
23
|
+
* console.log('Missing fonts:', [...fonts.keys()])
|
|
24
|
+
* }
|
|
25
|
+
*
|
|
26
|
+
* images.forEach((row, fileName) => {
|
|
27
|
+
* console.log(fileName, 'affects', row.ids.size, 'entities')
|
|
28
|
+
* })
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
/**
|
|
32
|
+
* One row in the missed-image replacement table.
|
|
33
|
+
*
|
|
34
|
+
* Multiple drawing entities can reference the same missing image file; they are
|
|
35
|
+
* grouped under a single row keyed by {@link fileName}.
|
|
36
|
+
*/
|
|
2
37
|
export interface ImageMappingData {
|
|
38
|
+
/** File name reported by the viewer for the missing image resource. */
|
|
3
39
|
fileName: string;
|
|
40
|
+
/**
|
|
41
|
+
* User-selected replacement file, set by the replacement dialog before confirm.
|
|
42
|
+
* Undefined until the user picks a file.
|
|
43
|
+
*/
|
|
4
44
|
file?: File;
|
|
45
|
+
/** Entity object IDs whose raster image reference resolves to {@link fileName}. */
|
|
5
46
|
ids: Set<AcDbObjectId>;
|
|
6
47
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Reactive state returned by {@link useMissedData}.
|
|
50
|
+
*/
|
|
51
|
+
export interface UseMissedDataReturn {
|
|
52
|
+
/**
|
|
53
|
+
* Missed font name → replacement font name.
|
|
54
|
+
*
|
|
55
|
+
* Keys come from the active view's missed-font list. Values are initialized from
|
|
56
|
+
* application settings; an empty string means no replacement has been chosen yet.
|
|
57
|
+
*/
|
|
58
|
+
fonts: Map<string, string>;
|
|
59
|
+
/**
|
|
60
|
+
* Missed image file name → grouped mapping row.
|
|
61
|
+
*
|
|
62
|
+
* Keys are image resource names from the drawing. Values aggregate all entities
|
|
63
|
+
* that reference that resource.
|
|
64
|
+
*/
|
|
65
|
+
images: Map<string, ImageMappingData>;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Access shared reactive state for missing fonts and images in the current drawing.
|
|
69
|
+
*
|
|
70
|
+
* Safe to call from multiple components; initialization and event wiring run once.
|
|
71
|
+
*
|
|
72
|
+
* @returns Reactive maps for the replacement dialog and warning affordances.
|
|
73
|
+
*/
|
|
74
|
+
export declare function useMissedData(): UseMissedDataReturn;
|
|
11
75
|
//# sourceMappingURL=useMissedData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMissedData.d.ts","sourceRoot":"","sources":["../../src/composable/useMissedData.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGpD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,GAAG,EAAE,GAAG,CAAC,YAAY,CAAC,CAAA;CACvB;AAED,wBAAgB,aAAa
|
|
1
|
+
{"version":3,"file":"useMissedData.d.ts","sourceRoot":"","sources":["../../src/composable/useMissedData.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGpD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,uEAAuE;IACvE,QAAQ,EAAE,MAAM,CAAA;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,mFAAmF;IACnF,GAAG,EAAE,GAAG,CAAC,YAAY,CAAC,CAAA;CACvB;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;OAKG;IACH,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC1B;;;;;OAKG;IACH,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAA;CACtC;AAqFD;;;;;;GAMG;AACH,wBAAgB,aAAa,IAAI,mBAAmB,CAOnD"}
|
|
@@ -1,7 +1,73 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Identifies the subsystem or feature that produced a notification.
|
|
3
|
+
*
|
|
4
|
+
* Used to group related notifications and remove them selectively (for example,
|
|
5
|
+
* when the underlying issue is resolved) without clearing unrelated entries.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* Currently only `font-missed` is defined. Additional sources may be added as
|
|
9
|
+
* new notification producers are integrated.
|
|
10
|
+
*/
|
|
11
|
+
export type NotificationSource = 'font-missed';
|
|
12
|
+
/**
|
|
13
|
+
* A single notification entry displayed in the notification center panel.
|
|
14
|
+
*
|
|
15
|
+
* Notifications are ordered by insertion time (newest first) and may include
|
|
16
|
+
* optional action buttons and auto-dismiss behavior.
|
|
17
|
+
*/
|
|
18
|
+
export interface Notification {
|
|
19
|
+
/** Unique identifier assigned automatically when the notification is created. */
|
|
20
|
+
id: string;
|
|
21
|
+
/** Visual severity and icon category (`info`, `warning`, `error`, or `success`). */
|
|
22
|
+
type: 'info' | 'warning' | 'error' | 'success';
|
|
23
|
+
/** Short headline shown in the notification header. */
|
|
24
|
+
title: string;
|
|
25
|
+
/** Optional longer description body; omitted for title-only toasts. */
|
|
26
|
+
message?: string;
|
|
27
|
+
/** Time the notification was created. */
|
|
28
|
+
timestamp: Date;
|
|
29
|
+
/** Optional buttons that invoke callbacks when clicked. */
|
|
30
|
+
actions?: NotificationAction[];
|
|
31
|
+
/**
|
|
32
|
+
* When `true`, the notification is not auto-dismissed and must be closed
|
|
33
|
+
* manually or via {@link NotificationCenter.remove}.
|
|
34
|
+
*/
|
|
35
|
+
persistent?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Auto-dismiss delay in milliseconds.
|
|
38
|
+
* Ignored when {@link Notification.persistent | persistent} is `true`.
|
|
39
|
+
*/
|
|
40
|
+
timeout?: number;
|
|
41
|
+
/**
|
|
42
|
+
* Groups related notifications for selective removal
|
|
43
|
+
* (e.g. resolved missed-font alerts).
|
|
44
|
+
*/
|
|
45
|
+
source?: NotificationSource;
|
|
46
|
+
/**
|
|
47
|
+
* Font names referenced by this notification; used by
|
|
48
|
+
* {@link NotificationCenter.removeResolvedFontMissedNotifications} to clear
|
|
49
|
+
* entries when those fonts are no longer missing.
|
|
50
|
+
*/
|
|
51
|
+
fontNames?: string[];
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* A clickable action rendered as a button on a notification.
|
|
55
|
+
*/
|
|
56
|
+
export interface NotificationAction {
|
|
57
|
+
/** Button label text displayed to the user. */
|
|
58
|
+
label: string;
|
|
59
|
+
/** Callback invoked when the user clicks the button. */
|
|
60
|
+
action: () => void;
|
|
61
|
+
/** When `true`, renders the button with primary (emphasized) styling. */
|
|
62
|
+
primary?: boolean;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Composable that exposes the global notification center.
|
|
3
66
|
*
|
|
4
67
|
* Provides a centralized notification system similar to Visual Studio Code.
|
|
68
|
+
* All returned state is reactive; multiple callers share the same underlying list.
|
|
69
|
+
*
|
|
70
|
+
* @returns Notification management functions and reactive state.
|
|
5
71
|
*
|
|
6
72
|
* @example
|
|
7
73
|
* ```typescript
|
|
@@ -28,61 +94,67 @@
|
|
|
28
94
|
* console.log(`You have ${unreadCount.value} notifications`)
|
|
29
95
|
* ```
|
|
30
96
|
*/
|
|
31
|
-
export interface Notification {
|
|
32
|
-
id: string;
|
|
33
|
-
type: 'info' | 'warning' | 'error' | 'success';
|
|
34
|
-
title: string;
|
|
35
|
-
message?: string;
|
|
36
|
-
timestamp: Date;
|
|
37
|
-
actions?: NotificationAction[];
|
|
38
|
-
persistent?: boolean;
|
|
39
|
-
timeout?: number;
|
|
40
|
-
}
|
|
41
|
-
export interface NotificationAction {
|
|
42
|
-
label: string;
|
|
43
|
-
action: () => void;
|
|
44
|
-
primary?: boolean;
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* Hook to access the notification center functionality
|
|
48
|
-
*
|
|
49
|
-
* @returns Object containing notification management functions and reactive state
|
|
50
|
-
*/
|
|
51
97
|
export declare function useNotificationCenter(): {
|
|
52
|
-
/** Reactive list of all notifications */
|
|
98
|
+
/** Reactive list of all notifications, ordered newest first. */
|
|
53
99
|
notifications: import('vue').ComputedRef<{
|
|
54
100
|
id: string;
|
|
55
101
|
type: "info" | "warning" | "error" | "success";
|
|
56
102
|
title: string;
|
|
57
|
-
message?: string
|
|
103
|
+
message?: string
|
|
104
|
+
/** Time the notification was created. */
|
|
105
|
+
| undefined;
|
|
58
106
|
timestamp: Date;
|
|
59
107
|
actions?: {
|
|
60
108
|
label: string;
|
|
61
109
|
action: () => void;
|
|
62
110
|
primary?: boolean | undefined;
|
|
63
111
|
}[] | undefined;
|
|
64
|
-
persistent?: boolean
|
|
65
|
-
|
|
112
|
+
persistent?: boolean
|
|
113
|
+
/**
|
|
114
|
+
* Auto-dismiss delay in milliseconds.
|
|
115
|
+
* Ignored when {@link Notification.persistent | persistent} is `true`.
|
|
116
|
+
*/
|
|
117
|
+
| undefined;
|
|
118
|
+
timeout?: number
|
|
119
|
+
/**
|
|
120
|
+
* Groups related notifications for selective removal
|
|
121
|
+
* (e.g. resolved missed-font alerts).
|
|
122
|
+
*/
|
|
123
|
+
| undefined;
|
|
124
|
+
source?: NotificationSource
|
|
125
|
+
/**
|
|
126
|
+
* Font names referenced by this notification; used by
|
|
127
|
+
* {@link NotificationCenter.removeResolvedFontMissedNotifications} to clear
|
|
128
|
+
* entries when those fonts are no longer missing.
|
|
129
|
+
*/
|
|
130
|
+
| undefined;
|
|
131
|
+
fontNames?: string[] | undefined;
|
|
66
132
|
}[]>;
|
|
67
|
-
/** Reactive count of
|
|
133
|
+
/** Reactive count of active notifications. */
|
|
68
134
|
unreadCount: import('vue').ComputedRef<number>;
|
|
69
|
-
/** Reactive boolean
|
|
135
|
+
/** Reactive boolean; `true` when at least one notification exists. */
|
|
70
136
|
hasNotifications: import('vue').ComputedRef<boolean>;
|
|
71
|
-
/**
|
|
137
|
+
/** Creates and prepends a custom notification. Returns the new notification ID. */
|
|
72
138
|
add: (notification: Omit<Notification, "id" | "timestamp">) => string;
|
|
73
|
-
/**
|
|
139
|
+
/** Removes a notification by ID. No-op if the ID is not found. */
|
|
74
140
|
remove: (id: string) => void;
|
|
75
|
-
/**
|
|
141
|
+
/** Removes all notifications from the center. */
|
|
76
142
|
clear: () => void;
|
|
77
|
-
/**
|
|
143
|
+
/** Alias for {@link NotificationCenter.clear}. */
|
|
78
144
|
clearAll: () => void;
|
|
79
|
-
/**
|
|
145
|
+
/** Removes notifications for which the predicate returns `true`. */
|
|
146
|
+
removeWhere: (predicate: (notification: Notification) => boolean) => void;
|
|
147
|
+
/** Removes all notifications tagged with the given {@link NotificationSource}. */
|
|
148
|
+
removeBySource: (source: NotificationSource) => void;
|
|
149
|
+
/** Removes resolved `font-missed` notifications based on the current missed-font set. */
|
|
150
|
+
removeResolvedFontMissedNotifications: (missedFontNames: Iterable<string>) => void;
|
|
151
|
+
/** Adds an informational notification. Returns the new notification ID. */
|
|
80
152
|
info: (title: string, message?: string, options?: Partial<Notification>) => string;
|
|
81
|
-
/**
|
|
153
|
+
/** Adds a warning notification. Returns the new notification ID. */
|
|
82
154
|
warning: (title: string, message?: string, options?: Partial<Notification>) => string;
|
|
83
|
-
/**
|
|
155
|
+
/** Adds an error notification (persistent by default). Returns the new notification ID. */
|
|
84
156
|
error: (title: string, message?: string, options?: Partial<Notification>) => string;
|
|
85
|
-
/**
|
|
157
|
+
/** Adds a success notification. Returns the new notification ID. */
|
|
86
158
|
success: (title: string, message?: string, options?: Partial<Notification>) => string;
|
|
87
159
|
};
|
|
88
160
|
//# sourceMappingURL=useNotificationCenter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useNotificationCenter.d.ts","sourceRoot":"","sources":["../../src/composable/useNotificationCenter.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"useNotificationCenter.d.ts","sourceRoot":"","sources":["../../src/composable/useNotificationCenter.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAA;AAE9C;;;;;GAKG;AACH,MAAM,WAAW,YAAY;IAC3B,iFAAiF;IACjF,EAAE,EAAE,MAAM,CAAA;IACV,oFAAoF;IACpF,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IAC9C,uDAAuD;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,yCAAyC;IACzC,SAAS,EAAE,IAAI,CAAA;IACf,2DAA2D;IAC3D,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAC9B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AC;IAiHtE,2FAA2F;mBA7FhF,MAAM,YAAY,MAAM,YAAY,OAAO,CAAC,YAAY,CAAC;IA+FpE,oEAAoE;qBA7EvD,MAAM,YAAY,MAAM,YAAY,OAAO,CAAC,YAAY,CAAC;EAgFzE"}
|
|
@@ -3,17 +3,29 @@ import { AcDbColorTheme, AcDbDatabase } from '@mlightcad/data-model';
|
|
|
3
3
|
export declare const COLOR_THEME_SYSVAR_NAME: "COLORTHEME";
|
|
4
4
|
export declare const DYNAMIC_MODE_SYSVAR_NAME: "DYNMODE";
|
|
5
5
|
export declare const LINEWIDTH_DISPLAY_SYSVAR_NAME: "LWDISPLAY";
|
|
6
|
+
export declare const ORTHO_MODE_SYSVAR_NAME: "ORTHOMODE";
|
|
7
|
+
export declare const POLAR_MODE_SYSVAR_NAME: "POLARMODE";
|
|
8
|
+
export declare const POLAR_ANGLE_SYSVAR_NAME: "POLARANG";
|
|
9
|
+
export declare const POLAR_ADD_ANGLE_SYSVAR_NAME: "POLARADDANG";
|
|
6
10
|
export interface SystemVariables {
|
|
7
11
|
pdmode?: number;
|
|
8
12
|
pdsize?: number;
|
|
9
13
|
colortheme?: AcDbColorTheme;
|
|
10
14
|
dynmode?: number;
|
|
11
15
|
lwdisplay?: number;
|
|
16
|
+
orthomode?: number;
|
|
17
|
+
polarmode?: number;
|
|
18
|
+
polarang?: number;
|
|
19
|
+
polaraddang?: string;
|
|
12
20
|
}
|
|
13
21
|
export declare function normalizeColorTheme(value: unknown): AcDbColorTheme;
|
|
14
22
|
export declare function getColorThemeFromDatabase(database: AcDbDatabase): AcDbColorTheme;
|
|
15
23
|
export declare function normalizeDynamicInput(value: unknown): number;
|
|
16
24
|
export declare function normalizeLineWidthDisplay(value: unknown): number;
|
|
25
|
+
export declare function normalizeOrthoMode(value: unknown): number;
|
|
26
|
+
export declare function normalizePolarmode(value: unknown): number;
|
|
27
|
+
export declare function normalizePolarang(value: unknown): number;
|
|
28
|
+
export declare function normalizePolaraddang(value: unknown): string;
|
|
17
29
|
export declare function setColorThemeForDatabase(database: AcDbDatabase, theme: AcDbColorTheme): void;
|
|
18
30
|
export declare function useSystemVars(editor: AcApDocManager): {
|
|
19
31
|
pdmode?: number | undefined;
|
|
@@ -21,5 +33,9 @@ export declare function useSystemVars(editor: AcApDocManager): {
|
|
|
21
33
|
colortheme?: AcDbColorTheme | undefined;
|
|
22
34
|
dynmode?: number | undefined;
|
|
23
35
|
lwdisplay?: number | undefined;
|
|
36
|
+
orthomode?: number | undefined;
|
|
37
|
+
polarmode?: number | undefined;
|
|
38
|
+
polarang?: number | undefined;
|
|
39
|
+
polaraddang?: string | undefined;
|
|
24
40
|
};
|
|
25
41
|
//# sourceMappingURL=useSystemVars.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useSystemVars.d.ts","sourceRoot":"","sources":["../../src/composable/useSystemVars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EACL,KAAK,cAAc,EACnB,YAAY,EAGb,MAAM,uBAAuB,CAAA;AAG9B,eAAO,MAAM,uBAAuB,cAAiC,CAAA;AACrE,eAAO,MAAM,wBAAwB,WAA8B,CAAA;AACnE,eAAO,MAAM,6BAA6B,aAAgC,CAAA;AAE1E,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,cAAc,CAAA;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"useSystemVars.d.ts","sourceRoot":"","sources":["../../src/composable/useSystemVars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAC7D,OAAO,EACL,KAAK,cAAc,EACnB,YAAY,EAGb,MAAM,uBAAuB,CAAA;AAG9B,eAAO,MAAM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