@netless/fastboard-ui 1.0.0-canary.10 → 1.0.0-canary.11
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.js +71 -71
- package/dist/index.mjs +71 -71
- package/dist/index.svelte.mjs +71 -71
- package/package.json +3 -3
- package/src/components/Toolbar/components/Contents.svelte +13 -13
package/dist/index.js
CHANGED
|
@@ -11210,18 +11210,16 @@ function create_if_block6(ctx) {
|
|
|
11210
11210
|
{
|
|
11211
11211
|
active: (
|
|
11212
11212
|
/*appliance*/
|
|
11213
|
-
ctx[9] === "
|
|
11213
|
+
ctx[9] === "eraser"
|
|
11214
11214
|
)
|
|
11215
11215
|
},
|
|
11216
11216
|
/*btn_props*/
|
|
11217
11217
|
ctx[19],
|
|
11218
11218
|
{ placement: "top" },
|
|
11219
|
-
{
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
)
|
|
11224
|
-
}
|
|
11219
|
+
{ content: (
|
|
11220
|
+
/*c*/
|
|
11221
|
+
ctx[23].eraserForPanel
|
|
11222
|
+
) }
|
|
11225
11223
|
];
|
|
11226
11224
|
let button0_props = {
|
|
11227
11225
|
$$slots: { default: [create_default_slot_24] },
|
|
@@ -11233,24 +11231,26 @@ function create_if_block6(ctx) {
|
|
|
11233
11231
|
button0 = new Button_default({ props: button0_props });
|
|
11234
11232
|
button0.$on(
|
|
11235
11233
|
"click",
|
|
11236
|
-
/*
|
|
11237
|
-
ctx[
|
|
11234
|
+
/*select_eraser*/
|
|
11235
|
+
ctx[37]
|
|
11238
11236
|
);
|
|
11239
11237
|
const button1_spread_levels = [
|
|
11240
11238
|
{ class: "eraser" },
|
|
11241
11239
|
{
|
|
11242
11240
|
active: (
|
|
11243
11241
|
/*appliance*/
|
|
11244
|
-
ctx[9] === "
|
|
11242
|
+
ctx[9] === "pencilEraser"
|
|
11245
11243
|
)
|
|
11246
11244
|
},
|
|
11247
11245
|
/*btn_props*/
|
|
11248
11246
|
ctx[19],
|
|
11249
11247
|
{ placement: "top" },
|
|
11250
|
-
{
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11248
|
+
{
|
|
11249
|
+
content: (
|
|
11250
|
+
/*c*/
|
|
11251
|
+
ctx[23].pencilEraserForPanel
|
|
11252
|
+
)
|
|
11253
|
+
}
|
|
11254
11254
|
];
|
|
11255
11255
|
let button1_props = {
|
|
11256
11256
|
$$slots: { default: [create_default_slot_17] },
|
|
@@ -11262,8 +11262,8 @@ function create_if_block6(ctx) {
|
|
|
11262
11262
|
button1 = new Button_default({ props: button1_props });
|
|
11263
11263
|
button1.$on(
|
|
11264
11264
|
"click",
|
|
11265
|
-
/*
|
|
11266
|
-
ctx[
|
|
11265
|
+
/*select_pencil_eraser*/
|
|
11266
|
+
ctx[38]
|
|
11267
11267
|
);
|
|
11268
11268
|
const button2_spread_levels = [
|
|
11269
11269
|
{ class: "clear" },
|
|
@@ -11327,7 +11327,7 @@ function create_if_block6(ctx) {
|
|
|
11327
11327
|
512 && {
|
|
11328
11328
|
active: (
|
|
11329
11329
|
/*appliance*/
|
|
11330
|
-
ctx2[9] === "
|
|
11330
|
+
ctx2[9] === "eraser"
|
|
11331
11331
|
)
|
|
11332
11332
|
},
|
|
11333
11333
|
dirty[0] & /*btn_props*/
|
|
@@ -11337,12 +11337,10 @@ function create_if_block6(ctx) {
|
|
|
11337
11337
|
),
|
|
11338
11338
|
button0_spread_levels[3],
|
|
11339
11339
|
dirty[0] & /*c*/
|
|
11340
|
-
8388608 && {
|
|
11341
|
-
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
)
|
|
11345
|
-
}
|
|
11340
|
+
8388608 && { content: (
|
|
11341
|
+
/*c*/
|
|
11342
|
+
ctx2[23].eraserForPanel
|
|
11343
|
+
) }
|
|
11346
11344
|
]) : {};
|
|
11347
11345
|
if (dirty[0] & /*theme, appliance*/
|
|
11348
11346
|
514 | dirty[1] & /*$$scope*/
|
|
@@ -11357,7 +11355,7 @@ function create_if_block6(ctx) {
|
|
|
11357
11355
|
512 && {
|
|
11358
11356
|
active: (
|
|
11359
11357
|
/*appliance*/
|
|
11360
|
-
ctx2[9] === "
|
|
11358
|
+
ctx2[9] === "pencilEraser"
|
|
11361
11359
|
)
|
|
11362
11360
|
},
|
|
11363
11361
|
dirty[0] & /*btn_props*/
|
|
@@ -11367,10 +11365,12 @@ function create_if_block6(ctx) {
|
|
|
11367
11365
|
),
|
|
11368
11366
|
button1_spread_levels[3],
|
|
11369
11367
|
dirty[0] & /*c*/
|
|
11370
|
-
8388608 && {
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11368
|
+
8388608 && {
|
|
11369
|
+
content: (
|
|
11370
|
+
/*c*/
|
|
11371
|
+
ctx2[23].pencilEraserForPanel
|
|
11372
|
+
)
|
|
11373
|
+
}
|
|
11374
11374
|
]) : {};
|
|
11375
11375
|
if (dirty[0] & /*theme, appliance*/
|
|
11376
11376
|
514 | dirty[1] & /*$$scope*/
|
|
@@ -11551,47 +11551,47 @@ function create_if_block_4(ctx) {
|
|
|
11551
11551
|
};
|
|
11552
11552
|
}
|
|
11553
11553
|
function create_else_block_12(ctx) {
|
|
11554
|
-
let
|
|
11554
|
+
let icons_eraser;
|
|
11555
11555
|
let current;
|
|
11556
|
-
|
|
11556
|
+
icons_eraser = new Icons_default.Eraser({ props: { theme: (
|
|
11557
11557
|
/*theme*/
|
|
11558
11558
|
ctx[1]
|
|
11559
11559
|
) } });
|
|
11560
11560
|
return {
|
|
11561
11561
|
c() {
|
|
11562
|
-
create_component(
|
|
11562
|
+
create_component(icons_eraser.$$.fragment);
|
|
11563
11563
|
},
|
|
11564
11564
|
m(target, anchor) {
|
|
11565
|
-
mount_component(
|
|
11565
|
+
mount_component(icons_eraser, target, anchor);
|
|
11566
11566
|
current = true;
|
|
11567
11567
|
},
|
|
11568
11568
|
p(ctx2, dirty) {
|
|
11569
|
-
const
|
|
11569
|
+
const icons_eraser_changes = {};
|
|
11570
11570
|
if (dirty[0] & /*theme*/
|
|
11571
11571
|
2)
|
|
11572
|
-
|
|
11572
|
+
icons_eraser_changes.theme = /*theme*/
|
|
11573
11573
|
ctx2[1];
|
|
11574
|
-
|
|
11574
|
+
icons_eraser.$set(icons_eraser_changes);
|
|
11575
11575
|
},
|
|
11576
11576
|
i(local) {
|
|
11577
11577
|
if (current)
|
|
11578
11578
|
return;
|
|
11579
|
-
transition_in(
|
|
11579
|
+
transition_in(icons_eraser.$$.fragment, local);
|
|
11580
11580
|
current = true;
|
|
11581
11581
|
},
|
|
11582
11582
|
o(local) {
|
|
11583
|
-
transition_out(
|
|
11583
|
+
transition_out(icons_eraser.$$.fragment, local);
|
|
11584
11584
|
current = false;
|
|
11585
11585
|
},
|
|
11586
11586
|
d(detaching) {
|
|
11587
|
-
destroy_component(
|
|
11587
|
+
destroy_component(icons_eraser, detaching);
|
|
11588
11588
|
}
|
|
11589
11589
|
};
|
|
11590
11590
|
}
|
|
11591
11591
|
function create_if_block_3(ctx) {
|
|
11592
|
-
let
|
|
11592
|
+
let icons_eraserfilled;
|
|
11593
11593
|
let current;
|
|
11594
|
-
|
|
11594
|
+
icons_eraserfilled = new Icons_default.EraserFilled({
|
|
11595
11595
|
props: { theme: (
|
|
11596
11596
|
/*theme*/
|
|
11597
11597
|
ctx[1]
|
|
@@ -11599,32 +11599,32 @@ function create_if_block_3(ctx) {
|
|
|
11599
11599
|
});
|
|
11600
11600
|
return {
|
|
11601
11601
|
c() {
|
|
11602
|
-
create_component(
|
|
11602
|
+
create_component(icons_eraserfilled.$$.fragment);
|
|
11603
11603
|
},
|
|
11604
11604
|
m(target, anchor) {
|
|
11605
|
-
mount_component(
|
|
11605
|
+
mount_component(icons_eraserfilled, target, anchor);
|
|
11606
11606
|
current = true;
|
|
11607
11607
|
},
|
|
11608
11608
|
p(ctx2, dirty) {
|
|
11609
|
-
const
|
|
11609
|
+
const icons_eraserfilled_changes = {};
|
|
11610
11610
|
if (dirty[0] & /*theme*/
|
|
11611
11611
|
2)
|
|
11612
|
-
|
|
11612
|
+
icons_eraserfilled_changes.theme = /*theme*/
|
|
11613
11613
|
ctx2[1];
|
|
11614
|
-
|
|
11614
|
+
icons_eraserfilled.$set(icons_eraserfilled_changes);
|
|
11615
11615
|
},
|
|
11616
11616
|
i(local) {
|
|
11617
11617
|
if (current)
|
|
11618
11618
|
return;
|
|
11619
|
-
transition_in(
|
|
11619
|
+
transition_in(icons_eraserfilled.$$.fragment, local);
|
|
11620
11620
|
current = true;
|
|
11621
11621
|
},
|
|
11622
11622
|
o(local) {
|
|
11623
|
-
transition_out(
|
|
11623
|
+
transition_out(icons_eraserfilled.$$.fragment, local);
|
|
11624
11624
|
current = false;
|
|
11625
11625
|
},
|
|
11626
11626
|
d(detaching) {
|
|
11627
|
-
destroy_component(
|
|
11627
|
+
destroy_component(icons_eraserfilled, detaching);
|
|
11628
11628
|
}
|
|
11629
11629
|
};
|
|
11630
11630
|
}
|
|
@@ -11638,7 +11638,7 @@ function create_default_slot_24(ctx) {
|
|
|
11638
11638
|
function select_block_type_10(ctx2, dirty) {
|
|
11639
11639
|
if (
|
|
11640
11640
|
/*appliance*/
|
|
11641
|
-
ctx2[9] === "
|
|
11641
|
+
ctx2[9] === "eraser"
|
|
11642
11642
|
)
|
|
11643
11643
|
return 0;
|
|
11644
11644
|
return 1;
|
|
@@ -11695,47 +11695,47 @@ function create_default_slot_24(ctx) {
|
|
|
11695
11695
|
};
|
|
11696
11696
|
}
|
|
11697
11697
|
function create_else_block6(ctx) {
|
|
11698
|
-
let
|
|
11698
|
+
let icons_pencileraser;
|
|
11699
11699
|
let current;
|
|
11700
|
-
|
|
11700
|
+
icons_pencileraser = new Icons_default.PencilEraser({ props: { theme: (
|
|
11701
11701
|
/*theme*/
|
|
11702
11702
|
ctx[1]
|
|
11703
11703
|
) } });
|
|
11704
11704
|
return {
|
|
11705
11705
|
c() {
|
|
11706
|
-
create_component(
|
|
11706
|
+
create_component(icons_pencileraser.$$.fragment);
|
|
11707
11707
|
},
|
|
11708
11708
|
m(target, anchor) {
|
|
11709
|
-
mount_component(
|
|
11709
|
+
mount_component(icons_pencileraser, target, anchor);
|
|
11710
11710
|
current = true;
|
|
11711
11711
|
},
|
|
11712
11712
|
p(ctx2, dirty) {
|
|
11713
|
-
const
|
|
11713
|
+
const icons_pencileraser_changes = {};
|
|
11714
11714
|
if (dirty[0] & /*theme*/
|
|
11715
11715
|
2)
|
|
11716
|
-
|
|
11716
|
+
icons_pencileraser_changes.theme = /*theme*/
|
|
11717
11717
|
ctx2[1];
|
|
11718
|
-
|
|
11718
|
+
icons_pencileraser.$set(icons_pencileraser_changes);
|
|
11719
11719
|
},
|
|
11720
11720
|
i(local) {
|
|
11721
11721
|
if (current)
|
|
11722
11722
|
return;
|
|
11723
|
-
transition_in(
|
|
11723
|
+
transition_in(icons_pencileraser.$$.fragment, local);
|
|
11724
11724
|
current = true;
|
|
11725
11725
|
},
|
|
11726
11726
|
o(local) {
|
|
11727
|
-
transition_out(
|
|
11727
|
+
transition_out(icons_pencileraser.$$.fragment, local);
|
|
11728
11728
|
current = false;
|
|
11729
11729
|
},
|
|
11730
11730
|
d(detaching) {
|
|
11731
|
-
destroy_component(
|
|
11731
|
+
destroy_component(icons_pencileraser, detaching);
|
|
11732
11732
|
}
|
|
11733
11733
|
};
|
|
11734
11734
|
}
|
|
11735
11735
|
function create_if_block_2(ctx) {
|
|
11736
|
-
let
|
|
11736
|
+
let icons_pencileraserfilled;
|
|
11737
11737
|
let current;
|
|
11738
|
-
|
|
11738
|
+
icons_pencileraserfilled = new Icons_default.PencilEraserFilled({
|
|
11739
11739
|
props: { theme: (
|
|
11740
11740
|
/*theme*/
|
|
11741
11741
|
ctx[1]
|
|
@@ -11743,32 +11743,32 @@ function create_if_block_2(ctx) {
|
|
|
11743
11743
|
});
|
|
11744
11744
|
return {
|
|
11745
11745
|
c() {
|
|
11746
|
-
create_component(
|
|
11746
|
+
create_component(icons_pencileraserfilled.$$.fragment);
|
|
11747
11747
|
},
|
|
11748
11748
|
m(target, anchor) {
|
|
11749
|
-
mount_component(
|
|
11749
|
+
mount_component(icons_pencileraserfilled, target, anchor);
|
|
11750
11750
|
current = true;
|
|
11751
11751
|
},
|
|
11752
11752
|
p(ctx2, dirty) {
|
|
11753
|
-
const
|
|
11753
|
+
const icons_pencileraserfilled_changes = {};
|
|
11754
11754
|
if (dirty[0] & /*theme*/
|
|
11755
11755
|
2)
|
|
11756
|
-
|
|
11756
|
+
icons_pencileraserfilled_changes.theme = /*theme*/
|
|
11757
11757
|
ctx2[1];
|
|
11758
|
-
|
|
11758
|
+
icons_pencileraserfilled.$set(icons_pencileraserfilled_changes);
|
|
11759
11759
|
},
|
|
11760
11760
|
i(local) {
|
|
11761
11761
|
if (current)
|
|
11762
11762
|
return;
|
|
11763
|
-
transition_in(
|
|
11763
|
+
transition_in(icons_pencileraserfilled.$$.fragment, local);
|
|
11764
11764
|
current = true;
|
|
11765
11765
|
},
|
|
11766
11766
|
o(local) {
|
|
11767
|
-
transition_out(
|
|
11767
|
+
transition_out(icons_pencileraserfilled.$$.fragment, local);
|
|
11768
11768
|
current = false;
|
|
11769
11769
|
},
|
|
11770
11770
|
d(detaching) {
|
|
11771
|
-
destroy_component(
|
|
11771
|
+
destroy_component(icons_pencileraserfilled, detaching);
|
|
11772
11772
|
}
|
|
11773
11773
|
};
|
|
11774
11774
|
}
|
|
@@ -11782,7 +11782,7 @@ function create_default_slot_17(ctx) {
|
|
|
11782
11782
|
function select_block_type_11(ctx2, dirty) {
|
|
11783
11783
|
if (
|
|
11784
11784
|
/*appliance*/
|
|
11785
|
-
ctx2[9] === "
|
|
11785
|
+
ctx2[9] === "pencilEraser"
|
|
11786
11786
|
)
|
|
11787
11787
|
return 0;
|
|
11788
11788
|
return 1;
|
|
@@ -13175,7 +13175,7 @@ function instance59($$self, $$props, $$invalidate) {
|
|
|
13175
13175
|
let { hide_apps = false } = $$props;
|
|
13176
13176
|
let { eraser_type = "both" } = $$props;
|
|
13177
13177
|
let last_shape = "rectangle";
|
|
13178
|
-
let last_eraser = "
|
|
13178
|
+
let last_eraser = "eraser";
|
|
13179
13179
|
let pencil_panel;
|
|
13180
13180
|
let text_panel;
|
|
13181
13181
|
let shapes_panel;
|
package/dist/index.mjs
CHANGED
|
@@ -11165,18 +11165,16 @@ function create_if_block6(ctx) {
|
|
|
11165
11165
|
{
|
|
11166
11166
|
active: (
|
|
11167
11167
|
/*appliance*/
|
|
11168
|
-
ctx[9] === "
|
|
11168
|
+
ctx[9] === "eraser"
|
|
11169
11169
|
)
|
|
11170
11170
|
},
|
|
11171
11171
|
/*btn_props*/
|
|
11172
11172
|
ctx[19],
|
|
11173
11173
|
{ placement: "top" },
|
|
11174
|
-
{
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11178
|
-
)
|
|
11179
|
-
}
|
|
11174
|
+
{ content: (
|
|
11175
|
+
/*c*/
|
|
11176
|
+
ctx[23].eraserForPanel
|
|
11177
|
+
) }
|
|
11180
11178
|
];
|
|
11181
11179
|
let button0_props = {
|
|
11182
11180
|
$$slots: { default: [create_default_slot_24] },
|
|
@@ -11188,24 +11186,26 @@ function create_if_block6(ctx) {
|
|
|
11188
11186
|
button0 = new Button_default({ props: button0_props });
|
|
11189
11187
|
button0.$on(
|
|
11190
11188
|
"click",
|
|
11191
|
-
/*
|
|
11192
|
-
ctx[
|
|
11189
|
+
/*select_eraser*/
|
|
11190
|
+
ctx[37]
|
|
11193
11191
|
);
|
|
11194
11192
|
const button1_spread_levels = [
|
|
11195
11193
|
{ class: "eraser" },
|
|
11196
11194
|
{
|
|
11197
11195
|
active: (
|
|
11198
11196
|
/*appliance*/
|
|
11199
|
-
ctx[9] === "
|
|
11197
|
+
ctx[9] === "pencilEraser"
|
|
11200
11198
|
)
|
|
11201
11199
|
},
|
|
11202
11200
|
/*btn_props*/
|
|
11203
11201
|
ctx[19],
|
|
11204
11202
|
{ placement: "top" },
|
|
11205
|
-
{
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
|
|
11203
|
+
{
|
|
11204
|
+
content: (
|
|
11205
|
+
/*c*/
|
|
11206
|
+
ctx[23].pencilEraserForPanel
|
|
11207
|
+
)
|
|
11208
|
+
}
|
|
11209
11209
|
];
|
|
11210
11210
|
let button1_props = {
|
|
11211
11211
|
$$slots: { default: [create_default_slot_17] },
|
|
@@ -11217,8 +11217,8 @@ function create_if_block6(ctx) {
|
|
|
11217
11217
|
button1 = new Button_default({ props: button1_props });
|
|
11218
11218
|
button1.$on(
|
|
11219
11219
|
"click",
|
|
11220
|
-
/*
|
|
11221
|
-
ctx[
|
|
11220
|
+
/*select_pencil_eraser*/
|
|
11221
|
+
ctx[38]
|
|
11222
11222
|
);
|
|
11223
11223
|
const button2_spread_levels = [
|
|
11224
11224
|
{ class: "clear" },
|
|
@@ -11282,7 +11282,7 @@ function create_if_block6(ctx) {
|
|
|
11282
11282
|
512 && {
|
|
11283
11283
|
active: (
|
|
11284
11284
|
/*appliance*/
|
|
11285
|
-
ctx2[9] === "
|
|
11285
|
+
ctx2[9] === "eraser"
|
|
11286
11286
|
)
|
|
11287
11287
|
},
|
|
11288
11288
|
dirty[0] & /*btn_props*/
|
|
@@ -11292,12 +11292,10 @@ function create_if_block6(ctx) {
|
|
|
11292
11292
|
),
|
|
11293
11293
|
button0_spread_levels[3],
|
|
11294
11294
|
dirty[0] & /*c*/
|
|
11295
|
-
8388608 && {
|
|
11296
|
-
|
|
11297
|
-
|
|
11298
|
-
|
|
11299
|
-
)
|
|
11300
|
-
}
|
|
11295
|
+
8388608 && { content: (
|
|
11296
|
+
/*c*/
|
|
11297
|
+
ctx2[23].eraserForPanel
|
|
11298
|
+
) }
|
|
11301
11299
|
]) : {};
|
|
11302
11300
|
if (dirty[0] & /*theme, appliance*/
|
|
11303
11301
|
514 | dirty[1] & /*$$scope*/
|
|
@@ -11312,7 +11310,7 @@ function create_if_block6(ctx) {
|
|
|
11312
11310
|
512 && {
|
|
11313
11311
|
active: (
|
|
11314
11312
|
/*appliance*/
|
|
11315
|
-
ctx2[9] === "
|
|
11313
|
+
ctx2[9] === "pencilEraser"
|
|
11316
11314
|
)
|
|
11317
11315
|
},
|
|
11318
11316
|
dirty[0] & /*btn_props*/
|
|
@@ -11322,10 +11320,12 @@ function create_if_block6(ctx) {
|
|
|
11322
11320
|
),
|
|
11323
11321
|
button1_spread_levels[3],
|
|
11324
11322
|
dirty[0] & /*c*/
|
|
11325
|
-
8388608 && {
|
|
11326
|
-
|
|
11327
|
-
|
|
11328
|
-
|
|
11323
|
+
8388608 && {
|
|
11324
|
+
content: (
|
|
11325
|
+
/*c*/
|
|
11326
|
+
ctx2[23].pencilEraserForPanel
|
|
11327
|
+
)
|
|
11328
|
+
}
|
|
11329
11329
|
]) : {};
|
|
11330
11330
|
if (dirty[0] & /*theme, appliance*/
|
|
11331
11331
|
514 | dirty[1] & /*$$scope*/
|
|
@@ -11506,47 +11506,47 @@ function create_if_block_4(ctx) {
|
|
|
11506
11506
|
};
|
|
11507
11507
|
}
|
|
11508
11508
|
function create_else_block_12(ctx) {
|
|
11509
|
-
let
|
|
11509
|
+
let icons_eraser;
|
|
11510
11510
|
let current;
|
|
11511
|
-
|
|
11511
|
+
icons_eraser = new Icons_default.Eraser({ props: { theme: (
|
|
11512
11512
|
/*theme*/
|
|
11513
11513
|
ctx[1]
|
|
11514
11514
|
) } });
|
|
11515
11515
|
return {
|
|
11516
11516
|
c() {
|
|
11517
|
-
create_component(
|
|
11517
|
+
create_component(icons_eraser.$$.fragment);
|
|
11518
11518
|
},
|
|
11519
11519
|
m(target, anchor) {
|
|
11520
|
-
mount_component(
|
|
11520
|
+
mount_component(icons_eraser, target, anchor);
|
|
11521
11521
|
current = true;
|
|
11522
11522
|
},
|
|
11523
11523
|
p(ctx2, dirty) {
|
|
11524
|
-
const
|
|
11524
|
+
const icons_eraser_changes = {};
|
|
11525
11525
|
if (dirty[0] & /*theme*/
|
|
11526
11526
|
2)
|
|
11527
|
-
|
|
11527
|
+
icons_eraser_changes.theme = /*theme*/
|
|
11528
11528
|
ctx2[1];
|
|
11529
|
-
|
|
11529
|
+
icons_eraser.$set(icons_eraser_changes);
|
|
11530
11530
|
},
|
|
11531
11531
|
i(local) {
|
|
11532
11532
|
if (current)
|
|
11533
11533
|
return;
|
|
11534
|
-
transition_in(
|
|
11534
|
+
transition_in(icons_eraser.$$.fragment, local);
|
|
11535
11535
|
current = true;
|
|
11536
11536
|
},
|
|
11537
11537
|
o(local) {
|
|
11538
|
-
transition_out(
|
|
11538
|
+
transition_out(icons_eraser.$$.fragment, local);
|
|
11539
11539
|
current = false;
|
|
11540
11540
|
},
|
|
11541
11541
|
d(detaching) {
|
|
11542
|
-
destroy_component(
|
|
11542
|
+
destroy_component(icons_eraser, detaching);
|
|
11543
11543
|
}
|
|
11544
11544
|
};
|
|
11545
11545
|
}
|
|
11546
11546
|
function create_if_block_3(ctx) {
|
|
11547
|
-
let
|
|
11547
|
+
let icons_eraserfilled;
|
|
11548
11548
|
let current;
|
|
11549
|
-
|
|
11549
|
+
icons_eraserfilled = new Icons_default.EraserFilled({
|
|
11550
11550
|
props: { theme: (
|
|
11551
11551
|
/*theme*/
|
|
11552
11552
|
ctx[1]
|
|
@@ -11554,32 +11554,32 @@ function create_if_block_3(ctx) {
|
|
|
11554
11554
|
});
|
|
11555
11555
|
return {
|
|
11556
11556
|
c() {
|
|
11557
|
-
create_component(
|
|
11557
|
+
create_component(icons_eraserfilled.$$.fragment);
|
|
11558
11558
|
},
|
|
11559
11559
|
m(target, anchor) {
|
|
11560
|
-
mount_component(
|
|
11560
|
+
mount_component(icons_eraserfilled, target, anchor);
|
|
11561
11561
|
current = true;
|
|
11562
11562
|
},
|
|
11563
11563
|
p(ctx2, dirty) {
|
|
11564
|
-
const
|
|
11564
|
+
const icons_eraserfilled_changes = {};
|
|
11565
11565
|
if (dirty[0] & /*theme*/
|
|
11566
11566
|
2)
|
|
11567
|
-
|
|
11567
|
+
icons_eraserfilled_changes.theme = /*theme*/
|
|
11568
11568
|
ctx2[1];
|
|
11569
|
-
|
|
11569
|
+
icons_eraserfilled.$set(icons_eraserfilled_changes);
|
|
11570
11570
|
},
|
|
11571
11571
|
i(local) {
|
|
11572
11572
|
if (current)
|
|
11573
11573
|
return;
|
|
11574
|
-
transition_in(
|
|
11574
|
+
transition_in(icons_eraserfilled.$$.fragment, local);
|
|
11575
11575
|
current = true;
|
|
11576
11576
|
},
|
|
11577
11577
|
o(local) {
|
|
11578
|
-
transition_out(
|
|
11578
|
+
transition_out(icons_eraserfilled.$$.fragment, local);
|
|
11579
11579
|
current = false;
|
|
11580
11580
|
},
|
|
11581
11581
|
d(detaching) {
|
|
11582
|
-
destroy_component(
|
|
11582
|
+
destroy_component(icons_eraserfilled, detaching);
|
|
11583
11583
|
}
|
|
11584
11584
|
};
|
|
11585
11585
|
}
|
|
@@ -11593,7 +11593,7 @@ function create_default_slot_24(ctx) {
|
|
|
11593
11593
|
function select_block_type_10(ctx2, dirty) {
|
|
11594
11594
|
if (
|
|
11595
11595
|
/*appliance*/
|
|
11596
|
-
ctx2[9] === "
|
|
11596
|
+
ctx2[9] === "eraser"
|
|
11597
11597
|
)
|
|
11598
11598
|
return 0;
|
|
11599
11599
|
return 1;
|
|
@@ -11650,47 +11650,47 @@ function create_default_slot_24(ctx) {
|
|
|
11650
11650
|
};
|
|
11651
11651
|
}
|
|
11652
11652
|
function create_else_block6(ctx) {
|
|
11653
|
-
let
|
|
11653
|
+
let icons_pencileraser;
|
|
11654
11654
|
let current;
|
|
11655
|
-
|
|
11655
|
+
icons_pencileraser = new Icons_default.PencilEraser({ props: { theme: (
|
|
11656
11656
|
/*theme*/
|
|
11657
11657
|
ctx[1]
|
|
11658
11658
|
) } });
|
|
11659
11659
|
return {
|
|
11660
11660
|
c() {
|
|
11661
|
-
create_component(
|
|
11661
|
+
create_component(icons_pencileraser.$$.fragment);
|
|
11662
11662
|
},
|
|
11663
11663
|
m(target, anchor) {
|
|
11664
|
-
mount_component(
|
|
11664
|
+
mount_component(icons_pencileraser, target, anchor);
|
|
11665
11665
|
current = true;
|
|
11666
11666
|
},
|
|
11667
11667
|
p(ctx2, dirty) {
|
|
11668
|
-
const
|
|
11668
|
+
const icons_pencileraser_changes = {};
|
|
11669
11669
|
if (dirty[0] & /*theme*/
|
|
11670
11670
|
2)
|
|
11671
|
-
|
|
11671
|
+
icons_pencileraser_changes.theme = /*theme*/
|
|
11672
11672
|
ctx2[1];
|
|
11673
|
-
|
|
11673
|
+
icons_pencileraser.$set(icons_pencileraser_changes);
|
|
11674
11674
|
},
|
|
11675
11675
|
i(local) {
|
|
11676
11676
|
if (current)
|
|
11677
11677
|
return;
|
|
11678
|
-
transition_in(
|
|
11678
|
+
transition_in(icons_pencileraser.$$.fragment, local);
|
|
11679
11679
|
current = true;
|
|
11680
11680
|
},
|
|
11681
11681
|
o(local) {
|
|
11682
|
-
transition_out(
|
|
11682
|
+
transition_out(icons_pencileraser.$$.fragment, local);
|
|
11683
11683
|
current = false;
|
|
11684
11684
|
},
|
|
11685
11685
|
d(detaching) {
|
|
11686
|
-
destroy_component(
|
|
11686
|
+
destroy_component(icons_pencileraser, detaching);
|
|
11687
11687
|
}
|
|
11688
11688
|
};
|
|
11689
11689
|
}
|
|
11690
11690
|
function create_if_block_2(ctx) {
|
|
11691
|
-
let
|
|
11691
|
+
let icons_pencileraserfilled;
|
|
11692
11692
|
let current;
|
|
11693
|
-
|
|
11693
|
+
icons_pencileraserfilled = new Icons_default.PencilEraserFilled({
|
|
11694
11694
|
props: { theme: (
|
|
11695
11695
|
/*theme*/
|
|
11696
11696
|
ctx[1]
|
|
@@ -11698,32 +11698,32 @@ function create_if_block_2(ctx) {
|
|
|
11698
11698
|
});
|
|
11699
11699
|
return {
|
|
11700
11700
|
c() {
|
|
11701
|
-
create_component(
|
|
11701
|
+
create_component(icons_pencileraserfilled.$$.fragment);
|
|
11702
11702
|
},
|
|
11703
11703
|
m(target, anchor) {
|
|
11704
|
-
mount_component(
|
|
11704
|
+
mount_component(icons_pencileraserfilled, target, anchor);
|
|
11705
11705
|
current = true;
|
|
11706
11706
|
},
|
|
11707
11707
|
p(ctx2, dirty) {
|
|
11708
|
-
const
|
|
11708
|
+
const icons_pencileraserfilled_changes = {};
|
|
11709
11709
|
if (dirty[0] & /*theme*/
|
|
11710
11710
|
2)
|
|
11711
|
-
|
|
11711
|
+
icons_pencileraserfilled_changes.theme = /*theme*/
|
|
11712
11712
|
ctx2[1];
|
|
11713
|
-
|
|
11713
|
+
icons_pencileraserfilled.$set(icons_pencileraserfilled_changes);
|
|
11714
11714
|
},
|
|
11715
11715
|
i(local) {
|
|
11716
11716
|
if (current)
|
|
11717
11717
|
return;
|
|
11718
|
-
transition_in(
|
|
11718
|
+
transition_in(icons_pencileraserfilled.$$.fragment, local);
|
|
11719
11719
|
current = true;
|
|
11720
11720
|
},
|
|
11721
11721
|
o(local) {
|
|
11722
|
-
transition_out(
|
|
11722
|
+
transition_out(icons_pencileraserfilled.$$.fragment, local);
|
|
11723
11723
|
current = false;
|
|
11724
11724
|
},
|
|
11725
11725
|
d(detaching) {
|
|
11726
|
-
destroy_component(
|
|
11726
|
+
destroy_component(icons_pencileraserfilled, detaching);
|
|
11727
11727
|
}
|
|
11728
11728
|
};
|
|
11729
11729
|
}
|
|
@@ -11737,7 +11737,7 @@ function create_default_slot_17(ctx) {
|
|
|
11737
11737
|
function select_block_type_11(ctx2, dirty) {
|
|
11738
11738
|
if (
|
|
11739
11739
|
/*appliance*/
|
|
11740
|
-
ctx2[9] === "
|
|
11740
|
+
ctx2[9] === "pencilEraser"
|
|
11741
11741
|
)
|
|
11742
11742
|
return 0;
|
|
11743
11743
|
return 1;
|
|
@@ -13130,7 +13130,7 @@ function instance59($$self, $$props, $$invalidate) {
|
|
|
13130
13130
|
let { hide_apps = false } = $$props;
|
|
13131
13131
|
let { eraser_type = "both" } = $$props;
|
|
13132
13132
|
let last_shape = "rectangle";
|
|
13133
|
-
let last_eraser = "
|
|
13133
|
+
let last_eraser = "eraser";
|
|
13134
13134
|
let pencil_panel;
|
|
13135
13135
|
let text_panel;
|
|
13136
13136
|
let shapes_panel;
|
package/dist/index.svelte.mjs
CHANGED
|
@@ -11324,18 +11324,16 @@ function create_if_block6(ctx) {
|
|
|
11324
11324
|
{
|
|
11325
11325
|
active: (
|
|
11326
11326
|
/*appliance*/
|
|
11327
|
-
ctx[9] === "
|
|
11327
|
+
ctx[9] === "eraser"
|
|
11328
11328
|
)
|
|
11329
11329
|
},
|
|
11330
11330
|
/*btn_props*/
|
|
11331
11331
|
ctx[19],
|
|
11332
11332
|
{ placement: "top" },
|
|
11333
|
-
{
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
)
|
|
11338
|
-
}
|
|
11333
|
+
{ content: (
|
|
11334
|
+
/*c*/
|
|
11335
|
+
ctx[23].eraserForPanel
|
|
11336
|
+
) }
|
|
11339
11337
|
];
|
|
11340
11338
|
let button0_props = {
|
|
11341
11339
|
$$slots: { default: [create_default_slot_24] },
|
|
@@ -11347,24 +11345,26 @@ function create_if_block6(ctx) {
|
|
|
11347
11345
|
button0 = new Button_default({ props: button0_props });
|
|
11348
11346
|
button0.$on(
|
|
11349
11347
|
"click",
|
|
11350
|
-
/*
|
|
11351
|
-
ctx[
|
|
11348
|
+
/*select_eraser*/
|
|
11349
|
+
ctx[37]
|
|
11352
11350
|
);
|
|
11353
11351
|
const button1_spread_levels = [
|
|
11354
11352
|
{ class: "eraser" },
|
|
11355
11353
|
{
|
|
11356
11354
|
active: (
|
|
11357
11355
|
/*appliance*/
|
|
11358
|
-
ctx[9] === "
|
|
11356
|
+
ctx[9] === "pencilEraser"
|
|
11359
11357
|
)
|
|
11360
11358
|
},
|
|
11361
11359
|
/*btn_props*/
|
|
11362
11360
|
ctx[19],
|
|
11363
11361
|
{ placement: "top" },
|
|
11364
|
-
{
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11362
|
+
{
|
|
11363
|
+
content: (
|
|
11364
|
+
/*c*/
|
|
11365
|
+
ctx[23].pencilEraserForPanel
|
|
11366
|
+
)
|
|
11367
|
+
}
|
|
11368
11368
|
];
|
|
11369
11369
|
let button1_props = {
|
|
11370
11370
|
$$slots: { default: [create_default_slot_17] },
|
|
@@ -11376,8 +11376,8 @@ function create_if_block6(ctx) {
|
|
|
11376
11376
|
button1 = new Button_default({ props: button1_props });
|
|
11377
11377
|
button1.$on(
|
|
11378
11378
|
"click",
|
|
11379
|
-
/*
|
|
11380
|
-
ctx[
|
|
11379
|
+
/*select_pencil_eraser*/
|
|
11380
|
+
ctx[38]
|
|
11381
11381
|
);
|
|
11382
11382
|
const button2_spread_levels = [
|
|
11383
11383
|
{ class: "clear" },
|
|
@@ -11441,7 +11441,7 @@ function create_if_block6(ctx) {
|
|
|
11441
11441
|
512 && {
|
|
11442
11442
|
active: (
|
|
11443
11443
|
/*appliance*/
|
|
11444
|
-
ctx2[9] === "
|
|
11444
|
+
ctx2[9] === "eraser"
|
|
11445
11445
|
)
|
|
11446
11446
|
},
|
|
11447
11447
|
dirty[0] & /*btn_props*/
|
|
@@ -11451,12 +11451,10 @@ function create_if_block6(ctx) {
|
|
|
11451
11451
|
),
|
|
11452
11452
|
button0_spread_levels[3],
|
|
11453
11453
|
dirty[0] & /*c*/
|
|
11454
|
-
8388608 && {
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
)
|
|
11459
|
-
}
|
|
11454
|
+
8388608 && { content: (
|
|
11455
|
+
/*c*/
|
|
11456
|
+
ctx2[23].eraserForPanel
|
|
11457
|
+
) }
|
|
11460
11458
|
]) : {};
|
|
11461
11459
|
if (dirty[0] & /*theme, appliance*/
|
|
11462
11460
|
514 | dirty[1] & /*$$scope*/
|
|
@@ -11471,7 +11469,7 @@ function create_if_block6(ctx) {
|
|
|
11471
11469
|
512 && {
|
|
11472
11470
|
active: (
|
|
11473
11471
|
/*appliance*/
|
|
11474
|
-
ctx2[9] === "
|
|
11472
|
+
ctx2[9] === "pencilEraser"
|
|
11475
11473
|
)
|
|
11476
11474
|
},
|
|
11477
11475
|
dirty[0] & /*btn_props*/
|
|
@@ -11481,10 +11479,12 @@ function create_if_block6(ctx) {
|
|
|
11481
11479
|
),
|
|
11482
11480
|
button1_spread_levels[3],
|
|
11483
11481
|
dirty[0] & /*c*/
|
|
11484
|
-
8388608 && {
|
|
11485
|
-
|
|
11486
|
-
|
|
11487
|
-
|
|
11482
|
+
8388608 && {
|
|
11483
|
+
content: (
|
|
11484
|
+
/*c*/
|
|
11485
|
+
ctx2[23].pencilEraserForPanel
|
|
11486
|
+
)
|
|
11487
|
+
}
|
|
11488
11488
|
]) : {};
|
|
11489
11489
|
if (dirty[0] & /*theme, appliance*/
|
|
11490
11490
|
514 | dirty[1] & /*$$scope*/
|
|
@@ -11665,47 +11665,47 @@ function create_if_block_4(ctx) {
|
|
|
11665
11665
|
};
|
|
11666
11666
|
}
|
|
11667
11667
|
function create_else_block_12(ctx) {
|
|
11668
|
-
let
|
|
11668
|
+
let icons_eraser;
|
|
11669
11669
|
let current;
|
|
11670
|
-
|
|
11670
|
+
icons_eraser = new Icons_default.Eraser({ props: { theme: (
|
|
11671
11671
|
/*theme*/
|
|
11672
11672
|
ctx[1]
|
|
11673
11673
|
) } });
|
|
11674
11674
|
return {
|
|
11675
11675
|
c() {
|
|
11676
|
-
create_component7(
|
|
11676
|
+
create_component7(icons_eraser.$$.fragment);
|
|
11677
11677
|
},
|
|
11678
11678
|
m(target, anchor) {
|
|
11679
|
-
mount_component7(
|
|
11679
|
+
mount_component7(icons_eraser, target, anchor);
|
|
11680
11680
|
current = true;
|
|
11681
11681
|
},
|
|
11682
11682
|
p(ctx2, dirty) {
|
|
11683
|
-
const
|
|
11683
|
+
const icons_eraser_changes = {};
|
|
11684
11684
|
if (dirty[0] & /*theme*/
|
|
11685
11685
|
2)
|
|
11686
|
-
|
|
11686
|
+
icons_eraser_changes.theme = /*theme*/
|
|
11687
11687
|
ctx2[1];
|
|
11688
|
-
|
|
11688
|
+
icons_eraser.$set(icons_eraser_changes);
|
|
11689
11689
|
},
|
|
11690
11690
|
i(local) {
|
|
11691
11691
|
if (current)
|
|
11692
11692
|
return;
|
|
11693
|
-
transition_in9(
|
|
11693
|
+
transition_in9(icons_eraser.$$.fragment, local);
|
|
11694
11694
|
current = true;
|
|
11695
11695
|
},
|
|
11696
11696
|
o(local) {
|
|
11697
|
-
transition_out9(
|
|
11697
|
+
transition_out9(icons_eraser.$$.fragment, local);
|
|
11698
11698
|
current = false;
|
|
11699
11699
|
},
|
|
11700
11700
|
d(detaching) {
|
|
11701
|
-
destroy_component7(
|
|
11701
|
+
destroy_component7(icons_eraser, detaching);
|
|
11702
11702
|
}
|
|
11703
11703
|
};
|
|
11704
11704
|
}
|
|
11705
11705
|
function create_if_block_3(ctx) {
|
|
11706
|
-
let
|
|
11706
|
+
let icons_eraserfilled;
|
|
11707
11707
|
let current;
|
|
11708
|
-
|
|
11708
|
+
icons_eraserfilled = new Icons_default.EraserFilled({
|
|
11709
11709
|
props: { theme: (
|
|
11710
11710
|
/*theme*/
|
|
11711
11711
|
ctx[1]
|
|
@@ -11713,32 +11713,32 @@ function create_if_block_3(ctx) {
|
|
|
11713
11713
|
});
|
|
11714
11714
|
return {
|
|
11715
11715
|
c() {
|
|
11716
|
-
create_component7(
|
|
11716
|
+
create_component7(icons_eraserfilled.$$.fragment);
|
|
11717
11717
|
},
|
|
11718
11718
|
m(target, anchor) {
|
|
11719
|
-
mount_component7(
|
|
11719
|
+
mount_component7(icons_eraserfilled, target, anchor);
|
|
11720
11720
|
current = true;
|
|
11721
11721
|
},
|
|
11722
11722
|
p(ctx2, dirty) {
|
|
11723
|
-
const
|
|
11723
|
+
const icons_eraserfilled_changes = {};
|
|
11724
11724
|
if (dirty[0] & /*theme*/
|
|
11725
11725
|
2)
|
|
11726
|
-
|
|
11726
|
+
icons_eraserfilled_changes.theme = /*theme*/
|
|
11727
11727
|
ctx2[1];
|
|
11728
|
-
|
|
11728
|
+
icons_eraserfilled.$set(icons_eraserfilled_changes);
|
|
11729
11729
|
},
|
|
11730
11730
|
i(local) {
|
|
11731
11731
|
if (current)
|
|
11732
11732
|
return;
|
|
11733
|
-
transition_in9(
|
|
11733
|
+
transition_in9(icons_eraserfilled.$$.fragment, local);
|
|
11734
11734
|
current = true;
|
|
11735
11735
|
},
|
|
11736
11736
|
o(local) {
|
|
11737
|
-
transition_out9(
|
|
11737
|
+
transition_out9(icons_eraserfilled.$$.fragment, local);
|
|
11738
11738
|
current = false;
|
|
11739
11739
|
},
|
|
11740
11740
|
d(detaching) {
|
|
11741
|
-
destroy_component7(
|
|
11741
|
+
destroy_component7(icons_eraserfilled, detaching);
|
|
11742
11742
|
}
|
|
11743
11743
|
};
|
|
11744
11744
|
}
|
|
@@ -11752,7 +11752,7 @@ function create_default_slot_24(ctx) {
|
|
|
11752
11752
|
function select_block_type_10(ctx2, dirty) {
|
|
11753
11753
|
if (
|
|
11754
11754
|
/*appliance*/
|
|
11755
|
-
ctx2[9] === "
|
|
11755
|
+
ctx2[9] === "eraser"
|
|
11756
11756
|
)
|
|
11757
11757
|
return 0;
|
|
11758
11758
|
return 1;
|
|
@@ -11809,47 +11809,47 @@ function create_default_slot_24(ctx) {
|
|
|
11809
11809
|
};
|
|
11810
11810
|
}
|
|
11811
11811
|
function create_else_block6(ctx) {
|
|
11812
|
-
let
|
|
11812
|
+
let icons_pencileraser;
|
|
11813
11813
|
let current;
|
|
11814
|
-
|
|
11814
|
+
icons_pencileraser = new Icons_default.PencilEraser({ props: { theme: (
|
|
11815
11815
|
/*theme*/
|
|
11816
11816
|
ctx[1]
|
|
11817
11817
|
) } });
|
|
11818
11818
|
return {
|
|
11819
11819
|
c() {
|
|
11820
|
-
create_component7(
|
|
11820
|
+
create_component7(icons_pencileraser.$$.fragment);
|
|
11821
11821
|
},
|
|
11822
11822
|
m(target, anchor) {
|
|
11823
|
-
mount_component7(
|
|
11823
|
+
mount_component7(icons_pencileraser, target, anchor);
|
|
11824
11824
|
current = true;
|
|
11825
11825
|
},
|
|
11826
11826
|
p(ctx2, dirty) {
|
|
11827
|
-
const
|
|
11827
|
+
const icons_pencileraser_changes = {};
|
|
11828
11828
|
if (dirty[0] & /*theme*/
|
|
11829
11829
|
2)
|
|
11830
|
-
|
|
11830
|
+
icons_pencileraser_changes.theme = /*theme*/
|
|
11831
11831
|
ctx2[1];
|
|
11832
|
-
|
|
11832
|
+
icons_pencileraser.$set(icons_pencileraser_changes);
|
|
11833
11833
|
},
|
|
11834
11834
|
i(local) {
|
|
11835
11835
|
if (current)
|
|
11836
11836
|
return;
|
|
11837
|
-
transition_in9(
|
|
11837
|
+
transition_in9(icons_pencileraser.$$.fragment, local);
|
|
11838
11838
|
current = true;
|
|
11839
11839
|
},
|
|
11840
11840
|
o(local) {
|
|
11841
|
-
transition_out9(
|
|
11841
|
+
transition_out9(icons_pencileraser.$$.fragment, local);
|
|
11842
11842
|
current = false;
|
|
11843
11843
|
},
|
|
11844
11844
|
d(detaching) {
|
|
11845
|
-
destroy_component7(
|
|
11845
|
+
destroy_component7(icons_pencileraser, detaching);
|
|
11846
11846
|
}
|
|
11847
11847
|
};
|
|
11848
11848
|
}
|
|
11849
11849
|
function create_if_block_2(ctx) {
|
|
11850
|
-
let
|
|
11850
|
+
let icons_pencileraserfilled;
|
|
11851
11851
|
let current;
|
|
11852
|
-
|
|
11852
|
+
icons_pencileraserfilled = new Icons_default.PencilEraserFilled({
|
|
11853
11853
|
props: { theme: (
|
|
11854
11854
|
/*theme*/
|
|
11855
11855
|
ctx[1]
|
|
@@ -11857,32 +11857,32 @@ function create_if_block_2(ctx) {
|
|
|
11857
11857
|
});
|
|
11858
11858
|
return {
|
|
11859
11859
|
c() {
|
|
11860
|
-
create_component7(
|
|
11860
|
+
create_component7(icons_pencileraserfilled.$$.fragment);
|
|
11861
11861
|
},
|
|
11862
11862
|
m(target, anchor) {
|
|
11863
|
-
mount_component7(
|
|
11863
|
+
mount_component7(icons_pencileraserfilled, target, anchor);
|
|
11864
11864
|
current = true;
|
|
11865
11865
|
},
|
|
11866
11866
|
p(ctx2, dirty) {
|
|
11867
|
-
const
|
|
11867
|
+
const icons_pencileraserfilled_changes = {};
|
|
11868
11868
|
if (dirty[0] & /*theme*/
|
|
11869
11869
|
2)
|
|
11870
|
-
|
|
11870
|
+
icons_pencileraserfilled_changes.theme = /*theme*/
|
|
11871
11871
|
ctx2[1];
|
|
11872
|
-
|
|
11872
|
+
icons_pencileraserfilled.$set(icons_pencileraserfilled_changes);
|
|
11873
11873
|
},
|
|
11874
11874
|
i(local) {
|
|
11875
11875
|
if (current)
|
|
11876
11876
|
return;
|
|
11877
|
-
transition_in9(
|
|
11877
|
+
transition_in9(icons_pencileraserfilled.$$.fragment, local);
|
|
11878
11878
|
current = true;
|
|
11879
11879
|
},
|
|
11880
11880
|
o(local) {
|
|
11881
|
-
transition_out9(
|
|
11881
|
+
transition_out9(icons_pencileraserfilled.$$.fragment, local);
|
|
11882
11882
|
current = false;
|
|
11883
11883
|
},
|
|
11884
11884
|
d(detaching) {
|
|
11885
|
-
destroy_component7(
|
|
11885
|
+
destroy_component7(icons_pencileraserfilled, detaching);
|
|
11886
11886
|
}
|
|
11887
11887
|
};
|
|
11888
11888
|
}
|
|
@@ -11896,7 +11896,7 @@ function create_default_slot_17(ctx) {
|
|
|
11896
11896
|
function select_block_type_11(ctx2, dirty) {
|
|
11897
11897
|
if (
|
|
11898
11898
|
/*appliance*/
|
|
11899
|
-
ctx2[9] === "
|
|
11899
|
+
ctx2[9] === "pencilEraser"
|
|
11900
11900
|
)
|
|
11901
11901
|
return 0;
|
|
11902
11902
|
return 1;
|
|
@@ -13289,7 +13289,7 @@ function instance59($$self, $$props, $$invalidate) {
|
|
|
13289
13289
|
let { hide_apps = false } = $$props;
|
|
13290
13290
|
let { eraser_type = "both" } = $$props;
|
|
13291
13291
|
let last_shape = "rectangle";
|
|
13292
|
-
let last_eraser = "
|
|
13292
|
+
let last_eraser = "eraser";
|
|
13293
13293
|
let pencil_panel;
|
|
13294
13294
|
let text_panel;
|
|
13295
13295
|
let shapes_panel;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netless/fastboard-ui",
|
|
3
|
-
"version": "1.0.0-canary.
|
|
3
|
+
"version": "1.0.0-canary.11",
|
|
4
4
|
"description": "The front-end of @netless/fastboard-core.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"svelte": "dist/index.svelte.mjs",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
],
|
|
14
14
|
"repository": "netless-io/fastboard",
|
|
15
15
|
"peerDependencies": {
|
|
16
|
-
"@netless/fastboard-core": "1.0.0-canary.
|
|
16
|
+
"@netless/fastboard-core": "1.0.0-canary.11"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"tippy.js": "^6.3.7"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
22
|
"@netless/esbuild-plugin-inline-sass": "0.1.0",
|
|
23
|
-
"@netless/fastboard-core": "1.0.0-canary.
|
|
23
|
+
"@netless/fastboard-core": "1.0.0-canary.11"
|
|
24
24
|
},
|
|
25
25
|
"scripts": {
|
|
26
26
|
"cleanup": "rimraf dist",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
const name = "fastboard-toolbar";
|
|
36
36
|
|
|
37
37
|
let last_shape: Shape = "rectangle";
|
|
38
|
-
let last_eraser: Eraser = "
|
|
38
|
+
let last_eraser: Eraser = "eraser";
|
|
39
39
|
|
|
40
40
|
let pencil_panel: HTMLDivElement;
|
|
41
41
|
let text_panel: HTMLDivElement;
|
|
@@ -301,30 +301,30 @@
|
|
|
301
301
|
<div class="{name}-panel-btns">
|
|
302
302
|
<Button
|
|
303
303
|
class="eraser"
|
|
304
|
-
active={appliance === "
|
|
304
|
+
active={appliance === "eraser"}
|
|
305
305
|
{...btn_props}
|
|
306
|
-
on:click={
|
|
306
|
+
on:click={select_eraser}
|
|
307
307
|
placement="top"
|
|
308
|
-
content={c.
|
|
308
|
+
content={c.eraserForPanel}
|
|
309
309
|
>
|
|
310
|
-
{#if appliance === "
|
|
311
|
-
<Icons.
|
|
310
|
+
{#if appliance === "eraser"}
|
|
311
|
+
<Icons.EraserFilled {theme} active />
|
|
312
312
|
{:else}
|
|
313
|
-
<Icons.
|
|
313
|
+
<Icons.Eraser {theme} />
|
|
314
314
|
{/if}
|
|
315
315
|
</Button>
|
|
316
316
|
<Button
|
|
317
317
|
class="eraser"
|
|
318
|
-
active={appliance === "
|
|
318
|
+
active={appliance === "pencilEraser"}
|
|
319
319
|
{...btn_props}
|
|
320
|
-
on:click={
|
|
320
|
+
on:click={select_pencil_eraser}
|
|
321
321
|
placement="top"
|
|
322
|
-
content={c.
|
|
322
|
+
content={c.pencilEraserForPanel}
|
|
323
323
|
>
|
|
324
|
-
{#if appliance === "
|
|
325
|
-
<Icons.
|
|
324
|
+
{#if appliance === "pencilEraser"}
|
|
325
|
+
<Icons.PencilEraserFilled {theme} active />
|
|
326
326
|
{:else}
|
|
327
|
-
<Icons.
|
|
327
|
+
<Icons.PencilEraser {theme} />
|
|
328
328
|
{/if}
|
|
329
329
|
</Button>
|
|
330
330
|
<Button class="clear" {...btn_props} on:click={clear} placement="top" content={t.clear}>
|