@netless/fastboard-ui 0.3.5 → 0.3.6
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 +6 -6
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +2 -2
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/helpers/index.ts +12 -12
package/dist/index.d.ts
CHANGED
|
@@ -102,9 +102,9 @@ declare class Fastboard extends SvelteComponentTyped<FastboardProps> {
|
|
|
102
102
|
|
|
103
103
|
interface UI {
|
|
104
104
|
/** render UI to div */
|
|
105
|
-
mount(div: Element, props?:
|
|
105
|
+
mount(div: Element, props?: FastboardProps): UI;
|
|
106
106
|
/** update UI (theme, language, etc.) */
|
|
107
|
-
update(props?:
|
|
107
|
+
update(props?: FastboardProps): void;
|
|
108
108
|
/** remove UI */
|
|
109
109
|
destroy(): void;
|
|
110
110
|
}
|
|
@@ -113,12 +113,12 @@ interface UI {
|
|
|
113
113
|
* let ui = createUI(fastboardApp, document.getElementById("whiteboard"));
|
|
114
114
|
* ui.update({ theme: "dark" })
|
|
115
115
|
*/
|
|
116
|
-
declare function createUI(app
|
|
116
|
+
declare function createUI(app?: FastboardApp | null, div?: Element): UI;
|
|
117
117
|
interface ReplayUI {
|
|
118
118
|
/** render UI to div */
|
|
119
|
-
mount(div: Element, props?:
|
|
119
|
+
mount(div: Element, props?: ReplayFastboardProps): ReplayUI;
|
|
120
120
|
/** update UI (theme, language, etc.) */
|
|
121
|
-
update(props?:
|
|
121
|
+
update(props?: ReplayFastboardProps): void;
|
|
122
122
|
/** remove UI */
|
|
123
123
|
destroy(): void;
|
|
124
124
|
}
|
|
@@ -127,7 +127,7 @@ interface ReplayUI {
|
|
|
127
127
|
* let ui = createReplayUI(fastboardPlayer, document.getElementById("whiteboard"));
|
|
128
128
|
* ui.update({ theme: "dark" })
|
|
129
129
|
*/
|
|
130
|
-
declare function createReplayUI(player
|
|
130
|
+
declare function createReplayUI(player?: FastboardPlayer | null, div?: Element): ReplayUI;
|
|
131
131
|
|
|
132
132
|
interface AppInToolbar {
|
|
133
133
|
kind: string;
|
package/dist/index.js
CHANGED
|
@@ -10613,7 +10613,7 @@ function createUI(app, div) {
|
|
|
10613
10613
|
}
|
|
10614
10614
|
};
|
|
10615
10615
|
if (div) {
|
|
10616
|
-
ui.mount(div);
|
|
10616
|
+
ui.mount(div, { app });
|
|
10617
10617
|
}
|
|
10618
10618
|
return ui;
|
|
10619
10619
|
}
|
|
@@ -10640,7 +10640,7 @@ function createReplayUI(player, div) {
|
|
|
10640
10640
|
}
|
|
10641
10641
|
};
|
|
10642
10642
|
if (div) {
|
|
10643
|
-
ui.mount(div);
|
|
10643
|
+
ui.mount(div, { player });
|
|
10644
10644
|
}
|
|
10645
10645
|
return ui;
|
|
10646
10646
|
}
|