@mlightcad/cad-viewer 1.5.0 → 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.
Files changed (87) hide show
  1. package/dist/app/app.d.ts.map +1 -1
  2. package/dist/app/register.d.ts +9 -0
  3. package/dist/app/register.d.ts.map +1 -1
  4. package/dist/command/AcApDrawingUnitsCmd.d.ts +5 -0
  5. package/dist/command/AcApDrawingUnitsCmd.d.ts.map +1 -0
  6. package/dist/command/index.d.ts +1 -0
  7. package/dist/command/index.d.ts.map +1 -1
  8. package/dist/component/MlCadViewer.vue.d.ts +10 -1
  9. package/dist/component/MlCadViewer.vue.d.ts.map +1 -1
  10. package/dist/component/common/MlBaseDialog.vue.d.ts.map +1 -1
  11. package/dist/component/common/MlColorDropdown.vue.d.ts.map +1 -1
  12. package/dist/component/common/MlFieldsetGroup.vue.d.ts +50 -0
  13. package/dist/component/common/MlFieldsetGroup.vue.d.ts.map +1 -0
  14. package/dist/component/common/MlLayerSelect.vue.d.ts.map +1 -1
  15. package/dist/component/common/MlLineTypeSelect.vue.d.ts.map +1 -1
  16. package/dist/component/common/MlLineWeightSelect.vue.d.ts.map +1 -1
  17. package/dist/component/common/MlToggleButton.vue.d.ts.map +1 -1
  18. package/dist/component/common/index.d.ts +1 -0
  19. package/dist/component/common/index.d.ts.map +1 -1
  20. package/dist/component/dialog/MlCharacterMapDialog.vue.d.ts +84 -0
  21. package/dist/component/dialog/MlCharacterMapDialog.vue.d.ts.map +1 -0
  22. package/dist/component/dialog/MlDrawingUnitsDlg.vue.d.ts +19 -0
  23. package/dist/component/dialog/MlDrawingUnitsDlg.vue.d.ts.map +1 -0
  24. package/dist/component/dialog/MlPointStyleDlg.vue.d.ts.map +1 -1
  25. package/dist/component/dialog/MlQuickSelectDlg.vue.d.ts.map +1 -1
  26. package/dist/component/dialog/MlReplacementDlg.vue.d.ts.map +1 -1
  27. package/dist/component/dialog/charMapTtfCodepoints.d.ts +25 -0
  28. package/dist/component/dialog/charMapTtfCodepoints.d.ts.map +1 -0
  29. package/dist/component/dialog/index.d.ts +1 -0
  30. package/dist/component/dialog/index.d.ts.map +1 -1
  31. package/dist/component/layout/MlEntityInfo.vue.d.ts.map +1 -1
  32. package/dist/component/layout/MlMainMenu.vue.d.ts.map +1 -1
  33. package/dist/component/notification/MlNotificationCenter.vue.d.ts.map +1 -1
  34. package/dist/component/notification/MlNotificationItem.vue.d.ts.map +1 -1
  35. package/dist/component/palette/MlEntityProperties.vue.d.ts.map +1 -1
  36. package/dist/component/palette/MlLayerList.vue.d.ts.map +1 -1
  37. package/dist/component/palette/MlPaletteManager.vue.d.ts.map +1 -1
  38. package/dist/component/ribbon/MlRibbonCommands.vue.d.ts.map +1 -1
  39. package/dist/component/ribbon/MlRibbonFontSelect.vue.d.ts +54 -0
  40. package/dist/component/ribbon/MlRibbonFontSelect.vue.d.ts.map +1 -0
  41. package/dist/component/ribbon/MlRibbonMTextHeightSelect.vue.d.ts +49 -0
  42. package/dist/component/ribbon/MlRibbonMTextHeightSelect.vue.d.ts.map +1 -0
  43. package/dist/component/ribbon/index.d.ts +1 -0
  44. package/dist/component/ribbon/index.d.ts.map +1 -1
  45. package/dist/component/ribbon/useHatchContextualRibbon.d.ts +26 -0
  46. package/dist/component/ribbon/useHatchContextualRibbon.d.ts.map +1 -1
  47. package/dist/component/ribbon/useMTextContextualRibbon.d.ts +46 -0
  48. package/dist/component/ribbon/useMTextContextualRibbon.d.ts.map +1 -0
  49. package/dist/component/statusBar/MlNotificationButton.vue.d.ts.map +1 -1
  50. package/dist/component/statusBar/MlOsnapButton.vue.d.ts.map +1 -1
  51. package/dist/component/statusBar/MlPointStyleButton.vue.d.ts.map +1 -1
  52. package/dist/component/statusBar/MlPolarTrackingButton.vue.d.ts +3 -0
  53. package/dist/component/statusBar/MlPolarTrackingButton.vue.d.ts.map +1 -0
  54. package/dist/component/statusBar/MlProgress.vue.d.ts.map +1 -1
  55. package/dist/component/statusBar/MlSettingButton.vue.d.ts.map +1 -1
  56. package/dist/component/statusBar/MlStatusBar.vue.d.ts.map +1 -1
  57. package/dist/component/statusBar/MlWarningButton.vue.d.ts.map +1 -1
  58. package/dist/component/statusBar/polarTrackingMenu.d.ts +10 -0
  59. package/dist/component/statusBar/polarTrackingMenu.d.ts.map +1 -0
  60. package/dist/composable/useCurrentPos.d.ts.map +1 -1
  61. package/dist/composable/useHover.d.ts +32 -4
  62. package/dist/composable/useHover.d.ts.map +1 -1
  63. package/dist/composable/useMissedData.d.ts +68 -4
  64. package/dist/composable/useMissedData.d.ts.map +1 -1
  65. package/dist/composable/useNotificationCenter.d.ts +107 -35
  66. package/dist/composable/useNotificationCenter.d.ts.map +1 -1
  67. package/dist/composable/useSystemVars.d.ts +16 -0
  68. package/dist/composable/useSystemVars.d.ts.map +1 -1
  69. package/dist/index.css +1 -1
  70. package/dist/index.js +15820 -17983
  71. package/dist/locale/en/command.d.ts +3 -0
  72. package/dist/locale/en/command.d.ts.map +1 -1
  73. package/dist/locale/en/dialog.d.ts +55 -0
  74. package/dist/locale/en/dialog.d.ts.map +1 -1
  75. package/dist/locale/en/main.d.ts +143 -1
  76. package/dist/locale/en/main.d.ts.map +1 -1
  77. package/dist/locale/zh/command.d.ts +3 -0
  78. package/dist/locale/zh/command.d.ts.map +1 -1
  79. package/dist/locale/zh/dialog.d.ts +55 -0
  80. package/dist/locale/zh/dialog.d.ts.map +1 -1
  81. package/dist/locale/zh/main.d.ts +143 -1
  82. package/dist/locale/zh/main.d.ts.map +1 -1
  83. package/dist/svg/index.d.ts +4 -1
  84. package/dist/svg/index.d.ts.map +1 -1
  85. package/dist/svg/mtext/index.d.ts +5 -0
  86. package/dist/svg/mtext/index.d.ts.map +1 -0
  87. package/package.json +35 -12
@@ -1,11 +1,37 @@
1
1
  import { AcEdCommandEventArgs } from '@mlightcad/cad-simple-viewer';
2
2
  import { RibbonTabModel } from '@mlightcad/ribbon';
3
3
  import { Ref } from 'vue';
4
+ /**
5
+ * Options required to coordinate the hatch contextual ribbon with the shared
6
+ * ribbon tab state.
7
+ */
4
8
  interface UseHatchContextualRibbonOptions {
9
+ /** Currently active ribbon tab id shared by the main ribbon shell. */
5
10
  activeTabId: Ref<string>;
11
+ /**
12
+ * Optional callback used when the close button exits a selection-driven hatch
13
+ * context instead of an active HATCH command.
14
+ */
6
15
  clearSelection?: () => void;
7
16
  }
17
+ /**
18
+ * Minimal translation callback used while constructing ribbon model labels.
19
+ *
20
+ * @param key Locale message key.
21
+ * @returns Localized string for the active locale.
22
+ */
8
23
  type Translate = (key: string) => string;
24
+ /**
25
+ * Creates the contextual ribbon controller for the HATCH workflow.
26
+ *
27
+ * The controller keeps the hatch contextual tab visible while either the HATCH
28
+ * command is running or the current selection consists of hatch entities. It
29
+ * also translates ribbon item ids into hatch command mutations and rebuilds the
30
+ * tab model from the latest command state.
31
+ *
32
+ * @param options Shared tab state and optional selection clearing hook.
33
+ * @returns Handlers and state consumed by the ribbon command host.
34
+ */
9
35
  export declare function useHatchContextualRibbon({ activeTabId, clearSelection }: UseHatchContextualRibbonOptions): {
10
36
  isVisible: Ref<boolean, boolean>;
11
37
  isCommandActive: Ref<boolean, boolean>;
@@ -1 +1 @@
1
- {"version":3,"file":"useHatchContextualRibbon.d.ts","sourceRoot":"","sources":["../../../src/component/ribbon/useHatchContextualRibbon.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAExE,OAAO,KAAK,EAEV,cAAc,EACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,KAAK,GAAG,EAAO,MAAM,KAAK,CAAA;AA6BnC,UAAU,+BAA+B;IACvC,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED,KAAK,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;AAmBxC,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,cAAc,EACf,EAAE,+BAA+B;;;;+BAwBE,oBAAoB;4CAMP,OAAO;yBAY1B,MAAM;4BAmFH,SAAS,KAAG,cAAc;EAqR1D"}
1
+ {"version":3,"file":"useHatchContextualRibbon.d.ts","sourceRoot":"","sources":["../../../src/component/ribbon/useHatchContextualRibbon.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAExE,OAAO,KAAK,EAEV,cAAc,EACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAAE,KAAK,GAAG,EAAO,MAAM,KAAK,CAAA;AA0CnC;;;GAGG;AACH,UAAU,+BAA+B;IACvC,sEAAsE;IACtE,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAA;CAC5B;AAED;;;;;GAKG;AACH,KAAK,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;AA4BxC;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACX,cAAc,EACf,EAAE,+BAA+B;;;;+BAmCE,oBAAoB;4CAWP,OAAO;yBAiC1B,MAAM;4BA6FH,SAAS,KAAG,cAAc;EAoR1D"}
@@ -0,0 +1,46 @@
1
+ import { AcEdCommandEventArgs } from '@mlightcad/cad-simple-viewer';
2
+ import { RibbonTabModel } from '@mlightcad/ribbon';
3
+ import { Ref } from 'vue';
4
+ /**
5
+ * Minimal translation callback used while constructing ribbon model labels.
6
+ *
7
+ * @param key Locale message key.
8
+ * @returns Localized string for the active locale.
9
+ */
10
+ type Translate = (key: string) => string;
11
+ /**
12
+ * Options required to coordinate the MText contextual ribbon with the shared
13
+ * ribbon tab state.
14
+ */
15
+ interface UseMTextContextualRibbonOptions {
16
+ /** Currently active ribbon tab id shared by the main ribbon shell. */
17
+ activeTabId: Ref<string>;
18
+ }
19
+ /**
20
+ * Creates the contextual ribbon controller for inline MTEXT editing.
21
+ *
22
+ * The controller observes the active MText input box, mirrors its current
23
+ * character/paragraph state into ribbon controls, translates ribbon item ids
24
+ * back into editor operations, and builds the contextual tab model used by the
25
+ * ribbon renderer.
26
+ *
27
+ * @param options Shared ribbon tab state.
28
+ * @returns Handlers and state consumed by the ribbon command host.
29
+ */
30
+ export declare function useMTextContextualRibbon({ activeTabId }: UseMTextContextualRibbonOptions): {
31
+ isVisible: Ref<boolean, boolean>;
32
+ isCommandActive: Ref<boolean, boolean>;
33
+ handleCommandWillStart: (args: AcEdCommandEventArgs) => void;
34
+ handleCommandEnded: (args: AcEdCommandEventArgs) => void;
35
+ handleItem: (itemId: string) => boolean;
36
+ buildContextualTab: (t: Translate) => RibbonTabModel;
37
+ characterMapVisible: Ref<boolean, boolean>;
38
+ characterMapFontOptions: import('vue').ComputedRef<string[]>;
39
+ characterMapInitialFont: import('vue').ComputedRef<string>;
40
+ handleCharacterMapInsert: (payload: {
41
+ fontFamily: string;
42
+ text: string;
43
+ }) => Promise<void>;
44
+ };
45
+ export {};
46
+ //# sourceMappingURL=useMTextContextualRibbon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useMTextContextualRibbon.d.ts","sourceRoot":"","sources":["../../../src/component/ribbon/useMTextContextualRibbon.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAQxE,OAAO,KAAK,EAGV,cAAc,EACf,MAAM,mBAAmB,CAAA;AAC1B,OAAO,EAOL,KAAK,GAAG,EAGT,MAAM,KAAK,CAAA;AA4CZ;;;;;GAKG;AACH,KAAK,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,CAAA;AA+JxC;;;GAGG;AACH,UAAU,+BAA+B;IACvC,sEAAsE;IACtE,WAAW,EAAE,GAAG,CAAC,MAAM,CAAC,CAAA;CACzB;AAmUD;;;;;;;;;;GAUG;AACH,wBAAgB,wBAAwB,CAAC,EACvC,WAAW,EACZ,EAAE,+BAA+B;;;;+BAymCQ,oBAAoB;yBA7uBhC,MAAM;4BAuLH,SAAS,KAAG,cAAc;;;;wCAjOR;QAC/C,UAAU,EAAE,MAAM,CAAA;QAClB,IAAI,EAAE,MAAM,CAAA;KACb;EAuyBF"}
@@ -1 +1 @@
1
- {"version":3,"file":"MlNotificationButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlNotificationButton.vue"],"names":[],"mappings":"AAmBA;;;;;;AA4KA,wBAMG"}
1
+ {"version":3,"file":"MlNotificationButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlNotificationButton.vue"],"names":[],"mappings":"AAmBA;;;;;;AAiLA,wBAMG"}
@@ -1 +1 @@
1
- {"version":3,"file":"MlOsnapButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlOsnapButton.vue"],"names":[],"mappings":"AAuBA;;AAgQA,wBAKG"}
1
+ {"version":3,"file":"MlOsnapButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlOsnapButton.vue"],"names":[],"mappings":"AAuBA;;AAmRA,wBAKG"}
@@ -1 +1 @@
1
- {"version":3,"file":"MlPointStyleButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlPointStyleButton.vue"],"names":[],"mappings":"AASA;;AAiHA,wBAKG"}
1
+ {"version":3,"file":"MlPointStyleButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlPointStyleButton.vue"],"names":[],"mappings":"AASA;;AAqHA,wBAKG"}
@@ -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":"MlProgress.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlProgress.vue"],"names":[],"mappings":"AAUA;;AA+LA,wBAKG"}
1
+ {"version":3,"file":"MlProgress.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlProgress.vue"],"names":[],"mappings":"AAUA;;AAyNA,wBAKG"}
@@ -1 +1 @@
1
- {"version":3,"file":"MlSettingButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlSettingButton.vue"],"names":[],"mappings":"AA2DA;;AAoWA,wBAKG"}
1
+ {"version":3,"file":"MlSettingButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlSettingButton.vue"],"names":[],"mappings":"AA2DA;;AAuXA,wBAKG"}
@@ -1 +1 @@
1
- {"version":3,"file":"MlStatusBar.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlStatusBar.vue"],"names":[],"mappings":"AA+DA;AAyLA,KAAK,WAAW,GAAG;IACjB,MAAM,EAAE,OAAO,CAAA;IACf,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB,CAAC;;;;;;AAoSF,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
+ {"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"}
@@ -1 +1 @@
1
- {"version":3,"file":"MlWarningButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlWarningButton.vue"],"names":[],"mappings":"AASA;;AAoHA,wBAKG"}
1
+ {"version":3,"file":"MlWarningButton.vue.d.ts","sourceRoot":"","sources":["../../../src/component/statusBar/MlWarningButton.vue"],"names":[],"mappings":"AASA;;AAuHA,wBAKG"}
@@ -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"}
@@ -1 +1 @@
1
- {"version":3,"file":"useCurrentPos.d.ts","sourceRoot":"","sources":["../../src/composable/useCurrentPos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAsB,MAAM,8BAA8B,CAAA;AAqB/E,wBAAgB,aAAa,CAAC,IAAI,EAAE,YAAY;;;;EAsB/C"}
1
+ {"version":3,"file":"useCurrentPos.d.ts","sourceRoot":"","sources":["../../src/composable/useCurrentPos.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAsB,MAAM,8BAA8B,CAAA;AAY/E,wBAAgB,aAAa,CAAC,IAAI,EAAE,YAAY;;;;EAe/C"}
@@ -1035,6 +1035,7 @@ export declare function useHover(): {
1035
1035
  dxfOut: (...args: unknown[]) => unknown;
1036
1036
  };
1037
1037
  readonly textStyleTable: {
1038
+ resolveAt: (name?: string) => import('@mlightcad/data-model').AcDbTextStyleTableRecord | undefined;
1038
1039
  readonly fonts: string[];
1039
1040
  readonly numEntries: number;
1040
1041
  add: (record: import('@mlightcad/data-model').AcDbTextStyleTableRecord) => void;
@@ -1720,16 +1721,27 @@ export declare function useHover(): {
1720
1721
  dxfOut: (...args: unknown[]) => unknown;
1721
1722
  };
1722
1723
  };
1724
+ readonly formatter: {
1725
+ formatLength: (value: number, options?: import('@mlightcad/data-model').AcDbFormatterOptions) => string;
1726
+ formatPoint2d: (point: import('@mlightcad/data-model').AcGePoint2d, options?: import('@mlightcad/data-model').AcDbFormatterOptions) => string;
1727
+ formatPoint3d: (point: import('@mlightcad/data-model').AcGePoint3d, options?: import('@mlightcad/data-model').AcDbFormatterOptions) => string;
1728
+ formatAngle: (radians: number, options?: import('@mlightcad/data-model').AcDbFormatterOptions) => string;
1729
+ };
1723
1730
  generateHandle: () => AcDbObjectId;
1724
1731
  updateMaxHandle: (handle: string) => void;
1725
1732
  commitObjectHandle: (object: import('@mlightcad/data-model').AcDbObject, hasId?: (id: AcDbObjectId) => boolean) => void;
1726
1733
  currentSpaceId: AcDbObjectId;
1727
1734
  aunits: number;
1735
+ auprec: number;
1736
+ lunits: number;
1737
+ luprec: number;
1728
1738
  version: {
1729
1739
  name: string;
1730
1740
  value: number;
1731
1741
  };
1732
1742
  insunits: number;
1743
+ unitmode: number;
1744
+ measurement: number;
1733
1745
  ltscale: number;
1734
1746
  lwdisplay: boolean;
1735
1747
  cecolor: {
@@ -1855,8 +1867,8 @@ export declare function useHover(): {
1855
1867
  toString: () => string;
1856
1868
  };
1857
1869
  textstyle: string;
1858
- angBase: number;
1859
- angDir: number;
1870
+ angbase: number;
1871
+ angdir: number;
1860
1872
  extmax: {
1861
1873
  clone: () => import('@mlightcad/data-model').AcGePoint3d;
1862
1874
  x: number;
@@ -2313,12 +2325,14 @@ export declare function useHover(): {
2313
2325
  pdmode: number;
2314
2326
  pdsize: number;
2315
2327
  osmode: number;
2328
+ orthomode: number;
2316
2329
  read: (data: ArrayBuffer, options: import('@mlightcad/data-model').AcDbOpenDatabaseOptions, fileType?: import('@mlightcad/data-model').AcDbConverterType) => Promise<void>;
2317
2330
  openUri: (url: string, options: import('@mlightcad/data-model').AcDbOpenDatabaseOptions) => Promise<void>;
2318
2331
  dxfOut: (_fileName?: string, precision?: number, version?: import('@mlightcad/data-model').AcDbDwgVersion | string | number, _saveThumbnailImage?: boolean) => string;
2319
2332
  regen: () => Promise<void>;
2320
2333
  createDefaultData: (options?: import('@mlightcad/data-model').AcDbCreateDefaultDataOptions) => void;
2321
2334
  ensureEntityStyleDefaults: (entity: AcDbEntity) => void;
2335
+ ensureTextStyleDefaults: () => void;
2322
2336
  readonly attrs: {
2323
2337
  attributes: {
2324
2338
  [x: string]: any;
@@ -3356,6 +3370,7 @@ export declare function useHover(): {
3356
3370
  dxfOut: (...args: unknown[]) => unknown;
3357
3371
  };
3358
3372
  readonly textStyleTable: {
3373
+ resolveAt: (name?: string) => import('@mlightcad/data-model').AcDbTextStyleTableRecord | undefined;
3359
3374
  readonly fonts: string[];
3360
3375
  readonly numEntries: number;
3361
3376
  add: (record: import('@mlightcad/data-model').AcDbTextStyleTableRecord) => void;
@@ -4041,16 +4056,27 @@ export declare function useHover(): {
4041
4056
  dxfOut: (...args: unknown[]) => unknown;
4042
4057
  };
4043
4058
  };
4059
+ readonly formatter: {
4060
+ formatLength: (value: number, options?: import('@mlightcad/data-model').AcDbFormatterOptions) => string;
4061
+ formatPoint2d: (point: import('@mlightcad/data-model').AcGePoint2d, options?: import('@mlightcad/data-model').AcDbFormatterOptions) => string;
4062
+ formatPoint3d: (point: import('@mlightcad/data-model').AcGePoint3d, options?: import('@mlightcad/data-model').AcDbFormatterOptions) => string;
4063
+ formatAngle: (radians: number, options?: import('@mlightcad/data-model').AcDbFormatterOptions) => string;
4064
+ };
4044
4065
  generateHandle: () => AcDbObjectId;
4045
4066
  updateMaxHandle: (handle: string) => void;
4046
4067
  commitObjectHandle: (object: import('@mlightcad/data-model').AcDbObject, hasId?: (id: AcDbObjectId) => boolean) => void;
4047
4068
  currentSpaceId: AcDbObjectId;
4048
4069
  aunits: number;
4070
+ auprec: number;
4071
+ lunits: number;
4072
+ luprec: number;
4049
4073
  version: {
4050
4074
  name: string;
4051
4075
  value: number;
4052
4076
  };
4053
4077
  insunits: number;
4078
+ unitmode: number;
4079
+ measurement: number;
4054
4080
  ltscale: number;
4055
4081
  lwdisplay: boolean;
4056
4082
  cecolor: {
@@ -4176,8 +4202,8 @@ export declare function useHover(): {
4176
4202
  toString: () => string;
4177
4203
  };
4178
4204
  textstyle: string;
4179
- angBase: number;
4180
- angDir: number;
4205
+ angbase: number;
4206
+ angdir: number;
4181
4207
  extmax: {
4182
4208
  clone: () => import('@mlightcad/data-model').AcGePoint3d;
4183
4209
  x: number;
@@ -4634,12 +4660,14 @@ export declare function useHover(): {
4634
4660
  pdmode: number;
4635
4661
  pdsize: number;
4636
4662
  osmode: number;
4663
+ orthomode: number;
4637
4664
  read: (data: ArrayBuffer, options: import('@mlightcad/data-model').AcDbOpenDatabaseOptions, fileType?: import('@mlightcad/data-model').AcDbConverterType) => Promise<void>;
4638
4665
  openUri: (url: string, options: import('@mlightcad/data-model').AcDbOpenDatabaseOptions) => Promise<void>;
4639
4666
  dxfOut: (_fileName?: string, precision?: number, version?: import('@mlightcad/data-model').AcDbDwgVersion | string | number, _saveThumbnailImage?: boolean) => string;
4640
4667
  regen: () => Promise<void>;
4641
4668
  createDefaultData: (options?: import('@mlightcad/data-model').AcDbCreateDefaultDataOptions) => void;
4642
4669
  ensureEntityStyleDefaults: (entity: AcDbEntity) => void;
4670
+ ensureTextStyleDefaults: () => void;
4643
4671
  readonly attrs: {
4644
4672
  attributes: {
4645
4673
  [x: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"useHover.d.ts","sourceRoot":"","sources":["../../src/composable/useHover.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAGhE;;;;;;;;;;;;;;;;;;;;;;;;;;;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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
- export declare function useMissedData(): {
8
- fonts: import('vue').Reactive<Map<string, string>>;
9
- images: import('vue').Reactive<Map<string, ImageMappingData>>;
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;;;EAwC5B"}
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
- * Notification Center Composable
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 | undefined;
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 | undefined;
65
- timeout?: number | undefined;
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 unread notifications */
133
+ /** Reactive count of active notifications. */
68
134
  unreadCount: import('vue').ComputedRef<number>;
69
- /** Reactive boolean indicating if there are any notifications */
135
+ /** Reactive boolean; `true` when at least one notification exists. */
70
136
  hasNotifications: import('vue').ComputedRef<boolean>;
71
- /** Add a custom notification */
137
+ /** Creates and prepends a custom notification. Returns the new notification ID. */
72
138
  add: (notification: Omit<Notification, "id" | "timestamp">) => string;
73
- /** Remove a notification by ID */
139
+ /** Removes a notification by ID. No-op if the ID is not found. */
74
140
  remove: (id: string) => void;
75
- /** Clear all notifications */
141
+ /** Removes all notifications from the center. */
76
142
  clear: () => void;
77
- /** Clear all notifications (alias for clear) */
143
+ /** Alias for {@link NotificationCenter.clear}. */
78
144
  clearAll: () => void;
79
- /** Add an info notification */
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
- /** Add a warning notification */
153
+ /** Adds a warning notification. Returns the new notification ID. */
82
154
  warning: (title: string, message?: string, options?: Partial<Notification>) => string;
83
- /** Add an error notification */
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
- /** Add a success notification */
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAA;IAC9C,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,IAAI,CAAA;IACf,OAAO,CAAC,EAAE,kBAAkB,EAAE,CAAA;IAC9B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,IAAI,CAAA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AM,YAAY,MAAM,YAAY,OAAO,CAAC,YAAY,CAAC;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;CACnB;AAYD,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,cAAc,CAkBlE;AAED,wBAAgB,yBAAyB,CACvC,QAAQ,EAAE,YAAY,GACrB,cAAc,CAIhB;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAK5D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAKhE;AAED,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,YAAY,EACtB,KAAK,EAAE,cAAc,QAOtB;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc;aAtEzC,MAAM;aACN,MAAM;iBACF,cAAc;cACjB,MAAM;gBACJ,MAAM;EA6GnB"}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