@mlightcad/cad-viewer 1.5.3 → 1.5.4
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 +392 -392
- package/dist/app/register.d.ts.map +1 -1
- package/dist/command/AcApTextStyleCmd.d.ts +9 -0
- package/dist/command/AcApTextStyleCmd.d.ts.map +1 -0
- package/dist/command/index.d.ts +1 -0
- package/dist/command/index.d.ts.map +1 -1
- package/dist/component/common/MlBaseDialog.vue.d.ts +20 -0
- 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/dialog/MlTextStyleDlg.vue.d.ts +19 -0
- package/dist/component/dialog/MlTextStyleDlg.vue.d.ts.map +1 -0
- package/dist/component/dialog/index.d.ts +1 -0
- package/dist/component/dialog/index.d.ts.map +1 -1
- package/dist/component/layout/MlMainMenu.vue.d.ts.map +1 -1
- package/dist/composable/index.d.ts +1 -0
- package/dist/composable/index.d.ts.map +1 -1
- package/dist/composable/useTextStyle.d.ts +130 -0
- package/dist/composable/useTextStyle.d.ts.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +12043 -10323
- package/dist/locale/en/command.d.ts +3 -0
- package/dist/locale/en/command.d.ts.map +1 -1
- package/dist/locale/en/dialog.d.ts +32 -0
- package/dist/locale/en/dialog.d.ts.map +1 -1
- package/dist/locale/en/entity.d.ts +6 -0
- package/dist/locale/en/entity.d.ts.map +1 -1
- package/dist/locale/zh/command.d.ts +3 -0
- package/dist/locale/zh/command.d.ts.map +1 -1
- package/dist/locale/zh/dialog.d.ts +32 -0
- package/dist/locale/zh/dialog.d.ts.map +1 -1
- package/dist/locale/zh/entity.d.ts +6 -0
- package/dist/locale/zh/entity.d.ts.map +1 -1
- package/package.json +10 -10
|
@@ -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":"AA4BA,eAAO,MAAM,YAAY,YAsDxB,CAAA;AAGD,eAAO,MAAM,eAAe,YA8B3B,CAAA;AAGD,eAAO,MAAM,wBAAwB,YAOpC,CAAA;AAID;;;;;;;GAOG;AACH,eAAO,MAAM,mBAAmB,YAiC/B,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AcApContext, AcEdCommand } from '@mlightcad/cad-simple-viewer';
|
|
2
|
+
/**
|
|
3
|
+
* STYLE command (shortcut ST):
|
|
4
|
+
* opens the Text Style dialog for managing drawing text styles.
|
|
5
|
+
*/
|
|
6
|
+
export declare class AcApTextStyleCmd extends AcEdCommand {
|
|
7
|
+
execute(_context: AcApContext): Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=AcApTextStyleCmd.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AcApTextStyleCmd.d.ts","sourceRoot":"","sources":["../../src/command/AcApTextStyleCmd.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAIvE;;;GAGG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IACzC,OAAO,CAAC,QAAQ,EAAE,WAAW;CAIpC"}
|
package/dist/command/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/command/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,qBAAqB,CAAA;AACnC,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA"}
|
|
@@ -25,6 +25,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
25
25
|
type: () => Component | null;
|
|
26
26
|
default: null;
|
|
27
27
|
};
|
|
28
|
+
/** When false, OK emits but leaves the dialog open (caller closes on success). */
|
|
29
|
+
autoClose: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
zIndex: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
28
37
|
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
29
38
|
open: (...args: any[]) => void;
|
|
30
39
|
ok: (...args: any[]) => void;
|
|
@@ -48,6 +57,15 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
48
57
|
type: () => Component | null;
|
|
49
58
|
default: null;
|
|
50
59
|
};
|
|
60
|
+
/** When false, OK emits but leaves the dialog open (caller closes on success). */
|
|
61
|
+
autoClose: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: boolean;
|
|
64
|
+
};
|
|
65
|
+
zIndex: {
|
|
66
|
+
type: NumberConstructor;
|
|
67
|
+
default: number;
|
|
68
|
+
};
|
|
51
69
|
}>> & Readonly<{
|
|
52
70
|
onOpen?: ((...args: any[]) => any) | undefined;
|
|
53
71
|
onOk?: ((...args: any[]) => any) | undefined;
|
|
@@ -56,6 +74,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
|
|
|
56
74
|
onOpened?: ((...args: any[]) => any) | undefined;
|
|
57
75
|
}>, {
|
|
58
76
|
width: string | number;
|
|
77
|
+
autoClose: boolean;
|
|
78
|
+
zIndex: number;
|
|
59
79
|
icon: Component | null;
|
|
60
80
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
61
81
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MlBaseDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlBaseDialog.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MlBaseDialog.vue.d.ts","sourceRoot":"","sources":["../../../src/component/common/MlBaseDialog.vue"],"names":[],"mappings":"AAkDA;AA2PA,OAAO,EAAE,KAAK,SAAS,EAA6B,MAAM,KAAK,CAAA;AAuD/D,iBAAS,cAAc;WA0KT,OAAO,IAA6B;;yBAVpB,GAAG;;;;EAehC;AA0BD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;cAUK,MAAM,SAAS,GAAG,IAAI;;;IAC9C,kFAAkF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAD1D,MAAM,SAAS,GAAG,IAAI;;;IAC9C,kFAAkF;;;;;;;;;;;;;;;;;;;;4EAIlF,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":"AAsLA;;AAk/BA,wBAKG"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
|
+
"update:modelValue": (v: boolean) => void;
|
|
6
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_Props>>> & Readonly<{
|
|
7
|
+
"onUpdate:modelValue"?: ((v: boolean) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToOption<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=MlTextStyleDlg.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MlTextStyleDlg.vue.d.ts","sourceRoot":"","sources":["../../../src/component/dialog/MlTextStyleDlg.vue"],"names":[],"mappings":"AA2RA;AAmsBA,KAAK,WAAW,GAAG;IACjB,UAAU,EAAE,OAAO,CAAA;CACpB,CAAC;;;;;;AA46BF,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"}
|
|
@@ -3,4 +3,5 @@ export { default as MlColorPickerDlg } from './MlColorPickerDlg.vue';
|
|
|
3
3
|
export { default as MlPointStyleDlg } from './MlPointStyleDlg.vue';
|
|
4
4
|
export { default as MlQuickSelectDlg } from './MlQuickSelectDlg.vue';
|
|
5
5
|
export { default as MlReplacementDlg } from './MlReplacementDlg.vue';
|
|
6
|
+
export { default as MlTextStyleDlg } from './MlTextStyleDlg.vue';
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/component/dialog/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAClE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AACpE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA"}
|
|
@@ -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":"AAkDA;;AAwaA,wBAKG"}
|
|
@@ -15,6 +15,7 @@ export * from './useNotificationCenter';
|
|
|
15
15
|
export * from './useSelectionSet';
|
|
16
16
|
export * from './useSettings';
|
|
17
17
|
export * from './useSystemVars';
|
|
18
|
+
export * from './useTextStyle';
|
|
18
19
|
export * from './useIsMobile';
|
|
19
20
|
export * from './useQuickSelect';
|
|
20
21
|
export * from './useRibbonContextualTab';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composable/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/composable/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA;AACzB,cAAc,oBAAoB,CAAA;AAClC,cAAc,sBAAsB,CAAA;AACpC,cAAc,kBAAkB,CAAA;AAChC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA;AAC7B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,0BAA0B,CAAA;AACxC,cAAc,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { AcApDocManager } from '@mlightcad/cad-simple-viewer';
|
|
2
|
+
import { AcDbFontInfo } from '@mlightcad/data-model';
|
|
3
|
+
/**
|
|
4
|
+
* Editable fields of a text style as shown in the Text Style dialog (STYLE / ST).
|
|
5
|
+
* Mirrors {@link AcDbTextStyleTableRecord} properties in a UI-friendly shape.
|
|
6
|
+
*/
|
|
7
|
+
export interface TextStyleFormState {
|
|
8
|
+
/** Primary font file name or mesh font identifier (`fileName` / `textStyle.font`). */
|
|
9
|
+
font: string;
|
|
10
|
+
/** Selected mesh font variant; equals {@link font} for SHX fonts. */
|
|
11
|
+
fontStyle: string;
|
|
12
|
+
/** Whether a companion SHX big font is enabled for double-byte character support. */
|
|
13
|
+
useBigFont: boolean;
|
|
14
|
+
/** Big font file name when {@link useBigFont} is true (`bigFontFileName`). */
|
|
15
|
+
bigFont: string;
|
|
16
|
+
/** Default text height for new text entities (`textSize`). */
|
|
17
|
+
textHeight: number;
|
|
18
|
+
/** Mirror text upside down (text generation flag bit 2; ignored when {@link vertical} is true). */
|
|
19
|
+
upsideDown: boolean;
|
|
20
|
+
/** Mirror text backwards / right-to-left (text generation flag bit 1). */
|
|
21
|
+
backwards: boolean;
|
|
22
|
+
/** Stack characters vertically (`isVertical`). */
|
|
23
|
+
vertical: boolean;
|
|
24
|
+
/** Horizontal scale factor (`xScale`); minimum clamped to 0.01. */
|
|
25
|
+
widthFactor: number;
|
|
26
|
+
/** Oblique angle in degrees (`obliquingAngle`). */
|
|
27
|
+
obliqueAngle: number;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Select-option entry for font dropdowns in the Text Style dialog.
|
|
31
|
+
*/
|
|
32
|
+
export interface FontOption {
|
|
33
|
+
/** Font identifier stored in the form (primary name from {@link AcDbFontInfo.name}). */
|
|
34
|
+
value: string;
|
|
35
|
+
/** Display label, preferring the source file path when available. */
|
|
36
|
+
label: string;
|
|
37
|
+
/** Font backend type: SHX vector font or mesh (TrueType) font. */
|
|
38
|
+
type: 'shx' | 'mesh';
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Sample string used to preview the active text style in the dialog UI.
|
|
42
|
+
*/
|
|
43
|
+
export declare const TEXT_STYLE_PREVIEW = "AaBbYyZz123";
|
|
44
|
+
/**
|
|
45
|
+
* Composable for the Text Style dialog (STYLE / ST command).
|
|
46
|
+
*
|
|
47
|
+
* Manages the text style list, current drawing text style, reactive edit form,
|
|
48
|
+
* font option derivation, and CRUD operations against `textStyleTable`.
|
|
49
|
+
*
|
|
50
|
+
* @param editor - Document manager providing the active database and font catalog.
|
|
51
|
+
* Defaults to {@link AcApDocManager.instance}.
|
|
52
|
+
*
|
|
53
|
+
* @returns Reactive state, computed UI helpers, and mutation handlers for the dialog.
|
|
54
|
+
*/
|
|
55
|
+
export declare function useTextStyle(editor?: AcApDocManager): {
|
|
56
|
+
/** Preview sample string constant for the dialog. */
|
|
57
|
+
TEXT_STYLE_PREVIEW: string;
|
|
58
|
+
/** All text style names in the active drawing. */
|
|
59
|
+
styleNames: import('vue').Ref<string[], string[]>;
|
|
60
|
+
/** Name of the style selected in the dialog list. */
|
|
61
|
+
selectedName: import('vue').Ref<string, string>;
|
|
62
|
+
/** Name of the drawing's current TEXTSTYLE. */
|
|
63
|
+
currentStyleName: import('vue').Ref<string, string>;
|
|
64
|
+
/** Available fonts from the editor. */
|
|
65
|
+
fontInfos: import('vue').Ref<{
|
|
66
|
+
name: string[];
|
|
67
|
+
file: string;
|
|
68
|
+
type: "mesh" | "shx";
|
|
69
|
+
url: string;
|
|
70
|
+
}[], AcDbFontInfo[] | {
|
|
71
|
+
name: string[];
|
|
72
|
+
file: string;
|
|
73
|
+
type: "mesh" | "shx";
|
|
74
|
+
url: string;
|
|
75
|
+
}[]>;
|
|
76
|
+
/** Reactive form bound to the selected style's properties. */
|
|
77
|
+
form: {
|
|
78
|
+
font: string;
|
|
79
|
+
fontStyle: string;
|
|
80
|
+
useBigFont: boolean;
|
|
81
|
+
bigFont: string;
|
|
82
|
+
textHeight: number;
|
|
83
|
+
upsideDown: boolean;
|
|
84
|
+
backwards: boolean;
|
|
85
|
+
vertical: boolean;
|
|
86
|
+
widthFactor: number;
|
|
87
|
+
obliqueAngle: number;
|
|
88
|
+
};
|
|
89
|
+
/** Primary font dropdown options. */
|
|
90
|
+
fontOptions: import('vue').ComputedRef<FontOption[]>;
|
|
91
|
+
/** Big-font dropdown options (SHX only). */
|
|
92
|
+
bigFontOptions: import('vue').ComputedRef<FontOption[]>;
|
|
93
|
+
/** Whether the mesh font-style sub-selector is visible. */
|
|
94
|
+
fontStyleEnabled: import('vue').ComputedRef<boolean>;
|
|
95
|
+
/** Mesh font face names for the selected font. */
|
|
96
|
+
fontStyleOptions: import('vue').ComputedRef<string[]>;
|
|
97
|
+
/** Whether big-font controls are enabled. */
|
|
98
|
+
bigFontSupported: import('vue').ComputedRef<boolean>;
|
|
99
|
+
/** Whether the selected style may be deleted. */
|
|
100
|
+
canDelete: import('vue').ComputedRef<boolean>;
|
|
101
|
+
/** Whether "Set Current" is enabled. */
|
|
102
|
+
canSetCurrent: import('vue').ComputedRef<boolean>;
|
|
103
|
+
/** Inline CSS for the style preview line. */
|
|
104
|
+
previewStyle: import('vue').ComputedRef<Record<string, string>>;
|
|
105
|
+
/** Initializes state when the dialog opens. */
|
|
106
|
+
openDialog: () => void;
|
|
107
|
+
/** Reloads the form from the database, discarding edits. */
|
|
108
|
+
revertForm: () => void;
|
|
109
|
+
/** Selects a style and loads it into the form. */
|
|
110
|
+
selectStyle: (name: string) => void;
|
|
111
|
+
/** Handles primary font selection changes. */
|
|
112
|
+
handleFontChange: (font: string) => void;
|
|
113
|
+
/** Handles mesh font face selection changes. */
|
|
114
|
+
handleFontStyleChange: (style: string) => void;
|
|
115
|
+
/** Saves form edits to the selected style record. */
|
|
116
|
+
saveSelectedStyle: () => boolean;
|
|
117
|
+
/** Sets the selected style as the drawing TEXTSTYLE. */
|
|
118
|
+
setCurrentStyle: () => boolean;
|
|
119
|
+
/** Creates a new text style with the given name. */
|
|
120
|
+
addStyle: (name: string) => boolean;
|
|
121
|
+
/** Deletes the selected text style. */
|
|
122
|
+
deleteSelectedStyle: () => boolean;
|
|
123
|
+
/**
|
|
124
|
+
* Validates a proposed new style name against current drawing styles.
|
|
125
|
+
*
|
|
126
|
+
* @param name - Proposed style name.
|
|
127
|
+
*/
|
|
128
|
+
isValidNewTextStyleName: (name: string) => boolean;
|
|
129
|
+
};
|
|
130
|
+
//# sourceMappingURL=useTextStyle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTextStyle.d.ts","sourceRoot":"","sources":["../../src/composable/useTextStyle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAgB,MAAM,8BAA8B,CAAA;AAC3E,OAAO,EAEL,KAAK,YAAY,EAKlB,MAAM,uBAAuB,CAAA;AAG9B;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,sFAAsF;IACtF,IAAI,EAAE,MAAM,CAAA;IACZ,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAA;IACjB,qFAAqF;IACrF,UAAU,EAAE,OAAO,CAAA;IACnB,8EAA8E;IAC9E,OAAO,EAAE,MAAM,CAAA;IACf,8DAA8D;IAC9D,UAAU,EAAE,MAAM,CAAA;IAClB,mGAAmG;IACnG,UAAU,EAAE,OAAO,CAAA;IACnB,0EAA0E;IAC1E,SAAS,EAAE,OAAO,CAAA;IAClB,kDAAkD;IAClD,QAAQ,EAAE,OAAO,CAAA;IACjB,mEAAmE;IACnE,WAAW,EAAE,MAAM,CAAA;IACnB,mDAAmD;IACnD,YAAY,EAAE,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,wFAAwF;IACxF,KAAK,EAAE,MAAM,CAAA;IACb,qEAAqE;IACrE,KAAK,EAAE,MAAM,CAAA;IACb,kEAAkE;IAClE,IAAI,EAAE,KAAK,GAAG,MAAM,CAAA;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,gBAAgB,CAAA;AA6S/C;;;;;;;;;;GAUG;AACH,wBAAgB,YAAY,CAAC,MAAM,GAAE,cAAwC;IA6QzE,qDAAqD;;IAErD,kDAAkD;;IAElD,qDAAqD;;IAErD,+CAA+C;;IAE/C,uCAAuC;;;;;;;;;;;;IAEvC,8DAA8D;;cAnnB1D,MAAM;mBAED,MAAM;oBAEL,OAAO;iBAEV,MAAM;oBAEH,MAAM;oBAEN,OAAO;mBAER,OAAO;kBAER,OAAO;qBAEJ,MAAM;sBAEL,MAAM;;IAmmBlB,qCAAqC;;IAErC,4CAA4C;;IAE5C,2DAA2D;;IAE3D,kDAAkD;;IAElD,6CAA6C;;IAE7C,iDAAiD;;IAEjD,wCAAwC;;IAExC,6CAA6C;;IAE7C,+CAA+C;;IAE/C,4DAA4D;;IAE5D,kDAAkD;wBAhLzB,MAAM;IAkL/B,8CAA8C;6BArKhB,MAAM;IAuKpC,gDAAgD;mCAjJZ,MAAM;IAmJ1C,qDAAqD;;IAErD,wDAAwD;;IAExD,oDAAoD;qBArF9B,MAAM;IAuF5B,uCAAuC;;IAEvC;;;;OAIG;oCAC6B,MAAM;EAGzC"}
|