@netless/fastboard-ui 1.0.0-canary.7 → 1.0.0-canary.9
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/index.css +0 -1
- package/dist/index.d.ts +22 -19
- package/dist/index.js +5495 -1775
- package/dist/index.mjs +5467 -1763
- package/dist/index.svelte.mjs +8457 -3852
- package/package.json +3 -3
- package/src/actions/scroll.ts +1 -1
- package/src/components/Icons/Curve.svelte +10 -0
- package/src/components/Icons/CurveDashed.svelte +16 -0
- package/src/components/Icons/index.ts +4 -0
- package/src/components/Toolbar/Toolbar.svelte +2 -0
- package/src/components/Toolbar/Toolbar.svelte.d.ts +3 -0
- package/src/components/Toolbar/components/Contents.svelte +33 -0
- package/src/components/Toolbar/components/Shapes.svelte +1 -0
- package/src/components/Toolbar/components/Slider.svelte +0 -1
- package/src/components/Toolbar/components/StrokeColor.svelte +1 -0
- package/src/components/Toolbar/components/TextColor.svelte +1 -0
- package/src/components/Toolbar/components/constants.ts +17 -3
- package/src/components/ZoomControl/ZoomControl.svelte +1 -1
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/index.svelte.mjs.map +0 -1
- /package/src/components/Fastboard/{Fastboard.svelte.ts → Fastboard.svelte.d.ts} +0 -0
- /package/src/components/Fastboard/{ReplayFastboard.svelte.ts → ReplayFastboard.svelte.d.ts} +0 -0
package/dist/index.css
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -29,6 +29,9 @@ declare interface RedoUndoProps {
|
|
|
29
29
|
declare class RedoUndo extends SvelteComponentTyped<RedoUndoProps> {}
|
|
30
30
|
|
|
31
31
|
declare interface ToolbarConfig {
|
|
32
|
+
pencil?: {
|
|
33
|
+
dotted?: boolean;
|
|
34
|
+
};
|
|
32
35
|
apps?: {
|
|
33
36
|
enable?: boolean;
|
|
34
37
|
};
|
|
@@ -66,15 +69,15 @@ interface SvelteAction<T = void> {
|
|
|
66
69
|
destroy?: () => void;
|
|
67
70
|
};
|
|
68
71
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
72
|
+
type Theme = "light" | "dark";
|
|
73
|
+
type Language = "en" | "zh-CN";
|
|
74
|
+
type IconType = "normal" | "disable";
|
|
75
|
+
type GenericIcon<K extends string, E extends string = IconType> = {
|
|
73
76
|
[key in K]: {
|
|
74
77
|
[kind in E]: string;
|
|
75
78
|
};
|
|
76
79
|
};
|
|
77
|
-
|
|
80
|
+
type I18nData<T extends string> = Record<Language, Record<T, string>>;
|
|
78
81
|
interface FastboardUIConfig {
|
|
79
82
|
toolbar?: {
|
|
80
83
|
enable?: boolean;
|
|
@@ -100,25 +103,25 @@ interface ReplayFastboardUIConfig {
|
|
|
100
103
|
}
|
|
101
104
|
|
|
102
105
|
declare interface ReplayFastboardProps {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
109
|
-
declare class ReplayFastboard extends SvelteComponentTyped<ReplayFastboardProps> {
|
|
106
|
+
player?: FastboardPlayer | null;
|
|
107
|
+
theme?: Theme;
|
|
108
|
+
language?: Language;
|
|
109
|
+
config?: ReplayFastboardUIConfig;
|
|
110
|
+
containerRef?: (container: HTMLDivElement | null) => void;
|
|
110
111
|
}
|
|
111
112
|
|
|
113
|
+
declare class ReplayFastboard extends SvelteComponentTyped<ReplayFastboardProps> {}
|
|
114
|
+
|
|
112
115
|
declare interface FastboardProps {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
}
|
|
119
|
-
declare class Fastboard extends SvelteComponentTyped<FastboardProps> {
|
|
116
|
+
app?: FastboardApp | null;
|
|
117
|
+
theme?: Theme;
|
|
118
|
+
language?: Language;
|
|
119
|
+
containerRef?: (container: HTMLDivElement | null) => void;
|
|
120
|
+
config?: FastboardUIConfig;
|
|
120
121
|
}
|
|
121
122
|
|
|
123
|
+
declare class Fastboard extends SvelteComponentTyped<FastboardProps> {}
|
|
124
|
+
|
|
122
125
|
interface UI {
|
|
123
126
|
/** render UI to div */
|
|
124
127
|
mount(div: Element, props?: FastboardProps): UI;
|