@netless/fastboard-ui 1.1.2-beta.8 → 1.1.2
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 +175 -162
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +169 -160
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +169 -160
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +4 -4
- package/src/components/Toolbar/components/Contents.svelte +4 -2
package/dist/index.js
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
var Tippy = require('tippy.js');
|
|
4
4
|
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var Tippy__default = /*#__PURE__*/_interopDefault(Tippy);
|
|
8
|
+
|
|
5
9
|
var __defProp = Object.defineProperty;
|
|
6
10
|
var __defProps = Object.defineProperties;
|
|
7
11
|
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
@@ -4888,7 +4892,7 @@ var Icons = {
|
|
|
4888
4892
|
};
|
|
4889
4893
|
var Icons_default = Icons;
|
|
4890
4894
|
if (typeof window !== "undefined") {
|
|
4891
|
-
|
|
4895
|
+
Tippy__default.default.setDefaultProps({
|
|
4892
4896
|
delay: [1e3, 400],
|
|
4893
4897
|
duration: 300,
|
|
4894
4898
|
offset: [0, 11],
|
|
@@ -4923,7 +4927,7 @@ if (typeof window !== "undefined") {
|
|
|
4923
4927
|
});
|
|
4924
4928
|
}
|
|
4925
4929
|
var tippy = function(node, props) {
|
|
4926
|
-
const instance79 =
|
|
4930
|
+
const instance79 = Tippy__default.default(node, props);
|
|
4927
4931
|
return {
|
|
4928
4932
|
update(props2) {
|
|
4929
4933
|
instance79.setProps(props2);
|
|
@@ -12171,39 +12175,39 @@ var EraserSize_default = EraserSize;
|
|
|
12171
12175
|
// src/components/Toolbar/components/Contents.svelte
|
|
12172
12176
|
function get_each_context4(ctx, list, i) {
|
|
12173
12177
|
const child_ctx = ctx.slice();
|
|
12174
|
-
child_ctx[
|
|
12178
|
+
child_ctx[58] = list[i];
|
|
12175
12179
|
const constants_0 = (
|
|
12176
12180
|
/*netless_app*/
|
|
12177
|
-
child_ctx[
|
|
12181
|
+
child_ctx[58]
|
|
12178
12182
|
);
|
|
12179
|
-
child_ctx[
|
|
12180
|
-
child_ctx[
|
|
12181
|
-
child_ctx[
|
|
12182
|
-
child_ctx[
|
|
12183
|
+
child_ctx[59] = constants_0.icon;
|
|
12184
|
+
child_ctx[60] = constants_0.label;
|
|
12185
|
+
child_ctx[61] = constants_0.kind;
|
|
12186
|
+
child_ctx[62] = constants_0.onClick;
|
|
12183
12187
|
const constants_1 = (
|
|
12184
12188
|
/*$status*/
|
|
12185
|
-
child_ctx[
|
|
12186
|
-
child_ctx[
|
|
12189
|
+
child_ctx[26] && /*$status*/
|
|
12190
|
+
child_ctx[26][
|
|
12187
12191
|
/*kind*/
|
|
12188
|
-
child_ctx[
|
|
12192
|
+
child_ctx[61]
|
|
12189
12193
|
]
|
|
12190
12194
|
);
|
|
12191
|
-
child_ctx[
|
|
12195
|
+
child_ctx[63] = constants_1;
|
|
12192
12196
|
const constants_2 = function func() {
|
|
12193
12197
|
return (
|
|
12194
12198
|
/*func*/
|
|
12195
|
-
ctx[
|
|
12199
|
+
ctx[54](
|
|
12196
12200
|
/*onClick*/
|
|
12197
|
-
child_ctx[
|
|
12201
|
+
child_ctx[62]
|
|
12198
12202
|
)
|
|
12199
12203
|
);
|
|
12200
12204
|
};
|
|
12201
|
-
child_ctx[
|
|
12205
|
+
child_ctx[64] = constants_2;
|
|
12202
12206
|
return child_ctx;
|
|
12203
12207
|
}
|
|
12204
12208
|
function get_each_context_1(ctx, list, i) {
|
|
12205
12209
|
const child_ctx = ctx.slice();
|
|
12206
|
-
child_ctx[
|
|
12210
|
+
child_ctx[67] = list[i];
|
|
12207
12211
|
return child_ctx;
|
|
12208
12212
|
}
|
|
12209
12213
|
function create_if_block_23(ctx) {
|
|
@@ -12225,7 +12229,7 @@ function create_if_block_23(ctx) {
|
|
|
12225
12229
|
button.$on(
|
|
12226
12230
|
"click",
|
|
12227
12231
|
/*scroll_up*/
|
|
12228
|
-
ctx[
|
|
12232
|
+
ctx[28]
|
|
12229
12233
|
);
|
|
12230
12234
|
return {
|
|
12231
12235
|
c() {
|
|
@@ -12243,7 +12247,7 @@ function create_if_block_23(ctx) {
|
|
|
12243
12247
|
)]) : {};
|
|
12244
12248
|
if (dirty[0] & /*theme*/
|
|
12245
12249
|
2 | dirty[2] & /*$$scope*/
|
|
12246
|
-
|
|
12250
|
+
256) {
|
|
12247
12251
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
12248
12252
|
}
|
|
12249
12253
|
button.$set(button_changes);
|
|
@@ -12320,14 +12324,14 @@ function create_if_block_222(ctx) {
|
|
|
12320
12324
|
),
|
|
12321
12325
|
content: (
|
|
12322
12326
|
/*c*/
|
|
12323
|
-
ctx[
|
|
12327
|
+
ctx[24].laserPointer
|
|
12324
12328
|
)
|
|
12325
12329
|
}
|
|
12326
12330
|
});
|
|
12327
12331
|
laser.$on(
|
|
12328
12332
|
"click",
|
|
12329
12333
|
/*laserPointer*/
|
|
12330
|
-
ctx[
|
|
12334
|
+
ctx[36]
|
|
12331
12335
|
);
|
|
12332
12336
|
return {
|
|
12333
12337
|
c() {
|
|
@@ -12352,9 +12356,9 @@ function create_if_block_222(ctx) {
|
|
|
12352
12356
|
laser_changes.btn_props = /*btn_props*/
|
|
12353
12357
|
ctx2[17];
|
|
12354
12358
|
if (dirty[0] & /*c*/
|
|
12355
|
-
|
|
12359
|
+
16777216)
|
|
12356
12360
|
laser_changes.content = /*c*/
|
|
12357
|
-
ctx2[
|
|
12361
|
+
ctx2[24].laserPointer;
|
|
12358
12362
|
laser.$set(laser_changes);
|
|
12359
12363
|
},
|
|
12360
12364
|
i(local) {
|
|
@@ -12391,14 +12395,14 @@ function create_if_block_21(ctx) {
|
|
|
12391
12395
|
),
|
|
12392
12396
|
content: (
|
|
12393
12397
|
/*c*/
|
|
12394
|
-
ctx[
|
|
12398
|
+
ctx[24].hand
|
|
12395
12399
|
)
|
|
12396
12400
|
}
|
|
12397
12401
|
});
|
|
12398
12402
|
hand_1.$on(
|
|
12399
12403
|
"click",
|
|
12400
12404
|
/*hand*/
|
|
12401
|
-
ctx[
|
|
12405
|
+
ctx[35]
|
|
12402
12406
|
);
|
|
12403
12407
|
return {
|
|
12404
12408
|
c() {
|
|
@@ -12423,9 +12427,9 @@ function create_if_block_21(ctx) {
|
|
|
12423
12427
|
hand_1_changes.btn_props = /*btn_props*/
|
|
12424
12428
|
ctx2[17];
|
|
12425
12429
|
if (dirty[0] & /*c*/
|
|
12426
|
-
|
|
12430
|
+
16777216)
|
|
12427
12431
|
hand_1_changes.content = /*c*/
|
|
12428
|
-
ctx2[
|
|
12432
|
+
ctx2[24].hand;
|
|
12429
12433
|
hand_1.$set(hand_1_changes);
|
|
12430
12434
|
},
|
|
12431
12435
|
i(local) {
|
|
@@ -12465,7 +12469,7 @@ function create_if_block_20(ctx) {
|
|
|
12465
12469
|
clear_1.$on(
|
|
12466
12470
|
"click",
|
|
12467
12471
|
/*clear*/
|
|
12468
|
-
ctx[
|
|
12472
|
+
ctx[37]
|
|
12469
12473
|
);
|
|
12470
12474
|
return {
|
|
12471
12475
|
c() {
|
|
@@ -12529,7 +12533,7 @@ function create_if_block_19(ctx) {
|
|
|
12529
12533
|
),
|
|
12530
12534
|
content: (
|
|
12531
12535
|
/*c*/
|
|
12532
|
-
ctx[
|
|
12536
|
+
ctx[24].eraser
|
|
12533
12537
|
),
|
|
12534
12538
|
menu: (
|
|
12535
12539
|
/*hasAppliancePlugin*/
|
|
@@ -12543,7 +12547,7 @@ function create_if_block_19(ctx) {
|
|
|
12543
12547
|
eraser_1.$on(
|
|
12544
12548
|
"click",
|
|
12545
12549
|
/*eraser*/
|
|
12546
|
-
ctx[
|
|
12550
|
+
ctx[34]
|
|
12547
12551
|
);
|
|
12548
12552
|
return {
|
|
12549
12553
|
c() {
|
|
@@ -12572,9 +12576,9 @@ function create_if_block_19(ctx) {
|
|
|
12572
12576
|
eraser_1_changes.btn_props = /*btn_props*/
|
|
12573
12577
|
ctx2[17];
|
|
12574
12578
|
if (dirty[0] & /*c*/
|
|
12575
|
-
|
|
12579
|
+
16777216)
|
|
12576
12580
|
eraser_1_changes.content = /*c*/
|
|
12577
|
-
ctx2[
|
|
12581
|
+
ctx2[24].eraser;
|
|
12578
12582
|
if (dirty[0] & /*hasAppliancePlugin, eraser_panel*/
|
|
12579
12583
|
66560)
|
|
12580
12584
|
eraser_1_changes.menu = /*hasAppliancePlugin*/
|
|
@@ -12700,7 +12704,7 @@ function create_if_block_17(ctx) {
|
|
|
12700
12704
|
),
|
|
12701
12705
|
content: (
|
|
12702
12706
|
/*c*/
|
|
12703
|
-
ctx[
|
|
12707
|
+
ctx[24].text
|
|
12704
12708
|
),
|
|
12705
12709
|
menu: (
|
|
12706
12710
|
/*text_panel*/
|
|
@@ -12711,7 +12715,7 @@ function create_if_block_17(ctx) {
|
|
|
12711
12715
|
text_1.$on(
|
|
12712
12716
|
"click",
|
|
12713
12717
|
/*text*/
|
|
12714
|
-
ctx[
|
|
12718
|
+
ctx[33]
|
|
12715
12719
|
);
|
|
12716
12720
|
return {
|
|
12717
12721
|
c() {
|
|
@@ -12736,9 +12740,9 @@ function create_if_block_17(ctx) {
|
|
|
12736
12740
|
text_1_changes.btn_props = /*btn_props*/
|
|
12737
12741
|
ctx2[17];
|
|
12738
12742
|
if (dirty[0] & /*c*/
|
|
12739
|
-
|
|
12743
|
+
16777216)
|
|
12740
12744
|
text_1_changes.content = /*c*/
|
|
12741
|
-
ctx2[
|
|
12745
|
+
ctx2[24].text;
|
|
12742
12746
|
if (dirty[0] & /*text_panel*/
|
|
12743
12747
|
8192)
|
|
12744
12748
|
text_1_changes.menu = /*text_panel*/
|
|
@@ -12783,7 +12787,7 @@ function create_if_block_16(ctx) {
|
|
|
12783
12787
|
),
|
|
12784
12788
|
content: (
|
|
12785
12789
|
/*c*/
|
|
12786
|
-
ctx[
|
|
12790
|
+
ctx[24].pencil
|
|
12787
12791
|
),
|
|
12788
12792
|
menu: (
|
|
12789
12793
|
/*pencil_panel*/
|
|
@@ -12794,7 +12798,7 @@ function create_if_block_16(ctx) {
|
|
|
12794
12798
|
pencil_1.$on(
|
|
12795
12799
|
"click",
|
|
12796
12800
|
/*pencil*/
|
|
12797
|
-
ctx[
|
|
12801
|
+
ctx[32]
|
|
12798
12802
|
);
|
|
12799
12803
|
return {
|
|
12800
12804
|
c() {
|
|
@@ -12823,9 +12827,9 @@ function create_if_block_16(ctx) {
|
|
|
12823
12827
|
pencil_1_changes.btn_props = /*btn_props*/
|
|
12824
12828
|
ctx2[17];
|
|
12825
12829
|
if (dirty[0] & /*c*/
|
|
12826
|
-
|
|
12830
|
+
16777216)
|
|
12827
12831
|
pencil_1_changes.content = /*c*/
|
|
12828
|
-
ctx2[
|
|
12832
|
+
ctx2[24].pencil;
|
|
12829
12833
|
if (dirty[0] & /*pencil_panel*/
|
|
12830
12834
|
4096)
|
|
12831
12835
|
pencil_1_changes.menu = /*pencil_panel*/
|
|
@@ -12866,14 +12870,14 @@ function create_if_block_15(ctx) {
|
|
|
12866
12870
|
),
|
|
12867
12871
|
content: (
|
|
12868
12872
|
/*c*/
|
|
12869
|
-
ctx[
|
|
12873
|
+
ctx[24].selector
|
|
12870
12874
|
)
|
|
12871
12875
|
}
|
|
12872
12876
|
});
|
|
12873
12877
|
selector_1.$on(
|
|
12874
12878
|
"click",
|
|
12875
12879
|
/*selector*/
|
|
12876
|
-
ctx[
|
|
12880
|
+
ctx[31]
|
|
12877
12881
|
);
|
|
12878
12882
|
return {
|
|
12879
12883
|
c() {
|
|
@@ -12898,9 +12902,9 @@ function create_if_block_15(ctx) {
|
|
|
12898
12902
|
selector_1_changes.btn_props = /*btn_props*/
|
|
12899
12903
|
ctx2[17];
|
|
12900
12904
|
if (dirty[0] & /*c*/
|
|
12901
|
-
|
|
12905
|
+
16777216)
|
|
12902
12906
|
selector_1_changes.content = /*c*/
|
|
12903
|
-
ctx2[
|
|
12907
|
+
ctx2[24].selector;
|
|
12904
12908
|
selector_1.$set(selector_1_changes);
|
|
12905
12909
|
},
|
|
12906
12910
|
i(local) {
|
|
@@ -12937,14 +12941,14 @@ function create_if_block_14(ctx) {
|
|
|
12937
12941
|
),
|
|
12938
12942
|
content: (
|
|
12939
12943
|
/*c*/
|
|
12940
|
-
ctx[
|
|
12944
|
+
ctx[24].clicker
|
|
12941
12945
|
)
|
|
12942
12946
|
}
|
|
12943
12947
|
});
|
|
12944
12948
|
clicker_1.$on(
|
|
12945
12949
|
"click",
|
|
12946
12950
|
/*clicker*/
|
|
12947
|
-
ctx[
|
|
12951
|
+
ctx[30]
|
|
12948
12952
|
);
|
|
12949
12953
|
return {
|
|
12950
12954
|
c() {
|
|
@@ -12969,9 +12973,9 @@ function create_if_block_14(ctx) {
|
|
|
12969
12973
|
clicker_1_changes.btn_props = /*btn_props*/
|
|
12970
12974
|
ctx2[17];
|
|
12971
12975
|
if (dirty[0] & /*c*/
|
|
12972
|
-
|
|
12976
|
+
16777216)
|
|
12973
12977
|
clicker_1_changes.content = /*c*/
|
|
12974
|
-
ctx2[
|
|
12978
|
+
ctx2[24].clicker;
|
|
12975
12979
|
clicker_1.$set(clicker_1_changes);
|
|
12976
12980
|
},
|
|
12977
12981
|
i(local) {
|
|
@@ -13009,47 +13013,47 @@ function create_each_block_1(ctx) {
|
|
|
13009
13013
|
function select_block_type(ctx2, dirty) {
|
|
13010
13014
|
if (
|
|
13011
13015
|
/*item*/
|
|
13012
|
-
ctx2[
|
|
13016
|
+
ctx2[67] === "clicker"
|
|
13013
13017
|
)
|
|
13014
13018
|
return 0;
|
|
13015
13019
|
if (
|
|
13016
13020
|
/*item*/
|
|
13017
|
-
ctx2[
|
|
13021
|
+
ctx2[67] === "selector"
|
|
13018
13022
|
)
|
|
13019
13023
|
return 1;
|
|
13020
13024
|
if (
|
|
13021
13025
|
/*item*/
|
|
13022
|
-
ctx2[
|
|
13026
|
+
ctx2[67] === "pencil"
|
|
13023
13027
|
)
|
|
13024
13028
|
return 2;
|
|
13025
13029
|
if (
|
|
13026
13030
|
/*item*/
|
|
13027
|
-
ctx2[
|
|
13031
|
+
ctx2[67] === "text"
|
|
13028
13032
|
)
|
|
13029
13033
|
return 3;
|
|
13030
13034
|
if (
|
|
13031
13035
|
/*item*/
|
|
13032
|
-
ctx2[
|
|
13036
|
+
ctx2[67] === "shapes"
|
|
13033
13037
|
)
|
|
13034
13038
|
return 4;
|
|
13035
13039
|
if (
|
|
13036
13040
|
/*item*/
|
|
13037
|
-
ctx2[
|
|
13041
|
+
ctx2[67] === "eraser"
|
|
13038
13042
|
)
|
|
13039
13043
|
return 5;
|
|
13040
13044
|
if (
|
|
13041
13045
|
/*item*/
|
|
13042
|
-
ctx2[
|
|
13046
|
+
ctx2[67] === "clear"
|
|
13043
13047
|
)
|
|
13044
13048
|
return 6;
|
|
13045
13049
|
if (
|
|
13046
13050
|
/*item*/
|
|
13047
|
-
ctx2[
|
|
13051
|
+
ctx2[67] === "hand"
|
|
13048
13052
|
)
|
|
13049
13053
|
return 7;
|
|
13050
13054
|
if (
|
|
13051
13055
|
/*item*/
|
|
13052
|
-
ctx2[
|
|
13056
|
+
ctx2[67] === "laserPointer"
|
|
13053
13057
|
)
|
|
13054
13058
|
return 8;
|
|
13055
13059
|
return -1;
|
|
@@ -13186,7 +13190,7 @@ function create_if_block_132(ctx) {
|
|
|
13186
13190
|
]) : {};
|
|
13187
13191
|
if (dirty[0] & /*theme*/
|
|
13188
13192
|
2 | dirty[2] & /*$$scope*/
|
|
13189
|
-
|
|
13193
|
+
256) {
|
|
13190
13194
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
13191
13195
|
}
|
|
13192
13196
|
button.$set(button_changes);
|
|
@@ -13266,7 +13270,7 @@ function create_if_block_122(ctx) {
|
|
|
13266
13270
|
button.$on(
|
|
13267
13271
|
"click",
|
|
13268
13272
|
/*scroll_down*/
|
|
13269
|
-
ctx[
|
|
13273
|
+
ctx[29]
|
|
13270
13274
|
);
|
|
13271
13275
|
return {
|
|
13272
13276
|
c() {
|
|
@@ -13288,7 +13292,7 @@ function create_if_block_122(ctx) {
|
|
|
13288
13292
|
ctx2[3];
|
|
13289
13293
|
if (dirty[0] & /*theme*/
|
|
13290
13294
|
2 | dirty[2] & /*$$scope*/
|
|
13291
|
-
|
|
13295
|
+
256) {
|
|
13292
13296
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
13293
13297
|
}
|
|
13294
13298
|
button.$set(button_changes);
|
|
@@ -13379,12 +13383,14 @@ function create_if_block_52(ctx) {
|
|
|
13379
13383
|
const if_blocks_1 = [];
|
|
13380
13384
|
function select_block_type_2(ctx2, dirty) {
|
|
13381
13385
|
if (
|
|
13382
|
-
/*
|
|
13386
|
+
/*showLaserPen*/
|
|
13387
|
+
ctx2[21] && /*pencilType*/
|
|
13383
13388
|
ctx2[20] === "laser"
|
|
13384
13389
|
)
|
|
13385
13390
|
return 0;
|
|
13386
13391
|
if (
|
|
13387
|
-
/*
|
|
13392
|
+
/*showLaserPen*/
|
|
13393
|
+
ctx2[21] && /*pencilType*/
|
|
13388
13394
|
ctx2[20] !== "laser"
|
|
13389
13395
|
)
|
|
13390
13396
|
return 1;
|
|
@@ -13594,7 +13600,7 @@ function create_if_block_11(ctx) {
|
|
|
13594
13600
|
]) : {};
|
|
13595
13601
|
if (dirty[0] & /*theme*/
|
|
13596
13602
|
2 | dirty[2] & /*$$scope*/
|
|
13597
|
-
|
|
13603
|
+
256) {
|
|
13598
13604
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
13599
13605
|
}
|
|
13600
13606
|
button.$set(button_changes);
|
|
@@ -13633,7 +13639,7 @@ function create_if_block_10(ctx) {
|
|
|
13633
13639
|
button.$on(
|
|
13634
13640
|
"click",
|
|
13635
13641
|
/*usePencil*/
|
|
13636
|
-
ctx[
|
|
13642
|
+
ctx[38]
|
|
13637
13643
|
);
|
|
13638
13644
|
return {
|
|
13639
13645
|
c() {
|
|
@@ -13656,7 +13662,7 @@ function create_if_block_10(ctx) {
|
|
|
13656
13662
|
]) : {};
|
|
13657
13663
|
if (dirty[0] & /*theme*/
|
|
13658
13664
|
2 | dirty[2] & /*$$scope*/
|
|
13659
|
-
|
|
13665
|
+
256) {
|
|
13660
13666
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
13661
13667
|
}
|
|
13662
13668
|
button.$set(button_changes);
|
|
@@ -13773,7 +13779,7 @@ function create_if_block_9(ctx) {
|
|
|
13773
13779
|
button.$on(
|
|
13774
13780
|
"click",
|
|
13775
13781
|
/*useLaserPen*/
|
|
13776
|
-
ctx[
|
|
13782
|
+
ctx[39]
|
|
13777
13783
|
);
|
|
13778
13784
|
return {
|
|
13779
13785
|
c() {
|
|
@@ -13796,7 +13802,7 @@ function create_if_block_9(ctx) {
|
|
|
13796
13802
|
]) : {};
|
|
13797
13803
|
if (dirty[0] & /*theme*/
|
|
13798
13804
|
2 | dirty[2] & /*$$scope*/
|
|
13799
|
-
|
|
13805
|
+
256) {
|
|
13800
13806
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
13801
13807
|
}
|
|
13802
13808
|
button.$set(button_changes);
|
|
@@ -13853,7 +13859,7 @@ function create_if_block_8(ctx) {
|
|
|
13853
13859
|
]) : {};
|
|
13854
13860
|
if (dirty[0] & /*theme*/
|
|
13855
13861
|
2 | dirty[2] & /*$$scope*/
|
|
13856
|
-
|
|
13862
|
+
256) {
|
|
13857
13863
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
13858
13864
|
}
|
|
13859
13865
|
button.$set(button_changes);
|
|
@@ -13970,7 +13976,7 @@ function create_if_block_7(ctx) {
|
|
|
13970
13976
|
button.$on(
|
|
13971
13977
|
"click",
|
|
13972
13978
|
/*useMarkPen*/
|
|
13973
|
-
ctx[
|
|
13979
|
+
ctx[40]
|
|
13974
13980
|
);
|
|
13975
13981
|
return {
|
|
13976
13982
|
c() {
|
|
@@ -13993,7 +13999,7 @@ function create_if_block_7(ctx) {
|
|
|
13993
13999
|
]) : {};
|
|
13994
14000
|
if (dirty[0] & /*theme*/
|
|
13995
14001
|
2 | dirty[2] & /*$$scope*/
|
|
13996
|
-
|
|
14002
|
+
256) {
|
|
13997
14003
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
13998
14004
|
}
|
|
13999
14005
|
button.$set(button_changes);
|
|
@@ -14050,7 +14056,7 @@ function create_if_block_6(ctx) {
|
|
|
14050
14056
|
]) : {};
|
|
14051
14057
|
if (dirty[0] & /*theme*/
|
|
14052
14058
|
2 | dirty[2] & /*$$scope*/
|
|
14053
|
-
|
|
14059
|
+
256) {
|
|
14054
14060
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
14055
14061
|
}
|
|
14056
14062
|
button.$set(button_changes);
|
|
@@ -14333,7 +14339,7 @@ function create_if_block_42(ctx) {
|
|
|
14333
14339
|
]) : {};
|
|
14334
14340
|
if (dirty[0] & /*theme*/
|
|
14335
14341
|
2 | dirty[2] & /*$$scope*/
|
|
14336
|
-
|
|
14342
|
+
256) {
|
|
14337
14343
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
14338
14344
|
}
|
|
14339
14345
|
button.$set(button_changes);
|
|
@@ -14372,7 +14378,7 @@ function create_if_block_33(ctx) {
|
|
|
14372
14378
|
button.$on(
|
|
14373
14379
|
"click",
|
|
14374
14380
|
/*useEraser*/
|
|
14375
|
-
ctx[
|
|
14381
|
+
ctx[41]
|
|
14376
14382
|
);
|
|
14377
14383
|
return {
|
|
14378
14384
|
c() {
|
|
@@ -14395,7 +14401,7 @@ function create_if_block_33(ctx) {
|
|
|
14395
14401
|
]) : {};
|
|
14396
14402
|
if (dirty[0] & /*theme*/
|
|
14397
14403
|
2 | dirty[2] & /*$$scope*/
|
|
14398
|
-
|
|
14404
|
+
256) {
|
|
14399
14405
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
14400
14406
|
}
|
|
14401
14407
|
button.$set(button_changes);
|
|
@@ -14512,7 +14518,7 @@ function create_if_block_24(ctx) {
|
|
|
14512
14518
|
button.$on(
|
|
14513
14519
|
"click",
|
|
14514
14520
|
/*useEraserBitmap*/
|
|
14515
|
-
ctx[
|
|
14521
|
+
ctx[42]
|
|
14516
14522
|
);
|
|
14517
14523
|
return {
|
|
14518
14524
|
c() {
|
|
@@ -14535,7 +14541,7 @@ function create_if_block_24(ctx) {
|
|
|
14535
14541
|
]) : {};
|
|
14536
14542
|
if (dirty[0] & /*theme*/
|
|
14537
14543
|
2 | dirty[2] & /*$$scope*/
|
|
14538
|
-
|
|
14544
|
+
256) {
|
|
14539
14545
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
14540
14546
|
}
|
|
14541
14547
|
button.$set(button_changes);
|
|
@@ -14592,7 +14598,7 @@ function create_if_block_110(ctx) {
|
|
|
14592
14598
|
]) : {};
|
|
14593
14599
|
if (dirty[0] & /*theme*/
|
|
14594
14600
|
2 | dirty[2] & /*$$scope*/
|
|
14595
|
-
|
|
14601
|
+
256) {
|
|
14596
14602
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
14597
14603
|
}
|
|
14598
14604
|
button.$set(button_changes);
|
|
@@ -14701,7 +14707,7 @@ function create_each_block4(ctx) {
|
|
|
14701
14707
|
let span;
|
|
14702
14708
|
let t1_value = (
|
|
14703
14709
|
/*label*/
|
|
14704
|
-
ctx[
|
|
14710
|
+
ctx[60] + ""
|
|
14705
14711
|
);
|
|
14706
14712
|
let t1;
|
|
14707
14713
|
let span_class_value;
|
|
@@ -14723,40 +14729,40 @@ function create_each_block4(ctx) {
|
|
|
14723
14729
|
attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
|
|
14724
14730
|
ctx[1]);
|
|
14725
14731
|
if (!src_url_equal(img.src, img_src_value = /*icon*/
|
|
14726
|
-
ctx[
|
|
14732
|
+
ctx[59]))
|
|
14727
14733
|
attr(img, "src", img_src_value);
|
|
14728
14734
|
attr(img, "alt", img_alt_value = /*kind*/
|
|
14729
|
-
ctx[
|
|
14735
|
+
ctx[61]);
|
|
14730
14736
|
attr(img, "title", img_title_value = /*label*/
|
|
14731
|
-
ctx[
|
|
14737
|
+
ctx[60]);
|
|
14732
14738
|
attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
|
|
14733
14739
|
ctx[1]);
|
|
14734
14740
|
attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
|
|
14735
|
-
ctx[
|
|
14741
|
+
ctx[61] + " " + /*theme*/
|
|
14736
14742
|
ctx[1]);
|
|
14737
14743
|
attr(button, "title", button_title_value = /*label*/
|
|
14738
|
-
ctx[
|
|
14739
|
-
(ctx[
|
|
14740
|
-
ctx[
|
|
14741
|
-
ctx[
|
|
14744
|
+
ctx[60] + /*state*/
|
|
14745
|
+
(ctx[63] && /*state*/
|
|
14746
|
+
ctx[63].reason ? ": " + /*state*/
|
|
14747
|
+
ctx[63].reason : ""));
|
|
14742
14748
|
attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
|
|
14743
|
-
ctx[
|
|
14749
|
+
ctx[58].kind);
|
|
14744
14750
|
button.disabled = button_disabled_value = /*state*/
|
|
14745
|
-
ctx[
|
|
14746
|
-
ctx[
|
|
14751
|
+
ctx[63] && /*state*/
|
|
14752
|
+
ctx[63].status !== "idle";
|
|
14747
14753
|
toggle_class(
|
|
14748
14754
|
button,
|
|
14749
14755
|
"is-loading",
|
|
14750
14756
|
/*state*/
|
|
14751
|
-
ctx[
|
|
14752
|
-
ctx[
|
|
14757
|
+
ctx[63] && /*state*/
|
|
14758
|
+
ctx[63].status === "loading"
|
|
14753
14759
|
);
|
|
14754
14760
|
toggle_class(
|
|
14755
14761
|
button,
|
|
14756
14762
|
"is-failed",
|
|
14757
14763
|
/*state*/
|
|
14758
|
-
ctx[
|
|
14759
|
-
ctx[
|
|
14764
|
+
ctx[63] && /*state*/
|
|
14765
|
+
ctx[63].status === "failed"
|
|
14760
14766
|
);
|
|
14761
14767
|
},
|
|
14762
14768
|
m(target, anchor) {
|
|
@@ -14770,9 +14776,9 @@ function create_each_block4(ctx) {
|
|
|
14770
14776
|
dispose = listen(button, "click", function() {
|
|
14771
14777
|
if (is_function(
|
|
14772
14778
|
/*on_click*/
|
|
14773
|
-
ctx[
|
|
14779
|
+
ctx[64]
|
|
14774
14780
|
))
|
|
14775
|
-
ctx[
|
|
14781
|
+
ctx[64].apply(this, arguments);
|
|
14776
14782
|
});
|
|
14777
14783
|
mounted = true;
|
|
14778
14784
|
}
|
|
@@ -14785,23 +14791,23 @@ function create_each_block4(ctx) {
|
|
|
14785
14791
|
attr(img, "class", img_class_value);
|
|
14786
14792
|
}
|
|
14787
14793
|
if (dirty[0] & /*$apps*/
|
|
14788
|
-
|
|
14789
|
-
ctx[
|
|
14794
|
+
33554432 && !src_url_equal(img.src, img_src_value = /*icon*/
|
|
14795
|
+
ctx[59])) {
|
|
14790
14796
|
attr(img, "src", img_src_value);
|
|
14791
14797
|
}
|
|
14792
14798
|
if (dirty[0] & /*$apps*/
|
|
14793
|
-
|
|
14794
|
-
ctx[
|
|
14799
|
+
33554432 && img_alt_value !== (img_alt_value = /*kind*/
|
|
14800
|
+
ctx[61])) {
|
|
14795
14801
|
attr(img, "alt", img_alt_value);
|
|
14796
14802
|
}
|
|
14797
14803
|
if (dirty[0] & /*$apps*/
|
|
14798
|
-
|
|
14799
|
-
ctx[
|
|
14804
|
+
33554432 && img_title_value !== (img_title_value = /*label*/
|
|
14805
|
+
ctx[60])) {
|
|
14800
14806
|
attr(img, "title", img_title_value);
|
|
14801
14807
|
}
|
|
14802
14808
|
if (dirty[0] & /*$apps*/
|
|
14803
|
-
|
|
14804
|
-
ctx[
|
|
14809
|
+
33554432 && t1_value !== (t1_value = /*label*/
|
|
14810
|
+
ctx[60] + ""))
|
|
14805
14811
|
set_data(t1, t1_value);
|
|
14806
14812
|
if (dirty[0] & /*theme*/
|
|
14807
14813
|
2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
|
|
@@ -14809,48 +14815,48 @@ function create_each_block4(ctx) {
|
|
|
14809
14815
|
attr(span, "class", span_class_value);
|
|
14810
14816
|
}
|
|
14811
14817
|
if (dirty[0] & /*$apps, theme*/
|
|
14812
|
-
|
|
14813
|
-
ctx[
|
|
14818
|
+
33554434 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
|
|
14819
|
+
ctx[61] + " " + /*theme*/
|
|
14814
14820
|
ctx[1])) {
|
|
14815
14821
|
attr(button, "class", button_class_value);
|
|
14816
14822
|
}
|
|
14817
14823
|
if (dirty[0] & /*$apps, $status*/
|
|
14818
|
-
|
|
14819
|
-
ctx[
|
|
14820
|
-
(ctx[
|
|
14821
|
-
ctx[
|
|
14822
|
-
ctx[
|
|
14824
|
+
100663296 && button_title_value !== (button_title_value = /*label*/
|
|
14825
|
+
ctx[60] + /*state*/
|
|
14826
|
+
(ctx[63] && /*state*/
|
|
14827
|
+
ctx[63].reason ? ": " + /*state*/
|
|
14828
|
+
ctx[63].reason : ""))) {
|
|
14823
14829
|
attr(button, "title", button_title_value);
|
|
14824
14830
|
}
|
|
14825
14831
|
if (dirty[0] & /*$apps*/
|
|
14826
|
-
|
|
14827
|
-
ctx[
|
|
14832
|
+
33554432 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
|
|
14833
|
+
ctx[58].kind)) {
|
|
14828
14834
|
attr(button, "data-app-kind", button_data_app_kind_value);
|
|
14829
14835
|
}
|
|
14830
14836
|
if (dirty[0] & /*$status, $apps*/
|
|
14831
|
-
|
|
14832
|
-
ctx[
|
|
14833
|
-
ctx[
|
|
14837
|
+
100663296 && button_disabled_value !== (button_disabled_value = /*state*/
|
|
14838
|
+
ctx[63] && /*state*/
|
|
14839
|
+
ctx[63].status !== "idle")) {
|
|
14834
14840
|
button.disabled = button_disabled_value;
|
|
14835
14841
|
}
|
|
14836
14842
|
if (dirty[0] & /*$apps, theme, $status, $apps*/
|
|
14837
|
-
|
|
14843
|
+
100663298) {
|
|
14838
14844
|
toggle_class(
|
|
14839
14845
|
button,
|
|
14840
14846
|
"is-loading",
|
|
14841
14847
|
/*state*/
|
|
14842
|
-
ctx[
|
|
14843
|
-
ctx[
|
|
14848
|
+
ctx[63] && /*state*/
|
|
14849
|
+
ctx[63].status === "loading"
|
|
14844
14850
|
);
|
|
14845
14851
|
}
|
|
14846
14852
|
if (dirty[0] & /*$apps, theme, $status, $apps*/
|
|
14847
|
-
|
|
14853
|
+
100663298) {
|
|
14848
14854
|
toggle_class(
|
|
14849
14855
|
button,
|
|
14850
14856
|
"is-failed",
|
|
14851
14857
|
/*state*/
|
|
14852
|
-
ctx[
|
|
14853
|
-
ctx[
|
|
14858
|
+
ctx[63] && /*state*/
|
|
14859
|
+
ctx[63].status === "failed"
|
|
14854
14860
|
);
|
|
14855
14861
|
}
|
|
14856
14862
|
},
|
|
@@ -15058,7 +15064,7 @@ function create_fragment74(ctx) {
|
|
|
15058
15064
|
});
|
|
15059
15065
|
let each_value = (
|
|
15060
15066
|
/*$apps*/
|
|
15061
|
-
ctx[
|
|
15067
|
+
ctx[25]
|
|
15062
15068
|
);
|
|
15063
15069
|
let each_blocks = [];
|
|
15064
15070
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -15138,7 +15144,7 @@ function create_fragment74(ctx) {
|
|
|
15138
15144
|
div10,
|
|
15139
15145
|
"--n",
|
|
15140
15146
|
/*$apps*/
|
|
15141
|
-
ctx[
|
|
15147
|
+
ctx[25].length
|
|
15142
15148
|
);
|
|
15143
15149
|
attr(div11, "class", name5 + "-panel-wrapper");
|
|
15144
15150
|
set_style(div11, "display", "none");
|
|
@@ -15171,11 +15177,11 @@ function create_fragment74(ctx) {
|
|
|
15171
15177
|
append(div3, div2);
|
|
15172
15178
|
append(div3, t6);
|
|
15173
15179
|
mount_component(strokecolor0, div3, null);
|
|
15174
|
-
ctx[
|
|
15180
|
+
ctx[50](div3);
|
|
15175
15181
|
append(div11, t7);
|
|
15176
15182
|
append(div11, div4);
|
|
15177
15183
|
mount_component(textcolor, div4, null);
|
|
15178
|
-
ctx[
|
|
15184
|
+
ctx[51](div4);
|
|
15179
15185
|
append(div11, t8);
|
|
15180
15186
|
append(div11, div7);
|
|
15181
15187
|
mount_component(selectshapes, div7, null);
|
|
@@ -15187,7 +15193,7 @@ function create_fragment74(ctx) {
|
|
|
15187
15193
|
append(div7, div6);
|
|
15188
15194
|
append(div7, t12);
|
|
15189
15195
|
mount_component(strokecolor1, div7, null);
|
|
15190
|
-
ctx[
|
|
15196
|
+
ctx[52](div7);
|
|
15191
15197
|
append(div11, t13);
|
|
15192
15198
|
append(div11, div9);
|
|
15193
15199
|
append(div9, div8);
|
|
@@ -15195,7 +15201,7 @@ function create_fragment74(ctx) {
|
|
|
15195
15201
|
if_block4.m(div8, null);
|
|
15196
15202
|
append(div9, t14);
|
|
15197
15203
|
mount_component(erasersize, div9, null);
|
|
15198
|
-
ctx[
|
|
15204
|
+
ctx[53](div9);
|
|
15199
15205
|
append(div11, t15);
|
|
15200
15206
|
append(div11, div10);
|
|
15201
15207
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
@@ -15203,7 +15209,7 @@ function create_fragment74(ctx) {
|
|
|
15203
15209
|
each_blocks[i].m(div10, null);
|
|
15204
15210
|
}
|
|
15205
15211
|
}
|
|
15206
|
-
ctx[
|
|
15212
|
+
ctx[55](div10);
|
|
15207
15213
|
current = true;
|
|
15208
15214
|
if (!mounted) {
|
|
15209
15215
|
dispose = [
|
|
@@ -15217,7 +15223,7 @@ function create_fragment74(ctx) {
|
|
|
15217
15223
|
null,
|
|
15218
15224
|
div0,
|
|
15219
15225
|
/*top*/
|
|
15220
|
-
ctx[
|
|
15226
|
+
ctx[27]
|
|
15221
15227
|
))
|
|
15222
15228
|
];
|
|
15223
15229
|
mounted = true;
|
|
@@ -15248,9 +15254,9 @@ function create_fragment74(ctx) {
|
|
|
15248
15254
|
});
|
|
15249
15255
|
check_outros();
|
|
15250
15256
|
}
|
|
15251
|
-
if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items,
|
|
15252
|
-
|
|
15253
|
-
|
|
15257
|
+
if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, pencilType, pencil_panel, text_panel, app, t, shapes_panel, eraserType, hasAppliancePlugin, eraser_panel*/
|
|
15258
|
+
1092582531 | dirty[1] & /*selector, pencil, text, eraser, clear, hand, laserPointer*/
|
|
15259
|
+
127) {
|
|
15254
15260
|
each_value_1 = /*items*/
|
|
15255
15261
|
ctx2[7];
|
|
15256
15262
|
let i;
|
|
@@ -15489,9 +15495,9 @@ function create_fragment74(ctx) {
|
|
|
15489
15495
|
ctx2[3];
|
|
15490
15496
|
erasersize.$set(erasersize_changes);
|
|
15491
15497
|
if (dirty[0] & /*$apps, theme, $status, app*/
|
|
15492
|
-
|
|
15498
|
+
100663299) {
|
|
15493
15499
|
each_value = /*$apps*/
|
|
15494
|
-
ctx2[
|
|
15500
|
+
ctx2[25];
|
|
15495
15501
|
let i;
|
|
15496
15502
|
for (i = 0; i < each_value.length; i += 1) {
|
|
15497
15503
|
const child_ctx = get_each_context4(ctx2, each_value, i);
|
|
@@ -15509,12 +15515,12 @@ function create_fragment74(ctx) {
|
|
|
15509
15515
|
each_blocks.length = each_value.length;
|
|
15510
15516
|
}
|
|
15511
15517
|
if (!current || dirty[0] & /*$apps*/
|
|
15512
|
-
|
|
15518
|
+
33554432) {
|
|
15513
15519
|
set_style(
|
|
15514
15520
|
div10,
|
|
15515
15521
|
"--n",
|
|
15516
15522
|
/*$apps*/
|
|
15517
|
-
ctx2[
|
|
15523
|
+
ctx2[25].length
|
|
15518
15524
|
);
|
|
15519
15525
|
}
|
|
15520
15526
|
},
|
|
@@ -15579,19 +15585,19 @@ function create_fragment74(ctx) {
|
|
|
15579
15585
|
if_block3.d();
|
|
15580
15586
|
destroy_component(strokewidth0);
|
|
15581
15587
|
destroy_component(strokecolor0);
|
|
15582
|
-
ctx[49](null);
|
|
15583
|
-
destroy_component(textcolor);
|
|
15584
15588
|
ctx[50](null);
|
|
15589
|
+
destroy_component(textcolor);
|
|
15590
|
+
ctx[51](null);
|
|
15585
15591
|
destroy_component(selectshapes);
|
|
15586
15592
|
destroy_component(strokewidth1);
|
|
15587
15593
|
destroy_component(strokecolor1);
|
|
15588
|
-
ctx[
|
|
15594
|
+
ctx[52](null);
|
|
15589
15595
|
if (if_block4)
|
|
15590
15596
|
if_block4.d();
|
|
15591
15597
|
destroy_component(erasersize);
|
|
15592
|
-
ctx[
|
|
15598
|
+
ctx[53](null);
|
|
15593
15599
|
destroy_each(each_blocks, detaching);
|
|
15594
|
-
ctx[
|
|
15600
|
+
ctx[55](null);
|
|
15595
15601
|
mounted = false;
|
|
15596
15602
|
run_all(dispose);
|
|
15597
15603
|
}
|
|
@@ -15607,17 +15613,18 @@ function instance74($$self, $$props, $$invalidate) {
|
|
|
15607
15613
|
let status;
|
|
15608
15614
|
let max_scroll;
|
|
15609
15615
|
let hasAppliancePlugin;
|
|
15616
|
+
let showLaserPen;
|
|
15610
15617
|
let hasUseLaserPen;
|
|
15611
15618
|
let hasUseMarkPen;
|
|
15612
15619
|
let pencilType;
|
|
15613
15620
|
let hasUseEraserBitmap;
|
|
15614
15621
|
let eraserType;
|
|
15615
15622
|
let $top;
|
|
15616
|
-
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(
|
|
15617
|
-
let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(
|
|
15623
|
+
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(48, $memberState = $$value)), memberState);
|
|
15624
|
+
let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(49, $scroll_height = $$value)), scroll_height);
|
|
15618
15625
|
let $apps;
|
|
15619
|
-
let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(
|
|
15620
|
-
component_subscribe($$self, apps, ($$value) => $$invalidate(
|
|
15626
|
+
let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(26, $status = $$value)), status);
|
|
15627
|
+
component_subscribe($$self, apps, ($$value) => $$invalidate(25, $apps = $$value));
|
|
15621
15628
|
$$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
|
|
15622
15629
|
$$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
|
|
15623
15630
|
$$self.$$.on_destroy.push(() => $$unsubscribe_status());
|
|
@@ -15640,7 +15647,7 @@ function instance74($$self, $$props, $$invalidate) {
|
|
|
15640
15647
|
let eraser_panel;
|
|
15641
15648
|
let btn_props;
|
|
15642
15649
|
let top = writable(0);
|
|
15643
|
-
component_subscribe($$self, top, (value) => $$invalidate(
|
|
15650
|
+
component_subscribe($$self, top, (value) => $$invalidate(57, $top = value));
|
|
15644
15651
|
function scroll_up() {
|
|
15645
15652
|
set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
|
|
15646
15653
|
}
|
|
@@ -15786,7 +15793,7 @@ function instance74($$self, $$props, $$invalidate) {
|
|
|
15786
15793
|
if ("scroll_height" in $$props2)
|
|
15787
15794
|
$$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
|
|
15788
15795
|
if ("computed_height" in $$props2)
|
|
15789
|
-
$$invalidate(
|
|
15796
|
+
$$invalidate(43, computed_height = $$props2.computed_height);
|
|
15790
15797
|
if ("scrollable" in $$props2)
|
|
15791
15798
|
$$invalidate(5, scrollable = $$props2.scrollable);
|
|
15792
15799
|
if ("placement" in $$props2)
|
|
@@ -15799,6 +15806,7 @@ function instance74($$self, $$props, $$invalidate) {
|
|
|
15799
15806
|
$$invalidate(9, colors2 = $$props2.colors);
|
|
15800
15807
|
};
|
|
15801
15808
|
$$self.$$.update = () => {
|
|
15809
|
+
var _a;
|
|
15802
15810
|
if ($$self.$$.dirty[0] & /*theme, disabled, placement*/
|
|
15803
15811
|
74) {
|
|
15804
15812
|
$$invalidate(17, btn_props = {
|
|
@@ -15815,12 +15823,12 @@ function instance74($$self, $$props, $$invalidate) {
|
|
|
15815
15823
|
}
|
|
15816
15824
|
if ($$self.$$.dirty[0] & /*app*/
|
|
15817
15825
|
1) {
|
|
15818
|
-
$$invalidate(
|
|
15826
|
+
$$invalidate(47, hotkeys = app == null ? void 0 : app.hotKeys);
|
|
15819
15827
|
}
|
|
15820
15828
|
if ($$self.$$.dirty[0] & /*t*/
|
|
15821
15829
|
2048 | $$self.$$.dirty[1] & /*hotkeys*/
|
|
15822
|
-
|
|
15823
|
-
$$invalidate(
|
|
15830
|
+
65536) {
|
|
15831
|
+
$$invalidate(24, c = {
|
|
15824
15832
|
clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
|
|
15825
15833
|
selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
|
|
15826
15834
|
pencil: tooltip(t.pencil, hotkeys == null ? void 0 : hotkeys.changeToPencil),
|
|
@@ -15832,46 +15840,50 @@ function instance74($$self, $$props, $$invalidate) {
|
|
|
15832
15840
|
}
|
|
15833
15841
|
if ($$self.$$.dirty[0] & /*app*/
|
|
15834
15842
|
1) {
|
|
15835
|
-
$$subscribe_memberState($$invalidate(
|
|
15843
|
+
$$subscribe_memberState($$invalidate(23, memberState = app == null ? void 0 : app.memberState));
|
|
15836
15844
|
}
|
|
15837
15845
|
if ($$self.$$.dirty[1] & /*$memberState*/
|
|
15838
|
-
|
|
15846
|
+
131072) {
|
|
15839
15847
|
$$invalidate(19, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
|
|
15840
15848
|
}
|
|
15841
15849
|
if ($$self.$$.dirty[0] & /*app*/
|
|
15842
15850
|
1) {
|
|
15843
|
-
$$subscribe_status($$invalidate(
|
|
15851
|
+
$$subscribe_status($$invalidate(22, status = app == null ? void 0 : app.appsStatus));
|
|
15844
15852
|
}
|
|
15845
15853
|
if ($$self.$$.dirty[0] & /*scrollable*/
|
|
15846
15854
|
32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
|
|
15847
|
-
|
|
15855
|
+
266240) {
|
|
15848
15856
|
max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
|
|
15849
15857
|
}
|
|
15850
15858
|
if ($$self.$$.dirty[0] & /*app*/
|
|
15851
15859
|
1) {
|
|
15852
15860
|
$$invalidate(10, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
|
|
15853
15861
|
}
|
|
15862
|
+
if ($$self.$$.dirty[0] & /*app*/
|
|
15863
|
+
1) {
|
|
15864
|
+
$$invalidate(21, showLaserPen = (app == null ? void 0 : app.appliancePlugin) && !((_a = app == null ? void 0 : app.appliancePlugin.currentManager) == null ? void 0 : _a.pluginOptions.extras.useSimple) || false);
|
|
15865
|
+
}
|
|
15854
15866
|
if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
|
|
15855
15867
|
1024 | $$self.$$.dirty[1] & /*$memberState*/
|
|
15856
|
-
|
|
15857
|
-
$$invalidate(
|
|
15868
|
+
131072) {
|
|
15869
|
+
$$invalidate(46, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
|
|
15858
15870
|
}
|
|
15859
15871
|
if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
|
|
15860
15872
|
1024 | $$self.$$.dirty[1] & /*$memberState*/
|
|
15861
|
-
|
|
15862
|
-
$$invalidate(
|
|
15873
|
+
131072) {
|
|
15874
|
+
$$invalidate(45, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
|
|
15863
15875
|
}
|
|
15864
15876
|
if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
|
|
15865
|
-
|
|
15877
|
+
49152) {
|
|
15866
15878
|
$$invalidate(20, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
|
|
15867
15879
|
}
|
|
15868
15880
|
if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
|
|
15869
15881
|
1024 | $$self.$$.dirty[1] & /*$memberState*/
|
|
15870
|
-
|
|
15871
|
-
$$invalidate(
|
|
15882
|
+
131072) {
|
|
15883
|
+
$$invalidate(44, hasUseEraserBitmap = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.isLine) === false);
|
|
15872
15884
|
}
|
|
15873
15885
|
if ($$self.$$.dirty[1] & /*hasUseEraserBitmap*/
|
|
15874
|
-
|
|
15886
|
+
8192) {
|
|
15875
15887
|
$$invalidate(18, eraserType = hasUseEraserBitmap ? "pencilEraser" : "eraser");
|
|
15876
15888
|
}
|
|
15877
15889
|
};
|
|
@@ -15897,6 +15909,7 @@ function instance74($$self, $$props, $$invalidate) {
|
|
|
15897
15909
|
eraserType,
|
|
15898
15910
|
appliance,
|
|
15899
15911
|
pencilType,
|
|
15912
|
+
showLaserPen,
|
|
15900
15913
|
status,
|
|
15901
15914
|
memberState,
|
|
15902
15915
|
c,
|
|
@@ -15948,7 +15961,7 @@ var Contents = class extends SvelteComponent {
|
|
|
15948
15961
|
language: 2,
|
|
15949
15962
|
disabled: 3,
|
|
15950
15963
|
scroll_height: 4,
|
|
15951
|
-
computed_height:
|
|
15964
|
+
computed_height: 43,
|
|
15952
15965
|
scrollable: 5,
|
|
15953
15966
|
placement: 6,
|
|
15954
15967
|
items: 7,
|