@netless/fastboard-ui 1.0.0-canary.4 → 1.0.0-canary.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +860 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +1909 -557
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1909 -557
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +1902 -554
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +6 -3
- package/src/components/Icons/Eraser.svelte +35 -1
- package/src/components/Icons/EraserFilled.svelte +2 -2
- package/src/components/Icons/PencilEraser.svelte +16 -0
- package/src/components/Icons/PencilEraserFilled.svelte +16 -0
- package/src/components/Icons/index.ts +7 -0
- package/src/components/Toolbar/Toolbar.svelte +2 -0
- package/src/components/Toolbar/Toolbar.svelte.d.ts +8 -0
- package/src/components/Toolbar/components/Contents.scss +11 -0
- package/src/components/Toolbar/components/Contents.svelte +96 -11
- package/src/components/Toolbar/components/PencilEraserSize.svelte +27 -0
- package/src/components/Toolbar/components/constants.ts +17 -1
package/dist/index.svelte.mjs
CHANGED
|
@@ -1,23 +1,9 @@
|
|
|
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 } from 'svelte/internal';
|
|
2
2
|
import Tippy from 'tippy.js';
|
|
3
3
|
import { writable } from 'svelte/store';
|
|
4
4
|
import { onMount, createEventDispatcher } from 'svelte';
|
|
5
5
|
|
|
6
|
-
//
|
|
7
|
-
function injectStyle(text4) {
|
|
8
|
-
if (typeof document !== "undefined") {
|
|
9
|
-
var style = document.createElement("style");
|
|
10
|
-
var node = document.createTextNode(text4);
|
|
11
|
-
style.appendChild(node);
|
|
12
|
-
document.head.appendChild(style);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// inline-sass-content:./src/style.scss
|
|
17
|
-
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}';
|
|
18
|
-
|
|
19
|
-
// inline-sass-stub:./src/style.scss
|
|
20
|
-
injectStyle(style_default);
|
|
6
|
+
// src/components/RedoUndo/RedoUndo.svelte
|
|
21
7
|
function create_else_block(ctx) {
|
|
22
8
|
let current;
|
|
23
9
|
const default_slot_template = ctx[4].default;
|
|
@@ -922,17 +908,51 @@ var Down = class extends SvelteComponent {
|
|
|
922
908
|
var Down_default = Down;
|
|
923
909
|
function create_fragment14(ctx) {
|
|
924
910
|
let svg;
|
|
925
|
-
let
|
|
911
|
+
let path0;
|
|
912
|
+
let path1;
|
|
913
|
+
let path2;
|
|
914
|
+
let path3;
|
|
915
|
+
let path4;
|
|
916
|
+
let path5;
|
|
926
917
|
let svg_class_value;
|
|
927
918
|
return {
|
|
928
919
|
c() {
|
|
929
920
|
svg = svg_element("svg");
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
921
|
+
path0 = svg_element("path");
|
|
922
|
+
path1 = svg_element("path");
|
|
923
|
+
path2 = svg_element("path");
|
|
924
|
+
path3 = svg_element("path");
|
|
925
|
+
path4 = svg_element("path");
|
|
926
|
+
path5 = svg_element("path");
|
|
927
|
+
attr(path0, "d", "M16 16L20 20M20 16L16 20");
|
|
928
|
+
attr(path0, "stroke", "#5D6066");
|
|
929
|
+
attr(path0, "class", "fastboard-icon-stroke-color");
|
|
930
|
+
attr(path0, "stroke-width", "1.25");
|
|
931
|
+
attr(path1, "d", "M13.4139 4.92898C14.195 4.14794 15.4613 4.14794 16.2423 4.92898L19.0708 7.75741C19.8518 8.53846 19.8518 9.80479 19.0708 10.5858L11.9997 17.6569C10.4376 19.219 7.90494 19.219 6.34284 17.6569L4.92863 16.2427C4.14758 15.4616 4.14758 14.1953 4.92863 13.4143L13.4139 4.92898Z");
|
|
932
|
+
attr(path1, "stroke", "#5D6066");
|
|
933
|
+
attr(path1, "class", "fastboard-icon-stroke-color");
|
|
934
|
+
attr(path1, "stroke-width", "1.25");
|
|
935
|
+
attr(path1, "stroke-linejoin", "round");
|
|
936
|
+
attr(path2, "d", "M12 6.34314L17.6569 12");
|
|
937
|
+
attr(path2, "stroke", "#5D6066");
|
|
938
|
+
attr(path2, "class", "fastboard-icon-stroke-color");
|
|
939
|
+
attr(path2, "stroke-width", "1.25");
|
|
940
|
+
attr(path2, "stroke-linejoin", "round");
|
|
941
|
+
attr(path3, "d", "M16.2422 4.92896L13.4138 7.75738");
|
|
942
|
+
attr(path3, "stroke", "#5D6066");
|
|
943
|
+
attr(path3, "class", "fastboard-icon-stroke-color");
|
|
944
|
+
attr(path3, "stroke-width", "1.25");
|
|
945
|
+
attr(path3, "stroke-linejoin", "round");
|
|
946
|
+
attr(path4, "d", "M17.6572 6.34314L14.8288 9.17157");
|
|
947
|
+
attr(path4, "stroke", "#5D6066");
|
|
948
|
+
attr(path4, "class", "fastboard-icon-stroke-color");
|
|
949
|
+
attr(path4, "stroke-width", "1.25");
|
|
950
|
+
attr(path4, "stroke-linejoin", "round");
|
|
951
|
+
attr(path5, "d", "M19.0713 7.75732L16.2429 10.5858");
|
|
952
|
+
attr(path5, "stroke", "#5D6066");
|
|
953
|
+
attr(path5, "class", "fastboard-icon-stroke-color");
|
|
954
|
+
attr(path5, "stroke-width", "1.25");
|
|
955
|
+
attr(path5, "stroke-linejoin", "round");
|
|
936
956
|
attr(svg, "fill", "none");
|
|
937
957
|
attr(svg, "viewBox", "0 0 24 24");
|
|
938
958
|
attr(svg, "class", svg_class_value = "fastboard-icon " + ctx[0]);
|
|
@@ -940,7 +960,12 @@ function create_fragment14(ctx) {
|
|
|
940
960
|
},
|
|
941
961
|
m(target, anchor) {
|
|
942
962
|
insert(target, svg, anchor);
|
|
943
|
-
append(svg,
|
|
963
|
+
append(svg, path0);
|
|
964
|
+
append(svg, path1);
|
|
965
|
+
append(svg, path2);
|
|
966
|
+
append(svg, path3);
|
|
967
|
+
append(svg, path4);
|
|
968
|
+
append(svg, path5);
|
|
944
969
|
},
|
|
945
970
|
p(ctx2, [dirty]) {
|
|
946
971
|
if (dirty & 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + ctx2[0])) {
|
|
@@ -984,10 +1009,10 @@ function create_fragment15(ctx) {
|
|
|
984
1009
|
c() {
|
|
985
1010
|
svg = svg_element("svg");
|
|
986
1011
|
path = svg_element("path");
|
|
987
|
-
attr(path, "fill", "#5D6066");
|
|
988
1012
|
attr(path, "fill-rule", "evenodd");
|
|
989
|
-
attr(path, "d", "M16.242 4.929a2 2 0 0 0-2.828 0L4.93 13.414a2 2 0 0 0 0 2.829l1.414 1.414a4 4 0 0 0 5.657 0l5.215-5.215-5.657-5.657.884-.884 5.657 5.657.972-.972a2 2 0 0 0 0-2.829l-2.83-2.827Z");
|
|
990
1013
|
attr(path, "clip-rule", "evenodd");
|
|
1014
|
+
attr(path, "d", "M16.2423 4.92893C15.4612 4.14788 14.1949 4.14788 13.4138 4.92893L4.92856 13.4142C4.14751 14.1953 4.14751 15.4616 4.92856 16.2426L6.34277 17.6568C7.90487 19.2189 10.4375 19.2189 11.9996 17.6568L17.2146 12.4419L11.5577 6.78508L12.4416 5.9012L18.0985 11.558L19.0707 10.5858C19.8517 9.80473 19.8517 8.5384 19.0707 7.75735L16.2423 4.92893ZM17.1161 18L15.5581 16.4419L16.4419 15.5581L18 17.1161L19.5581 15.5581L20.4419 16.4419L18.8839 18L20.4419 19.5581L19.5581 20.4419L18 18.8839L16.4419 20.4419L15.5581 19.5581L17.1161 18Z");
|
|
1015
|
+
attr(path, "fill", "#3381FF");
|
|
991
1016
|
attr(path, "class", "fastboard-icon-fill-color");
|
|
992
1017
|
attr(svg, "fill", "none");
|
|
993
1018
|
attr(svg, "viewBox", "0 0 24 24");
|
|
@@ -1384,6 +1409,118 @@ var PencilFilled = class extends SvelteComponent {
|
|
|
1384
1409
|
};
|
|
1385
1410
|
var PencilFilled_default = PencilFilled;
|
|
1386
1411
|
function create_fragment22(ctx) {
|
|
1412
|
+
let svg;
|
|
1413
|
+
let path;
|
|
1414
|
+
let svg_class_value;
|
|
1415
|
+
return {
|
|
1416
|
+
c() {
|
|
1417
|
+
svg = svg_element("svg");
|
|
1418
|
+
path = svg_element("path");
|
|
1419
|
+
attr(path, "stroke", "#5D6066");
|
|
1420
|
+
attr(path, "stroke-linejoin", "round");
|
|
1421
|
+
attr(path, "stroke-width", "1.25");
|
|
1422
|
+
attr(path, "d", "M13.414 4.929a2 2 0 0 1 2.829 0l2.828 2.828a2 2 0 0 1 0 2.829L12 17.656a4 4 0 0 1-5.657 0L4.93 16.244a2 2 0 0 1 0-2.829l8.485-8.485ZM12 6.343 17.657 12m-1.414-7.071-2.829 2.828m4.243-1.414-2.829 2.829m4.243-1.415-2.828 2.829");
|
|
1423
|
+
attr(path, "class", "fastboard-icon-stroke-color");
|
|
1424
|
+
attr(svg, "fill", "none");
|
|
1425
|
+
attr(svg, "viewBox", "0 0 24 24");
|
|
1426
|
+
attr(svg, "class", svg_class_value = "fastboard-icon " + ctx[0]);
|
|
1427
|
+
toggle_class(svg, "is-active", ctx[1]);
|
|
1428
|
+
},
|
|
1429
|
+
m(target, anchor) {
|
|
1430
|
+
insert(target, svg, anchor);
|
|
1431
|
+
append(svg, path);
|
|
1432
|
+
},
|
|
1433
|
+
p(ctx2, [dirty]) {
|
|
1434
|
+
if (dirty & 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + ctx2[0])) {
|
|
1435
|
+
attr(svg, "class", svg_class_value);
|
|
1436
|
+
}
|
|
1437
|
+
if (dirty & 3) {
|
|
1438
|
+
toggle_class(svg, "is-active", ctx2[1]);
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
i: noop,
|
|
1442
|
+
o: noop,
|
|
1443
|
+
d(detaching) {
|
|
1444
|
+
if (detaching)
|
|
1445
|
+
detach(svg);
|
|
1446
|
+
}
|
|
1447
|
+
};
|
|
1448
|
+
}
|
|
1449
|
+
function instance22($$self, $$props, $$invalidate) {
|
|
1450
|
+
let { theme = "light" } = $$props;
|
|
1451
|
+
let { active = false } = $$props;
|
|
1452
|
+
$$self.$$set = ($$props2) => {
|
|
1453
|
+
if ("theme" in $$props2)
|
|
1454
|
+
$$invalidate(0, theme = $$props2.theme);
|
|
1455
|
+
if ("active" in $$props2)
|
|
1456
|
+
$$invalidate(1, active = $$props2.active);
|
|
1457
|
+
};
|
|
1458
|
+
return [theme, active];
|
|
1459
|
+
}
|
|
1460
|
+
var PencilEraser = class extends SvelteComponent {
|
|
1461
|
+
constructor(options) {
|
|
1462
|
+
super();
|
|
1463
|
+
init(this, options, instance22, create_fragment22, safe_not_equal, { theme: 0, active: 1 });
|
|
1464
|
+
}
|
|
1465
|
+
};
|
|
1466
|
+
var PencilEraser_default = PencilEraser;
|
|
1467
|
+
function create_fragment23(ctx) {
|
|
1468
|
+
let svg;
|
|
1469
|
+
let path;
|
|
1470
|
+
let svg_class_value;
|
|
1471
|
+
return {
|
|
1472
|
+
c() {
|
|
1473
|
+
svg = svg_element("svg");
|
|
1474
|
+
path = svg_element("path");
|
|
1475
|
+
attr(path, "fill", "#5D6066");
|
|
1476
|
+
attr(path, "fill-rule", "evenodd");
|
|
1477
|
+
attr(path, "d", "M16.242 4.929a2 2 0 0 0-2.828 0L4.93 13.414a2 2 0 0 0 0 2.829l1.414 1.414a4 4 0 0 0 5.657 0l5.215-5.215-5.657-5.657.884-.884 5.657 5.657.972-.972a2 2 0 0 0 0-2.829l-2.83-2.827Z");
|
|
1478
|
+
attr(path, "clip-rule", "evenodd");
|
|
1479
|
+
attr(path, "class", "fastboard-icon-fill-color");
|
|
1480
|
+
attr(svg, "fill", "none");
|
|
1481
|
+
attr(svg, "viewBox", "0 0 24 24");
|
|
1482
|
+
attr(svg, "class", svg_class_value = "fastboard-icon " + ctx[0]);
|
|
1483
|
+
toggle_class(svg, "is-active", ctx[1]);
|
|
1484
|
+
},
|
|
1485
|
+
m(target, anchor) {
|
|
1486
|
+
insert(target, svg, anchor);
|
|
1487
|
+
append(svg, path);
|
|
1488
|
+
},
|
|
1489
|
+
p(ctx2, [dirty]) {
|
|
1490
|
+
if (dirty & 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + ctx2[0])) {
|
|
1491
|
+
attr(svg, "class", svg_class_value);
|
|
1492
|
+
}
|
|
1493
|
+
if (dirty & 3) {
|
|
1494
|
+
toggle_class(svg, "is-active", ctx2[1]);
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
i: noop,
|
|
1498
|
+
o: noop,
|
|
1499
|
+
d(detaching) {
|
|
1500
|
+
if (detaching)
|
|
1501
|
+
detach(svg);
|
|
1502
|
+
}
|
|
1503
|
+
};
|
|
1504
|
+
}
|
|
1505
|
+
function instance23($$self, $$props, $$invalidate) {
|
|
1506
|
+
let { theme = "light" } = $$props;
|
|
1507
|
+
let { active = false } = $$props;
|
|
1508
|
+
$$self.$$set = ($$props2) => {
|
|
1509
|
+
if ("theme" in $$props2)
|
|
1510
|
+
$$invalidate(0, theme = $$props2.theme);
|
|
1511
|
+
if ("active" in $$props2)
|
|
1512
|
+
$$invalidate(1, active = $$props2.active);
|
|
1513
|
+
};
|
|
1514
|
+
return [theme, active];
|
|
1515
|
+
}
|
|
1516
|
+
var PencilEraserFilled = class extends SvelteComponent {
|
|
1517
|
+
constructor(options) {
|
|
1518
|
+
super();
|
|
1519
|
+
init(this, options, instance23, create_fragment23, safe_not_equal, { theme: 0, active: 1 });
|
|
1520
|
+
}
|
|
1521
|
+
};
|
|
1522
|
+
var PencilEraserFilled_default = PencilEraserFilled;
|
|
1523
|
+
function create_fragment24(ctx) {
|
|
1387
1524
|
let svg;
|
|
1388
1525
|
let path;
|
|
1389
1526
|
let svg_class_value;
|
|
@@ -1421,7 +1558,7 @@ function create_fragment22(ctx) {
|
|
|
1421
1558
|
}
|
|
1422
1559
|
};
|
|
1423
1560
|
}
|
|
1424
|
-
function
|
|
1561
|
+
function instance24($$self, $$props, $$invalidate) {
|
|
1425
1562
|
let { theme = "light" } = $$props;
|
|
1426
1563
|
let { active = false } = $$props;
|
|
1427
1564
|
$$self.$$set = ($$props2) => {
|
|
@@ -1435,11 +1572,11 @@ function instance22($$self, $$props, $$invalidate) {
|
|
|
1435
1572
|
var Plus = class extends SvelteComponent {
|
|
1436
1573
|
constructor(options) {
|
|
1437
1574
|
super();
|
|
1438
|
-
init(this, options,
|
|
1575
|
+
init(this, options, instance24, create_fragment24, safe_not_equal, { theme: 0, active: 1 });
|
|
1439
1576
|
}
|
|
1440
1577
|
};
|
|
1441
1578
|
var Plus_default = Plus;
|
|
1442
|
-
function
|
|
1579
|
+
function create_fragment25(ctx) {
|
|
1443
1580
|
let svg;
|
|
1444
1581
|
let path;
|
|
1445
1582
|
let svg_class_value;
|
|
@@ -1477,7 +1614,7 @@ function create_fragment23(ctx) {
|
|
|
1477
1614
|
}
|
|
1478
1615
|
};
|
|
1479
1616
|
}
|
|
1480
|
-
function
|
|
1617
|
+
function instance25($$self, $$props, $$invalidate) {
|
|
1481
1618
|
let { theme = "light" } = $$props;
|
|
1482
1619
|
let { active = false } = $$props;
|
|
1483
1620
|
$$self.$$set = ($$props2) => {
|
|
@@ -1491,11 +1628,11 @@ function instance23($$self, $$props, $$invalidate) {
|
|
|
1491
1628
|
var Rectangle = class extends SvelteComponent {
|
|
1492
1629
|
constructor(options) {
|
|
1493
1630
|
super();
|
|
1494
|
-
init(this, options,
|
|
1631
|
+
init(this, options, instance25, create_fragment25, safe_not_equal, { theme: 0, active: 1 });
|
|
1495
1632
|
}
|
|
1496
1633
|
};
|
|
1497
1634
|
var Rectangle_default = Rectangle;
|
|
1498
|
-
function
|
|
1635
|
+
function create_fragment26(ctx) {
|
|
1499
1636
|
let svg;
|
|
1500
1637
|
let path;
|
|
1501
1638
|
let svg_class_value;
|
|
@@ -1533,7 +1670,7 @@ function create_fragment24(ctx) {
|
|
|
1533
1670
|
}
|
|
1534
1671
|
};
|
|
1535
1672
|
}
|
|
1536
|
-
function
|
|
1673
|
+
function instance26($$self, $$props, $$invalidate) {
|
|
1537
1674
|
let { theme = "light" } = $$props;
|
|
1538
1675
|
let { active = false } = $$props;
|
|
1539
1676
|
$$self.$$set = ($$props2) => {
|
|
@@ -1547,11 +1684,11 @@ function instance24($$self, $$props, $$invalidate) {
|
|
|
1547
1684
|
var RectangleBolded = class extends SvelteComponent {
|
|
1548
1685
|
constructor(options) {
|
|
1549
1686
|
super();
|
|
1550
|
-
init(this, options,
|
|
1687
|
+
init(this, options, instance26, create_fragment26, safe_not_equal, { theme: 0, active: 1 });
|
|
1551
1688
|
}
|
|
1552
1689
|
};
|
|
1553
1690
|
var RectangleBolded_default = RectangleBolded;
|
|
1554
|
-
function
|
|
1691
|
+
function create_fragment27(ctx) {
|
|
1555
1692
|
let svg;
|
|
1556
1693
|
let path0;
|
|
1557
1694
|
let path1;
|
|
@@ -1593,7 +1730,7 @@ function create_fragment25(ctx) {
|
|
|
1593
1730
|
}
|
|
1594
1731
|
};
|
|
1595
1732
|
}
|
|
1596
|
-
function
|
|
1733
|
+
function instance27($$self, $$props, $$invalidate) {
|
|
1597
1734
|
let { theme = "light" } = $$props;
|
|
1598
1735
|
let { active = false } = $$props;
|
|
1599
1736
|
$$self.$$set = ($$props2) => {
|
|
@@ -1607,11 +1744,11 @@ function instance25($$self, $$props, $$invalidate) {
|
|
|
1607
1744
|
var Redo = class extends SvelteComponent {
|
|
1608
1745
|
constructor(options) {
|
|
1609
1746
|
super();
|
|
1610
|
-
init(this, options,
|
|
1747
|
+
init(this, options, instance27, create_fragment27, safe_not_equal, { theme: 0, active: 1 });
|
|
1611
1748
|
}
|
|
1612
1749
|
};
|
|
1613
1750
|
var Redo_default = Redo;
|
|
1614
|
-
function
|
|
1751
|
+
function create_fragment28(ctx) {
|
|
1615
1752
|
let svg;
|
|
1616
1753
|
let circle0;
|
|
1617
1754
|
let path;
|
|
@@ -1667,7 +1804,7 @@ function create_fragment26(ctx) {
|
|
|
1667
1804
|
}
|
|
1668
1805
|
};
|
|
1669
1806
|
}
|
|
1670
|
-
function
|
|
1807
|
+
function instance28($$self, $$props, $$invalidate) {
|
|
1671
1808
|
let { theme = "light" } = $$props;
|
|
1672
1809
|
let { active = false } = $$props;
|
|
1673
1810
|
$$self.$$set = ($$props2) => {
|
|
@@ -1681,11 +1818,11 @@ function instance26($$self, $$props, $$invalidate) {
|
|
|
1681
1818
|
var Reset = class extends SvelteComponent {
|
|
1682
1819
|
constructor(options) {
|
|
1683
1820
|
super();
|
|
1684
|
-
init(this, options,
|
|
1821
|
+
init(this, options, instance28, create_fragment28, safe_not_equal, { theme: 0, active: 1 });
|
|
1685
1822
|
}
|
|
1686
1823
|
};
|
|
1687
1824
|
var Reset_default = Reset;
|
|
1688
|
-
function
|
|
1825
|
+
function create_fragment29(ctx) {
|
|
1689
1826
|
let svg;
|
|
1690
1827
|
let path;
|
|
1691
1828
|
let svg_class_value;
|
|
@@ -1723,7 +1860,7 @@ function create_fragment27(ctx) {
|
|
|
1723
1860
|
}
|
|
1724
1861
|
};
|
|
1725
1862
|
}
|
|
1726
|
-
function
|
|
1863
|
+
function instance29($$self, $$props, $$invalidate) {
|
|
1727
1864
|
let { theme = "light" } = $$props;
|
|
1728
1865
|
let { active = false } = $$props;
|
|
1729
1866
|
$$self.$$set = ($$props2) => {
|
|
@@ -1737,11 +1874,11 @@ function instance27($$self, $$props, $$invalidate) {
|
|
|
1737
1874
|
var Rhombus = class extends SvelteComponent {
|
|
1738
1875
|
constructor(options) {
|
|
1739
1876
|
super();
|
|
1740
|
-
init(this, options,
|
|
1877
|
+
init(this, options, instance29, create_fragment29, safe_not_equal, { theme: 0, active: 1 });
|
|
1741
1878
|
}
|
|
1742
1879
|
};
|
|
1743
1880
|
var Rhombus_default = Rhombus;
|
|
1744
|
-
function
|
|
1881
|
+
function create_fragment30(ctx) {
|
|
1745
1882
|
let svg;
|
|
1746
1883
|
let path;
|
|
1747
1884
|
let svg_class_value;
|
|
@@ -1779,7 +1916,7 @@ function create_fragment28(ctx) {
|
|
|
1779
1916
|
}
|
|
1780
1917
|
};
|
|
1781
1918
|
}
|
|
1782
|
-
function
|
|
1919
|
+
function instance30($$self, $$props, $$invalidate) {
|
|
1783
1920
|
let { theme = "light" } = $$props;
|
|
1784
1921
|
let { active = false } = $$props;
|
|
1785
1922
|
$$self.$$set = ($$props2) => {
|
|
@@ -1793,11 +1930,11 @@ function instance28($$self, $$props, $$invalidate) {
|
|
|
1793
1930
|
var RhombusBolded = class extends SvelteComponent {
|
|
1794
1931
|
constructor(options) {
|
|
1795
1932
|
super();
|
|
1796
|
-
init(this, options,
|
|
1933
|
+
init(this, options, instance30, create_fragment30, safe_not_equal, { theme: 0, active: 1 });
|
|
1797
1934
|
}
|
|
1798
1935
|
};
|
|
1799
1936
|
var RhombusBolded_default = RhombusBolded;
|
|
1800
|
-
function
|
|
1937
|
+
function create_fragment31(ctx) {
|
|
1801
1938
|
let svg;
|
|
1802
1939
|
let path;
|
|
1803
1940
|
let svg_class_value;
|
|
@@ -1835,7 +1972,7 @@ function create_fragment29(ctx) {
|
|
|
1835
1972
|
}
|
|
1836
1973
|
};
|
|
1837
1974
|
}
|
|
1838
|
-
function
|
|
1975
|
+
function instance31($$self, $$props, $$invalidate) {
|
|
1839
1976
|
let { theme = "light" } = $$props;
|
|
1840
1977
|
let { active = false } = $$props;
|
|
1841
1978
|
$$self.$$set = ($$props2) => {
|
|
@@ -1849,11 +1986,11 @@ function instance29($$self, $$props, $$invalidate) {
|
|
|
1849
1986
|
var Right = class extends SvelteComponent {
|
|
1850
1987
|
constructor(options) {
|
|
1851
1988
|
super();
|
|
1852
|
-
init(this, options,
|
|
1989
|
+
init(this, options, instance31, create_fragment31, safe_not_equal, { theme: 0, active: 1 });
|
|
1853
1990
|
}
|
|
1854
1991
|
};
|
|
1855
1992
|
var Right_default = Right;
|
|
1856
|
-
function
|
|
1993
|
+
function create_fragment32(ctx) {
|
|
1857
1994
|
let svg;
|
|
1858
1995
|
let path0;
|
|
1859
1996
|
let path1;
|
|
@@ -1900,7 +2037,7 @@ function create_fragment30(ctx) {
|
|
|
1900
2037
|
}
|
|
1901
2038
|
};
|
|
1902
2039
|
}
|
|
1903
|
-
function
|
|
2040
|
+
function instance32($$self, $$props, $$invalidate) {
|
|
1904
2041
|
let { theme = "light" } = $$props;
|
|
1905
2042
|
let { active = false } = $$props;
|
|
1906
2043
|
$$self.$$set = ($$props2) => {
|
|
@@ -1914,11 +2051,11 @@ function instance30($$self, $$props, $$invalidate) {
|
|
|
1914
2051
|
var Selector = class extends SvelteComponent {
|
|
1915
2052
|
constructor(options) {
|
|
1916
2053
|
super();
|
|
1917
|
-
init(this, options,
|
|
2054
|
+
init(this, options, instance32, create_fragment32, safe_not_equal, { theme: 0, active: 1 });
|
|
1918
2055
|
}
|
|
1919
2056
|
};
|
|
1920
2057
|
var Selector_default = Selector;
|
|
1921
|
-
function
|
|
2058
|
+
function create_fragment33(ctx) {
|
|
1922
2059
|
let svg;
|
|
1923
2060
|
let path0;
|
|
1924
2061
|
let path1;
|
|
@@ -1963,7 +2100,7 @@ function create_fragment31(ctx) {
|
|
|
1963
2100
|
}
|
|
1964
2101
|
};
|
|
1965
2102
|
}
|
|
1966
|
-
function
|
|
2103
|
+
function instance33($$self, $$props, $$invalidate) {
|
|
1967
2104
|
let { theme = "light" } = $$props;
|
|
1968
2105
|
let { active = false } = $$props;
|
|
1969
2106
|
$$self.$$set = ($$props2) => {
|
|
@@ -1977,11 +2114,11 @@ function instance31($$self, $$props, $$invalidate) {
|
|
|
1977
2114
|
var SelectorFilled = class extends SvelteComponent {
|
|
1978
2115
|
constructor(options) {
|
|
1979
2116
|
super();
|
|
1980
|
-
init(this, options,
|
|
2117
|
+
init(this, options, instance33, create_fragment33, safe_not_equal, { theme: 0, active: 1 });
|
|
1981
2118
|
}
|
|
1982
2119
|
};
|
|
1983
2120
|
var SelectorFilled_default = SelectorFilled;
|
|
1984
|
-
function
|
|
2121
|
+
function create_fragment34(ctx) {
|
|
1985
2122
|
let svg;
|
|
1986
2123
|
let path;
|
|
1987
2124
|
let svg_class_value;
|
|
@@ -2019,7 +2156,7 @@ function create_fragment32(ctx) {
|
|
|
2019
2156
|
}
|
|
2020
2157
|
};
|
|
2021
2158
|
}
|
|
2022
|
-
function
|
|
2159
|
+
function instance34($$self, $$props, $$invalidate) {
|
|
2023
2160
|
let { theme = "light" } = $$props;
|
|
2024
2161
|
let { active = false } = $$props;
|
|
2025
2162
|
$$self.$$set = ($$props2) => {
|
|
@@ -2033,11 +2170,11 @@ function instance32($$self, $$props, $$invalidate) {
|
|
|
2033
2170
|
var SpeechBalloon = class extends SvelteComponent {
|
|
2034
2171
|
constructor(options) {
|
|
2035
2172
|
super();
|
|
2036
|
-
init(this, options,
|
|
2173
|
+
init(this, options, instance34, create_fragment34, safe_not_equal, { theme: 0, active: 1 });
|
|
2037
2174
|
}
|
|
2038
2175
|
};
|
|
2039
2176
|
var SpeechBalloon_default = SpeechBalloon;
|
|
2040
|
-
function
|
|
2177
|
+
function create_fragment35(ctx) {
|
|
2041
2178
|
let svg;
|
|
2042
2179
|
let path;
|
|
2043
2180
|
let svg_class_value;
|
|
@@ -2075,7 +2212,7 @@ function create_fragment33(ctx) {
|
|
|
2075
2212
|
}
|
|
2076
2213
|
};
|
|
2077
2214
|
}
|
|
2078
|
-
function
|
|
2215
|
+
function instance35($$self, $$props, $$invalidate) {
|
|
2079
2216
|
let { theme = "light" } = $$props;
|
|
2080
2217
|
let { active = false } = $$props;
|
|
2081
2218
|
$$self.$$set = ($$props2) => {
|
|
@@ -2089,11 +2226,11 @@ function instance33($$self, $$props, $$invalidate) {
|
|
|
2089
2226
|
var Star = class extends SvelteComponent {
|
|
2090
2227
|
constructor(options) {
|
|
2091
2228
|
super();
|
|
2092
|
-
init(this, options,
|
|
2229
|
+
init(this, options, instance35, create_fragment35, safe_not_equal, { theme: 0, active: 1 });
|
|
2093
2230
|
}
|
|
2094
2231
|
};
|
|
2095
2232
|
var Star_default = Star;
|
|
2096
|
-
function
|
|
2233
|
+
function create_fragment36(ctx) {
|
|
2097
2234
|
let svg;
|
|
2098
2235
|
let path;
|
|
2099
2236
|
let svg_class_value;
|
|
@@ -2131,7 +2268,7 @@ function create_fragment34(ctx) {
|
|
|
2131
2268
|
}
|
|
2132
2269
|
};
|
|
2133
2270
|
}
|
|
2134
|
-
function
|
|
2271
|
+
function instance36($$self, $$props, $$invalidate) {
|
|
2135
2272
|
let { theme = "light" } = $$props;
|
|
2136
2273
|
let { active = false } = $$props;
|
|
2137
2274
|
$$self.$$set = ($$props2) => {
|
|
@@ -2145,11 +2282,11 @@ function instance34($$self, $$props, $$invalidate) {
|
|
|
2145
2282
|
var StarBolded = class extends SvelteComponent {
|
|
2146
2283
|
constructor(options) {
|
|
2147
2284
|
super();
|
|
2148
|
-
init(this, options,
|
|
2285
|
+
init(this, options, instance36, create_fragment36, safe_not_equal, { theme: 0, active: 1 });
|
|
2149
2286
|
}
|
|
2150
2287
|
};
|
|
2151
2288
|
var StarBolded_default = StarBolded;
|
|
2152
|
-
function
|
|
2289
|
+
function create_fragment37(ctx) {
|
|
2153
2290
|
let svg;
|
|
2154
2291
|
let path;
|
|
2155
2292
|
let svg_class_value;
|
|
@@ -2187,7 +2324,7 @@ function create_fragment35(ctx) {
|
|
|
2187
2324
|
}
|
|
2188
2325
|
};
|
|
2189
2326
|
}
|
|
2190
|
-
function
|
|
2327
|
+
function instance37($$self, $$props, $$invalidate) {
|
|
2191
2328
|
let { theme = "light" } = $$props;
|
|
2192
2329
|
let { active = false } = $$props;
|
|
2193
2330
|
$$self.$$set = ($$props2) => {
|
|
@@ -2201,11 +2338,11 @@ function instance35($$self, $$props, $$invalidate) {
|
|
|
2201
2338
|
var Text = class extends SvelteComponent {
|
|
2202
2339
|
constructor(options) {
|
|
2203
2340
|
super();
|
|
2204
|
-
init(this, options,
|
|
2341
|
+
init(this, options, instance37, create_fragment37, safe_not_equal, { theme: 0, active: 1 });
|
|
2205
2342
|
}
|
|
2206
2343
|
};
|
|
2207
2344
|
var Text_default = Text;
|
|
2208
|
-
function
|
|
2345
|
+
function create_fragment38(ctx) {
|
|
2209
2346
|
let svg;
|
|
2210
2347
|
let path0;
|
|
2211
2348
|
let path1;
|
|
@@ -2250,7 +2387,7 @@ function create_fragment36(ctx) {
|
|
|
2250
2387
|
}
|
|
2251
2388
|
};
|
|
2252
2389
|
}
|
|
2253
|
-
function
|
|
2390
|
+
function instance38($$self, $$props, $$invalidate) {
|
|
2254
2391
|
let { theme = "light" } = $$props;
|
|
2255
2392
|
let { active = false } = $$props;
|
|
2256
2393
|
$$self.$$set = ($$props2) => {
|
|
@@ -2264,11 +2401,11 @@ function instance36($$self, $$props, $$invalidate) {
|
|
|
2264
2401
|
var TextFilled = class extends SvelteComponent {
|
|
2265
2402
|
constructor(options) {
|
|
2266
2403
|
super();
|
|
2267
|
-
init(this, options,
|
|
2404
|
+
init(this, options, instance38, create_fragment38, safe_not_equal, { theme: 0, active: 1 });
|
|
2268
2405
|
}
|
|
2269
2406
|
};
|
|
2270
2407
|
var TextFilled_default = TextFilled;
|
|
2271
|
-
function
|
|
2408
|
+
function create_fragment39(ctx) {
|
|
2272
2409
|
let svg;
|
|
2273
2410
|
let path;
|
|
2274
2411
|
let svg_class_value;
|
|
@@ -2306,7 +2443,7 @@ function create_fragment37(ctx) {
|
|
|
2306
2443
|
}
|
|
2307
2444
|
};
|
|
2308
2445
|
}
|
|
2309
|
-
function
|
|
2446
|
+
function instance39($$self, $$props, $$invalidate) {
|
|
2310
2447
|
let { theme = "light" } = $$props;
|
|
2311
2448
|
let { active = false } = $$props;
|
|
2312
2449
|
$$self.$$set = ($$props2) => {
|
|
@@ -2320,11 +2457,11 @@ function instance37($$self, $$props, $$invalidate) {
|
|
|
2320
2457
|
var Triangle = class extends SvelteComponent {
|
|
2321
2458
|
constructor(options) {
|
|
2322
2459
|
super();
|
|
2323
|
-
init(this, options,
|
|
2460
|
+
init(this, options, instance39, create_fragment39, safe_not_equal, { theme: 0, active: 1 });
|
|
2324
2461
|
}
|
|
2325
2462
|
};
|
|
2326
2463
|
var Triangle_default = Triangle;
|
|
2327
|
-
function
|
|
2464
|
+
function create_fragment40(ctx) {
|
|
2328
2465
|
let svg;
|
|
2329
2466
|
let path;
|
|
2330
2467
|
let svg_class_value;
|
|
@@ -2362,7 +2499,7 @@ function create_fragment38(ctx) {
|
|
|
2362
2499
|
}
|
|
2363
2500
|
};
|
|
2364
2501
|
}
|
|
2365
|
-
function
|
|
2502
|
+
function instance40($$self, $$props, $$invalidate) {
|
|
2366
2503
|
let { theme = "light" } = $$props;
|
|
2367
2504
|
let { active = false } = $$props;
|
|
2368
2505
|
$$self.$$set = ($$props2) => {
|
|
@@ -2376,11 +2513,11 @@ function instance38($$self, $$props, $$invalidate) {
|
|
|
2376
2513
|
var TriangleBolded = class extends SvelteComponent {
|
|
2377
2514
|
constructor(options) {
|
|
2378
2515
|
super();
|
|
2379
|
-
init(this, options,
|
|
2516
|
+
init(this, options, instance40, create_fragment40, safe_not_equal, { theme: 0, active: 1 });
|
|
2380
2517
|
}
|
|
2381
2518
|
};
|
|
2382
2519
|
var TriangleBolded_default = TriangleBolded;
|
|
2383
|
-
function
|
|
2520
|
+
function create_fragment41(ctx) {
|
|
2384
2521
|
let svg;
|
|
2385
2522
|
let path0;
|
|
2386
2523
|
let path1;
|
|
@@ -2422,7 +2559,7 @@ function create_fragment39(ctx) {
|
|
|
2422
2559
|
}
|
|
2423
2560
|
};
|
|
2424
2561
|
}
|
|
2425
|
-
function
|
|
2562
|
+
function instance41($$self, $$props, $$invalidate) {
|
|
2426
2563
|
let { theme = "light" } = $$props;
|
|
2427
2564
|
let { active = false } = $$props;
|
|
2428
2565
|
$$self.$$set = ($$props2) => {
|
|
@@ -2436,11 +2573,11 @@ function instance39($$self, $$props, $$invalidate) {
|
|
|
2436
2573
|
var Undo = class extends SvelteComponent {
|
|
2437
2574
|
constructor(options) {
|
|
2438
2575
|
super();
|
|
2439
|
-
init(this, options,
|
|
2576
|
+
init(this, options, instance41, create_fragment41, safe_not_equal, { theme: 0, active: 1 });
|
|
2440
2577
|
}
|
|
2441
2578
|
};
|
|
2442
2579
|
var Undo_default = Undo;
|
|
2443
|
-
function
|
|
2580
|
+
function create_fragment42(ctx) {
|
|
2444
2581
|
let svg;
|
|
2445
2582
|
let path;
|
|
2446
2583
|
let svg_class_value;
|
|
@@ -2478,7 +2615,7 @@ function create_fragment40(ctx) {
|
|
|
2478
2615
|
}
|
|
2479
2616
|
};
|
|
2480
2617
|
}
|
|
2481
|
-
function
|
|
2618
|
+
function instance42($$self, $$props, $$invalidate) {
|
|
2482
2619
|
let { theme = "light" } = $$props;
|
|
2483
2620
|
let { active = false } = $$props;
|
|
2484
2621
|
$$self.$$set = ($$props2) => {
|
|
@@ -2492,11 +2629,11 @@ function instance40($$self, $$props, $$invalidate) {
|
|
|
2492
2629
|
var Up = class extends SvelteComponent {
|
|
2493
2630
|
constructor(options) {
|
|
2494
2631
|
super();
|
|
2495
|
-
init(this, options,
|
|
2632
|
+
init(this, options, instance42, create_fragment42, safe_not_equal, { theme: 0, active: 1 });
|
|
2496
2633
|
}
|
|
2497
2634
|
};
|
|
2498
2635
|
var Up_default = Up;
|
|
2499
|
-
function
|
|
2636
|
+
function create_fragment43(ctx) {
|
|
2500
2637
|
let svg;
|
|
2501
2638
|
let path0;
|
|
2502
2639
|
let rect;
|
|
@@ -2554,7 +2691,7 @@ function create_fragment41(ctx) {
|
|
|
2554
2691
|
}
|
|
2555
2692
|
};
|
|
2556
2693
|
}
|
|
2557
|
-
function
|
|
2694
|
+
function instance43($$self, $$props, $$invalidate) {
|
|
2558
2695
|
let { theme = "light" } = $$props;
|
|
2559
2696
|
let { active = false } = $$props;
|
|
2560
2697
|
$$self.$$set = ($$props2) => {
|
|
@@ -2568,11 +2705,11 @@ function instance41($$self, $$props, $$invalidate) {
|
|
|
2568
2705
|
var WhiteboardAdd = class extends SvelteComponent {
|
|
2569
2706
|
constructor(options) {
|
|
2570
2707
|
super();
|
|
2571
|
-
init(this, options,
|
|
2708
|
+
init(this, options, instance43, create_fragment43, safe_not_equal, { theme: 0, active: 1 });
|
|
2572
2709
|
}
|
|
2573
2710
|
};
|
|
2574
2711
|
var WhiteboardAdd_default = WhiteboardAdd;
|
|
2575
|
-
function
|
|
2712
|
+
function create_fragment44(ctx) {
|
|
2576
2713
|
let svg;
|
|
2577
2714
|
let path;
|
|
2578
2715
|
let svg_class_value;
|
|
@@ -2608,7 +2745,7 @@ function create_fragment42(ctx) {
|
|
|
2608
2745
|
}
|
|
2609
2746
|
};
|
|
2610
2747
|
}
|
|
2611
|
-
function
|
|
2748
|
+
function instance44($$self, $$props, $$invalidate) {
|
|
2612
2749
|
let { theme = "light" } = $$props;
|
|
2613
2750
|
let { active = false } = $$props;
|
|
2614
2751
|
$$self.$$set = ($$props2) => {
|
|
@@ -2622,11 +2759,11 @@ function instance42($$self, $$props, $$invalidate) {
|
|
|
2622
2759
|
var Play = class extends SvelteComponent {
|
|
2623
2760
|
constructor(options) {
|
|
2624
2761
|
super();
|
|
2625
|
-
init(this, options,
|
|
2762
|
+
init(this, options, instance44, create_fragment44, safe_not_equal, { theme: 0, active: 1 });
|
|
2626
2763
|
}
|
|
2627
2764
|
};
|
|
2628
2765
|
var Play_default = Play;
|
|
2629
|
-
function
|
|
2766
|
+
function create_fragment45(ctx) {
|
|
2630
2767
|
let svg;
|
|
2631
2768
|
let path;
|
|
2632
2769
|
let svg_class_value;
|
|
@@ -2662,7 +2799,7 @@ function create_fragment43(ctx) {
|
|
|
2662
2799
|
}
|
|
2663
2800
|
};
|
|
2664
2801
|
}
|
|
2665
|
-
function
|
|
2802
|
+
function instance45($$self, $$props, $$invalidate) {
|
|
2666
2803
|
let { theme = "light" } = $$props;
|
|
2667
2804
|
let { active = false } = $$props;
|
|
2668
2805
|
$$self.$$set = ($$props2) => {
|
|
@@ -2676,11 +2813,11 @@ function instance43($$self, $$props, $$invalidate) {
|
|
|
2676
2813
|
var Pause = class extends SvelteComponent {
|
|
2677
2814
|
constructor(options) {
|
|
2678
2815
|
super();
|
|
2679
|
-
init(this, options,
|
|
2816
|
+
init(this, options, instance45, create_fragment45, safe_not_equal, { theme: 0, active: 1 });
|
|
2680
2817
|
}
|
|
2681
2818
|
};
|
|
2682
2819
|
var Pause_default = Pause;
|
|
2683
|
-
function
|
|
2820
|
+
function create_fragment46(ctx) {
|
|
2684
2821
|
let svg;
|
|
2685
2822
|
let path;
|
|
2686
2823
|
let svg_class_value;
|
|
@@ -2716,7 +2853,7 @@ function create_fragment44(ctx) {
|
|
|
2716
2853
|
}
|
|
2717
2854
|
};
|
|
2718
2855
|
}
|
|
2719
|
-
function
|
|
2856
|
+
function instance46($$self, $$props, $$invalidate) {
|
|
2720
2857
|
let { theme = "light" } = $$props;
|
|
2721
2858
|
let { active = false } = $$props;
|
|
2722
2859
|
$$self.$$set = ($$props2) => {
|
|
@@ -2730,7 +2867,7 @@ function instance44($$self, $$props, $$invalidate) {
|
|
|
2730
2867
|
var Loading = class extends SvelteComponent {
|
|
2731
2868
|
constructor(options) {
|
|
2732
2869
|
super();
|
|
2733
|
-
init(this, options,
|
|
2870
|
+
init(this, options, instance46, create_fragment46, safe_not_equal, { theme: 0, active: 1 });
|
|
2734
2871
|
}
|
|
2735
2872
|
};
|
|
2736
2873
|
var Loading_default = Loading;
|
|
@@ -2757,6 +2894,8 @@ var Icons = {
|
|
|
2757
2894
|
Minus: Minus_default,
|
|
2758
2895
|
Pencil: Pencil_default,
|
|
2759
2896
|
PencilFilled: PencilFilled_default,
|
|
2897
|
+
PencilEraser: PencilEraser_default,
|
|
2898
|
+
PencilEraserFilled: PencilEraserFilled_default,
|
|
2760
2899
|
Plus: Plus_default,
|
|
2761
2900
|
Rectangle: Rectangle_default,
|
|
2762
2901
|
RectangleBolded: RectangleBolded_default,
|
|
@@ -2792,19 +2931,19 @@ if (is_client) {
|
|
|
2792
2931
|
{
|
|
2793
2932
|
name: "className",
|
|
2794
2933
|
defaultValue: "",
|
|
2795
|
-
fn(
|
|
2934
|
+
fn(instance62) {
|
|
2796
2935
|
function add() {
|
|
2797
|
-
const el =
|
|
2936
|
+
const el = instance62.popper.firstElementChild;
|
|
2798
2937
|
if (el) {
|
|
2799
2938
|
el.classList.add("fastboard-tip");
|
|
2800
|
-
const extra = (
|
|
2939
|
+
const extra = (instance62.props.className || "").trim();
|
|
2801
2940
|
if (extra) {
|
|
2802
2941
|
el.classList.add(extra);
|
|
2803
2942
|
}
|
|
2804
2943
|
}
|
|
2805
2944
|
}
|
|
2806
2945
|
function remove() {
|
|
2807
|
-
|
|
2946
|
+
instance62.popper.firstElementChild?.classList.remove("fastboard-tip");
|
|
2808
2947
|
}
|
|
2809
2948
|
return {
|
|
2810
2949
|
onCreate: add,
|
|
@@ -2817,13 +2956,13 @@ if (is_client) {
|
|
|
2817
2956
|
});
|
|
2818
2957
|
}
|
|
2819
2958
|
var tippy = function(node, props) {
|
|
2820
|
-
const
|
|
2959
|
+
const instance62 = Tippy(node, props);
|
|
2821
2960
|
return {
|
|
2822
2961
|
update(props2) {
|
|
2823
|
-
|
|
2962
|
+
instance62.setProps(props2);
|
|
2824
2963
|
},
|
|
2825
2964
|
destroy() {
|
|
2826
|
-
|
|
2965
|
+
instance62.destroy();
|
|
2827
2966
|
}
|
|
2828
2967
|
};
|
|
2829
2968
|
};
|
|
@@ -2831,9 +2970,9 @@ function tippy_hide_all() {
|
|
|
2831
2970
|
document.querySelectorAll("[data-tippy-root]").forEach(tippy_hide);
|
|
2832
2971
|
}
|
|
2833
2972
|
function tippy_hide(el) {
|
|
2834
|
-
const
|
|
2835
|
-
if (
|
|
2836
|
-
|
|
2973
|
+
const instance62 = el._tippy;
|
|
2974
|
+
if (instance62) {
|
|
2975
|
+
instance62.hide();
|
|
2837
2976
|
}
|
|
2838
2977
|
}
|
|
2839
2978
|
var tippy_menu = {
|
|
@@ -3174,7 +3313,7 @@ function create_if_block_1(ctx) {
|
|
|
3174
3313
|
}
|
|
3175
3314
|
};
|
|
3176
3315
|
}
|
|
3177
|
-
function
|
|
3316
|
+
function create_fragment47(ctx) {
|
|
3178
3317
|
let current_block_type_index;
|
|
3179
3318
|
let if_block;
|
|
3180
3319
|
let if_block_anchor;
|
|
@@ -3237,7 +3376,7 @@ function create_fragment45(ctx) {
|
|
|
3237
3376
|
}
|
|
3238
3377
|
};
|
|
3239
3378
|
}
|
|
3240
|
-
function
|
|
3379
|
+
function instance47($$self, $$props, $$invalidate) {
|
|
3241
3380
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
3242
3381
|
let { class: className = "" } = $$props;
|
|
3243
3382
|
let { name: name10 = "fastboard-ui" } = $$props;
|
|
@@ -3295,7 +3434,7 @@ function instance45($$self, $$props, $$invalidate) {
|
|
|
3295
3434
|
var Button = class extends SvelteComponent {
|
|
3296
3435
|
constructor(options) {
|
|
3297
3436
|
super();
|
|
3298
|
-
init(this, options,
|
|
3437
|
+
init(this, options, instance47, create_fragment47, safe_not_equal, {
|
|
3299
3438
|
class: 0,
|
|
3300
3439
|
name: 1,
|
|
3301
3440
|
theme: 2,
|
|
@@ -3462,7 +3601,7 @@ function create_default_slot(ctx) {
|
|
|
3462
3601
|
}
|
|
3463
3602
|
};
|
|
3464
3603
|
}
|
|
3465
|
-
function
|
|
3604
|
+
function create_fragment48(ctx) {
|
|
3466
3605
|
let div;
|
|
3467
3606
|
let button0;
|
|
3468
3607
|
let t_1;
|
|
@@ -3563,7 +3702,7 @@ var i18n = {
|
|
|
3563
3702
|
}
|
|
3564
3703
|
};
|
|
3565
3704
|
var name = "fastboard-redo-undo";
|
|
3566
|
-
function
|
|
3705
|
+
function instance48($$self, $$props, $$invalidate) {
|
|
3567
3706
|
let writable2;
|
|
3568
3707
|
let disabled;
|
|
3569
3708
|
let t;
|
|
@@ -3647,7 +3786,7 @@ function instance46($$self, $$props, $$invalidate) {
|
|
|
3647
3786
|
var RedoUndo = class extends SvelteComponent {
|
|
3648
3787
|
constructor(options) {
|
|
3649
3788
|
super();
|
|
3650
|
-
init(this, options,
|
|
3789
|
+
init(this, options, instance48, create_fragment48, safe_not_equal, {
|
|
3651
3790
|
app: 11,
|
|
3652
3791
|
theme: 0,
|
|
3653
3792
|
language: 12,
|
|
@@ -3932,7 +4071,7 @@ function create_default_slot2(ctx) {
|
|
|
3932
4071
|
}
|
|
3933
4072
|
};
|
|
3934
4073
|
}
|
|
3935
|
-
function
|
|
4074
|
+
function create_fragment49(ctx) {
|
|
3936
4075
|
let div;
|
|
3937
4076
|
let button0;
|
|
3938
4077
|
let t0;
|
|
@@ -4101,7 +4240,7 @@ var i18n2 = {
|
|
|
4101
4240
|
}
|
|
4102
4241
|
};
|
|
4103
4242
|
var name2 = "fastboard-page-control";
|
|
4104
|
-
function
|
|
4243
|
+
function instance49($$self, $$props, $$invalidate) {
|
|
4105
4244
|
let writable2;
|
|
4106
4245
|
let disabled;
|
|
4107
4246
|
let t;
|
|
@@ -4190,7 +4329,7 @@ function instance47($$self, $$props, $$invalidate) {
|
|
|
4190
4329
|
var PageControl = class extends SvelteComponent {
|
|
4191
4330
|
constructor(options) {
|
|
4192
4331
|
super();
|
|
4193
|
-
init(this, options,
|
|
4332
|
+
init(this, options, instance49, create_fragment49, safe_not_equal, {
|
|
4194
4333
|
app: 15,
|
|
4195
4334
|
theme: 0,
|
|
4196
4335
|
language: 16,
|
|
@@ -4474,7 +4613,7 @@ function create_default_slot3(ctx) {
|
|
|
4474
4613
|
}
|
|
4475
4614
|
};
|
|
4476
4615
|
}
|
|
4477
|
-
function
|
|
4616
|
+
function create_fragment50(ctx) {
|
|
4478
4617
|
let div;
|
|
4479
4618
|
let button0;
|
|
4480
4619
|
let t0;
|
|
@@ -4672,7 +4811,7 @@ function next_scale(scale, delta) {
|
|
|
4672
4811
|
return 1;
|
|
4673
4812
|
}
|
|
4674
4813
|
var name3 = "fastboard-zoom-control";
|
|
4675
|
-
function
|
|
4814
|
+
function instance50($$self, $$props, $$invalidate) {
|
|
4676
4815
|
let writable2;
|
|
4677
4816
|
let disabled;
|
|
4678
4817
|
let t;
|
|
@@ -4770,7 +4909,7 @@ function instance48($$self, $$props, $$invalidate) {
|
|
|
4770
4909
|
var ZoomControl = class extends SvelteComponent {
|
|
4771
4910
|
constructor(options) {
|
|
4772
4911
|
super();
|
|
4773
|
-
init(this, options,
|
|
4912
|
+
init(this, options, instance50, create_fragment50, safe_not_equal, {
|
|
4774
4913
|
app: 14,
|
|
4775
4914
|
theme: 0,
|
|
4776
4915
|
language: 15,
|
|
@@ -4854,12 +4993,21 @@ var shapesIconActive = {
|
|
|
4854
4993
|
triangle: Icons_default.TriangleBolded,
|
|
4855
4994
|
speechBalloon: Icons_default.BalloonBolded
|
|
4856
4995
|
};
|
|
4996
|
+
var eraserIcon = {
|
|
4997
|
+
eraser: Icons_default.Eraser,
|
|
4998
|
+
pencilEraser: Icons_default.PencilEraser
|
|
4999
|
+
};
|
|
5000
|
+
var eraserIconActive = {
|
|
5001
|
+
eraser: Icons_default.EraserFilled,
|
|
5002
|
+
pencilEraser: Icons_default.PencilEraserFilled
|
|
5003
|
+
};
|
|
4857
5004
|
var i18n4 = {
|
|
4858
5005
|
en: {
|
|
4859
5006
|
clicker: "clicker",
|
|
4860
5007
|
selector: "selector",
|
|
4861
5008
|
pencil: "pencil",
|
|
4862
5009
|
eraser: "eraser",
|
|
5010
|
+
pencilEraser: "eraser",
|
|
4863
5011
|
text: "text",
|
|
4864
5012
|
shapes: "shapes",
|
|
4865
5013
|
clear: "clear",
|
|
@@ -4870,6 +5018,7 @@ var i18n4 = {
|
|
|
4870
5018
|
selector: "\u9009\u62E9",
|
|
4871
5019
|
pencil: "\u94C5\u7B14",
|
|
4872
5020
|
eraser: "\u6A61\u76AE",
|
|
5021
|
+
pencilEraser: "\u677F\u64E6",
|
|
4873
5022
|
text: "\u6587\u5B57",
|
|
4874
5023
|
shapes: "\u5F62\u72B6",
|
|
4875
5024
|
clear: "\u6E05\u5C4F",
|
|
@@ -4954,7 +5103,7 @@ function tooltip(text4, hotkey) {
|
|
|
4954
5103
|
append(outer, hotkey_span);
|
|
4955
5104
|
return outer;
|
|
4956
5105
|
}
|
|
4957
|
-
function
|
|
5106
|
+
function create_fragment51(ctx) {
|
|
4958
5107
|
let div;
|
|
4959
5108
|
let input;
|
|
4960
5109
|
let input_class_value;
|
|
@@ -5042,7 +5191,7 @@ function create_fragment49(ctx) {
|
|
|
5042
5191
|
};
|
|
5043
5192
|
}
|
|
5044
5193
|
var name4 = "fastboard-slider";
|
|
5045
|
-
function
|
|
5194
|
+
function instance51($$self, $$props, $$invalidate) {
|
|
5046
5195
|
let percent;
|
|
5047
5196
|
const dispatch = createEventDispatcher();
|
|
5048
5197
|
let { class: className = "" } = $$props;
|
|
@@ -5111,7 +5260,7 @@ function instance49($$self, $$props, $$invalidate) {
|
|
|
5111
5260
|
var Slider = class extends SvelteComponent {
|
|
5112
5261
|
constructor(options) {
|
|
5113
5262
|
super();
|
|
5114
|
-
init(this, options,
|
|
5263
|
+
init(this, options, instance51, create_fragment51, safe_not_equal, {
|
|
5115
5264
|
class: 1,
|
|
5116
5265
|
theme: 2,
|
|
5117
5266
|
min: 3,
|
|
@@ -5125,7 +5274,7 @@ var Slider = class extends SvelteComponent {
|
|
|
5125
5274
|
var Slider_default = Slider;
|
|
5126
5275
|
|
|
5127
5276
|
// src/components/Toolbar/components/StrokeWidth.svelte
|
|
5128
|
-
function
|
|
5277
|
+
function create_fragment52(ctx) {
|
|
5129
5278
|
let slider;
|
|
5130
5279
|
let current;
|
|
5131
5280
|
const slider_spread_levels = [
|
|
@@ -5172,7 +5321,7 @@ function create_fragment50(ctx) {
|
|
|
5172
5321
|
}
|
|
5173
5322
|
};
|
|
5174
5323
|
}
|
|
5175
|
-
function
|
|
5324
|
+
function instance52($$self, $$props, $$invalidate) {
|
|
5176
5325
|
let memberState;
|
|
5177
5326
|
let value;
|
|
5178
5327
|
let props;
|
|
@@ -5217,7 +5366,7 @@ function instance50($$self, $$props, $$invalidate) {
|
|
|
5217
5366
|
var StrokeWidth = class extends SvelteComponent {
|
|
5218
5367
|
constructor(options) {
|
|
5219
5368
|
super();
|
|
5220
|
-
init(this, options,
|
|
5369
|
+
init(this, options, instance52, create_fragment52, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
|
|
5221
5370
|
}
|
|
5222
5371
|
};
|
|
5223
5372
|
var StrokeWidth_default = StrokeWidth;
|
|
@@ -5269,7 +5418,7 @@ function create_each_block(key_1, ctx) {
|
|
|
5269
5418
|
}
|
|
5270
5419
|
};
|
|
5271
5420
|
}
|
|
5272
|
-
function
|
|
5421
|
+
function create_fragment53(ctx) {
|
|
5273
5422
|
let div;
|
|
5274
5423
|
let each_blocks = [];
|
|
5275
5424
|
let each_1_lookup = /* @__PURE__ */ new Map();
|
|
@@ -5326,7 +5475,7 @@ function create_fragment51(ctx) {
|
|
|
5326
5475
|
function is_equal_color(a, b) {
|
|
5327
5476
|
return a && b && a.every((v, i) => v === b[i]);
|
|
5328
5477
|
}
|
|
5329
|
-
function
|
|
5478
|
+
function instance53($$self, $$props, $$invalidate) {
|
|
5330
5479
|
let memberState;
|
|
5331
5480
|
let strokeColor;
|
|
5332
5481
|
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(6, $memberState = $$value)), memberState);
|
|
@@ -5364,10 +5513,110 @@ function instance51($$self, $$props, $$invalidate) {
|
|
|
5364
5513
|
var StrokeColor = class extends SvelteComponent {
|
|
5365
5514
|
constructor(options) {
|
|
5366
5515
|
super();
|
|
5367
|
-
init(this, options,
|
|
5516
|
+
init(this, options, instance53, create_fragment53, safe_not_equal, { app: 5, theme: 0, disabled: 1 });
|
|
5368
5517
|
}
|
|
5369
5518
|
};
|
|
5370
5519
|
var StrokeColor_default = StrokeColor;
|
|
5520
|
+
function create_fragment54(ctx) {
|
|
5521
|
+
let slider;
|
|
5522
|
+
let current;
|
|
5523
|
+
const slider_spread_levels = [
|
|
5524
|
+
{
|
|
5525
|
+
class: "fastboard-toolbar-slider pencil-eraser-size"
|
|
5526
|
+
},
|
|
5527
|
+
ctx[0],
|
|
5528
|
+
{ min: 1 },
|
|
5529
|
+
{ max: 3 },
|
|
5530
|
+
{ step: 1 }
|
|
5531
|
+
];
|
|
5532
|
+
let slider_props = {};
|
|
5533
|
+
for (let i = 0; i < slider_spread_levels.length; i += 1) {
|
|
5534
|
+
slider_props = assign(slider_props, slider_spread_levels[i]);
|
|
5535
|
+
}
|
|
5536
|
+
slider = new Slider_default({ props: slider_props });
|
|
5537
|
+
slider.$on("change", ctx[2]);
|
|
5538
|
+
return {
|
|
5539
|
+
c() {
|
|
5540
|
+
create_component(slider.$$.fragment);
|
|
5541
|
+
},
|
|
5542
|
+
m(target, anchor) {
|
|
5543
|
+
mount_component(slider, target, anchor);
|
|
5544
|
+
current = true;
|
|
5545
|
+
},
|
|
5546
|
+
p(ctx2, [dirty]) {
|
|
5547
|
+
const slider_changes = dirty & 1 ? get_spread_update(slider_spread_levels, [
|
|
5548
|
+
slider_spread_levels[0],
|
|
5549
|
+
get_spread_object(ctx2[0]),
|
|
5550
|
+
slider_spread_levels[2],
|
|
5551
|
+
slider_spread_levels[3],
|
|
5552
|
+
slider_spread_levels[4]
|
|
5553
|
+
]) : {};
|
|
5554
|
+
slider.$set(slider_changes);
|
|
5555
|
+
},
|
|
5556
|
+
i(local) {
|
|
5557
|
+
if (current)
|
|
5558
|
+
return;
|
|
5559
|
+
transition_in(slider.$$.fragment, local);
|
|
5560
|
+
current = true;
|
|
5561
|
+
},
|
|
5562
|
+
o(local) {
|
|
5563
|
+
transition_out(slider.$$.fragment, local);
|
|
5564
|
+
current = false;
|
|
5565
|
+
},
|
|
5566
|
+
d(detaching) {
|
|
5567
|
+
destroy_component(slider, detaching);
|
|
5568
|
+
}
|
|
5569
|
+
};
|
|
5570
|
+
}
|
|
5571
|
+
function instance54($$self, $$props, $$invalidate) {
|
|
5572
|
+
let memberState;
|
|
5573
|
+
let value;
|
|
5574
|
+
let props;
|
|
5575
|
+
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
|
|
5576
|
+
$$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
|
|
5577
|
+
let { app = null } = $$props;
|
|
5578
|
+
let { theme = "light" } = $$props;
|
|
5579
|
+
let { disabled = false } = $$props;
|
|
5580
|
+
function set_pencil_eraser_size({ detail: value2 }) {
|
|
5581
|
+
app?.setPencilEraserSize(value2);
|
|
5582
|
+
}
|
|
5583
|
+
$$self.$$set = ($$props2) => {
|
|
5584
|
+
if ("app" in $$props2)
|
|
5585
|
+
$$invalidate(3, app = $$props2.app);
|
|
5586
|
+
if ("theme" in $$props2)
|
|
5587
|
+
$$invalidate(4, theme = $$props2.theme);
|
|
5588
|
+
if ("disabled" in $$props2)
|
|
5589
|
+
$$invalidate(5, disabled = $$props2.disabled);
|
|
5590
|
+
};
|
|
5591
|
+
$$self.$$.update = () => {
|
|
5592
|
+
if ($$self.$$.dirty & 8) {
|
|
5593
|
+
$$subscribe_memberState($$invalidate(1, memberState = app?.memberState));
|
|
5594
|
+
}
|
|
5595
|
+
if ($$self.$$.dirty & 128) {
|
|
5596
|
+
$$invalidate(6, value = $memberState?.pencilEraserSize ?? 1);
|
|
5597
|
+
}
|
|
5598
|
+
if ($$self.$$.dirty & 112) {
|
|
5599
|
+
$$invalidate(0, props = { value, theme, disabled });
|
|
5600
|
+
}
|
|
5601
|
+
};
|
|
5602
|
+
return [
|
|
5603
|
+
props,
|
|
5604
|
+
memberState,
|
|
5605
|
+
set_pencil_eraser_size,
|
|
5606
|
+
app,
|
|
5607
|
+
theme,
|
|
5608
|
+
disabled,
|
|
5609
|
+
value,
|
|
5610
|
+
$memberState
|
|
5611
|
+
];
|
|
5612
|
+
}
|
|
5613
|
+
var PencilEraserSize = class extends SvelteComponent {
|
|
5614
|
+
constructor(options) {
|
|
5615
|
+
super();
|
|
5616
|
+
init(this, options, instance54, create_fragment54, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
|
|
5617
|
+
}
|
|
5618
|
+
};
|
|
5619
|
+
var PencilEraserSize_default = PencilEraserSize;
|
|
5371
5620
|
function get_each_context2(ctx, list, i) {
|
|
5372
5621
|
const child_ctx = ctx.slice();
|
|
5373
5622
|
child_ctx[7] = list[i];
|
|
@@ -5416,7 +5665,7 @@ function create_each_block2(key_1, ctx) {
|
|
|
5416
5665
|
}
|
|
5417
5666
|
};
|
|
5418
5667
|
}
|
|
5419
|
-
function
|
|
5668
|
+
function create_fragment55(ctx) {
|
|
5420
5669
|
let div;
|
|
5421
5670
|
let each_blocks = [];
|
|
5422
5671
|
let each_1_lookup = /* @__PURE__ */ new Map();
|
|
@@ -5473,7 +5722,7 @@ function create_fragment52(ctx) {
|
|
|
5473
5722
|
function is_equal_color2(a, b) {
|
|
5474
5723
|
return a && b && a.every((v, i) => v === b[i]);
|
|
5475
5724
|
}
|
|
5476
|
-
function
|
|
5725
|
+
function instance55($$self, $$props, $$invalidate) {
|
|
5477
5726
|
let memberState;
|
|
5478
5727
|
let textColor;
|
|
5479
5728
|
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(6, $memberState = $$value)), memberState);
|
|
@@ -5511,7 +5760,7 @@ function instance52($$self, $$props, $$invalidate) {
|
|
|
5511
5760
|
var TextColor = class extends SvelteComponent {
|
|
5512
5761
|
constructor(options) {
|
|
5513
5762
|
super();
|
|
5514
|
-
init(this, options,
|
|
5763
|
+
init(this, options, instance55, create_fragment55, safe_not_equal, { app: 5, theme: 0, disabled: 1 });
|
|
5515
5764
|
}
|
|
5516
5765
|
};
|
|
5517
5766
|
var TextColor_default = TextColor;
|
|
@@ -5763,7 +6012,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
5763
6012
|
}
|
|
5764
6013
|
};
|
|
5765
6014
|
}
|
|
5766
|
-
function
|
|
6015
|
+
function create_fragment56(ctx) {
|
|
5767
6016
|
let div;
|
|
5768
6017
|
let each_blocks = [];
|
|
5769
6018
|
let each_1_lookup = /* @__PURE__ */ new Map();
|
|
@@ -5855,7 +6104,7 @@ var i18n5 = {
|
|
|
5855
6104
|
speechBalloon: "\u6C14\u6CE1"
|
|
5856
6105
|
}
|
|
5857
6106
|
};
|
|
5858
|
-
function
|
|
6107
|
+
function instance56($$self, $$props, $$invalidate) {
|
|
5859
6108
|
let t;
|
|
5860
6109
|
let memberState;
|
|
5861
6110
|
let appliance;
|
|
@@ -5934,7 +6183,7 @@ function instance53($$self, $$props, $$invalidate) {
|
|
|
5934
6183
|
var Shapes = class extends SvelteComponent {
|
|
5935
6184
|
constructor(options) {
|
|
5936
6185
|
super();
|
|
5937
|
-
init(this, options,
|
|
6186
|
+
init(this, options, instance56, create_fragment56, safe_not_equal, {
|
|
5938
6187
|
app: 8,
|
|
5939
6188
|
theme: 0,
|
|
5940
6189
|
language: 9,
|
|
@@ -5947,34 +6196,34 @@ var Shapes_default = Shapes;
|
|
|
5947
6196
|
// src/components/Toolbar/components/Contents.svelte
|
|
5948
6197
|
function get_each_context4(ctx, list, i) {
|
|
5949
6198
|
const child_ctx = ctx.slice();
|
|
5950
|
-
child_ctx[
|
|
5951
|
-
const constants_0 = child_ctx[
|
|
5952
|
-
child_ctx[
|
|
5953
|
-
child_ctx[
|
|
5954
|
-
child_ctx[
|
|
5955
|
-
child_ctx[
|
|
5956
|
-
const constants_1 = child_ctx[
|
|
5957
|
-
child_ctx[
|
|
6199
|
+
child_ctx[47] = list[i];
|
|
6200
|
+
const constants_0 = child_ctx[47];
|
|
6201
|
+
child_ctx[48] = constants_0.icon;
|
|
6202
|
+
child_ctx[49] = constants_0.label;
|
|
6203
|
+
child_ctx[50] = constants_0.kind;
|
|
6204
|
+
child_ctx[51] = constants_0.onClick;
|
|
6205
|
+
const constants_1 = child_ctx[23] && child_ctx[23][child_ctx[50]];
|
|
6206
|
+
child_ctx[52] = constants_1;
|
|
5958
6207
|
const constants_2 = () => {
|
|
5959
|
-
child_ctx[0] && child_ctx[
|
|
6208
|
+
child_ctx[0] && child_ctx[51](child_ctx[0]);
|
|
5960
6209
|
tippy_hide_all();
|
|
5961
6210
|
};
|
|
5962
|
-
child_ctx[
|
|
6211
|
+
child_ctx[53] = constants_2;
|
|
5963
6212
|
return child_ctx;
|
|
5964
6213
|
}
|
|
5965
|
-
function
|
|
6214
|
+
function create_if_block_17(ctx) {
|
|
5966
6215
|
let button;
|
|
5967
6216
|
let current;
|
|
5968
|
-
const button_spread_levels = [{ class: "scroll-up" }, ctx[
|
|
6217
|
+
const button_spread_levels = [{ class: "scroll-up" }, ctx[18]];
|
|
5969
6218
|
let button_props = {
|
|
5970
|
-
$$slots: { default: [
|
|
6219
|
+
$$slots: { default: [create_default_slot_132] },
|
|
5971
6220
|
$$scope: { ctx }
|
|
5972
6221
|
};
|
|
5973
6222
|
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
5974
6223
|
button_props = assign(button_props, button_spread_levels[i]);
|
|
5975
6224
|
}
|
|
5976
6225
|
button = new Button_default({ props: button_props });
|
|
5977
|
-
button.$on("click", ctx[
|
|
6226
|
+
button.$on("click", ctx[25]);
|
|
5978
6227
|
return {
|
|
5979
6228
|
c() {
|
|
5980
6229
|
create_component(button.$$.fragment);
|
|
@@ -5984,8 +6233,8 @@ function create_if_block_8(ctx) {
|
|
|
5984
6233
|
current = true;
|
|
5985
6234
|
},
|
|
5986
6235
|
p(ctx2, dirty) {
|
|
5987
|
-
const button_changes = dirty[0] &
|
|
5988
|
-
if (dirty[0] & 2 | dirty[1] &
|
|
6236
|
+
const button_changes = dirty[0] & 262144 ? get_spread_update(button_spread_levels, [button_spread_levels[0], get_spread_object(ctx2[18])]) : {};
|
|
6237
|
+
if (dirty[0] & 2 | dirty[1] & 33554432) {
|
|
5989
6238
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
5990
6239
|
}
|
|
5991
6240
|
button.$set(button_changes);
|
|
@@ -6005,7 +6254,7 @@ function create_if_block_8(ctx) {
|
|
|
6005
6254
|
}
|
|
6006
6255
|
};
|
|
6007
6256
|
}
|
|
6008
|
-
function
|
|
6257
|
+
function create_default_slot_132(ctx) {
|
|
6009
6258
|
let icons_up;
|
|
6010
6259
|
let current;
|
|
6011
6260
|
icons_up = new Icons_default.Up({ props: { theme: ctx[1] } });
|
|
@@ -6038,7 +6287,7 @@ function create_default_slot_9(ctx) {
|
|
|
6038
6287
|
}
|
|
6039
6288
|
};
|
|
6040
6289
|
}
|
|
6041
|
-
function
|
|
6290
|
+
function create_else_block_10(ctx) {
|
|
6042
6291
|
let icons_click;
|
|
6043
6292
|
let current;
|
|
6044
6293
|
icons_click = new Icons_default.Click({ props: { theme: ctx[1] } });
|
|
@@ -6071,7 +6320,7 @@ function create_else_block_5(ctx) {
|
|
|
6071
6320
|
}
|
|
6072
6321
|
};
|
|
6073
6322
|
}
|
|
6074
|
-
function
|
|
6323
|
+
function create_if_block_16(ctx) {
|
|
6075
6324
|
let icons_clickfilled;
|
|
6076
6325
|
let current;
|
|
6077
6326
|
icons_clickfilled = new Icons_default.ClickFilled({
|
|
@@ -6106,12 +6355,12 @@ function create_if_block_7(ctx) {
|
|
|
6106
6355
|
}
|
|
6107
6356
|
};
|
|
6108
6357
|
}
|
|
6109
|
-
function
|
|
6358
|
+
function create_default_slot_122(ctx) {
|
|
6110
6359
|
let current_block_type_index;
|
|
6111
6360
|
let if_block;
|
|
6112
6361
|
let if_block_anchor;
|
|
6113
6362
|
let current;
|
|
6114
|
-
const if_block_creators = [
|
|
6363
|
+
const if_block_creators = [create_if_block_16, create_else_block_10];
|
|
6115
6364
|
const if_blocks = [];
|
|
6116
6365
|
function select_block_type(ctx2, dirty) {
|
|
6117
6366
|
if (ctx2[8] === "clicker")
|
|
@@ -6169,7 +6418,7 @@ function create_default_slot_8(ctx) {
|
|
|
6169
6418
|
}
|
|
6170
6419
|
};
|
|
6171
6420
|
}
|
|
6172
|
-
function
|
|
6421
|
+
function create_else_block_9(ctx) {
|
|
6173
6422
|
let icons_selector;
|
|
6174
6423
|
let current;
|
|
6175
6424
|
icons_selector = new Icons_default.Selector({ props: { theme: ctx[1] } });
|
|
@@ -6202,7 +6451,7 @@ function create_else_block_4(ctx) {
|
|
|
6202
6451
|
}
|
|
6203
6452
|
};
|
|
6204
6453
|
}
|
|
6205
|
-
function
|
|
6454
|
+
function create_if_block_15(ctx) {
|
|
6206
6455
|
let icons_selectorfilled;
|
|
6207
6456
|
let current;
|
|
6208
6457
|
icons_selectorfilled = new Icons_default.SelectorFilled({
|
|
@@ -6237,12 +6486,12 @@ function create_if_block_6(ctx) {
|
|
|
6237
6486
|
}
|
|
6238
6487
|
};
|
|
6239
6488
|
}
|
|
6240
|
-
function
|
|
6489
|
+
function create_default_slot_11(ctx) {
|
|
6241
6490
|
let current_block_type_index;
|
|
6242
6491
|
let if_block;
|
|
6243
6492
|
let if_block_anchor;
|
|
6244
6493
|
let current;
|
|
6245
|
-
const if_block_creators = [
|
|
6494
|
+
const if_block_creators = [create_if_block_15, create_else_block_9];
|
|
6246
6495
|
const if_blocks = [];
|
|
6247
6496
|
function select_block_type_1(ctx2, dirty) {
|
|
6248
6497
|
if (ctx2[8] === "selector")
|
|
@@ -6300,7 +6549,7 @@ function create_default_slot_7(ctx) {
|
|
|
6300
6549
|
}
|
|
6301
6550
|
};
|
|
6302
6551
|
}
|
|
6303
|
-
function
|
|
6552
|
+
function create_else_block_8(ctx) {
|
|
6304
6553
|
let icons_pencil;
|
|
6305
6554
|
let current;
|
|
6306
6555
|
icons_pencil = new Icons_default.Pencil({ props: { theme: ctx[1] } });
|
|
@@ -6333,7 +6582,7 @@ function create_else_block_3(ctx) {
|
|
|
6333
6582
|
}
|
|
6334
6583
|
};
|
|
6335
6584
|
}
|
|
6336
|
-
function
|
|
6585
|
+
function create_if_block_14(ctx) {
|
|
6337
6586
|
let icons_pencilfilled;
|
|
6338
6587
|
let current;
|
|
6339
6588
|
icons_pencilfilled = new Icons_default.PencilFilled({
|
|
@@ -6368,12 +6617,12 @@ function create_if_block_5(ctx) {
|
|
|
6368
6617
|
}
|
|
6369
6618
|
};
|
|
6370
6619
|
}
|
|
6371
|
-
function
|
|
6620
|
+
function create_default_slot_10(ctx) {
|
|
6372
6621
|
let current_block_type_index;
|
|
6373
6622
|
let if_block;
|
|
6374
6623
|
let if_block_anchor;
|
|
6375
6624
|
let current;
|
|
6376
|
-
const if_block_creators = [
|
|
6625
|
+
const if_block_creators = [create_if_block_14, create_else_block_8];
|
|
6377
6626
|
const if_blocks = [];
|
|
6378
6627
|
function select_block_type_2(ctx2, dirty) {
|
|
6379
6628
|
if (ctx2[8] === "pencil")
|
|
@@ -6431,7 +6680,7 @@ function create_default_slot_6(ctx) {
|
|
|
6431
6680
|
}
|
|
6432
6681
|
};
|
|
6433
6682
|
}
|
|
6434
|
-
function
|
|
6683
|
+
function create_else_block_7(ctx) {
|
|
6435
6684
|
let icons_text;
|
|
6436
6685
|
let current;
|
|
6437
6686
|
icons_text = new Icons_default.Text({ props: { theme: ctx[1] } });
|
|
@@ -6464,7 +6713,7 @@ function create_else_block_2(ctx) {
|
|
|
6464
6713
|
}
|
|
6465
6714
|
};
|
|
6466
6715
|
}
|
|
6467
|
-
function
|
|
6716
|
+
function create_if_block_13(ctx) {
|
|
6468
6717
|
let icons_textfilled;
|
|
6469
6718
|
let current;
|
|
6470
6719
|
icons_textfilled = new Icons_default.TextFilled({
|
|
@@ -6499,12 +6748,12 @@ function create_if_block_4(ctx) {
|
|
|
6499
6748
|
}
|
|
6500
6749
|
};
|
|
6501
6750
|
}
|
|
6502
|
-
function
|
|
6751
|
+
function create_default_slot_9(ctx) {
|
|
6503
6752
|
let current_block_type_index;
|
|
6504
6753
|
let if_block;
|
|
6505
6754
|
let if_block_anchor;
|
|
6506
6755
|
let current;
|
|
6507
|
-
const if_block_creators = [
|
|
6756
|
+
const if_block_creators = [create_if_block_13, create_else_block_7];
|
|
6508
6757
|
const if_blocks = [];
|
|
6509
6758
|
function select_block_type_3(ctx2, dirty) {
|
|
6510
6759
|
if (ctx2[8] === "text")
|
|
@@ -6562,11 +6811,11 @@ function create_default_slot_53(ctx) {
|
|
|
6562
6811
|
}
|
|
6563
6812
|
};
|
|
6564
6813
|
}
|
|
6565
|
-
function
|
|
6814
|
+
function create_else_block_6(ctx) {
|
|
6566
6815
|
let switch_instance;
|
|
6567
6816
|
let switch_instance_anchor;
|
|
6568
6817
|
let current;
|
|
6569
|
-
var switch_value = shapesIcon[ctx[
|
|
6818
|
+
var switch_value = shapesIcon[ctx[11]];
|
|
6570
6819
|
function switch_props(ctx2) {
|
|
6571
6820
|
return { props: { theme: ctx2[1] } };
|
|
6572
6821
|
}
|
|
@@ -6590,7 +6839,7 @@ function create_else_block_12(ctx) {
|
|
|
6590
6839
|
const switch_instance_changes = {};
|
|
6591
6840
|
if (dirty[0] & 2)
|
|
6592
6841
|
switch_instance_changes.theme = ctx2[1];
|
|
6593
|
-
if (switch_value !== (switch_value = shapesIcon[ctx2[
|
|
6842
|
+
if (switch_value !== (switch_value = shapesIcon[ctx2[11]])) {
|
|
6594
6843
|
if (switch_instance) {
|
|
6595
6844
|
group_outros();
|
|
6596
6845
|
const old_component = switch_instance;
|
|
@@ -6631,11 +6880,11 @@ function create_else_block_12(ctx) {
|
|
|
6631
6880
|
}
|
|
6632
6881
|
};
|
|
6633
6882
|
}
|
|
6634
|
-
function
|
|
6883
|
+
function create_if_block_12(ctx) {
|
|
6635
6884
|
let switch_instance;
|
|
6636
6885
|
let switch_instance_anchor;
|
|
6637
6886
|
let current;
|
|
6638
|
-
var switch_value = shapesIconActive[ctx[
|
|
6887
|
+
var switch_value = shapesIconActive[ctx[11]];
|
|
6639
6888
|
function switch_props(ctx2) {
|
|
6640
6889
|
return {
|
|
6641
6890
|
props: { theme: ctx2[1], active: true }
|
|
@@ -6661,7 +6910,7 @@ function create_if_block_3(ctx) {
|
|
|
6661
6910
|
const switch_instance_changes = {};
|
|
6662
6911
|
if (dirty[0] & 2)
|
|
6663
6912
|
switch_instance_changes.theme = ctx2[1];
|
|
6664
|
-
if (switch_value !== (switch_value = shapesIconActive[ctx2[
|
|
6913
|
+
if (switch_value !== (switch_value = shapesIconActive[ctx2[11]])) {
|
|
6665
6914
|
if (switch_instance) {
|
|
6666
6915
|
group_outros();
|
|
6667
6916
|
const old_component = switch_instance;
|
|
@@ -6702,15 +6951,15 @@ function create_if_block_3(ctx) {
|
|
|
6702
6951
|
}
|
|
6703
6952
|
};
|
|
6704
6953
|
}
|
|
6705
|
-
function
|
|
6954
|
+
function create_default_slot_8(ctx) {
|
|
6706
6955
|
let current_block_type_index;
|
|
6707
6956
|
let if_block;
|
|
6708
6957
|
let if_block_anchor;
|
|
6709
6958
|
let current;
|
|
6710
|
-
const if_block_creators = [
|
|
6959
|
+
const if_block_creators = [create_if_block_12, create_else_block_6];
|
|
6711
6960
|
const if_blocks = [];
|
|
6712
6961
|
function select_block_type_4(ctx2, dirty) {
|
|
6713
|
-
if (ctx2[8] === ctx2[
|
|
6962
|
+
if (ctx2[8] === ctx2[11] || ctx2[8] === "shape" && ctx2[9] === ctx2[11])
|
|
6714
6963
|
return 0;
|
|
6715
6964
|
return 1;
|
|
6716
6965
|
}
|
|
@@ -6765,87 +7014,316 @@ function create_default_slot_43(ctx) {
|
|
|
6765
7014
|
}
|
|
6766
7015
|
};
|
|
6767
7016
|
}
|
|
6768
|
-
function
|
|
6769
|
-
let
|
|
7017
|
+
function create_else_block_4(ctx) {
|
|
7018
|
+
let button;
|
|
6770
7019
|
let current;
|
|
6771
|
-
|
|
7020
|
+
const button_spread_levels = [
|
|
7021
|
+
{ class: "eraser" },
|
|
7022
|
+
ctx[18],
|
|
7023
|
+
{
|
|
7024
|
+
content: ctx[10][ctx[12]]
|
|
7025
|
+
},
|
|
7026
|
+
{ menu: ctx[16] }
|
|
7027
|
+
];
|
|
7028
|
+
let button_props = {
|
|
7029
|
+
$$slots: { default: [create_default_slot_7] },
|
|
7030
|
+
$$scope: { ctx }
|
|
7031
|
+
};
|
|
7032
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
7033
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
7034
|
+
}
|
|
7035
|
+
button = new Button_default({ props: button_props });
|
|
7036
|
+
button.$on("click", ctx[32]);
|
|
6772
7037
|
return {
|
|
6773
7038
|
c() {
|
|
6774
|
-
create_component(
|
|
7039
|
+
create_component(button.$$.fragment);
|
|
6775
7040
|
},
|
|
6776
7041
|
m(target, anchor) {
|
|
6777
|
-
mount_component(
|
|
7042
|
+
mount_component(button, target, anchor);
|
|
6778
7043
|
current = true;
|
|
6779
7044
|
},
|
|
6780
7045
|
p(ctx2, dirty) {
|
|
6781
|
-
const
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
7046
|
+
const button_changes = dirty[0] & 332800 ? get_spread_update(button_spread_levels, [
|
|
7047
|
+
button_spread_levels[0],
|
|
7048
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7049
|
+
dirty[0] & 5120 && {
|
|
7050
|
+
content: ctx2[10][ctx2[12]]
|
|
7051
|
+
},
|
|
7052
|
+
dirty[0] & 65536 && { menu: ctx2[16] }
|
|
7053
|
+
]) : {};
|
|
7054
|
+
if (dirty[0] & 4354 | dirty[1] & 33554432) {
|
|
7055
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7056
|
+
}
|
|
7057
|
+
button.$set(button_changes);
|
|
6785
7058
|
},
|
|
6786
7059
|
i(local) {
|
|
6787
7060
|
if (current)
|
|
6788
7061
|
return;
|
|
6789
|
-
transition_in(
|
|
7062
|
+
transition_in(button.$$.fragment, local);
|
|
6790
7063
|
current = true;
|
|
6791
7064
|
},
|
|
6792
7065
|
o(local) {
|
|
6793
|
-
transition_out(
|
|
7066
|
+
transition_out(button.$$.fragment, local);
|
|
6794
7067
|
current = false;
|
|
6795
7068
|
},
|
|
6796
7069
|
d(detaching) {
|
|
6797
|
-
destroy_component(
|
|
7070
|
+
destroy_component(button, detaching);
|
|
6798
7071
|
}
|
|
6799
7072
|
};
|
|
6800
7073
|
}
|
|
6801
|
-
function
|
|
6802
|
-
let
|
|
7074
|
+
function create_if_block_9(ctx) {
|
|
7075
|
+
let button;
|
|
6803
7076
|
let current;
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
7077
|
+
const button_spread_levels = [
|
|
7078
|
+
{ class: "eraser" },
|
|
7079
|
+
ctx[18],
|
|
7080
|
+
{ content: ctx[21].pencilEraser },
|
|
7081
|
+
{ menu: ctx[16] }
|
|
7082
|
+
];
|
|
7083
|
+
let button_props = {
|
|
7084
|
+
$$slots: { default: [create_default_slot_6] },
|
|
7085
|
+
$$scope: { ctx }
|
|
7086
|
+
};
|
|
7087
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
7088
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
7089
|
+
}
|
|
7090
|
+
button = new Button_default({ props: button_props });
|
|
7091
|
+
button.$on("click", ctx[34]);
|
|
6807
7092
|
return {
|
|
6808
7093
|
c() {
|
|
6809
|
-
create_component(
|
|
7094
|
+
create_component(button.$$.fragment);
|
|
6810
7095
|
},
|
|
6811
7096
|
m(target, anchor) {
|
|
6812
|
-
mount_component(
|
|
7097
|
+
mount_component(button, target, anchor);
|
|
6813
7098
|
current = true;
|
|
6814
7099
|
},
|
|
6815
7100
|
p(ctx2, dirty) {
|
|
6816
|
-
const
|
|
6817
|
-
|
|
6818
|
-
|
|
6819
|
-
|
|
7101
|
+
const button_changes = dirty[0] & 2424832 ? get_spread_update(button_spread_levels, [
|
|
7102
|
+
button_spread_levels[0],
|
|
7103
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7104
|
+
dirty[0] & 2097152 && { content: ctx2[21].pencilEraser },
|
|
7105
|
+
dirty[0] & 65536 && { menu: ctx2[16] }
|
|
7106
|
+
]) : {};
|
|
7107
|
+
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
7108
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7109
|
+
}
|
|
7110
|
+
button.$set(button_changes);
|
|
6820
7111
|
},
|
|
6821
7112
|
i(local) {
|
|
6822
7113
|
if (current)
|
|
6823
7114
|
return;
|
|
6824
|
-
transition_in(
|
|
7115
|
+
transition_in(button.$$.fragment, local);
|
|
6825
7116
|
current = true;
|
|
6826
7117
|
},
|
|
6827
7118
|
o(local) {
|
|
6828
|
-
transition_out(
|
|
7119
|
+
transition_out(button.$$.fragment, local);
|
|
6829
7120
|
current = false;
|
|
6830
7121
|
},
|
|
6831
7122
|
d(detaching) {
|
|
6832
|
-
destroy_component(
|
|
7123
|
+
destroy_component(button, detaching);
|
|
6833
7124
|
}
|
|
6834
7125
|
};
|
|
6835
7126
|
}
|
|
6836
|
-
function
|
|
6837
|
-
let
|
|
6838
|
-
let if_block;
|
|
6839
|
-
let if_block_anchor;
|
|
7127
|
+
function create_if_block_7(ctx) {
|
|
7128
|
+
let button;
|
|
6840
7129
|
let current;
|
|
6841
|
-
const
|
|
6842
|
-
|
|
6843
|
-
|
|
6844
|
-
|
|
7130
|
+
const button_spread_levels = [{ class: "eraser" }, ctx[18], { content: ctx[21].eraser }];
|
|
7131
|
+
let button_props = {
|
|
7132
|
+
$$slots: { default: [create_default_slot_53] },
|
|
7133
|
+
$$scope: { ctx }
|
|
7134
|
+
};
|
|
7135
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
7136
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
7137
|
+
}
|
|
7138
|
+
button = new Button_default({ props: button_props });
|
|
7139
|
+
button.$on("click", ctx[33]);
|
|
7140
|
+
return {
|
|
7141
|
+
c() {
|
|
7142
|
+
create_component(button.$$.fragment);
|
|
7143
|
+
},
|
|
7144
|
+
m(target, anchor) {
|
|
7145
|
+
mount_component(button, target, anchor);
|
|
7146
|
+
current = true;
|
|
7147
|
+
},
|
|
7148
|
+
p(ctx2, dirty) {
|
|
7149
|
+
const button_changes = dirty[0] & 2359296 ? get_spread_update(button_spread_levels, [
|
|
7150
|
+
button_spread_levels[0],
|
|
7151
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7152
|
+
dirty[0] & 2097152 && { content: ctx2[21].eraser }
|
|
7153
|
+
]) : {};
|
|
7154
|
+
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
7155
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7156
|
+
}
|
|
7157
|
+
button.$set(button_changes);
|
|
7158
|
+
},
|
|
7159
|
+
i(local) {
|
|
7160
|
+
if (current)
|
|
7161
|
+
return;
|
|
7162
|
+
transition_in(button.$$.fragment, local);
|
|
7163
|
+
current = true;
|
|
7164
|
+
},
|
|
7165
|
+
o(local) {
|
|
7166
|
+
transition_out(button.$$.fragment, local);
|
|
7167
|
+
current = false;
|
|
7168
|
+
},
|
|
7169
|
+
d(detaching) {
|
|
7170
|
+
destroy_component(button, detaching);
|
|
7171
|
+
}
|
|
7172
|
+
};
|
|
7173
|
+
}
|
|
7174
|
+
function create_else_block_5(ctx) {
|
|
7175
|
+
let switch_instance;
|
|
7176
|
+
let switch_instance_anchor;
|
|
7177
|
+
let current;
|
|
7178
|
+
var switch_value = eraserIcon[ctx[12]];
|
|
7179
|
+
function switch_props(ctx2) {
|
|
7180
|
+
return { props: { theme: ctx2[1] } };
|
|
7181
|
+
}
|
|
7182
|
+
if (switch_value) {
|
|
7183
|
+
switch_instance = new switch_value(switch_props(ctx));
|
|
7184
|
+
}
|
|
7185
|
+
return {
|
|
7186
|
+
c() {
|
|
7187
|
+
if (switch_instance)
|
|
7188
|
+
create_component(switch_instance.$$.fragment);
|
|
7189
|
+
switch_instance_anchor = empty();
|
|
7190
|
+
},
|
|
7191
|
+
m(target, anchor) {
|
|
7192
|
+
if (switch_instance) {
|
|
7193
|
+
mount_component(switch_instance, target, anchor);
|
|
7194
|
+
}
|
|
7195
|
+
insert(target, switch_instance_anchor, anchor);
|
|
7196
|
+
current = true;
|
|
7197
|
+
},
|
|
7198
|
+
p(ctx2, dirty) {
|
|
7199
|
+
const switch_instance_changes = {};
|
|
7200
|
+
if (dirty[0] & 2)
|
|
7201
|
+
switch_instance_changes.theme = ctx2[1];
|
|
7202
|
+
if (switch_value !== (switch_value = eraserIcon[ctx2[12]])) {
|
|
7203
|
+
if (switch_instance) {
|
|
7204
|
+
group_outros();
|
|
7205
|
+
const old_component = switch_instance;
|
|
7206
|
+
transition_out(old_component.$$.fragment, 1, 0, () => {
|
|
7207
|
+
destroy_component(old_component, 1);
|
|
7208
|
+
});
|
|
7209
|
+
check_outros();
|
|
7210
|
+
}
|
|
7211
|
+
if (switch_value) {
|
|
7212
|
+
switch_instance = new switch_value(switch_props(ctx2));
|
|
7213
|
+
create_component(switch_instance.$$.fragment);
|
|
7214
|
+
transition_in(switch_instance.$$.fragment, 1);
|
|
7215
|
+
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
7216
|
+
} else {
|
|
7217
|
+
switch_instance = null;
|
|
7218
|
+
}
|
|
7219
|
+
} else if (switch_value) {
|
|
7220
|
+
switch_instance.$set(switch_instance_changes);
|
|
7221
|
+
}
|
|
7222
|
+
},
|
|
7223
|
+
i(local) {
|
|
7224
|
+
if (current)
|
|
7225
|
+
return;
|
|
7226
|
+
if (switch_instance)
|
|
7227
|
+
transition_in(switch_instance.$$.fragment, local);
|
|
7228
|
+
current = true;
|
|
7229
|
+
},
|
|
7230
|
+
o(local) {
|
|
7231
|
+
if (switch_instance)
|
|
7232
|
+
transition_out(switch_instance.$$.fragment, local);
|
|
7233
|
+
current = false;
|
|
7234
|
+
},
|
|
7235
|
+
d(detaching) {
|
|
7236
|
+
if (detaching)
|
|
7237
|
+
detach(switch_instance_anchor);
|
|
7238
|
+
if (switch_instance)
|
|
7239
|
+
destroy_component(switch_instance, detaching);
|
|
7240
|
+
}
|
|
7241
|
+
};
|
|
7242
|
+
}
|
|
7243
|
+
function create_if_block_11(ctx) {
|
|
7244
|
+
let switch_instance;
|
|
7245
|
+
let switch_instance_anchor;
|
|
7246
|
+
let current;
|
|
7247
|
+
var switch_value = eraserIconActive[ctx[12]];
|
|
7248
|
+
function switch_props(ctx2) {
|
|
7249
|
+
return {
|
|
7250
|
+
props: { theme: ctx2[1], active: true }
|
|
7251
|
+
};
|
|
7252
|
+
}
|
|
7253
|
+
if (switch_value) {
|
|
7254
|
+
switch_instance = new switch_value(switch_props(ctx));
|
|
7255
|
+
}
|
|
7256
|
+
return {
|
|
7257
|
+
c() {
|
|
7258
|
+
if (switch_instance)
|
|
7259
|
+
create_component(switch_instance.$$.fragment);
|
|
7260
|
+
switch_instance_anchor = empty();
|
|
7261
|
+
},
|
|
7262
|
+
m(target, anchor) {
|
|
7263
|
+
if (switch_instance) {
|
|
7264
|
+
mount_component(switch_instance, target, anchor);
|
|
7265
|
+
}
|
|
7266
|
+
insert(target, switch_instance_anchor, anchor);
|
|
7267
|
+
current = true;
|
|
7268
|
+
},
|
|
7269
|
+
p(ctx2, dirty) {
|
|
7270
|
+
const switch_instance_changes = {};
|
|
7271
|
+
if (dirty[0] & 2)
|
|
7272
|
+
switch_instance_changes.theme = ctx2[1];
|
|
7273
|
+
if (switch_value !== (switch_value = eraserIconActive[ctx2[12]])) {
|
|
7274
|
+
if (switch_instance) {
|
|
7275
|
+
group_outros();
|
|
7276
|
+
const old_component = switch_instance;
|
|
7277
|
+
transition_out(old_component.$$.fragment, 1, 0, () => {
|
|
7278
|
+
destroy_component(old_component, 1);
|
|
7279
|
+
});
|
|
7280
|
+
check_outros();
|
|
7281
|
+
}
|
|
7282
|
+
if (switch_value) {
|
|
7283
|
+
switch_instance = new switch_value(switch_props(ctx2));
|
|
7284
|
+
create_component(switch_instance.$$.fragment);
|
|
7285
|
+
transition_in(switch_instance.$$.fragment, 1);
|
|
7286
|
+
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
7287
|
+
} else {
|
|
7288
|
+
switch_instance = null;
|
|
7289
|
+
}
|
|
7290
|
+
} else if (switch_value) {
|
|
7291
|
+
switch_instance.$set(switch_instance_changes);
|
|
7292
|
+
}
|
|
7293
|
+
},
|
|
7294
|
+
i(local) {
|
|
7295
|
+
if (current)
|
|
7296
|
+
return;
|
|
7297
|
+
if (switch_instance)
|
|
7298
|
+
transition_in(switch_instance.$$.fragment, local);
|
|
7299
|
+
current = true;
|
|
7300
|
+
},
|
|
7301
|
+
o(local) {
|
|
7302
|
+
if (switch_instance)
|
|
7303
|
+
transition_out(switch_instance.$$.fragment, local);
|
|
7304
|
+
current = false;
|
|
7305
|
+
},
|
|
7306
|
+
d(detaching) {
|
|
7307
|
+
if (detaching)
|
|
7308
|
+
detach(switch_instance_anchor);
|
|
7309
|
+
if (switch_instance)
|
|
7310
|
+
destroy_component(switch_instance, detaching);
|
|
7311
|
+
}
|
|
7312
|
+
};
|
|
7313
|
+
}
|
|
7314
|
+
function create_default_slot_7(ctx) {
|
|
7315
|
+
let current_block_type_index;
|
|
7316
|
+
let if_block;
|
|
7317
|
+
let if_block_anchor;
|
|
7318
|
+
let current;
|
|
7319
|
+
const if_block_creators = [create_if_block_11, create_else_block_5];
|
|
7320
|
+
const if_blocks = [];
|
|
7321
|
+
function select_block_type_8(ctx2, dirty) {
|
|
7322
|
+
if (ctx2[8] === ctx2[12])
|
|
6845
7323
|
return 0;
|
|
6846
7324
|
return 1;
|
|
6847
7325
|
}
|
|
6848
|
-
current_block_type_index =
|
|
7326
|
+
current_block_type_index = select_block_type_8(ctx);
|
|
6849
7327
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
6850
7328
|
return {
|
|
6851
7329
|
c() {
|
|
@@ -6859,7 +7337,7 @@ function create_default_slot_34(ctx) {
|
|
|
6859
7337
|
},
|
|
6860
7338
|
p(ctx2, dirty) {
|
|
6861
7339
|
let previous_block_index = current_block_type_index;
|
|
6862
|
-
current_block_type_index =
|
|
7340
|
+
current_block_type_index = select_block_type_8(ctx2);
|
|
6863
7341
|
if (current_block_type_index === previous_block_index) {
|
|
6864
7342
|
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
6865
7343
|
} else {
|
|
@@ -6896,204 +7374,960 @@ function create_default_slot_34(ctx) {
|
|
|
6896
7374
|
}
|
|
6897
7375
|
};
|
|
6898
7376
|
}
|
|
6899
|
-
function
|
|
6900
|
-
let
|
|
7377
|
+
function create_else_block_3(ctx) {
|
|
7378
|
+
let icons_pencileraser;
|
|
6901
7379
|
let current;
|
|
6902
|
-
|
|
7380
|
+
icons_pencileraser = new Icons_default.PencilEraser({ props: { theme: ctx[1] } });
|
|
6903
7381
|
return {
|
|
6904
7382
|
c() {
|
|
6905
|
-
create_component(
|
|
7383
|
+
create_component(icons_pencileraser.$$.fragment);
|
|
6906
7384
|
},
|
|
6907
7385
|
m(target, anchor) {
|
|
6908
|
-
mount_component(
|
|
7386
|
+
mount_component(icons_pencileraser, target, anchor);
|
|
6909
7387
|
current = true;
|
|
6910
7388
|
},
|
|
6911
7389
|
p(ctx2, dirty) {
|
|
6912
|
-
const
|
|
7390
|
+
const icons_pencileraser_changes = {};
|
|
6913
7391
|
if (dirty[0] & 2)
|
|
6914
|
-
|
|
6915
|
-
|
|
7392
|
+
icons_pencileraser_changes.theme = ctx2[1];
|
|
7393
|
+
icons_pencileraser.$set(icons_pencileraser_changes);
|
|
6916
7394
|
},
|
|
6917
7395
|
i(local) {
|
|
6918
7396
|
if (current)
|
|
6919
7397
|
return;
|
|
6920
|
-
transition_in(
|
|
7398
|
+
transition_in(icons_pencileraser.$$.fragment, local);
|
|
6921
7399
|
current = true;
|
|
6922
7400
|
},
|
|
6923
7401
|
o(local) {
|
|
6924
|
-
transition_out(
|
|
7402
|
+
transition_out(icons_pencileraser.$$.fragment, local);
|
|
6925
7403
|
current = false;
|
|
6926
7404
|
},
|
|
6927
7405
|
d(detaching) {
|
|
6928
|
-
destroy_component(
|
|
7406
|
+
destroy_component(icons_pencileraser, detaching);
|
|
6929
7407
|
}
|
|
6930
7408
|
};
|
|
6931
7409
|
}
|
|
6932
|
-
function
|
|
6933
|
-
let
|
|
7410
|
+
function create_if_block_10(ctx) {
|
|
7411
|
+
let icons_pencileraserfilled;
|
|
6934
7412
|
let current;
|
|
6935
|
-
|
|
6936
|
-
{
|
|
6937
|
-
|
|
6938
|
-
{ content: ctx[9].apps },
|
|
6939
|
-
{ menu: ctx[14] },
|
|
6940
|
-
{ menu_placement: "right-end" }
|
|
6941
|
-
];
|
|
6942
|
-
let button_props = {
|
|
6943
|
-
$$slots: { default: [create_default_slot_14] },
|
|
6944
|
-
$$scope: { ctx }
|
|
6945
|
-
};
|
|
6946
|
-
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
6947
|
-
button_props = assign(button_props, button_spread_levels[i]);
|
|
6948
|
-
}
|
|
6949
|
-
button = new Button_default({ props: button_props });
|
|
7413
|
+
icons_pencileraserfilled = new Icons_default.PencilEraserFilled({
|
|
7414
|
+
props: { theme: ctx[1], active: true }
|
|
7415
|
+
});
|
|
6950
7416
|
return {
|
|
6951
7417
|
c() {
|
|
6952
|
-
create_component(
|
|
7418
|
+
create_component(icons_pencileraserfilled.$$.fragment);
|
|
6953
7419
|
},
|
|
6954
7420
|
m(target, anchor) {
|
|
6955
|
-
mount_component(
|
|
7421
|
+
mount_component(icons_pencileraserfilled, target, anchor);
|
|
6956
7422
|
current = true;
|
|
6957
7423
|
},
|
|
6958
7424
|
p(ctx2, dirty) {
|
|
6959
|
-
const
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
dirty[0] & 16384 && { menu: ctx2[14] },
|
|
6964
|
-
button_spread_levels[4]
|
|
6965
|
-
]) : {};
|
|
6966
|
-
if (dirty[0] & 2 | dirty[1] & 524288) {
|
|
6967
|
-
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6968
|
-
}
|
|
6969
|
-
button.$set(button_changes);
|
|
7425
|
+
const icons_pencileraserfilled_changes = {};
|
|
7426
|
+
if (dirty[0] & 2)
|
|
7427
|
+
icons_pencileraserfilled_changes.theme = ctx2[1];
|
|
7428
|
+
icons_pencileraserfilled.$set(icons_pencileraserfilled_changes);
|
|
6970
7429
|
},
|
|
6971
7430
|
i(local) {
|
|
6972
7431
|
if (current)
|
|
6973
7432
|
return;
|
|
6974
|
-
transition_in(
|
|
7433
|
+
transition_in(icons_pencileraserfilled.$$.fragment, local);
|
|
6975
7434
|
current = true;
|
|
6976
7435
|
},
|
|
6977
7436
|
o(local) {
|
|
6978
|
-
transition_out(
|
|
7437
|
+
transition_out(icons_pencileraserfilled.$$.fragment, local);
|
|
6979
7438
|
current = false;
|
|
6980
7439
|
},
|
|
6981
7440
|
d(detaching) {
|
|
6982
|
-
destroy_component(
|
|
7441
|
+
destroy_component(icons_pencileraserfilled, detaching);
|
|
6983
7442
|
}
|
|
6984
7443
|
};
|
|
6985
7444
|
}
|
|
6986
|
-
function
|
|
6987
|
-
let
|
|
7445
|
+
function create_default_slot_6(ctx) {
|
|
7446
|
+
let current_block_type_index;
|
|
7447
|
+
let if_block;
|
|
7448
|
+
let if_block_anchor;
|
|
6988
7449
|
let current;
|
|
6989
|
-
|
|
7450
|
+
const if_block_creators = [create_if_block_10, create_else_block_3];
|
|
7451
|
+
const if_blocks = [];
|
|
7452
|
+
function select_block_type_7(ctx2, dirty) {
|
|
7453
|
+
if (ctx2[8] === "pencilEraser")
|
|
7454
|
+
return 0;
|
|
7455
|
+
return 1;
|
|
7456
|
+
}
|
|
7457
|
+
current_block_type_index = select_block_type_7(ctx);
|
|
7458
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
6990
7459
|
return {
|
|
6991
7460
|
c() {
|
|
6992
|
-
|
|
7461
|
+
if_block.c();
|
|
7462
|
+
if_block_anchor = empty();
|
|
6993
7463
|
},
|
|
6994
7464
|
m(target, anchor) {
|
|
6995
|
-
|
|
7465
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
|
7466
|
+
insert(target, if_block_anchor, anchor);
|
|
6996
7467
|
current = true;
|
|
6997
7468
|
},
|
|
6998
7469
|
p(ctx2, dirty) {
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7470
|
+
let previous_block_index = current_block_type_index;
|
|
7471
|
+
current_block_type_index = select_block_type_7(ctx2);
|
|
7472
|
+
if (current_block_type_index === previous_block_index) {
|
|
7473
|
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7474
|
+
} else {
|
|
7475
|
+
group_outros();
|
|
7476
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
7477
|
+
if_blocks[previous_block_index] = null;
|
|
7478
|
+
});
|
|
7479
|
+
check_outros();
|
|
7480
|
+
if_block = if_blocks[current_block_type_index];
|
|
7481
|
+
if (!if_block) {
|
|
7482
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
7483
|
+
if_block.c();
|
|
7484
|
+
} else {
|
|
7485
|
+
if_block.p(ctx2, dirty);
|
|
7486
|
+
}
|
|
7487
|
+
transition_in(if_block, 1);
|
|
7488
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
7489
|
+
}
|
|
7490
|
+
},
|
|
7491
|
+
i(local) {
|
|
7492
|
+
if (current)
|
|
7493
|
+
return;
|
|
7494
|
+
transition_in(if_block);
|
|
7495
|
+
current = true;
|
|
7496
|
+
},
|
|
7497
|
+
o(local) {
|
|
7498
|
+
transition_out(if_block);
|
|
7499
|
+
current = false;
|
|
7500
|
+
},
|
|
7501
|
+
d(detaching) {
|
|
7502
|
+
if_blocks[current_block_type_index].d(detaching);
|
|
7503
|
+
if (detaching)
|
|
7504
|
+
detach(if_block_anchor);
|
|
7505
|
+
}
|
|
7506
|
+
};
|
|
7507
|
+
}
|
|
7508
|
+
function create_else_block_2(ctx) {
|
|
7509
|
+
let icons_eraser;
|
|
7510
|
+
let current;
|
|
7511
|
+
icons_eraser = new Icons_default.Eraser({ props: { theme: ctx[1] } });
|
|
7512
|
+
return {
|
|
7513
|
+
c() {
|
|
7514
|
+
create_component(icons_eraser.$$.fragment);
|
|
7515
|
+
},
|
|
7516
|
+
m(target, anchor) {
|
|
7517
|
+
mount_component(icons_eraser, target, anchor);
|
|
7518
|
+
current = true;
|
|
7519
|
+
},
|
|
7520
|
+
p(ctx2, dirty) {
|
|
7521
|
+
const icons_eraser_changes = {};
|
|
7522
|
+
if (dirty[0] & 2)
|
|
7523
|
+
icons_eraser_changes.theme = ctx2[1];
|
|
7524
|
+
icons_eraser.$set(icons_eraser_changes);
|
|
7525
|
+
},
|
|
7526
|
+
i(local) {
|
|
7527
|
+
if (current)
|
|
7528
|
+
return;
|
|
7529
|
+
transition_in(icons_eraser.$$.fragment, local);
|
|
7530
|
+
current = true;
|
|
7531
|
+
},
|
|
7532
|
+
o(local) {
|
|
7533
|
+
transition_out(icons_eraser.$$.fragment, local);
|
|
7534
|
+
current = false;
|
|
7535
|
+
},
|
|
7536
|
+
d(detaching) {
|
|
7537
|
+
destroy_component(icons_eraser, detaching);
|
|
7538
|
+
}
|
|
7539
|
+
};
|
|
7540
|
+
}
|
|
7541
|
+
function create_if_block_8(ctx) {
|
|
7542
|
+
let icons_eraserfilled;
|
|
7543
|
+
let current;
|
|
7544
|
+
icons_eraserfilled = new Icons_default.EraserFilled({
|
|
7545
|
+
props: { theme: ctx[1], active: true }
|
|
7546
|
+
});
|
|
7547
|
+
return {
|
|
7548
|
+
c() {
|
|
7549
|
+
create_component(icons_eraserfilled.$$.fragment);
|
|
7550
|
+
},
|
|
7551
|
+
m(target, anchor) {
|
|
7552
|
+
mount_component(icons_eraserfilled, target, anchor);
|
|
7553
|
+
current = true;
|
|
7554
|
+
},
|
|
7555
|
+
p(ctx2, dirty) {
|
|
7556
|
+
const icons_eraserfilled_changes = {};
|
|
7557
|
+
if (dirty[0] & 2)
|
|
7558
|
+
icons_eraserfilled_changes.theme = ctx2[1];
|
|
7559
|
+
icons_eraserfilled.$set(icons_eraserfilled_changes);
|
|
7560
|
+
},
|
|
7561
|
+
i(local) {
|
|
7562
|
+
if (current)
|
|
7563
|
+
return;
|
|
7564
|
+
transition_in(icons_eraserfilled.$$.fragment, local);
|
|
7565
|
+
current = true;
|
|
7566
|
+
},
|
|
7567
|
+
o(local) {
|
|
7568
|
+
transition_out(icons_eraserfilled.$$.fragment, local);
|
|
7569
|
+
current = false;
|
|
7570
|
+
},
|
|
7571
|
+
d(detaching) {
|
|
7572
|
+
destroy_component(icons_eraserfilled, detaching);
|
|
7573
|
+
}
|
|
7574
|
+
};
|
|
7575
|
+
}
|
|
7576
|
+
function create_default_slot_53(ctx) {
|
|
7577
|
+
let current_block_type_index;
|
|
7578
|
+
let if_block;
|
|
7579
|
+
let if_block_anchor;
|
|
7580
|
+
let current;
|
|
7581
|
+
const if_block_creators = [create_if_block_8, create_else_block_2];
|
|
7582
|
+
const if_blocks = [];
|
|
7583
|
+
function select_block_type_6(ctx2, dirty) {
|
|
7584
|
+
if (ctx2[8] === "eraser")
|
|
7585
|
+
return 0;
|
|
7586
|
+
return 1;
|
|
7587
|
+
}
|
|
7588
|
+
current_block_type_index = select_block_type_6(ctx);
|
|
7589
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7590
|
+
return {
|
|
7591
|
+
c() {
|
|
7592
|
+
if_block.c();
|
|
7593
|
+
if_block_anchor = empty();
|
|
7594
|
+
},
|
|
7595
|
+
m(target, anchor) {
|
|
7596
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
|
7597
|
+
insert(target, if_block_anchor, anchor);
|
|
7598
|
+
current = true;
|
|
7599
|
+
},
|
|
7600
|
+
p(ctx2, dirty) {
|
|
7601
|
+
let previous_block_index = current_block_type_index;
|
|
7602
|
+
current_block_type_index = select_block_type_6(ctx2);
|
|
7603
|
+
if (current_block_type_index === previous_block_index) {
|
|
7604
|
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
7605
|
+
} else {
|
|
7606
|
+
group_outros();
|
|
7607
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
7608
|
+
if_blocks[previous_block_index] = null;
|
|
7609
|
+
});
|
|
7610
|
+
check_outros();
|
|
7611
|
+
if_block = if_blocks[current_block_type_index];
|
|
7612
|
+
if (!if_block) {
|
|
7613
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
7614
|
+
if_block.c();
|
|
7615
|
+
} else {
|
|
7616
|
+
if_block.p(ctx2, dirty);
|
|
7617
|
+
}
|
|
7618
|
+
transition_in(if_block, 1);
|
|
7619
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
7620
|
+
}
|
|
7621
|
+
},
|
|
7622
|
+
i(local) {
|
|
7623
|
+
if (current)
|
|
7624
|
+
return;
|
|
7625
|
+
transition_in(if_block);
|
|
7626
|
+
current = true;
|
|
7627
|
+
},
|
|
7628
|
+
o(local) {
|
|
7629
|
+
transition_out(if_block);
|
|
7630
|
+
current = false;
|
|
7631
|
+
},
|
|
7632
|
+
d(detaching) {
|
|
7633
|
+
if_blocks[current_block_type_index].d(detaching);
|
|
7634
|
+
if (detaching)
|
|
7635
|
+
detach(if_block_anchor);
|
|
7636
|
+
}
|
|
7637
|
+
};
|
|
7638
|
+
}
|
|
7639
|
+
function create_default_slot_43(ctx) {
|
|
7640
|
+
let icons_clear;
|
|
7641
|
+
let current;
|
|
7642
|
+
icons_clear = new Icons_default.Clear({ props: { theme: ctx[1] } });
|
|
7643
|
+
return {
|
|
7644
|
+
c() {
|
|
7645
|
+
create_component(icons_clear.$$.fragment);
|
|
7646
|
+
},
|
|
7647
|
+
m(target, anchor) {
|
|
7648
|
+
mount_component(icons_clear, target, anchor);
|
|
7649
|
+
current = true;
|
|
7650
|
+
},
|
|
7651
|
+
p(ctx2, dirty) {
|
|
7652
|
+
const icons_clear_changes = {};
|
|
7653
|
+
if (dirty[0] & 2)
|
|
7654
|
+
icons_clear_changes.theme = ctx2[1];
|
|
7655
|
+
icons_clear.$set(icons_clear_changes);
|
|
7656
|
+
},
|
|
7657
|
+
i(local) {
|
|
7658
|
+
if (current)
|
|
7659
|
+
return;
|
|
7660
|
+
transition_in(icons_clear.$$.fragment, local);
|
|
7661
|
+
current = true;
|
|
7662
|
+
},
|
|
7663
|
+
o(local) {
|
|
7664
|
+
transition_out(icons_clear.$$.fragment, local);
|
|
7665
|
+
current = false;
|
|
7666
|
+
},
|
|
7667
|
+
d(detaching) {
|
|
7668
|
+
destroy_component(icons_clear, detaching);
|
|
7669
|
+
}
|
|
7670
|
+
};
|
|
7671
|
+
}
|
|
7672
|
+
function create_if_block_6(ctx) {
|
|
7673
|
+
let button;
|
|
7674
|
+
let current;
|
|
7675
|
+
const button_spread_levels = [
|
|
7676
|
+
{ class: "apps" },
|
|
7677
|
+
ctx[18],
|
|
7678
|
+
{ content: ctx[10].apps },
|
|
7679
|
+
{ menu: ctx[17] },
|
|
7680
|
+
{ menu_placement: "right-end" }
|
|
7681
|
+
];
|
|
7682
|
+
let button_props = {
|
|
7683
|
+
$$slots: { default: [create_default_slot_34] },
|
|
7684
|
+
$$scope: { ctx }
|
|
7685
|
+
};
|
|
7686
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
7687
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
7688
|
+
}
|
|
7689
|
+
button = new Button_default({ props: button_props });
|
|
7690
|
+
return {
|
|
7691
|
+
c() {
|
|
7692
|
+
create_component(button.$$.fragment);
|
|
7693
|
+
},
|
|
7694
|
+
m(target, anchor) {
|
|
7695
|
+
mount_component(button, target, anchor);
|
|
7696
|
+
current = true;
|
|
7697
|
+
},
|
|
7698
|
+
p(ctx2, dirty) {
|
|
7699
|
+
const button_changes = dirty[0] & 394240 ? get_spread_update(button_spread_levels, [
|
|
7700
|
+
button_spread_levels[0],
|
|
7701
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7702
|
+
dirty[0] & 1024 && { content: ctx2[10].apps },
|
|
7703
|
+
dirty[0] & 131072 && { menu: ctx2[17] },
|
|
7704
|
+
button_spread_levels[4]
|
|
7705
|
+
]) : {};
|
|
7706
|
+
if (dirty[0] & 2 | dirty[1] & 33554432) {
|
|
7707
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7708
|
+
}
|
|
7709
|
+
button.$set(button_changes);
|
|
7710
|
+
},
|
|
7711
|
+
i(local) {
|
|
7712
|
+
if (current)
|
|
7713
|
+
return;
|
|
7714
|
+
transition_in(button.$$.fragment, local);
|
|
7715
|
+
current = true;
|
|
7716
|
+
},
|
|
7717
|
+
o(local) {
|
|
7718
|
+
transition_out(button.$$.fragment, local);
|
|
7719
|
+
current = false;
|
|
7720
|
+
},
|
|
7721
|
+
d(detaching) {
|
|
7722
|
+
destroy_component(button, detaching);
|
|
7723
|
+
}
|
|
7724
|
+
};
|
|
7725
|
+
}
|
|
7726
|
+
function create_default_slot_34(ctx) {
|
|
7727
|
+
let icons_apps;
|
|
7728
|
+
let current;
|
|
7729
|
+
icons_apps = new Icons_default.Apps({ props: { theme: ctx[1] } });
|
|
7730
|
+
return {
|
|
7731
|
+
c() {
|
|
7732
|
+
create_component(icons_apps.$$.fragment);
|
|
7733
|
+
},
|
|
7734
|
+
m(target, anchor) {
|
|
7735
|
+
mount_component(icons_apps, target, anchor);
|
|
7736
|
+
current = true;
|
|
7737
|
+
},
|
|
7738
|
+
p(ctx2, dirty) {
|
|
7739
|
+
const icons_apps_changes = {};
|
|
7740
|
+
if (dirty[0] & 2)
|
|
7741
|
+
icons_apps_changes.theme = ctx2[1];
|
|
7742
|
+
icons_apps.$set(icons_apps_changes);
|
|
7743
|
+
},
|
|
7744
|
+
i(local) {
|
|
7745
|
+
if (current)
|
|
7746
|
+
return;
|
|
7747
|
+
transition_in(icons_apps.$$.fragment, local);
|
|
7748
|
+
current = true;
|
|
7749
|
+
},
|
|
7750
|
+
o(local) {
|
|
7751
|
+
transition_out(icons_apps.$$.fragment, local);
|
|
7752
|
+
current = false;
|
|
7753
|
+
},
|
|
7754
|
+
d(detaching) {
|
|
7755
|
+
destroy_component(icons_apps, detaching);
|
|
7756
|
+
}
|
|
7757
|
+
};
|
|
7758
|
+
}
|
|
7759
|
+
function create_if_block_5(ctx) {
|
|
7760
|
+
let button;
|
|
7761
|
+
let current;
|
|
7762
|
+
button = new Button_default({
|
|
7763
|
+
props: {
|
|
7764
|
+
class: "scroll-down",
|
|
7765
|
+
name: name5,
|
|
7766
|
+
theme: ctx[1],
|
|
7767
|
+
disabled: ctx[3],
|
|
7768
|
+
$$slots: { default: [create_default_slot_24] },
|
|
7769
|
+
$$scope: { ctx }
|
|
7770
|
+
}
|
|
7771
|
+
});
|
|
7772
|
+
button.$on("click", ctx[26]);
|
|
7773
|
+
return {
|
|
7774
|
+
c() {
|
|
7775
|
+
create_component(button.$$.fragment);
|
|
7776
|
+
},
|
|
7777
|
+
m(target, anchor) {
|
|
7778
|
+
mount_component(button, target, anchor);
|
|
7779
|
+
current = true;
|
|
7780
|
+
},
|
|
7781
|
+
p(ctx2, dirty) {
|
|
7782
|
+
const button_changes = {};
|
|
7783
|
+
if (dirty[0] & 2)
|
|
7784
|
+
button_changes.theme = ctx2[1];
|
|
7785
|
+
if (dirty[0] & 8)
|
|
7786
|
+
button_changes.disabled = ctx2[3];
|
|
7787
|
+
if (dirty[0] & 2 | dirty[1] & 33554432) {
|
|
7788
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7789
|
+
}
|
|
7790
|
+
button.$set(button_changes);
|
|
7791
|
+
},
|
|
7792
|
+
i(local) {
|
|
7793
|
+
if (current)
|
|
7794
|
+
return;
|
|
7795
|
+
transition_in(button.$$.fragment, local);
|
|
7796
|
+
current = true;
|
|
7797
|
+
},
|
|
7798
|
+
o(local) {
|
|
7799
|
+
transition_out(button.$$.fragment, local);
|
|
7800
|
+
current = false;
|
|
7801
|
+
},
|
|
7802
|
+
d(detaching) {
|
|
7803
|
+
destroy_component(button, detaching);
|
|
7804
|
+
}
|
|
7805
|
+
};
|
|
7806
|
+
}
|
|
7807
|
+
function create_default_slot_24(ctx) {
|
|
7808
|
+
let icons_down;
|
|
7809
|
+
let current;
|
|
7810
|
+
icons_down = new Icons_default.Down({ props: { theme: ctx[1] } });
|
|
7811
|
+
return {
|
|
7812
|
+
c() {
|
|
7813
|
+
create_component(icons_down.$$.fragment);
|
|
7814
|
+
},
|
|
7815
|
+
m(target, anchor) {
|
|
7816
|
+
mount_component(icons_down, target, anchor);
|
|
7817
|
+
current = true;
|
|
7818
|
+
},
|
|
7819
|
+
p(ctx2, dirty) {
|
|
7820
|
+
const icons_down_changes = {};
|
|
7821
|
+
if (dirty[0] & 2)
|
|
7822
|
+
icons_down_changes.theme = ctx2[1];
|
|
7823
|
+
icons_down.$set(icons_down_changes);
|
|
7824
|
+
},
|
|
7825
|
+
i(local) {
|
|
7826
|
+
if (current)
|
|
7827
|
+
return;
|
|
7828
|
+
transition_in(icons_down.$$.fragment, local);
|
|
7829
|
+
current = true;
|
|
7830
|
+
},
|
|
7831
|
+
o(local) {
|
|
7832
|
+
transition_out(icons_down.$$.fragment, local);
|
|
7833
|
+
current = false;
|
|
7834
|
+
},
|
|
7835
|
+
d(detaching) {
|
|
7836
|
+
destroy_component(icons_down, detaching);
|
|
7837
|
+
}
|
|
7838
|
+
};
|
|
7839
|
+
}
|
|
7840
|
+
function create_if_block_4(ctx) {
|
|
7841
|
+
let pencilerasersize;
|
|
7842
|
+
let current;
|
|
7843
|
+
pencilerasersize = new PencilEraserSize_default({
|
|
7844
|
+
props: {
|
|
7845
|
+
app: ctx[0],
|
|
7846
|
+
theme: ctx[1],
|
|
7847
|
+
disabled: ctx[3]
|
|
7848
|
+
}
|
|
7849
|
+
});
|
|
7850
|
+
return {
|
|
7851
|
+
c() {
|
|
7852
|
+
create_component(pencilerasersize.$$.fragment);
|
|
7853
|
+
},
|
|
7854
|
+
m(target, anchor) {
|
|
7855
|
+
mount_component(pencilerasersize, target, anchor);
|
|
7856
|
+
current = true;
|
|
7857
|
+
},
|
|
7858
|
+
p(ctx2, dirty) {
|
|
7859
|
+
const pencilerasersize_changes = {};
|
|
7860
|
+
if (dirty[0] & 1)
|
|
7861
|
+
pencilerasersize_changes.app = ctx2[0];
|
|
7862
|
+
if (dirty[0] & 2)
|
|
7863
|
+
pencilerasersize_changes.theme = ctx2[1];
|
|
7864
|
+
if (dirty[0] & 8)
|
|
7865
|
+
pencilerasersize_changes.disabled = ctx2[3];
|
|
7866
|
+
pencilerasersize.$set(pencilerasersize_changes);
|
|
7867
|
+
},
|
|
7868
|
+
i(local) {
|
|
7869
|
+
if (current)
|
|
7870
|
+
return;
|
|
7871
|
+
transition_in(pencilerasersize.$$.fragment, local);
|
|
7872
|
+
current = true;
|
|
7873
|
+
},
|
|
7874
|
+
o(local) {
|
|
7875
|
+
transition_out(pencilerasersize.$$.fragment, local);
|
|
7876
|
+
current = false;
|
|
7877
|
+
},
|
|
7878
|
+
d(detaching) {
|
|
7879
|
+
destroy_component(pencilerasersize, detaching);
|
|
7880
|
+
}
|
|
7881
|
+
};
|
|
7882
|
+
}
|
|
7883
|
+
function create_if_block6(ctx) {
|
|
7884
|
+
let div;
|
|
7885
|
+
let button0;
|
|
7886
|
+
let t0;
|
|
7887
|
+
let button1;
|
|
7888
|
+
let t1;
|
|
7889
|
+
let if_block_anchor;
|
|
7890
|
+
let current;
|
|
7891
|
+
const button0_spread_levels = [
|
|
7892
|
+
{ class: "eraser" },
|
|
7893
|
+
ctx[18],
|
|
7894
|
+
{ placement: "top" },
|
|
7895
|
+
{
|
|
7896
|
+
content: ctx[21].pencilEraserForPanel
|
|
7897
|
+
}
|
|
7898
|
+
];
|
|
7899
|
+
let button0_props = {
|
|
7900
|
+
$$slots: { default: [create_default_slot_14] },
|
|
7901
|
+
$$scope: { ctx }
|
|
7902
|
+
};
|
|
7903
|
+
for (let i = 0; i < button0_spread_levels.length; i += 1) {
|
|
7904
|
+
button0_props = assign(button0_props, button0_spread_levels[i]);
|
|
7905
|
+
}
|
|
7906
|
+
button0 = new Button_default({ props: button0_props });
|
|
7907
|
+
button0.$on("click", ctx[34]);
|
|
7908
|
+
const button1_spread_levels = [
|
|
7909
|
+
{ class: "eraser" },
|
|
7910
|
+
ctx[18],
|
|
7911
|
+
{ placement: "top" },
|
|
7912
|
+
{ content: ctx[21].eraserForPanel }
|
|
7913
|
+
];
|
|
7914
|
+
let button1_props = {
|
|
7915
|
+
$$slots: { default: [create_default_slot4] },
|
|
7916
|
+
$$scope: { ctx }
|
|
7917
|
+
};
|
|
7918
|
+
for (let i = 0; i < button1_spread_levels.length; i += 1) {
|
|
7919
|
+
button1_props = assign(button1_props, button1_spread_levels[i]);
|
|
7920
|
+
}
|
|
7921
|
+
button1 = new Button_default({ props: button1_props });
|
|
7922
|
+
button1.$on("click", ctx[33]);
|
|
7923
|
+
let if_block = ctx[8] === "pencilEraser" && create_if_block_18(ctx);
|
|
7924
|
+
return {
|
|
7925
|
+
c() {
|
|
7926
|
+
div = element("div");
|
|
7927
|
+
create_component(button0.$$.fragment);
|
|
7928
|
+
t0 = space();
|
|
7929
|
+
create_component(button1.$$.fragment);
|
|
7930
|
+
t1 = space();
|
|
7931
|
+
if (if_block)
|
|
7932
|
+
if_block.c();
|
|
7933
|
+
if_block_anchor = empty();
|
|
7934
|
+
attr(div, "class", name5 + "-panel-btns");
|
|
7935
|
+
},
|
|
7936
|
+
m(target, anchor) {
|
|
7937
|
+
insert(target, div, anchor);
|
|
7938
|
+
mount_component(button0, div, null);
|
|
7939
|
+
append(div, t0);
|
|
7940
|
+
mount_component(button1, div, null);
|
|
7941
|
+
insert(target, t1, anchor);
|
|
7942
|
+
if (if_block)
|
|
7943
|
+
if_block.m(target, anchor);
|
|
7944
|
+
insert(target, if_block_anchor, anchor);
|
|
7945
|
+
current = true;
|
|
7946
|
+
},
|
|
7947
|
+
p(ctx2, dirty) {
|
|
7948
|
+
const button0_changes = dirty[0] & 2359296 ? get_spread_update(button0_spread_levels, [
|
|
7949
|
+
button0_spread_levels[0],
|
|
7950
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7951
|
+
button0_spread_levels[2],
|
|
7952
|
+
dirty[0] & 2097152 && {
|
|
7953
|
+
content: ctx2[21].pencilEraserForPanel
|
|
7954
|
+
}
|
|
7955
|
+
]) : {};
|
|
7956
|
+
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
7957
|
+
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7958
|
+
}
|
|
7959
|
+
button0.$set(button0_changes);
|
|
7960
|
+
const button1_changes = dirty[0] & 2359296 ? get_spread_update(button1_spread_levels, [
|
|
7961
|
+
button1_spread_levels[0],
|
|
7962
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7963
|
+
button1_spread_levels[2],
|
|
7964
|
+
dirty[0] & 2097152 && { content: ctx2[21].eraserForPanel }
|
|
7965
|
+
]) : {};
|
|
7966
|
+
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
7967
|
+
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7968
|
+
}
|
|
7969
|
+
button1.$set(button1_changes);
|
|
7970
|
+
if (ctx2[8] === "pencilEraser") {
|
|
7971
|
+
if (if_block) {
|
|
7972
|
+
if_block.p(ctx2, dirty);
|
|
7973
|
+
if (dirty[0] & 256) {
|
|
7974
|
+
transition_in(if_block, 1);
|
|
7975
|
+
}
|
|
7976
|
+
} else {
|
|
7977
|
+
if_block = create_if_block_18(ctx2);
|
|
7978
|
+
if_block.c();
|
|
7979
|
+
transition_in(if_block, 1);
|
|
7980
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
7981
|
+
}
|
|
7982
|
+
} else if (if_block) {
|
|
7983
|
+
group_outros();
|
|
7984
|
+
transition_out(if_block, 1, 1, () => {
|
|
7985
|
+
if_block = null;
|
|
7986
|
+
});
|
|
7987
|
+
check_outros();
|
|
7988
|
+
}
|
|
7989
|
+
},
|
|
7990
|
+
i(local) {
|
|
7991
|
+
if (current)
|
|
7992
|
+
return;
|
|
7993
|
+
transition_in(button0.$$.fragment, local);
|
|
7994
|
+
transition_in(button1.$$.fragment, local);
|
|
7995
|
+
transition_in(if_block);
|
|
7996
|
+
current = true;
|
|
7997
|
+
},
|
|
7998
|
+
o(local) {
|
|
7999
|
+
transition_out(button0.$$.fragment, local);
|
|
8000
|
+
transition_out(button1.$$.fragment, local);
|
|
8001
|
+
transition_out(if_block);
|
|
8002
|
+
current = false;
|
|
8003
|
+
},
|
|
8004
|
+
d(detaching) {
|
|
8005
|
+
if (detaching)
|
|
8006
|
+
detach(div);
|
|
8007
|
+
destroy_component(button0);
|
|
8008
|
+
destroy_component(button1);
|
|
8009
|
+
if (detaching)
|
|
8010
|
+
detach(t1);
|
|
8011
|
+
if (if_block)
|
|
8012
|
+
if_block.d(detaching);
|
|
8013
|
+
if (detaching)
|
|
8014
|
+
detach(if_block_anchor);
|
|
8015
|
+
}
|
|
8016
|
+
};
|
|
8017
|
+
}
|
|
8018
|
+
function create_else_block_12(ctx) {
|
|
8019
|
+
let icons_pencileraser;
|
|
8020
|
+
let current;
|
|
8021
|
+
icons_pencileraser = new Icons_default.PencilEraser({ props: { theme: ctx[1] } });
|
|
8022
|
+
return {
|
|
8023
|
+
c() {
|
|
8024
|
+
create_component(icons_pencileraser.$$.fragment);
|
|
8025
|
+
},
|
|
8026
|
+
m(target, anchor) {
|
|
8027
|
+
mount_component(icons_pencileraser, target, anchor);
|
|
8028
|
+
current = true;
|
|
8029
|
+
},
|
|
8030
|
+
p(ctx2, dirty) {
|
|
8031
|
+
const icons_pencileraser_changes = {};
|
|
8032
|
+
if (dirty[0] & 2)
|
|
8033
|
+
icons_pencileraser_changes.theme = ctx2[1];
|
|
8034
|
+
icons_pencileraser.$set(icons_pencileraser_changes);
|
|
8035
|
+
},
|
|
8036
|
+
i(local) {
|
|
8037
|
+
if (current)
|
|
8038
|
+
return;
|
|
8039
|
+
transition_in(icons_pencileraser.$$.fragment, local);
|
|
8040
|
+
current = true;
|
|
8041
|
+
},
|
|
8042
|
+
o(local) {
|
|
8043
|
+
transition_out(icons_pencileraser.$$.fragment, local);
|
|
8044
|
+
current = false;
|
|
8045
|
+
},
|
|
8046
|
+
d(detaching) {
|
|
8047
|
+
destroy_component(icons_pencileraser, detaching);
|
|
8048
|
+
}
|
|
8049
|
+
};
|
|
8050
|
+
}
|
|
8051
|
+
function create_if_block_3(ctx) {
|
|
8052
|
+
let icons_pencileraserfilled;
|
|
8053
|
+
let current;
|
|
8054
|
+
icons_pencileraserfilled = new Icons_default.PencilEraserFilled({
|
|
8055
|
+
props: { theme: ctx[1], active: true }
|
|
8056
|
+
});
|
|
8057
|
+
return {
|
|
8058
|
+
c() {
|
|
8059
|
+
create_component(icons_pencileraserfilled.$$.fragment);
|
|
8060
|
+
},
|
|
8061
|
+
m(target, anchor) {
|
|
8062
|
+
mount_component(icons_pencileraserfilled, target, anchor);
|
|
8063
|
+
current = true;
|
|
8064
|
+
},
|
|
8065
|
+
p(ctx2, dirty) {
|
|
8066
|
+
const icons_pencileraserfilled_changes = {};
|
|
8067
|
+
if (dirty[0] & 2)
|
|
8068
|
+
icons_pencileraserfilled_changes.theme = ctx2[1];
|
|
8069
|
+
icons_pencileraserfilled.$set(icons_pencileraserfilled_changes);
|
|
8070
|
+
},
|
|
8071
|
+
i(local) {
|
|
8072
|
+
if (current)
|
|
8073
|
+
return;
|
|
8074
|
+
transition_in(icons_pencileraserfilled.$$.fragment, local);
|
|
8075
|
+
current = true;
|
|
8076
|
+
},
|
|
8077
|
+
o(local) {
|
|
8078
|
+
transition_out(icons_pencileraserfilled.$$.fragment, local);
|
|
8079
|
+
current = false;
|
|
8080
|
+
},
|
|
8081
|
+
d(detaching) {
|
|
8082
|
+
destroy_component(icons_pencileraserfilled, detaching);
|
|
8083
|
+
}
|
|
8084
|
+
};
|
|
8085
|
+
}
|
|
8086
|
+
function create_default_slot_14(ctx) {
|
|
8087
|
+
let current_block_type_index;
|
|
8088
|
+
let if_block;
|
|
8089
|
+
let if_block_anchor;
|
|
8090
|
+
let current;
|
|
8091
|
+
const if_block_creators = [create_if_block_3, create_else_block_12];
|
|
8092
|
+
const if_blocks = [];
|
|
8093
|
+
function select_block_type_10(ctx2, dirty) {
|
|
8094
|
+
if (ctx2[8] === "pencilEraser")
|
|
8095
|
+
return 0;
|
|
8096
|
+
return 1;
|
|
8097
|
+
}
|
|
8098
|
+
current_block_type_index = select_block_type_10(ctx);
|
|
8099
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
8100
|
+
return {
|
|
8101
|
+
c() {
|
|
8102
|
+
if_block.c();
|
|
8103
|
+
if_block_anchor = empty();
|
|
8104
|
+
},
|
|
8105
|
+
m(target, anchor) {
|
|
8106
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
|
8107
|
+
insert(target, if_block_anchor, anchor);
|
|
8108
|
+
current = true;
|
|
8109
|
+
},
|
|
8110
|
+
p(ctx2, dirty) {
|
|
8111
|
+
let previous_block_index = current_block_type_index;
|
|
8112
|
+
current_block_type_index = select_block_type_10(ctx2);
|
|
8113
|
+
if (current_block_type_index === previous_block_index) {
|
|
8114
|
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
8115
|
+
} else {
|
|
8116
|
+
group_outros();
|
|
8117
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
8118
|
+
if_blocks[previous_block_index] = null;
|
|
8119
|
+
});
|
|
8120
|
+
check_outros();
|
|
8121
|
+
if_block = if_blocks[current_block_type_index];
|
|
8122
|
+
if (!if_block) {
|
|
8123
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
8124
|
+
if_block.c();
|
|
8125
|
+
} else {
|
|
8126
|
+
if_block.p(ctx2, dirty);
|
|
8127
|
+
}
|
|
8128
|
+
transition_in(if_block, 1);
|
|
8129
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
8130
|
+
}
|
|
8131
|
+
},
|
|
8132
|
+
i(local) {
|
|
8133
|
+
if (current)
|
|
8134
|
+
return;
|
|
8135
|
+
transition_in(if_block);
|
|
8136
|
+
current = true;
|
|
8137
|
+
},
|
|
8138
|
+
o(local) {
|
|
8139
|
+
transition_out(if_block);
|
|
8140
|
+
current = false;
|
|
8141
|
+
},
|
|
8142
|
+
d(detaching) {
|
|
8143
|
+
if_blocks[current_block_type_index].d(detaching);
|
|
8144
|
+
if (detaching)
|
|
8145
|
+
detach(if_block_anchor);
|
|
8146
|
+
}
|
|
8147
|
+
};
|
|
8148
|
+
}
|
|
8149
|
+
function create_else_block6(ctx) {
|
|
8150
|
+
let icons_eraser;
|
|
8151
|
+
let current;
|
|
8152
|
+
icons_eraser = new Icons_default.Eraser({ props: { theme: ctx[1] } });
|
|
8153
|
+
return {
|
|
8154
|
+
c() {
|
|
8155
|
+
create_component(icons_eraser.$$.fragment);
|
|
8156
|
+
},
|
|
8157
|
+
m(target, anchor) {
|
|
8158
|
+
mount_component(icons_eraser, target, anchor);
|
|
8159
|
+
current = true;
|
|
8160
|
+
},
|
|
8161
|
+
p(ctx2, dirty) {
|
|
8162
|
+
const icons_eraser_changes = {};
|
|
8163
|
+
if (dirty[0] & 2)
|
|
8164
|
+
icons_eraser_changes.theme = ctx2[1];
|
|
8165
|
+
icons_eraser.$set(icons_eraser_changes);
|
|
8166
|
+
},
|
|
8167
|
+
i(local) {
|
|
8168
|
+
if (current)
|
|
8169
|
+
return;
|
|
8170
|
+
transition_in(icons_eraser.$$.fragment, local);
|
|
8171
|
+
current = true;
|
|
8172
|
+
},
|
|
8173
|
+
o(local) {
|
|
8174
|
+
transition_out(icons_eraser.$$.fragment, local);
|
|
8175
|
+
current = false;
|
|
8176
|
+
},
|
|
8177
|
+
d(detaching) {
|
|
8178
|
+
destroy_component(icons_eraser, detaching);
|
|
8179
|
+
}
|
|
8180
|
+
};
|
|
8181
|
+
}
|
|
8182
|
+
function create_if_block_2(ctx) {
|
|
8183
|
+
let icons_eraserfilled;
|
|
8184
|
+
let current;
|
|
8185
|
+
icons_eraserfilled = new Icons_default.EraserFilled({
|
|
8186
|
+
props: { theme: ctx[1], active: true }
|
|
8187
|
+
});
|
|
8188
|
+
return {
|
|
8189
|
+
c() {
|
|
8190
|
+
create_component(icons_eraserfilled.$$.fragment);
|
|
8191
|
+
},
|
|
8192
|
+
m(target, anchor) {
|
|
8193
|
+
mount_component(icons_eraserfilled, target, anchor);
|
|
8194
|
+
current = true;
|
|
8195
|
+
},
|
|
8196
|
+
p(ctx2, dirty) {
|
|
8197
|
+
const icons_eraserfilled_changes = {};
|
|
8198
|
+
if (dirty[0] & 2)
|
|
8199
|
+
icons_eraserfilled_changes.theme = ctx2[1];
|
|
8200
|
+
icons_eraserfilled.$set(icons_eraserfilled_changes);
|
|
7003
8201
|
},
|
|
7004
8202
|
i(local) {
|
|
7005
8203
|
if (current)
|
|
7006
8204
|
return;
|
|
7007
|
-
transition_in(
|
|
8205
|
+
transition_in(icons_eraserfilled.$$.fragment, local);
|
|
7008
8206
|
current = true;
|
|
7009
8207
|
},
|
|
7010
8208
|
o(local) {
|
|
7011
|
-
transition_out(
|
|
8209
|
+
transition_out(icons_eraserfilled.$$.fragment, local);
|
|
7012
8210
|
current = false;
|
|
7013
8211
|
},
|
|
7014
8212
|
d(detaching) {
|
|
7015
|
-
destroy_component(
|
|
8213
|
+
destroy_component(icons_eraserfilled, detaching);
|
|
7016
8214
|
}
|
|
7017
8215
|
};
|
|
7018
8216
|
}
|
|
7019
|
-
function
|
|
7020
|
-
let
|
|
8217
|
+
function create_default_slot4(ctx) {
|
|
8218
|
+
let current_block_type_index;
|
|
8219
|
+
let if_block;
|
|
8220
|
+
let if_block_anchor;
|
|
7021
8221
|
let current;
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
});
|
|
7032
|
-
button.$on("click", ctx[23]);
|
|
8222
|
+
const if_block_creators = [create_if_block_2, create_else_block6];
|
|
8223
|
+
const if_blocks = [];
|
|
8224
|
+
function select_block_type_11(ctx2, dirty) {
|
|
8225
|
+
if (ctx2[8] === "eraser")
|
|
8226
|
+
return 0;
|
|
8227
|
+
return 1;
|
|
8228
|
+
}
|
|
8229
|
+
current_block_type_index = select_block_type_11(ctx);
|
|
8230
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7033
8231
|
return {
|
|
7034
8232
|
c() {
|
|
7035
|
-
|
|
8233
|
+
if_block.c();
|
|
8234
|
+
if_block_anchor = empty();
|
|
7036
8235
|
},
|
|
7037
8236
|
m(target, anchor) {
|
|
7038
|
-
|
|
8237
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
|
8238
|
+
insert(target, if_block_anchor, anchor);
|
|
7039
8239
|
current = true;
|
|
7040
8240
|
},
|
|
7041
8241
|
p(ctx2, dirty) {
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
8242
|
+
let previous_block_index = current_block_type_index;
|
|
8243
|
+
current_block_type_index = select_block_type_11(ctx2);
|
|
8244
|
+
if (current_block_type_index === previous_block_index) {
|
|
8245
|
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
8246
|
+
} else {
|
|
8247
|
+
group_outros();
|
|
8248
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
8249
|
+
if_blocks[previous_block_index] = null;
|
|
8250
|
+
});
|
|
8251
|
+
check_outros();
|
|
8252
|
+
if_block = if_blocks[current_block_type_index];
|
|
8253
|
+
if (!if_block) {
|
|
8254
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
8255
|
+
if_block.c();
|
|
8256
|
+
} else {
|
|
8257
|
+
if_block.p(ctx2, dirty);
|
|
8258
|
+
}
|
|
8259
|
+
transition_in(if_block, 1);
|
|
8260
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
7049
8261
|
}
|
|
7050
|
-
button.$set(button_changes);
|
|
7051
8262
|
},
|
|
7052
8263
|
i(local) {
|
|
7053
8264
|
if (current)
|
|
7054
8265
|
return;
|
|
7055
|
-
transition_in(
|
|
8266
|
+
transition_in(if_block);
|
|
7056
8267
|
current = true;
|
|
7057
8268
|
},
|
|
7058
8269
|
o(local) {
|
|
7059
|
-
transition_out(
|
|
8270
|
+
transition_out(if_block);
|
|
7060
8271
|
current = false;
|
|
7061
8272
|
},
|
|
7062
8273
|
d(detaching) {
|
|
7063
|
-
|
|
8274
|
+
if_blocks[current_block_type_index].d(detaching);
|
|
8275
|
+
if (detaching)
|
|
8276
|
+
detach(if_block_anchor);
|
|
7064
8277
|
}
|
|
7065
8278
|
};
|
|
7066
8279
|
}
|
|
7067
|
-
function
|
|
7068
|
-
let
|
|
8280
|
+
function create_if_block_18(ctx) {
|
|
8281
|
+
let div;
|
|
8282
|
+
let t_1;
|
|
8283
|
+
let pencilerasersize;
|
|
7069
8284
|
let current;
|
|
7070
|
-
|
|
8285
|
+
pencilerasersize = new PencilEraserSize_default({
|
|
8286
|
+
props: {
|
|
8287
|
+
app: ctx[0],
|
|
8288
|
+
theme: ctx[1],
|
|
8289
|
+
disabled: ctx[3]
|
|
8290
|
+
}
|
|
8291
|
+
});
|
|
7071
8292
|
return {
|
|
7072
8293
|
c() {
|
|
7073
|
-
|
|
8294
|
+
div = element("div");
|
|
8295
|
+
t_1 = space();
|
|
8296
|
+
create_component(pencilerasersize.$$.fragment);
|
|
8297
|
+
attr(div, "class", name5 + "-panel-divider");
|
|
7074
8298
|
},
|
|
7075
8299
|
m(target, anchor) {
|
|
7076
|
-
|
|
8300
|
+
insert(target, div, anchor);
|
|
8301
|
+
insert(target, t_1, anchor);
|
|
8302
|
+
mount_component(pencilerasersize, target, anchor);
|
|
7077
8303
|
current = true;
|
|
7078
8304
|
},
|
|
7079
8305
|
p(ctx2, dirty) {
|
|
7080
|
-
const
|
|
8306
|
+
const pencilerasersize_changes = {};
|
|
8307
|
+
if (dirty[0] & 1)
|
|
8308
|
+
pencilerasersize_changes.app = ctx2[0];
|
|
7081
8309
|
if (dirty[0] & 2)
|
|
7082
|
-
|
|
7083
|
-
|
|
8310
|
+
pencilerasersize_changes.theme = ctx2[1];
|
|
8311
|
+
if (dirty[0] & 8)
|
|
8312
|
+
pencilerasersize_changes.disabled = ctx2[3];
|
|
8313
|
+
pencilerasersize.$set(pencilerasersize_changes);
|
|
7084
8314
|
},
|
|
7085
8315
|
i(local) {
|
|
7086
8316
|
if (current)
|
|
7087
8317
|
return;
|
|
7088
|
-
transition_in(
|
|
8318
|
+
transition_in(pencilerasersize.$$.fragment, local);
|
|
7089
8319
|
current = true;
|
|
7090
8320
|
},
|
|
7091
8321
|
o(local) {
|
|
7092
|
-
transition_out(
|
|
8322
|
+
transition_out(pencilerasersize.$$.fragment, local);
|
|
7093
8323
|
current = false;
|
|
7094
8324
|
},
|
|
7095
8325
|
d(detaching) {
|
|
7096
|
-
|
|
8326
|
+
if (detaching)
|
|
8327
|
+
detach(div);
|
|
8328
|
+
if (detaching)
|
|
8329
|
+
detach(t_1);
|
|
8330
|
+
destroy_component(pencilerasersize, detaching);
|
|
7097
8331
|
}
|
|
7098
8332
|
};
|
|
7099
8333
|
}
|
|
@@ -7106,7 +8340,7 @@ function create_each_block4(ctx) {
|
|
|
7106
8340
|
let img_title_value;
|
|
7107
8341
|
let t0;
|
|
7108
8342
|
let span;
|
|
7109
|
-
let t1_value = ctx[
|
|
8343
|
+
let t1_value = ctx[49] + "";
|
|
7110
8344
|
let t1;
|
|
7111
8345
|
let span_class_value;
|
|
7112
8346
|
let t2;
|
|
@@ -7125,17 +8359,17 @@ function create_each_block4(ctx) {
|
|
|
7125
8359
|
t1 = text(t1_value);
|
|
7126
8360
|
t2 = space();
|
|
7127
8361
|
attr(img, "class", img_class_value = name5 + "-app-btn-icon " + ctx[1]);
|
|
7128
|
-
if (!src_url_equal(img.src, img_src_value = ctx[
|
|
8362
|
+
if (!src_url_equal(img.src, img_src_value = ctx[48]))
|
|
7129
8363
|
attr(img, "src", img_src_value);
|
|
7130
|
-
attr(img, "alt", img_alt_value = ctx[
|
|
7131
|
-
attr(img, "title", img_title_value = ctx[
|
|
8364
|
+
attr(img, "alt", img_alt_value = ctx[50]);
|
|
8365
|
+
attr(img, "title", img_title_value = ctx[49]);
|
|
7132
8366
|
attr(span, "class", span_class_value = name5 + "-app-btn-text " + ctx[1]);
|
|
7133
|
-
attr(button, "class", button_class_value = name5 + "-app-btn " + ctx[
|
|
7134
|
-
attr(button, "title", button_title_value = ctx[
|
|
7135
|
-
attr(button, "data-app-kind", button_data_app_kind_value = ctx[
|
|
7136
|
-
button.disabled = button_disabled_value = ctx[
|
|
7137
|
-
toggle_class(button, "is-loading", ctx[
|
|
7138
|
-
toggle_class(button, "is-failed", ctx[
|
|
8367
|
+
attr(button, "class", button_class_value = name5 + "-app-btn " + ctx[50] + " " + ctx[1]);
|
|
8368
|
+
attr(button, "title", button_title_value = ctx[49] + (ctx[52] && ctx[52].reason ? ": " + ctx[52].reason : ""));
|
|
8369
|
+
attr(button, "data-app-kind", button_data_app_kind_value = ctx[47].kind);
|
|
8370
|
+
button.disabled = button_disabled_value = ctx[52] && ctx[52].status !== "idle";
|
|
8371
|
+
toggle_class(button, "is-loading", ctx[52] && ctx[52].status === "loading");
|
|
8372
|
+
toggle_class(button, "is-failed", ctx[52] && ctx[52].status === "failed");
|
|
7139
8373
|
},
|
|
7140
8374
|
m(target, anchor) {
|
|
7141
8375
|
insert(target, button, anchor);
|
|
@@ -7146,8 +8380,8 @@ function create_each_block4(ctx) {
|
|
|
7146
8380
|
append(button, t2);
|
|
7147
8381
|
if (!mounted) {
|
|
7148
8382
|
dispose = listen(button, "click", function() {
|
|
7149
|
-
if (is_function(ctx[
|
|
7150
|
-
ctx[
|
|
8383
|
+
if (is_function(ctx[53]))
|
|
8384
|
+
ctx[53].apply(this, arguments);
|
|
7151
8385
|
});
|
|
7152
8386
|
mounted = true;
|
|
7153
8387
|
}
|
|
@@ -7157,37 +8391,37 @@ function create_each_block4(ctx) {
|
|
|
7157
8391
|
if (dirty[0] & 2 && img_class_value !== (img_class_value = name5 + "-app-btn-icon " + ctx[1])) {
|
|
7158
8392
|
attr(img, "class", img_class_value);
|
|
7159
8393
|
}
|
|
7160
|
-
if (dirty[0] &
|
|
8394
|
+
if (dirty[0] & 4194304 && !src_url_equal(img.src, img_src_value = ctx[48])) {
|
|
7161
8395
|
attr(img, "src", img_src_value);
|
|
7162
8396
|
}
|
|
7163
|
-
if (dirty[0] &
|
|
8397
|
+
if (dirty[0] & 4194304 && img_alt_value !== (img_alt_value = ctx[50])) {
|
|
7164
8398
|
attr(img, "alt", img_alt_value);
|
|
7165
8399
|
}
|
|
7166
|
-
if (dirty[0] &
|
|
8400
|
+
if (dirty[0] & 4194304 && img_title_value !== (img_title_value = ctx[49])) {
|
|
7167
8401
|
attr(img, "title", img_title_value);
|
|
7168
8402
|
}
|
|
7169
|
-
if (dirty[0] &
|
|
8403
|
+
if (dirty[0] & 4194304 && t1_value !== (t1_value = ctx[49] + ""))
|
|
7170
8404
|
set_data(t1, t1_value);
|
|
7171
8405
|
if (dirty[0] & 2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + ctx[1])) {
|
|
7172
8406
|
attr(span, "class", span_class_value);
|
|
7173
8407
|
}
|
|
7174
|
-
if (dirty[0] &
|
|
8408
|
+
if (dirty[0] & 4194306 && button_class_value !== (button_class_value = name5 + "-app-btn " + ctx[50] + " " + ctx[1])) {
|
|
7175
8409
|
attr(button, "class", button_class_value);
|
|
7176
8410
|
}
|
|
7177
|
-
if (dirty[0] &
|
|
8411
|
+
if (dirty[0] & 12582912 && button_title_value !== (button_title_value = ctx[49] + (ctx[52] && ctx[52].reason ? ": " + ctx[52].reason : ""))) {
|
|
7178
8412
|
attr(button, "title", button_title_value);
|
|
7179
8413
|
}
|
|
7180
|
-
if (dirty[0] &
|
|
8414
|
+
if (dirty[0] & 4194304 && button_data_app_kind_value !== (button_data_app_kind_value = ctx[47].kind)) {
|
|
7181
8415
|
attr(button, "data-app-kind", button_data_app_kind_value);
|
|
7182
8416
|
}
|
|
7183
|
-
if (dirty[0] &
|
|
8417
|
+
if (dirty[0] & 12582912 && button_disabled_value !== (button_disabled_value = ctx[52] && ctx[52].status !== "idle")) {
|
|
7184
8418
|
button.disabled = button_disabled_value;
|
|
7185
8419
|
}
|
|
7186
|
-
if (dirty[0] &
|
|
7187
|
-
toggle_class(button, "is-loading", ctx[
|
|
8420
|
+
if (dirty[0] & 12582914) {
|
|
8421
|
+
toggle_class(button, "is-loading", ctx[52] && ctx[52].status === "loading");
|
|
7188
8422
|
}
|
|
7189
|
-
if (dirty[0] &
|
|
7190
|
-
toggle_class(button, "is-failed", ctx[
|
|
8423
|
+
if (dirty[0] & 12582914) {
|
|
8424
|
+
toggle_class(button, "is-failed", ctx[52] && ctx[52].status === "failed");
|
|
7191
8425
|
}
|
|
7192
8426
|
},
|
|
7193
8427
|
d(detaching) {
|
|
@@ -7198,7 +8432,7 @@ function create_each_block4(ctx) {
|
|
|
7198
8432
|
}
|
|
7199
8433
|
};
|
|
7200
8434
|
}
|
|
7201
|
-
function
|
|
8435
|
+
function create_fragment57(ctx) {
|
|
7202
8436
|
let t0;
|
|
7203
8437
|
let div0;
|
|
7204
8438
|
let button0;
|
|
@@ -7211,14 +8445,15 @@ function create_fragment54(ctx) {
|
|
|
7211
8445
|
let t4;
|
|
7212
8446
|
let button4;
|
|
7213
8447
|
let t5;
|
|
7214
|
-
let
|
|
8448
|
+
let current_block_type_index;
|
|
8449
|
+
let if_block1;
|
|
7215
8450
|
let t6;
|
|
7216
|
-
let
|
|
8451
|
+
let button5;
|
|
7217
8452
|
let t7;
|
|
7218
8453
|
let scrollHeight_action;
|
|
7219
8454
|
let t8;
|
|
7220
8455
|
let t9;
|
|
7221
|
-
let
|
|
8456
|
+
let div9;
|
|
7222
8457
|
let div2;
|
|
7223
8458
|
let strokewidth0;
|
|
7224
8459
|
let t10;
|
|
@@ -7241,105 +8476,110 @@ function create_fragment54(ctx) {
|
|
|
7241
8476
|
let strokecolor1;
|
|
7242
8477
|
let t18;
|
|
7243
8478
|
let div7;
|
|
8479
|
+
let current_block_type_index_1;
|
|
8480
|
+
let if_block4;
|
|
8481
|
+
let t19;
|
|
8482
|
+
let div8;
|
|
7244
8483
|
let current;
|
|
7245
8484
|
let mounted;
|
|
7246
8485
|
let dispose;
|
|
7247
|
-
let if_block0 = ctx[5] &&
|
|
8486
|
+
let if_block0 = ctx[5] && create_if_block_17(ctx);
|
|
7248
8487
|
const button0_spread_levels = [
|
|
7249
8488
|
{ class: "clicker" },
|
|
7250
|
-
ctx[
|
|
7251
|
-
{ content: ctx[
|
|
8489
|
+
ctx[18],
|
|
8490
|
+
{ content: ctx[21].clicker }
|
|
7252
8491
|
];
|
|
7253
8492
|
let button0_props = {
|
|
7254
|
-
$$slots: { default: [
|
|
8493
|
+
$$slots: { default: [create_default_slot_122] },
|
|
7255
8494
|
$$scope: { ctx }
|
|
7256
8495
|
};
|
|
7257
8496
|
for (let i = 0; i < button0_spread_levels.length; i += 1) {
|
|
7258
8497
|
button0_props = assign(button0_props, button0_spread_levels[i]);
|
|
7259
8498
|
}
|
|
7260
8499
|
button0 = new Button_default({ props: button0_props });
|
|
7261
|
-
button0.$on("click", ctx[
|
|
8500
|
+
button0.$on("click", ctx[27]);
|
|
7262
8501
|
const button1_spread_levels = [
|
|
7263
8502
|
{ class: "selector" },
|
|
7264
|
-
ctx[
|
|
7265
|
-
{ content: ctx[
|
|
8503
|
+
ctx[18],
|
|
8504
|
+
{ content: ctx[21].selector }
|
|
7266
8505
|
];
|
|
7267
8506
|
let button1_props = {
|
|
7268
|
-
$$slots: { default: [
|
|
8507
|
+
$$slots: { default: [create_default_slot_11] },
|
|
7269
8508
|
$$scope: { ctx }
|
|
7270
8509
|
};
|
|
7271
8510
|
for (let i = 0; i < button1_spread_levels.length; i += 1) {
|
|
7272
8511
|
button1_props = assign(button1_props, button1_spread_levels[i]);
|
|
7273
8512
|
}
|
|
7274
8513
|
button1 = new Button_default({ props: button1_props });
|
|
7275
|
-
button1.$on("click", ctx[
|
|
8514
|
+
button1.$on("click", ctx[28]);
|
|
7276
8515
|
const button2_spread_levels = [
|
|
7277
8516
|
{ class: "pencil" },
|
|
7278
|
-
ctx[
|
|
7279
|
-
{ content: ctx[
|
|
7280
|
-
{ menu: ctx[
|
|
8517
|
+
ctx[18],
|
|
8518
|
+
{ content: ctx[21].pencil },
|
|
8519
|
+
{ menu: ctx[13] }
|
|
7281
8520
|
];
|
|
7282
8521
|
let button2_props = {
|
|
7283
|
-
$$slots: { default: [
|
|
8522
|
+
$$slots: { default: [create_default_slot_10] },
|
|
7284
8523
|
$$scope: { ctx }
|
|
7285
8524
|
};
|
|
7286
8525
|
for (let i = 0; i < button2_spread_levels.length; i += 1) {
|
|
7287
8526
|
button2_props = assign(button2_props, button2_spread_levels[i]);
|
|
7288
8527
|
}
|
|
7289
8528
|
button2 = new Button_default({ props: button2_props });
|
|
7290
|
-
button2.$on("click", ctx[
|
|
8529
|
+
button2.$on("click", ctx[29]);
|
|
7291
8530
|
const button3_spread_levels = [
|
|
7292
8531
|
{ class: "text" },
|
|
7293
|
-
ctx[
|
|
7294
|
-
{ content: ctx[
|
|
7295
|
-
{ menu: ctx[
|
|
8532
|
+
ctx[18],
|
|
8533
|
+
{ content: ctx[21].text },
|
|
8534
|
+
{ menu: ctx[14] }
|
|
7296
8535
|
];
|
|
7297
8536
|
let button3_props = {
|
|
7298
|
-
$$slots: { default: [
|
|
8537
|
+
$$slots: { default: [create_default_slot_9] },
|
|
7299
8538
|
$$scope: { ctx }
|
|
7300
8539
|
};
|
|
7301
8540
|
for (let i = 0; i < button3_spread_levels.length; i += 1) {
|
|
7302
8541
|
button3_props = assign(button3_props, button3_spread_levels[i]);
|
|
7303
8542
|
}
|
|
7304
8543
|
button3 = new Button_default({ props: button3_props });
|
|
7305
|
-
button3.$on("click", ctx[
|
|
8544
|
+
button3.$on("click", ctx[30]);
|
|
7306
8545
|
const button4_spread_levels = [
|
|
7307
8546
|
{ class: "shapes" },
|
|
7308
|
-
ctx[
|
|
7309
|
-
{ content: ctx[
|
|
7310
|
-
{ menu: ctx[
|
|
8547
|
+
ctx[18],
|
|
8548
|
+
{ content: ctx[10].shapes },
|
|
8549
|
+
{ menu: ctx[15] }
|
|
7311
8550
|
];
|
|
7312
8551
|
let button4_props = {
|
|
7313
|
-
$$slots: { default: [
|
|
8552
|
+
$$slots: { default: [create_default_slot_8] },
|
|
7314
8553
|
$$scope: { ctx }
|
|
7315
8554
|
};
|
|
7316
8555
|
for (let i = 0; i < button4_spread_levels.length; i += 1) {
|
|
7317
8556
|
button4_props = assign(button4_props, button4_spread_levels[i]);
|
|
7318
8557
|
}
|
|
7319
8558
|
button4 = new Button_default({ props: button4_props });
|
|
7320
|
-
button4.$on("click", ctx[
|
|
7321
|
-
const
|
|
8559
|
+
button4.$on("click", ctx[31]);
|
|
8560
|
+
const if_block_creators = [create_if_block_7, create_if_block_9, create_else_block_4];
|
|
8561
|
+
const if_blocks = [];
|
|
8562
|
+
function select_block_type_5(ctx2, dirty) {
|
|
8563
|
+
if (ctx2[7] === "delete")
|
|
8564
|
+
return 0;
|
|
8565
|
+
if (ctx2[7] === "pencil")
|
|
8566
|
+
return 1;
|
|
8567
|
+
return 2;
|
|
8568
|
+
}
|
|
8569
|
+
current_block_type_index = select_block_type_5(ctx);
|
|
8570
|
+
if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
8571
|
+
const button5_spread_levels = [{ class: "clear" }, ctx[18], { content: ctx[10].clear }];
|
|
7322
8572
|
let button5_props = {
|
|
7323
|
-
$$slots: { default: [
|
|
8573
|
+
$$slots: { default: [create_default_slot_43] },
|
|
7324
8574
|
$$scope: { ctx }
|
|
7325
8575
|
};
|
|
7326
8576
|
for (let i = 0; i < button5_spread_levels.length; i += 1) {
|
|
7327
8577
|
button5_props = assign(button5_props, button5_spread_levels[i]);
|
|
7328
8578
|
}
|
|
7329
8579
|
button5 = new Button_default({ props: button5_props });
|
|
7330
|
-
button5.$on("click", ctx[
|
|
7331
|
-
|
|
7332
|
-
let
|
|
7333
|
-
$$slots: { default: [create_default_slot_24] },
|
|
7334
|
-
$$scope: { ctx }
|
|
7335
|
-
};
|
|
7336
|
-
for (let i = 0; i < button6_spread_levels.length; i += 1) {
|
|
7337
|
-
button6_props = assign(button6_props, button6_spread_levels[i]);
|
|
7338
|
-
}
|
|
7339
|
-
button6 = new Button_default({ props: button6_props });
|
|
7340
|
-
button6.$on("click", ctx[30]);
|
|
7341
|
-
let if_block1 = !ctx[6] && create_if_block_12(ctx);
|
|
7342
|
-
let if_block2 = ctx[5] && create_if_block6(ctx);
|
|
8580
|
+
button5.$on("click", ctx[35]);
|
|
8581
|
+
let if_block2 = !ctx[6] && create_if_block_6(ctx);
|
|
8582
|
+
let if_block3 = ctx[5] && create_if_block_5(ctx);
|
|
7343
8583
|
strokewidth0 = new StrokeWidth_default({
|
|
7344
8584
|
props: {
|
|
7345
8585
|
app: ctx[0],
|
|
@@ -7383,7 +8623,19 @@ function create_fragment54(ctx) {
|
|
|
7383
8623
|
disabled: ctx[3]
|
|
7384
8624
|
}
|
|
7385
8625
|
});
|
|
7386
|
-
|
|
8626
|
+
const if_block_creators_1 = [create_if_block6, create_if_block_4];
|
|
8627
|
+
const if_blocks_1 = [];
|
|
8628
|
+
function select_block_type_9(ctx2, dirty) {
|
|
8629
|
+
if (ctx2[7] === "both")
|
|
8630
|
+
return 0;
|
|
8631
|
+
if (ctx2[7] === "pencil")
|
|
8632
|
+
return 1;
|
|
8633
|
+
return -1;
|
|
8634
|
+
}
|
|
8635
|
+
if (~(current_block_type_index_1 = select_block_type_9(ctx))) {
|
|
8636
|
+
if_block4 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
|
|
8637
|
+
}
|
|
8638
|
+
let each_value = ctx[22];
|
|
7387
8639
|
let each_blocks = [];
|
|
7388
8640
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
7389
8641
|
each_blocks[i] = create_each_block4(get_each_context4(ctx, each_value, i));
|
|
@@ -7404,17 +8656,17 @@ function create_fragment54(ctx) {
|
|
|
7404
8656
|
t4 = space();
|
|
7405
8657
|
create_component(button4.$$.fragment);
|
|
7406
8658
|
t5 = space();
|
|
7407
|
-
|
|
8659
|
+
if_block1.c();
|
|
7408
8660
|
t6 = space();
|
|
7409
|
-
create_component(
|
|
8661
|
+
create_component(button5.$$.fragment);
|
|
7410
8662
|
t7 = space();
|
|
7411
|
-
if (if_block1)
|
|
7412
|
-
if_block1.c();
|
|
7413
|
-
t8 = space();
|
|
7414
8663
|
if (if_block2)
|
|
7415
8664
|
if_block2.c();
|
|
8665
|
+
t8 = space();
|
|
8666
|
+
if (if_block3)
|
|
8667
|
+
if_block3.c();
|
|
7416
8668
|
t9 = space();
|
|
7417
|
-
|
|
8669
|
+
div9 = element("div");
|
|
7418
8670
|
div2 = element("div");
|
|
7419
8671
|
create_component(strokewidth0.$$.fragment);
|
|
7420
8672
|
t10 = space();
|
|
@@ -7437,6 +8689,10 @@ function create_fragment54(ctx) {
|
|
|
7437
8689
|
create_component(strokecolor1.$$.fragment);
|
|
7438
8690
|
t18 = space();
|
|
7439
8691
|
div7 = element("div");
|
|
8692
|
+
if (if_block4)
|
|
8693
|
+
if_block4.c();
|
|
8694
|
+
t19 = space();
|
|
8695
|
+
div8 = element("div");
|
|
7440
8696
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
7441
8697
|
each_blocks[i].c();
|
|
7442
8698
|
}
|
|
@@ -7448,10 +8704,11 @@ function create_fragment54(ctx) {
|
|
|
7448
8704
|
attr(div4, "class", name5 + "-panel-divider");
|
|
7449
8705
|
attr(div5, "class", name5 + "-panel-divider");
|
|
7450
8706
|
attr(div6, "class", name5 + "-panel shapes");
|
|
7451
|
-
attr(div7, "class", name5 + "-panel
|
|
7452
|
-
|
|
7453
|
-
|
|
7454
|
-
|
|
8707
|
+
attr(div7, "class", name5 + "-panel eraser");
|
|
8708
|
+
attr(div8, "class", name5 + "-panel apps");
|
|
8709
|
+
set_style(div8, "--n", ctx[22].length);
|
|
8710
|
+
attr(div9, "class", name5 + "-panel-wrapper");
|
|
8711
|
+
set_style(div9, "display", "none");
|
|
7455
8712
|
},
|
|
7456
8713
|
m(target, anchor) {
|
|
7457
8714
|
if (if_block0)
|
|
@@ -7468,30 +8725,30 @@ function create_fragment54(ctx) {
|
|
|
7468
8725
|
append(div0, t4);
|
|
7469
8726
|
mount_component(button4, div0, null);
|
|
7470
8727
|
append(div0, t5);
|
|
7471
|
-
|
|
8728
|
+
if_blocks[current_block_type_index].m(div0, null);
|
|
7472
8729
|
append(div0, t6);
|
|
7473
|
-
mount_component(
|
|
8730
|
+
mount_component(button5, div0, null);
|
|
7474
8731
|
append(div0, t7);
|
|
7475
|
-
if (if_block1)
|
|
7476
|
-
if_block1.m(div0, null);
|
|
7477
|
-
insert(target, t8, anchor);
|
|
7478
8732
|
if (if_block2)
|
|
7479
|
-
if_block2.m(
|
|
8733
|
+
if_block2.m(div0, null);
|
|
8734
|
+
insert(target, t8, anchor);
|
|
8735
|
+
if (if_block3)
|
|
8736
|
+
if_block3.m(target, anchor);
|
|
7480
8737
|
insert(target, t9, anchor);
|
|
7481
|
-
insert(target,
|
|
7482
|
-
append(
|
|
8738
|
+
insert(target, div9, anchor);
|
|
8739
|
+
append(div9, div2);
|
|
7483
8740
|
mount_component(strokewidth0, div2, null);
|
|
7484
8741
|
append(div2, t10);
|
|
7485
8742
|
append(div2, div1);
|
|
7486
8743
|
append(div2, t11);
|
|
7487
8744
|
mount_component(strokecolor0, div2, null);
|
|
7488
|
-
ctx[
|
|
7489
|
-
append(
|
|
7490
|
-
append(
|
|
8745
|
+
ctx[40](div2);
|
|
8746
|
+
append(div9, t12);
|
|
8747
|
+
append(div9, div3);
|
|
7491
8748
|
mount_component(textcolor, div3, null);
|
|
7492
|
-
ctx[
|
|
7493
|
-
append(
|
|
7494
|
-
append(
|
|
8749
|
+
ctx[41](div3);
|
|
8750
|
+
append(div9, t13);
|
|
8751
|
+
append(div9, div6);
|
|
7495
8752
|
mount_component(shapes2, div6, null);
|
|
7496
8753
|
append(div6, t14);
|
|
7497
8754
|
append(div6, div4);
|
|
@@ -7501,18 +8758,24 @@ function create_fragment54(ctx) {
|
|
|
7501
8758
|
append(div6, div5);
|
|
7502
8759
|
append(div6, t17);
|
|
7503
8760
|
mount_component(strokecolor1, div6, null);
|
|
7504
|
-
ctx[
|
|
7505
|
-
append(
|
|
7506
|
-
append(
|
|
8761
|
+
ctx[42](div6);
|
|
8762
|
+
append(div9, t18);
|
|
8763
|
+
append(div9, div7);
|
|
8764
|
+
if (~current_block_type_index_1) {
|
|
8765
|
+
if_blocks_1[current_block_type_index_1].m(div7, null);
|
|
8766
|
+
}
|
|
8767
|
+
ctx[43](div7);
|
|
8768
|
+
append(div9, t19);
|
|
8769
|
+
append(div9, div8);
|
|
7507
8770
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
7508
|
-
each_blocks[i].m(
|
|
8771
|
+
each_blocks[i].m(div8, null);
|
|
7509
8772
|
}
|
|
7510
|
-
ctx[
|
|
8773
|
+
ctx[44](div8);
|
|
7511
8774
|
current = true;
|
|
7512
8775
|
if (!mounted) {
|
|
7513
8776
|
dispose = [
|
|
7514
8777
|
action_destroyer(scrollHeight_action = scrollHeight.call(null, div0, ctx[4])),
|
|
7515
|
-
action_destroyer(scrollTop.call(null, div0, ctx[
|
|
8778
|
+
action_destroyer(scrollTop.call(null, div0, ctx[24]))
|
|
7516
8779
|
];
|
|
7517
8780
|
mounted = true;
|
|
7518
8781
|
}
|
|
@@ -7525,7 +8788,7 @@ function create_fragment54(ctx) {
|
|
|
7525
8788
|
transition_in(if_block0, 1);
|
|
7526
8789
|
}
|
|
7527
8790
|
} else {
|
|
7528
|
-
if_block0 =
|
|
8791
|
+
if_block0 = create_if_block_17(ctx2);
|
|
7529
8792
|
if_block0.c();
|
|
7530
8793
|
transition_in(if_block0, 1);
|
|
7531
8794
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -7537,88 +8800,99 @@ function create_fragment54(ctx) {
|
|
|
7537
8800
|
});
|
|
7538
8801
|
check_outros();
|
|
7539
8802
|
}
|
|
7540
|
-
const button0_changes = dirty[0] &
|
|
8803
|
+
const button0_changes = dirty[0] & 2359296 ? get_spread_update(button0_spread_levels, [
|
|
7541
8804
|
button0_spread_levels[0],
|
|
7542
|
-
dirty[0] &
|
|
7543
|
-
dirty[0] &
|
|
8805
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8806
|
+
dirty[0] & 2097152 && { content: ctx2[21].clicker }
|
|
7544
8807
|
]) : {};
|
|
7545
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8808
|
+
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
7546
8809
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7547
8810
|
}
|
|
7548
8811
|
button0.$set(button0_changes);
|
|
7549
|
-
const button1_changes = dirty[0] &
|
|
8812
|
+
const button1_changes = dirty[0] & 2359296 ? get_spread_update(button1_spread_levels, [
|
|
7550
8813
|
button1_spread_levels[0],
|
|
7551
|
-
dirty[0] &
|
|
7552
|
-
dirty[0] &
|
|
8814
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8815
|
+
dirty[0] & 2097152 && { content: ctx2[21].selector }
|
|
7553
8816
|
]) : {};
|
|
7554
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8817
|
+
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
7555
8818
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7556
8819
|
}
|
|
7557
8820
|
button1.$set(button1_changes);
|
|
7558
|
-
const button2_changes = dirty[0] &
|
|
8821
|
+
const button2_changes = dirty[0] & 2367488 ? get_spread_update(button2_spread_levels, [
|
|
7559
8822
|
button2_spread_levels[0],
|
|
7560
|
-
dirty[0] &
|
|
7561
|
-
dirty[0] &
|
|
7562
|
-
dirty[0] &
|
|
8823
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8824
|
+
dirty[0] & 2097152 && { content: ctx2[21].pencil },
|
|
8825
|
+
dirty[0] & 8192 && { menu: ctx2[13] }
|
|
7563
8826
|
]) : {};
|
|
7564
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8827
|
+
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
7565
8828
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7566
8829
|
}
|
|
7567
8830
|
button2.$set(button2_changes);
|
|
7568
|
-
const button3_changes = dirty[0] &
|
|
8831
|
+
const button3_changes = dirty[0] & 2375680 ? get_spread_update(button3_spread_levels, [
|
|
7569
8832
|
button3_spread_levels[0],
|
|
7570
|
-
dirty[0] &
|
|
7571
|
-
dirty[0] &
|
|
7572
|
-
dirty[0] &
|
|
8833
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8834
|
+
dirty[0] & 2097152 && { content: ctx2[21].text },
|
|
8835
|
+
dirty[0] & 16384 && { menu: ctx2[14] }
|
|
7573
8836
|
]) : {};
|
|
7574
|
-
if (dirty[0] & 258 | dirty[1] &
|
|
8837
|
+
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
7575
8838
|
button3_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7576
8839
|
}
|
|
7577
8840
|
button3.$set(button3_changes);
|
|
7578
|
-
const button4_changes = dirty[0] &
|
|
8841
|
+
const button4_changes = dirty[0] & 295936 ? get_spread_update(button4_spread_levels, [
|
|
7579
8842
|
button4_spread_levels[0],
|
|
7580
|
-
dirty[0] &
|
|
7581
|
-
dirty[0] &
|
|
7582
|
-
dirty[0] &
|
|
8843
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8844
|
+
dirty[0] & 1024 && { content: ctx2[10].shapes },
|
|
8845
|
+
dirty[0] & 32768 && { menu: ctx2[15] }
|
|
7583
8846
|
]) : {};
|
|
7584
|
-
if (dirty[0] &
|
|
8847
|
+
if (dirty[0] & 2818 | dirty[1] & 33554432) {
|
|
7585
8848
|
button4_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7586
8849
|
}
|
|
7587
8850
|
button4.$set(button4_changes);
|
|
7588
|
-
|
|
8851
|
+
let previous_block_index = current_block_type_index;
|
|
8852
|
+
current_block_type_index = select_block_type_5(ctx2);
|
|
8853
|
+
if (current_block_type_index === previous_block_index) {
|
|
8854
|
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
8855
|
+
} else {
|
|
8856
|
+
group_outros();
|
|
8857
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
8858
|
+
if_blocks[previous_block_index] = null;
|
|
8859
|
+
});
|
|
8860
|
+
check_outros();
|
|
8861
|
+
if_block1 = if_blocks[current_block_type_index];
|
|
8862
|
+
if (!if_block1) {
|
|
8863
|
+
if_block1 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
8864
|
+
if_block1.c();
|
|
8865
|
+
} else {
|
|
8866
|
+
if_block1.p(ctx2, dirty);
|
|
8867
|
+
}
|
|
8868
|
+
transition_in(if_block1, 1);
|
|
8869
|
+
if_block1.m(div0, t6);
|
|
8870
|
+
}
|
|
8871
|
+
const button5_changes = dirty[0] & 263168 ? get_spread_update(button5_spread_levels, [
|
|
7589
8872
|
button5_spread_levels[0],
|
|
7590
|
-
dirty[0] &
|
|
7591
|
-
dirty[0] &
|
|
8873
|
+
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8874
|
+
dirty[0] & 1024 && { content: ctx2[10].clear }
|
|
7592
8875
|
]) : {};
|
|
7593
|
-
if (dirty[0] &
|
|
8876
|
+
if (dirty[0] & 2 | dirty[1] & 33554432) {
|
|
7594
8877
|
button5_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7595
8878
|
}
|
|
7596
8879
|
button5.$set(button5_changes);
|
|
7597
|
-
const button6_changes = dirty[0] & 33280 ? get_spread_update(button6_spread_levels, [
|
|
7598
|
-
button6_spread_levels[0],
|
|
7599
|
-
dirty[0] & 32768 && get_spread_object(ctx2[15]),
|
|
7600
|
-
dirty[0] & 512 && { content: ctx2[9].clear }
|
|
7601
|
-
]) : {};
|
|
7602
|
-
if (dirty[0] & 2 | dirty[1] & 524288) {
|
|
7603
|
-
button6_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7604
|
-
}
|
|
7605
|
-
button6.$set(button6_changes);
|
|
7606
8880
|
if (!ctx2[6]) {
|
|
7607
|
-
if (
|
|
7608
|
-
|
|
8881
|
+
if (if_block2) {
|
|
8882
|
+
if_block2.p(ctx2, dirty);
|
|
7609
8883
|
if (dirty[0] & 64) {
|
|
7610
|
-
transition_in(
|
|
8884
|
+
transition_in(if_block2, 1);
|
|
7611
8885
|
}
|
|
7612
8886
|
} else {
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
transition_in(
|
|
7616
|
-
|
|
8887
|
+
if_block2 = create_if_block_6(ctx2);
|
|
8888
|
+
if_block2.c();
|
|
8889
|
+
transition_in(if_block2, 1);
|
|
8890
|
+
if_block2.m(div0, null);
|
|
7617
8891
|
}
|
|
7618
|
-
} else if (
|
|
8892
|
+
} else if (if_block2) {
|
|
7619
8893
|
group_outros();
|
|
7620
|
-
transition_out(
|
|
7621
|
-
|
|
8894
|
+
transition_out(if_block2, 1, 1, () => {
|
|
8895
|
+
if_block2 = null;
|
|
7622
8896
|
});
|
|
7623
8897
|
check_outros();
|
|
7624
8898
|
}
|
|
@@ -7628,21 +8902,21 @@ function create_fragment54(ctx) {
|
|
|
7628
8902
|
toggle_class(div0, "scrollable", ctx2[5]);
|
|
7629
8903
|
}
|
|
7630
8904
|
if (ctx2[5]) {
|
|
7631
|
-
if (
|
|
7632
|
-
|
|
8905
|
+
if (if_block3) {
|
|
8906
|
+
if_block3.p(ctx2, dirty);
|
|
7633
8907
|
if (dirty[0] & 32) {
|
|
7634
|
-
transition_in(
|
|
8908
|
+
transition_in(if_block3, 1);
|
|
7635
8909
|
}
|
|
7636
8910
|
} else {
|
|
7637
|
-
|
|
7638
|
-
|
|
7639
|
-
transition_in(
|
|
7640
|
-
|
|
8911
|
+
if_block3 = create_if_block_5(ctx2);
|
|
8912
|
+
if_block3.c();
|
|
8913
|
+
transition_in(if_block3, 1);
|
|
8914
|
+
if_block3.m(t9.parentNode, t9);
|
|
7641
8915
|
}
|
|
7642
|
-
} else if (
|
|
8916
|
+
} else if (if_block3) {
|
|
7643
8917
|
group_outros();
|
|
7644
|
-
transition_out(
|
|
7645
|
-
|
|
8918
|
+
transition_out(if_block3, 1, 1, () => {
|
|
8919
|
+
if_block3 = null;
|
|
7646
8920
|
});
|
|
7647
8921
|
check_outros();
|
|
7648
8922
|
}
|
|
@@ -7696,8 +8970,36 @@ function create_fragment54(ctx) {
|
|
|
7696
8970
|
if (dirty[0] & 8)
|
|
7697
8971
|
strokecolor1_changes.disabled = ctx2[3];
|
|
7698
8972
|
strokecolor1.$set(strokecolor1_changes);
|
|
7699
|
-
|
|
7700
|
-
|
|
8973
|
+
let previous_block_index_1 = current_block_type_index_1;
|
|
8974
|
+
current_block_type_index_1 = select_block_type_9(ctx2);
|
|
8975
|
+
if (current_block_type_index_1 === previous_block_index_1) {
|
|
8976
|
+
if (~current_block_type_index_1) {
|
|
8977
|
+
if_blocks_1[current_block_type_index_1].p(ctx2, dirty);
|
|
8978
|
+
}
|
|
8979
|
+
} else {
|
|
8980
|
+
if (if_block4) {
|
|
8981
|
+
group_outros();
|
|
8982
|
+
transition_out(if_blocks_1[previous_block_index_1], 1, 1, () => {
|
|
8983
|
+
if_blocks_1[previous_block_index_1] = null;
|
|
8984
|
+
});
|
|
8985
|
+
check_outros();
|
|
8986
|
+
}
|
|
8987
|
+
if (~current_block_type_index_1) {
|
|
8988
|
+
if_block4 = if_blocks_1[current_block_type_index_1];
|
|
8989
|
+
if (!if_block4) {
|
|
8990
|
+
if_block4 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx2);
|
|
8991
|
+
if_block4.c();
|
|
8992
|
+
} else {
|
|
8993
|
+
if_block4.p(ctx2, dirty);
|
|
8994
|
+
}
|
|
8995
|
+
transition_in(if_block4, 1);
|
|
8996
|
+
if_block4.m(div7, null);
|
|
8997
|
+
} else {
|
|
8998
|
+
if_block4 = null;
|
|
8999
|
+
}
|
|
9000
|
+
}
|
|
9001
|
+
if (dirty[0] & 12582915) {
|
|
9002
|
+
each_value = ctx2[22];
|
|
7701
9003
|
let i;
|
|
7702
9004
|
for (i = 0; i < each_value.length; i += 1) {
|
|
7703
9005
|
const child_ctx = get_each_context4(ctx2, each_value, i);
|
|
@@ -7706,7 +9008,7 @@ function create_fragment54(ctx) {
|
|
|
7706
9008
|
} else {
|
|
7707
9009
|
each_blocks[i] = create_each_block4(child_ctx);
|
|
7708
9010
|
each_blocks[i].c();
|
|
7709
|
-
each_blocks[i].m(
|
|
9011
|
+
each_blocks[i].m(div8, null);
|
|
7710
9012
|
}
|
|
7711
9013
|
}
|
|
7712
9014
|
for (; i < each_blocks.length; i += 1) {
|
|
@@ -7714,8 +9016,8 @@ function create_fragment54(ctx) {
|
|
|
7714
9016
|
}
|
|
7715
9017
|
each_blocks.length = each_value.length;
|
|
7716
9018
|
}
|
|
7717
|
-
if (!current || dirty[0] &
|
|
7718
|
-
set_style(
|
|
9019
|
+
if (!current || dirty[0] & 4194304) {
|
|
9020
|
+
set_style(div8, "--n", ctx2[22].length);
|
|
7719
9021
|
}
|
|
7720
9022
|
},
|
|
7721
9023
|
i(local) {
|
|
@@ -7727,16 +9029,17 @@ function create_fragment54(ctx) {
|
|
|
7727
9029
|
transition_in(button2.$$.fragment, local);
|
|
7728
9030
|
transition_in(button3.$$.fragment, local);
|
|
7729
9031
|
transition_in(button4.$$.fragment, local);
|
|
7730
|
-
transition_in(button5.$$.fragment, local);
|
|
7731
|
-
transition_in(button6.$$.fragment, local);
|
|
7732
9032
|
transition_in(if_block1);
|
|
9033
|
+
transition_in(button5.$$.fragment, local);
|
|
7733
9034
|
transition_in(if_block2);
|
|
9035
|
+
transition_in(if_block3);
|
|
7734
9036
|
transition_in(strokewidth0.$$.fragment, local);
|
|
7735
9037
|
transition_in(strokecolor0.$$.fragment, local);
|
|
7736
9038
|
transition_in(textcolor.$$.fragment, local);
|
|
7737
9039
|
transition_in(shapes2.$$.fragment, local);
|
|
7738
9040
|
transition_in(strokewidth1.$$.fragment, local);
|
|
7739
9041
|
transition_in(strokecolor1.$$.fragment, local);
|
|
9042
|
+
transition_in(if_block4);
|
|
7740
9043
|
current = true;
|
|
7741
9044
|
},
|
|
7742
9045
|
o(local) {
|
|
@@ -7746,16 +9049,17 @@ function create_fragment54(ctx) {
|
|
|
7746
9049
|
transition_out(button2.$$.fragment, local);
|
|
7747
9050
|
transition_out(button3.$$.fragment, local);
|
|
7748
9051
|
transition_out(button4.$$.fragment, local);
|
|
7749
|
-
transition_out(button5.$$.fragment, local);
|
|
7750
|
-
transition_out(button6.$$.fragment, local);
|
|
7751
9052
|
transition_out(if_block1);
|
|
9053
|
+
transition_out(button5.$$.fragment, local);
|
|
7752
9054
|
transition_out(if_block2);
|
|
9055
|
+
transition_out(if_block3);
|
|
7753
9056
|
transition_out(strokewidth0.$$.fragment, local);
|
|
7754
9057
|
transition_out(strokecolor0.$$.fragment, local);
|
|
7755
9058
|
transition_out(textcolor.$$.fragment, local);
|
|
7756
9059
|
transition_out(shapes2.$$.fragment, local);
|
|
7757
9060
|
transition_out(strokewidth1.$$.fragment, local);
|
|
7758
9061
|
transition_out(strokecolor1.$$.fragment, local);
|
|
9062
|
+
transition_out(if_block4);
|
|
7759
9063
|
current = false;
|
|
7760
9064
|
},
|
|
7761
9065
|
d(detaching) {
|
|
@@ -7770,36 +9074,40 @@ function create_fragment54(ctx) {
|
|
|
7770
9074
|
destroy_component(button2);
|
|
7771
9075
|
destroy_component(button3);
|
|
7772
9076
|
destroy_component(button4);
|
|
9077
|
+
if_blocks[current_block_type_index].d();
|
|
7773
9078
|
destroy_component(button5);
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
if_block1.d();
|
|
9079
|
+
if (if_block2)
|
|
9080
|
+
if_block2.d();
|
|
7777
9081
|
if (detaching)
|
|
7778
9082
|
detach(t8);
|
|
7779
|
-
if (
|
|
7780
|
-
|
|
9083
|
+
if (if_block3)
|
|
9084
|
+
if_block3.d(detaching);
|
|
7781
9085
|
if (detaching)
|
|
7782
9086
|
detach(t9);
|
|
7783
9087
|
if (detaching)
|
|
7784
|
-
detach(
|
|
9088
|
+
detach(div9);
|
|
7785
9089
|
destroy_component(strokewidth0);
|
|
7786
9090
|
destroy_component(strokecolor0);
|
|
7787
|
-
ctx[
|
|
9091
|
+
ctx[40](null);
|
|
7788
9092
|
destroy_component(textcolor);
|
|
7789
|
-
ctx[
|
|
9093
|
+
ctx[41](null);
|
|
7790
9094
|
destroy_component(shapes2);
|
|
7791
9095
|
destroy_component(strokewidth1);
|
|
7792
9096
|
destroy_component(strokecolor1);
|
|
7793
|
-
ctx[
|
|
9097
|
+
ctx[42](null);
|
|
9098
|
+
if (~current_block_type_index_1) {
|
|
9099
|
+
if_blocks_1[current_block_type_index_1].d();
|
|
9100
|
+
}
|
|
9101
|
+
ctx[43](null);
|
|
7794
9102
|
destroy_each(each_blocks, detaching);
|
|
7795
|
-
ctx[
|
|
9103
|
+
ctx[44](null);
|
|
7796
9104
|
mounted = false;
|
|
7797
9105
|
run_all(dispose);
|
|
7798
9106
|
}
|
|
7799
9107
|
};
|
|
7800
9108
|
}
|
|
7801
9109
|
var name5 = "fastboard-toolbar";
|
|
7802
|
-
function
|
|
9110
|
+
function instance57($$self, $$props, $$invalidate) {
|
|
7803
9111
|
let t;
|
|
7804
9112
|
let hotkeys;
|
|
7805
9113
|
let c;
|
|
@@ -7809,11 +9117,11 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7809
9117
|
let status;
|
|
7810
9118
|
let max_scroll;
|
|
7811
9119
|
let $top;
|
|
7812
|
-
let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(
|
|
7813
|
-
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(
|
|
9120
|
+
let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(38, $scroll_height = $$value)), scroll_height);
|
|
9121
|
+
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(39, $memberState = $$value)), memberState);
|
|
7814
9122
|
let $apps;
|
|
7815
|
-
let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(
|
|
7816
|
-
component_subscribe($$self, apps, ($$value) => $$invalidate(
|
|
9123
|
+
let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(23, $status = $$value)), status);
|
|
9124
|
+
component_subscribe($$self, apps, ($$value) => $$invalidate(22, $apps = $$value));
|
|
7817
9125
|
$$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
|
|
7818
9126
|
$$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
|
|
7819
9127
|
$$self.$$.on_destroy.push(() => $$unsubscribe_status());
|
|
@@ -7826,14 +9134,17 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7826
9134
|
let { computed_height = 0 } = $$props;
|
|
7827
9135
|
let { scrollable = false } = $$props;
|
|
7828
9136
|
let { hide_apps = false } = $$props;
|
|
9137
|
+
let { eraser_type = "both" } = $$props;
|
|
7829
9138
|
let last_shape = "rectangle";
|
|
9139
|
+
let last_eraser = "pencilEraser";
|
|
7830
9140
|
let pencil_panel;
|
|
7831
9141
|
let text_panel;
|
|
7832
9142
|
let shapes_panel;
|
|
9143
|
+
let eraser_panel;
|
|
7833
9144
|
let apps_panel;
|
|
7834
9145
|
let btn_props;
|
|
7835
9146
|
let top = writable(0);
|
|
7836
|
-
component_subscribe($$self, top, (value) => $$invalidate(
|
|
9147
|
+
component_subscribe($$self, top, (value) => $$invalidate(46, $top = value));
|
|
7837
9148
|
function scroll_up() {
|
|
7838
9149
|
set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
|
|
7839
9150
|
}
|
|
@@ -7859,34 +9170,46 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7859
9170
|
app?.setAppliance("shape", last_shape);
|
|
7860
9171
|
}
|
|
7861
9172
|
}
|
|
7862
|
-
function
|
|
9173
|
+
function select_last_eraser() {
|
|
9174
|
+
app?.setAppliance(last_eraser);
|
|
9175
|
+
}
|
|
9176
|
+
function select_eraser() {
|
|
7863
9177
|
app?.setAppliance("eraser");
|
|
7864
9178
|
}
|
|
9179
|
+
function select_pencil_eraser() {
|
|
9180
|
+
app?.setAppliance("pencilEraser");
|
|
9181
|
+
}
|
|
7865
9182
|
function clear() {
|
|
7866
9183
|
app?.cleanCurrentScene();
|
|
7867
9184
|
}
|
|
7868
9185
|
function div2_binding($$value) {
|
|
7869
9186
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
7870
9187
|
pencil_panel = $$value;
|
|
7871
|
-
$$invalidate(
|
|
9188
|
+
$$invalidate(13, pencil_panel);
|
|
7872
9189
|
});
|
|
7873
9190
|
}
|
|
7874
9191
|
function div3_binding($$value) {
|
|
7875
9192
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
7876
9193
|
text_panel = $$value;
|
|
7877
|
-
$$invalidate(
|
|
9194
|
+
$$invalidate(14, text_panel);
|
|
7878
9195
|
});
|
|
7879
9196
|
}
|
|
7880
9197
|
function div6_binding($$value) {
|
|
7881
9198
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
7882
9199
|
shapes_panel = $$value;
|
|
7883
|
-
$$invalidate(
|
|
9200
|
+
$$invalidate(15, shapes_panel);
|
|
7884
9201
|
});
|
|
7885
9202
|
}
|
|
7886
9203
|
function div7_binding($$value) {
|
|
9204
|
+
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9205
|
+
eraser_panel = $$value;
|
|
9206
|
+
$$invalidate(16, eraser_panel);
|
|
9207
|
+
});
|
|
9208
|
+
}
|
|
9209
|
+
function div8_binding($$value) {
|
|
7887
9210
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
7888
9211
|
apps_panel = $$value;
|
|
7889
|
-
$$invalidate(
|
|
9212
|
+
$$invalidate(17, apps_panel);
|
|
7890
9213
|
});
|
|
7891
9214
|
}
|
|
7892
9215
|
$$self.$$set = ($$props2) => {
|
|
@@ -7901,15 +9224,17 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7901
9224
|
if ("scroll_height" in $$props2)
|
|
7902
9225
|
$$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
|
|
7903
9226
|
if ("computed_height" in $$props2)
|
|
7904
|
-
$$invalidate(
|
|
9227
|
+
$$invalidate(36, computed_height = $$props2.computed_height);
|
|
7905
9228
|
if ("scrollable" in $$props2)
|
|
7906
9229
|
$$invalidate(5, scrollable = $$props2.scrollable);
|
|
7907
9230
|
if ("hide_apps" in $$props2)
|
|
7908
9231
|
$$invalidate(6, hide_apps = $$props2.hide_apps);
|
|
9232
|
+
if ("eraser_type" in $$props2)
|
|
9233
|
+
$$invalidate(7, eraser_type = $$props2.eraser_type);
|
|
7909
9234
|
};
|
|
7910
9235
|
$$self.$$.update = () => {
|
|
7911
9236
|
if ($$self.$$.dirty[0] & 10) {
|
|
7912
|
-
$$invalidate(
|
|
9237
|
+
$$invalidate(18, btn_props = {
|
|
7913
9238
|
name: name5,
|
|
7914
9239
|
theme,
|
|
7915
9240
|
disabled,
|
|
@@ -7917,40 +9242,48 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7917
9242
|
});
|
|
7918
9243
|
}
|
|
7919
9244
|
if ($$self.$$.dirty[0] & 4) {
|
|
7920
|
-
$$invalidate(
|
|
9245
|
+
$$invalidate(10, t = i18n4[language]);
|
|
7921
9246
|
}
|
|
7922
9247
|
if ($$self.$$.dirty[0] & 1) {
|
|
7923
|
-
$$invalidate(
|
|
9248
|
+
$$invalidate(37, hotkeys = app?.hotKeys);
|
|
7924
9249
|
}
|
|
7925
|
-
if ($$self.$$.dirty[0] &
|
|
7926
|
-
$$invalidate(
|
|
9250
|
+
if ($$self.$$.dirty[0] & 1024 | $$self.$$.dirty[1] & 64) {
|
|
9251
|
+
$$invalidate(21, c = {
|
|
7927
9252
|
clicker: tooltip(t.clicker, hotkeys?.changeToClick),
|
|
7928
9253
|
selector: tooltip(t.selector, hotkeys?.changeToSelector),
|
|
7929
9254
|
pencil: tooltip(t.pencil, hotkeys?.changeToPencil),
|
|
7930
9255
|
eraser: tooltip(t.eraser, hotkeys?.changeToEraser),
|
|
9256
|
+
pencilEraser: tooltip(t.pencilEraser, hotkeys?.changeToPencilEraser),
|
|
9257
|
+
eraserForPanel: tooltip(t.eraser, hotkeys?.changeToEraser),
|
|
9258
|
+
pencilEraserForPanel: tooltip(t.pencilEraser, hotkeys?.changeToPencilEraser),
|
|
7931
9259
|
text: tooltip(t.text, hotkeys?.changeToText)
|
|
7932
9260
|
});
|
|
7933
9261
|
}
|
|
7934
9262
|
if ($$self.$$.dirty[0] & 1) {
|
|
7935
|
-
$$subscribe_memberState($$invalidate(
|
|
9263
|
+
$$subscribe_memberState($$invalidate(20, memberState = app?.memberState));
|
|
7936
9264
|
}
|
|
7937
|
-
if ($$self.$$.dirty[1] &
|
|
9265
|
+
if ($$self.$$.dirty[1] & 256) {
|
|
7938
9266
|
$$invalidate(8, appliance = $memberState?.currentApplianceName);
|
|
7939
9267
|
}
|
|
7940
|
-
if ($$self.$$.dirty[1] &
|
|
7941
|
-
$$invalidate(
|
|
9268
|
+
if ($$self.$$.dirty[1] & 256) {
|
|
9269
|
+
$$invalidate(9, shape = $memberState?.shapeType);
|
|
7942
9270
|
}
|
|
7943
9271
|
if ($$self.$$.dirty[0] & 1) {
|
|
7944
|
-
$$subscribe_status($$invalidate(
|
|
9272
|
+
$$subscribe_status($$invalidate(19, status = app?.appsStatus));
|
|
7945
9273
|
}
|
|
7946
|
-
if ($$self.$$.dirty[0] &
|
|
9274
|
+
if ($$self.$$.dirty[0] & 768) {
|
|
7947
9275
|
if (applianceShapes.includes(appliance)) {
|
|
7948
|
-
$$invalidate(
|
|
9276
|
+
$$invalidate(11, last_shape = appliance);
|
|
7949
9277
|
} else if (shape) {
|
|
7950
|
-
$$invalidate(
|
|
9278
|
+
$$invalidate(11, last_shape = shape);
|
|
7951
9279
|
}
|
|
7952
9280
|
}
|
|
7953
|
-
if ($$self.$$.dirty[0] &
|
|
9281
|
+
if ($$self.$$.dirty[0] & 256) {
|
|
9282
|
+
if (["pencilEraser", "eraser"].includes(appliance)) {
|
|
9283
|
+
$$invalidate(12, last_eraser = appliance);
|
|
9284
|
+
}
|
|
9285
|
+
}
|
|
9286
|
+
if ($$self.$$.dirty[0] & 32 | $$self.$$.dirty[1] & 160) {
|
|
7954
9287
|
max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
|
|
7955
9288
|
}
|
|
7956
9289
|
};
|
|
@@ -7962,13 +9295,16 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7962
9295
|
scroll_height,
|
|
7963
9296
|
scrollable,
|
|
7964
9297
|
hide_apps,
|
|
7965
|
-
|
|
9298
|
+
eraser_type,
|
|
7966
9299
|
appliance,
|
|
9300
|
+
shape,
|
|
7967
9301
|
t,
|
|
7968
9302
|
last_shape,
|
|
9303
|
+
last_eraser,
|
|
7969
9304
|
pencil_panel,
|
|
7970
9305
|
text_panel,
|
|
7971
9306
|
shapes_panel,
|
|
9307
|
+
eraser_panel,
|
|
7972
9308
|
apps_panel,
|
|
7973
9309
|
btn_props,
|
|
7974
9310
|
status,
|
|
@@ -7984,7 +9320,9 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7984
9320
|
pencil,
|
|
7985
9321
|
text4,
|
|
7986
9322
|
select_last_shape,
|
|
7987
|
-
|
|
9323
|
+
select_last_eraser,
|
|
9324
|
+
select_eraser,
|
|
9325
|
+
select_pencil_eraser,
|
|
7988
9326
|
clear,
|
|
7989
9327
|
computed_height,
|
|
7990
9328
|
hotkeys,
|
|
@@ -7993,7 +9331,8 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7993
9331
|
div2_binding,
|
|
7994
9332
|
div3_binding,
|
|
7995
9333
|
div6_binding,
|
|
7996
|
-
div7_binding
|
|
9334
|
+
div7_binding,
|
|
9335
|
+
div8_binding
|
|
7997
9336
|
];
|
|
7998
9337
|
}
|
|
7999
9338
|
var Contents = class extends SvelteComponent {
|
|
@@ -8002,8 +9341,8 @@ var Contents = class extends SvelteComponent {
|
|
|
8002
9341
|
init(
|
|
8003
9342
|
this,
|
|
8004
9343
|
options,
|
|
8005
|
-
|
|
8006
|
-
|
|
9344
|
+
instance57,
|
|
9345
|
+
create_fragment57,
|
|
8007
9346
|
safe_not_equal,
|
|
8008
9347
|
{
|
|
8009
9348
|
app: 0,
|
|
@@ -8011,9 +9350,10 @@ var Contents = class extends SvelteComponent {
|
|
|
8011
9350
|
language: 2,
|
|
8012
9351
|
disabled: 3,
|
|
8013
9352
|
scroll_height: 4,
|
|
8014
|
-
computed_height:
|
|
9353
|
+
computed_height: 36,
|
|
8015
9354
|
scrollable: 5,
|
|
8016
|
-
hide_apps: 6
|
|
9355
|
+
hide_apps: 6,
|
|
9356
|
+
eraser_type: 7
|
|
8017
9357
|
},
|
|
8018
9358
|
null,
|
|
8019
9359
|
[-1, -1]
|
|
@@ -8079,7 +9419,7 @@ function create_if_block7(ctx) {
|
|
|
8079
9419
|
}
|
|
8080
9420
|
};
|
|
8081
9421
|
}
|
|
8082
|
-
function
|
|
9422
|
+
function create_fragment58(ctx) {
|
|
8083
9423
|
let div1;
|
|
8084
9424
|
let div0;
|
|
8085
9425
|
let contents;
|
|
@@ -8101,11 +9441,12 @@ function create_fragment55(ctx) {
|
|
|
8101
9441
|
app: ctx[0],
|
|
8102
9442
|
theme: ctx[1],
|
|
8103
9443
|
language: ctx[2],
|
|
8104
|
-
disabled: ctx[
|
|
8105
|
-
scroll_height: ctx[
|
|
8106
|
-
computed_height: ctx[
|
|
8107
|
-
scrollable: ctx[
|
|
8108
|
-
hide_apps: ctx[
|
|
9444
|
+
disabled: ctx[8],
|
|
9445
|
+
scroll_height: ctx[11],
|
|
9446
|
+
computed_height: ctx[7],
|
|
9447
|
+
scrollable: ctx[6],
|
|
9448
|
+
hide_apps: ctx[5],
|
|
9449
|
+
eraser_type: ctx[4]
|
|
8109
9450
|
}
|
|
8110
9451
|
});
|
|
8111
9452
|
function select_block_type(ctx2, dirty) {
|
|
@@ -8132,7 +9473,7 @@ function create_fragment55(ctx) {
|
|
|
8132
9473
|
set_style(
|
|
8133
9474
|
div0,
|
|
8134
9475
|
"height",
|
|
8135
|
-
ctx[
|
|
9476
|
+
ctx[6] ? ctx[7] + "px" : "auto",
|
|
8136
9477
|
false
|
|
8137
9478
|
);
|
|
8138
9479
|
attr(input, "type", "checkbox");
|
|
@@ -8166,8 +9507,8 @@ function create_fragment55(ctx) {
|
|
|
8166
9507
|
current = true;
|
|
8167
9508
|
if (!mounted) {
|
|
8168
9509
|
dispose = [
|
|
8169
|
-
listen(input, "change", ctx[
|
|
8170
|
-
action_destroyer(height.call(null, div1, ctx[
|
|
9510
|
+
listen(input, "change", ctx[16]),
|
|
9511
|
+
action_destroyer(height.call(null, div1, ctx[10]))
|
|
8171
9512
|
];
|
|
8172
9513
|
mounted = true;
|
|
8173
9514
|
}
|
|
@@ -8180,23 +9521,25 @@ function create_fragment55(ctx) {
|
|
|
8180
9521
|
contents_changes.theme = ctx2[1];
|
|
8181
9522
|
if (dirty & 4)
|
|
8182
9523
|
contents_changes.language = ctx2[2];
|
|
9524
|
+
if (dirty & 256)
|
|
9525
|
+
contents_changes.disabled = ctx2[8];
|
|
8183
9526
|
if (dirty & 128)
|
|
8184
|
-
contents_changes.
|
|
9527
|
+
contents_changes.computed_height = ctx2[7];
|
|
8185
9528
|
if (dirty & 64)
|
|
8186
|
-
contents_changes.
|
|
9529
|
+
contents_changes.scrollable = ctx2[6];
|
|
8187
9530
|
if (dirty & 32)
|
|
8188
|
-
contents_changes.
|
|
9531
|
+
contents_changes.hide_apps = ctx2[5];
|
|
8189
9532
|
if (dirty & 16)
|
|
8190
|
-
contents_changes.
|
|
9533
|
+
contents_changes.eraser_type = ctx2[4];
|
|
8191
9534
|
contents.$set(contents_changes);
|
|
8192
9535
|
if (!current || dirty & 2 && div0_class_value !== (div0_class_value = name6 + "-contents " + ctx2[1])) {
|
|
8193
9536
|
attr(div0, "class", div0_class_value);
|
|
8194
9537
|
}
|
|
8195
|
-
if (dirty &
|
|
9538
|
+
if (dirty & 192) {
|
|
8196
9539
|
set_style(
|
|
8197
9540
|
div0,
|
|
8198
9541
|
"height",
|
|
8199
|
-
ctx2[
|
|
9542
|
+
ctx2[6] ? ctx2[7] + "px" : "auto",
|
|
8200
9543
|
false
|
|
8201
9544
|
);
|
|
8202
9545
|
}
|
|
@@ -8244,15 +9587,16 @@ function create_fragment55(ctx) {
|
|
|
8244
9587
|
};
|
|
8245
9588
|
}
|
|
8246
9589
|
var name6 = "fastboard-toolbar";
|
|
8247
|
-
function
|
|
9590
|
+
function instance58($$self, $$props, $$invalidate) {
|
|
8248
9591
|
let writable2;
|
|
8249
9592
|
let disabled;
|
|
8250
9593
|
let computed_height;
|
|
8251
9594
|
let scrollable;
|
|
8252
9595
|
let hide_apps;
|
|
9596
|
+
let eraser_type;
|
|
8253
9597
|
let $container_height;
|
|
8254
9598
|
let $scroll_height;
|
|
8255
|
-
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(
|
|
9599
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(15, $writable = $$value)), writable2);
|
|
8256
9600
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
8257
9601
|
let { app = null } = $$props;
|
|
8258
9602
|
let { theme = "light" } = $$props;
|
|
@@ -8261,9 +9605,9 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8261
9605
|
const extra_height = (32 + 4 + 4) * 2;
|
|
8262
9606
|
let collapsed = false;
|
|
8263
9607
|
let container_height = writable(0);
|
|
8264
|
-
component_subscribe($$self, container_height, (value) => $$invalidate(
|
|
9608
|
+
component_subscribe($$self, container_height, (value) => $$invalidate(13, $container_height = value));
|
|
8265
9609
|
let scroll_height = writable(0);
|
|
8266
|
-
component_subscribe($$self, scroll_height, (value) => $$invalidate(
|
|
9610
|
+
component_subscribe($$self, scroll_height, (value) => $$invalidate(14, $scroll_height = value));
|
|
8267
9611
|
function input_change_handler() {
|
|
8268
9612
|
collapsed = this.checked;
|
|
8269
9613
|
$$invalidate(3, collapsed);
|
|
@@ -8276,23 +9620,26 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8276
9620
|
if ("language" in $$props2)
|
|
8277
9621
|
$$invalidate(2, language = $$props2.language);
|
|
8278
9622
|
if ("config" in $$props2)
|
|
8279
|
-
$$invalidate(
|
|
9623
|
+
$$invalidate(12, config = $$props2.config);
|
|
8280
9624
|
};
|
|
8281
9625
|
$$self.$$.update = () => {
|
|
8282
9626
|
if ($$self.$$.dirty & 1) {
|
|
8283
|
-
$$subscribe_writable($$invalidate(
|
|
9627
|
+
$$subscribe_writable($$invalidate(9, writable2 = app?.writable));
|
|
8284
9628
|
}
|
|
8285
|
-
if ($$self.$$.dirty &
|
|
8286
|
-
$$invalidate(
|
|
9629
|
+
if ($$self.$$.dirty & 32768) {
|
|
9630
|
+
$$invalidate(8, disabled = !$writable);
|
|
8287
9631
|
}
|
|
8288
|
-
if ($$self.$$.dirty &
|
|
8289
|
-
$$invalidate(
|
|
9632
|
+
if ($$self.$$.dirty & 24576) {
|
|
9633
|
+
$$invalidate(7, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
|
|
8290
9634
|
}
|
|
8291
|
-
if ($$self.$$.dirty &
|
|
8292
|
-
$$invalidate(
|
|
9635
|
+
if ($$self.$$.dirty & 24576) {
|
|
9636
|
+
$$invalidate(6, scrollable = $scroll_height + extra_height > $container_height);
|
|
8293
9637
|
}
|
|
8294
|
-
if ($$self.$$.dirty &
|
|
8295
|
-
$$invalidate(
|
|
9638
|
+
if ($$self.$$.dirty & 4096) {
|
|
9639
|
+
$$invalidate(5, hide_apps = config.apps?.enable === false);
|
|
9640
|
+
}
|
|
9641
|
+
if ($$self.$$.dirty & 4096) {
|
|
9642
|
+
$$invalidate(4, eraser_type = config.eraser?.behavior || "both");
|
|
8296
9643
|
}
|
|
8297
9644
|
};
|
|
8298
9645
|
return [
|
|
@@ -8300,6 +9647,7 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8300
9647
|
theme,
|
|
8301
9648
|
language,
|
|
8302
9649
|
collapsed,
|
|
9650
|
+
eraser_type,
|
|
8303
9651
|
hide_apps,
|
|
8304
9652
|
scrollable,
|
|
8305
9653
|
computed_height,
|
|
@@ -8317,11 +9665,11 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
8317
9665
|
var Toolbar = class extends SvelteComponent {
|
|
8318
9666
|
constructor(options) {
|
|
8319
9667
|
super();
|
|
8320
|
-
init(this, options,
|
|
9668
|
+
init(this, options, instance58, create_fragment58, safe_not_equal, {
|
|
8321
9669
|
app: 0,
|
|
8322
9670
|
theme: 1,
|
|
8323
9671
|
language: 2,
|
|
8324
|
-
config:
|
|
9672
|
+
config: 12
|
|
8325
9673
|
});
|
|
8326
9674
|
}
|
|
8327
9675
|
};
|
|
@@ -8417,7 +9765,7 @@ function create_if_block_22(ctx) {
|
|
|
8417
9765
|
}
|
|
8418
9766
|
};
|
|
8419
9767
|
}
|
|
8420
|
-
function
|
|
9768
|
+
function create_if_block_19(ctx) {
|
|
8421
9769
|
let icon;
|
|
8422
9770
|
let current;
|
|
8423
9771
|
icon = new Icon_default({
|
|
@@ -8564,7 +9912,7 @@ function create_default_slot_25(ctx) {
|
|
|
8564
9912
|
let if_block;
|
|
8565
9913
|
let if_block_anchor;
|
|
8566
9914
|
let current;
|
|
8567
|
-
const if_block_creators = [
|
|
9915
|
+
const if_block_creators = [create_if_block_19, create_if_block_22, create_else_block_13];
|
|
8568
9916
|
const if_blocks = [];
|
|
8569
9917
|
function select_block_type(ctx2, dirty) {
|
|
8570
9918
|
if (ctx2[3])
|
|
@@ -8872,7 +10220,7 @@ function create_each_block5(key_1, ctx) {
|
|
|
8872
10220
|
}
|
|
8873
10221
|
};
|
|
8874
10222
|
}
|
|
8875
|
-
function
|
|
10223
|
+
function create_fragment59(ctx) {
|
|
8876
10224
|
let div0;
|
|
8877
10225
|
let button0;
|
|
8878
10226
|
let t0;
|
|
@@ -9075,7 +10423,7 @@ function format(ms) {
|
|
|
9075
10423
|
return String(m).padStart(2, "0") + ":" + String(s % 60).padStart(2, "0");
|
|
9076
10424
|
}
|
|
9077
10425
|
var name7 = "fastboard-player-control";
|
|
9078
|
-
function
|
|
10426
|
+
function instance59($$self, $$props, $$invalidate) {
|
|
9079
10427
|
let t;
|
|
9080
10428
|
let canPlay;
|
|
9081
10429
|
let disabled;
|
|
@@ -9209,7 +10557,7 @@ function instance56($$self, $$props, $$invalidate) {
|
|
|
9209
10557
|
var PlayerControl = class extends SvelteComponent {
|
|
9210
10558
|
constructor(options) {
|
|
9211
10559
|
super();
|
|
9212
|
-
init(this, options,
|
|
10560
|
+
init(this, options, instance59, create_fragment59, safe_not_equal, {
|
|
9213
10561
|
player: 19,
|
|
9214
10562
|
theme: 0,
|
|
9215
10563
|
language: 20,
|
|
@@ -9264,7 +10612,7 @@ function create_if_block9(ctx) {
|
|
|
9264
10612
|
}
|
|
9265
10613
|
};
|
|
9266
10614
|
}
|
|
9267
|
-
function
|
|
10615
|
+
function create_fragment60(ctx) {
|
|
9268
10616
|
let div2;
|
|
9269
10617
|
let div0;
|
|
9270
10618
|
let t;
|
|
@@ -9346,7 +10694,7 @@ function create_fragment57(ctx) {
|
|
|
9346
10694
|
};
|
|
9347
10695
|
}
|
|
9348
10696
|
var name8 = "fastboard";
|
|
9349
|
-
function
|
|
10697
|
+
function instance60($$self, $$props, $$invalidate) {
|
|
9350
10698
|
let { player = null } = $$props;
|
|
9351
10699
|
let { theme = "light" } = $$props;
|
|
9352
10700
|
let { language = "en" } = $$props;
|
|
@@ -9419,7 +10767,7 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9419
10767
|
var ReplayFastboard = class extends SvelteComponent {
|
|
9420
10768
|
constructor(options) {
|
|
9421
10769
|
super();
|
|
9422
|
-
init(this, options,
|
|
10770
|
+
init(this, options, instance60, create_fragment60, not_equal, {
|
|
9423
10771
|
player: 0,
|
|
9424
10772
|
theme: 1,
|
|
9425
10773
|
language: 2,
|
|
@@ -9521,7 +10869,7 @@ function create_if_block_23(ctx) {
|
|
|
9521
10869
|
}
|
|
9522
10870
|
};
|
|
9523
10871
|
}
|
|
9524
|
-
function
|
|
10872
|
+
function create_if_block_110(ctx) {
|
|
9525
10873
|
let zoomcontrol;
|
|
9526
10874
|
let current;
|
|
9527
10875
|
zoomcontrol = new ZoomControl_default({
|
|
@@ -9613,7 +10961,7 @@ function create_if_block10(ctx) {
|
|
|
9613
10961
|
}
|
|
9614
10962
|
};
|
|
9615
10963
|
}
|
|
9616
|
-
function
|
|
10964
|
+
function create_fragment61(ctx) {
|
|
9617
10965
|
let div4;
|
|
9618
10966
|
let div0;
|
|
9619
10967
|
let t0;
|
|
@@ -9628,7 +10976,7 @@ function create_fragment58(ctx) {
|
|
|
9628
10976
|
let dispose;
|
|
9629
10977
|
let if_block0 = ctx[3].toolbar?.enable !== false && create_if_block_32(ctx);
|
|
9630
10978
|
let if_block1 = ctx[3].redo_undo?.enable !== false && create_if_block_23(ctx);
|
|
9631
|
-
let if_block2 = ctx[3].zoom_control?.enable !== false &&
|
|
10979
|
+
let if_block2 = ctx[3].zoom_control?.enable !== false && create_if_block_110(ctx);
|
|
9632
10980
|
let if_block3 = ctx[3].page_control?.enable !== false && create_if_block10(ctx);
|
|
9633
10981
|
return {
|
|
9634
10982
|
c() {
|
|
@@ -9733,7 +11081,7 @@ function create_fragment58(ctx) {
|
|
|
9733
11081
|
transition_in(if_block2, 1);
|
|
9734
11082
|
}
|
|
9735
11083
|
} else {
|
|
9736
|
-
if_block2 =
|
|
11084
|
+
if_block2 = create_if_block_110(ctx2);
|
|
9737
11085
|
if_block2.c();
|
|
9738
11086
|
transition_in(if_block2, 1);
|
|
9739
11087
|
if_block2.m(div2, null);
|
|
@@ -9808,7 +11156,7 @@ function create_fragment58(ctx) {
|
|
|
9808
11156
|
};
|
|
9809
11157
|
}
|
|
9810
11158
|
var name9 = "fastboard";
|
|
9811
|
-
function
|
|
11159
|
+
function instance61($$self, $$props, $$invalidate) {
|
|
9812
11160
|
let writable2;
|
|
9813
11161
|
let boxState;
|
|
9814
11162
|
let focusedApp;
|
|
@@ -9921,7 +11269,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
9921
11269
|
var Fastboard = class extends SvelteComponent {
|
|
9922
11270
|
constructor(options) {
|
|
9923
11271
|
super();
|
|
9924
|
-
init(this, options,
|
|
11272
|
+
init(this, options, instance61, create_fragment61, not_equal, {
|
|
9925
11273
|
app: 0,
|
|
9926
11274
|
theme: 1,
|
|
9927
11275
|
language: 2,
|