jvs-draw 1.1.12 → 1.1.14
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.vue.d.ts +8 -1
- package/dist/components/BoardName.vue.d.ts +17 -2
- package/dist/components/FloatingPopovers.vue.d.ts +3 -1
- package/dist/components/panelCom/colorStyle.vue.d.ts +42 -6
- package/dist/config.d.ts +9 -0
- package/dist/const/index.d.ts +5 -0
- package/dist/core/element.d.ts +4 -1
- package/dist/jvs-draw.css +1 -1
- package/dist/jvs-draw.es.js +22612 -7895
- package/dist/jvs-draw.umd.js +35 -6
- package/dist/jvs-ui-public/fonts/AntonFont/Anton-Regular.ttf +0 -0
- package/dist/jvs-ui-public/fonts/AntonFont/OFL.txt +93 -0
- package/dist/jvs-ui-public/fonts/ClimateCrisis/ClimateCrisis-Regular.ttf +0 -0
- package/dist/jvs-ui-public/fonts/ClimateCrisis/OFL.txt +93 -0
- package/dist/jvs-ui-public/fonts/DouYinSans/DouyinSansBold.otf +0 -0
- package/dist/jvs-ui-public/fonts/DouYinSans/OFL.txt +30 -0
- package/dist/jvs-ui-public/fonts/Exo/Exo-Black.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Exo/Exo-Bold.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Exo/Exo-Light.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Exo/Exo-Medium.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Exo/Exo-Regular.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Exo/OFL.txt +93 -0
- package/dist/jvs-ui-public/fonts/Goldman/Goldman-Bold.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Goldman/Goldman-Regular.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Goldman/OFL.txt +93 -0
- package/dist/jvs-ui-public/fonts/Goldman/OFL_ZHS.txt +104 -0
- package/dist/jvs-ui-public/fonts/Montserrat/Montserrat-Black.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Montserrat/Montserrat-Bold.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Montserrat/Montserrat-Light.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Montserrat/Montserrat-Medium.ttf +0 -0
- package/dist/jvs-ui-public/fonts/Montserrat/OFL.txt +93 -0
- package/dist/jvs-ui-public/fonts/SaDigtalNumber/OFL.txt +93 -0
- package/dist/jvs-ui-public/fonts/SaDigtalNumber/sa-digital-number.ttf +0 -0
- package/dist/jvs-ui-public/fonts/SourceHanSansCN/LICENSE.txt +96 -0
- package/dist/jvs-ui-public/fonts/SourceHanSansCN/SourceHanSansCN-Bold.ttf +0 -0
- package/dist/jvs-ui-public/fonts/SourceHanSansCN/SourceHanSansCN-Medium.ttf +0 -0
- package/dist/jvs-ui-public/fonts/SourceHanSansCN/SourceHanSansCN-Regular.ttf +0 -0
- package/dist/jvs-ui-public/fonts/WuJieHei/OFL.txt +94 -0
- package/dist/jvs-ui-public/fonts/WuJieHei/OFL_ZHS.txt +104 -0
- package/dist/jvs-ui-public/fonts/WuJieHei/WuJieHei.ttf +0 -0
- package/dist/jvs-ui-public/fonts/ZenTokyoZoo/OFL.txt +93 -0
- package/dist/jvs-ui-public/fonts/ZenTokyoZoo/ZenTokyoZoo-Regular.ttf +0 -0
- package/dist/jvs-ui-public/fonts/ZhuQueFangSong/LICENSE.txt +94 -0
- package/dist/jvs-ui-public/fonts/ZhuQueFangSong/ZhuqueFangsong-Regular.ttf +0 -0
- package/dist/jvs-ui-public/fonts/font.css +87 -0
- package/dist/jvs-ui-public/fonts/font_1456030_lnqmc6a6ca.ttf +0 -0
- package/dist/jvs-ui-public/fonts/font_1456030_lnqmc6a6ca.woff +0 -0
- package/dist/jvs-ui-public/fonts/font_1456030_lnqmc6a6ca.woff2 +0 -0
- package/dist/jvs-ui-public/icon-fonts/iconfont.css +79 -3
- package/dist/jvs-ui-public/icon-fonts/iconfont.js +1 -1
- package/dist/jvs-ui-public/icon-fonts/iconfont.json +133 -0
- package/dist/jvs-ui-public/icon-fonts/iconfont.ttf +0 -0
- package/dist/jvs-ui-public/icon-fonts/iconfont.woff +0 -0
- package/dist/jvs-ui-public/icon-fonts/iconfont.woff2 +0 -0
- package/dist/locales/en-US.d.ts +14 -0
- package/dist/locales/zh-CN.d.ts +14 -0
- package/dist/store/index.d.ts +241 -15
- package/dist/types/element.d.ts +9 -3
- package/dist/utils/aiDiagramStream.d.ts +2 -0
- package/dist/utils/export.d.ts +7 -0
- package/dist/utils/exportSVG.d.ts +6 -0
- package/dist/utils/isPointOnElement.d.ts +1 -1
- package/dist/utils/math.d.ts +15 -9
- package/dist/utils/pptxParser.d.ts +7 -0
- package/package.json +6 -3
- package/dist/elbow/algorithms/a-star.d.ts +0 -10
- package/dist/elbow/algorithms/data-structures/graph.d.ts +0 -14
- package/dist/elbow/algorithms/data-structures/index.d.ts +0 -2
- package/dist/elbow/algorithms/data-structures/priority-queue.d.ts +0 -16
- package/dist/elbow/algorithms/index.d.ts +0 -2
- package/dist/elbow/constants/default.d.ts +0 -10
- package/dist/elbow/constants/index.d.ts +0 -4
- package/dist/elbow/constants/media.d.ts +0 -6
- package/dist/elbow/constants/property.d.ts +0 -5
- package/dist/elbow/constants/resize.d.ts +0 -10
- package/dist/elbow/core.d.ts +0 -37
- package/dist/elbow/utils/elbow-line-route.d.ts +0 -38
- package/dist/elbow/utils/index.d.ts +0 -4
- package/dist/elbow/utils/line-path.d.ts +0 -7
- package/dist/elbow/utils/math.d.ts +0 -3
- package/dist/elbow/utils/vector.d.ts +0 -6
package/dist/App.vue.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { JvsDrawConfig } from './config';
|
|
2
|
+
import { ExcalidrawElement } from './types/element';
|
|
2
3
|
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
4
|
initialData: {
|
|
4
5
|
type: ObjectConstructor;
|
|
@@ -15,6 +16,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
15
16
|
};
|
|
16
17
|
setCanvasData: (data: any) => void;
|
|
17
18
|
setConfig: (config: Partial<JvsDrawConfig>) => void;
|
|
19
|
+
exportImage: (elements?: readonly ExcalidrawElement[] | Event) => void;
|
|
20
|
+
exportSVG: (elements?: readonly ExcalidrawElement[] | Event) => void;
|
|
18
21
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
19
22
|
initialData: {
|
|
20
23
|
type: ObjectConstructor;
|
|
@@ -27,5 +30,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
27
30
|
}>> & Readonly<{}>, {
|
|
28
31
|
loadFromLocal: boolean;
|
|
29
32
|
initialData: Record<string, any>;
|
|
30
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
33
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
34
|
+
searchPopover: unknown;
|
|
35
|
+
searchInputRef: unknown;
|
|
36
|
+
aiInputRef: unknown;
|
|
37
|
+
}, HTMLDivElement>;
|
|
31
38
|
export default _default;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ExcalidrawElement } from '../types/element';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
showExport: {
|
|
4
|
+
type: BooleanConstructor;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
}>, {
|
|
8
|
+
exportAPI: (elements?: readonly ExcalidrawElement[] | Event) => void;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
10
|
+
showExport: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>> & Readonly<{}>, {
|
|
15
|
+
showExport: boolean;
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
17
|
+
fileInputRef: HTMLInputElement;
|
|
3
18
|
inputRef: unknown;
|
|
4
19
|
}, HTMLDivElement>;
|
|
5
20
|
export default _default;
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
2
|
+
popoversContainerRef: HTMLDivElement;
|
|
3
|
+
}, HTMLDivElement>;
|
|
2
4
|
export default _default;
|
|
@@ -1,11 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
|
+
showTransparent: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
renderColorList: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: string[];
|
|
9
|
+
};
|
|
10
|
+
showFooterBtn: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: import('vue').PropType<any>;
|
|
16
|
+
};
|
|
17
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
5
18
|
colorChange: (...args: any[]) => void;
|
|
6
19
|
"update:modelValue": (value: any) => void;
|
|
7
|
-
}, string, import('vue').PublicProps, Readonly<
|
|
20
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
21
|
+
showTransparent: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
renderColorList: {
|
|
26
|
+
type: ArrayConstructor;
|
|
27
|
+
default: string[];
|
|
28
|
+
};
|
|
29
|
+
showFooterBtn: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
default: boolean;
|
|
32
|
+
};
|
|
33
|
+
modelValue: {
|
|
34
|
+
type: import('vue').PropType<any>;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{
|
|
8
37
|
onColorChange?: ((...args: any[]) => any) | undefined;
|
|
9
38
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
10
|
-
}>, {
|
|
39
|
+
}>, {
|
|
40
|
+
showTransparent: boolean;
|
|
41
|
+
renderColorList: unknown[];
|
|
42
|
+
showFooterBtn: boolean;
|
|
43
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
|
|
44
|
+
bgColorPickerRef: unknown;
|
|
45
|
+
bgColorRef: HTMLDivElement;
|
|
46
|
+
}, HTMLDivElement>;
|
|
11
47
|
export default _default;
|
package/dist/config.d.ts
CHANGED
|
@@ -2,6 +2,11 @@ export interface LanguageOption {
|
|
|
2
2
|
label: string;
|
|
3
3
|
value: string;
|
|
4
4
|
}
|
|
5
|
+
export interface AiConfig {
|
|
6
|
+
url?: string;
|
|
7
|
+
headers?: Record<string, string>;
|
|
8
|
+
data?: Record<string, any>;
|
|
9
|
+
}
|
|
5
10
|
export interface JvsDrawConfig {
|
|
6
11
|
showToolbar?: boolean;
|
|
7
12
|
showBoardName?: boolean;
|
|
@@ -20,6 +25,10 @@ export interface JvsDrawConfig {
|
|
|
20
25
|
showLanguageMenu?: boolean;
|
|
21
26
|
languageList?: LanguageOption[];
|
|
22
27
|
messages?: Record<string, Record<string, string>>;
|
|
28
|
+
showExport?: boolean;
|
|
29
|
+
showImportPPTX?: boolean;
|
|
30
|
+
showAI?: boolean;
|
|
31
|
+
aiConfig?: AiConfig;
|
|
23
32
|
}
|
|
24
33
|
export declare const globalConfig: JvsDrawConfig;
|
|
25
34
|
export declare const setConfig: (config: Partial<JvsDrawConfig>) => void;
|
package/dist/const/index.d.ts
CHANGED
package/dist/core/element.d.ts
CHANGED
|
@@ -20,8 +20,11 @@ export interface ElementOptions {
|
|
|
20
20
|
isItalic?: boolean;
|
|
21
21
|
isUnderline?: boolean;
|
|
22
22
|
isStrikethrough?: boolean;
|
|
23
|
-
arrowType?: "sharp" | "round"
|
|
23
|
+
arrowType?: "sharp" | "round";
|
|
24
24
|
startArrowhead?: string | null;
|
|
25
25
|
endArrowhead?: string | null;
|
|
26
|
+
fontWeight?: string;
|
|
27
|
+
lineHeight?: number;
|
|
28
|
+
letterSpacing?: number;
|
|
26
29
|
}
|
|
27
30
|
export declare const newElement: (type: ExcalidrawElement["type"], x: number, y: number, options?: ElementOptions) => ExcalidrawElement;
|