@netless/fastboard-ui 0.3.5 → 0.3.7
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 +11 -11
- package/dist/index.js +179 -153
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +168 -118
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +153 -111
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/actions/scroll.ts +1 -1
- package/src/components/Button/Button.svelte.d.ts +1 -2
- package/src/components/Toolbar/README.md +1 -1
- package/src/components/Toolbar/Toolbar.scss +1 -1
- package/src/components/Toolbar/components/Shapes.svelte +1 -0
- package/src/components/Toolbar/components/StrokeColor.svelte +1 -0
- package/src/components/Toolbar/components/TextColor.svelte +1 -0
- package/src/helpers/index.ts +12 -12
- package/src/index.ts +8 -4
- package/src/style.scss +4 -0
package/dist/index.svelte.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { is_client, SvelteComponent, init, safe_not_equal, not_equal, element, create_component, space, attr, insert, mount_component, append, transition_in, transition_out, detach, destroy_component,
|
|
1
|
+
import { is_client, SvelteComponent, init, safe_not_equal, not_equal, element, create_component, space, attr, insert, mount_component, append, transition_in, transition_out, detach, destroy_component, svg_element, set_style, toggle_class, listen, action_destroyer, run_all, component_subscribe, group_outros, check_outros, update_keyed_each, outro_and_destroy_block, noop, subscribe, empty, text, set_data, binding_callbacks, assign, get_spread_update, get_spread_object, is_function, destroy_each, bubble, src_url_equal, set_store_value, create_slot, update_slot_base, get_all_dirty_from_scope, get_slot_changes, set_input_value, to_number, destroy_block, construct_svelte_component } from 'svelte/internal';
|
|
2
2
|
import Tippy from 'tippy.js';
|
|
3
3
|
import { writable } from 'svelte/store';
|
|
4
4
|
import { onMount, createEventDispatcher } from 'svelte';
|
|
@@ -22,6 +22,26 @@ var __spreadValues = (a, b) => {
|
|
|
22
22
|
return a;
|
|
23
23
|
};
|
|
24
24
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __publicField = (obj, key, value) => {
|
|
26
|
+
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
27
|
+
return value;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// inline-sass-helper:inline-sass-style-helper.js
|
|
31
|
+
function injectStyle(text4) {
|
|
32
|
+
if (typeof document !== "undefined") {
|
|
33
|
+
var style = document.createElement("style");
|
|
34
|
+
var node = document.createTextNode(text4);
|
|
35
|
+
style.appendChild(node);
|
|
36
|
+
document.head.appendChild(style);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// inline-sass-content:./src/style.scss
|
|
41
|
+
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-visible{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}.netless-whiteboard:focus-visible{outline:none}';
|
|
42
|
+
|
|
43
|
+
// inline-sass-stub:./src/style.scss
|
|
44
|
+
injectStyle(style_default);
|
|
25
45
|
function create_else_block(ctx) {
|
|
26
46
|
let current;
|
|
27
47
|
const default_slot_template = ctx[4].default;
|
|
@@ -40,7 +60,14 @@ function create_else_block(ctx) {
|
|
|
40
60
|
p(ctx2, dirty) {
|
|
41
61
|
if (default_slot) {
|
|
42
62
|
if (default_slot.p && (!current || dirty & 8)) {
|
|
43
|
-
update_slot_base(
|
|
63
|
+
update_slot_base(
|
|
64
|
+
default_slot,
|
|
65
|
+
default_slot_template,
|
|
66
|
+
ctx2,
|
|
67
|
+
ctx2[3],
|
|
68
|
+
!current ? get_all_dirty_from_scope(ctx2[3]) : get_slot_changes(default_slot_template, ctx2[3], dirty, null),
|
|
69
|
+
null
|
|
70
|
+
);
|
|
44
71
|
}
|
|
45
72
|
}
|
|
46
73
|
},
|
|
@@ -2871,7 +2898,14 @@ function create_else_block_1(ctx) {
|
|
|
2871
2898
|
p(ctx2, dirty) {
|
|
2872
2899
|
if (default_slot) {
|
|
2873
2900
|
if (default_slot.p && (!current || dirty & 256)) {
|
|
2874
|
-
update_slot_base(
|
|
2901
|
+
update_slot_base(
|
|
2902
|
+
default_slot,
|
|
2903
|
+
default_slot_template,
|
|
2904
|
+
ctx2,
|
|
2905
|
+
ctx2[8],
|
|
2906
|
+
!current ? get_all_dirty_from_scope(ctx2[8]) : get_slot_changes(default_slot_template, ctx2[8], dirty, null),
|
|
2907
|
+
null
|
|
2908
|
+
);
|
|
2875
2909
|
}
|
|
2876
2910
|
}
|
|
2877
2911
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
@@ -3002,7 +3036,14 @@ function create_else_block2(ctx) {
|
|
|
3002
3036
|
p(ctx2, dirty) {
|
|
3003
3037
|
if (default_slot) {
|
|
3004
3038
|
if (default_slot.p && (!current || dirty & 256)) {
|
|
3005
|
-
update_slot_base(
|
|
3039
|
+
update_slot_base(
|
|
3040
|
+
default_slot,
|
|
3041
|
+
default_slot_template,
|
|
3042
|
+
ctx2,
|
|
3043
|
+
ctx2[8],
|
|
3044
|
+
!current ? get_all_dirty_from_scope(ctx2[8]) : get_slot_changes(default_slot_template, ctx2[8], dirty, null),
|
|
3045
|
+
null
|
|
3046
|
+
);
|
|
3006
3047
|
}
|
|
3007
3048
|
}
|
|
3008
3049
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
@@ -3098,7 +3139,14 @@ function create_if_block_1(ctx) {
|
|
|
3098
3139
|
p(ctx2, dirty) {
|
|
3099
3140
|
if (default_slot) {
|
|
3100
3141
|
if (default_slot.p && (!current || dirty & 256)) {
|
|
3101
|
-
update_slot_base(
|
|
3142
|
+
update_slot_base(
|
|
3143
|
+
default_slot,
|
|
3144
|
+
default_slot_template,
|
|
3145
|
+
ctx2,
|
|
3146
|
+
ctx2[8],
|
|
3147
|
+
!current ? get_all_dirty_from_scope(ctx2[8]) : get_slot_changes(default_slot_template, ctx2[8], dirty, null),
|
|
3148
|
+
null
|
|
3149
|
+
);
|
|
3102
3150
|
}
|
|
3103
3151
|
}
|
|
3104
3152
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
@@ -4874,7 +4922,7 @@ var scrollTop = function(node, value) {
|
|
|
4874
4922
|
let timer = 0;
|
|
4875
4923
|
function on_scroll() {
|
|
4876
4924
|
clearTimeout(timer);
|
|
4877
|
-
timer = setTimeout(() => value.set(node.scrollTop), 200);
|
|
4925
|
+
timer = window.setTimeout(() => value.set(node.scrollTop), 200);
|
|
4878
4926
|
}
|
|
4879
4927
|
node.addEventListener("scroll", on_scroll);
|
|
4880
4928
|
let unsubscribe = value.subscribe(listener);
|
|
@@ -4904,7 +4952,7 @@ var countdown_default = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3d
|
|
|
4904
4952
|
var AppsInToolbar = class {
|
|
4905
4953
|
constructor(_data) {
|
|
4906
4954
|
this._data = _data;
|
|
4907
|
-
this
|
|
4955
|
+
__publicField(this, "_listeners", []);
|
|
4908
4956
|
}
|
|
4909
4957
|
get data() {
|
|
4910
4958
|
return this._data;
|
|
@@ -5271,7 +5319,7 @@ function create_each_block(key_1, ctx) {
|
|
|
5271
5319
|
span = element("span");
|
|
5272
5320
|
t = space();
|
|
5273
5321
|
attr(span, "class", "fastboard-toolbar-color-item");
|
|
5274
|
-
set_style(span, "background-color", ctx[7]
|
|
5322
|
+
set_style(span, "background-color", ctx[7]);
|
|
5275
5323
|
attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
|
|
5276
5324
|
attr(button, "data-color-key", ctx[7]);
|
|
5277
5325
|
button.disabled = ctx[1];
|
|
@@ -5418,7 +5466,7 @@ function create_each_block2(key_1, ctx) {
|
|
|
5418
5466
|
span = element("span");
|
|
5419
5467
|
t = space();
|
|
5420
5468
|
attr(span, "class", "fastboard-toolbar-color-item");
|
|
5421
|
-
set_style(span, "background-color", ctx[7]
|
|
5469
|
+
set_style(span, "background-color", ctx[7]);
|
|
5422
5470
|
attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
|
|
5423
5471
|
attr(button, "data-color-key", ctx[7]);
|
|
5424
5472
|
button.disabled = ctx[1];
|
|
@@ -5563,7 +5611,7 @@ function create_else_block5(ctx) {
|
|
|
5563
5611
|
return { props: { theme: ctx2[0] } };
|
|
5564
5612
|
}
|
|
5565
5613
|
if (switch_value) {
|
|
5566
|
-
switch_instance =
|
|
5614
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
5567
5615
|
}
|
|
5568
5616
|
return {
|
|
5569
5617
|
c() {
|
|
@@ -5572,9 +5620,8 @@ function create_else_block5(ctx) {
|
|
|
5572
5620
|
switch_instance_anchor = empty();
|
|
5573
5621
|
},
|
|
5574
5622
|
m(target, anchor) {
|
|
5575
|
-
if (switch_instance)
|
|
5623
|
+
if (switch_instance)
|
|
5576
5624
|
mount_component(switch_instance, target, anchor);
|
|
5577
|
-
}
|
|
5578
5625
|
insert(target, switch_instance_anchor, anchor);
|
|
5579
5626
|
current = true;
|
|
5580
5627
|
},
|
|
@@ -5592,7 +5639,7 @@ function create_else_block5(ctx) {
|
|
|
5592
5639
|
check_outros();
|
|
5593
5640
|
}
|
|
5594
5641
|
if (switch_value) {
|
|
5595
|
-
switch_instance =
|
|
5642
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
5596
5643
|
create_component(switch_instance.$$.fragment);
|
|
5597
5644
|
transition_in(switch_instance.$$.fragment, 1);
|
|
5598
5645
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -5634,7 +5681,7 @@ function create_if_block5(ctx) {
|
|
|
5634
5681
|
};
|
|
5635
5682
|
}
|
|
5636
5683
|
if (switch_value) {
|
|
5637
|
-
switch_instance =
|
|
5684
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
5638
5685
|
}
|
|
5639
5686
|
return {
|
|
5640
5687
|
c() {
|
|
@@ -5643,9 +5690,8 @@ function create_if_block5(ctx) {
|
|
|
5643
5690
|
switch_instance_anchor = empty();
|
|
5644
5691
|
},
|
|
5645
5692
|
m(target, anchor) {
|
|
5646
|
-
if (switch_instance)
|
|
5693
|
+
if (switch_instance)
|
|
5647
5694
|
mount_component(switch_instance, target, anchor);
|
|
5648
|
-
}
|
|
5649
5695
|
insert(target, switch_instance_anchor, anchor);
|
|
5650
5696
|
current = true;
|
|
5651
5697
|
},
|
|
@@ -5663,7 +5709,7 @@ function create_if_block5(ctx) {
|
|
|
5663
5709
|
check_outros();
|
|
5664
5710
|
}
|
|
5665
5711
|
if (switch_value) {
|
|
5666
|
-
switch_instance =
|
|
5712
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
5667
5713
|
create_component(switch_instance.$$.fragment);
|
|
5668
5714
|
transition_in(switch_instance.$$.fragment, 1);
|
|
5669
5715
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -5772,7 +5818,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
5772
5818
|
content: tooltip(ctx[6][ctx[12]], ctx[2][ctx[12]]),
|
|
5773
5819
|
placement: "top"
|
|
5774
5820
|
});
|
|
5775
|
-
if (dirty & 25) {
|
|
5821
|
+
if (!current || dirty & 25) {
|
|
5776
5822
|
toggle_class(button, "is-active", ctx[13]);
|
|
5777
5823
|
}
|
|
5778
5824
|
},
|
|
@@ -5979,19 +6025,18 @@ var Shapes_default = Shapes;
|
|
|
5979
6025
|
// src/components/Toolbar/components/Contents.svelte
|
|
5980
6026
|
function get_each_context4(ctx, list, i) {
|
|
5981
6027
|
const child_ctx = ctx.slice();
|
|
5982
|
-
child_ctx[
|
|
5983
|
-
const constants_0 = child_ctx[
|
|
5984
|
-
child_ctx[
|
|
5985
|
-
child_ctx[
|
|
5986
|
-
child_ctx[
|
|
5987
|
-
child_ctx[
|
|
5988
|
-
const constants_1 = child_ctx[20] && child_ctx[20][child_ctx[
|
|
5989
|
-
child_ctx[
|
|
5990
|
-
const constants_2 = ()
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
child_ctx[47] = constants_2;
|
|
6028
|
+
child_ctx[42] = list[i];
|
|
6029
|
+
const constants_0 = child_ctx[42];
|
|
6030
|
+
child_ctx[43] = constants_0.icon;
|
|
6031
|
+
child_ctx[44] = constants_0.label;
|
|
6032
|
+
child_ctx[45] = constants_0.kind;
|
|
6033
|
+
child_ctx[46] = constants_0.onClick;
|
|
6034
|
+
const constants_1 = child_ctx[20] && child_ctx[20][child_ctx[45]];
|
|
6035
|
+
child_ctx[47] = constants_1;
|
|
6036
|
+
const constants_2 = function func() {
|
|
6037
|
+
return ctx[38](child_ctx[46]);
|
|
6038
|
+
};
|
|
6039
|
+
child_ctx[48] = constants_2;
|
|
5995
6040
|
return child_ctx;
|
|
5996
6041
|
}
|
|
5997
6042
|
function create_if_block_8(ctx) {
|
|
@@ -6017,7 +6062,7 @@ function create_if_block_8(ctx) {
|
|
|
6017
6062
|
},
|
|
6018
6063
|
p(ctx2, dirty) {
|
|
6019
6064
|
const button_changes = dirty[0] & 32768 ? get_spread_update(button_spread_levels, [button_spread_levels[0], get_spread_object(ctx2[15])]) : {};
|
|
6020
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
6065
|
+
if (dirty[0] & 2 | dirty[1] & 1048576) {
|
|
6021
6066
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6022
6067
|
}
|
|
6023
6068
|
button.$set(button_changes);
|
|
@@ -6603,7 +6648,7 @@ function create_else_block_12(ctx) {
|
|
|
6603
6648
|
return { props: { theme: ctx2[1] } };
|
|
6604
6649
|
}
|
|
6605
6650
|
if (switch_value) {
|
|
6606
|
-
switch_instance =
|
|
6651
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
6607
6652
|
}
|
|
6608
6653
|
return {
|
|
6609
6654
|
c() {
|
|
@@ -6612,9 +6657,8 @@ function create_else_block_12(ctx) {
|
|
|
6612
6657
|
switch_instance_anchor = empty();
|
|
6613
6658
|
},
|
|
6614
6659
|
m(target, anchor) {
|
|
6615
|
-
if (switch_instance)
|
|
6660
|
+
if (switch_instance)
|
|
6616
6661
|
mount_component(switch_instance, target, anchor);
|
|
6617
|
-
}
|
|
6618
6662
|
insert(target, switch_instance_anchor, anchor);
|
|
6619
6663
|
current = true;
|
|
6620
6664
|
},
|
|
@@ -6632,7 +6676,7 @@ function create_else_block_12(ctx) {
|
|
|
6632
6676
|
check_outros();
|
|
6633
6677
|
}
|
|
6634
6678
|
if (switch_value) {
|
|
6635
|
-
switch_instance =
|
|
6679
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
6636
6680
|
create_component(switch_instance.$$.fragment);
|
|
6637
6681
|
transition_in(switch_instance.$$.fragment, 1);
|
|
6638
6682
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -6674,7 +6718,7 @@ function create_if_block_3(ctx) {
|
|
|
6674
6718
|
};
|
|
6675
6719
|
}
|
|
6676
6720
|
if (switch_value) {
|
|
6677
|
-
switch_instance =
|
|
6721
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
6678
6722
|
}
|
|
6679
6723
|
return {
|
|
6680
6724
|
c() {
|
|
@@ -6683,9 +6727,8 @@ function create_if_block_3(ctx) {
|
|
|
6683
6727
|
switch_instance_anchor = empty();
|
|
6684
6728
|
},
|
|
6685
6729
|
m(target, anchor) {
|
|
6686
|
-
if (switch_instance)
|
|
6730
|
+
if (switch_instance)
|
|
6687
6731
|
mount_component(switch_instance, target, anchor);
|
|
6688
|
-
}
|
|
6689
6732
|
insert(target, switch_instance_anchor, anchor);
|
|
6690
6733
|
current = true;
|
|
6691
6734
|
},
|
|
@@ -6703,7 +6746,7 @@ function create_if_block_3(ctx) {
|
|
|
6703
6746
|
check_outros();
|
|
6704
6747
|
}
|
|
6705
6748
|
if (switch_value) {
|
|
6706
|
-
switch_instance =
|
|
6749
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
6707
6750
|
create_component(switch_instance.$$.fragment);
|
|
6708
6751
|
transition_in(switch_instance.$$.fragment, 1);
|
|
6709
6752
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -6995,7 +7038,7 @@ function create_if_block_12(ctx) {
|
|
|
6995
7038
|
dirty[0] & 16384 && { menu: ctx2[14] },
|
|
6996
7039
|
button_spread_levels[4]
|
|
6997
7040
|
]) : {};
|
|
6998
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
7041
|
+
if (dirty[0] & 2 | dirty[1] & 1048576) {
|
|
6999
7042
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7000
7043
|
}
|
|
7001
7044
|
button.$set(button_changes);
|
|
@@ -7076,7 +7119,7 @@ function create_if_block6(ctx) {
|
|
|
7076
7119
|
button_changes.theme = ctx2[1];
|
|
7077
7120
|
if (dirty[0] & 8)
|
|
7078
7121
|
button_changes.disabled = ctx2[3];
|
|
7079
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
7122
|
+
if (dirty[0] & 2 | dirty[1] & 1048576) {
|
|
7080
7123
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7081
7124
|
}
|
|
7082
7125
|
button.$set(button_changes);
|
|
@@ -7138,7 +7181,7 @@ function create_each_block4(ctx) {
|
|
|
7138
7181
|
let img_title_value;
|
|
7139
7182
|
let t0;
|
|
7140
7183
|
let span;
|
|
7141
|
-
let t1_value = ctx[
|
|
7184
|
+
let t1_value = ctx[44] + "";
|
|
7142
7185
|
let t1;
|
|
7143
7186
|
let span_class_value;
|
|
7144
7187
|
let t2;
|
|
@@ -7157,17 +7200,17 @@ function create_each_block4(ctx) {
|
|
|
7157
7200
|
t1 = text(t1_value);
|
|
7158
7201
|
t2 = space();
|
|
7159
7202
|
attr(img, "class", img_class_value = name5 + "-app-btn-icon " + ctx[1]);
|
|
7160
|
-
if (!src_url_equal(img.src, img_src_value = ctx[
|
|
7203
|
+
if (!src_url_equal(img.src, img_src_value = ctx[43]))
|
|
7161
7204
|
attr(img, "src", img_src_value);
|
|
7162
|
-
attr(img, "alt", img_alt_value = ctx[
|
|
7163
|
-
attr(img, "title", img_title_value = ctx[
|
|
7205
|
+
attr(img, "alt", img_alt_value = ctx[45]);
|
|
7206
|
+
attr(img, "title", img_title_value = ctx[44]);
|
|
7164
7207
|
attr(span, "class", span_class_value = name5 + "-app-btn-text " + ctx[1]);
|
|
7165
|
-
attr(button, "class", button_class_value = name5 + "-app-btn " + ctx[
|
|
7166
|
-
attr(button, "title", button_title_value = ctx[
|
|
7167
|
-
attr(button, "data-app-kind", button_data_app_kind_value = ctx[
|
|
7168
|
-
button.disabled = button_disabled_value = ctx[
|
|
7169
|
-
toggle_class(button, "is-loading", ctx[
|
|
7170
|
-
toggle_class(button, "is-failed", ctx[
|
|
7208
|
+
attr(button, "class", button_class_value = name5 + "-app-btn " + ctx[45] + " " + ctx[1]);
|
|
7209
|
+
attr(button, "title", button_title_value = ctx[44] + (ctx[47] && ctx[47].reason ? ": " + ctx[47].reason : ""));
|
|
7210
|
+
attr(button, "data-app-kind", button_data_app_kind_value = ctx[42].kind);
|
|
7211
|
+
button.disabled = button_disabled_value = ctx[47] && ctx[47].status !== "idle";
|
|
7212
|
+
toggle_class(button, "is-loading", ctx[47] && ctx[47].status === "loading");
|
|
7213
|
+
toggle_class(button, "is-failed", ctx[47] && ctx[47].status === "failed");
|
|
7171
7214
|
},
|
|
7172
7215
|
m(target, anchor) {
|
|
7173
7216
|
insert(target, button, anchor);
|
|
@@ -7178,8 +7221,8 @@ function create_each_block4(ctx) {
|
|
|
7178
7221
|
append(button, t2);
|
|
7179
7222
|
if (!mounted) {
|
|
7180
7223
|
dispose = listen(button, "click", function() {
|
|
7181
|
-
if (is_function(ctx[
|
|
7182
|
-
ctx[
|
|
7224
|
+
if (is_function(ctx[48]))
|
|
7225
|
+
ctx[48].apply(this, arguments);
|
|
7183
7226
|
});
|
|
7184
7227
|
mounted = true;
|
|
7185
7228
|
}
|
|
@@ -7189,37 +7232,37 @@ function create_each_block4(ctx) {
|
|
|
7189
7232
|
if (dirty[0] & 2 && img_class_value !== (img_class_value = name5 + "-app-btn-icon " + ctx[1])) {
|
|
7190
7233
|
attr(img, "class", img_class_value);
|
|
7191
7234
|
}
|
|
7192
|
-
if (dirty[0] & 524288 && !src_url_equal(img.src, img_src_value = ctx[
|
|
7235
|
+
if (dirty[0] & 524288 && !src_url_equal(img.src, img_src_value = ctx[43])) {
|
|
7193
7236
|
attr(img, "src", img_src_value);
|
|
7194
7237
|
}
|
|
7195
|
-
if (dirty[0] & 524288 && img_alt_value !== (img_alt_value = ctx[
|
|
7238
|
+
if (dirty[0] & 524288 && img_alt_value !== (img_alt_value = ctx[45])) {
|
|
7196
7239
|
attr(img, "alt", img_alt_value);
|
|
7197
7240
|
}
|
|
7198
|
-
if (dirty[0] & 524288 && img_title_value !== (img_title_value = ctx[
|
|
7241
|
+
if (dirty[0] & 524288 && img_title_value !== (img_title_value = ctx[44])) {
|
|
7199
7242
|
attr(img, "title", img_title_value);
|
|
7200
7243
|
}
|
|
7201
|
-
if (dirty[0] & 524288 && t1_value !== (t1_value = ctx[
|
|
7244
|
+
if (dirty[0] & 524288 && t1_value !== (t1_value = ctx[44] + ""))
|
|
7202
7245
|
set_data(t1, t1_value);
|
|
7203
7246
|
if (dirty[0] & 2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + ctx[1])) {
|
|
7204
7247
|
attr(span, "class", span_class_value);
|
|
7205
7248
|
}
|
|
7206
|
-
if (dirty[0] & 524290 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[
|
|
7249
|
+
if (dirty[0] & 524290 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[45] + " " + ctx[1])) {
|
|
7207
7250
|
attr(button, "class", button_class_value);
|
|
7208
7251
|
}
|
|
7209
|
-
if (dirty[0] & 1572864 && button_title_value !== (button_title_value = ctx[
|
|
7252
|
+
if (dirty[0] & 1572864 && button_title_value !== (button_title_value = ctx[44] + (ctx[47] && ctx[47].reason ? ": " + ctx[47].reason : ""))) {
|
|
7210
7253
|
attr(button, "title", button_title_value);
|
|
7211
7254
|
}
|
|
7212
|
-
if (dirty[0] & 524288 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[
|
|
7255
|
+
if (dirty[0] & 524288 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[42].kind)) {
|
|
7213
7256
|
attr(button, "data-app-kind", button_data_app_kind_value);
|
|
7214
7257
|
}
|
|
7215
|
-
if (dirty[0] & 1572864 && button_disabled_value !== (button_disabled_value = ctx[
|
|
7258
|
+
if (dirty[0] & 1572864 && button_disabled_value !== (button_disabled_value = ctx[47] && ctx[47].status !== "idle")) {
|
|
7216
7259
|
button.disabled = button_disabled_value;
|
|
7217
7260
|
}
|
|
7218
7261
|
if (dirty[0] & 1572866) {
|
|
7219
|
-
toggle_class(button, "is-loading", ctx[
|
|
7262
|
+
toggle_class(button, "is-loading", ctx[47] && ctx[47].status === "loading");
|
|
7220
7263
|
}
|
|
7221
7264
|
if (dirty[0] & 1572866) {
|
|
7222
|
-
toggle_class(button, "is-failed", ctx[
|
|
7265
|
+
toggle_class(button, "is-failed", ctx[47] && ctx[47].status === "failed");
|
|
7223
7266
|
}
|
|
7224
7267
|
},
|
|
7225
7268
|
d(detaching) {
|
|
@@ -7539,7 +7582,7 @@ function create_fragment54(ctx) {
|
|
|
7539
7582
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
7540
7583
|
each_blocks[i].m(div7, null);
|
|
7541
7584
|
}
|
|
7542
|
-
ctx[
|
|
7585
|
+
ctx[39](div7);
|
|
7543
7586
|
current = true;
|
|
7544
7587
|
if (!mounted) {
|
|
7545
7588
|
dispose = [
|
|
@@ -7574,7 +7617,7 @@ function create_fragment54(ctx) {
|
|
|
7574
7617
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
7575
7618
|
dirty[0] & 262144 && { content: ctx2[18].clicker }
|
|
7576
7619
|
]) : {};
|
|
7577
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
7620
|
+
if (dirty[0] & 258 | dirty[1] & 1048576) {
|
|
7578
7621
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7579
7622
|
}
|
|
7580
7623
|
button0.$set(button0_changes);
|
|
@@ -7583,7 +7626,7 @@ function create_fragment54(ctx) {
|
|
|
7583
7626
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
7584
7627
|
dirty[0] & 262144 && { content: ctx2[18].selector }
|
|
7585
7628
|
]) : {};
|
|
7586
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
7629
|
+
if (dirty[0] & 258 | dirty[1] & 1048576) {
|
|
7587
7630
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7588
7631
|
}
|
|
7589
7632
|
button1.$set(button1_changes);
|
|
@@ -7593,7 +7636,7 @@ function create_fragment54(ctx) {
|
|
|
7593
7636
|
dirty[0] & 262144 && { content: ctx2[18].pencil },
|
|
7594
7637
|
dirty[0] & 2048 && { menu: ctx2[11] }
|
|
7595
7638
|
]) : {};
|
|
7596
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
7639
|
+
if (dirty[0] & 258 | dirty[1] & 1048576) {
|
|
7597
7640
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7598
7641
|
}
|
|
7599
7642
|
button2.$set(button2_changes);
|
|
@@ -7603,7 +7646,7 @@ function create_fragment54(ctx) {
|
|
|
7603
7646
|
dirty[0] & 262144 && { content: ctx2[18].text },
|
|
7604
7647
|
dirty[0] & 4096 && { menu: ctx2[12] }
|
|
7605
7648
|
]) : {};
|
|
7606
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
7649
|
+
if (dirty[0] & 258 | dirty[1] & 1048576) {
|
|
7607
7650
|
button3_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7608
7651
|
}
|
|
7609
7652
|
button3.$set(button3_changes);
|
|
@@ -7613,7 +7656,7 @@ function create_fragment54(ctx) {
|
|
|
7613
7656
|
dirty[0] & 512 && { content: ctx2[9].shapes },
|
|
7614
7657
|
dirty[0] & 8192 && { menu: ctx2[13] }
|
|
7615
7658
|
]) : {};
|
|
7616
|
-
if (dirty[0] & 1410 | dirty[1] &
|
|
7659
|
+
if (dirty[0] & 1410 | dirty[1] & 1048576) {
|
|
7617
7660
|
button4_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7618
7661
|
}
|
|
7619
7662
|
button4.$set(button4_changes);
|
|
@@ -7622,7 +7665,7 @@ function create_fragment54(ctx) {
|
|
|
7622
7665
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
7623
7666
|
dirty[0] & 262144 && { content: ctx2[18].eraser }
|
|
7624
7667
|
]) : {};
|
|
7625
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
7668
|
+
if (dirty[0] & 258 | dirty[1] & 1048576) {
|
|
7626
7669
|
button5_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7627
7670
|
}
|
|
7628
7671
|
button5.$set(button5_changes);
|
|
@@ -7631,7 +7674,7 @@ function create_fragment54(ctx) {
|
|
|
7631
7674
|
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
7632
7675
|
dirty[0] & 512 && { content: ctx2[9].clear }
|
|
7633
7676
|
]) : {};
|
|
7634
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
7677
|
+
if (dirty[0] & 2 | dirty[1] & 1048576) {
|
|
7635
7678
|
button6_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7636
7679
|
}
|
|
7637
7680
|
button6.$set(button6_changes);
|
|
@@ -7656,7 +7699,7 @@ function create_fragment54(ctx) {
|
|
|
7656
7699
|
}
|
|
7657
7700
|
if (scrollHeight_action && is_function(scrollHeight_action.update) && dirty[0] & 16)
|
|
7658
7701
|
scrollHeight_action.update.call(null, ctx2[4]);
|
|
7659
|
-
if (dirty[0] & 32) {
|
|
7702
|
+
if (!current || dirty[0] & 32) {
|
|
7660
7703
|
toggle_class(div0, "scrollable", ctx2[5]);
|
|
7661
7704
|
}
|
|
7662
7705
|
if (ctx2[5]) {
|
|
@@ -7824,7 +7867,7 @@ function create_fragment54(ctx) {
|
|
|
7824
7867
|
destroy_component(strokecolor1);
|
|
7825
7868
|
ctx[37](null);
|
|
7826
7869
|
destroy_each(each_blocks, detaching);
|
|
7827
|
-
ctx[
|
|
7870
|
+
ctx[39](null);
|
|
7828
7871
|
mounted = false;
|
|
7829
7872
|
run_all(dispose);
|
|
7830
7873
|
}
|
|
@@ -7865,7 +7908,7 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7865
7908
|
let apps_panel;
|
|
7866
7909
|
let btn_props;
|
|
7867
7910
|
let top = writable(0);
|
|
7868
|
-
component_subscribe($$self, top, (value) => $$invalidate(
|
|
7911
|
+
component_subscribe($$self, top, (value) => $$invalidate(41, $top = value));
|
|
7869
7912
|
function scroll_up() {
|
|
7870
7913
|
set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
|
|
7871
7914
|
}
|
|
@@ -7915,6 +7958,10 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7915
7958
|
$$invalidate(13, shapes_panel);
|
|
7916
7959
|
});
|
|
7917
7960
|
}
|
|
7961
|
+
const func = (onClick) => {
|
|
7962
|
+
app && onClick(app);
|
|
7963
|
+
tippy_hide_all();
|
|
7964
|
+
};
|
|
7918
7965
|
function div7_binding($$value) {
|
|
7919
7966
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
7920
7967
|
apps_panel = $$value;
|
|
@@ -8025,22 +8072,32 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
8025
8072
|
div2_binding,
|
|
8026
8073
|
div3_binding,
|
|
8027
8074
|
div6_binding,
|
|
8075
|
+
func,
|
|
8028
8076
|
div7_binding
|
|
8029
8077
|
];
|
|
8030
8078
|
}
|
|
8031
8079
|
var Contents = class extends SvelteComponent {
|
|
8032
8080
|
constructor(options) {
|
|
8033
8081
|
super();
|
|
8034
|
-
init(
|
|
8035
|
-
|
|
8036
|
-
|
|
8037
|
-
|
|
8038
|
-
|
|
8039
|
-
|
|
8040
|
-
|
|
8041
|
-
|
|
8042
|
-
|
|
8043
|
-
|
|
8082
|
+
init(
|
|
8083
|
+
this,
|
|
8084
|
+
options,
|
|
8085
|
+
instance54,
|
|
8086
|
+
create_fragment54,
|
|
8087
|
+
safe_not_equal,
|
|
8088
|
+
{
|
|
8089
|
+
app: 0,
|
|
8090
|
+
theme: 1,
|
|
8091
|
+
language: 2,
|
|
8092
|
+
disabled: 3,
|
|
8093
|
+
scroll_height: 4,
|
|
8094
|
+
computed_height: 31,
|
|
8095
|
+
scrollable: 5,
|
|
8096
|
+
hide_apps: 6
|
|
8097
|
+
},
|
|
8098
|
+
null,
|
|
8099
|
+
[-1, -1]
|
|
8100
|
+
);
|
|
8044
8101
|
}
|
|
8045
8102
|
};
|
|
8046
8103
|
var Contents_default = Contents;
|
|
@@ -8152,7 +8209,7 @@ function create_fragment55(ctx) {
|
|
|
8152
8209
|
path1 = svg_element("path");
|
|
8153
8210
|
if_block.c();
|
|
8154
8211
|
attr(div0, "class", div0_class_value = name6 + "-contents " + ctx[1]);
|
|
8155
|
-
set_style(div0, "height", ctx[5] ? ctx[6] + "px" : "auto"
|
|
8212
|
+
set_style(div0, "height", ctx[5] ? ctx[6] + "px" : "auto");
|
|
8156
8213
|
attr(input, "type", "checkbox");
|
|
8157
8214
|
attr(path0, "fill", "#fff");
|
|
8158
8215
|
attr(path0, "stroke", "none");
|
|
@@ -8211,7 +8268,7 @@ function create_fragment55(ctx) {
|
|
|
8211
8268
|
attr(div0, "class", div0_class_value);
|
|
8212
8269
|
}
|
|
8213
8270
|
if (dirty & 96) {
|
|
8214
|
-
set_style(div0, "height", ctx2[5] ? ctx2[6] + "px" : "auto"
|
|
8271
|
+
set_style(div0, "height", ctx2[5] ? ctx2[6] + "px" : "auto");
|
|
8215
8272
|
}
|
|
8216
8273
|
if (dirty & 8) {
|
|
8217
8274
|
input.checked = ctx2[3];
|
|
@@ -8232,7 +8289,7 @@ function create_fragment55(ctx) {
|
|
|
8232
8289
|
if (!current || dirty & 2 && div1_class_value !== (div1_class_value = name6 + " " + ctx2[1])) {
|
|
8233
8290
|
attr(div1, "class", div1_class_value);
|
|
8234
8291
|
}
|
|
8235
|
-
if (dirty & 10) {
|
|
8292
|
+
if (!current || dirty & 10) {
|
|
8236
8293
|
toggle_class(div1, "collapsed", ctx2[3]);
|
|
8237
8294
|
}
|
|
8238
8295
|
},
|
|
@@ -9288,7 +9345,7 @@ function create_fragment57(ctx) {
|
|
|
9288
9345
|
if (dirty & 4)
|
|
9289
9346
|
playercontrol_changes.language = ctx2[2];
|
|
9290
9347
|
playercontrol.$set(playercontrol_changes);
|
|
9291
|
-
if (dirty & 1) {
|
|
9348
|
+
if (!current || dirty & 1) {
|
|
9292
9349
|
toggle_class(div2, "loading", !ctx2[0]);
|
|
9293
9350
|
}
|
|
9294
9351
|
},
|
|
@@ -9659,7 +9716,7 @@ function create_fragment58(ctx) {
|
|
|
9659
9716
|
});
|
|
9660
9717
|
check_outros();
|
|
9661
9718
|
}
|
|
9662
|
-
if (dirty & 32) {
|
|
9719
|
+
if (!current || dirty & 32) {
|
|
9663
9720
|
toggle_class(div1, "hidden", !(ctx2[5] === "visible" || ctx2[5] === "toolbar-only"));
|
|
9664
9721
|
}
|
|
9665
9722
|
if (((_b2 = ctx2[3].redo_undo) == null ? void 0 : _b2.enable) !== false) {
|
|
@@ -9700,7 +9757,7 @@ function create_fragment58(ctx) {
|
|
|
9700
9757
|
});
|
|
9701
9758
|
check_outros();
|
|
9702
9759
|
}
|
|
9703
|
-
if (dirty & 32) {
|
|
9760
|
+
if (!current || dirty & 32) {
|
|
9704
9761
|
toggle_class(div2, "hidden", ctx2[5] !== "visible");
|
|
9705
9762
|
}
|
|
9706
9763
|
if (((_d2 = ctx2[3].page_control) == null ? void 0 : _d2.enable) !== false) {
|
|
@@ -9722,10 +9779,10 @@ function create_fragment58(ctx) {
|
|
|
9722
9779
|
});
|
|
9723
9780
|
check_outros();
|
|
9724
9781
|
}
|
|
9725
|
-
if (dirty & 32) {
|
|
9782
|
+
if (!current || dirty & 32) {
|
|
9726
9783
|
toggle_class(div3, "hidden", ctx2[5] !== "visible");
|
|
9727
9784
|
}
|
|
9728
|
-
if (dirty & 1) {
|
|
9785
|
+
if (!current || dirty & 1) {
|
|
9729
9786
|
toggle_class(div4, "loading", !ctx2[0]);
|
|
9730
9787
|
}
|
|
9731
9788
|
},
|
|
@@ -9911,7 +9968,7 @@ function createUI(app, div) {
|
|
|
9911
9968
|
}
|
|
9912
9969
|
};
|
|
9913
9970
|
if (div) {
|
|
9914
|
-
ui.mount(div);
|
|
9971
|
+
ui.mount(div, { app });
|
|
9915
9972
|
}
|
|
9916
9973
|
return ui;
|
|
9917
9974
|
}
|
|
@@ -9938,26 +9995,11 @@ function createReplayUI(player, div) {
|
|
|
9938
9995
|
}
|
|
9939
9996
|
};
|
|
9940
9997
|
if (div) {
|
|
9941
|
-
ui.mount(div);
|
|
9998
|
+
ui.mount(div, { player });
|
|
9942
9999
|
}
|
|
9943
10000
|
return ui;
|
|
9944
10001
|
}
|
|
9945
10002
|
|
|
9946
|
-
// inline-sass-helper:inline-sass-style-helper.js
|
|
9947
|
-
function injectStyle(text4) {
|
|
9948
|
-
if (typeof document !== "undefined") {
|
|
9949
|
-
var style = document.createElement("style");
|
|
9950
|
-
var node = document.createTextNode(text4);
|
|
9951
|
-
style.appendChild(node);
|
|
9952
|
-
document.head.appendChild(style);
|
|
9953
|
-
}
|
|
9954
|
-
}
|
|
9955
|
-
|
|
9956
|
-
// inline-sass-content:./src/style.scss
|
|
9957
|
-
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}';
|
|
9958
|
-
|
|
9959
|
-
// inline-sass-stub:./src/style.scss
|
|
9960
|
-
injectStyle(style_default);
|
|
9961
|
-
|
|
9962
10003
|
export { Fastboard_default as Fastboard, PageControl_default as PageControl, PlayerControl_default as PlayerControl, RedoUndo_default as RedoUndo, ReplayFastboard_default as ReplayFastboard, Toolbar_default as Toolbar, ZoomControl_default as ZoomControl, apps, createReplayUI, createUI };
|
|
10004
|
+
//# sourceMappingURL=out.js.map
|
|
9963
10005
|
//# sourceMappingURL=index.svelte.mjs.map
|