@netless/fastboard-ui 1.0.0-canary.6 → 1.0.0-canary.8
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 +39 -11
- package/dist/index.js +222 -179
- package/dist/index.mjs +220 -171
- package/dist/index.svelte.mjs +205 -164
- package/package.json +3 -3
- package/src/components/Button/Button.svelte +4 -1
- package/src/components/Button/Button.svelte.d.ts +1 -0
- package/src/components/Fastboard/Fastboard.scss +2 -3
- package/src/components/Toolbar/Toolbar.scss +4 -4
- package/src/components/Toolbar/Toolbar.svelte +18 -9
- package/src/components/Toolbar/components/Contents.scss +3 -3
- package/src/components/Toolbar/components/Contents.svelte +49 -6
- package/src/components/Toolbar/components/Shapes.svelte +1 -0
- package/src/components/Toolbar/components/StrokeColor.svelte +1 -0
- package/src/components/Toolbar/components/TextColor.svelte +1 -0
- package/src/components/ZoomControl/ZoomControl.svelte +1 -1
- package/src/components/theme.scss +11 -4
- package/dist/index.css.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/index.svelte.mjs.map +0 -1
package/dist/index.svelte.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { is_client, SvelteComponent, init, safe_not_equal, not_equal, element, create_component, space, attr, insert, mount_component, append, transition_in, transition_out, detach, destroy_component, 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';
|
|
1
|
+
import { is_client, SvelteComponent, init, safe_not_equal, not_equal, element, create_component, space, attr, insert, mount_component, append, transition_in, transition_out, detach, destroy_component, svg_element, set_style, toggle_class, listen, action_destroyer, run_all, component_subscribe, group_outros, check_outros, update_keyed_each, outro_and_destroy_block, noop, subscribe, empty, text, set_data, binding_callbacks, assign, get_spread_update, get_spread_object, is_function, destroy_each, bubble, src_url_equal, set_store_value, create_slot, update_slot_base, get_all_dirty_from_scope, get_slot_changes, set_input_value, to_number, destroy_block, construct_svelte_component } from 'svelte/internal';
|
|
2
2
|
import Tippy from 'tippy.js';
|
|
3
3
|
import { writable } from 'svelte/store';
|
|
4
4
|
import { onMount, createEventDispatcher } from 'svelte';
|
|
@@ -2990,15 +2990,16 @@ function create_else_block_1(ctx) {
|
|
|
2990
2990
|
let current;
|
|
2991
2991
|
let mounted;
|
|
2992
2992
|
let dispose;
|
|
2993
|
-
const default_slot_template = ctx[
|
|
2994
|
-
const default_slot = create_slot(default_slot_template, ctx, ctx[
|
|
2993
|
+
const default_slot_template = ctx[10].default;
|
|
2994
|
+
const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
|
|
2995
2995
|
return {
|
|
2996
2996
|
c() {
|
|
2997
2997
|
button = element("button");
|
|
2998
2998
|
if (default_slot)
|
|
2999
2999
|
default_slot.c();
|
|
3000
3000
|
attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
|
|
3001
|
-
button.disabled = ctx[
|
|
3001
|
+
button.disabled = ctx[4];
|
|
3002
|
+
toggle_class(button, "is-active", ctx[3]);
|
|
3002
3003
|
},
|
|
3003
3004
|
m(target, anchor) {
|
|
3004
3005
|
insert(target, button, anchor);
|
|
@@ -3007,19 +3008,19 @@ function create_else_block_1(ctx) {
|
|
|
3007
3008
|
}
|
|
3008
3009
|
current = true;
|
|
3009
3010
|
if (!mounted) {
|
|
3010
|
-
dispose = listen(button, "click", ctx[
|
|
3011
|
+
dispose = listen(button, "click", ctx[13]);
|
|
3011
3012
|
mounted = true;
|
|
3012
3013
|
}
|
|
3013
3014
|
},
|
|
3014
3015
|
p(ctx2, dirty) {
|
|
3015
3016
|
if (default_slot) {
|
|
3016
|
-
if (default_slot.p && (!current || dirty &
|
|
3017
|
+
if (default_slot.p && (!current || dirty & 512)) {
|
|
3017
3018
|
update_slot_base(
|
|
3018
3019
|
default_slot,
|
|
3019
3020
|
default_slot_template,
|
|
3020
3021
|
ctx2,
|
|
3021
|
-
ctx2[
|
|
3022
|
-
!current ? get_all_dirty_from_scope(ctx2[
|
|
3022
|
+
ctx2[9],
|
|
3023
|
+
!current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
|
|
3023
3024
|
null
|
|
3024
3025
|
);
|
|
3025
3026
|
}
|
|
@@ -3027,8 +3028,11 @@ function create_else_block_1(ctx) {
|
|
|
3027
3028
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
3028
3029
|
attr(button, "class", button_class_value);
|
|
3029
3030
|
}
|
|
3030
|
-
if (!current || dirty &
|
|
3031
|
-
button.disabled = ctx2[
|
|
3031
|
+
if (!current || dirty & 16) {
|
|
3032
|
+
button.disabled = ctx2[4];
|
|
3033
|
+
}
|
|
3034
|
+
if (!current || dirty & 15) {
|
|
3035
|
+
toggle_class(button, "is-active", ctx2[3]);
|
|
3032
3036
|
}
|
|
3033
3037
|
},
|
|
3034
3038
|
i(local) {
|
|
@@ -3059,7 +3063,7 @@ function create_if_block2(ctx) {
|
|
|
3059
3063
|
const if_block_creators = [create_if_block_1, create_else_block2];
|
|
3060
3064
|
const if_blocks = [];
|
|
3061
3065
|
function select_block_type_1(ctx2, dirty) {
|
|
3062
|
-
if (ctx2[
|
|
3066
|
+
if (ctx2[7])
|
|
3063
3067
|
return 0;
|
|
3064
3068
|
return 1;
|
|
3065
3069
|
}
|
|
@@ -3121,15 +3125,16 @@ function create_else_block2(ctx) {
|
|
|
3121
3125
|
let current;
|
|
3122
3126
|
let mounted;
|
|
3123
3127
|
let dispose;
|
|
3124
|
-
const default_slot_template = ctx[
|
|
3125
|
-
const default_slot = create_slot(default_slot_template, ctx, ctx[
|
|
3128
|
+
const default_slot_template = ctx[10].default;
|
|
3129
|
+
const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
|
|
3126
3130
|
return {
|
|
3127
3131
|
c() {
|
|
3128
3132
|
button = element("button");
|
|
3129
3133
|
if (default_slot)
|
|
3130
3134
|
default_slot.c();
|
|
3131
3135
|
attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
|
|
3132
|
-
button.disabled = ctx[
|
|
3136
|
+
button.disabled = ctx[4];
|
|
3137
|
+
toggle_class(button, "is-active", ctx[3]);
|
|
3133
3138
|
},
|
|
3134
3139
|
m(target, anchor) {
|
|
3135
3140
|
insert(target, button, anchor);
|
|
@@ -3139,10 +3144,10 @@ function create_else_block2(ctx) {
|
|
|
3139
3144
|
current = true;
|
|
3140
3145
|
if (!mounted) {
|
|
3141
3146
|
dispose = [
|
|
3142
|
-
listen(button, "click", ctx[
|
|
3147
|
+
listen(button, "click", ctx[12]),
|
|
3143
3148
|
action_destroyer(tippy_action = tippy.call(null, button, {
|
|
3144
|
-
content: ctx[
|
|
3145
|
-
placement: ctx[
|
|
3149
|
+
content: ctx[5],
|
|
3150
|
+
placement: ctx[6],
|
|
3146
3151
|
className: ctx[0]
|
|
3147
3152
|
}))
|
|
3148
3153
|
];
|
|
@@ -3151,13 +3156,13 @@ function create_else_block2(ctx) {
|
|
|
3151
3156
|
},
|
|
3152
3157
|
p(ctx2, dirty) {
|
|
3153
3158
|
if (default_slot) {
|
|
3154
|
-
if (default_slot.p && (!current || dirty &
|
|
3159
|
+
if (default_slot.p && (!current || dirty & 512)) {
|
|
3155
3160
|
update_slot_base(
|
|
3156
3161
|
default_slot,
|
|
3157
3162
|
default_slot_template,
|
|
3158
3163
|
ctx2,
|
|
3159
|
-
ctx2[
|
|
3160
|
-
!current ? get_all_dirty_from_scope(ctx2[
|
|
3164
|
+
ctx2[9],
|
|
3165
|
+
!current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
|
|
3161
3166
|
null
|
|
3162
3167
|
);
|
|
3163
3168
|
}
|
|
@@ -3165,15 +3170,18 @@ function create_else_block2(ctx) {
|
|
|
3165
3170
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
3166
3171
|
attr(button, "class", button_class_value);
|
|
3167
3172
|
}
|
|
3168
|
-
if (!current || dirty &
|
|
3169
|
-
button.disabled = ctx2[
|
|
3173
|
+
if (!current || dirty & 16) {
|
|
3174
|
+
button.disabled = ctx2[4];
|
|
3170
3175
|
}
|
|
3171
|
-
if (tippy_action && is_function(tippy_action.update) && dirty &
|
|
3176
|
+
if (tippy_action && is_function(tippy_action.update) && dirty & 97)
|
|
3172
3177
|
tippy_action.update.call(null, {
|
|
3173
|
-
content: ctx2[
|
|
3174
|
-
placement: ctx2[
|
|
3178
|
+
content: ctx2[5],
|
|
3179
|
+
placement: ctx2[6],
|
|
3175
3180
|
className: ctx2[0]
|
|
3176
3181
|
});
|
|
3182
|
+
if (!current || dirty & 15) {
|
|
3183
|
+
toggle_class(button, "is-active", ctx2[3]);
|
|
3184
|
+
}
|
|
3177
3185
|
},
|
|
3178
3186
|
i(local) {
|
|
3179
3187
|
if (current)
|
|
@@ -3208,8 +3216,8 @@ function create_if_block_1(ctx) {
|
|
|
3208
3216
|
let current;
|
|
3209
3217
|
let mounted;
|
|
3210
3218
|
let dispose;
|
|
3211
|
-
const default_slot_template = ctx[
|
|
3212
|
-
const default_slot = create_slot(default_slot_template, ctx, ctx[
|
|
3219
|
+
const default_slot_template = ctx[10].default;
|
|
3220
|
+
const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
|
|
3213
3221
|
return {
|
|
3214
3222
|
c() {
|
|
3215
3223
|
span1 = element("span");
|
|
@@ -3219,7 +3227,8 @@ function create_if_block_1(ctx) {
|
|
|
3219
3227
|
t = space();
|
|
3220
3228
|
span0 = element("span");
|
|
3221
3229
|
attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
|
|
3222
|
-
button.disabled = ctx[
|
|
3230
|
+
button.disabled = ctx[4];
|
|
3231
|
+
toggle_class(button, "is-active", ctx[3]);
|
|
3223
3232
|
attr(span0, "class", span0_class_value = ctx[1] + "-triangle");
|
|
3224
3233
|
attr(span1, "class", span1_class_value = ctx[1] + "-btn-interactive " + ctx[2]);
|
|
3225
3234
|
},
|
|
@@ -3234,18 +3243,18 @@ function create_if_block_1(ctx) {
|
|
|
3234
3243
|
current = true;
|
|
3235
3244
|
if (!mounted) {
|
|
3236
3245
|
dispose = [
|
|
3237
|
-
listen(button, "click", ctx[
|
|
3246
|
+
listen(button, "click", ctx[11]),
|
|
3238
3247
|
action_destroyer(tippy_action = tippy.call(null, button, {
|
|
3239
|
-
content: ctx[
|
|
3248
|
+
content: ctx[7],
|
|
3240
3249
|
...tippy_menu,
|
|
3241
|
-
placement: ctx[
|
|
3250
|
+
placement: ctx[8],
|
|
3242
3251
|
appendTo: document.body,
|
|
3243
3252
|
theme: ctx[2],
|
|
3244
3253
|
className: "fastboard-panel"
|
|
3245
3254
|
})),
|
|
3246
3255
|
action_destroyer(tippy_action_1 = tippy.call(null, span1, {
|
|
3247
|
-
content: ctx[
|
|
3248
|
-
placement: ctx[
|
|
3256
|
+
content: ctx[5],
|
|
3257
|
+
placement: ctx[6],
|
|
3249
3258
|
className: ctx[0]
|
|
3250
3259
|
}))
|
|
3251
3260
|
];
|
|
@@ -3254,13 +3263,13 @@ function create_if_block_1(ctx) {
|
|
|
3254
3263
|
},
|
|
3255
3264
|
p(ctx2, dirty) {
|
|
3256
3265
|
if (default_slot) {
|
|
3257
|
-
if (default_slot.p && (!current || dirty &
|
|
3266
|
+
if (default_slot.p && (!current || dirty & 512)) {
|
|
3258
3267
|
update_slot_base(
|
|
3259
3268
|
default_slot,
|
|
3260
3269
|
default_slot_template,
|
|
3261
3270
|
ctx2,
|
|
3262
|
-
ctx2[
|
|
3263
|
-
!current ? get_all_dirty_from_scope(ctx2[
|
|
3271
|
+
ctx2[9],
|
|
3272
|
+
!current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
|
|
3264
3273
|
null
|
|
3265
3274
|
);
|
|
3266
3275
|
}
|
|
@@ -3268,28 +3277,31 @@ function create_if_block_1(ctx) {
|
|
|
3268
3277
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
3269
3278
|
attr(button, "class", button_class_value);
|
|
3270
3279
|
}
|
|
3271
|
-
if (!current || dirty &
|
|
3272
|
-
button.disabled = ctx2[
|
|
3280
|
+
if (!current || dirty & 16) {
|
|
3281
|
+
button.disabled = ctx2[4];
|
|
3273
3282
|
}
|
|
3274
|
-
if (tippy_action && is_function(tippy_action.update) && dirty &
|
|
3283
|
+
if (tippy_action && is_function(tippy_action.update) && dirty & 388)
|
|
3275
3284
|
tippy_action.update.call(null, {
|
|
3276
|
-
content: ctx2[
|
|
3285
|
+
content: ctx2[7],
|
|
3277
3286
|
...tippy_menu,
|
|
3278
|
-
placement: ctx2[
|
|
3287
|
+
placement: ctx2[8],
|
|
3279
3288
|
appendTo: document.body,
|
|
3280
3289
|
theme: ctx2[2],
|
|
3281
3290
|
className: "fastboard-panel"
|
|
3282
3291
|
});
|
|
3292
|
+
if (!current || dirty & 15) {
|
|
3293
|
+
toggle_class(button, "is-active", ctx2[3]);
|
|
3294
|
+
}
|
|
3283
3295
|
if (!current || dirty & 2 && span0_class_value !== (span0_class_value = ctx2[1] + "-triangle")) {
|
|
3284
3296
|
attr(span0, "class", span0_class_value);
|
|
3285
3297
|
}
|
|
3286
3298
|
if (!current || dirty & 6 && span1_class_value !== (span1_class_value = ctx2[1] + "-btn-interactive " + ctx2[2])) {
|
|
3287
3299
|
attr(span1, "class", span1_class_value);
|
|
3288
3300
|
}
|
|
3289
|
-
if (tippy_action_1 && is_function(tippy_action_1.update) && dirty &
|
|
3301
|
+
if (tippy_action_1 && is_function(tippy_action_1.update) && dirty & 97)
|
|
3290
3302
|
tippy_action_1.update.call(null, {
|
|
3291
|
-
content: ctx2[
|
|
3292
|
-
placement: ctx2[
|
|
3303
|
+
content: ctx2[5],
|
|
3304
|
+
placement: ctx2[6],
|
|
3293
3305
|
className: ctx2[0]
|
|
3294
3306
|
});
|
|
3295
3307
|
},
|
|
@@ -3321,7 +3333,7 @@ function create_fragment47(ctx) {
|
|
|
3321
3333
|
const if_block_creators = [create_if_block2, create_else_block_1];
|
|
3322
3334
|
const if_blocks = [];
|
|
3323
3335
|
function select_block_type(ctx2, dirty) {
|
|
3324
|
-
if (ctx2[
|
|
3336
|
+
if (ctx2[5])
|
|
3325
3337
|
return 0;
|
|
3326
3338
|
return 1;
|
|
3327
3339
|
}
|
|
@@ -3381,6 +3393,7 @@ function instance47($$self, $$props, $$invalidate) {
|
|
|
3381
3393
|
let { class: className = "" } = $$props;
|
|
3382
3394
|
let { name: name10 = "fastboard-ui" } = $$props;
|
|
3383
3395
|
let { theme = "light" } = $$props;
|
|
3396
|
+
let { active = false } = $$props;
|
|
3384
3397
|
let { disabled = false } = $$props;
|
|
3385
3398
|
let { content = "" } = $$props;
|
|
3386
3399
|
let { placement = "top" } = $$props;
|
|
@@ -3402,23 +3415,26 @@ function instance47($$self, $$props, $$invalidate) {
|
|
|
3402
3415
|
$$invalidate(1, name10 = $$props2.name);
|
|
3403
3416
|
if ("theme" in $$props2)
|
|
3404
3417
|
$$invalidate(2, theme = $$props2.theme);
|
|
3418
|
+
if ("active" in $$props2)
|
|
3419
|
+
$$invalidate(3, active = $$props2.active);
|
|
3405
3420
|
if ("disabled" in $$props2)
|
|
3406
|
-
$$invalidate(
|
|
3421
|
+
$$invalidate(4, disabled = $$props2.disabled);
|
|
3407
3422
|
if ("content" in $$props2)
|
|
3408
|
-
$$invalidate(
|
|
3423
|
+
$$invalidate(5, content = $$props2.content);
|
|
3409
3424
|
if ("placement" in $$props2)
|
|
3410
|
-
$$invalidate(
|
|
3425
|
+
$$invalidate(6, placement = $$props2.placement);
|
|
3411
3426
|
if ("menu" in $$props2)
|
|
3412
|
-
$$invalidate(
|
|
3427
|
+
$$invalidate(7, menu = $$props2.menu);
|
|
3413
3428
|
if ("menu_placement" in $$props2)
|
|
3414
|
-
$$invalidate(
|
|
3429
|
+
$$invalidate(8, menu_placement = $$props2.menu_placement);
|
|
3415
3430
|
if ("$$scope" in $$props2)
|
|
3416
|
-
$$invalidate(
|
|
3431
|
+
$$invalidate(9, $$scope = $$props2.$$scope);
|
|
3417
3432
|
};
|
|
3418
3433
|
return [
|
|
3419
3434
|
className,
|
|
3420
3435
|
name10,
|
|
3421
3436
|
theme,
|
|
3437
|
+
active,
|
|
3422
3438
|
disabled,
|
|
3423
3439
|
content,
|
|
3424
3440
|
placement,
|
|
@@ -3438,11 +3454,12 @@ var Button = class extends SvelteComponent {
|
|
|
3438
3454
|
class: 0,
|
|
3439
3455
|
name: 1,
|
|
3440
3456
|
theme: 2,
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3457
|
+
active: 3,
|
|
3458
|
+
disabled: 4,
|
|
3459
|
+
content: 5,
|
|
3460
|
+
placement: 6,
|
|
3461
|
+
menu: 7,
|
|
3462
|
+
menu_placement: 8
|
|
3446
3463
|
});
|
|
3447
3464
|
}
|
|
3448
3465
|
};
|
|
@@ -4870,7 +4887,7 @@ function instance50($$self, $$props, $$invalidate) {
|
|
|
4870
4887
|
$$invalidate(4, type = disabled ? "disable" : "normal");
|
|
4871
4888
|
}
|
|
4872
4889
|
if ($$self.$$.dirty & 16384) {
|
|
4873
|
-
$$subscribe_camera($$invalidate(8, camera = app?.
|
|
4890
|
+
$$subscribe_camera($$invalidate(8, camera = app?.camera));
|
|
4874
4891
|
}
|
|
4875
4892
|
if ($$self.$$.dirty & 8) {
|
|
4876
4893
|
$$invalidate(16, scale = $camera?.scale ?? 1);
|
|
@@ -5388,7 +5405,7 @@ function create_each_block(key_1, ctx) {
|
|
|
5388
5405
|
span = element("span");
|
|
5389
5406
|
t = space();
|
|
5390
5407
|
attr(span, "class", "fastboard-toolbar-color-item");
|
|
5391
|
-
set_style(span, "background-color", ctx[7]
|
|
5408
|
+
set_style(span, "background-color", ctx[7]);
|
|
5392
5409
|
attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
|
|
5393
5410
|
attr(button, "data-color-key", ctx[7]);
|
|
5394
5411
|
button.disabled = ctx[1];
|
|
@@ -5635,7 +5652,7 @@ function create_each_block2(key_1, ctx) {
|
|
|
5635
5652
|
span = element("span");
|
|
5636
5653
|
t = space();
|
|
5637
5654
|
attr(span, "class", "fastboard-toolbar-color-item");
|
|
5638
|
-
set_style(span, "background-color", ctx[7]
|
|
5655
|
+
set_style(span, "background-color", ctx[7]);
|
|
5639
5656
|
attr(button, "class", button_class_value = "fastboard-toolbar-btn fastboard-toolbar-color-btn " + ctx[0]);
|
|
5640
5657
|
attr(button, "data-color-key", ctx[7]);
|
|
5641
5658
|
button.disabled = ctx[1];
|
|
@@ -5780,7 +5797,7 @@ function create_else_block5(ctx) {
|
|
|
5780
5797
|
return { props: { theme: ctx2[0] } };
|
|
5781
5798
|
}
|
|
5782
5799
|
if (switch_value) {
|
|
5783
|
-
switch_instance =
|
|
5800
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
5784
5801
|
}
|
|
5785
5802
|
return {
|
|
5786
5803
|
c() {
|
|
@@ -5789,9 +5806,8 @@ function create_else_block5(ctx) {
|
|
|
5789
5806
|
switch_instance_anchor = empty();
|
|
5790
5807
|
},
|
|
5791
5808
|
m(target, anchor) {
|
|
5792
|
-
if (switch_instance)
|
|
5809
|
+
if (switch_instance)
|
|
5793
5810
|
mount_component(switch_instance, target, anchor);
|
|
5794
|
-
}
|
|
5795
5811
|
insert(target, switch_instance_anchor, anchor);
|
|
5796
5812
|
current = true;
|
|
5797
5813
|
},
|
|
@@ -5809,7 +5825,7 @@ function create_else_block5(ctx) {
|
|
|
5809
5825
|
check_outros();
|
|
5810
5826
|
}
|
|
5811
5827
|
if (switch_value) {
|
|
5812
|
-
switch_instance =
|
|
5828
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
5813
5829
|
create_component(switch_instance.$$.fragment);
|
|
5814
5830
|
transition_in(switch_instance.$$.fragment, 1);
|
|
5815
5831
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -5851,7 +5867,7 @@ function create_if_block5(ctx) {
|
|
|
5851
5867
|
};
|
|
5852
5868
|
}
|
|
5853
5869
|
if (switch_value) {
|
|
5854
|
-
switch_instance =
|
|
5870
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
5855
5871
|
}
|
|
5856
5872
|
return {
|
|
5857
5873
|
c() {
|
|
@@ -5860,9 +5876,8 @@ function create_if_block5(ctx) {
|
|
|
5860
5876
|
switch_instance_anchor = empty();
|
|
5861
5877
|
},
|
|
5862
5878
|
m(target, anchor) {
|
|
5863
|
-
if (switch_instance)
|
|
5879
|
+
if (switch_instance)
|
|
5864
5880
|
mount_component(switch_instance, target, anchor);
|
|
5865
|
-
}
|
|
5866
5881
|
insert(target, switch_instance_anchor, anchor);
|
|
5867
5882
|
current = true;
|
|
5868
5883
|
},
|
|
@@ -5880,7 +5895,7 @@ function create_if_block5(ctx) {
|
|
|
5880
5895
|
check_outros();
|
|
5881
5896
|
}
|
|
5882
5897
|
if (switch_value) {
|
|
5883
|
-
switch_instance =
|
|
5898
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
5884
5899
|
create_component(switch_instance.$$.fragment);
|
|
5885
5900
|
transition_in(switch_instance.$$.fragment, 1);
|
|
5886
5901
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -5989,7 +6004,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
5989
6004
|
content: tooltip(ctx[6][ctx[12]], ctx[2][ctx[12]]),
|
|
5990
6005
|
placement: "top"
|
|
5991
6006
|
});
|
|
5992
|
-
if (dirty & 25) {
|
|
6007
|
+
if (!current || dirty & 25) {
|
|
5993
6008
|
toggle_class(button, "is-active", ctx[13]);
|
|
5994
6009
|
}
|
|
5995
6010
|
},
|
|
@@ -6820,7 +6835,7 @@ function create_else_block_6(ctx) {
|
|
|
6820
6835
|
return { props: { theme: ctx2[1] } };
|
|
6821
6836
|
}
|
|
6822
6837
|
if (switch_value) {
|
|
6823
|
-
switch_instance =
|
|
6838
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
6824
6839
|
}
|
|
6825
6840
|
return {
|
|
6826
6841
|
c() {
|
|
@@ -6829,9 +6844,8 @@ function create_else_block_6(ctx) {
|
|
|
6829
6844
|
switch_instance_anchor = empty();
|
|
6830
6845
|
},
|
|
6831
6846
|
m(target, anchor) {
|
|
6832
|
-
if (switch_instance)
|
|
6847
|
+
if (switch_instance)
|
|
6833
6848
|
mount_component(switch_instance, target, anchor);
|
|
6834
|
-
}
|
|
6835
6849
|
insert(target, switch_instance_anchor, anchor);
|
|
6836
6850
|
current = true;
|
|
6837
6851
|
},
|
|
@@ -6849,7 +6863,7 @@ function create_else_block_6(ctx) {
|
|
|
6849
6863
|
check_outros();
|
|
6850
6864
|
}
|
|
6851
6865
|
if (switch_value) {
|
|
6852
|
-
switch_instance =
|
|
6866
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
6853
6867
|
create_component(switch_instance.$$.fragment);
|
|
6854
6868
|
transition_in(switch_instance.$$.fragment, 1);
|
|
6855
6869
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -6891,7 +6905,7 @@ function create_if_block_12(ctx) {
|
|
|
6891
6905
|
};
|
|
6892
6906
|
}
|
|
6893
6907
|
if (switch_value) {
|
|
6894
|
-
switch_instance =
|
|
6908
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
6895
6909
|
}
|
|
6896
6910
|
return {
|
|
6897
6911
|
c() {
|
|
@@ -6900,9 +6914,8 @@ function create_if_block_12(ctx) {
|
|
|
6900
6914
|
switch_instance_anchor = empty();
|
|
6901
6915
|
},
|
|
6902
6916
|
m(target, anchor) {
|
|
6903
|
-
if (switch_instance)
|
|
6917
|
+
if (switch_instance)
|
|
6904
6918
|
mount_component(switch_instance, target, anchor);
|
|
6905
|
-
}
|
|
6906
6919
|
insert(target, switch_instance_anchor, anchor);
|
|
6907
6920
|
current = true;
|
|
6908
6921
|
},
|
|
@@ -6920,7 +6933,7 @@ function create_if_block_12(ctx) {
|
|
|
6920
6933
|
check_outros();
|
|
6921
6934
|
}
|
|
6922
6935
|
if (switch_value) {
|
|
6923
|
-
switch_instance =
|
|
6936
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
6924
6937
|
create_component(switch_instance.$$.fragment);
|
|
6925
6938
|
transition_in(switch_instance.$$.fragment, 1);
|
|
6926
6939
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -7019,6 +7032,9 @@ function create_else_block_4(ctx) {
|
|
|
7019
7032
|
let current;
|
|
7020
7033
|
const button_spread_levels = [
|
|
7021
7034
|
{ class: "eraser" },
|
|
7035
|
+
{
|
|
7036
|
+
active: ctx[8] === ctx[12]
|
|
7037
|
+
},
|
|
7022
7038
|
ctx[18],
|
|
7023
7039
|
{
|
|
7024
7040
|
content: ctx[10][ctx[12]]
|
|
@@ -7043,8 +7059,11 @@ function create_else_block_4(ctx) {
|
|
|
7043
7059
|
current = true;
|
|
7044
7060
|
},
|
|
7045
7061
|
p(ctx2, dirty) {
|
|
7046
|
-
const button_changes = dirty[0] &
|
|
7062
|
+
const button_changes = dirty[0] & 333056 ? get_spread_update(button_spread_levels, [
|
|
7047
7063
|
button_spread_levels[0],
|
|
7064
|
+
dirty[0] & 4352 && {
|
|
7065
|
+
active: ctx2[8] === ctx2[12]
|
|
7066
|
+
},
|
|
7048
7067
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7049
7068
|
dirty[0] & 5120 && {
|
|
7050
7069
|
content: ctx2[10][ctx2[12]]
|
|
@@ -7076,6 +7095,9 @@ function create_if_block_9(ctx) {
|
|
|
7076
7095
|
let current;
|
|
7077
7096
|
const button_spread_levels = [
|
|
7078
7097
|
{ class: "eraser" },
|
|
7098
|
+
{
|
|
7099
|
+
active: ctx[8] === "pencilEraser"
|
|
7100
|
+
},
|
|
7079
7101
|
ctx[18],
|
|
7080
7102
|
{ content: ctx[21].pencilEraser },
|
|
7081
7103
|
{ menu: ctx[16] }
|
|
@@ -7098,8 +7120,11 @@ function create_if_block_9(ctx) {
|
|
|
7098
7120
|
current = true;
|
|
7099
7121
|
},
|
|
7100
7122
|
p(ctx2, dirty) {
|
|
7101
|
-
const button_changes = dirty[0] &
|
|
7123
|
+
const button_changes = dirty[0] & 2425088 ? get_spread_update(button_spread_levels, [
|
|
7102
7124
|
button_spread_levels[0],
|
|
7125
|
+
dirty[0] & 256 && {
|
|
7126
|
+
active: ctx2[8] === "pencilEraser"
|
|
7127
|
+
},
|
|
7103
7128
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7104
7129
|
dirty[0] & 2097152 && { content: ctx2[21].pencilEraser },
|
|
7105
7130
|
dirty[0] & 65536 && { menu: ctx2[16] }
|
|
@@ -7127,7 +7152,14 @@ function create_if_block_9(ctx) {
|
|
|
7127
7152
|
function create_if_block_7(ctx) {
|
|
7128
7153
|
let button;
|
|
7129
7154
|
let current;
|
|
7130
|
-
const button_spread_levels = [
|
|
7155
|
+
const button_spread_levels = [
|
|
7156
|
+
{ class: "eraser" },
|
|
7157
|
+
{
|
|
7158
|
+
active: ctx[8] === "eraser"
|
|
7159
|
+
},
|
|
7160
|
+
ctx[18],
|
|
7161
|
+
{ content: ctx[21].eraser }
|
|
7162
|
+
];
|
|
7131
7163
|
let button_props = {
|
|
7132
7164
|
$$slots: { default: [create_default_slot_53] },
|
|
7133
7165
|
$$scope: { ctx }
|
|
@@ -7146,8 +7178,11 @@ function create_if_block_7(ctx) {
|
|
|
7146
7178
|
current = true;
|
|
7147
7179
|
},
|
|
7148
7180
|
p(ctx2, dirty) {
|
|
7149
|
-
const button_changes = dirty[0] &
|
|
7181
|
+
const button_changes = dirty[0] & 2359552 ? get_spread_update(button_spread_levels, [
|
|
7150
7182
|
button_spread_levels[0],
|
|
7183
|
+
dirty[0] & 256 && {
|
|
7184
|
+
active: ctx2[8] === "eraser"
|
|
7185
|
+
},
|
|
7151
7186
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7152
7187
|
dirty[0] & 2097152 && { content: ctx2[21].eraser }
|
|
7153
7188
|
]) : {};
|
|
@@ -7180,7 +7215,7 @@ function create_else_block_5(ctx) {
|
|
|
7180
7215
|
return { props: { theme: ctx2[1] } };
|
|
7181
7216
|
}
|
|
7182
7217
|
if (switch_value) {
|
|
7183
|
-
switch_instance =
|
|
7218
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
7184
7219
|
}
|
|
7185
7220
|
return {
|
|
7186
7221
|
c() {
|
|
@@ -7189,9 +7224,8 @@ function create_else_block_5(ctx) {
|
|
|
7189
7224
|
switch_instance_anchor = empty();
|
|
7190
7225
|
},
|
|
7191
7226
|
m(target, anchor) {
|
|
7192
|
-
if (switch_instance)
|
|
7227
|
+
if (switch_instance)
|
|
7193
7228
|
mount_component(switch_instance, target, anchor);
|
|
7194
|
-
}
|
|
7195
7229
|
insert(target, switch_instance_anchor, anchor);
|
|
7196
7230
|
current = true;
|
|
7197
7231
|
},
|
|
@@ -7209,7 +7243,7 @@ function create_else_block_5(ctx) {
|
|
|
7209
7243
|
check_outros();
|
|
7210
7244
|
}
|
|
7211
7245
|
if (switch_value) {
|
|
7212
|
-
switch_instance =
|
|
7246
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
7213
7247
|
create_component(switch_instance.$$.fragment);
|
|
7214
7248
|
transition_in(switch_instance.$$.fragment, 1);
|
|
7215
7249
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -7251,7 +7285,7 @@ function create_if_block_11(ctx) {
|
|
|
7251
7285
|
};
|
|
7252
7286
|
}
|
|
7253
7287
|
if (switch_value) {
|
|
7254
|
-
switch_instance =
|
|
7288
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx));
|
|
7255
7289
|
}
|
|
7256
7290
|
return {
|
|
7257
7291
|
c() {
|
|
@@ -7260,9 +7294,8 @@ function create_if_block_11(ctx) {
|
|
|
7260
7294
|
switch_instance_anchor = empty();
|
|
7261
7295
|
},
|
|
7262
7296
|
m(target, anchor) {
|
|
7263
|
-
if (switch_instance)
|
|
7297
|
+
if (switch_instance)
|
|
7264
7298
|
mount_component(switch_instance, target, anchor);
|
|
7265
|
-
}
|
|
7266
7299
|
insert(target, switch_instance_anchor, anchor);
|
|
7267
7300
|
current = true;
|
|
7268
7301
|
},
|
|
@@ -7280,7 +7313,7 @@ function create_if_block_11(ctx) {
|
|
|
7280
7313
|
check_outros();
|
|
7281
7314
|
}
|
|
7282
7315
|
if (switch_value) {
|
|
7283
|
-
switch_instance =
|
|
7316
|
+
switch_instance = construct_svelte_component(switch_value, switch_props(ctx2));
|
|
7284
7317
|
create_component(switch_instance.$$.fragment);
|
|
7285
7318
|
transition_in(switch_instance.$$.fragment, 1);
|
|
7286
7319
|
mount_component(switch_instance, switch_instance_anchor.parentNode, switch_instance_anchor);
|
|
@@ -7890,6 +7923,9 @@ function create_if_block6(ctx) {
|
|
|
7890
7923
|
let current;
|
|
7891
7924
|
const button0_spread_levels = [
|
|
7892
7925
|
{ class: "eraser" },
|
|
7926
|
+
{
|
|
7927
|
+
active: ctx[8] === "pencilEraser"
|
|
7928
|
+
},
|
|
7893
7929
|
ctx[18],
|
|
7894
7930
|
{ placement: "top" },
|
|
7895
7931
|
{
|
|
@@ -7907,6 +7943,9 @@ function create_if_block6(ctx) {
|
|
|
7907
7943
|
button0.$on("click", ctx[34]);
|
|
7908
7944
|
const button1_spread_levels = [
|
|
7909
7945
|
{ class: "eraser" },
|
|
7946
|
+
{
|
|
7947
|
+
active: ctx[8] === "eraser"
|
|
7948
|
+
},
|
|
7910
7949
|
ctx[18],
|
|
7911
7950
|
{ placement: "top" },
|
|
7912
7951
|
{ content: ctx[21].eraserForPanel }
|
|
@@ -7945,10 +7984,13 @@ function create_if_block6(ctx) {
|
|
|
7945
7984
|
current = true;
|
|
7946
7985
|
},
|
|
7947
7986
|
p(ctx2, dirty) {
|
|
7948
|
-
const button0_changes = dirty[0] &
|
|
7987
|
+
const button0_changes = dirty[0] & 2359552 ? get_spread_update(button0_spread_levels, [
|
|
7949
7988
|
button0_spread_levels[0],
|
|
7989
|
+
dirty[0] & 256 && {
|
|
7990
|
+
active: ctx2[8] === "pencilEraser"
|
|
7991
|
+
},
|
|
7950
7992
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7951
|
-
button0_spread_levels[
|
|
7993
|
+
button0_spread_levels[3],
|
|
7952
7994
|
dirty[0] & 2097152 && {
|
|
7953
7995
|
content: ctx2[21].pencilEraserForPanel
|
|
7954
7996
|
}
|
|
@@ -7957,10 +7999,13 @@ function create_if_block6(ctx) {
|
|
|
7957
7999
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
7958
8000
|
}
|
|
7959
8001
|
button0.$set(button0_changes);
|
|
7960
|
-
const button1_changes = dirty[0] &
|
|
8002
|
+
const button1_changes = dirty[0] & 2359552 ? get_spread_update(button1_spread_levels, [
|
|
7961
8003
|
button1_spread_levels[0],
|
|
8004
|
+
dirty[0] & 256 && {
|
|
8005
|
+
active: ctx2[8] === "eraser"
|
|
8006
|
+
},
|
|
7962
8007
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7963
|
-
button1_spread_levels[
|
|
8008
|
+
button1_spread_levels[3],
|
|
7964
8009
|
dirty[0] & 2097152 && { content: ctx2[21].eraserForPanel }
|
|
7965
8010
|
]) : {};
|
|
7966
8011
|
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
@@ -8486,6 +8531,9 @@ function create_fragment57(ctx) {
|
|
|
8486
8531
|
let if_block0 = ctx[5] && create_if_block_17(ctx);
|
|
8487
8532
|
const button0_spread_levels = [
|
|
8488
8533
|
{ class: "clicker" },
|
|
8534
|
+
{
|
|
8535
|
+
active: ctx[8] === "clicker"
|
|
8536
|
+
},
|
|
8489
8537
|
ctx[18],
|
|
8490
8538
|
{ content: ctx[21].clicker }
|
|
8491
8539
|
];
|
|
@@ -8500,6 +8548,9 @@ function create_fragment57(ctx) {
|
|
|
8500
8548
|
button0.$on("click", ctx[27]);
|
|
8501
8549
|
const button1_spread_levels = [
|
|
8502
8550
|
{ class: "selector" },
|
|
8551
|
+
{
|
|
8552
|
+
active: ctx[8] === "selector"
|
|
8553
|
+
},
|
|
8503
8554
|
ctx[18],
|
|
8504
8555
|
{ content: ctx[21].selector }
|
|
8505
8556
|
];
|
|
@@ -8514,6 +8565,9 @@ function create_fragment57(ctx) {
|
|
|
8514
8565
|
button1.$on("click", ctx[28]);
|
|
8515
8566
|
const button2_spread_levels = [
|
|
8516
8567
|
{ class: "pencil" },
|
|
8568
|
+
{
|
|
8569
|
+
active: ctx[8] === "pencil"
|
|
8570
|
+
},
|
|
8517
8571
|
ctx[18],
|
|
8518
8572
|
{ content: ctx[21].pencil },
|
|
8519
8573
|
{ menu: ctx[13] }
|
|
@@ -8529,6 +8583,7 @@ function create_fragment57(ctx) {
|
|
|
8529
8583
|
button2.$on("click", ctx[29]);
|
|
8530
8584
|
const button3_spread_levels = [
|
|
8531
8585
|
{ class: "text" },
|
|
8586
|
+
{ active: ctx[8] === "text" },
|
|
8532
8587
|
ctx[18],
|
|
8533
8588
|
{ content: ctx[21].text },
|
|
8534
8589
|
{ menu: ctx[14] }
|
|
@@ -8544,6 +8599,9 @@ function create_fragment57(ctx) {
|
|
|
8544
8599
|
button3.$on("click", ctx[30]);
|
|
8545
8600
|
const button4_spread_levels = [
|
|
8546
8601
|
{ class: "shapes" },
|
|
8602
|
+
{
|
|
8603
|
+
active: ctx[8] === ctx[11] || ctx[8] === "shape" && ctx[9] === ctx[11]
|
|
8604
|
+
},
|
|
8547
8605
|
ctx[18],
|
|
8548
8606
|
{ content: ctx[10].shapes },
|
|
8549
8607
|
{ menu: ctx[15] }
|
|
@@ -8800,8 +8858,11 @@ function create_fragment57(ctx) {
|
|
|
8800
8858
|
});
|
|
8801
8859
|
check_outros();
|
|
8802
8860
|
}
|
|
8803
|
-
const button0_changes = dirty[0] &
|
|
8861
|
+
const button0_changes = dirty[0] & 2359552 ? get_spread_update(button0_spread_levels, [
|
|
8804
8862
|
button0_spread_levels[0],
|
|
8863
|
+
dirty[0] & 256 && {
|
|
8864
|
+
active: ctx2[8] === "clicker"
|
|
8865
|
+
},
|
|
8805
8866
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8806
8867
|
dirty[0] & 2097152 && { content: ctx2[21].clicker }
|
|
8807
8868
|
]) : {};
|
|
@@ -8809,8 +8870,11 @@ function create_fragment57(ctx) {
|
|
|
8809
8870
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8810
8871
|
}
|
|
8811
8872
|
button0.$set(button0_changes);
|
|
8812
|
-
const button1_changes = dirty[0] &
|
|
8873
|
+
const button1_changes = dirty[0] & 2359552 ? get_spread_update(button1_spread_levels, [
|
|
8813
8874
|
button1_spread_levels[0],
|
|
8875
|
+
dirty[0] & 256 && {
|
|
8876
|
+
active: ctx2[8] === "selector"
|
|
8877
|
+
},
|
|
8814
8878
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8815
8879
|
dirty[0] & 2097152 && { content: ctx2[21].selector }
|
|
8816
8880
|
]) : {};
|
|
@@ -8818,8 +8882,11 @@ function create_fragment57(ctx) {
|
|
|
8818
8882
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8819
8883
|
}
|
|
8820
8884
|
button1.$set(button1_changes);
|
|
8821
|
-
const button2_changes = dirty[0] &
|
|
8885
|
+
const button2_changes = dirty[0] & 2367744 ? get_spread_update(button2_spread_levels, [
|
|
8822
8886
|
button2_spread_levels[0],
|
|
8887
|
+
dirty[0] & 256 && {
|
|
8888
|
+
active: ctx2[8] === "pencil"
|
|
8889
|
+
},
|
|
8823
8890
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8824
8891
|
dirty[0] & 2097152 && { content: ctx2[21].pencil },
|
|
8825
8892
|
dirty[0] & 8192 && { menu: ctx2[13] }
|
|
@@ -8828,8 +8895,9 @@ function create_fragment57(ctx) {
|
|
|
8828
8895
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8829
8896
|
}
|
|
8830
8897
|
button2.$set(button2_changes);
|
|
8831
|
-
const button3_changes = dirty[0] &
|
|
8898
|
+
const button3_changes = dirty[0] & 2375936 ? get_spread_update(button3_spread_levels, [
|
|
8832
8899
|
button3_spread_levels[0],
|
|
8900
|
+
dirty[0] & 256 && { active: ctx2[8] === "text" },
|
|
8833
8901
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8834
8902
|
dirty[0] & 2097152 && { content: ctx2[21].text },
|
|
8835
8903
|
dirty[0] & 16384 && { menu: ctx2[14] }
|
|
@@ -8838,8 +8906,11 @@ function create_fragment57(ctx) {
|
|
|
8838
8906
|
button3_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8839
8907
|
}
|
|
8840
8908
|
button3.$set(button3_changes);
|
|
8841
|
-
const button4_changes = dirty[0] &
|
|
8909
|
+
const button4_changes = dirty[0] & 298752 ? get_spread_update(button4_spread_levels, [
|
|
8842
8910
|
button4_spread_levels[0],
|
|
8911
|
+
dirty[0] & 2816 && {
|
|
8912
|
+
active: ctx2[8] === ctx2[11] || ctx2[8] === "shape" && ctx2[9] === ctx2[11]
|
|
8913
|
+
},
|
|
8843
8914
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8844
8915
|
dirty[0] & 1024 && { content: ctx2[10].shapes },
|
|
8845
8916
|
dirty[0] & 32768 && { menu: ctx2[15] }
|
|
@@ -8898,7 +8969,7 @@ function create_fragment57(ctx) {
|
|
|
8898
8969
|
}
|
|
8899
8970
|
if (scrollHeight_action && is_function(scrollHeight_action.update) && dirty[0] & 16)
|
|
8900
8971
|
scrollHeight_action.update.call(null, ctx2[4]);
|
|
8901
|
-
if (dirty[0] & 32) {
|
|
8972
|
+
if (!current || dirty[0] & 32) {
|
|
8902
8973
|
toggle_class(div0, "scrollable", ctx2[5]);
|
|
8903
8974
|
}
|
|
8904
8975
|
if (ctx2[5]) {
|
|
@@ -9364,58 +9435,44 @@ var Contents_default = Contents;
|
|
|
9364
9435
|
|
|
9365
9436
|
// src/components/Toolbar/Toolbar.svelte
|
|
9366
9437
|
function create_else_block7(ctx) {
|
|
9367
|
-
let
|
|
9368
|
-
let path1;
|
|
9438
|
+
let path;
|
|
9369
9439
|
return {
|
|
9370
9440
|
c() {
|
|
9371
|
-
|
|
9372
|
-
|
|
9373
|
-
attr(
|
|
9374
|
-
attr(
|
|
9375
|
-
attr(
|
|
9376
|
-
attr(
|
|
9377
|
-
attr(path1, "stroke", "none");
|
|
9378
|
-
attr(path1, "d", "M16 52v16l-8-8z");
|
|
9379
|
-
attr(path1, "class", name6 + "-handler-image-fill-color");
|
|
9441
|
+
path = svg_element("path");
|
|
9442
|
+
attr(path, "fill-rule", "evenodd");
|
|
9443
|
+
attr(path, "clip-rule", "evenodd");
|
|
9444
|
+
attr(path, "d", "M6 19L8 17V25L6 23L4 21L6 19ZM10 17H9V25H10V17Z");
|
|
9445
|
+
attr(path, "fill", "#fff");
|
|
9446
|
+
attr(path, "class", name6 + "-handler-image-fill-color");
|
|
9380
9447
|
},
|
|
9381
9448
|
m(target, anchor) {
|
|
9382
|
-
insert(target,
|
|
9383
|
-
insert(target, path1, anchor);
|
|
9449
|
+
insert(target, path, anchor);
|
|
9384
9450
|
},
|
|
9385
9451
|
p: noop,
|
|
9386
9452
|
d(detaching) {
|
|
9387
9453
|
if (detaching)
|
|
9388
|
-
detach(
|
|
9389
|
-
if (detaching)
|
|
9390
|
-
detach(path1);
|
|
9454
|
+
detach(path);
|
|
9391
9455
|
}
|
|
9392
9456
|
};
|
|
9393
9457
|
}
|
|
9394
9458
|
function create_if_block7(ctx) {
|
|
9395
|
-
let
|
|
9396
|
-
let path1;
|
|
9459
|
+
let path;
|
|
9397
9460
|
return {
|
|
9398
9461
|
c() {
|
|
9399
|
-
|
|
9400
|
-
|
|
9401
|
-
attr(
|
|
9402
|
-
attr(
|
|
9403
|
-
attr(
|
|
9404
|
-
attr(
|
|
9405
|
-
attr(path1, "stroke", "none");
|
|
9406
|
-
attr(path1, "d", "M14 52v16l8-8z");
|
|
9407
|
-
attr(path1, "class", name6 + "-handler-image-fill-color");
|
|
9462
|
+
path = svg_element("path");
|
|
9463
|
+
attr(path, "fill-rule", "evenodd");
|
|
9464
|
+
attr(path, "clip-rule", "evenodd");
|
|
9465
|
+
attr(path, "d", "M8 19L6 17V25L8 23L10 21L8 19ZM4 17H5V25H4V17Z");
|
|
9466
|
+
attr(path, "fill", "#fff");
|
|
9467
|
+
attr(path, "class", name6 + "-handler-image-fill-color");
|
|
9408
9468
|
},
|
|
9409
9469
|
m(target, anchor) {
|
|
9410
|
-
insert(target,
|
|
9411
|
-
insert(target, path1, anchor);
|
|
9470
|
+
insert(target, path, anchor);
|
|
9412
9471
|
},
|
|
9413
9472
|
p: noop,
|
|
9414
9473
|
d(detaching) {
|
|
9415
9474
|
if (detaching)
|
|
9416
|
-
detach(
|
|
9417
|
-
if (detaching)
|
|
9418
|
-
detach(path1);
|
|
9475
|
+
detach(path);
|
|
9419
9476
|
}
|
|
9420
9477
|
};
|
|
9421
9478
|
}
|
|
@@ -9429,8 +9486,7 @@ function create_fragment58(ctx) {
|
|
|
9429
9486
|
let input;
|
|
9430
9487
|
let t1;
|
|
9431
9488
|
let svg;
|
|
9432
|
-
let
|
|
9433
|
-
let path1;
|
|
9489
|
+
let path;
|
|
9434
9490
|
let label_class_value;
|
|
9435
9491
|
let div1_class_value;
|
|
9436
9492
|
let current;
|
|
@@ -9466,27 +9522,19 @@ function create_fragment58(ctx) {
|
|
|
9466
9522
|
input = element("input");
|
|
9467
9523
|
t1 = space();
|
|
9468
9524
|
svg = svg_element("svg");
|
|
9469
|
-
|
|
9470
|
-
path1 = svg_element("path");
|
|
9525
|
+
path = svg_element("path");
|
|
9471
9526
|
if_block.c();
|
|
9472
9527
|
attr(div0, "class", div0_class_value = name6 + "-contents " + ctx[1]);
|
|
9473
|
-
set_style(
|
|
9474
|
-
div0,
|
|
9475
|
-
"height",
|
|
9476
|
-
ctx[6] ? ctx[7] + "px" : "auto",
|
|
9477
|
-
false
|
|
9478
|
-
);
|
|
9528
|
+
set_style(div0, "height", ctx[6] ? ctx[7] + "px" : "auto");
|
|
9479
9529
|
attr(input, "type", "checkbox");
|
|
9480
|
-
attr(
|
|
9481
|
-
attr(
|
|
9482
|
-
attr(
|
|
9483
|
-
attr(
|
|
9484
|
-
attr(
|
|
9485
|
-
attr(
|
|
9486
|
-
attr(
|
|
9530
|
+
attr(path, "d", "M0 41H12C14.2091 41 16 39.2091 16 37V5C16 2.79086 14.2091 1 12 1H0");
|
|
9531
|
+
attr(path, "stroke", "#000");
|
|
9532
|
+
attr(path, "fill", "#fff");
|
|
9533
|
+
attr(path, "class", name6 + "-handler-border-color " + name6 + "-handler-bg-color");
|
|
9534
|
+
attr(svg, "width", "17");
|
|
9535
|
+
attr(svg, "height", "42");
|
|
9536
|
+
attr(svg, "viewBox", "0 0 17 42");
|
|
9487
9537
|
attr(svg, "fill", "none");
|
|
9488
|
-
attr(svg, "stroke-width", "2");
|
|
9489
|
-
attr(svg, "viewBox", "0 0 32 120");
|
|
9490
9538
|
attr(label, "class", label_class_value = name6 + "-handler " + ctx[1]);
|
|
9491
9539
|
attr(div1, "class", div1_class_value = name6 + " " + ctx[1]);
|
|
9492
9540
|
toggle_class(div1, "collapsed", ctx[3]);
|
|
@@ -9501,8 +9549,7 @@ function create_fragment58(ctx) {
|
|
|
9501
9549
|
input.checked = ctx[3];
|
|
9502
9550
|
append(label, t1);
|
|
9503
9551
|
append(label, svg);
|
|
9504
|
-
append(svg,
|
|
9505
|
-
append(svg, path1);
|
|
9552
|
+
append(svg, path);
|
|
9506
9553
|
if_block.m(svg, null);
|
|
9507
9554
|
current = true;
|
|
9508
9555
|
if (!mounted) {
|
|
@@ -9536,12 +9583,7 @@ function create_fragment58(ctx) {
|
|
|
9536
9583
|
attr(div0, "class", div0_class_value);
|
|
9537
9584
|
}
|
|
9538
9585
|
if (dirty & 192) {
|
|
9539
|
-
set_style(
|
|
9540
|
-
div0,
|
|
9541
|
-
"height",
|
|
9542
|
-
ctx2[6] ? ctx2[7] + "px" : "auto",
|
|
9543
|
-
false
|
|
9544
|
-
);
|
|
9586
|
+
set_style(div0, "height", ctx2[6] ? ctx2[7] + "px" : "auto");
|
|
9545
9587
|
}
|
|
9546
9588
|
if (dirty & 8) {
|
|
9547
9589
|
input.checked = ctx2[3];
|
|
@@ -9562,7 +9604,7 @@ function create_fragment58(ctx) {
|
|
|
9562
9604
|
if (!current || dirty & 2 && div1_class_value !== (div1_class_value = name6 + " " + ctx2[1])) {
|
|
9563
9605
|
attr(div1, "class", div1_class_value);
|
|
9564
9606
|
}
|
|
9565
|
-
if (dirty & 10) {
|
|
9607
|
+
if (!current || dirty & 10) {
|
|
9566
9608
|
toggle_class(div1, "collapsed", ctx2[3]);
|
|
9567
9609
|
}
|
|
9568
9610
|
},
|
|
@@ -10668,7 +10710,7 @@ function create_fragment60(ctx) {
|
|
|
10668
10710
|
});
|
|
10669
10711
|
check_outros();
|
|
10670
10712
|
}
|
|
10671
|
-
if (dirty & 1) {
|
|
10713
|
+
if (!current || dirty & 1) {
|
|
10672
10714
|
toggle_class(div2, "loading", !ctx2[0]);
|
|
10673
10715
|
}
|
|
10674
10716
|
},
|
|
@@ -11052,7 +11094,7 @@ function create_fragment61(ctx) {
|
|
|
11052
11094
|
});
|
|
11053
11095
|
check_outros();
|
|
11054
11096
|
}
|
|
11055
|
-
if (dirty & 32) {
|
|
11097
|
+
if (!current || dirty & 32) {
|
|
11056
11098
|
toggle_class(div1, "hidden", !(ctx2[5] === "visible" || ctx2[5] === "toolbar-only"));
|
|
11057
11099
|
}
|
|
11058
11100
|
if (ctx2[3].redo_undo?.enable !== false) {
|
|
@@ -11093,7 +11135,7 @@ function create_fragment61(ctx) {
|
|
|
11093
11135
|
});
|
|
11094
11136
|
check_outros();
|
|
11095
11137
|
}
|
|
11096
|
-
if (dirty & 32) {
|
|
11138
|
+
if (!current || dirty & 32) {
|
|
11097
11139
|
toggle_class(div2, "hidden", ctx2[5] !== "visible");
|
|
11098
11140
|
}
|
|
11099
11141
|
if (ctx2[3].page_control?.enable !== false) {
|
|
@@ -11115,10 +11157,10 @@ function create_fragment61(ctx) {
|
|
|
11115
11157
|
});
|
|
11116
11158
|
check_outros();
|
|
11117
11159
|
}
|
|
11118
|
-
if (dirty & 32) {
|
|
11160
|
+
if (!current || dirty & 32) {
|
|
11119
11161
|
toggle_class(div3, "hidden", ctx2[5] !== "visible");
|
|
11120
11162
|
}
|
|
11121
|
-
if (dirty & 1) {
|
|
11163
|
+
if (!current || dirty & 1) {
|
|
11122
11164
|
toggle_class(div4, "loading", !ctx2[0]);
|
|
11123
11165
|
}
|
|
11124
11166
|
},
|
|
@@ -11349,4 +11391,3 @@ function createReplayUI(player, div) {
|
|
|
11349
11391
|
}
|
|
11350
11392
|
|
|
11351
11393
|
export { Fastboard_default as Fastboard, PageControl_default as PageControl, PlayerControl_default as PlayerControl, RedoUndo_default as RedoUndo, ReplayFastboard_default as ReplayFastboard, Toolbar_default as Toolbar, ZoomControl_default as ZoomControl, createReplayUI, createUI, stockedApps };
|
|
11352
|
-
//# sourceMappingURL=index.svelte.mjs.map
|