@netless/fastboard-ui 1.0.0-canary.5 → 1.0.0-canary.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +39 -10
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +178 -120
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +178 -120
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +178 -120
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/behaviors/apps.ts +1 -1
- 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 +52 -9
- package/src/components/theme.scss +11 -4
package/dist/index.js
CHANGED
|
@@ -3603,15 +3603,16 @@ function create_else_block_1(ctx) {
|
|
|
3603
3603
|
let current;
|
|
3604
3604
|
let mounted;
|
|
3605
3605
|
let dispose;
|
|
3606
|
-
const default_slot_template = ctx[
|
|
3607
|
-
const default_slot = create_slot(default_slot_template, ctx, ctx[
|
|
3606
|
+
const default_slot_template = ctx[10].default;
|
|
3607
|
+
const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
|
|
3608
3608
|
return {
|
|
3609
3609
|
c() {
|
|
3610
3610
|
button = element("button");
|
|
3611
3611
|
if (default_slot)
|
|
3612
3612
|
default_slot.c();
|
|
3613
3613
|
attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
|
|
3614
|
-
button.disabled = ctx[
|
|
3614
|
+
button.disabled = ctx[4];
|
|
3615
|
+
toggle_class(button, "is-active", ctx[3]);
|
|
3615
3616
|
},
|
|
3616
3617
|
m(target, anchor) {
|
|
3617
3618
|
insert(target, button, anchor);
|
|
@@ -3620,19 +3621,19 @@ function create_else_block_1(ctx) {
|
|
|
3620
3621
|
}
|
|
3621
3622
|
current = true;
|
|
3622
3623
|
if (!mounted) {
|
|
3623
|
-
dispose = listen(button, "click", ctx[
|
|
3624
|
+
dispose = listen(button, "click", ctx[13]);
|
|
3624
3625
|
mounted = true;
|
|
3625
3626
|
}
|
|
3626
3627
|
},
|
|
3627
3628
|
p(ctx2, dirty) {
|
|
3628
3629
|
if (default_slot) {
|
|
3629
|
-
if (default_slot.p && (!current || dirty &
|
|
3630
|
+
if (default_slot.p && (!current || dirty & 512)) {
|
|
3630
3631
|
update_slot_base(
|
|
3631
3632
|
default_slot,
|
|
3632
3633
|
default_slot_template,
|
|
3633
3634
|
ctx2,
|
|
3634
|
-
ctx2[
|
|
3635
|
-
!current ? get_all_dirty_from_scope(ctx2[
|
|
3635
|
+
ctx2[9],
|
|
3636
|
+
!current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
|
|
3636
3637
|
null
|
|
3637
3638
|
);
|
|
3638
3639
|
}
|
|
@@ -3640,8 +3641,11 @@ function create_else_block_1(ctx) {
|
|
|
3640
3641
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
3641
3642
|
attr(button, "class", button_class_value);
|
|
3642
3643
|
}
|
|
3643
|
-
if (!current || dirty &
|
|
3644
|
-
button.disabled = ctx2[
|
|
3644
|
+
if (!current || dirty & 16) {
|
|
3645
|
+
button.disabled = ctx2[4];
|
|
3646
|
+
}
|
|
3647
|
+
if (dirty & 15) {
|
|
3648
|
+
toggle_class(button, "is-active", ctx2[3]);
|
|
3645
3649
|
}
|
|
3646
3650
|
},
|
|
3647
3651
|
i(local) {
|
|
@@ -3672,7 +3676,7 @@ function create_if_block2(ctx) {
|
|
|
3672
3676
|
const if_block_creators = [create_if_block_1, create_else_block2];
|
|
3673
3677
|
const if_blocks = [];
|
|
3674
3678
|
function select_block_type_1(ctx2, dirty) {
|
|
3675
|
-
if (ctx2[
|
|
3679
|
+
if (ctx2[7])
|
|
3676
3680
|
return 0;
|
|
3677
3681
|
return 1;
|
|
3678
3682
|
}
|
|
@@ -3734,15 +3738,16 @@ function create_else_block2(ctx) {
|
|
|
3734
3738
|
let current;
|
|
3735
3739
|
let mounted;
|
|
3736
3740
|
let dispose;
|
|
3737
|
-
const default_slot_template = ctx[
|
|
3738
|
-
const default_slot = create_slot(default_slot_template, ctx, ctx[
|
|
3741
|
+
const default_slot_template = ctx[10].default;
|
|
3742
|
+
const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
|
|
3739
3743
|
return {
|
|
3740
3744
|
c() {
|
|
3741
3745
|
button = element("button");
|
|
3742
3746
|
if (default_slot)
|
|
3743
3747
|
default_slot.c();
|
|
3744
3748
|
attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
|
|
3745
|
-
button.disabled = ctx[
|
|
3749
|
+
button.disabled = ctx[4];
|
|
3750
|
+
toggle_class(button, "is-active", ctx[3]);
|
|
3746
3751
|
},
|
|
3747
3752
|
m(target, anchor) {
|
|
3748
3753
|
insert(target, button, anchor);
|
|
@@ -3752,10 +3757,10 @@ function create_else_block2(ctx) {
|
|
|
3752
3757
|
current = true;
|
|
3753
3758
|
if (!mounted) {
|
|
3754
3759
|
dispose = [
|
|
3755
|
-
listen(button, "click", ctx[
|
|
3760
|
+
listen(button, "click", ctx[12]),
|
|
3756
3761
|
action_destroyer(tippy_action = tippy.call(null, button, {
|
|
3757
|
-
content: ctx[
|
|
3758
|
-
placement: ctx[
|
|
3762
|
+
content: ctx[5],
|
|
3763
|
+
placement: ctx[6],
|
|
3759
3764
|
className: ctx[0]
|
|
3760
3765
|
}))
|
|
3761
3766
|
];
|
|
@@ -3764,13 +3769,13 @@ function create_else_block2(ctx) {
|
|
|
3764
3769
|
},
|
|
3765
3770
|
p(ctx2, dirty) {
|
|
3766
3771
|
if (default_slot) {
|
|
3767
|
-
if (default_slot.p && (!current || dirty &
|
|
3772
|
+
if (default_slot.p && (!current || dirty & 512)) {
|
|
3768
3773
|
update_slot_base(
|
|
3769
3774
|
default_slot,
|
|
3770
3775
|
default_slot_template,
|
|
3771
3776
|
ctx2,
|
|
3772
|
-
ctx2[
|
|
3773
|
-
!current ? get_all_dirty_from_scope(ctx2[
|
|
3777
|
+
ctx2[9],
|
|
3778
|
+
!current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
|
|
3774
3779
|
null
|
|
3775
3780
|
);
|
|
3776
3781
|
}
|
|
@@ -3778,15 +3783,18 @@ function create_else_block2(ctx) {
|
|
|
3778
3783
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
3779
3784
|
attr(button, "class", button_class_value);
|
|
3780
3785
|
}
|
|
3781
|
-
if (!current || dirty &
|
|
3782
|
-
button.disabled = ctx2[
|
|
3786
|
+
if (!current || dirty & 16) {
|
|
3787
|
+
button.disabled = ctx2[4];
|
|
3783
3788
|
}
|
|
3784
|
-
if (tippy_action && is_function(tippy_action.update) && dirty &
|
|
3789
|
+
if (tippy_action && is_function(tippy_action.update) && dirty & 97)
|
|
3785
3790
|
tippy_action.update.call(null, {
|
|
3786
|
-
content: ctx2[
|
|
3787
|
-
placement: ctx2[
|
|
3791
|
+
content: ctx2[5],
|
|
3792
|
+
placement: ctx2[6],
|
|
3788
3793
|
className: ctx2[0]
|
|
3789
3794
|
});
|
|
3795
|
+
if (dirty & 15) {
|
|
3796
|
+
toggle_class(button, "is-active", ctx2[3]);
|
|
3797
|
+
}
|
|
3790
3798
|
},
|
|
3791
3799
|
i(local) {
|
|
3792
3800
|
if (current)
|
|
@@ -3821,8 +3829,8 @@ function create_if_block_1(ctx) {
|
|
|
3821
3829
|
let current;
|
|
3822
3830
|
let mounted;
|
|
3823
3831
|
let dispose;
|
|
3824
|
-
const default_slot_template = ctx[
|
|
3825
|
-
const default_slot = create_slot(default_slot_template, ctx, ctx[
|
|
3832
|
+
const default_slot_template = ctx[10].default;
|
|
3833
|
+
const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
|
|
3826
3834
|
return {
|
|
3827
3835
|
c() {
|
|
3828
3836
|
span1 = element("span");
|
|
@@ -3832,7 +3840,8 @@ function create_if_block_1(ctx) {
|
|
|
3832
3840
|
t = space();
|
|
3833
3841
|
span0 = element("span");
|
|
3834
3842
|
attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
|
|
3835
|
-
button.disabled = ctx[
|
|
3843
|
+
button.disabled = ctx[4];
|
|
3844
|
+
toggle_class(button, "is-active", ctx[3]);
|
|
3836
3845
|
attr(span0, "class", span0_class_value = ctx[1] + "-triangle");
|
|
3837
3846
|
attr(span1, "class", span1_class_value = ctx[1] + "-btn-interactive " + ctx[2]);
|
|
3838
3847
|
},
|
|
@@ -3847,18 +3856,18 @@ function create_if_block_1(ctx) {
|
|
|
3847
3856
|
current = true;
|
|
3848
3857
|
if (!mounted) {
|
|
3849
3858
|
dispose = [
|
|
3850
|
-
listen(button, "click", ctx[
|
|
3859
|
+
listen(button, "click", ctx[11]),
|
|
3851
3860
|
action_destroyer(tippy_action = tippy.call(null, button, {
|
|
3852
|
-
content: ctx[
|
|
3861
|
+
content: ctx[7],
|
|
3853
3862
|
...tippy_menu,
|
|
3854
|
-
placement: ctx[
|
|
3863
|
+
placement: ctx[8],
|
|
3855
3864
|
appendTo: document.body,
|
|
3856
3865
|
theme: ctx[2],
|
|
3857
3866
|
className: "fastboard-panel"
|
|
3858
3867
|
})),
|
|
3859
3868
|
action_destroyer(tippy_action_1 = tippy.call(null, span1, {
|
|
3860
|
-
content: ctx[
|
|
3861
|
-
placement: ctx[
|
|
3869
|
+
content: ctx[5],
|
|
3870
|
+
placement: ctx[6],
|
|
3862
3871
|
className: ctx[0]
|
|
3863
3872
|
}))
|
|
3864
3873
|
];
|
|
@@ -3867,13 +3876,13 @@ function create_if_block_1(ctx) {
|
|
|
3867
3876
|
},
|
|
3868
3877
|
p(ctx2, dirty) {
|
|
3869
3878
|
if (default_slot) {
|
|
3870
|
-
if (default_slot.p && (!current || dirty &
|
|
3879
|
+
if (default_slot.p && (!current || dirty & 512)) {
|
|
3871
3880
|
update_slot_base(
|
|
3872
3881
|
default_slot,
|
|
3873
3882
|
default_slot_template,
|
|
3874
3883
|
ctx2,
|
|
3875
|
-
ctx2[
|
|
3876
|
-
!current ? get_all_dirty_from_scope(ctx2[
|
|
3884
|
+
ctx2[9],
|
|
3885
|
+
!current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
|
|
3877
3886
|
null
|
|
3878
3887
|
);
|
|
3879
3888
|
}
|
|
@@ -3881,28 +3890,31 @@ function create_if_block_1(ctx) {
|
|
|
3881
3890
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
3882
3891
|
attr(button, "class", button_class_value);
|
|
3883
3892
|
}
|
|
3884
|
-
if (!current || dirty &
|
|
3885
|
-
button.disabled = ctx2[
|
|
3893
|
+
if (!current || dirty & 16) {
|
|
3894
|
+
button.disabled = ctx2[4];
|
|
3886
3895
|
}
|
|
3887
|
-
if (tippy_action && is_function(tippy_action.update) && dirty &
|
|
3896
|
+
if (tippy_action && is_function(tippy_action.update) && dirty & 388)
|
|
3888
3897
|
tippy_action.update.call(null, {
|
|
3889
|
-
content: ctx2[
|
|
3898
|
+
content: ctx2[7],
|
|
3890
3899
|
...tippy_menu,
|
|
3891
|
-
placement: ctx2[
|
|
3900
|
+
placement: ctx2[8],
|
|
3892
3901
|
appendTo: document.body,
|
|
3893
3902
|
theme: ctx2[2],
|
|
3894
3903
|
className: "fastboard-panel"
|
|
3895
3904
|
});
|
|
3905
|
+
if (dirty & 15) {
|
|
3906
|
+
toggle_class(button, "is-active", ctx2[3]);
|
|
3907
|
+
}
|
|
3896
3908
|
if (!current || dirty & 2 && span0_class_value !== (span0_class_value = ctx2[1] + "-triangle")) {
|
|
3897
3909
|
attr(span0, "class", span0_class_value);
|
|
3898
3910
|
}
|
|
3899
3911
|
if (!current || dirty & 6 && span1_class_value !== (span1_class_value = ctx2[1] + "-btn-interactive " + ctx2[2])) {
|
|
3900
3912
|
attr(span1, "class", span1_class_value);
|
|
3901
3913
|
}
|
|
3902
|
-
if (tippy_action_1 && is_function(tippy_action_1.update) && dirty &
|
|
3914
|
+
if (tippy_action_1 && is_function(tippy_action_1.update) && dirty & 97)
|
|
3903
3915
|
tippy_action_1.update.call(null, {
|
|
3904
|
-
content: ctx2[
|
|
3905
|
-
placement: ctx2[
|
|
3916
|
+
content: ctx2[5],
|
|
3917
|
+
placement: ctx2[6],
|
|
3906
3918
|
className: ctx2[0]
|
|
3907
3919
|
});
|
|
3908
3920
|
},
|
|
@@ -3934,7 +3946,7 @@ function create_fragment47(ctx) {
|
|
|
3934
3946
|
const if_block_creators = [create_if_block2, create_else_block_1];
|
|
3935
3947
|
const if_blocks = [];
|
|
3936
3948
|
function select_block_type(ctx2, dirty) {
|
|
3937
|
-
if (ctx2[
|
|
3949
|
+
if (ctx2[5])
|
|
3938
3950
|
return 0;
|
|
3939
3951
|
return 1;
|
|
3940
3952
|
}
|
|
@@ -3994,6 +4006,7 @@ function instance47($$self, $$props, $$invalidate) {
|
|
|
3994
4006
|
let { class: className = "" } = $$props;
|
|
3995
4007
|
let { name: name10 = "fastboard-ui" } = $$props;
|
|
3996
4008
|
let { theme = "light" } = $$props;
|
|
4009
|
+
let { active = false } = $$props;
|
|
3997
4010
|
let { disabled = false } = $$props;
|
|
3998
4011
|
let { content = "" } = $$props;
|
|
3999
4012
|
let { placement = "top" } = $$props;
|
|
@@ -4015,23 +4028,26 @@ function instance47($$self, $$props, $$invalidate) {
|
|
|
4015
4028
|
$$invalidate(1, name10 = $$props2.name);
|
|
4016
4029
|
if ("theme" in $$props2)
|
|
4017
4030
|
$$invalidate(2, theme = $$props2.theme);
|
|
4031
|
+
if ("active" in $$props2)
|
|
4032
|
+
$$invalidate(3, active = $$props2.active);
|
|
4018
4033
|
if ("disabled" in $$props2)
|
|
4019
|
-
$$invalidate(
|
|
4034
|
+
$$invalidate(4, disabled = $$props2.disabled);
|
|
4020
4035
|
if ("content" in $$props2)
|
|
4021
|
-
$$invalidate(
|
|
4036
|
+
$$invalidate(5, content = $$props2.content);
|
|
4022
4037
|
if ("placement" in $$props2)
|
|
4023
|
-
$$invalidate(
|
|
4038
|
+
$$invalidate(6, placement = $$props2.placement);
|
|
4024
4039
|
if ("menu" in $$props2)
|
|
4025
|
-
$$invalidate(
|
|
4040
|
+
$$invalidate(7, menu = $$props2.menu);
|
|
4026
4041
|
if ("menu_placement" in $$props2)
|
|
4027
|
-
$$invalidate(
|
|
4042
|
+
$$invalidate(8, menu_placement = $$props2.menu_placement);
|
|
4028
4043
|
if ("$$scope" in $$props2)
|
|
4029
|
-
$$invalidate(
|
|
4044
|
+
$$invalidate(9, $$scope = $$props2.$$scope);
|
|
4030
4045
|
};
|
|
4031
4046
|
return [
|
|
4032
4047
|
className,
|
|
4033
4048
|
name10,
|
|
4034
4049
|
theme,
|
|
4050
|
+
active,
|
|
4035
4051
|
disabled,
|
|
4036
4052
|
content,
|
|
4037
4053
|
placement,
|
|
@@ -4051,11 +4067,12 @@ var Button = class extends SvelteComponent {
|
|
|
4051
4067
|
class: 0,
|
|
4052
4068
|
name: 1,
|
|
4053
4069
|
theme: 2,
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4070
|
+
active: 3,
|
|
4071
|
+
disabled: 4,
|
|
4072
|
+
content: 5,
|
|
4073
|
+
placement: 6,
|
|
4074
|
+
menu: 7,
|
|
4075
|
+
menu_placement: 8
|
|
4059
4076
|
});
|
|
4060
4077
|
}
|
|
4061
4078
|
};
|
|
@@ -5747,7 +5764,7 @@ var AppsInToolbar = class {
|
|
|
5747
5764
|
this._listeners.forEach((fn) => fn(this._data));
|
|
5748
5765
|
}
|
|
5749
5766
|
};
|
|
5750
|
-
var
|
|
5767
|
+
var stockedApps = new AppsInToolbar([]);
|
|
5751
5768
|
|
|
5752
5769
|
// src/components/Toolbar/components/helper.ts
|
|
5753
5770
|
function tooltip(text2, hotkey) {
|
|
@@ -7690,6 +7707,9 @@ function create_else_block_4(ctx) {
|
|
|
7690
7707
|
let current;
|
|
7691
7708
|
const button_spread_levels = [
|
|
7692
7709
|
{ class: "eraser" },
|
|
7710
|
+
{
|
|
7711
|
+
active: ctx[8] === ctx[12]
|
|
7712
|
+
},
|
|
7693
7713
|
ctx[18],
|
|
7694
7714
|
{
|
|
7695
7715
|
content: ctx[10][ctx[12]]
|
|
@@ -7714,8 +7734,11 @@ function create_else_block_4(ctx) {
|
|
|
7714
7734
|
current = true;
|
|
7715
7735
|
},
|
|
7716
7736
|
p(ctx2, dirty) {
|
|
7717
|
-
const button_changes = dirty[0] &
|
|
7737
|
+
const button_changes = dirty[0] & 333056 ? get_spread_update(button_spread_levels, [
|
|
7718
7738
|
button_spread_levels[0],
|
|
7739
|
+
dirty[0] & 4352 && {
|
|
7740
|
+
active: ctx2[8] === ctx2[12]
|
|
7741
|
+
},
|
|
7719
7742
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7720
7743
|
dirty[0] & 5120 && {
|
|
7721
7744
|
content: ctx2[10][ctx2[12]]
|
|
@@ -7747,6 +7770,9 @@ function create_if_block_9(ctx) {
|
|
|
7747
7770
|
let current;
|
|
7748
7771
|
const button_spread_levels = [
|
|
7749
7772
|
{ class: "eraser" },
|
|
7773
|
+
{
|
|
7774
|
+
active: ctx[8] === "pencilEraser"
|
|
7775
|
+
},
|
|
7750
7776
|
ctx[18],
|
|
7751
7777
|
{ content: ctx[21].pencilEraser },
|
|
7752
7778
|
{ menu: ctx[16] }
|
|
@@ -7769,8 +7795,11 @@ function create_if_block_9(ctx) {
|
|
|
7769
7795
|
current = true;
|
|
7770
7796
|
},
|
|
7771
7797
|
p(ctx2, dirty) {
|
|
7772
|
-
const button_changes = dirty[0] &
|
|
7798
|
+
const button_changes = dirty[0] & 2425088 ? get_spread_update(button_spread_levels, [
|
|
7773
7799
|
button_spread_levels[0],
|
|
7800
|
+
dirty[0] & 256 && {
|
|
7801
|
+
active: ctx2[8] === "pencilEraser"
|
|
7802
|
+
},
|
|
7774
7803
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7775
7804
|
dirty[0] & 2097152 && { content: ctx2[21].pencilEraser },
|
|
7776
7805
|
dirty[0] & 65536 && { menu: ctx2[16] }
|
|
@@ -7798,7 +7827,14 @@ function create_if_block_9(ctx) {
|
|
|
7798
7827
|
function create_if_block_7(ctx) {
|
|
7799
7828
|
let button;
|
|
7800
7829
|
let current;
|
|
7801
|
-
const button_spread_levels = [
|
|
7830
|
+
const button_spread_levels = [
|
|
7831
|
+
{ class: "eraser" },
|
|
7832
|
+
{
|
|
7833
|
+
active: ctx[8] === "eraser"
|
|
7834
|
+
},
|
|
7835
|
+
ctx[18],
|
|
7836
|
+
{ content: ctx[21].eraser }
|
|
7837
|
+
];
|
|
7802
7838
|
let button_props = {
|
|
7803
7839
|
$$slots: { default: [create_default_slot_53] },
|
|
7804
7840
|
$$scope: { ctx }
|
|
@@ -7817,8 +7853,11 @@ function create_if_block_7(ctx) {
|
|
|
7817
7853
|
current = true;
|
|
7818
7854
|
},
|
|
7819
7855
|
p(ctx2, dirty) {
|
|
7820
|
-
const button_changes = dirty[0] &
|
|
7856
|
+
const button_changes = dirty[0] & 2359552 ? get_spread_update(button_spread_levels, [
|
|
7821
7857
|
button_spread_levels[0],
|
|
7858
|
+
dirty[0] & 256 && {
|
|
7859
|
+
active: ctx2[8] === "eraser"
|
|
7860
|
+
},
|
|
7822
7861
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7823
7862
|
dirty[0] & 2097152 && { content: ctx2[21].eraser }
|
|
7824
7863
|
]) : {};
|
|
@@ -8561,6 +8600,9 @@ function create_if_block6(ctx) {
|
|
|
8561
8600
|
let current;
|
|
8562
8601
|
const button0_spread_levels = [
|
|
8563
8602
|
{ class: "eraser" },
|
|
8603
|
+
{
|
|
8604
|
+
active: ctx[8] === "pencilEraser"
|
|
8605
|
+
},
|
|
8564
8606
|
ctx[18],
|
|
8565
8607
|
{ placement: "top" },
|
|
8566
8608
|
{
|
|
@@ -8578,6 +8620,9 @@ function create_if_block6(ctx) {
|
|
|
8578
8620
|
button0.$on("click", ctx[34]);
|
|
8579
8621
|
const button1_spread_levels = [
|
|
8580
8622
|
{ class: "eraser" },
|
|
8623
|
+
{
|
|
8624
|
+
active: ctx[8] === "eraser"
|
|
8625
|
+
},
|
|
8581
8626
|
ctx[18],
|
|
8582
8627
|
{ placement: "top" },
|
|
8583
8628
|
{ content: ctx[21].eraserForPanel }
|
|
@@ -8616,10 +8661,13 @@ function create_if_block6(ctx) {
|
|
|
8616
8661
|
current = true;
|
|
8617
8662
|
},
|
|
8618
8663
|
p(ctx2, dirty) {
|
|
8619
|
-
const button0_changes = dirty[0] &
|
|
8664
|
+
const button0_changes = dirty[0] & 2359552 ? get_spread_update(button0_spread_levels, [
|
|
8620
8665
|
button0_spread_levels[0],
|
|
8666
|
+
dirty[0] & 256 && {
|
|
8667
|
+
active: ctx2[8] === "pencilEraser"
|
|
8668
|
+
},
|
|
8621
8669
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8622
|
-
button0_spread_levels[
|
|
8670
|
+
button0_spread_levels[3],
|
|
8623
8671
|
dirty[0] & 2097152 && {
|
|
8624
8672
|
content: ctx2[21].pencilEraserForPanel
|
|
8625
8673
|
}
|
|
@@ -8628,10 +8676,13 @@ function create_if_block6(ctx) {
|
|
|
8628
8676
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8629
8677
|
}
|
|
8630
8678
|
button0.$set(button0_changes);
|
|
8631
|
-
const button1_changes = dirty[0] &
|
|
8679
|
+
const button1_changes = dirty[0] & 2359552 ? get_spread_update(button1_spread_levels, [
|
|
8632
8680
|
button1_spread_levels[0],
|
|
8681
|
+
dirty[0] & 256 && {
|
|
8682
|
+
active: ctx2[8] === "eraser"
|
|
8683
|
+
},
|
|
8633
8684
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8634
|
-
button1_spread_levels[
|
|
8685
|
+
button1_spread_levels[3],
|
|
8635
8686
|
dirty[0] & 2097152 && { content: ctx2[21].eraserForPanel }
|
|
8636
8687
|
]) : {};
|
|
8637
8688
|
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
@@ -9157,6 +9208,9 @@ function create_fragment57(ctx) {
|
|
|
9157
9208
|
let if_block0 = ctx[5] && create_if_block_17(ctx);
|
|
9158
9209
|
const button0_spread_levels = [
|
|
9159
9210
|
{ class: "clicker" },
|
|
9211
|
+
{
|
|
9212
|
+
active: ctx[8] === "clicker"
|
|
9213
|
+
},
|
|
9160
9214
|
ctx[18],
|
|
9161
9215
|
{ content: ctx[21].clicker }
|
|
9162
9216
|
];
|
|
@@ -9171,6 +9225,9 @@ function create_fragment57(ctx) {
|
|
|
9171
9225
|
button0.$on("click", ctx[27]);
|
|
9172
9226
|
const button1_spread_levels = [
|
|
9173
9227
|
{ class: "selector" },
|
|
9228
|
+
{
|
|
9229
|
+
active: ctx[8] === "selector"
|
|
9230
|
+
},
|
|
9174
9231
|
ctx[18],
|
|
9175
9232
|
{ content: ctx[21].selector }
|
|
9176
9233
|
];
|
|
@@ -9185,6 +9242,9 @@ function create_fragment57(ctx) {
|
|
|
9185
9242
|
button1.$on("click", ctx[28]);
|
|
9186
9243
|
const button2_spread_levels = [
|
|
9187
9244
|
{ class: "pencil" },
|
|
9245
|
+
{
|
|
9246
|
+
active: ctx[8] === "pencil"
|
|
9247
|
+
},
|
|
9188
9248
|
ctx[18],
|
|
9189
9249
|
{ content: ctx[21].pencil },
|
|
9190
9250
|
{ menu: ctx[13] }
|
|
@@ -9200,6 +9260,7 @@ function create_fragment57(ctx) {
|
|
|
9200
9260
|
button2.$on("click", ctx[29]);
|
|
9201
9261
|
const button3_spread_levels = [
|
|
9202
9262
|
{ class: "text" },
|
|
9263
|
+
{ active: ctx[8] === "text" },
|
|
9203
9264
|
ctx[18],
|
|
9204
9265
|
{ content: ctx[21].text },
|
|
9205
9266
|
{ menu: ctx[14] }
|
|
@@ -9215,6 +9276,9 @@ function create_fragment57(ctx) {
|
|
|
9215
9276
|
button3.$on("click", ctx[30]);
|
|
9216
9277
|
const button4_spread_levels = [
|
|
9217
9278
|
{ class: "shapes" },
|
|
9279
|
+
{
|
|
9280
|
+
active: ctx[8] === ctx[11] || ctx[8] === "shape" && ctx[9] === ctx[11]
|
|
9281
|
+
},
|
|
9218
9282
|
ctx[18],
|
|
9219
9283
|
{ content: ctx[10].shapes },
|
|
9220
9284
|
{ menu: ctx[15] }
|
|
@@ -9471,8 +9535,11 @@ function create_fragment57(ctx) {
|
|
|
9471
9535
|
});
|
|
9472
9536
|
check_outros();
|
|
9473
9537
|
}
|
|
9474
|
-
const button0_changes = dirty[0] &
|
|
9538
|
+
const button0_changes = dirty[0] & 2359552 ? get_spread_update(button0_spread_levels, [
|
|
9475
9539
|
button0_spread_levels[0],
|
|
9540
|
+
dirty[0] & 256 && {
|
|
9541
|
+
active: ctx2[8] === "clicker"
|
|
9542
|
+
},
|
|
9476
9543
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
9477
9544
|
dirty[0] & 2097152 && { content: ctx2[21].clicker }
|
|
9478
9545
|
]) : {};
|
|
@@ -9480,8 +9547,11 @@ function create_fragment57(ctx) {
|
|
|
9480
9547
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9481
9548
|
}
|
|
9482
9549
|
button0.$set(button0_changes);
|
|
9483
|
-
const button1_changes = dirty[0] &
|
|
9550
|
+
const button1_changes = dirty[0] & 2359552 ? get_spread_update(button1_spread_levels, [
|
|
9484
9551
|
button1_spread_levels[0],
|
|
9552
|
+
dirty[0] & 256 && {
|
|
9553
|
+
active: ctx2[8] === "selector"
|
|
9554
|
+
},
|
|
9485
9555
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
9486
9556
|
dirty[0] & 2097152 && { content: ctx2[21].selector }
|
|
9487
9557
|
]) : {};
|
|
@@ -9489,8 +9559,11 @@ function create_fragment57(ctx) {
|
|
|
9489
9559
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9490
9560
|
}
|
|
9491
9561
|
button1.$set(button1_changes);
|
|
9492
|
-
const button2_changes = dirty[0] &
|
|
9562
|
+
const button2_changes = dirty[0] & 2367744 ? get_spread_update(button2_spread_levels, [
|
|
9493
9563
|
button2_spread_levels[0],
|
|
9564
|
+
dirty[0] & 256 && {
|
|
9565
|
+
active: ctx2[8] === "pencil"
|
|
9566
|
+
},
|
|
9494
9567
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
9495
9568
|
dirty[0] & 2097152 && { content: ctx2[21].pencil },
|
|
9496
9569
|
dirty[0] & 8192 && { menu: ctx2[13] }
|
|
@@ -9499,8 +9572,9 @@ function create_fragment57(ctx) {
|
|
|
9499
9572
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9500
9573
|
}
|
|
9501
9574
|
button2.$set(button2_changes);
|
|
9502
|
-
const button3_changes = dirty[0] &
|
|
9575
|
+
const button3_changes = dirty[0] & 2375936 ? get_spread_update(button3_spread_levels, [
|
|
9503
9576
|
button3_spread_levels[0],
|
|
9577
|
+
dirty[0] & 256 && { active: ctx2[8] === "text" },
|
|
9504
9578
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
9505
9579
|
dirty[0] & 2097152 && { content: ctx2[21].text },
|
|
9506
9580
|
dirty[0] & 16384 && { menu: ctx2[14] }
|
|
@@ -9509,8 +9583,11 @@ function create_fragment57(ctx) {
|
|
|
9509
9583
|
button3_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9510
9584
|
}
|
|
9511
9585
|
button3.$set(button3_changes);
|
|
9512
|
-
const button4_changes = dirty[0] &
|
|
9586
|
+
const button4_changes = dirty[0] & 298752 ? get_spread_update(button4_spread_levels, [
|
|
9513
9587
|
button4_spread_levels[0],
|
|
9588
|
+
dirty[0] & 2816 && {
|
|
9589
|
+
active: ctx2[8] === ctx2[11] || ctx2[8] === "shape" && ctx2[9] === ctx2[11]
|
|
9590
|
+
},
|
|
9514
9591
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
9515
9592
|
dirty[0] & 1024 && { content: ctx2[10].shapes },
|
|
9516
9593
|
dirty[0] & 32768 && { menu: ctx2[15] }
|
|
@@ -9790,9 +9867,9 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9790
9867
|
let $top;
|
|
9791
9868
|
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);
|
|
9792
9869
|
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(39, $memberState = $$value)), memberState);
|
|
9793
|
-
let $
|
|
9870
|
+
let $stockedApps;
|
|
9794
9871
|
let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(23, $status = $$value)), status);
|
|
9795
|
-
component_subscribe($$self,
|
|
9872
|
+
component_subscribe($$self, stockedApps, ($$value) => $$invalidate(22, $stockedApps = $$value));
|
|
9796
9873
|
$$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
|
|
9797
9874
|
$$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
|
|
9798
9875
|
$$self.$$.on_destroy.push(() => $$unsubscribe_status());
|
|
@@ -9981,7 +10058,7 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9981
10058
|
status,
|
|
9982
10059
|
memberState,
|
|
9983
10060
|
c,
|
|
9984
|
-
$
|
|
10061
|
+
$stockedApps,
|
|
9985
10062
|
$status,
|
|
9986
10063
|
top,
|
|
9987
10064
|
scroll_up,
|
|
@@ -10035,58 +10112,44 @@ var Contents_default = Contents;
|
|
|
10035
10112
|
|
|
10036
10113
|
// src/components/Toolbar/Toolbar.svelte
|
|
10037
10114
|
function create_else_block7(ctx) {
|
|
10038
|
-
let
|
|
10039
|
-
let path1;
|
|
10115
|
+
let path;
|
|
10040
10116
|
return {
|
|
10041
10117
|
c() {
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
attr(
|
|
10045
|
-
attr(
|
|
10046
|
-
attr(
|
|
10047
|
-
attr(
|
|
10048
|
-
attr(path1, "stroke", "none");
|
|
10049
|
-
attr(path1, "d", "M16 52v16l-8-8z");
|
|
10050
|
-
attr(path1, "class", name6 + "-handler-image-fill-color");
|
|
10118
|
+
path = svg_element("path");
|
|
10119
|
+
attr(path, "fill-rule", "evenodd");
|
|
10120
|
+
attr(path, "clip-rule", "evenodd");
|
|
10121
|
+
attr(path, "d", "M6 19L8 17V25L6 23L4 21L6 19ZM10 17H9V25H10V17Z");
|
|
10122
|
+
attr(path, "fill", "#fff");
|
|
10123
|
+
attr(path, "class", name6 + "-handler-image-fill-color");
|
|
10051
10124
|
},
|
|
10052
10125
|
m(target, anchor) {
|
|
10053
|
-
insert(target,
|
|
10054
|
-
insert(target, path1, anchor);
|
|
10126
|
+
insert(target, path, anchor);
|
|
10055
10127
|
},
|
|
10056
10128
|
p: noop,
|
|
10057
10129
|
d(detaching) {
|
|
10058
10130
|
if (detaching)
|
|
10059
|
-
detach(
|
|
10060
|
-
if (detaching)
|
|
10061
|
-
detach(path1);
|
|
10131
|
+
detach(path);
|
|
10062
10132
|
}
|
|
10063
10133
|
};
|
|
10064
10134
|
}
|
|
10065
10135
|
function create_if_block7(ctx) {
|
|
10066
|
-
let
|
|
10067
|
-
let path1;
|
|
10136
|
+
let path;
|
|
10068
10137
|
return {
|
|
10069
10138
|
c() {
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
attr(
|
|
10073
|
-
attr(
|
|
10074
|
-
attr(
|
|
10075
|
-
attr(
|
|
10076
|
-
attr(path1, "stroke", "none");
|
|
10077
|
-
attr(path1, "d", "M14 52v16l8-8z");
|
|
10078
|
-
attr(path1, "class", name6 + "-handler-image-fill-color");
|
|
10139
|
+
path = svg_element("path");
|
|
10140
|
+
attr(path, "fill-rule", "evenodd");
|
|
10141
|
+
attr(path, "clip-rule", "evenodd");
|
|
10142
|
+
attr(path, "d", "M8 19L6 17V25L8 23L10 21L8 19ZM4 17H5V25H4V17Z");
|
|
10143
|
+
attr(path, "fill", "#fff");
|
|
10144
|
+
attr(path, "class", name6 + "-handler-image-fill-color");
|
|
10079
10145
|
},
|
|
10080
10146
|
m(target, anchor) {
|
|
10081
|
-
insert(target,
|
|
10082
|
-
insert(target, path1, anchor);
|
|
10147
|
+
insert(target, path, anchor);
|
|
10083
10148
|
},
|
|
10084
10149
|
p: noop,
|
|
10085
10150
|
d(detaching) {
|
|
10086
10151
|
if (detaching)
|
|
10087
|
-
detach(
|
|
10088
|
-
if (detaching)
|
|
10089
|
-
detach(path1);
|
|
10152
|
+
detach(path);
|
|
10090
10153
|
}
|
|
10091
10154
|
};
|
|
10092
10155
|
}
|
|
@@ -10100,8 +10163,7 @@ function create_fragment58(ctx) {
|
|
|
10100
10163
|
let input;
|
|
10101
10164
|
let t1;
|
|
10102
10165
|
let svg;
|
|
10103
|
-
let
|
|
10104
|
-
let path1;
|
|
10166
|
+
let path;
|
|
10105
10167
|
let label_class_value;
|
|
10106
10168
|
let div1_class_value;
|
|
10107
10169
|
let current;
|
|
@@ -10137,8 +10199,7 @@ function create_fragment58(ctx) {
|
|
|
10137
10199
|
input = element("input");
|
|
10138
10200
|
t1 = space();
|
|
10139
10201
|
svg = svg_element("svg");
|
|
10140
|
-
|
|
10141
|
-
path1 = svg_element("path");
|
|
10202
|
+
path = svg_element("path");
|
|
10142
10203
|
if_block.c();
|
|
10143
10204
|
attr(div0, "class", div0_class_value = name6 + "-contents " + ctx[1]);
|
|
10144
10205
|
set_style(
|
|
@@ -10148,16 +10209,14 @@ function create_fragment58(ctx) {
|
|
|
10148
10209
|
false
|
|
10149
10210
|
);
|
|
10150
10211
|
attr(input, "type", "checkbox");
|
|
10151
|
-
attr(
|
|
10152
|
-
attr(
|
|
10153
|
-
attr(
|
|
10154
|
-
attr(
|
|
10155
|
-
attr(
|
|
10156
|
-
attr(
|
|
10157
|
-
attr(
|
|
10212
|
+
attr(path, "d", "M0 41H12C14.2091 41 16 39.2091 16 37V5C16 2.79086 14.2091 1 12 1H0");
|
|
10213
|
+
attr(path, "stroke", "#000");
|
|
10214
|
+
attr(path, "fill", "#fff");
|
|
10215
|
+
attr(path, "class", name6 + "-handler-border-color " + name6 + "-handler-bg-color");
|
|
10216
|
+
attr(svg, "width", "17");
|
|
10217
|
+
attr(svg, "height", "42");
|
|
10218
|
+
attr(svg, "viewBox", "0 0 17 42");
|
|
10158
10219
|
attr(svg, "fill", "none");
|
|
10159
|
-
attr(svg, "stroke-width", "2");
|
|
10160
|
-
attr(svg, "viewBox", "0 0 32 120");
|
|
10161
10220
|
attr(label, "class", label_class_value = name6 + "-handler " + ctx[1]);
|
|
10162
10221
|
attr(div1, "class", div1_class_value = name6 + " " + ctx[1]);
|
|
10163
10222
|
toggle_class(div1, "collapsed", ctx[3]);
|
|
@@ -10172,8 +10231,7 @@ function create_fragment58(ctx) {
|
|
|
10172
10231
|
input.checked = ctx[3];
|
|
10173
10232
|
append(label, t1);
|
|
10174
10233
|
append(label, svg);
|
|
10175
|
-
append(svg,
|
|
10176
|
-
append(svg, path1);
|
|
10234
|
+
append(svg, path);
|
|
10177
10235
|
if_block.m(svg, null);
|
|
10178
10236
|
current = true;
|
|
10179
10237
|
if (!mounted) {
|
|
@@ -12032,7 +12090,7 @@ exports.RedoUndo = RedoUndo_default;
|
|
|
12032
12090
|
exports.ReplayFastboard = ReplayFastboard_default;
|
|
12033
12091
|
exports.Toolbar = Toolbar_default;
|
|
12034
12092
|
exports.ZoomControl = ZoomControl_default;
|
|
12035
|
-
exports.apps = apps;
|
|
12036
12093
|
exports.createReplayUI = createReplayUI;
|
|
12037
12094
|
exports.createUI = createUI;
|
|
12095
|
+
exports.stockedApps = stockedApps;
|
|
12038
12096
|
//# sourceMappingURL=index.js.map
|