@netless/fastboard-ui 0.3.13 → 0.3.14
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 +120 -84
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +120 -84
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +120 -84
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +4 -4
- package/src/components/PageControl/PageControl.svelte +2 -1
- package/src/components/RedoUndo/RedoUndo.svelte +2 -1
- package/src/components/Toolbar/Toolbar.svelte +2 -1
- package/src/components/ZoomControl/ZoomControl.svelte +2 -1
package/dist/index.js
CHANGED
|
@@ -5185,7 +5185,7 @@ function create_default_slot_2(ctx) {
|
|
|
5185
5185
|
ctx2[2]
|
|
5186
5186
|
];
|
|
5187
5187
|
if (dirty & /*$$scope, theme*/
|
|
5188
|
-
|
|
5188
|
+
524289) {
|
|
5189
5189
|
icon_changes.$$scope = { dirty, ctx: ctx2 };
|
|
5190
5190
|
}
|
|
5191
5191
|
icon.$set(icon_changes);
|
|
@@ -5280,7 +5280,7 @@ function create_default_slot(ctx) {
|
|
|
5280
5280
|
ctx2[2]
|
|
5281
5281
|
];
|
|
5282
5282
|
if (dirty & /*$$scope, theme*/
|
|
5283
|
-
|
|
5283
|
+
524289) {
|
|
5284
5284
|
icon_changes.$$scope = { dirty, ctx: ctx2 };
|
|
5285
5285
|
}
|
|
5286
5286
|
icon.$set(icon_changes);
|
|
@@ -5330,7 +5330,7 @@ function create_fragment50(ctx) {
|
|
|
5330
5330
|
button0.$on(
|
|
5331
5331
|
"click",
|
|
5332
5332
|
/*undo*/
|
|
5333
|
-
ctx[
|
|
5333
|
+
ctx[10]
|
|
5334
5334
|
);
|
|
5335
5335
|
button1 = new Button_default({
|
|
5336
5336
|
props: {
|
|
@@ -5355,7 +5355,7 @@ function create_fragment50(ctx) {
|
|
|
5355
5355
|
button1.$on(
|
|
5356
5356
|
"click",
|
|
5357
5357
|
/*redo*/
|
|
5358
|
-
ctx[
|
|
5358
|
+
ctx[11]
|
|
5359
5359
|
);
|
|
5360
5360
|
return {
|
|
5361
5361
|
c() {
|
|
@@ -5388,7 +5388,7 @@ function create_fragment50(ctx) {
|
|
|
5388
5388
|
button0_changes.content = /*t*/
|
|
5389
5389
|
ctx2[7].undo;
|
|
5390
5390
|
if (dirty & /*$$scope, icons, type, theme*/
|
|
5391
|
-
|
|
5391
|
+
524295) {
|
|
5392
5392
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
5393
5393
|
}
|
|
5394
5394
|
button0.$set(button0_changes);
|
|
@@ -5406,7 +5406,7 @@ function create_fragment50(ctx) {
|
|
|
5406
5406
|
button1_changes.content = /*t*/
|
|
5407
5407
|
ctx2[7].redo;
|
|
5408
5408
|
if (dirty & /*$$scope, icons, type, theme*/
|
|
5409
|
-
|
|
5409
|
+
524295) {
|
|
5410
5410
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
5411
5411
|
}
|
|
5412
5412
|
button1.$set(button1_changes);
|
|
@@ -5446,17 +5446,20 @@ var i18n = {
|
|
|
5446
5446
|
var name = "fastboard-redo-undo";
|
|
5447
5447
|
function instance50($$self, $$props, $$invalidate) {
|
|
5448
5448
|
let writable2;
|
|
5449
|
+
let phase;
|
|
5449
5450
|
let disabled;
|
|
5450
5451
|
let t;
|
|
5451
5452
|
let undoSteps;
|
|
5452
5453
|
let redoSteps;
|
|
5453
5454
|
let undo_disabled;
|
|
5454
5455
|
let redo_disabled;
|
|
5455
|
-
let $redoSteps, $$unsubscribe_redoSteps = noop, $$subscribe_redoSteps = () => ($$unsubscribe_redoSteps(), $$unsubscribe_redoSteps = subscribe(redoSteps, ($$value) => $$invalidate(
|
|
5456
|
-
let $undoSteps, $$unsubscribe_undoSteps = noop, $$subscribe_undoSteps = () => ($$unsubscribe_undoSteps(), $$unsubscribe_undoSteps = subscribe(undoSteps, ($$value) => $$invalidate(
|
|
5457
|
-
let $
|
|
5456
|
+
let $redoSteps, $$unsubscribe_redoSteps = noop, $$subscribe_redoSteps = () => ($$unsubscribe_redoSteps(), $$unsubscribe_redoSteps = subscribe(redoSteps, ($$value) => $$invalidate(15, $redoSteps = $$value)), redoSteps);
|
|
5457
|
+
let $undoSteps, $$unsubscribe_undoSteps = noop, $$subscribe_undoSteps = () => ($$unsubscribe_undoSteps(), $$unsubscribe_undoSteps = subscribe(undoSteps, ($$value) => $$invalidate(16, $undoSteps = $$value)), undoSteps);
|
|
5458
|
+
let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(17, $phase = $$value)), phase);
|
|
5459
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(18, $writable = $$value)), writable2);
|
|
5458
5460
|
$$self.$$.on_destroy.push(() => $$unsubscribe_redoSteps());
|
|
5459
5461
|
$$self.$$.on_destroy.push(() => $$unsubscribe_undoSteps());
|
|
5462
|
+
$$self.$$.on_destroy.push(() => $$unsubscribe_phase());
|
|
5460
5463
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
5461
5464
|
let { app = null } = $$props;
|
|
5462
5465
|
let { theme = "light" } = $$props;
|
|
@@ -5471,45 +5474,49 @@ function instance50($$self, $$props, $$invalidate) {
|
|
|
5471
5474
|
}
|
|
5472
5475
|
$$self.$$set = ($$props2) => {
|
|
5473
5476
|
if ("app" in $$props2)
|
|
5474
|
-
$$invalidate(
|
|
5477
|
+
$$invalidate(12, app = $$props2.app);
|
|
5475
5478
|
if ("theme" in $$props2)
|
|
5476
5479
|
$$invalidate(0, theme = $$props2.theme);
|
|
5477
5480
|
if ("language" in $$props2)
|
|
5478
|
-
$$invalidate(
|
|
5481
|
+
$$invalidate(13, language = $$props2.language);
|
|
5479
5482
|
if ("icons" in $$props2)
|
|
5480
5483
|
$$invalidate(1, icons = $$props2.icons);
|
|
5481
5484
|
};
|
|
5482
5485
|
$$self.$$.update = () => {
|
|
5483
5486
|
if ($$self.$$.dirty & /*app*/
|
|
5484
|
-
|
|
5485
|
-
$$subscribe_writable($$invalidate(
|
|
5487
|
+
4096) {
|
|
5488
|
+
$$subscribe_writable($$invalidate(9, writable2 = app == null ? void 0 : app.writable));
|
|
5486
5489
|
}
|
|
5487
|
-
if ($$self.$$.dirty &
|
|
5488
|
-
|
|
5489
|
-
$$invalidate(
|
|
5490
|
+
if ($$self.$$.dirty & /*app*/
|
|
5491
|
+
4096) {
|
|
5492
|
+
$$subscribe_phase($$invalidate(8, phase = app == null ? void 0 : app.phase));
|
|
5493
|
+
}
|
|
5494
|
+
if ($$self.$$.dirty & /*$writable, $phase*/
|
|
5495
|
+
393216) {
|
|
5496
|
+
$$invalidate(14, disabled = !($writable && $phase === "connected"));
|
|
5490
5497
|
}
|
|
5491
5498
|
if ($$self.$$.dirty & /*language*/
|
|
5492
|
-
|
|
5499
|
+
8192) {
|
|
5493
5500
|
$$invalidate(7, t = i18n[language]);
|
|
5494
5501
|
}
|
|
5495
5502
|
if ($$self.$$.dirty & /*disabled*/
|
|
5496
|
-
|
|
5503
|
+
16384) {
|
|
5497
5504
|
$$invalidate(2, type = disabled ? "disable" : "normal");
|
|
5498
5505
|
}
|
|
5499
5506
|
if ($$self.$$.dirty & /*app*/
|
|
5500
|
-
|
|
5507
|
+
4096) {
|
|
5501
5508
|
$$subscribe_undoSteps($$invalidate(6, undoSteps = app == null ? void 0 : app.canUndoSteps));
|
|
5502
5509
|
}
|
|
5503
5510
|
if ($$self.$$.dirty & /*app*/
|
|
5504
|
-
|
|
5511
|
+
4096) {
|
|
5505
5512
|
$$subscribe_redoSteps($$invalidate(5, redoSteps = app == null ? void 0 : app.canRedoSteps));
|
|
5506
5513
|
}
|
|
5507
5514
|
if ($$self.$$.dirty & /*disabled, $undoSteps*/
|
|
5508
|
-
|
|
5515
|
+
81920) {
|
|
5509
5516
|
$$invalidate(4, undo_disabled = disabled || !$undoSteps);
|
|
5510
5517
|
}
|
|
5511
5518
|
if ($$self.$$.dirty & /*disabled, $redoSteps*/
|
|
5512
|
-
|
|
5519
|
+
49152) {
|
|
5513
5520
|
$$invalidate(3, redo_disabled = disabled || !$redoSteps);
|
|
5514
5521
|
}
|
|
5515
5522
|
};
|
|
@@ -5522,6 +5529,7 @@ function instance50($$self, $$props, $$invalidate) {
|
|
|
5522
5529
|
redoSteps,
|
|
5523
5530
|
undoSteps,
|
|
5524
5531
|
t,
|
|
5532
|
+
phase,
|
|
5525
5533
|
writable2,
|
|
5526
5534
|
undo,
|
|
5527
5535
|
redo,
|
|
@@ -5530,6 +5538,7 @@ function instance50($$self, $$props, $$invalidate) {
|
|
|
5530
5538
|
disabled,
|
|
5531
5539
|
$redoSteps,
|
|
5532
5540
|
$undoSteps,
|
|
5541
|
+
$phase,
|
|
5533
5542
|
$writable
|
|
5534
5543
|
];
|
|
5535
5544
|
}
|
|
@@ -5537,9 +5546,9 @@ var RedoUndo = class extends SvelteComponent {
|
|
|
5537
5546
|
constructor(options) {
|
|
5538
5547
|
super();
|
|
5539
5548
|
init(this, options, instance50, create_fragment50, safe_not_equal, {
|
|
5540
|
-
app:
|
|
5549
|
+
app: 12,
|
|
5541
5550
|
theme: 0,
|
|
5542
|
-
language:
|
|
5551
|
+
language: 13,
|
|
5543
5552
|
icons: 1
|
|
5544
5553
|
});
|
|
5545
5554
|
}
|
|
@@ -5622,7 +5631,7 @@ function create_default_slot_4(ctx) {
|
|
|
5622
5631
|
ctx2[5]
|
|
5623
5632
|
];
|
|
5624
5633
|
if (dirty & /*$$scope, theme*/
|
|
5625
|
-
|
|
5634
|
+
1048577) {
|
|
5626
5635
|
icon_changes.$$scope = { dirty, ctx: ctx2 };
|
|
5627
5636
|
}
|
|
5628
5637
|
icon.$set(icon_changes);
|
|
@@ -5778,7 +5787,7 @@ function create_default_slot_22(ctx) {
|
|
|
5778
5787
|
ctx2[5]
|
|
5779
5788
|
];
|
|
5780
5789
|
if (dirty & /*$$scope, theme*/
|
|
5781
|
-
|
|
5790
|
+
1048577) {
|
|
5782
5791
|
icon_changes.$$scope = { dirty, ctx: ctx2 };
|
|
5783
5792
|
}
|
|
5784
5793
|
icon.$set(icon_changes);
|
|
@@ -5873,7 +5882,7 @@ function create_default_slot2(ctx) {
|
|
|
5873
5882
|
ctx2[5]
|
|
5874
5883
|
];
|
|
5875
5884
|
if (dirty & /*$$scope, theme*/
|
|
5876
|
-
|
|
5885
|
+
1048577) {
|
|
5877
5886
|
icon_changes.$$scope = { dirty, ctx: ctx2 };
|
|
5878
5887
|
}
|
|
5879
5888
|
icon.$set(icon_changes);
|
|
@@ -5928,7 +5937,7 @@ function create_fragment51(ctx) {
|
|
|
5928
5937
|
button0.$on(
|
|
5929
5938
|
"click",
|
|
5930
5939
|
/*prevPage*/
|
|
5931
|
-
ctx[
|
|
5940
|
+
ctx[13]
|
|
5932
5941
|
);
|
|
5933
5942
|
function select_block_type(ctx2, dirty) {
|
|
5934
5943
|
if (
|
|
@@ -5964,7 +5973,7 @@ function create_fragment51(ctx) {
|
|
|
5964
5973
|
button1.$on(
|
|
5965
5974
|
"click",
|
|
5966
5975
|
/*nextPage*/
|
|
5967
|
-
ctx[
|
|
5976
|
+
ctx[14]
|
|
5968
5977
|
);
|
|
5969
5978
|
button2 = new Button_default({
|
|
5970
5979
|
props: {
|
|
@@ -5989,7 +5998,7 @@ function create_fragment51(ctx) {
|
|
|
5989
5998
|
button2.$on(
|
|
5990
5999
|
"click",
|
|
5991
6000
|
/*addPage*/
|
|
5992
|
-
ctx[
|
|
6001
|
+
ctx[15]
|
|
5993
6002
|
);
|
|
5994
6003
|
return {
|
|
5995
6004
|
c() {
|
|
@@ -6034,7 +6043,7 @@ function create_fragment51(ctx) {
|
|
|
6034
6043
|
button0_changes.content = /*t*/
|
|
6035
6044
|
ctx2[10].prev;
|
|
6036
6045
|
if (dirty & /*$$scope, icons, type, theme*/
|
|
6037
|
-
|
|
6046
|
+
1048611) {
|
|
6038
6047
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6039
6048
|
}
|
|
6040
6049
|
button0.$set(button0_changes);
|
|
@@ -6067,7 +6076,7 @@ function create_fragment51(ctx) {
|
|
|
6067
6076
|
button1_changes.content = /*t*/
|
|
6068
6077
|
ctx2[10].next;
|
|
6069
6078
|
if (dirty & /*$$scope, icons, type, theme*/
|
|
6070
|
-
|
|
6079
|
+
1048611) {
|
|
6071
6080
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6072
6081
|
}
|
|
6073
6082
|
button1.$set(button1_changes);
|
|
@@ -6085,7 +6094,7 @@ function create_fragment51(ctx) {
|
|
|
6085
6094
|
button2_changes.content = /*t*/
|
|
6086
6095
|
ctx2[10].add;
|
|
6087
6096
|
if (dirty & /*$$scope, icons, type, theme*/
|
|
6088
|
-
|
|
6097
|
+
1048611) {
|
|
6089
6098
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6090
6099
|
}
|
|
6091
6100
|
button2.$set(button2_changes);
|
|
@@ -6134,6 +6143,7 @@ var i18n2 = {
|
|
|
6134
6143
|
var name2 = "fastboard-page-control";
|
|
6135
6144
|
function instance51($$self, $$props, $$invalidate) {
|
|
6136
6145
|
let writable2;
|
|
6146
|
+
let phase;
|
|
6137
6147
|
let disabled;
|
|
6138
6148
|
let t;
|
|
6139
6149
|
let index;
|
|
@@ -6142,9 +6152,11 @@ function instance51($$self, $$props, $$invalidate) {
|
|
|
6142
6152
|
let next_disabled;
|
|
6143
6153
|
let $length, $$unsubscribe_length = noop, $$subscribe_length = () => ($$unsubscribe_length(), $$unsubscribe_length = subscribe(length, ($$value) => $$invalidate(3, $length = $$value)), length);
|
|
6144
6154
|
let $index, $$unsubscribe_index = noop, $$subscribe_index = () => ($$unsubscribe_index(), $$unsubscribe_index = subscribe(index, ($$value) => $$invalidate(4, $index = $$value)), index);
|
|
6145
|
-
let $
|
|
6155
|
+
let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(18, $phase = $$value)), phase);
|
|
6156
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(19, $writable = $$value)), writable2);
|
|
6146
6157
|
$$self.$$.on_destroy.push(() => $$unsubscribe_length());
|
|
6147
6158
|
$$self.$$.on_destroy.push(() => $$unsubscribe_index());
|
|
6159
|
+
$$self.$$.on_destroy.push(() => $$unsubscribe_phase());
|
|
6148
6160
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
6149
6161
|
let { app = null } = $$props;
|
|
6150
6162
|
let { theme = "light" } = $$props;
|
|
@@ -6163,25 +6175,29 @@ function instance51($$self, $$props, $$invalidate) {
|
|
|
6163
6175
|
}
|
|
6164
6176
|
$$self.$$set = ($$props2) => {
|
|
6165
6177
|
if ("app" in $$props2)
|
|
6166
|
-
$$invalidate(
|
|
6178
|
+
$$invalidate(16, app = $$props2.app);
|
|
6167
6179
|
if ("theme" in $$props2)
|
|
6168
6180
|
$$invalidate(0, theme = $$props2.theme);
|
|
6169
6181
|
if ("language" in $$props2)
|
|
6170
|
-
$$invalidate(
|
|
6182
|
+
$$invalidate(17, language = $$props2.language);
|
|
6171
6183
|
if ("icons" in $$props2)
|
|
6172
6184
|
$$invalidate(1, icons = $$props2.icons);
|
|
6173
6185
|
};
|
|
6174
6186
|
$$self.$$.update = () => {
|
|
6175
6187
|
if ($$self.$$.dirty & /*app*/
|
|
6176
|
-
|
|
6177
|
-
$$subscribe_writable($$invalidate(
|
|
6188
|
+
65536) {
|
|
6189
|
+
$$subscribe_writable($$invalidate(12, writable2 = app == null ? void 0 : app.writable));
|
|
6178
6190
|
}
|
|
6179
|
-
if ($$self.$$.dirty &
|
|
6180
|
-
|
|
6181
|
-
$$invalidate(
|
|
6191
|
+
if ($$self.$$.dirty & /*app*/
|
|
6192
|
+
65536) {
|
|
6193
|
+
$$subscribe_phase($$invalidate(11, phase = app == null ? void 0 : app.phase));
|
|
6194
|
+
}
|
|
6195
|
+
if ($$self.$$.dirty & /*$writable, $phase*/
|
|
6196
|
+
786432) {
|
|
6197
|
+
$$invalidate(2, disabled = !($writable && $phase === "connected"));
|
|
6182
6198
|
}
|
|
6183
6199
|
if ($$self.$$.dirty & /*language*/
|
|
6184
|
-
|
|
6200
|
+
131072) {
|
|
6185
6201
|
$$invalidate(10, t = i18n2[language]);
|
|
6186
6202
|
}
|
|
6187
6203
|
if ($$self.$$.dirty & /*disabled*/
|
|
@@ -6189,11 +6205,11 @@ function instance51($$self, $$props, $$invalidate) {
|
|
|
6189
6205
|
$$invalidate(5, type = disabled ? "disable" : "normal");
|
|
6190
6206
|
}
|
|
6191
6207
|
if ($$self.$$.dirty & /*app*/
|
|
6192
|
-
|
|
6208
|
+
65536) {
|
|
6193
6209
|
$$subscribe_index($$invalidate(9, index = app == null ? void 0 : app.sceneIndex));
|
|
6194
6210
|
}
|
|
6195
6211
|
if ($$self.$$.dirty & /*app*/
|
|
6196
|
-
|
|
6212
|
+
65536) {
|
|
6197
6213
|
$$subscribe_length($$invalidate(8, length = app == null ? void 0 : app.sceneLength));
|
|
6198
6214
|
}
|
|
6199
6215
|
if ($$self.$$.dirty & /*disabled, $index*/
|
|
@@ -6217,12 +6233,14 @@ function instance51($$self, $$props, $$invalidate) {
|
|
|
6217
6233
|
length,
|
|
6218
6234
|
index,
|
|
6219
6235
|
t,
|
|
6236
|
+
phase,
|
|
6220
6237
|
writable2,
|
|
6221
6238
|
prevPage,
|
|
6222
6239
|
nextPage,
|
|
6223
6240
|
addPage,
|
|
6224
6241
|
app,
|
|
6225
6242
|
language,
|
|
6243
|
+
$phase,
|
|
6226
6244
|
$writable
|
|
6227
6245
|
];
|
|
6228
6246
|
}
|
|
@@ -6230,9 +6248,9 @@ var PageControl = class extends SvelteComponent {
|
|
|
6230
6248
|
constructor(options) {
|
|
6231
6249
|
super();
|
|
6232
6250
|
init(this, options, instance51, create_fragment51, safe_not_equal, {
|
|
6233
|
-
app:
|
|
6251
|
+
app: 16,
|
|
6234
6252
|
theme: 0,
|
|
6235
|
-
language:
|
|
6253
|
+
language: 17,
|
|
6236
6254
|
icons: 1
|
|
6237
6255
|
});
|
|
6238
6256
|
}
|
|
@@ -6320,7 +6338,7 @@ function create_default_slot_42(ctx) {
|
|
|
6320
6338
|
ctx2[5]
|
|
6321
6339
|
];
|
|
6322
6340
|
if (dirty & /*$$scope, theme*/
|
|
6323
|
-
|
|
6341
|
+
524289) {
|
|
6324
6342
|
icon_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6325
6343
|
}
|
|
6326
6344
|
icon.$set(icon_changes);
|
|
@@ -6463,7 +6481,7 @@ function create_default_slot_23(ctx) {
|
|
|
6463
6481
|
ctx2[5]
|
|
6464
6482
|
];
|
|
6465
6483
|
if (dirty & /*$$scope, theme*/
|
|
6466
|
-
|
|
6484
|
+
524289) {
|
|
6467
6485
|
icon_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6468
6486
|
}
|
|
6469
6487
|
icon.$set(icon_changes);
|
|
@@ -6558,7 +6576,7 @@ function create_default_slot3(ctx) {
|
|
|
6558
6576
|
ctx2[5]
|
|
6559
6577
|
];
|
|
6560
6578
|
if (dirty & /*$$scope, theme*/
|
|
6561
|
-
|
|
6579
|
+
524289) {
|
|
6562
6580
|
icon_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6563
6581
|
}
|
|
6564
6582
|
icon.$set(icon_changes);
|
|
@@ -6613,7 +6631,7 @@ function create_fragment52(ctx) {
|
|
|
6613
6631
|
button0.$on(
|
|
6614
6632
|
"click",
|
|
6615
6633
|
/*plus*/
|
|
6616
|
-
ctx[
|
|
6634
|
+
ctx[12]
|
|
6617
6635
|
);
|
|
6618
6636
|
function select_block_type(ctx2, dirty) {
|
|
6619
6637
|
if (
|
|
@@ -6648,7 +6666,7 @@ function create_fragment52(ctx) {
|
|
|
6648
6666
|
button1.$on(
|
|
6649
6667
|
"click",
|
|
6650
6668
|
/*minus*/
|
|
6651
|
-
ctx[
|
|
6669
|
+
ctx[13]
|
|
6652
6670
|
);
|
|
6653
6671
|
button2 = new Button_default({
|
|
6654
6672
|
props: {
|
|
@@ -6673,7 +6691,7 @@ function create_fragment52(ctx) {
|
|
|
6673
6691
|
button2.$on(
|
|
6674
6692
|
"click",
|
|
6675
6693
|
/*reset*/
|
|
6676
|
-
ctx[
|
|
6694
|
+
ctx[14]
|
|
6677
6695
|
);
|
|
6678
6696
|
return {
|
|
6679
6697
|
c() {
|
|
@@ -6718,7 +6736,7 @@ function create_fragment52(ctx) {
|
|
|
6718
6736
|
button0_changes.content = /*t*/
|
|
6719
6737
|
ctx2[9].plus;
|
|
6720
6738
|
if (dirty & /*$$scope, icons, type, theme*/
|
|
6721
|
-
|
|
6739
|
+
524323) {
|
|
6722
6740
|
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6723
6741
|
}
|
|
6724
6742
|
button0.$set(button0_changes);
|
|
@@ -6751,7 +6769,7 @@ function create_fragment52(ctx) {
|
|
|
6751
6769
|
button1_changes.content = /*t*/
|
|
6752
6770
|
ctx2[9].minus;
|
|
6753
6771
|
if (dirty & /*$$scope, icons, type, theme*/
|
|
6754
|
-
|
|
6772
|
+
524323) {
|
|
6755
6773
|
button1_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6756
6774
|
}
|
|
6757
6775
|
button1.$set(button1_changes);
|
|
@@ -6769,7 +6787,7 @@ function create_fragment52(ctx) {
|
|
|
6769
6787
|
button2_changes.content = /*t*/
|
|
6770
6788
|
ctx2[9].reset;
|
|
6771
6789
|
if (dirty & /*$$scope, icons, type, theme*/
|
|
6772
|
-
|
|
6790
|
+
524323) {
|
|
6773
6791
|
button2_changes.$$scope = { dirty, ctx: ctx2 };
|
|
6774
6792
|
}
|
|
6775
6793
|
button2.$set(button2_changes);
|
|
@@ -6847,6 +6865,7 @@ function next_scale(scale, delta) {
|
|
|
6847
6865
|
var name3 = "fastboard-zoom-control";
|
|
6848
6866
|
function instance52($$self, $$props, $$invalidate) {
|
|
6849
6867
|
let writable2;
|
|
6868
|
+
let phase;
|
|
6850
6869
|
let disabled;
|
|
6851
6870
|
let t;
|
|
6852
6871
|
let camera;
|
|
@@ -6854,8 +6873,10 @@ function instance52($$self, $$props, $$invalidate) {
|
|
|
6854
6873
|
let plus_disabled;
|
|
6855
6874
|
let minus_disabled;
|
|
6856
6875
|
let $camera, $$unsubscribe_camera = noop, $$subscribe_camera = () => ($$unsubscribe_camera(), $$unsubscribe_camera = subscribe(camera, ($$value) => $$invalidate(4, $camera = $$value)), camera);
|
|
6857
|
-
let $
|
|
6876
|
+
let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(17, $phase = $$value)), phase);
|
|
6877
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(18, $writable = $$value)), writable2);
|
|
6858
6878
|
$$self.$$.on_destroy.push(() => $$unsubscribe_camera());
|
|
6879
|
+
$$self.$$.on_destroy.push(() => $$unsubscribe_phase());
|
|
6859
6880
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
6860
6881
|
let { app = null } = $$props;
|
|
6861
6882
|
let { theme = "light" } = $$props;
|
|
@@ -6881,26 +6902,30 @@ function instance52($$self, $$props, $$invalidate) {
|
|
|
6881
6902
|
}
|
|
6882
6903
|
$$self.$$set = ($$props2) => {
|
|
6883
6904
|
if ("app" in $$props2)
|
|
6884
|
-
$$invalidate(
|
|
6905
|
+
$$invalidate(15, app = $$props2.app);
|
|
6885
6906
|
if ("theme" in $$props2)
|
|
6886
6907
|
$$invalidate(0, theme = $$props2.theme);
|
|
6887
6908
|
if ("language" in $$props2)
|
|
6888
|
-
$$invalidate(
|
|
6909
|
+
$$invalidate(16, language = $$props2.language);
|
|
6889
6910
|
if ("icons" in $$props2)
|
|
6890
6911
|
$$invalidate(1, icons = $$props2.icons);
|
|
6891
6912
|
};
|
|
6892
6913
|
$$self.$$.update = () => {
|
|
6893
6914
|
var _a;
|
|
6894
6915
|
if ($$self.$$.dirty & /*app*/
|
|
6895
|
-
|
|
6896
|
-
$$subscribe_writable($$invalidate(
|
|
6916
|
+
32768) {
|
|
6917
|
+
$$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
|
|
6897
6918
|
}
|
|
6898
|
-
if ($$self.$$.dirty &
|
|
6899
|
-
|
|
6900
|
-
$$invalidate(
|
|
6919
|
+
if ($$self.$$.dirty & /*app*/
|
|
6920
|
+
32768) {
|
|
6921
|
+
$$subscribe_phase($$invalidate(10, phase = app == null ? void 0 : app.phase));
|
|
6922
|
+
}
|
|
6923
|
+
if ($$self.$$.dirty & /*$writable, $phase*/
|
|
6924
|
+
393216) {
|
|
6925
|
+
$$invalidate(3, disabled = !($writable && $phase === "connected"));
|
|
6901
6926
|
}
|
|
6902
6927
|
if ($$self.$$.dirty & /*language*/
|
|
6903
|
-
|
|
6928
|
+
65536) {
|
|
6904
6929
|
$$invalidate(9, t = i18n3[language]);
|
|
6905
6930
|
}
|
|
6906
6931
|
if ($$self.$$.dirty & /*disabled*/
|
|
@@ -6908,7 +6933,7 @@ function instance52($$self, $$props, $$invalidate) {
|
|
|
6908
6933
|
$$invalidate(5, type = disabled ? "disable" : "normal");
|
|
6909
6934
|
}
|
|
6910
6935
|
if ($$self.$$.dirty & /*app*/
|
|
6911
|
-
|
|
6936
|
+
32768) {
|
|
6912
6937
|
$$subscribe_camera($$invalidate(8, camera = app == null ? void 0 : app.camera));
|
|
6913
6938
|
}
|
|
6914
6939
|
if ($$self.$$.dirty & /*$camera*/
|
|
@@ -6935,12 +6960,14 @@ function instance52($$self, $$props, $$invalidate) {
|
|
|
6935
6960
|
plus_disabled,
|
|
6936
6961
|
camera,
|
|
6937
6962
|
t,
|
|
6963
|
+
phase,
|
|
6938
6964
|
writable2,
|
|
6939
6965
|
plus,
|
|
6940
6966
|
minus,
|
|
6941
6967
|
reset,
|
|
6942
6968
|
app,
|
|
6943
6969
|
language,
|
|
6970
|
+
$phase,
|
|
6944
6971
|
$writable
|
|
6945
6972
|
];
|
|
6946
6973
|
}
|
|
@@ -6948,9 +6975,9 @@ var ZoomControl = class extends SvelteComponent {
|
|
|
6948
6975
|
constructor(options) {
|
|
6949
6976
|
super();
|
|
6950
6977
|
init(this, options, instance52, create_fragment52, safe_not_equal, {
|
|
6951
|
-
app:
|
|
6978
|
+
app: 15,
|
|
6952
6979
|
theme: 0,
|
|
6953
|
-
language:
|
|
6980
|
+
language: 16,
|
|
6954
6981
|
icons: 1
|
|
6955
6982
|
});
|
|
6956
6983
|
}
|
|
@@ -13079,7 +13106,7 @@ function create_fragment68(ctx) {
|
|
|
13079
13106
|
),
|
|
13080
13107
|
scroll_height: (
|
|
13081
13108
|
/*scroll_height*/
|
|
13082
|
-
ctx[
|
|
13109
|
+
ctx[13]
|
|
13083
13110
|
),
|
|
13084
13111
|
computed_height: (
|
|
13085
13112
|
/*computed_height*/
|
|
@@ -13180,13 +13207,13 @@ function create_fragment68(ctx) {
|
|
|
13180
13207
|
input,
|
|
13181
13208
|
"change",
|
|
13182
13209
|
/*input_change_handler*/
|
|
13183
|
-
ctx[
|
|
13210
|
+
ctx[19]
|
|
13184
13211
|
),
|
|
13185
13212
|
action_destroyer(height.call(
|
|
13186
13213
|
null,
|
|
13187
13214
|
div1,
|
|
13188
13215
|
/*container_height*/
|
|
13189
|
-
ctx[
|
|
13216
|
+
ctx[12]
|
|
13190
13217
|
))
|
|
13191
13218
|
];
|
|
13192
13219
|
mounted = true;
|
|
@@ -13306,6 +13333,7 @@ function create_fragment68(ctx) {
|
|
|
13306
13333
|
var name6 = "fastboard-toolbar";
|
|
13307
13334
|
function instance68($$self, $$props, $$invalidate) {
|
|
13308
13335
|
let writable2;
|
|
13336
|
+
let phase;
|
|
13309
13337
|
let disabled;
|
|
13310
13338
|
let computed_height;
|
|
13311
13339
|
let scrollable;
|
|
@@ -13314,7 +13342,9 @@ function instance68($$self, $$props, $$invalidate) {
|
|
|
13314
13342
|
let hide_apps;
|
|
13315
13343
|
let $container_height;
|
|
13316
13344
|
let $scroll_height;
|
|
13317
|
-
let $
|
|
13345
|
+
let $phase, $$unsubscribe_phase = noop, $$subscribe_phase = () => ($$unsubscribe_phase(), $$unsubscribe_phase = subscribe(phase, ($$value) => $$invalidate(17, $phase = $$value)), phase);
|
|
13346
|
+
let $writable, $$unsubscribe_writable = noop, $$subscribe_writable = () => ($$unsubscribe_writable(), $$unsubscribe_writable = subscribe(writable2, ($$value) => $$invalidate(18, $writable = $$value)), writable2);
|
|
13347
|
+
$$self.$$.on_destroy.push(() => $$unsubscribe_phase());
|
|
13318
13348
|
$$self.$$.on_destroy.push(() => $$unsubscribe_writable());
|
|
13319
13349
|
let { app = null } = $$props;
|
|
13320
13350
|
let { theme = "light" } = $$props;
|
|
@@ -13323,9 +13353,9 @@ function instance68($$self, $$props, $$invalidate) {
|
|
|
13323
13353
|
const extra_height = (32 + 4 + 4) * 2;
|
|
13324
13354
|
let collapsed = false;
|
|
13325
13355
|
let container_height = writable(0);
|
|
13326
|
-
component_subscribe($$self, container_height, (value) => $$invalidate(
|
|
13356
|
+
component_subscribe($$self, container_height, (value) => $$invalidate(15, $container_height = value));
|
|
13327
13357
|
let scroll_height = writable(0);
|
|
13328
|
-
component_subscribe($$self, scroll_height, (value) => $$invalidate(
|
|
13358
|
+
component_subscribe($$self, scroll_height, (value) => $$invalidate(16, $scroll_height = value));
|
|
13329
13359
|
function input_change_handler() {
|
|
13330
13360
|
collapsed = this.checked;
|
|
13331
13361
|
$$invalidate(3, collapsed);
|
|
@@ -13338,36 +13368,40 @@ function instance68($$self, $$props, $$invalidate) {
|
|
|
13338
13368
|
if ("language" in $$props2)
|
|
13339
13369
|
$$invalidate(2, language = $$props2.language);
|
|
13340
13370
|
if ("config" in $$props2)
|
|
13341
|
-
$$invalidate(
|
|
13371
|
+
$$invalidate(14, config = $$props2.config);
|
|
13342
13372
|
};
|
|
13343
13373
|
$$self.$$.update = () => {
|
|
13344
13374
|
var _a;
|
|
13345
13375
|
if ($$self.$$.dirty & /*app*/
|
|
13346
13376
|
1) {
|
|
13347
|
-
$$subscribe_writable($$invalidate(
|
|
13377
|
+
$$subscribe_writable($$invalidate(11, writable2 = app == null ? void 0 : app.writable));
|
|
13348
13378
|
}
|
|
13349
|
-
if ($$self.$$.dirty &
|
|
13350
|
-
|
|
13351
|
-
$$invalidate(
|
|
13379
|
+
if ($$self.$$.dirty & /*app*/
|
|
13380
|
+
1) {
|
|
13381
|
+
$$subscribe_phase($$invalidate(10, phase = app == null ? void 0 : app.phase));
|
|
13382
|
+
}
|
|
13383
|
+
if ($$self.$$.dirty & /*$writable, $phase*/
|
|
13384
|
+
393216) {
|
|
13385
|
+
$$invalidate(9, disabled = !($writable && $phase === "connected"));
|
|
13352
13386
|
}
|
|
13353
13387
|
if ($$self.$$.dirty & /*$container_height, $scroll_height*/
|
|
13354
|
-
|
|
13388
|
+
98304) {
|
|
13355
13389
|
$$invalidate(8, computed_height = clamp($container_height, extra_height, $scroll_height + extra_height));
|
|
13356
13390
|
}
|
|
13357
13391
|
if ($$self.$$.dirty & /*$scroll_height, $container_height*/
|
|
13358
|
-
|
|
13392
|
+
98304) {
|
|
13359
13393
|
$$invalidate(7, scrollable = $scroll_height + extra_height > $container_height);
|
|
13360
13394
|
}
|
|
13361
13395
|
if ($$self.$$.dirty & /*config*/
|
|
13362
|
-
|
|
13396
|
+
16384) {
|
|
13363
13397
|
$$invalidate(6, placement = config.placement || "left");
|
|
13364
13398
|
}
|
|
13365
13399
|
if ($$self.$$.dirty & /*config*/
|
|
13366
|
-
|
|
13400
|
+
16384) {
|
|
13367
13401
|
$$invalidate(5, items = config.items || default_items);
|
|
13368
13402
|
}
|
|
13369
13403
|
if ($$self.$$.dirty & /*config*/
|
|
13370
|
-
|
|
13404
|
+
16384) {
|
|
13371
13405
|
$$invalidate(4, hide_apps = ((_a = config.apps) == null ? void 0 : _a.enable) === false);
|
|
13372
13406
|
}
|
|
13373
13407
|
};
|
|
@@ -13382,12 +13416,14 @@ function instance68($$self, $$props, $$invalidate) {
|
|
|
13382
13416
|
scrollable,
|
|
13383
13417
|
computed_height,
|
|
13384
13418
|
disabled,
|
|
13419
|
+
phase,
|
|
13385
13420
|
writable2,
|
|
13386
13421
|
container_height,
|
|
13387
13422
|
scroll_height,
|
|
13388
13423
|
config,
|
|
13389
13424
|
$container_height,
|
|
13390
13425
|
$scroll_height,
|
|
13426
|
+
$phase,
|
|
13391
13427
|
$writable,
|
|
13392
13428
|
input_change_handler
|
|
13393
13429
|
];
|
|
@@ -13399,7 +13435,7 @@ var Toolbar = class extends SvelteComponent {
|
|
|
13399
13435
|
app: 0,
|
|
13400
13436
|
theme: 1,
|
|
13401
13437
|
language: 2,
|
|
13402
|
-
config:
|
|
13438
|
+
config: 14
|
|
13403
13439
|
});
|
|
13404
13440
|
}
|
|
13405
13441
|
};
|