@netless/fastboard-ui 1.0.0-canary.8 → 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.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
- declare type Theme = "light" | "dark";
70
- declare type Language = "en" | "zh-CN";
71
- declare type IconType = "normal" | "disable";
72
- declare type GenericIcon<K extends string, E extends string = IconType> = {
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
- declare type I18nData<T extends string> = Record<Language, Record<T, string>>;
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
- player?: FastboardPlayer | null;
104
- theme?: Theme;
105
- language?: Language;
106
- config?: ReplayFastboardUIConfig;
107
- containerRef?: (container: HTMLDivElement | null) => void;
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
- app?: FastboardApp | null;
114
- theme?: Theme;
115
- language?: Language;
116
- containerRef?: (container: HTMLDivElement | null) => void;
117
- config?: FastboardUIConfig;
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;