@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.mjs
CHANGED
|
@@ -3595,15 +3595,16 @@ function create_else_block_1(ctx) {
|
|
|
3595
3595
|
let current;
|
|
3596
3596
|
let mounted;
|
|
3597
3597
|
let dispose;
|
|
3598
|
-
const default_slot_template = ctx[
|
|
3599
|
-
const default_slot = create_slot(default_slot_template, ctx, ctx[
|
|
3598
|
+
const default_slot_template = ctx[10].default;
|
|
3599
|
+
const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
|
|
3600
3600
|
return {
|
|
3601
3601
|
c() {
|
|
3602
3602
|
button = element("button");
|
|
3603
3603
|
if (default_slot)
|
|
3604
3604
|
default_slot.c();
|
|
3605
3605
|
attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
|
|
3606
|
-
button.disabled = ctx[
|
|
3606
|
+
button.disabled = ctx[4];
|
|
3607
|
+
toggle_class(button, "is-active", ctx[3]);
|
|
3607
3608
|
},
|
|
3608
3609
|
m(target, anchor) {
|
|
3609
3610
|
insert(target, button, anchor);
|
|
@@ -3612,19 +3613,19 @@ function create_else_block_1(ctx) {
|
|
|
3612
3613
|
}
|
|
3613
3614
|
current = true;
|
|
3614
3615
|
if (!mounted) {
|
|
3615
|
-
dispose = listen(button, "click", ctx[
|
|
3616
|
+
dispose = listen(button, "click", ctx[13]);
|
|
3616
3617
|
mounted = true;
|
|
3617
3618
|
}
|
|
3618
3619
|
},
|
|
3619
3620
|
p(ctx2, dirty) {
|
|
3620
3621
|
if (default_slot) {
|
|
3621
|
-
if (default_slot.p && (!current || dirty &
|
|
3622
|
+
if (default_slot.p && (!current || dirty & 512)) {
|
|
3622
3623
|
update_slot_base(
|
|
3623
3624
|
default_slot,
|
|
3624
3625
|
default_slot_template,
|
|
3625
3626
|
ctx2,
|
|
3626
|
-
ctx2[
|
|
3627
|
-
!current ? get_all_dirty_from_scope(ctx2[
|
|
3627
|
+
ctx2[9],
|
|
3628
|
+
!current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
|
|
3628
3629
|
null
|
|
3629
3630
|
);
|
|
3630
3631
|
}
|
|
@@ -3632,8 +3633,11 @@ function create_else_block_1(ctx) {
|
|
|
3632
3633
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
3633
3634
|
attr(button, "class", button_class_value);
|
|
3634
3635
|
}
|
|
3635
|
-
if (!current || dirty &
|
|
3636
|
-
button.disabled = ctx2[
|
|
3636
|
+
if (!current || dirty & 16) {
|
|
3637
|
+
button.disabled = ctx2[4];
|
|
3638
|
+
}
|
|
3639
|
+
if (dirty & 15) {
|
|
3640
|
+
toggle_class(button, "is-active", ctx2[3]);
|
|
3637
3641
|
}
|
|
3638
3642
|
},
|
|
3639
3643
|
i(local) {
|
|
@@ -3664,7 +3668,7 @@ function create_if_block2(ctx) {
|
|
|
3664
3668
|
const if_block_creators = [create_if_block_1, create_else_block2];
|
|
3665
3669
|
const if_blocks = [];
|
|
3666
3670
|
function select_block_type_1(ctx2, dirty) {
|
|
3667
|
-
if (ctx2[
|
|
3671
|
+
if (ctx2[7])
|
|
3668
3672
|
return 0;
|
|
3669
3673
|
return 1;
|
|
3670
3674
|
}
|
|
@@ -3726,15 +3730,16 @@ function create_else_block2(ctx) {
|
|
|
3726
3730
|
let current;
|
|
3727
3731
|
let mounted;
|
|
3728
3732
|
let dispose;
|
|
3729
|
-
const default_slot_template = ctx[
|
|
3730
|
-
const default_slot = create_slot(default_slot_template, ctx, ctx[
|
|
3733
|
+
const default_slot_template = ctx[10].default;
|
|
3734
|
+
const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
|
|
3731
3735
|
return {
|
|
3732
3736
|
c() {
|
|
3733
3737
|
button = element("button");
|
|
3734
3738
|
if (default_slot)
|
|
3735
3739
|
default_slot.c();
|
|
3736
3740
|
attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
|
|
3737
|
-
button.disabled = ctx[
|
|
3741
|
+
button.disabled = ctx[4];
|
|
3742
|
+
toggle_class(button, "is-active", ctx[3]);
|
|
3738
3743
|
},
|
|
3739
3744
|
m(target, anchor) {
|
|
3740
3745
|
insert(target, button, anchor);
|
|
@@ -3744,10 +3749,10 @@ function create_else_block2(ctx) {
|
|
|
3744
3749
|
current = true;
|
|
3745
3750
|
if (!mounted) {
|
|
3746
3751
|
dispose = [
|
|
3747
|
-
listen(button, "click", ctx[
|
|
3752
|
+
listen(button, "click", ctx[12]),
|
|
3748
3753
|
action_destroyer(tippy_action = tippy.call(null, button, {
|
|
3749
|
-
content: ctx[
|
|
3750
|
-
placement: ctx[
|
|
3754
|
+
content: ctx[5],
|
|
3755
|
+
placement: ctx[6],
|
|
3751
3756
|
className: ctx[0]
|
|
3752
3757
|
}))
|
|
3753
3758
|
];
|
|
@@ -3756,13 +3761,13 @@ function create_else_block2(ctx) {
|
|
|
3756
3761
|
},
|
|
3757
3762
|
p(ctx2, dirty) {
|
|
3758
3763
|
if (default_slot) {
|
|
3759
|
-
if (default_slot.p && (!current || dirty &
|
|
3764
|
+
if (default_slot.p && (!current || dirty & 512)) {
|
|
3760
3765
|
update_slot_base(
|
|
3761
3766
|
default_slot,
|
|
3762
3767
|
default_slot_template,
|
|
3763
3768
|
ctx2,
|
|
3764
|
-
ctx2[
|
|
3765
|
-
!current ? get_all_dirty_from_scope(ctx2[
|
|
3769
|
+
ctx2[9],
|
|
3770
|
+
!current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
|
|
3766
3771
|
null
|
|
3767
3772
|
);
|
|
3768
3773
|
}
|
|
@@ -3770,15 +3775,18 @@ function create_else_block2(ctx) {
|
|
|
3770
3775
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
3771
3776
|
attr(button, "class", button_class_value);
|
|
3772
3777
|
}
|
|
3773
|
-
if (!current || dirty &
|
|
3774
|
-
button.disabled = ctx2[
|
|
3778
|
+
if (!current || dirty & 16) {
|
|
3779
|
+
button.disabled = ctx2[4];
|
|
3775
3780
|
}
|
|
3776
|
-
if (tippy_action && is_function(tippy_action.update) && dirty &
|
|
3781
|
+
if (tippy_action && is_function(tippy_action.update) && dirty & 97)
|
|
3777
3782
|
tippy_action.update.call(null, {
|
|
3778
|
-
content: ctx2[
|
|
3779
|
-
placement: ctx2[
|
|
3783
|
+
content: ctx2[5],
|
|
3784
|
+
placement: ctx2[6],
|
|
3780
3785
|
className: ctx2[0]
|
|
3781
3786
|
});
|
|
3787
|
+
if (dirty & 15) {
|
|
3788
|
+
toggle_class(button, "is-active", ctx2[3]);
|
|
3789
|
+
}
|
|
3782
3790
|
},
|
|
3783
3791
|
i(local) {
|
|
3784
3792
|
if (current)
|
|
@@ -3813,8 +3821,8 @@ function create_if_block_1(ctx) {
|
|
|
3813
3821
|
let current;
|
|
3814
3822
|
let mounted;
|
|
3815
3823
|
let dispose;
|
|
3816
|
-
const default_slot_template = ctx[
|
|
3817
|
-
const default_slot = create_slot(default_slot_template, ctx, ctx[
|
|
3824
|
+
const default_slot_template = ctx[10].default;
|
|
3825
|
+
const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
|
|
3818
3826
|
return {
|
|
3819
3827
|
c() {
|
|
3820
3828
|
span1 = element("span");
|
|
@@ -3824,7 +3832,8 @@ function create_if_block_1(ctx) {
|
|
|
3824
3832
|
t = space();
|
|
3825
3833
|
span0 = element("span");
|
|
3826
3834
|
attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
|
|
3827
|
-
button.disabled = ctx[
|
|
3835
|
+
button.disabled = ctx[4];
|
|
3836
|
+
toggle_class(button, "is-active", ctx[3]);
|
|
3828
3837
|
attr(span0, "class", span0_class_value = ctx[1] + "-triangle");
|
|
3829
3838
|
attr(span1, "class", span1_class_value = ctx[1] + "-btn-interactive " + ctx[2]);
|
|
3830
3839
|
},
|
|
@@ -3839,18 +3848,18 @@ function create_if_block_1(ctx) {
|
|
|
3839
3848
|
current = true;
|
|
3840
3849
|
if (!mounted) {
|
|
3841
3850
|
dispose = [
|
|
3842
|
-
listen(button, "click", ctx[
|
|
3851
|
+
listen(button, "click", ctx[11]),
|
|
3843
3852
|
action_destroyer(tippy_action = tippy.call(null, button, {
|
|
3844
|
-
content: ctx[
|
|
3853
|
+
content: ctx[7],
|
|
3845
3854
|
...tippy_menu,
|
|
3846
|
-
placement: ctx[
|
|
3855
|
+
placement: ctx[8],
|
|
3847
3856
|
appendTo: document.body,
|
|
3848
3857
|
theme: ctx[2],
|
|
3849
3858
|
className: "fastboard-panel"
|
|
3850
3859
|
})),
|
|
3851
3860
|
action_destroyer(tippy_action_1 = tippy.call(null, span1, {
|
|
3852
|
-
content: ctx[
|
|
3853
|
-
placement: ctx[
|
|
3861
|
+
content: ctx[5],
|
|
3862
|
+
placement: ctx[6],
|
|
3854
3863
|
className: ctx[0]
|
|
3855
3864
|
}))
|
|
3856
3865
|
];
|
|
@@ -3859,13 +3868,13 @@ function create_if_block_1(ctx) {
|
|
|
3859
3868
|
},
|
|
3860
3869
|
p(ctx2, dirty) {
|
|
3861
3870
|
if (default_slot) {
|
|
3862
|
-
if (default_slot.p && (!current || dirty &
|
|
3871
|
+
if (default_slot.p && (!current || dirty & 512)) {
|
|
3863
3872
|
update_slot_base(
|
|
3864
3873
|
default_slot,
|
|
3865
3874
|
default_slot_template,
|
|
3866
3875
|
ctx2,
|
|
3867
|
-
ctx2[
|
|
3868
|
-
!current ? get_all_dirty_from_scope(ctx2[
|
|
3876
|
+
ctx2[9],
|
|
3877
|
+
!current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
|
|
3869
3878
|
null
|
|
3870
3879
|
);
|
|
3871
3880
|
}
|
|
@@ -3873,28 +3882,31 @@ function create_if_block_1(ctx) {
|
|
|
3873
3882
|
if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
|
|
3874
3883
|
attr(button, "class", button_class_value);
|
|
3875
3884
|
}
|
|
3876
|
-
if (!current || dirty &
|
|
3877
|
-
button.disabled = ctx2[
|
|
3885
|
+
if (!current || dirty & 16) {
|
|
3886
|
+
button.disabled = ctx2[4];
|
|
3878
3887
|
}
|
|
3879
|
-
if (tippy_action && is_function(tippy_action.update) && dirty &
|
|
3888
|
+
if (tippy_action && is_function(tippy_action.update) && dirty & 388)
|
|
3880
3889
|
tippy_action.update.call(null, {
|
|
3881
|
-
content: ctx2[
|
|
3890
|
+
content: ctx2[7],
|
|
3882
3891
|
...tippy_menu,
|
|
3883
|
-
placement: ctx2[
|
|
3892
|
+
placement: ctx2[8],
|
|
3884
3893
|
appendTo: document.body,
|
|
3885
3894
|
theme: ctx2[2],
|
|
3886
3895
|
className: "fastboard-panel"
|
|
3887
3896
|
});
|
|
3897
|
+
if (dirty & 15) {
|
|
3898
|
+
toggle_class(button, "is-active", ctx2[3]);
|
|
3899
|
+
}
|
|
3888
3900
|
if (!current || dirty & 2 && span0_class_value !== (span0_class_value = ctx2[1] + "-triangle")) {
|
|
3889
3901
|
attr(span0, "class", span0_class_value);
|
|
3890
3902
|
}
|
|
3891
3903
|
if (!current || dirty & 6 && span1_class_value !== (span1_class_value = ctx2[1] + "-btn-interactive " + ctx2[2])) {
|
|
3892
3904
|
attr(span1, "class", span1_class_value);
|
|
3893
3905
|
}
|
|
3894
|
-
if (tippy_action_1 && is_function(tippy_action_1.update) && dirty &
|
|
3906
|
+
if (tippy_action_1 && is_function(tippy_action_1.update) && dirty & 97)
|
|
3895
3907
|
tippy_action_1.update.call(null, {
|
|
3896
|
-
content: ctx2[
|
|
3897
|
-
placement: ctx2[
|
|
3908
|
+
content: ctx2[5],
|
|
3909
|
+
placement: ctx2[6],
|
|
3898
3910
|
className: ctx2[0]
|
|
3899
3911
|
});
|
|
3900
3912
|
},
|
|
@@ -3926,7 +3938,7 @@ function create_fragment47(ctx) {
|
|
|
3926
3938
|
const if_block_creators = [create_if_block2, create_else_block_1];
|
|
3927
3939
|
const if_blocks = [];
|
|
3928
3940
|
function select_block_type(ctx2, dirty) {
|
|
3929
|
-
if (ctx2[
|
|
3941
|
+
if (ctx2[5])
|
|
3930
3942
|
return 0;
|
|
3931
3943
|
return 1;
|
|
3932
3944
|
}
|
|
@@ -3986,6 +3998,7 @@ function instance47($$self, $$props, $$invalidate) {
|
|
|
3986
3998
|
let { class: className = "" } = $$props;
|
|
3987
3999
|
let { name: name10 = "fastboard-ui" } = $$props;
|
|
3988
4000
|
let { theme = "light" } = $$props;
|
|
4001
|
+
let { active = false } = $$props;
|
|
3989
4002
|
let { disabled = false } = $$props;
|
|
3990
4003
|
let { content = "" } = $$props;
|
|
3991
4004
|
let { placement = "top" } = $$props;
|
|
@@ -4007,23 +4020,26 @@ function instance47($$self, $$props, $$invalidate) {
|
|
|
4007
4020
|
$$invalidate(1, name10 = $$props2.name);
|
|
4008
4021
|
if ("theme" in $$props2)
|
|
4009
4022
|
$$invalidate(2, theme = $$props2.theme);
|
|
4023
|
+
if ("active" in $$props2)
|
|
4024
|
+
$$invalidate(3, active = $$props2.active);
|
|
4010
4025
|
if ("disabled" in $$props2)
|
|
4011
|
-
$$invalidate(
|
|
4026
|
+
$$invalidate(4, disabled = $$props2.disabled);
|
|
4012
4027
|
if ("content" in $$props2)
|
|
4013
|
-
$$invalidate(
|
|
4028
|
+
$$invalidate(5, content = $$props2.content);
|
|
4014
4029
|
if ("placement" in $$props2)
|
|
4015
|
-
$$invalidate(
|
|
4030
|
+
$$invalidate(6, placement = $$props2.placement);
|
|
4016
4031
|
if ("menu" in $$props2)
|
|
4017
|
-
$$invalidate(
|
|
4032
|
+
$$invalidate(7, menu = $$props2.menu);
|
|
4018
4033
|
if ("menu_placement" in $$props2)
|
|
4019
|
-
$$invalidate(
|
|
4034
|
+
$$invalidate(8, menu_placement = $$props2.menu_placement);
|
|
4020
4035
|
if ("$$scope" in $$props2)
|
|
4021
|
-
$$invalidate(
|
|
4036
|
+
$$invalidate(9, $$scope = $$props2.$$scope);
|
|
4022
4037
|
};
|
|
4023
4038
|
return [
|
|
4024
4039
|
className,
|
|
4025
4040
|
name10,
|
|
4026
4041
|
theme,
|
|
4042
|
+
active,
|
|
4027
4043
|
disabled,
|
|
4028
4044
|
content,
|
|
4029
4045
|
placement,
|
|
@@ -4043,11 +4059,12 @@ var Button = class extends SvelteComponent {
|
|
|
4043
4059
|
class: 0,
|
|
4044
4060
|
name: 1,
|
|
4045
4061
|
theme: 2,
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4062
|
+
active: 3,
|
|
4063
|
+
disabled: 4,
|
|
4064
|
+
content: 5,
|
|
4065
|
+
placement: 6,
|
|
4066
|
+
menu: 7,
|
|
4067
|
+
menu_placement: 8
|
|
4051
4068
|
});
|
|
4052
4069
|
}
|
|
4053
4070
|
};
|
|
@@ -5739,7 +5756,7 @@ var AppsInToolbar = class {
|
|
|
5739
5756
|
this._listeners.forEach((fn) => fn(this._data));
|
|
5740
5757
|
}
|
|
5741
5758
|
};
|
|
5742
|
-
var
|
|
5759
|
+
var stockedApps = new AppsInToolbar([]);
|
|
5743
5760
|
|
|
5744
5761
|
// src/components/Toolbar/components/helper.ts
|
|
5745
5762
|
function tooltip(text2, hotkey) {
|
|
@@ -7682,6 +7699,9 @@ function create_else_block_4(ctx) {
|
|
|
7682
7699
|
let current;
|
|
7683
7700
|
const button_spread_levels = [
|
|
7684
7701
|
{ class: "eraser" },
|
|
7702
|
+
{
|
|
7703
|
+
active: ctx[8] === ctx[12]
|
|
7704
|
+
},
|
|
7685
7705
|
ctx[18],
|
|
7686
7706
|
{
|
|
7687
7707
|
content: ctx[10][ctx[12]]
|
|
@@ -7706,8 +7726,11 @@ function create_else_block_4(ctx) {
|
|
|
7706
7726
|
current = true;
|
|
7707
7727
|
},
|
|
7708
7728
|
p(ctx2, dirty) {
|
|
7709
|
-
const button_changes = dirty[0] &
|
|
7729
|
+
const button_changes = dirty[0] & 333056 ? get_spread_update(button_spread_levels, [
|
|
7710
7730
|
button_spread_levels[0],
|
|
7731
|
+
dirty[0] & 4352 && {
|
|
7732
|
+
active: ctx2[8] === ctx2[12]
|
|
7733
|
+
},
|
|
7711
7734
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7712
7735
|
dirty[0] & 5120 && {
|
|
7713
7736
|
content: ctx2[10][ctx2[12]]
|
|
@@ -7739,6 +7762,9 @@ function create_if_block_9(ctx) {
|
|
|
7739
7762
|
let current;
|
|
7740
7763
|
const button_spread_levels = [
|
|
7741
7764
|
{ class: "eraser" },
|
|
7765
|
+
{
|
|
7766
|
+
active: ctx[8] === "pencilEraser"
|
|
7767
|
+
},
|
|
7742
7768
|
ctx[18],
|
|
7743
7769
|
{ content: ctx[21].pencilEraser },
|
|
7744
7770
|
{ menu: ctx[16] }
|
|
@@ -7761,8 +7787,11 @@ function create_if_block_9(ctx) {
|
|
|
7761
7787
|
current = true;
|
|
7762
7788
|
},
|
|
7763
7789
|
p(ctx2, dirty) {
|
|
7764
|
-
const button_changes = dirty[0] &
|
|
7790
|
+
const button_changes = dirty[0] & 2425088 ? get_spread_update(button_spread_levels, [
|
|
7765
7791
|
button_spread_levels[0],
|
|
7792
|
+
dirty[0] & 256 && {
|
|
7793
|
+
active: ctx2[8] === "pencilEraser"
|
|
7794
|
+
},
|
|
7766
7795
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7767
7796
|
dirty[0] & 2097152 && { content: ctx2[21].pencilEraser },
|
|
7768
7797
|
dirty[0] & 65536 && { menu: ctx2[16] }
|
|
@@ -7790,7 +7819,14 @@ function create_if_block_9(ctx) {
|
|
|
7790
7819
|
function create_if_block_7(ctx) {
|
|
7791
7820
|
let button;
|
|
7792
7821
|
let current;
|
|
7793
|
-
const button_spread_levels = [
|
|
7822
|
+
const button_spread_levels = [
|
|
7823
|
+
{ class: "eraser" },
|
|
7824
|
+
{
|
|
7825
|
+
active: ctx[8] === "eraser"
|
|
7826
|
+
},
|
|
7827
|
+
ctx[18],
|
|
7828
|
+
{ content: ctx[21].eraser }
|
|
7829
|
+
];
|
|
7794
7830
|
let button_props = {
|
|
7795
7831
|
$$slots: { default: [create_default_slot_53] },
|
|
7796
7832
|
$$scope: { ctx }
|
|
@@ -7809,8 +7845,11 @@ function create_if_block_7(ctx) {
|
|
|
7809
7845
|
current = true;
|
|
7810
7846
|
},
|
|
7811
7847
|
p(ctx2, dirty) {
|
|
7812
|
-
const button_changes = dirty[0] &
|
|
7848
|
+
const button_changes = dirty[0] & 2359552 ? get_spread_update(button_spread_levels, [
|
|
7813
7849
|
button_spread_levels[0],
|
|
7850
|
+
dirty[0] & 256 && {
|
|
7851
|
+
active: ctx2[8] === "eraser"
|
|
7852
|
+
},
|
|
7814
7853
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
7815
7854
|
dirty[0] & 2097152 && { content: ctx2[21].eraser }
|
|
7816
7855
|
]) : {};
|
|
@@ -8553,6 +8592,9 @@ function create_if_block6(ctx) {
|
|
|
8553
8592
|
let current;
|
|
8554
8593
|
const button0_spread_levels = [
|
|
8555
8594
|
{ class: "eraser" },
|
|
8595
|
+
{
|
|
8596
|
+
active: ctx[8] === "pencilEraser"
|
|
8597
|
+
},
|
|
8556
8598
|
ctx[18],
|
|
8557
8599
|
{ placement: "top" },
|
|
8558
8600
|
{
|
|
@@ -8570,6 +8612,9 @@ function create_if_block6(ctx) {
|
|
|
8570
8612
|
button0.$on("click", ctx[34]);
|
|
8571
8613
|
const button1_spread_levels = [
|
|
8572
8614
|
{ class: "eraser" },
|
|
8615
|
+
{
|
|
8616
|
+
active: ctx[8] === "eraser"
|
|
8617
|
+
},
|
|
8573
8618
|
ctx[18],
|
|
8574
8619
|
{ placement: "top" },
|
|
8575
8620
|
{ content: ctx[21].eraserForPanel }
|
|
@@ -8608,10 +8653,13 @@ function create_if_block6(ctx) {
|
|
|
8608
8653
|
current = true;
|
|
8609
8654
|
},
|
|
8610
8655
|
p(ctx2, dirty) {
|
|
8611
|
-
const button0_changes = dirty[0] &
|
|
8656
|
+
const button0_changes = dirty[0] & 2359552 ? get_spread_update(button0_spread_levels, [
|
|
8612
8657
|
button0_spread_levels[0],
|
|
8658
|
+
dirty[0] & 256 && {
|
|
8659
|
+
active: ctx2[8] === "pencilEraser"
|
|
8660
|
+
},
|
|
8613
8661
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8614
|
-
button0_spread_levels[
|
|
8662
|
+
button0_spread_levels[3],
|
|
8615
8663
|
dirty[0] & 2097152 && {
|
|
8616
8664
|
content: ctx2[21].pencilEraserForPanel
|
|
8617
8665
|
}
|
|
@@ -8620,10 +8668,13 @@ function create_if_block6(ctx) {
|
|
|
8620
8668
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
8621
8669
|
}
|
|
8622
8670
|
button0.$set(button0_changes);
|
|
8623
|
-
const button1_changes = dirty[0] &
|
|
8671
|
+
const button1_changes = dirty[0] & 2359552 ? get_spread_update(button1_spread_levels, [
|
|
8624
8672
|
button1_spread_levels[0],
|
|
8673
|
+
dirty[0] & 256 && {
|
|
8674
|
+
active: ctx2[8] === "eraser"
|
|
8675
|
+
},
|
|
8625
8676
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
8626
|
-
button1_spread_levels[
|
|
8677
|
+
button1_spread_levels[3],
|
|
8627
8678
|
dirty[0] & 2097152 && { content: ctx2[21].eraserForPanel }
|
|
8628
8679
|
]) : {};
|
|
8629
8680
|
if (dirty[0] & 258 | dirty[1] & 33554432) {
|
|
@@ -9149,6 +9200,9 @@ function create_fragment57(ctx) {
|
|
|
9149
9200
|
let if_block0 = ctx[5] && create_if_block_17(ctx);
|
|
9150
9201
|
const button0_spread_levels = [
|
|
9151
9202
|
{ class: "clicker" },
|
|
9203
|
+
{
|
|
9204
|
+
active: ctx[8] === "clicker"
|
|
9205
|
+
},
|
|
9152
9206
|
ctx[18],
|
|
9153
9207
|
{ content: ctx[21].clicker }
|
|
9154
9208
|
];
|
|
@@ -9163,6 +9217,9 @@ function create_fragment57(ctx) {
|
|
|
9163
9217
|
button0.$on("click", ctx[27]);
|
|
9164
9218
|
const button1_spread_levels = [
|
|
9165
9219
|
{ class: "selector" },
|
|
9220
|
+
{
|
|
9221
|
+
active: ctx[8] === "selector"
|
|
9222
|
+
},
|
|
9166
9223
|
ctx[18],
|
|
9167
9224
|
{ content: ctx[21].selector }
|
|
9168
9225
|
];
|
|
@@ -9177,6 +9234,9 @@ function create_fragment57(ctx) {
|
|
|
9177
9234
|
button1.$on("click", ctx[28]);
|
|
9178
9235
|
const button2_spread_levels = [
|
|
9179
9236
|
{ class: "pencil" },
|
|
9237
|
+
{
|
|
9238
|
+
active: ctx[8] === "pencil"
|
|
9239
|
+
},
|
|
9180
9240
|
ctx[18],
|
|
9181
9241
|
{ content: ctx[21].pencil },
|
|
9182
9242
|
{ menu: ctx[13] }
|
|
@@ -9192,6 +9252,7 @@ function create_fragment57(ctx) {
|
|
|
9192
9252
|
button2.$on("click", ctx[29]);
|
|
9193
9253
|
const button3_spread_levels = [
|
|
9194
9254
|
{ class: "text" },
|
|
9255
|
+
{ active: ctx[8] === "text" },
|
|
9195
9256
|
ctx[18],
|
|
9196
9257
|
{ content: ctx[21].text },
|
|
9197
9258
|
{ menu: ctx[14] }
|
|
@@ -9207,6 +9268,9 @@ function create_fragment57(ctx) {
|
|
|
9207
9268
|
button3.$on("click", ctx[30]);
|
|
9208
9269
|
const button4_spread_levels = [
|
|
9209
9270
|
{ class: "shapes" },
|
|
9271
|
+
{
|
|
9272
|
+
active: ctx[8] === ctx[11] || ctx[8] === "shape" && ctx[9] === ctx[11]
|
|
9273
|
+
},
|
|
9210
9274
|
ctx[18],
|
|
9211
9275
|
{ content: ctx[10].shapes },
|
|
9212
9276
|
{ menu: ctx[15] }
|
|
@@ -9463,8 +9527,11 @@ function create_fragment57(ctx) {
|
|
|
9463
9527
|
});
|
|
9464
9528
|
check_outros();
|
|
9465
9529
|
}
|
|
9466
|
-
const button0_changes = dirty[0] &
|
|
9530
|
+
const button0_changes = dirty[0] & 2359552 ? get_spread_update(button0_spread_levels, [
|
|
9467
9531
|
button0_spread_levels[0],
|
|
9532
|
+
dirty[0] & 256 && {
|
|
9533
|
+
active: ctx2[8] === "clicker"
|
|
9534
|
+
},
|
|
9468
9535
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
9469
9536
|
dirty[0] & 2097152 && { content: ctx2[21].clicker }
|
|
9470
9537
|
]) : {};
|
|
@@ -9472,8 +9539,11 @@ function create_fragment57(ctx) {
|
|
|
9472
9539
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9473
9540
|
}
|
|
9474
9541
|
button0.$set(button0_changes);
|
|
9475
|
-
const button1_changes = dirty[0] &
|
|
9542
|
+
const button1_changes = dirty[0] & 2359552 ? get_spread_update(button1_spread_levels, [
|
|
9476
9543
|
button1_spread_levels[0],
|
|
9544
|
+
dirty[0] & 256 && {
|
|
9545
|
+
active: ctx2[8] === "selector"
|
|
9546
|
+
},
|
|
9477
9547
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
9478
9548
|
dirty[0] & 2097152 && { content: ctx2[21].selector }
|
|
9479
9549
|
]) : {};
|
|
@@ -9481,8 +9551,11 @@ function create_fragment57(ctx) {
|
|
|
9481
9551
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9482
9552
|
}
|
|
9483
9553
|
button1.$set(button1_changes);
|
|
9484
|
-
const button2_changes = dirty[0] &
|
|
9554
|
+
const button2_changes = dirty[0] & 2367744 ? get_spread_update(button2_spread_levels, [
|
|
9485
9555
|
button2_spread_levels[0],
|
|
9556
|
+
dirty[0] & 256 && {
|
|
9557
|
+
active: ctx2[8] === "pencil"
|
|
9558
|
+
},
|
|
9486
9559
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
9487
9560
|
dirty[0] & 2097152 && { content: ctx2[21].pencil },
|
|
9488
9561
|
dirty[0] & 8192 && { menu: ctx2[13] }
|
|
@@ -9491,8 +9564,9 @@ function create_fragment57(ctx) {
|
|
|
9491
9564
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9492
9565
|
}
|
|
9493
9566
|
button2.$set(button2_changes);
|
|
9494
|
-
const button3_changes = dirty[0] &
|
|
9567
|
+
const button3_changes = dirty[0] & 2375936 ? get_spread_update(button3_spread_levels, [
|
|
9495
9568
|
button3_spread_levels[0],
|
|
9569
|
+
dirty[0] & 256 && { active: ctx2[8] === "text" },
|
|
9496
9570
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
9497
9571
|
dirty[0] & 2097152 && { content: ctx2[21].text },
|
|
9498
9572
|
dirty[0] & 16384 && { menu: ctx2[14] }
|
|
@@ -9501,8 +9575,11 @@ function create_fragment57(ctx) {
|
|
|
9501
9575
|
button3_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9502
9576
|
}
|
|
9503
9577
|
button3.$set(button3_changes);
|
|
9504
|
-
const button4_changes = dirty[0] &
|
|
9578
|
+
const button4_changes = dirty[0] & 298752 ? get_spread_update(button4_spread_levels, [
|
|
9505
9579
|
button4_spread_levels[0],
|
|
9580
|
+
dirty[0] & 2816 && {
|
|
9581
|
+
active: ctx2[8] === ctx2[11] || ctx2[8] === "shape" && ctx2[9] === ctx2[11]
|
|
9582
|
+
},
|
|
9506
9583
|
dirty[0] & 262144 && get_spread_object(ctx2[18]),
|
|
9507
9584
|
dirty[0] & 1024 && { content: ctx2[10].shapes },
|
|
9508
9585
|
dirty[0] & 32768 && { menu: ctx2[15] }
|
|
@@ -9782,9 +9859,9 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9782
9859
|
let $top;
|
|
9783
9860
|
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);
|
|
9784
9861
|
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(39, $memberState = $$value)), memberState);
|
|
9785
|
-
let $
|
|
9862
|
+
let $stockedApps;
|
|
9786
9863
|
let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(23, $status = $$value)), status);
|
|
9787
|
-
component_subscribe($$self,
|
|
9864
|
+
component_subscribe($$self, stockedApps, ($$value) => $$invalidate(22, $stockedApps = $$value));
|
|
9788
9865
|
$$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
|
|
9789
9866
|
$$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
|
|
9790
9867
|
$$self.$$.on_destroy.push(() => $$unsubscribe_status());
|
|
@@ -9973,7 +10050,7 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
9973
10050
|
status,
|
|
9974
10051
|
memberState,
|
|
9975
10052
|
c,
|
|
9976
|
-
$
|
|
10053
|
+
$stockedApps,
|
|
9977
10054
|
$status,
|
|
9978
10055
|
top,
|
|
9979
10056
|
scroll_up,
|
|
@@ -10027,58 +10104,44 @@ var Contents_default = Contents;
|
|
|
10027
10104
|
|
|
10028
10105
|
// src/components/Toolbar/Toolbar.svelte
|
|
10029
10106
|
function create_else_block7(ctx) {
|
|
10030
|
-
let
|
|
10031
|
-
let path1;
|
|
10107
|
+
let path;
|
|
10032
10108
|
return {
|
|
10033
10109
|
c() {
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
attr(
|
|
10037
|
-
attr(
|
|
10038
|
-
attr(
|
|
10039
|
-
attr(
|
|
10040
|
-
attr(path1, "stroke", "none");
|
|
10041
|
-
attr(path1, "d", "M16 52v16l-8-8z");
|
|
10042
|
-
attr(path1, "class", name6 + "-handler-image-fill-color");
|
|
10110
|
+
path = svg_element("path");
|
|
10111
|
+
attr(path, "fill-rule", "evenodd");
|
|
10112
|
+
attr(path, "clip-rule", "evenodd");
|
|
10113
|
+
attr(path, "d", "M6 19L8 17V25L6 23L4 21L6 19ZM10 17H9V25H10V17Z");
|
|
10114
|
+
attr(path, "fill", "#fff");
|
|
10115
|
+
attr(path, "class", name6 + "-handler-image-fill-color");
|
|
10043
10116
|
},
|
|
10044
10117
|
m(target, anchor) {
|
|
10045
|
-
insert(target,
|
|
10046
|
-
insert(target, path1, anchor);
|
|
10118
|
+
insert(target, path, anchor);
|
|
10047
10119
|
},
|
|
10048
10120
|
p: noop,
|
|
10049
10121
|
d(detaching) {
|
|
10050
10122
|
if (detaching)
|
|
10051
|
-
detach(
|
|
10052
|
-
if (detaching)
|
|
10053
|
-
detach(path1);
|
|
10123
|
+
detach(path);
|
|
10054
10124
|
}
|
|
10055
10125
|
};
|
|
10056
10126
|
}
|
|
10057
10127
|
function create_if_block7(ctx) {
|
|
10058
|
-
let
|
|
10059
|
-
let path1;
|
|
10128
|
+
let path;
|
|
10060
10129
|
return {
|
|
10061
10130
|
c() {
|
|
10062
|
-
|
|
10063
|
-
|
|
10064
|
-
attr(
|
|
10065
|
-
attr(
|
|
10066
|
-
attr(
|
|
10067
|
-
attr(
|
|
10068
|
-
attr(path1, "stroke", "none");
|
|
10069
|
-
attr(path1, "d", "M14 52v16l8-8z");
|
|
10070
|
-
attr(path1, "class", name6 + "-handler-image-fill-color");
|
|
10131
|
+
path = svg_element("path");
|
|
10132
|
+
attr(path, "fill-rule", "evenodd");
|
|
10133
|
+
attr(path, "clip-rule", "evenodd");
|
|
10134
|
+
attr(path, "d", "M8 19L6 17V25L8 23L10 21L8 19ZM4 17H5V25H4V17Z");
|
|
10135
|
+
attr(path, "fill", "#fff");
|
|
10136
|
+
attr(path, "class", name6 + "-handler-image-fill-color");
|
|
10071
10137
|
},
|
|
10072
10138
|
m(target, anchor) {
|
|
10073
|
-
insert(target,
|
|
10074
|
-
insert(target, path1, anchor);
|
|
10139
|
+
insert(target, path, anchor);
|
|
10075
10140
|
},
|
|
10076
10141
|
p: noop,
|
|
10077
10142
|
d(detaching) {
|
|
10078
10143
|
if (detaching)
|
|
10079
|
-
detach(
|
|
10080
|
-
if (detaching)
|
|
10081
|
-
detach(path1);
|
|
10144
|
+
detach(path);
|
|
10082
10145
|
}
|
|
10083
10146
|
};
|
|
10084
10147
|
}
|
|
@@ -10092,8 +10155,7 @@ function create_fragment58(ctx) {
|
|
|
10092
10155
|
let input;
|
|
10093
10156
|
let t1;
|
|
10094
10157
|
let svg;
|
|
10095
|
-
let
|
|
10096
|
-
let path1;
|
|
10158
|
+
let path;
|
|
10097
10159
|
let label_class_value;
|
|
10098
10160
|
let div1_class_value;
|
|
10099
10161
|
let current;
|
|
@@ -10129,8 +10191,7 @@ function create_fragment58(ctx) {
|
|
|
10129
10191
|
input = element("input");
|
|
10130
10192
|
t1 = space();
|
|
10131
10193
|
svg = svg_element("svg");
|
|
10132
|
-
|
|
10133
|
-
path1 = svg_element("path");
|
|
10194
|
+
path = svg_element("path");
|
|
10134
10195
|
if_block.c();
|
|
10135
10196
|
attr(div0, "class", div0_class_value = name6 + "-contents " + ctx[1]);
|
|
10136
10197
|
set_style(
|
|
@@ -10140,16 +10201,14 @@ function create_fragment58(ctx) {
|
|
|
10140
10201
|
false
|
|
10141
10202
|
);
|
|
10142
10203
|
attr(input, "type", "checkbox");
|
|
10143
|
-
attr(
|
|
10144
|
-
attr(
|
|
10145
|
-
attr(
|
|
10146
|
-
attr(
|
|
10147
|
-
attr(
|
|
10148
|
-
attr(
|
|
10149
|
-
attr(
|
|
10204
|
+
attr(path, "d", "M0 41H12C14.2091 41 16 39.2091 16 37V5C16 2.79086 14.2091 1 12 1H0");
|
|
10205
|
+
attr(path, "stroke", "#000");
|
|
10206
|
+
attr(path, "fill", "#fff");
|
|
10207
|
+
attr(path, "class", name6 + "-handler-border-color " + name6 + "-handler-bg-color");
|
|
10208
|
+
attr(svg, "width", "17");
|
|
10209
|
+
attr(svg, "height", "42");
|
|
10210
|
+
attr(svg, "viewBox", "0 0 17 42");
|
|
10150
10211
|
attr(svg, "fill", "none");
|
|
10151
|
-
attr(svg, "stroke-width", "2");
|
|
10152
|
-
attr(svg, "viewBox", "0 0 32 120");
|
|
10153
10212
|
attr(label, "class", label_class_value = name6 + "-handler " + ctx[1]);
|
|
10154
10213
|
attr(div1, "class", div1_class_value = name6 + " " + ctx[1]);
|
|
10155
10214
|
toggle_class(div1, "collapsed", ctx[3]);
|
|
@@ -10164,8 +10223,7 @@ function create_fragment58(ctx) {
|
|
|
10164
10223
|
input.checked = ctx[3];
|
|
10165
10224
|
append(label, t1);
|
|
10166
10225
|
append(label, svg);
|
|
10167
|
-
append(svg,
|
|
10168
|
-
append(svg, path1);
|
|
10226
|
+
append(svg, path);
|
|
10169
10227
|
if_block.m(svg, null);
|
|
10170
10228
|
current = true;
|
|
10171
10229
|
if (!mounted) {
|
|
@@ -12017,5 +12075,5 @@ function createReplayUI(player, div) {
|
|
|
12017
12075
|
return ui;
|
|
12018
12076
|
}
|
|
12019
12077
|
|
|
12020
|
-
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,
|
|
12078
|
+
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 };
|
|
12021
12079
|
//# sourceMappingURL=index.mjs.map
|