@netless/fastboard-ui 0.3.2-canary.5 → 0.3.3
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/LICENSE.txt +21 -21
- package/README.md +7 -7
- package/dist/index.d.ts +102 -102
- package/dist/index.js +30 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +30 -23
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +22 -17
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +4 -5
- package/src/actions/height.ts +43 -43
- package/src/actions/scroll.ts +31 -31
- package/src/actions/tippy.ts +71 -71
- package/src/behaviors/apps.ts +74 -74
- package/src/behaviors/index.ts +1 -1
- package/src/components/Button/Button.svelte +51 -51
- package/src/components/Button/Button.svelte.d.ts +26 -26
- package/src/components/Button/index.ts +2 -2
- package/src/components/Fastboard/Fastboard.scss +61 -61
- package/src/components/Fastboard/Fastboard.svelte +80 -80
- package/src/components/Fastboard/Fastboard.svelte.ts +14 -14
- package/src/components/Fastboard/ReplayFastboard.svelte +43 -43
- package/src/components/Fastboard/ReplayFastboard.svelte.ts +13 -13
- package/src/components/Fastboard/index.ts +5 -5
- package/src/components/Icon/Icon.svelte +11 -11
- package/src/components/Icon/Icon.svelte.d.ts +10 -10
- package/src/components/Icon/index.ts +2 -2
- package/src/components/Icons/Apps.svelte +49 -49
- package/src/components/Icons/Arrow.svelte +16 -16
- package/src/components/Icons/ArrowBolded.svelte +17 -17
- package/src/components/Icons/Balloon.svelte +16 -16
- package/src/components/Icons/BalloonBolded.svelte +16 -16
- package/src/components/Icons/Circle.svelte +20 -20
- package/src/components/Icons/CircleBolded.svelte +20 -20
- package/src/components/Icons/Clean.svelte +14 -14
- package/src/components/Icons/Clear.svelte +16 -16
- package/src/components/Icons/Click.svelte +16 -16
- package/src/components/Icons/ClickFilled.svelte +10 -10
- package/src/components/Icons/Diamond.svelte +16 -16
- package/src/components/Icons/Down.svelte +16 -16
- package/src/components/Icons/Eraser.svelte +16 -16
- package/src/components/Icons/EraserFilled.svelte +16 -16
- package/src/components/Icons/Icons.scss +20 -20
- package/src/components/Icons/Left.svelte +16 -16
- package/src/components/Icons/Line.svelte +16 -16
- package/src/components/Icons/LineBolded.svelte +16 -16
- package/src/components/Icons/Loading.svelte +10 -10
- package/src/components/Icons/Minus.svelte +16 -16
- package/src/components/Icons/Pause.svelte +10 -10
- package/src/components/Icons/Pencil.svelte +29 -29
- package/src/components/Icons/PencilFilled.svelte +16 -16
- package/src/components/Icons/Play.svelte +10 -10
- package/src/components/Icons/Plus.svelte +16 -16
- package/src/components/Icons/Rectangle.svelte +16 -16
- package/src/components/Icons/RectangleBolded.svelte +16 -16
- package/src/components/Icons/Redo.svelte +15 -15
- package/src/components/Icons/Reset.svelte +26 -26
- package/src/components/Icons/Rhombus.svelte +16 -16
- package/src/components/Icons/RhombusBolded.svelte +16 -16
- package/src/components/Icons/Right.svelte +16 -16
- package/src/components/Icons/Selector.svelte +24 -24
- package/src/components/Icons/SelectorFilled.svelte +18 -18
- package/src/components/Icons/SpeechBalloon.svelte +16 -16
- package/src/components/Icons/Star.svelte +16 -16
- package/src/components/Icons/StarBolded.svelte +16 -16
- package/src/components/Icons/Text.svelte +16 -16
- package/src/components/Icons/TextFilled.svelte +17 -17
- package/src/components/Icons/Triangle.svelte +16 -16
- package/src/components/Icons/TriangleBolded.svelte +16 -16
- package/src/components/Icons/Undo.svelte +15 -15
- package/src/components/Icons/Up.svelte +16 -16
- package/src/components/Icons/WhiteboardAdd.svelte +34 -34
- package/src/components/Icons/index.ts +93 -93
- package/src/components/PageControl/PageControl.scss +15 -15
- package/src/components/PageControl/PageControl.svelte +79 -79
- package/src/components/PageControl/PageControl.svelte.d.ts +13 -13
- package/src/components/PageControl/index.ts +2 -2
- package/src/components/PlayerControl/PlayerControl.scss +57 -57
- package/src/components/PlayerControl/PlayerControl.svelte +153 -153
- package/src/components/PlayerControl/PlayerControl.svelte.d.ts +13 -13
- package/src/components/PlayerControl/index.ts +2 -2
- package/src/components/RedoUndo/RedoUndo.scss +11 -11
- package/src/components/RedoUndo/RedoUndo.svelte +60 -60
- package/src/components/RedoUndo/RedoUndo.svelte.d.ts +13 -13
- package/src/components/RedoUndo/index.ts +2 -2
- package/src/components/Toolbar/README.md +57 -57
- package/src/components/Toolbar/Toolbar.scss +78 -78
- package/src/components/Toolbar/Toolbar.svelte +62 -62
- package/src/components/Toolbar/Toolbar.svelte.d.ts +13 -13
- package/src/components/Toolbar/components/Contents.scss +168 -168
- package/src/components/Toolbar/components/Contents.svelte +202 -197
- package/src/components/Toolbar/components/Shapes.svelte +85 -85
- package/src/components/Toolbar/components/Slider.scss +119 -119
- package/src/components/Toolbar/components/Slider.svelte +54 -54
- package/src/components/Toolbar/components/StrokeColor.svelte +39 -39
- package/src/components/Toolbar/components/StrokeWidth.svelte +20 -20
- package/src/components/Toolbar/components/TextColor.svelte +39 -39
- package/src/components/Toolbar/components/constants.ts +80 -80
- package/src/components/Toolbar/components/helper.ts +24 -24
- package/src/components/Toolbar/index.ts +2 -2
- package/src/components/ZoomControl/ZoomControl.scss +15 -15
- package/src/components/ZoomControl/ZoomControl.svelte +99 -99
- package/src/components/ZoomControl/ZoomControl.svelte.d.ts +13 -13
- package/src/components/ZoomControl/index.ts +2 -2
- package/src/components/helpers.ts +3 -3
- package/src/components/theme.scss +92 -92
- package/src/components/variables.scss +69 -69
- package/src/index.ts +13 -13
- package/src/style.scss +36 -36
- package/src/typings.ts +38 -38
package/LICENSE.txt
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 netless
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022 netless
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
## @netless/fastboard-ui
|
|
2
|
-
|
|
3
|
-
The front-end of [@netless/fastboard-core](https://github.com/netless-io/fastboard/tree/main/packages/fastboard-core).
|
|
4
|
-
|
|
5
|
-
### License
|
|
6
|
-
|
|
7
|
-
MIT @ [netless](https://github.com/netless-io)
|
|
1
|
+
## @netless/fastboard-ui
|
|
2
|
+
|
|
3
|
+
The front-end of [@netless/fastboard-core](https://github.com/netless-io/fastboard/tree/main/packages/fastboard-core).
|
|
4
|
+
|
|
5
|
+
### License
|
|
6
|
+
|
|
7
|
+
MIT @ [netless](https://github.com/netless-io)
|
package/dist/index.d.ts
CHANGED
|
@@ -1,124 +1,124 @@
|
|
|
1
1
|
import { FastboardApp, FastboardPlayer } from '@netless/fastboard-core';
|
|
2
2
|
import { SvelteComponentTyped } from 'svelte';
|
|
3
3
|
|
|
4
|
-
interface SvelteAction<T = void> {
|
|
5
|
-
(node: HTMLElement, parameters: T): void | {
|
|
6
|
-
update?: (parameters: T) => void;
|
|
7
|
-
destroy?: () => void;
|
|
8
|
-
};
|
|
9
|
-
}
|
|
10
|
-
declare type Theme = "light" | "dark";
|
|
11
|
-
declare type Language = "en" | "zh-CN";
|
|
12
|
-
declare type IconType = "normal" | "disable";
|
|
13
|
-
declare type GenericIcon<K extends string, E extends string = IconType> = {
|
|
14
|
-
[key in K]: {
|
|
15
|
-
[kind in E]: string;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
declare type I18nData<T extends string> = Record<Language, Record<T, string>>;
|
|
19
|
-
interface ToolbarConfig {
|
|
20
|
-
apps?: {
|
|
21
|
-
enable?: boolean;
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
interface FastboardUIConfig {
|
|
25
|
-
toolbar?: {
|
|
26
|
-
enable?: boolean;
|
|
27
|
-
} & ToolbarConfig;
|
|
28
|
-
redo_undo?: {
|
|
29
|
-
enable?: boolean;
|
|
30
|
-
};
|
|
31
|
-
zoom_control?: {
|
|
32
|
-
enable?: boolean;
|
|
33
|
-
};
|
|
34
|
-
page_control?: {
|
|
35
|
-
enable?: boolean;
|
|
36
|
-
};
|
|
4
|
+
interface SvelteAction<T = void> {
|
|
5
|
+
(node: HTMLElement, parameters: T): void | {
|
|
6
|
+
update?: (parameters: T) => void;
|
|
7
|
+
destroy?: () => void;
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
declare type Theme = "light" | "dark";
|
|
11
|
+
declare type Language = "en" | "zh-CN";
|
|
12
|
+
declare type IconType = "normal" | "disable";
|
|
13
|
+
declare type GenericIcon<K extends string, E extends string = IconType> = {
|
|
14
|
+
[key in K]: {
|
|
15
|
+
[kind in E]: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
declare type I18nData<T extends string> = Record<Language, Record<T, string>>;
|
|
19
|
+
interface ToolbarConfig {
|
|
20
|
+
apps?: {
|
|
21
|
+
enable?: boolean;
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
interface FastboardUIConfig {
|
|
25
|
+
toolbar?: {
|
|
26
|
+
enable?: boolean;
|
|
27
|
+
} & ToolbarConfig;
|
|
28
|
+
redo_undo?: {
|
|
29
|
+
enable?: boolean;
|
|
30
|
+
};
|
|
31
|
+
zoom_control?: {
|
|
32
|
+
enable?: boolean;
|
|
33
|
+
};
|
|
34
|
+
page_control?: {
|
|
35
|
+
enable?: boolean;
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
declare interface RedoUndoProps {
|
|
40
|
+
app?: FastboardApp | null;
|
|
41
|
+
theme?: Theme;
|
|
42
|
+
language?: Language;
|
|
43
|
+
icons?: GenericIcon<"undo" | "redo">;
|
|
37
44
|
}
|
|
38
45
|
|
|
39
|
-
declare interface RedoUndoProps {
|
|
40
|
-
app?: FastboardApp | null;
|
|
41
|
-
theme?: Theme;
|
|
42
|
-
language?: Language;
|
|
43
|
-
icons?: GenericIcon<"undo" | "redo">;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
46
|
declare class RedoUndo extends SvelteComponentTyped<RedoUndoProps> {}
|
|
47
47
|
|
|
48
|
-
declare interface PageControlProps {
|
|
49
|
-
app?: FastboardApp | null;
|
|
50
|
-
theme?: Theme;
|
|
51
|
-
language?: Language;
|
|
52
|
-
icons?: GenericIcon<"prev" | "next" | "add">;
|
|
53
|
-
}
|
|
54
|
-
|
|
48
|
+
declare interface PageControlProps {
|
|
49
|
+
app?: FastboardApp | null;
|
|
50
|
+
theme?: Theme;
|
|
51
|
+
language?: Language;
|
|
52
|
+
icons?: GenericIcon<"prev" | "next" | "add">;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
55
|
declare class PageControl extends SvelteComponentTyped<PageControlProps> {}
|
|
56
56
|
|
|
57
|
-
declare interface ZoomControlProps {
|
|
58
|
-
app?: FastboardApp | null;
|
|
59
|
-
theme?: Theme;
|
|
60
|
-
language?: Language;
|
|
61
|
-
icons?: GenericIcon<"plus" | "minus" | "reset">;
|
|
62
|
-
}
|
|
63
|
-
|
|
57
|
+
declare interface ZoomControlProps {
|
|
58
|
+
app?: FastboardApp | null;
|
|
59
|
+
theme?: Theme;
|
|
60
|
+
language?: Language;
|
|
61
|
+
icons?: GenericIcon<"plus" | "minus" | "reset">;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
64
|
declare class ZoomControl extends SvelteComponentTyped<ZoomControlProps> {}
|
|
65
65
|
|
|
66
|
-
declare interface ToolbarProps {
|
|
67
|
-
app?: FastboardApp | null;
|
|
68
|
-
theme?: Theme;
|
|
69
|
-
language?: Language;
|
|
70
|
-
config?: ToolbarConfig;
|
|
71
|
-
}
|
|
72
|
-
|
|
66
|
+
declare interface ToolbarProps {
|
|
67
|
+
app?: FastboardApp | null;
|
|
68
|
+
theme?: Theme;
|
|
69
|
+
language?: Language;
|
|
70
|
+
config?: ToolbarConfig;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
73
|
declare class Toolbar extends SvelteComponentTyped<ToolbarProps> {}
|
|
74
74
|
|
|
75
|
-
declare interface PlayerControlProps {
|
|
76
|
-
player?: FastboardPlayer | null;
|
|
77
|
-
theme?: Theme;
|
|
78
|
-
language?: Language;
|
|
79
|
-
icons?: GenericIcon<"play" | "pause" | "loading">;
|
|
80
|
-
}
|
|
81
|
-
|
|
75
|
+
declare interface PlayerControlProps {
|
|
76
|
+
player?: FastboardPlayer | null;
|
|
77
|
+
theme?: Theme;
|
|
78
|
+
language?: Language;
|
|
79
|
+
icons?: GenericIcon<"play" | "pause" | "loading">;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
82
|
declare class PlayerControl extends SvelteComponentTyped<PlayerControlProps> {}
|
|
83
83
|
|
|
84
|
-
declare interface ReplayFastboardProps {
|
|
85
|
-
player?: FastboardPlayer | null;
|
|
86
|
-
theme?: Theme;
|
|
87
|
-
language?: Language;
|
|
88
|
-
containerRef?: (container: HTMLDivElement | null) => void;
|
|
89
|
-
}
|
|
90
|
-
declare class ReplayFastboard extends SvelteComponentTyped<ReplayFastboardProps> {
|
|
84
|
+
declare interface ReplayFastboardProps {
|
|
85
|
+
player?: FastboardPlayer | null;
|
|
86
|
+
theme?: Theme;
|
|
87
|
+
language?: Language;
|
|
88
|
+
containerRef?: (container: HTMLDivElement | null) => void;
|
|
89
|
+
}
|
|
90
|
+
declare class ReplayFastboard extends SvelteComponentTyped<ReplayFastboardProps> {
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
declare interface FastboardProps {
|
|
94
|
+
app?: FastboardApp | null;
|
|
95
|
+
theme?: Theme;
|
|
96
|
+
language?: Language;
|
|
97
|
+
containerRef?: (container: HTMLDivElement | null) => void;
|
|
98
|
+
config?: FastboardUIConfig;
|
|
99
|
+
}
|
|
100
|
+
declare class Fastboard extends SvelteComponentTyped<FastboardProps> {
|
|
91
101
|
}
|
|
92
102
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
103
|
+
interface AppInToolbar {
|
|
104
|
+
kind: string;
|
|
105
|
+
icon: string;
|
|
106
|
+
label: string;
|
|
107
|
+
onClick: (app: FastboardApp) => void;
|
|
108
|
+
}
|
|
109
|
+
declare class AppsInToolbar {
|
|
110
|
+
private _data;
|
|
111
|
+
_listeners: Array<(data: AppInToolbar[]) => void>;
|
|
112
|
+
constructor(_data: AppInToolbar[]);
|
|
113
|
+
get data(): AppInToolbar[];
|
|
114
|
+
get length(): number;
|
|
115
|
+
subscribe(fn: (data: AppInToolbar[]) => void): () => void;
|
|
116
|
+
push(...data: AppInToolbar[]): void;
|
|
117
|
+
insert(data: AppInToolbar, index: number): void;
|
|
118
|
+
delete(filter: (data: AppInToolbar) => boolean): void;
|
|
119
|
+
clear(): void;
|
|
101
120
|
}
|
|
102
121
|
|
|
103
|
-
interface AppInToolbar {
|
|
104
|
-
kind: string;
|
|
105
|
-
icon: string;
|
|
106
|
-
label: string;
|
|
107
|
-
onClick: (app: FastboardApp) => void;
|
|
108
|
-
}
|
|
109
|
-
declare class AppsInToolbar {
|
|
110
|
-
private _data;
|
|
111
|
-
_listeners: Array<(data: AppInToolbar[]) => void>;
|
|
112
|
-
constructor(_data: AppInToolbar[]);
|
|
113
|
-
get data(): AppInToolbar[];
|
|
114
|
-
get length(): number;
|
|
115
|
-
subscribe(fn: (data: AppInToolbar[]) => void): () => void;
|
|
116
|
-
push(...data: AppInToolbar[]): void;
|
|
117
|
-
insert(data: AppInToolbar, index: number): void;
|
|
118
|
-
delete(filter: (data: AppInToolbar) => boolean): void;
|
|
119
|
-
clear(): void;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
122
|
declare const apps: AppsInToolbar;
|
|
123
123
|
|
|
124
124
|
export { AppInToolbar, AppsInToolbar, Fastboard, FastboardProps, FastboardUIConfig, GenericIcon, I18nData, IconType, Language, PageControl, PageControlProps, PlayerControl, PlayerControlProps, RedoUndo, RedoUndoProps, ReplayFastboard, ReplayFastboardProps, SvelteAction, Theme, Toolbar, ToolbarConfig, ToolbarProps, ZoomControl, ZoomControlProps, apps };
|
package/dist/index.js
CHANGED
|
@@ -50,7 +50,7 @@ __export(src_exports, {
|
|
|
50
50
|
});
|
|
51
51
|
module.exports = __toCommonJS(src_exports);
|
|
52
52
|
|
|
53
|
-
// ../../node_modules/.pnpm/svelte@3.
|
|
53
|
+
// ../../node_modules/.pnpm/svelte@3.48.0/node_modules/svelte/internal/index.mjs
|
|
54
54
|
function noop() {
|
|
55
55
|
}
|
|
56
56
|
function assign(tar, src) {
|
|
@@ -217,9 +217,9 @@ function set_style(node, key, value, important) {
|
|
|
217
217
|
function toggle_class(element2, name10, toggle) {
|
|
218
218
|
element2.classList[toggle ? "add" : "remove"](name10);
|
|
219
219
|
}
|
|
220
|
-
function custom_event(type, detail, bubbles = false) {
|
|
220
|
+
function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
|
|
221
221
|
const e = document.createEvent("CustomEvent");
|
|
222
|
-
e.initCustomEvent(type, bubbles,
|
|
222
|
+
e.initCustomEvent(type, bubbles, cancelable, detail);
|
|
223
223
|
return e;
|
|
224
224
|
}
|
|
225
225
|
var current_component;
|
|
@@ -236,14 +236,16 @@ function onMount(fn) {
|
|
|
236
236
|
}
|
|
237
237
|
function createEventDispatcher() {
|
|
238
238
|
const component = get_current_component();
|
|
239
|
-
return (type, detail) => {
|
|
239
|
+
return (type, detail, { cancelable = false } = {}) => {
|
|
240
240
|
const callbacks = component.$$.callbacks[type];
|
|
241
241
|
if (callbacks) {
|
|
242
|
-
const event = custom_event(type, detail);
|
|
242
|
+
const event = custom_event(type, detail, { cancelable });
|
|
243
243
|
callbacks.slice().forEach((fn) => {
|
|
244
244
|
fn.call(component, event);
|
|
245
245
|
});
|
|
246
|
+
return !event.defaultPrevented;
|
|
246
247
|
}
|
|
248
|
+
return true;
|
|
247
249
|
};
|
|
248
250
|
}
|
|
249
251
|
function bubble(component, event) {
|
|
@@ -5516,7 +5518,7 @@ var ZoomControl = class extends SvelteComponent {
|
|
|
5516
5518
|
};
|
|
5517
5519
|
var ZoomControl_default = ZoomControl;
|
|
5518
5520
|
|
|
5519
|
-
// ../../node_modules/.pnpm/svelte@3.
|
|
5521
|
+
// ../../node_modules/.pnpm/svelte@3.48.0/node_modules/svelte/store/index.mjs
|
|
5520
5522
|
var subscriber_queue = [];
|
|
5521
5523
|
function writable(value, start = noop) {
|
|
5522
5524
|
let stop;
|
|
@@ -6798,6 +6800,11 @@ function get_each_context4(ctx, list, i) {
|
|
|
6798
6800
|
child_ctx[45] = constants_0.onClick;
|
|
6799
6801
|
const constants_1 = child_ctx[20] && child_ctx[20][child_ctx[44]];
|
|
6800
6802
|
child_ctx[46] = constants_1;
|
|
6803
|
+
const constants_2 = () => {
|
|
6804
|
+
child_ctx[0] && child_ctx[45](child_ctx[0]);
|
|
6805
|
+
tippy_hide_all();
|
|
6806
|
+
};
|
|
6807
|
+
child_ctx[47] = constants_2;
|
|
6801
6808
|
return child_ctx;
|
|
6802
6809
|
}
|
|
6803
6810
|
function create_if_block_8(ctx) {
|
|
@@ -6823,7 +6830,7 @@ function create_if_block_8(ctx) {
|
|
|
6823
6830
|
},
|
|
6824
6831
|
p(ctx2, dirty) {
|
|
6825
6832
|
const button_changes = dirty[0] & 32768 ? get_spread_update(button_spread_levels, [button_spread_levels[0], get_spread_object(ctx2[15])]) : {};
|
|
6826
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
6833
|
+
if (dirty[0] & 2 | dirty[1] & 524288) {
|
|
6827
6834
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6828
6835
|
}
|
|
6829
6836
|
button.$set(button_changes);
|
|
@@ -7801,7 +7808,7 @@ function create_if_block_12(ctx) {
|
|
|
7801
7808
|
dirty[0] & 16384 && { menu: ctx2[14] },
|
|
7802
7809
|
button_spread_levels[4]
|
|
7803
7810
|
]) : {};
|
|
7804
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
7811
|
+
if (dirty[0] & 2 | dirty[1] & 524288) {
|
|
7805
7812
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7806
7813
|
}
|
|
7807
7814
|
button.$set(button_changes);
|
|
@@ -7882,7 +7889,7 @@ function create_if_block6(ctx) {
|
|
|
7882
7889
|
button_changes.theme = ctx2[1];
|
|
7883
7890
|
if (dirty[0] & 8)
|
|
7884
7891
|
button_changes.disabled = ctx2[3];
|
|
7885
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
7892
|
+
if (dirty[0] & 2 | dirty[1] & 524288) {
|
|
7886
7893
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7887
7894
|
}
|
|
7888
7895
|
button.$set(button_changes);
|
|
@@ -7984,8 +7991,8 @@ function create_each_block4(ctx) {
|
|
|
7984
7991
|
append(button, t2);
|
|
7985
7992
|
if (!mounted) {
|
|
7986
7993
|
dispose = listen(button, "click", function() {
|
|
7987
|
-
if (is_function(ctx[
|
|
7988
|
-
|
|
7994
|
+
if (is_function(ctx[47]))
|
|
7995
|
+
ctx[47].apply(this, arguments);
|
|
7989
7996
|
});
|
|
7990
7997
|
mounted = true;
|
|
7991
7998
|
}
|
|
@@ -8390,7 +8397,7 @@ function create_fragment55(ctx) {
|
|
|
8390
8397
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8391
8398
|
dirty[0] & 262144 && { content: ctx2[18].clicker }
|
|
8392
8399
|
]) : {};
|
|
8393
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8400
|
+
if (dirty[0] & 258 | dirty[1] & 524288) {
|
|
8394
8401
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8395
8402
|
}
|
|
8396
8403
|
button0.$set(button0_changes);
|
|
@@ -8399,7 +8406,7 @@ function create_fragment55(ctx) {
|
|
|
8399
8406
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8400
8407
|
dirty[0] & 262144 && { content: ctx2[18].selector }
|
|
8401
8408
|
]) : {};
|
|
8402
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8409
|
+
if (dirty[0] & 258 | dirty[1] & 524288) {
|
|
8403
8410
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8404
8411
|
}
|
|
8405
8412
|
button1.$set(button1_changes);
|
|
@@ -8409,7 +8416,7 @@ function create_fragment55(ctx) {
|
|
|
8409
8416
|
dirty[0] & 262144 && { content: ctx2[18].pencil },
|
|
8410
8417
|
dirty[0] & 2048 && { menu: ctx2[11] }
|
|
8411
8418
|
]) : {};
|
|
8412
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8419
|
+
if (dirty[0] & 258 | dirty[1] & 524288) {
|
|
8413
8420
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8414
8421
|
}
|
|
8415
8422
|
button2.$set(button2_changes);
|
|
@@ -8419,7 +8426,7 @@ function create_fragment55(ctx) {
|
|
|
8419
8426
|
dirty[0] & 262144 && { content: ctx2[18].text },
|
|
8420
8427
|
dirty[0] & 4096 && { menu: ctx2[12] }
|
|
8421
8428
|
]) : {};
|
|
8422
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8429
|
+
if (dirty[0] & 258 | dirty[1] & 524288) {
|
|
8423
8430
|
button3_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8424
8431
|
}
|
|
8425
8432
|
button3.$set(button3_changes);
|
|
@@ -8429,7 +8436,7 @@ function create_fragment55(ctx) {
|
|
|
8429
8436
|
dirty[0] & 512 && { content: ctx2[9].shapes },
|
|
8430
8437
|
dirty[0] & 8192 && { menu: ctx2[13] }
|
|
8431
8438
|
]) : {};
|
|
8432
|
-
if (dirty[0] & 1410 | dirty[1] &
|
|
8439
|
+
if (dirty[0] & 1410 | dirty[1] & 524288) {
|
|
8433
8440
|
button4_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8434
8441
|
}
|
|
8435
8442
|
button4.$set(button4_changes);
|
|
@@ -8438,7 +8445,7 @@ function create_fragment55(ctx) {
|
|
|
8438
8445
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8439
8446
|
dirty[0] & 262144 && { content: ctx2[18].eraser }
|
|
8440
8447
|
]) : {};
|
|
8441
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8448
|
+
if (dirty[0] & 258 | dirty[1] & 524288) {
|
|
8442
8449
|
button5_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8443
8450
|
}
|
|
8444
8451
|
button5.$set(button5_changes);
|
|
@@ -8447,7 +8454,7 @@ function create_fragment55(ctx) {
|
|
|
8447
8454
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
8448
8455
|
dirty[0] & 512 && { content: ctx2[9].clear }
|
|
8449
8456
|
]) : {};
|
|
8450
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
8457
|
+
if (dirty[0] & 2 | dirty[1] & 524288) {
|
|
8451
8458
|
button6_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8452
8459
|
}
|
|
8453
8460
|
button6.$set(button6_changes);
|
|
@@ -9661,7 +9668,7 @@ function create_default_slot5(ctx) {
|
|
|
9661
9668
|
return {
|
|
9662
9669
|
c() {
|
|
9663
9670
|
t0 = text(t0_value);
|
|
9664
|
-
t1 = text("x\
|
|
9671
|
+
t1 = text("x\n ");
|
|
9665
9672
|
},
|
|
9666
9673
|
m(target, anchor) {
|
|
9667
9674
|
insert(target, t0, anchor);
|
|
@@ -10138,7 +10145,7 @@ function create_fragment58(ctx) {
|
|
|
10138
10145
|
mount_component(playercontrol, div1, null);
|
|
10139
10146
|
current = true;
|
|
10140
10147
|
if (!mounted) {
|
|
10141
|
-
dispose = listen(div0, "touchstart", tippy_hide_all, true);
|
|
10148
|
+
dispose = listen(div0, "touchstart", tippy_hide_all, { passive: true, capture: true });
|
|
10142
10149
|
mounted = true;
|
|
10143
10150
|
}
|
|
10144
10151
|
},
|
|
@@ -10489,7 +10496,7 @@ function create_fragment59(ctx) {
|
|
|
10489
10496
|
if_block3.m(div3, null);
|
|
10490
10497
|
current = true;
|
|
10491
10498
|
if (!mounted) {
|
|
10492
|
-
dispose = listen(div0, "touchstart", tippy_hide_all, true);
|
|
10499
|
+
dispose = listen(div0, "touchstart", tippy_hide_all, { passive: true, capture: true });
|
|
10493
10500
|
mounted = true;
|
|
10494
10501
|
}
|
|
10495
10502
|
},
|
|
@@ -10748,9 +10755,9 @@ function injectStyle(text2) {
|
|
|
10748
10755
|
}
|
|
10749
10756
|
}
|
|
10750
10757
|
|
|
10751
|
-
// inline-sass-content
|
|
10758
|
+
// inline-sass-content:./src/style.scss
|
|
10752
10759
|
var style_default = '.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}.tippy-box[data-theme~=light]{color:#26323d;box-shadow:0 0 20px 4px #9aa1b126,0 4px 80px -8px #24282f40,0 4px 4px -2px #5b5e6926;background-color:#fff}.tippy-box[data-theme~=light][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=light][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=light][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=light][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}.tippy-box[data-theme~=light]>.tippy-backdrop{background-color:#fff}.tippy-box[data-theme~=light]>.tippy-svg-arrow{fill:#fff}.fastboard-icon.light .fastboard-icon-stroke-color{stroke:var(--fastboard-color, #5d6066)}.fastboard-icon.light .fastboard-icon-fill-color{fill:var(--fastboard-color, #5d6066)}.fastboard-icon.light.is-active .fastboard-icon-stroke-color{stroke:var(--fastboard-active-color, #3381ff)}.fastboard-icon.light.is-active .fastboard-icon-fill-color{fill:var(--fastboard-active-color, #3381ff)}.fastboard-icon.dark .fastboard-icon-stroke-color{stroke:var(--fastboard-color, #7b7e84)}.fastboard-icon.dark .fastboard-icon-fill-color{fill:var(--fastboard-color, #7b7e84)}.fastboard-icon.dark.is-active .fastboard-icon-stroke-color{stroke:var(--fastboard-active-color, #2867cc)}.fastboard-icon.dark.is-active .fastboard-icon-fill-color{fill:var(--fastboard-active-color, #2867cc)}.fastboard-redo-undo{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-redo-undo *{box-sizing:inherit}.fastboard-redo-undo.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-redo-undo.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-redo-undo-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-redo-undo-btn svg,.fastboard-redo-undo-btn img{width:100%;height:100%;pointer-events:none}.fastboard-redo-undo-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-redo-undo-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-redo-undo-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-zoom-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-zoom-control *{box-sizing:inherit}.fastboard-zoom-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-zoom-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-zoom-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-zoom-control-btn svg,.fastboard-zoom-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-zoom-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-zoom-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-zoom-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-zoom-control-text{font-variant-numeric:tabular-nums}.fastboard-page-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.fastboard-page-control *{box-sizing:inherit}.fastboard-page-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-page-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-page-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-page-control-btn svg,.fastboard-page-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-page-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-page-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-page-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-page-control-text{font-variant-numeric:tabular-nums}.fastboard-player-control{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;padding:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);width:100%}.fastboard-player-control *{box-sizing:inherit}.fastboard-player-control.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-player-control.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-player-control-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:0;width:24px;height:24px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0;display:inline}.fastboard-player-control-btn svg,.fastboard-player-control-btn img{width:100%;height:100%;pointer-events:none}.fastboard-player-control-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-player-control-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-player-control-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-player-control-btn.loading svg,.fastboard-player-control-btn.loading img{animation:fastboard-player-control-rotate .5s linear infinite}@keyframes fastboard-player-control-rotate{to{transform:rotate(360deg)}}.fastboard-player-control-btn.speed{width:auto;padding:4px;text-align:right;font-size:14px;font-variant-numeric:tabular-nums}.fastboard-player-control-btn.is-active.light{color:var(--fastboard-active-color, #3381ff)}.fastboard-player-control-btn.is-active.dark{color:var(--fastboard-active-color, #2867cc)}.fastboard-player-control-speed-text,.fastboard-player-control-progress{font-size:14px;font-variant-numeric:tabular-nums;line-height:16px}.fastboard-player-control-progress{display:inline-flex;align-items:center}.fastboard-player-control-panel.speed{display:flex;flex-direction:column}.fastboard-toolbar{height:100%;display:flex;align-items:center;position:relative;transform:translate(0);transition:transform .5s cubic-bezier(.34,1.56,.64,1);pointer-events:none}.fastboard-toolbar.collapsed{transform:translate(-100%)}.fastboard-toolbar-handler{position:absolute;left:100%;width:17px;font-size:0;border-radius:3px;cursor:pointer;pointer-events:auto}.fastboard-toolbar-handler:focus-within{outline:2px solid -webkit-focus-ring-color}.fastboard-toolbar-handler input[type=checkbox]{position:absolute;top:0;left:0;appearance:none;margin:0;width:100%;height:100%;cursor:pointer;opacity:0;z-index:-1}.fastboard-toolbar-handler svg{opacity:0;transition:opacity .5s 1s;pointer-events:none}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-bg-color{fill:var(--fastboard-bg-color, rgba(255, 255, 255, .9))}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-border-color{stroke:var(--fastboard-border-color, #e5e8f0)}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-image-stroke-color{stroke:var(--fastboard-color, #5d6066)}.fastboard-toolbar-handler.light .fastboard-toolbar-handler-image-fill-color{fill:var(--fastboard-color, #5d6066)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-bg-color{fill:var(--fastboard-bg-color, rgba(20, 24, 30, .9))}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-border-color{stroke:var(--fastboard-border-color, #383b42)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-image-stroke-color{stroke:var(--fastboard-color, #7b7e84)}.fastboard-toolbar-handler.dark .fastboard-toolbar-handler-image-fill-color{fill:var(--fastboard-color, #7b7e84)}.fastboard-toolbar:hover .fastboard-toolbar-handler svg,.fastboard-toolbar.collapsed .fastboard-toolbar-handler svg{opacity:1;transition:opacity .2s}.fastboard-toolbar-btn{appearance:none;cursor:pointer;margin:0;border:0;padding:4px;width:32px;height:32px;background-color:#0000;border-radius:4px;font-size:0;line-height:1;flex-shrink:0}.fastboard-toolbar-btn svg,.fastboard-toolbar-btn img{width:100%;height:100%;pointer-events:none}.fastboard-toolbar-btn:disabled{opacity:.5;cursor:not-allowed}.fastboard-toolbar-btn.light:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-toolbar-btn.dark:not(:disabled):hover{background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-slider{box-sizing:border-box;position:relative;width:100%;height:100%;display:flex;align-items:center}.fastboard-slider *{box-sizing:inherit}.fastboard-slider-track{appearance:none;background:rgba(0,0,0,0);border:0;border-radius:26px;flex:1;display:block;height:19px;margin:0;width:0;min-width:0;padding:0;transition:box-shadow .3s ease;cursor:pointer;touch-action:manipulation}.fastboard-slider-track::-webkit-slider-runnable-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none;background-image:linear-gradient(to right,currentColor var(--value, 0%),transparent var(--value, 0%))}.fastboard-slider-track::-webkit-slider-thumb{background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab;appearance:none;margin-top:-4px}.fastboard-slider-track::-moz-range-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none}.fastboard-slider-track::-moz-range-thumb{appearance:none;background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab}.fastboard-slider-track::-moz-range-progress{background:currentColor;border-radius:2.5px;height:5px}.fastboard-slider-track::-ms-track{border:0;border-radius:2.5px;height:5px;transition:box-shadow .3s ease;user-select:none;background-color:#80808040;-webkit-user-select:none;color:#0000}.fastboard-slider-track::-ms-thumb{appearance:none;background:#fff;border:0;border-radius:100%;box-shadow:0 1px 1px #23292f26,0 0 0 1px #23292f33;width:13px;height:13px;position:relative;transition:all .2s ease;cursor:grab;margin-top:0}.fastboard-slider-track::-ms-tooltip{display:none}.fastboard-slider-track::-moz-focus-outer{border:0}.fastboard-slider-track.grabbing::-webkit-slider-thumb{cursor:grabbing}.fastboard-slider-track.light{color:var(--fastboard-active-color, #3381ff)}.fastboard-slider-track.dark{color:var(--fastboard-active-color, #2867cc)}.fastboard-toolbar-contents{box-sizing:border-box;display:inline-flex;align-items:center;gap:4px;border:1px solid;border-radius:4px;font-size:14px;font-family:system-ui;pointer-events:auto;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);padding:2px 0;gap:0;flex-direction:column}.fastboard-toolbar-contents *{box-sizing:inherit}.fastboard-toolbar-contents.light{color:var(--fastboard-color, #5d6066);background-color:var(--fastboard-bg-color, rgba(255, 255, 255, .9));border-color:var(--fastboard-border-color, #e5e8f0)}.fastboard-toolbar-contents.dark{color:var(--fastboard-color, #7b7e84);background-color:var(--fastboard-bg-color, rgba(20, 24, 30, .9));border-color:var(--fastboard-border-color, #383b42)}.fastboard-toolbar-contents>.fastboard-toolbar-btn{margin:2px 4px}.fastboard-toolbar-btn-interactive{position:relative}.fastboard-toolbar-triangle{width:0px;height:0px;border-bottom:4px solid;border-left:4px solid rgba(0,0,0,0);position:absolute;bottom:0;right:0}.fastboard-toolbar-btn:focus+.fastboard-toolbar-triangle{opacity:0}.fastboard-toolbar-scrollable{padding:2px 4px;overflow:hidden;display:flex;flex-direction:column;gap:4px}.fastboard-toolbar-tooltip{display:inline-flex;align-items:center;gap:4px}.fastboard-toolbar-hotkey{display:inline-flex;margin-right:-4px;width:24px;height:24px;align-items:center;justify-content:center;background-color:#ffffff1a;border-radius:4px}.fastboard-toolbar-panel-wrapper{display:none}.fastboard-toolbar-panel{display:flex;flex-direction:column}.fastboard-toolbar-panel-divider{height:.5px;width:100%;margin:4px 0;background-color:#ffffff26}.fastboard-toolbar-colors,.fastboard-toolbar-shapes{display:grid;align-self:center;grid-template:repeat(2,1fr)/repeat(4,1fr);align-items:center;justify-items:center;gap:4px}.fastboard-toolbar-shape-btn,.fastboard-toolbar-color-btn{width:24px;height:24px;padding:0;display:inline-flex;align-items:center;justify-content:center}.fastboard-toolbar-color-btn{border:1px solid rgba(0,0,0,0)}.fastboard-toolbar-color-btn.light.is-active{border-color:var(--fastboard-active-color, #3381ff)}.fastboard-toolbar-color-btn.dark.is-active{border-color:var(--fastboard-active-color, #2867cc)}.fastboard-toolbar-color-item{display:inline-block;width:16px;height:16px;border-radius:4px;pointer-events:none}.fastboard-toolbar-panel.apps{display:grid;grid-template-columns:repeat(min(var(--n, 3),3),minmax(max-content,1fr));gap:4px}.fastboard-toolbar-app-btn{margin:0;border:0;border-radius:2px;padding:4px 6px;background-color:#0000;display:inline-flex;flex-direction:column;align-items:center;gap:4px;font-size:0}.fastboard-toolbar-app-btn:disabled{opacity:.8}.fastboard-toolbar-app-btn-icon{width:32px;height:32px;pointer-events:none}.fastboard-toolbar-app-btn-text{font-size:14px;line-height:1;max-width:100%;overflow:hidden;text-overflow:ellipsis}.fastboard-toolbar-app-btn.is-loading{cursor:progress}.fastboard-toolbar-app-btn.is-failed{cursor:not-allowed;opacity:.5}.fastboard-toolbar-app-btn:not(:disabled,.is-loading,.is-failed):hover.light{cursor:pointer;background-color:var(--fastboard-hover-bg-color, #ebf2ff)}.fastboard-toolbar-app-btn-text.light{color:var(--fastboard-color, #5d6066)}.fastboard-toolbar-app-btn:not(:disabled,.is-loading,.is-failed):hover.dark{cursor:pointer;background-color:var(--fastboard-hover-bg-color, #383b42)}.fastboard-toolbar-app-btn-text.dark{color:var(--fastboard-color, #7b7e84)}.fastboard-root{position:relative;width:100%;height:100%;overflow:hidden}.fastboard-view{position:absolute;top:0;left:0;width:100%;height:100%}.fastboard-left{display:flex;align-items:center;position:absolute;bottom:62px;top:8px;left:0;z-index:200;pointer-events:none}.fastboard-left .fastboard-toolbar{padding-left:16px}.fastboard-bottom-left,.fastboard-bottom,.fastboard-bottom-right{display:flex;gap:10px;position:absolute;bottom:8px;left:8px;padding:8px;z-index:200;pointer-events:none}.fastboard-bottom-right{left:auto;right:8px}.fastboard-bottom{right:8px}.fastboard-left.hidden *,.fastboard-bottom.hidden *,.fastboard-bottom-left.hidden *,.fastboard-bottom-right.hidden *{opacity:0;pointer-events:none}.fastboard-tip{font-family:inherit;color:#d5d9e0;background-color:#03060d}.fastboard-tip[data-placement^=right]>.tippy-arrow:before{top:4px;border-width:4px;border-right-color:#03060d}.fastboard-tip[data-placement^=top]>.tippy-arrow:before{left:4px;border-width:4px;border-top-color:#03060d}.fastboard-panel .tippy-content{padding:8px}';
|
|
10753
10760
|
|
|
10754
|
-
// inline-sass-stub
|
|
10761
|
+
// inline-sass-stub:./src/style.scss
|
|
10755
10762
|
injectStyle(style_default);
|
|
10756
10763
|
//# sourceMappingURL=index.js.map
|