@netless/fastboard-ui 1.0.1-beta.0 → 1.0.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 +1126 -471
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1126 -471
- package/dist/index.mjs.map +1 -1
- package/dist/index.svelte.mjs +1101 -450
- package/dist/index.svelte.mjs.map +1 -1
- package/package.json +3 -3
- package/src/components/Icons/MarkPen.svelte +20 -0
- package/src/components/Icons/MarkPenFilled.svelte +20 -0
- package/src/components/Icons/index.ts +4 -0
- package/src/components/Toolbar/components/Contents.svelte +55 -17
- package/src/components/Toolbar/definitions/Pencil.svelte +5 -3
package/dist/index.mjs
CHANGED
|
@@ -504,7 +504,7 @@ function make_dirty(component, i) {
|
|
|
504
504
|
}
|
|
505
505
|
component.$$.dirty[i / 31 | 0] |= 1 << i % 31;
|
|
506
506
|
}
|
|
507
|
-
function init(component, options,
|
|
507
|
+
function init(component, options, instance76, create_fragment76, not_equal2, props, append_styles, dirty = [-1]) {
|
|
508
508
|
const parent_component = current_component;
|
|
509
509
|
set_current_component(component);
|
|
510
510
|
const $$ = component.$$ = {
|
|
@@ -530,7 +530,7 @@ function init(component, options, instance74, create_fragment74, not_equal2, pro
|
|
|
530
530
|
};
|
|
531
531
|
append_styles && append_styles($$.root);
|
|
532
532
|
let ready = false;
|
|
533
|
-
$$.ctx =
|
|
533
|
+
$$.ctx = instance76 ? instance76(component, options.props || {}, (i, ret, ...rest) => {
|
|
534
534
|
const value = rest.length ? rest[0] : ret;
|
|
535
535
|
if ($$.ctx && not_equal2($$.ctx[i], $$.ctx[i] = value)) {
|
|
536
536
|
if (!$$.skip_bound && $$.bound[i])
|
|
@@ -543,7 +543,7 @@ function init(component, options, instance74, create_fragment74, not_equal2, pro
|
|
|
543
543
|
$$.update();
|
|
544
544
|
ready = true;
|
|
545
545
|
run_all($$.before_update);
|
|
546
|
-
$$.fragment =
|
|
546
|
+
$$.fragment = create_fragment76 ? create_fragment76($$.ctx) : false;
|
|
547
547
|
if (options.target) {
|
|
548
548
|
if (options.hydrate) {
|
|
549
549
|
const nodes = children(options.target);
|
|
@@ -4510,6 +4510,158 @@ var LaserPenFilled = class extends SvelteComponent {
|
|
|
4510
4510
|
};
|
|
4511
4511
|
var LaserPenFilled_default = LaserPenFilled;
|
|
4512
4512
|
|
|
4513
|
+
// src/components/Icons/MarkPen.svelte
|
|
4514
|
+
function create_fragment51(ctx) {
|
|
4515
|
+
let svg;
|
|
4516
|
+
let g;
|
|
4517
|
+
let path;
|
|
4518
|
+
let svg_class_value;
|
|
4519
|
+
return {
|
|
4520
|
+
c() {
|
|
4521
|
+
svg = svg_element("svg");
|
|
4522
|
+
g = svg_element("g");
|
|
4523
|
+
path = svg_element("path");
|
|
4524
|
+
attr(path, "class", "fastboard-icon-stroke-color");
|
|
4525
|
+
attr(path, "d", "m15.95 2.39l5.657 5.657a1 1 0 0 1 0 1.414l-7.778 7.778l-2.122.707l-1.414 1.415a1 1 0 0 1-1.414 0l-4.243-4.243a1 1 0 0 1 0-1.414L6.05 12.29l.707-2.122l7.779-7.778a1 1 0 0 1 1.414 0m.707 3.536l-6.364 6.364l1.414 1.414l6.364-6.364zM4.283 16.886l2.828 2.828l-1.414 1.415l-4.243-1.415z");
|
|
4526
|
+
attr(g, "stroke-width", "1");
|
|
4527
|
+
attr(g, "stroke-linecap", "round");
|
|
4528
|
+
attr(g, "stroke-linejoin", "round");
|
|
4529
|
+
attr(g, "transform", "scale(0.85 0.9) translate(2, 0)");
|
|
4530
|
+
attr(svg, "fill", "none");
|
|
4531
|
+
attr(svg, "viewBox", "0 0 24 24");
|
|
4532
|
+
attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
|
|
4533
|
+
ctx[0]);
|
|
4534
|
+
toggle_class(
|
|
4535
|
+
svg,
|
|
4536
|
+
"is-active",
|
|
4537
|
+
/*active*/
|
|
4538
|
+
ctx[1]
|
|
4539
|
+
);
|
|
4540
|
+
},
|
|
4541
|
+
m(target, anchor) {
|
|
4542
|
+
insert(target, svg, anchor);
|
|
4543
|
+
append(svg, g);
|
|
4544
|
+
append(g, path);
|
|
4545
|
+
},
|
|
4546
|
+
p(ctx2, [dirty]) {
|
|
4547
|
+
if (dirty & /*theme*/
|
|
4548
|
+
1 && svg_class_value !== (svg_class_value = "fastboard-icon " + /*theme*/
|
|
4549
|
+
ctx2[0])) {
|
|
4550
|
+
attr(svg, "class", svg_class_value);
|
|
4551
|
+
}
|
|
4552
|
+
if (dirty & /*theme, active*/
|
|
4553
|
+
3) {
|
|
4554
|
+
toggle_class(
|
|
4555
|
+
svg,
|
|
4556
|
+
"is-active",
|
|
4557
|
+
/*active*/
|
|
4558
|
+
ctx2[1]
|
|
4559
|
+
);
|
|
4560
|
+
}
|
|
4561
|
+
},
|
|
4562
|
+
i: noop,
|
|
4563
|
+
o: noop,
|
|
4564
|
+
d(detaching) {
|
|
4565
|
+
if (detaching)
|
|
4566
|
+
detach(svg);
|
|
4567
|
+
}
|
|
4568
|
+
};
|
|
4569
|
+
}
|
|
4570
|
+
function instance51($$self, $$props, $$invalidate) {
|
|
4571
|
+
let { theme = "light" } = $$props;
|
|
4572
|
+
let { active = false } = $$props;
|
|
4573
|
+
$$self.$$set = ($$props2) => {
|
|
4574
|
+
if ("theme" in $$props2)
|
|
4575
|
+
$$invalidate(0, theme = $$props2.theme);
|
|
4576
|
+
if ("active" in $$props2)
|
|
4577
|
+
$$invalidate(1, active = $$props2.active);
|
|
4578
|
+
};
|
|
4579
|
+
return [theme, active];
|
|
4580
|
+
}
|
|
4581
|
+
var MarkPen = class extends SvelteComponent {
|
|
4582
|
+
constructor(options) {
|
|
4583
|
+
super();
|
|
4584
|
+
init(this, options, instance51, create_fragment51, safe_not_equal, { theme: 0, active: 1 });
|
|
4585
|
+
}
|
|
4586
|
+
};
|
|
4587
|
+
var MarkPen_default = MarkPen;
|
|
4588
|
+
|
|
4589
|
+
// src/components/Icons/MarkPenFilled.svelte
|
|
4590
|
+
function create_fragment52(ctx) {
|
|
4591
|
+
let svg;
|
|
4592
|
+
let g;
|
|
4593
|
+
let path;
|
|
4594
|
+
let svg_class_value;
|
|
4595
|
+
return {
|
|
4596
|
+
c() {
|
|
4597
|
+
svg = svg_element("svg");
|
|
4598
|
+
g = svg_element("g");
|
|
4599
|
+
path = svg_element("path");
|
|
4600
|
+
attr(path, "class", "fastboard-icon-fill-color");
|
|
4601
|
+
attr(path, "d", "m15.95 2.39l5.657 5.657a1 1 0 0 1 0 1.414l-7.778 7.778l-2.122.707l-1.414 1.415a1 1 0 0 1-1.414 0l-4.243-4.243a1 1 0 0 1 0-1.414L6.05 12.29l.707-2.122l7.779-7.778a1 1 0 0 1 1.414 0m.707 3.536l-6.364 6.364l1.414 1.414l6.364-6.364zM4.283 16.886l2.828 2.828l-1.414 1.415l-4.243-1.415z");
|
|
4602
|
+
attr(g, "stroke-width", "1");
|
|
4603
|
+
attr(g, "stroke-linecap", "round");
|
|
4604
|
+
attr(g, "stroke-linejoin", "round");
|
|
4605
|
+
attr(g, "transform", "scale(0.85 0.9) translate(2, 0)");
|
|
4606
|
+
attr(svg, "fill", "none");
|
|
4607
|
+
attr(svg, "viewBox", "0 0 24 24");
|
|
4608
|
+
attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
|
|
4609
|
+
ctx[0]);
|
|
4610
|
+
toggle_class(
|
|
4611
|
+
svg,
|
|
4612
|
+
"is-active",
|
|
4613
|
+
/*active*/
|
|
4614
|
+
ctx[1]
|
|
4615
|
+
);
|
|
4616
|
+
},
|
|
4617
|
+
m(target, anchor) {
|
|
4618
|
+
insert(target, svg, anchor);
|
|
4619
|
+
append(svg, g);
|
|
4620
|
+
append(g, path);
|
|
4621
|
+
},
|
|
4622
|
+
p(ctx2, [dirty]) {
|
|
4623
|
+
if (dirty & /*theme*/
|
|
4624
|
+
1 && svg_class_value !== (svg_class_value = "fastboard-icon " + /*theme*/
|
|
4625
|
+
ctx2[0])) {
|
|
4626
|
+
attr(svg, "class", svg_class_value);
|
|
4627
|
+
}
|
|
4628
|
+
if (dirty & /*theme, active*/
|
|
4629
|
+
3) {
|
|
4630
|
+
toggle_class(
|
|
4631
|
+
svg,
|
|
4632
|
+
"is-active",
|
|
4633
|
+
/*active*/
|
|
4634
|
+
ctx2[1]
|
|
4635
|
+
);
|
|
4636
|
+
}
|
|
4637
|
+
},
|
|
4638
|
+
i: noop,
|
|
4639
|
+
o: noop,
|
|
4640
|
+
d(detaching) {
|
|
4641
|
+
if (detaching)
|
|
4642
|
+
detach(svg);
|
|
4643
|
+
}
|
|
4644
|
+
};
|
|
4645
|
+
}
|
|
4646
|
+
function instance52($$self, $$props, $$invalidate) {
|
|
4647
|
+
let { theme = "light" } = $$props;
|
|
4648
|
+
let { active = false } = $$props;
|
|
4649
|
+
$$self.$$set = ($$props2) => {
|
|
4650
|
+
if ("theme" in $$props2)
|
|
4651
|
+
$$invalidate(0, theme = $$props2.theme);
|
|
4652
|
+
if ("active" in $$props2)
|
|
4653
|
+
$$invalidate(1, active = $$props2.active);
|
|
4654
|
+
};
|
|
4655
|
+
return [theme, active];
|
|
4656
|
+
}
|
|
4657
|
+
var MarkPenFilled = class extends SvelteComponent {
|
|
4658
|
+
constructor(options) {
|
|
4659
|
+
super();
|
|
4660
|
+
init(this, options, instance52, create_fragment52, safe_not_equal, { theme: 0, active: 1 });
|
|
4661
|
+
}
|
|
4662
|
+
};
|
|
4663
|
+
var MarkPenFilled_default = MarkPenFilled;
|
|
4664
|
+
|
|
4513
4665
|
// src/components/Icons/index.ts
|
|
4514
4666
|
var Icons = {
|
|
4515
4667
|
Apps: Apps_default,
|
|
@@ -4560,7 +4712,9 @@ var Icons = {
|
|
|
4560
4712
|
Pause: Pause_default,
|
|
4561
4713
|
Loading: Loading_default,
|
|
4562
4714
|
LaserPen: LaserPen_default,
|
|
4563
|
-
LaserPenFilled: LaserPenFilled_default
|
|
4715
|
+
LaserPenFilled: LaserPenFilled_default,
|
|
4716
|
+
MarkPen: MarkPen_default,
|
|
4717
|
+
MarkPenFilled: MarkPenFilled_default
|
|
4564
4718
|
};
|
|
4565
4719
|
var Icons_default = Icons;
|
|
4566
4720
|
if (typeof window !== "undefined") {
|
|
@@ -4573,12 +4727,12 @@ if (typeof window !== "undefined") {
|
|
|
4573
4727
|
{
|
|
4574
4728
|
name: "className",
|
|
4575
4729
|
defaultValue: "",
|
|
4576
|
-
fn(
|
|
4730
|
+
fn(instance76) {
|
|
4577
4731
|
function add() {
|
|
4578
|
-
const el =
|
|
4732
|
+
const el = instance76.popper.firstElementChild;
|
|
4579
4733
|
if (el) {
|
|
4580
4734
|
el.classList.add("fastboard-tip");
|
|
4581
|
-
const extra = (
|
|
4735
|
+
const extra = (instance76.props.className || "").trim();
|
|
4582
4736
|
if (extra) {
|
|
4583
4737
|
el.classList.add(extra);
|
|
4584
4738
|
}
|
|
@@ -4586,7 +4740,7 @@ if (typeof window !== "undefined") {
|
|
|
4586
4740
|
}
|
|
4587
4741
|
function remove() {
|
|
4588
4742
|
var _a;
|
|
4589
|
-
(_a =
|
|
4743
|
+
(_a = instance76.popper.firstElementChild) == null ? void 0 : _a.classList.remove("fastboard-tip");
|
|
4590
4744
|
}
|
|
4591
4745
|
return {
|
|
4592
4746
|
onCreate: add,
|
|
@@ -4599,21 +4753,21 @@ if (typeof window !== "undefined") {
|
|
|
4599
4753
|
});
|
|
4600
4754
|
}
|
|
4601
4755
|
var tippy = function(node, props) {
|
|
4602
|
-
const
|
|
4756
|
+
const instance76 = Tippy(node, props);
|
|
4603
4757
|
return {
|
|
4604
4758
|
update(props2) {
|
|
4605
|
-
|
|
4759
|
+
instance76.setProps(props2);
|
|
4606
4760
|
},
|
|
4607
4761
|
destroy() {
|
|
4608
|
-
|
|
4762
|
+
instance76.destroy();
|
|
4609
4763
|
}
|
|
4610
4764
|
};
|
|
4611
4765
|
};
|
|
4612
4766
|
function tippy_hide_all() {
|
|
4613
4767
|
document.querySelectorAll("[data-tippy-root]").forEach((el) => {
|
|
4614
|
-
const
|
|
4615
|
-
if (
|
|
4616
|
-
|
|
4768
|
+
const instance76 = el._tippy;
|
|
4769
|
+
if (instance76)
|
|
4770
|
+
instance76.hide();
|
|
4617
4771
|
});
|
|
4618
4772
|
}
|
|
4619
4773
|
var tippy_menu = {
|
|
@@ -5127,7 +5281,7 @@ function create_if_block_1(ctx) {
|
|
|
5127
5281
|
}
|
|
5128
5282
|
};
|
|
5129
5283
|
}
|
|
5130
|
-
function
|
|
5284
|
+
function create_fragment53(ctx) {
|
|
5131
5285
|
let current_block_type_index;
|
|
5132
5286
|
let if_block;
|
|
5133
5287
|
let if_block_anchor;
|
|
@@ -5193,7 +5347,7 @@ function create_fragment51(ctx) {
|
|
|
5193
5347
|
}
|
|
5194
5348
|
};
|
|
5195
5349
|
}
|
|
5196
|
-
function
|
|
5350
|
+
function instance53($$self, $$props, $$invalidate) {
|
|
5197
5351
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
5198
5352
|
let { class: className = "" } = $$props;
|
|
5199
5353
|
let { name: name10 = "fastboard-ui" } = $$props;
|
|
@@ -5251,7 +5405,7 @@ function instance51($$self, $$props, $$invalidate) {
|
|
|
5251
5405
|
var Button = class extends SvelteComponent {
|
|
5252
5406
|
constructor(options) {
|
|
5253
5407
|
super();
|
|
5254
|
-
init(this, options,
|
|
5408
|
+
init(this, options, instance53, create_fragment53, safe_not_equal, {
|
|
5255
5409
|
class: 0,
|
|
5256
5410
|
name: 1,
|
|
5257
5411
|
theme: 2,
|
|
@@ -5456,7 +5610,7 @@ function create_default_slot(ctx) {
|
|
|
5456
5610
|
}
|
|
5457
5611
|
};
|
|
5458
5612
|
}
|
|
5459
|
-
function
|
|
5613
|
+
function create_fragment54(ctx) {
|
|
5460
5614
|
let div;
|
|
5461
5615
|
let button0;
|
|
5462
5616
|
let t_1;
|
|
@@ -5597,7 +5751,7 @@ var i18n = {
|
|
|
5597
5751
|
"zh-CN": { redo: "\u91CD\u505A", undo: "\u64A4\u9500" }
|
|
5598
5752
|
};
|
|
5599
5753
|
var name = "fastboard-redo-undo";
|
|
5600
|
-
function
|
|
5754
|
+
function instance54($$self, $$props, $$invalidate) {
|
|
5601
5755
|
let writable2;
|
|
5602
5756
|
let phase;
|
|
5603
5757
|
let disabled;
|
|
@@ -5698,7 +5852,7 @@ function instance52($$self, $$props, $$invalidate) {
|
|
|
5698
5852
|
var RedoUndo = class extends SvelteComponent {
|
|
5699
5853
|
constructor(options) {
|
|
5700
5854
|
super();
|
|
5701
|
-
init(this, options,
|
|
5855
|
+
init(this, options, instance54, create_fragment54, safe_not_equal, {
|
|
5702
5856
|
app: 12,
|
|
5703
5857
|
theme: 0,
|
|
5704
5858
|
language: 13,
|
|
@@ -6055,7 +6209,7 @@ function create_default_slot2(ctx) {
|
|
|
6055
6209
|
}
|
|
6056
6210
|
};
|
|
6057
6211
|
}
|
|
6058
|
-
function
|
|
6212
|
+
function create_fragment55(ctx) {
|
|
6059
6213
|
let div;
|
|
6060
6214
|
let button0;
|
|
6061
6215
|
let t0;
|
|
@@ -6290,7 +6444,7 @@ var i18n2 = {
|
|
|
6290
6444
|
"zh-CN": { prev: "\u4E0A\u4E00\u9875", next: "\u4E0B\u4E00\u9875", add: "\u6DFB\u52A0\u9875\u9762" }
|
|
6291
6445
|
};
|
|
6292
6446
|
var name2 = "fastboard-page-control";
|
|
6293
|
-
function
|
|
6447
|
+
function instance55($$self, $$props, $$invalidate) {
|
|
6294
6448
|
let writable2;
|
|
6295
6449
|
let phase;
|
|
6296
6450
|
let disabled;
|
|
@@ -6396,7 +6550,7 @@ function instance53($$self, $$props, $$invalidate) {
|
|
|
6396
6550
|
var PageControl = class extends SvelteComponent {
|
|
6397
6551
|
constructor(options) {
|
|
6398
6552
|
super();
|
|
6399
|
-
init(this, options,
|
|
6553
|
+
init(this, options, instance55, create_fragment55, safe_not_equal, {
|
|
6400
6554
|
app: 16,
|
|
6401
6555
|
theme: 0,
|
|
6402
6556
|
language: 17,
|
|
@@ -6745,7 +6899,7 @@ function create_default_slot3(ctx) {
|
|
|
6745
6899
|
}
|
|
6746
6900
|
};
|
|
6747
6901
|
}
|
|
6748
|
-
function
|
|
6902
|
+
function create_fragment56(ctx) {
|
|
6749
6903
|
let div;
|
|
6750
6904
|
let button0;
|
|
6751
6905
|
let t0;
|
|
@@ -7008,7 +7162,7 @@ function next_scale(scale, delta) {
|
|
|
7008
7162
|
return 1;
|
|
7009
7163
|
}
|
|
7010
7164
|
var name3 = "fastboard-zoom-control";
|
|
7011
|
-
function
|
|
7165
|
+
function instance56($$self, $$props, $$invalidate) {
|
|
7012
7166
|
let writable2;
|
|
7013
7167
|
let phase;
|
|
7014
7168
|
let disabled;
|
|
@@ -7119,7 +7273,7 @@ function instance54($$self, $$props, $$invalidate) {
|
|
|
7119
7273
|
var ZoomControl = class extends SvelteComponent {
|
|
7120
7274
|
constructor(options) {
|
|
7121
7275
|
super();
|
|
7122
|
-
init(this, options,
|
|
7276
|
+
init(this, options, instance56, create_fragment56, safe_not_equal, {
|
|
7123
7277
|
app: 15,
|
|
7124
7278
|
theme: 0,
|
|
7125
7279
|
language: 16,
|
|
@@ -7421,7 +7575,7 @@ function hexToRgb(hex) {
|
|
|
7421
7575
|
}
|
|
7422
7576
|
|
|
7423
7577
|
// src/components/Toolbar/components/Slider.svelte
|
|
7424
|
-
function
|
|
7578
|
+
function create_fragment57(ctx) {
|
|
7425
7579
|
let div;
|
|
7426
7580
|
let input;
|
|
7427
7581
|
let input_class_value;
|
|
@@ -7636,7 +7790,7 @@ function create_fragment55(ctx) {
|
|
|
7636
7790
|
};
|
|
7637
7791
|
}
|
|
7638
7792
|
var name4 = "fastboard-slider";
|
|
7639
|
-
function
|
|
7793
|
+
function instance57($$self, $$props, $$invalidate) {
|
|
7640
7794
|
let percent;
|
|
7641
7795
|
const dispatch = createEventDispatcher();
|
|
7642
7796
|
let { class: className = "" } = $$props;
|
|
@@ -7707,7 +7861,7 @@ function instance55($$self, $$props, $$invalidate) {
|
|
|
7707
7861
|
var Slider = class extends SvelteComponent {
|
|
7708
7862
|
constructor(options) {
|
|
7709
7863
|
super();
|
|
7710
|
-
init(this, options,
|
|
7864
|
+
init(this, options, instance57, create_fragment57, safe_not_equal, {
|
|
7711
7865
|
class: 1,
|
|
7712
7866
|
theme: 2,
|
|
7713
7867
|
min: 3,
|
|
@@ -7721,7 +7875,7 @@ var Slider = class extends SvelteComponent {
|
|
|
7721
7875
|
var Slider_default = Slider;
|
|
7722
7876
|
|
|
7723
7877
|
// src/components/Toolbar/components/StrokeWidth.svelte
|
|
7724
|
-
function
|
|
7878
|
+
function create_fragment58(ctx) {
|
|
7725
7879
|
let slider;
|
|
7726
7880
|
let current;
|
|
7727
7881
|
const slider_spread_levels = [
|
|
@@ -7777,7 +7931,7 @@ function create_fragment56(ctx) {
|
|
|
7777
7931
|
}
|
|
7778
7932
|
};
|
|
7779
7933
|
}
|
|
7780
|
-
function
|
|
7934
|
+
function instance58($$self, $$props, $$invalidate) {
|
|
7781
7935
|
let memberState;
|
|
7782
7936
|
let value;
|
|
7783
7937
|
let props;
|
|
@@ -7826,7 +7980,7 @@ function instance56($$self, $$props, $$invalidate) {
|
|
|
7826
7980
|
var StrokeWidth = class extends SvelteComponent {
|
|
7827
7981
|
constructor(options) {
|
|
7828
7982
|
super();
|
|
7829
|
-
init(this, options,
|
|
7983
|
+
init(this, options, instance58, create_fragment58, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
|
|
7830
7984
|
}
|
|
7831
7985
|
};
|
|
7832
7986
|
var StrokeWidth_default = StrokeWidth;
|
|
@@ -7930,7 +8084,7 @@ function create_each_block(ctx) {
|
|
|
7930
8084
|
}
|
|
7931
8085
|
};
|
|
7932
8086
|
}
|
|
7933
|
-
function
|
|
8087
|
+
function create_fragment59(ctx) {
|
|
7934
8088
|
let div;
|
|
7935
8089
|
let div_class_value;
|
|
7936
8090
|
let mounted;
|
|
@@ -8010,7 +8164,7 @@ function create_fragment57(ctx) {
|
|
|
8010
8164
|
function is_equal_color(a, b) {
|
|
8011
8165
|
return a && b && a.every((v, i) => v === b[i]);
|
|
8012
8166
|
}
|
|
8013
|
-
function
|
|
8167
|
+
function instance59($$self, $$props, $$invalidate) {
|
|
8014
8168
|
let memberState;
|
|
8015
8169
|
let strokeColor;
|
|
8016
8170
|
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
|
|
@@ -8062,7 +8216,7 @@ function instance57($$self, $$props, $$invalidate) {
|
|
|
8062
8216
|
var StrokeColor = class extends SvelteComponent {
|
|
8063
8217
|
constructor(options) {
|
|
8064
8218
|
super();
|
|
8065
|
-
init(this, options,
|
|
8219
|
+
init(this, options, instance59, create_fragment59, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
|
|
8066
8220
|
}
|
|
8067
8221
|
};
|
|
8068
8222
|
var StrokeColor_default = StrokeColor;
|
|
@@ -8166,7 +8320,7 @@ function create_each_block2(ctx) {
|
|
|
8166
8320
|
}
|
|
8167
8321
|
};
|
|
8168
8322
|
}
|
|
8169
|
-
function
|
|
8323
|
+
function create_fragment60(ctx) {
|
|
8170
8324
|
let div;
|
|
8171
8325
|
let div_class_value;
|
|
8172
8326
|
let mounted;
|
|
@@ -8246,7 +8400,7 @@ function create_fragment58(ctx) {
|
|
|
8246
8400
|
function is_equal_color2(a, b) {
|
|
8247
8401
|
return a && b && a.every((v, i) => v === b[i]);
|
|
8248
8402
|
}
|
|
8249
|
-
function
|
|
8403
|
+
function instance60($$self, $$props, $$invalidate) {
|
|
8250
8404
|
let memberState;
|
|
8251
8405
|
let textColor;
|
|
8252
8406
|
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
|
|
@@ -8298,7 +8452,7 @@ function instance58($$self, $$props, $$invalidate) {
|
|
|
8298
8452
|
var TextColor = class extends SvelteComponent {
|
|
8299
8453
|
constructor(options) {
|
|
8300
8454
|
super();
|
|
8301
|
-
init(this, options,
|
|
8455
|
+
init(this, options, instance60, create_fragment60, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
|
|
8302
8456
|
}
|
|
8303
8457
|
};
|
|
8304
8458
|
var TextColor_default = TextColor;
|
|
@@ -8629,7 +8783,7 @@ function create_each_block3(key_1, ctx) {
|
|
|
8629
8783
|
}
|
|
8630
8784
|
};
|
|
8631
8785
|
}
|
|
8632
|
-
function
|
|
8786
|
+
function create_fragment61(ctx) {
|
|
8633
8787
|
let div;
|
|
8634
8788
|
let each_blocks = [];
|
|
8635
8789
|
let each_1_lookup = /* @__PURE__ */ new Map();
|
|
@@ -8735,7 +8889,7 @@ var i18n5 = {
|
|
|
8735
8889
|
speechBalloon: "\u6C14\u6CE1"
|
|
8736
8890
|
}
|
|
8737
8891
|
};
|
|
8738
|
-
function
|
|
8892
|
+
function instance61($$self, $$props, $$invalidate) {
|
|
8739
8893
|
let t;
|
|
8740
8894
|
let memberState;
|
|
8741
8895
|
let appliance;
|
|
@@ -8820,7 +8974,7 @@ function instance59($$self, $$props, $$invalidate) {
|
|
|
8820
8974
|
var SelectShapes = class extends SvelteComponent {
|
|
8821
8975
|
constructor(options) {
|
|
8822
8976
|
super();
|
|
8823
|
-
init(this, options,
|
|
8977
|
+
init(this, options, instance61, create_fragment61, safe_not_equal, {
|
|
8824
8978
|
app: 8,
|
|
8825
8979
|
theme: 0,
|
|
8826
8980
|
language: 9,
|
|
@@ -8975,7 +9129,7 @@ function create_default_slot4(ctx) {
|
|
|
8975
9129
|
}
|
|
8976
9130
|
};
|
|
8977
9131
|
}
|
|
8978
|
-
function
|
|
9132
|
+
function create_fragment62(ctx) {
|
|
8979
9133
|
let button;
|
|
8980
9134
|
let current;
|
|
8981
9135
|
const button_spread_levels = [
|
|
@@ -9044,7 +9198,7 @@ function create_fragment60(ctx) {
|
|
|
9044
9198
|
}
|
|
9045
9199
|
};
|
|
9046
9200
|
}
|
|
9047
|
-
function
|
|
9201
|
+
function instance62($$self, $$props, $$invalidate) {
|
|
9048
9202
|
let { btn_props = {} } = $$props;
|
|
9049
9203
|
let { content } = $$props;
|
|
9050
9204
|
let { appliance } = $$props;
|
|
@@ -9067,7 +9221,7 @@ function instance60($$self, $$props, $$invalidate) {
|
|
|
9067
9221
|
var Clicker = class extends SvelteComponent {
|
|
9068
9222
|
constructor(options) {
|
|
9069
9223
|
super();
|
|
9070
|
-
init(this, options,
|
|
9224
|
+
init(this, options, instance62, create_fragment62, safe_not_equal, {
|
|
9071
9225
|
btn_props: 0,
|
|
9072
9226
|
content: 1,
|
|
9073
9227
|
appliance: 2,
|
|
@@ -9222,7 +9376,7 @@ function create_default_slot5(ctx) {
|
|
|
9222
9376
|
}
|
|
9223
9377
|
};
|
|
9224
9378
|
}
|
|
9225
|
-
function
|
|
9379
|
+
function create_fragment63(ctx) {
|
|
9226
9380
|
let button;
|
|
9227
9381
|
let current;
|
|
9228
9382
|
const button_spread_levels = [
|
|
@@ -9291,7 +9445,7 @@ function create_fragment61(ctx) {
|
|
|
9291
9445
|
}
|
|
9292
9446
|
};
|
|
9293
9447
|
}
|
|
9294
|
-
function
|
|
9448
|
+
function instance63($$self, $$props, $$invalidate) {
|
|
9295
9449
|
let { btn_props = {} } = $$props;
|
|
9296
9450
|
let { content } = $$props;
|
|
9297
9451
|
let { appliance } = $$props;
|
|
@@ -9314,7 +9468,7 @@ function instance61($$self, $$props, $$invalidate) {
|
|
|
9314
9468
|
var Selector2 = class extends SvelteComponent {
|
|
9315
9469
|
constructor(options) {
|
|
9316
9470
|
super();
|
|
9317
|
-
init(this, options,
|
|
9471
|
+
init(this, options, instance63, create_fragment63, safe_not_equal, {
|
|
9318
9472
|
btn_props: 0,
|
|
9319
9473
|
content: 1,
|
|
9320
9474
|
appliance: 2,
|
|
@@ -9363,7 +9517,7 @@ function create_else_block8(ctx) {
|
|
|
9363
9517
|
}
|
|
9364
9518
|
};
|
|
9365
9519
|
}
|
|
9366
|
-
function
|
|
9520
|
+
function create_if_block_2(ctx) {
|
|
9367
9521
|
let icons_pencilfilled;
|
|
9368
9522
|
let current;
|
|
9369
9523
|
icons_pencilfilled = new Icons_default.PencilFilled({
|
|
@@ -9403,7 +9557,7 @@ function create_if_block_12(ctx) {
|
|
|
9403
9557
|
}
|
|
9404
9558
|
};
|
|
9405
9559
|
}
|
|
9406
|
-
function
|
|
9560
|
+
function create_if_block_12(ctx) {
|
|
9407
9561
|
let icons_laserpenfilled;
|
|
9408
9562
|
let current;
|
|
9409
9563
|
icons_laserpenfilled = new Icons_default.LaserPenFilled({
|
|
@@ -9443,26 +9597,73 @@ function create_if_block8(ctx) {
|
|
|
9443
9597
|
}
|
|
9444
9598
|
};
|
|
9445
9599
|
}
|
|
9600
|
+
function create_if_block8(ctx) {
|
|
9601
|
+
let icons_markpenfilled;
|
|
9602
|
+
let current;
|
|
9603
|
+
icons_markpenfilled = new Icons_default.MarkPenFilled({
|
|
9604
|
+
props: { theme: (
|
|
9605
|
+
/*theme*/
|
|
9606
|
+
ctx[4]
|
|
9607
|
+
), active: true }
|
|
9608
|
+
});
|
|
9609
|
+
return {
|
|
9610
|
+
c() {
|
|
9611
|
+
create_component(icons_markpenfilled.$$.fragment);
|
|
9612
|
+
},
|
|
9613
|
+
m(target, anchor) {
|
|
9614
|
+
mount_component(icons_markpenfilled, target, anchor);
|
|
9615
|
+
current = true;
|
|
9616
|
+
},
|
|
9617
|
+
p(ctx2, dirty) {
|
|
9618
|
+
const icons_markpenfilled_changes = {};
|
|
9619
|
+
if (dirty & /*theme*/
|
|
9620
|
+
16)
|
|
9621
|
+
icons_markpenfilled_changes.theme = /*theme*/
|
|
9622
|
+
ctx2[4];
|
|
9623
|
+
icons_markpenfilled.$set(icons_markpenfilled_changes);
|
|
9624
|
+
},
|
|
9625
|
+
i(local) {
|
|
9626
|
+
if (current)
|
|
9627
|
+
return;
|
|
9628
|
+
transition_in(icons_markpenfilled.$$.fragment, local);
|
|
9629
|
+
current = true;
|
|
9630
|
+
},
|
|
9631
|
+
o(local) {
|
|
9632
|
+
transition_out(icons_markpenfilled.$$.fragment, local);
|
|
9633
|
+
current = false;
|
|
9634
|
+
},
|
|
9635
|
+
d(detaching) {
|
|
9636
|
+
destroy_component(icons_markpenfilled, detaching);
|
|
9637
|
+
}
|
|
9638
|
+
};
|
|
9639
|
+
}
|
|
9446
9640
|
function create_default_slot6(ctx) {
|
|
9447
9641
|
let current_block_type_index;
|
|
9448
9642
|
let if_block;
|
|
9449
9643
|
let if_block_anchor;
|
|
9450
9644
|
let current;
|
|
9451
|
-
const if_block_creators = [create_if_block8, create_if_block_12, create_else_block8];
|
|
9645
|
+
const if_block_creators = [create_if_block8, create_if_block_12, create_if_block_2, create_else_block8];
|
|
9452
9646
|
const if_blocks = [];
|
|
9453
9647
|
function select_block_type(ctx2, dirty) {
|
|
9454
9648
|
if (
|
|
9455
9649
|
/*appliance*/
|
|
9456
|
-
ctx2[3] === "pencil" && /*
|
|
9457
|
-
ctx2[5]
|
|
9650
|
+
ctx2[3] === "pencil" && /*pencilType*/
|
|
9651
|
+
ctx2[5] === "mark"
|
|
9458
9652
|
)
|
|
9459
9653
|
return 0;
|
|
9460
9654
|
if (
|
|
9461
9655
|
/*appliance*/
|
|
9462
|
-
ctx2[3] === "pencil"
|
|
9656
|
+
ctx2[3] === "pencil" && /*pencilType*/
|
|
9657
|
+
ctx2[5] === "laser"
|
|
9463
9658
|
)
|
|
9464
9659
|
return 1;
|
|
9465
|
-
|
|
9660
|
+
if (
|
|
9661
|
+
/*appliance*/
|
|
9662
|
+
ctx2[3] === "pencil" && /*pencilType*/
|
|
9663
|
+
ctx2[5] === "pencil"
|
|
9664
|
+
)
|
|
9665
|
+
return 2;
|
|
9666
|
+
return 3;
|
|
9466
9667
|
}
|
|
9467
9668
|
current_block_type_index = select_block_type(ctx);
|
|
9468
9669
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
@@ -9515,7 +9716,7 @@ function create_default_slot6(ctx) {
|
|
|
9515
9716
|
}
|
|
9516
9717
|
};
|
|
9517
9718
|
}
|
|
9518
|
-
function
|
|
9719
|
+
function create_fragment64(ctx) {
|
|
9519
9720
|
let button;
|
|
9520
9721
|
let current;
|
|
9521
9722
|
const button_spread_levels = [
|
|
@@ -9572,7 +9773,7 @@ function create_fragment62(ctx) {
|
|
|
9572
9773
|
ctx2[2]
|
|
9573
9774
|
) }
|
|
9574
9775
|
]) : {};
|
|
9575
|
-
if (dirty & /*$$scope, theme, appliance,
|
|
9776
|
+
if (dirty & /*$$scope, theme, appliance, pencilType*/
|
|
9576
9777
|
184) {
|
|
9577
9778
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9578
9779
|
}
|
|
@@ -9593,13 +9794,13 @@ function create_fragment62(ctx) {
|
|
|
9593
9794
|
}
|
|
9594
9795
|
};
|
|
9595
9796
|
}
|
|
9596
|
-
function
|
|
9797
|
+
function instance64($$self, $$props, $$invalidate) {
|
|
9597
9798
|
let { btn_props = {} } = $$props;
|
|
9598
9799
|
let { content } = $$props;
|
|
9599
9800
|
let { menu } = $$props;
|
|
9600
9801
|
let { appliance } = $$props;
|
|
9601
9802
|
let { theme = "light" } = $$props;
|
|
9602
|
-
let {
|
|
9803
|
+
let { pencilType = "pencil" } = $$props;
|
|
9603
9804
|
function click_handler(event) {
|
|
9604
9805
|
bubble.call(this, $$self, event);
|
|
9605
9806
|
}
|
|
@@ -9614,21 +9815,21 @@ function instance62($$self, $$props, $$invalidate) {
|
|
|
9614
9815
|
$$invalidate(3, appliance = $$props2.appliance);
|
|
9615
9816
|
if ("theme" in $$props2)
|
|
9616
9817
|
$$invalidate(4, theme = $$props2.theme);
|
|
9617
|
-
if ("
|
|
9618
|
-
$$invalidate(5,
|
|
9818
|
+
if ("pencilType" in $$props2)
|
|
9819
|
+
$$invalidate(5, pencilType = $$props2.pencilType);
|
|
9619
9820
|
};
|
|
9620
|
-
return [btn_props, content, menu, appliance, theme,
|
|
9821
|
+
return [btn_props, content, menu, appliance, theme, pencilType, click_handler];
|
|
9621
9822
|
}
|
|
9622
9823
|
var Pencil2 = class extends SvelteComponent {
|
|
9623
9824
|
constructor(options) {
|
|
9624
9825
|
super();
|
|
9625
|
-
init(this, options,
|
|
9826
|
+
init(this, options, instance64, create_fragment64, safe_not_equal, {
|
|
9626
9827
|
btn_props: 0,
|
|
9627
9828
|
content: 1,
|
|
9628
9829
|
menu: 2,
|
|
9629
9830
|
appliance: 3,
|
|
9630
9831
|
theme: 4,
|
|
9631
|
-
|
|
9832
|
+
pencilType: 5
|
|
9632
9833
|
});
|
|
9633
9834
|
}
|
|
9634
9835
|
};
|
|
@@ -9779,7 +9980,7 @@ function create_default_slot7(ctx) {
|
|
|
9779
9980
|
}
|
|
9780
9981
|
};
|
|
9781
9982
|
}
|
|
9782
|
-
function
|
|
9983
|
+
function create_fragment65(ctx) {
|
|
9783
9984
|
let button;
|
|
9784
9985
|
let current;
|
|
9785
9986
|
const button_spread_levels = [
|
|
@@ -9857,7 +10058,7 @@ function create_fragment63(ctx) {
|
|
|
9857
10058
|
}
|
|
9858
10059
|
};
|
|
9859
10060
|
}
|
|
9860
|
-
function
|
|
10061
|
+
function instance65($$self, $$props, $$invalidate) {
|
|
9861
10062
|
let { btn_props = {} } = $$props;
|
|
9862
10063
|
let { content } = $$props;
|
|
9863
10064
|
let { menu } = $$props;
|
|
@@ -9883,7 +10084,7 @@ function instance63($$self, $$props, $$invalidate) {
|
|
|
9883
10084
|
var Text2 = class extends SvelteComponent {
|
|
9884
10085
|
constructor(options) {
|
|
9885
10086
|
super();
|
|
9886
|
-
init(this, options,
|
|
10087
|
+
init(this, options, instance65, create_fragment65, safe_not_equal, {
|
|
9887
10088
|
btn_props: 0,
|
|
9888
10089
|
content: 1,
|
|
9889
10090
|
menu: 2,
|
|
@@ -10127,7 +10328,7 @@ function create_default_slot8(ctx) {
|
|
|
10127
10328
|
}
|
|
10128
10329
|
};
|
|
10129
10330
|
}
|
|
10130
|
-
function
|
|
10331
|
+
function create_fragment66(ctx) {
|
|
10131
10332
|
let button;
|
|
10132
10333
|
let current;
|
|
10133
10334
|
const button_spread_levels = [
|
|
@@ -10205,7 +10406,7 @@ function create_fragment64(ctx) {
|
|
|
10205
10406
|
}
|
|
10206
10407
|
};
|
|
10207
10408
|
}
|
|
10208
|
-
function
|
|
10409
|
+
function instance66($$self, $$props, $$invalidate) {
|
|
10209
10410
|
let memberState;
|
|
10210
10411
|
let shape;
|
|
10211
10412
|
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(10, $memberState = $$value)), memberState);
|
|
@@ -10277,7 +10478,7 @@ function instance64($$self, $$props, $$invalidate) {
|
|
|
10277
10478
|
var Shapes = class extends SvelteComponent {
|
|
10278
10479
|
constructor(options) {
|
|
10279
10480
|
super();
|
|
10280
|
-
init(this, options,
|
|
10481
|
+
init(this, options, instance66, create_fragment66, safe_not_equal, {
|
|
10281
10482
|
app: 9,
|
|
10282
10483
|
btn_props: 1,
|
|
10283
10484
|
content: 2,
|
|
@@ -10434,7 +10635,7 @@ function create_default_slot9(ctx) {
|
|
|
10434
10635
|
}
|
|
10435
10636
|
};
|
|
10436
10637
|
}
|
|
10437
|
-
function
|
|
10638
|
+
function create_fragment67(ctx) {
|
|
10438
10639
|
let button;
|
|
10439
10640
|
let current;
|
|
10440
10641
|
const button_spread_levels = [
|
|
@@ -10503,7 +10704,7 @@ function create_fragment65(ctx) {
|
|
|
10503
10704
|
}
|
|
10504
10705
|
};
|
|
10505
10706
|
}
|
|
10506
|
-
function
|
|
10707
|
+
function instance67($$self, $$props, $$invalidate) {
|
|
10507
10708
|
let { btn_props = {} } = $$props;
|
|
10508
10709
|
let { content } = $$props;
|
|
10509
10710
|
let { appliance } = $$props;
|
|
@@ -10526,7 +10727,7 @@ function instance65($$self, $$props, $$invalidate) {
|
|
|
10526
10727
|
var Eraser2 = class extends SvelteComponent {
|
|
10527
10728
|
constructor(options) {
|
|
10528
10729
|
super();
|
|
10529
|
-
init(this, options,
|
|
10730
|
+
init(this, options, instance67, create_fragment67, safe_not_equal, {
|
|
10530
10731
|
btn_props: 0,
|
|
10531
10732
|
content: 1,
|
|
10532
10733
|
appliance: 2,
|
|
@@ -10575,7 +10776,7 @@ function create_default_slot10(ctx) {
|
|
|
10575
10776
|
}
|
|
10576
10777
|
};
|
|
10577
10778
|
}
|
|
10578
|
-
function
|
|
10779
|
+
function create_fragment68(ctx) {
|
|
10579
10780
|
let button;
|
|
10580
10781
|
let current;
|
|
10581
10782
|
const button_spread_levels = [
|
|
@@ -10644,7 +10845,7 @@ function create_fragment66(ctx) {
|
|
|
10644
10845
|
}
|
|
10645
10846
|
};
|
|
10646
10847
|
}
|
|
10647
|
-
function
|
|
10848
|
+
function instance68($$self, $$props, $$invalidate) {
|
|
10648
10849
|
let { btn_props = {} } = $$props;
|
|
10649
10850
|
let { content } = $$props;
|
|
10650
10851
|
let { theme = "light" } = $$props;
|
|
@@ -10664,7 +10865,7 @@ function instance66($$self, $$props, $$invalidate) {
|
|
|
10664
10865
|
var Clear2 = class extends SvelteComponent {
|
|
10665
10866
|
constructor(options) {
|
|
10666
10867
|
super();
|
|
10667
|
-
init(this, options,
|
|
10868
|
+
init(this, options, instance68, create_fragment68, safe_not_equal, { btn_props: 0, content: 1, theme: 2 });
|
|
10668
10869
|
}
|
|
10669
10870
|
};
|
|
10670
10871
|
var Clear_default2 = Clear2;
|
|
@@ -10814,7 +11015,7 @@ function create_default_slot11(ctx) {
|
|
|
10814
11015
|
}
|
|
10815
11016
|
};
|
|
10816
11017
|
}
|
|
10817
|
-
function
|
|
11018
|
+
function create_fragment69(ctx) {
|
|
10818
11019
|
let button;
|
|
10819
11020
|
let current;
|
|
10820
11021
|
const button_spread_levels = [
|
|
@@ -10883,7 +11084,7 @@ function create_fragment67(ctx) {
|
|
|
10883
11084
|
}
|
|
10884
11085
|
};
|
|
10885
11086
|
}
|
|
10886
|
-
function
|
|
11087
|
+
function instance69($$self, $$props, $$invalidate) {
|
|
10887
11088
|
let { btn_props = {} } = $$props;
|
|
10888
11089
|
let { content } = $$props;
|
|
10889
11090
|
let { appliance } = $$props;
|
|
@@ -10906,7 +11107,7 @@ function instance67($$self, $$props, $$invalidate) {
|
|
|
10906
11107
|
var Hand = class extends SvelteComponent {
|
|
10907
11108
|
constructor(options) {
|
|
10908
11109
|
super();
|
|
10909
|
-
init(this, options,
|
|
11110
|
+
init(this, options, instance69, create_fragment69, safe_not_equal, {
|
|
10910
11111
|
btn_props: 0,
|
|
10911
11112
|
content: 1,
|
|
10912
11113
|
appliance: 2,
|
|
@@ -11061,7 +11262,7 @@ function create_default_slot12(ctx) {
|
|
|
11061
11262
|
}
|
|
11062
11263
|
};
|
|
11063
11264
|
}
|
|
11064
|
-
function
|
|
11265
|
+
function create_fragment70(ctx) {
|
|
11065
11266
|
let button;
|
|
11066
11267
|
let current;
|
|
11067
11268
|
const button_spread_levels = [
|
|
@@ -11130,7 +11331,7 @@ function create_fragment68(ctx) {
|
|
|
11130
11331
|
}
|
|
11131
11332
|
};
|
|
11132
11333
|
}
|
|
11133
|
-
function
|
|
11334
|
+
function instance70($$self, $$props, $$invalidate) {
|
|
11134
11335
|
let { btn_props = {} } = $$props;
|
|
11135
11336
|
let { content } = $$props;
|
|
11136
11337
|
let { appliance } = $$props;
|
|
@@ -11153,7 +11354,7 @@ function instance68($$self, $$props, $$invalidate) {
|
|
|
11153
11354
|
var Laser2 = class extends SvelteComponent {
|
|
11154
11355
|
constructor(options) {
|
|
11155
11356
|
super();
|
|
11156
|
-
init(this, options,
|
|
11357
|
+
init(this, options, instance70, create_fragment70, safe_not_equal, {
|
|
11157
11358
|
btn_props: 0,
|
|
11158
11359
|
content: 1,
|
|
11159
11360
|
appliance: 2,
|
|
@@ -11166,42 +11367,42 @@ var Laser_default2 = Laser2;
|
|
|
11166
11367
|
// src/components/Toolbar/components/Contents.svelte
|
|
11167
11368
|
function get_each_context4(ctx, list, i) {
|
|
11168
11369
|
const child_ctx = ctx.slice();
|
|
11169
|
-
child_ctx[
|
|
11370
|
+
child_ctx[50] = list[i];
|
|
11170
11371
|
const constants_0 = (
|
|
11171
11372
|
/*netless_app*/
|
|
11172
|
-
child_ctx[
|
|
11373
|
+
child_ctx[50]
|
|
11173
11374
|
);
|
|
11174
|
-
child_ctx[
|
|
11175
|
-
child_ctx[
|
|
11176
|
-
child_ctx[
|
|
11177
|
-
child_ctx[
|
|
11375
|
+
child_ctx[51] = constants_0.icon;
|
|
11376
|
+
child_ctx[52] = constants_0.label;
|
|
11377
|
+
child_ctx[53] = constants_0.kind;
|
|
11378
|
+
child_ctx[54] = constants_0.onClick;
|
|
11178
11379
|
const constants_1 = (
|
|
11179
11380
|
/*$status*/
|
|
11180
11381
|
child_ctx[22] && /*$status*/
|
|
11181
11382
|
child_ctx[22][
|
|
11182
11383
|
/*kind*/
|
|
11183
|
-
child_ctx[
|
|
11384
|
+
child_ctx[53]
|
|
11184
11385
|
]
|
|
11185
11386
|
);
|
|
11186
|
-
child_ctx[
|
|
11387
|
+
child_ctx[55] = constants_1;
|
|
11187
11388
|
const constants_2 = function func() {
|
|
11188
11389
|
return (
|
|
11189
11390
|
/*func*/
|
|
11190
|
-
ctx[
|
|
11391
|
+
ctx[46](
|
|
11191
11392
|
/*onClick*/
|
|
11192
|
-
child_ctx[
|
|
11393
|
+
child_ctx[54]
|
|
11193
11394
|
)
|
|
11194
11395
|
);
|
|
11195
11396
|
};
|
|
11196
|
-
child_ctx[
|
|
11397
|
+
child_ctx[56] = constants_2;
|
|
11197
11398
|
return child_ctx;
|
|
11198
11399
|
}
|
|
11199
11400
|
function get_each_context_1(ctx, list, i) {
|
|
11200
11401
|
const child_ctx = ctx.slice();
|
|
11201
|
-
child_ctx[
|
|
11402
|
+
child_ctx[59] = list[i];
|
|
11202
11403
|
return child_ctx;
|
|
11203
11404
|
}
|
|
11204
|
-
function
|
|
11405
|
+
function create_if_block_18(ctx) {
|
|
11205
11406
|
let button;
|
|
11206
11407
|
let current;
|
|
11207
11408
|
const button_spread_levels = [
|
|
@@ -11210,7 +11411,7 @@ function create_if_block_13(ctx) {
|
|
|
11210
11411
|
ctx[15]
|
|
11211
11412
|
];
|
|
11212
11413
|
let button_props = {
|
|
11213
|
-
$$slots: { default: [
|
|
11414
|
+
$$slots: { default: [create_default_slot_8] },
|
|
11214
11415
|
$$scope: { ctx }
|
|
11215
11416
|
};
|
|
11216
11417
|
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
@@ -11237,8 +11438,8 @@ function create_if_block_13(ctx) {
|
|
|
11237
11438
|
ctx2[15]
|
|
11238
11439
|
)]) : {};
|
|
11239
11440
|
if (dirty[0] & /*theme*/
|
|
11240
|
-
2 | dirty[
|
|
11241
|
-
|
|
11441
|
+
2 | dirty[2] & /*$$scope*/
|
|
11442
|
+
1) {
|
|
11242
11443
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
11243
11444
|
}
|
|
11244
11445
|
button.$set(button_changes);
|
|
@@ -11258,7 +11459,7 @@ function create_if_block_13(ctx) {
|
|
|
11258
11459
|
}
|
|
11259
11460
|
};
|
|
11260
11461
|
}
|
|
11261
|
-
function
|
|
11462
|
+
function create_default_slot_8(ctx) {
|
|
11262
11463
|
let icons_up;
|
|
11263
11464
|
let current;
|
|
11264
11465
|
icons_up = new Icons_default.Up({ props: { theme: (
|
|
@@ -11296,7 +11497,7 @@ function create_default_slot_6(ctx) {
|
|
|
11296
11497
|
}
|
|
11297
11498
|
};
|
|
11298
11499
|
}
|
|
11299
|
-
function
|
|
11500
|
+
function create_if_block_17(ctx) {
|
|
11300
11501
|
let laser;
|
|
11301
11502
|
let current;
|
|
11302
11503
|
laser = new Laser_default2({
|
|
@@ -11367,7 +11568,7 @@ function create_if_block_122(ctx) {
|
|
|
11367
11568
|
}
|
|
11368
11569
|
};
|
|
11369
11570
|
}
|
|
11370
|
-
function
|
|
11571
|
+
function create_if_block_16(ctx) {
|
|
11371
11572
|
let hand_1;
|
|
11372
11573
|
let current;
|
|
11373
11574
|
hand_1 = new Hand_default({
|
|
@@ -11438,7 +11639,7 @@ function create_if_block_11(ctx) {
|
|
|
11438
11639
|
}
|
|
11439
11640
|
};
|
|
11440
11641
|
}
|
|
11441
|
-
function
|
|
11642
|
+
function create_if_block_15(ctx) {
|
|
11442
11643
|
let clear_1;
|
|
11443
11644
|
let current;
|
|
11444
11645
|
clear_1 = new Clear_default2({
|
|
@@ -11501,7 +11702,7 @@ function create_if_block_10(ctx) {
|
|
|
11501
11702
|
}
|
|
11502
11703
|
};
|
|
11503
11704
|
}
|
|
11504
|
-
function
|
|
11705
|
+
function create_if_block_14(ctx) {
|
|
11505
11706
|
let eraser_1;
|
|
11506
11707
|
let current;
|
|
11507
11708
|
eraser_1 = new Eraser_default2({
|
|
@@ -11572,7 +11773,7 @@ function create_if_block_9(ctx) {
|
|
|
11572
11773
|
}
|
|
11573
11774
|
};
|
|
11574
11775
|
}
|
|
11575
|
-
function
|
|
11776
|
+
function create_if_block_13(ctx) {
|
|
11576
11777
|
let shapes2;
|
|
11577
11778
|
let current;
|
|
11578
11779
|
shapes2 = new Shapes_default({
|
|
@@ -11654,7 +11855,7 @@ function create_if_block_8(ctx) {
|
|
|
11654
11855
|
}
|
|
11655
11856
|
};
|
|
11656
11857
|
}
|
|
11657
|
-
function
|
|
11858
|
+
function create_if_block_122(ctx) {
|
|
11658
11859
|
let text_1;
|
|
11659
11860
|
let current;
|
|
11660
11861
|
text_1 = new Text_default2({
|
|
@@ -11733,13 +11934,13 @@ function create_if_block_7(ctx) {
|
|
|
11733
11934
|
}
|
|
11734
11935
|
};
|
|
11735
11936
|
}
|
|
11736
|
-
function
|
|
11937
|
+
function create_if_block_11(ctx) {
|
|
11737
11938
|
let pencil_1;
|
|
11738
11939
|
let current;
|
|
11739
11940
|
pencil_1 = new Pencil_default2({
|
|
11740
11941
|
props: {
|
|
11741
|
-
|
|
11742
|
-
/*
|
|
11942
|
+
pencilType: (
|
|
11943
|
+
/*pencilType*/
|
|
11743
11944
|
ctx[16]
|
|
11744
11945
|
),
|
|
11745
11946
|
appliance: (
|
|
@@ -11779,9 +11980,9 @@ function create_if_block_6(ctx) {
|
|
|
11779
11980
|
},
|
|
11780
11981
|
p(ctx2, dirty) {
|
|
11781
11982
|
const pencil_1_changes = {};
|
|
11782
|
-
if (dirty[0] & /*
|
|
11983
|
+
if (dirty[0] & /*pencilType*/
|
|
11783
11984
|
65536)
|
|
11784
|
-
pencil_1_changes.
|
|
11985
|
+
pencil_1_changes.pencilType = /*pencilType*/
|
|
11785
11986
|
ctx2[16];
|
|
11786
11987
|
if (dirty[0] & /*appliance*/
|
|
11787
11988
|
262144)
|
|
@@ -11820,7 +12021,7 @@ function create_if_block_6(ctx) {
|
|
|
11820
12021
|
}
|
|
11821
12022
|
};
|
|
11822
12023
|
}
|
|
11823
|
-
function
|
|
12024
|
+
function create_if_block_10(ctx) {
|
|
11824
12025
|
let selector_1;
|
|
11825
12026
|
let current;
|
|
11826
12027
|
selector_1 = new Selector_default2({
|
|
@@ -11891,7 +12092,7 @@ function create_if_block_5(ctx) {
|
|
|
11891
12092
|
}
|
|
11892
12093
|
};
|
|
11893
12094
|
}
|
|
11894
|
-
function
|
|
12095
|
+
function create_if_block_9(ctx) {
|
|
11895
12096
|
let clicker_1;
|
|
11896
12097
|
let current;
|
|
11897
12098
|
clicker_1 = new Clicker_default({
|
|
@@ -11968,61 +12169,61 @@ function create_each_block_1(ctx) {
|
|
|
11968
12169
|
let if_block_anchor;
|
|
11969
12170
|
let current;
|
|
11970
12171
|
const if_block_creators = [
|
|
11971
|
-
create_if_block_4,
|
|
11972
|
-
create_if_block_5,
|
|
11973
|
-
create_if_block_6,
|
|
11974
|
-
create_if_block_7,
|
|
11975
|
-
create_if_block_8,
|
|
11976
12172
|
create_if_block_9,
|
|
11977
12173
|
create_if_block_10,
|
|
11978
12174
|
create_if_block_11,
|
|
11979
|
-
create_if_block_122
|
|
12175
|
+
create_if_block_122,
|
|
12176
|
+
create_if_block_13,
|
|
12177
|
+
create_if_block_14,
|
|
12178
|
+
create_if_block_15,
|
|
12179
|
+
create_if_block_16,
|
|
12180
|
+
create_if_block_17
|
|
11980
12181
|
];
|
|
11981
12182
|
const if_blocks = [];
|
|
11982
12183
|
function select_block_type(ctx2, dirty) {
|
|
11983
12184
|
if (
|
|
11984
12185
|
/*item*/
|
|
11985
|
-
ctx2[
|
|
12186
|
+
ctx2[59] === "clicker"
|
|
11986
12187
|
)
|
|
11987
12188
|
return 0;
|
|
11988
12189
|
if (
|
|
11989
12190
|
/*item*/
|
|
11990
|
-
ctx2[
|
|
12191
|
+
ctx2[59] === "selector"
|
|
11991
12192
|
)
|
|
11992
12193
|
return 1;
|
|
11993
12194
|
if (
|
|
11994
12195
|
/*item*/
|
|
11995
|
-
ctx2[
|
|
12196
|
+
ctx2[59] === "pencil"
|
|
11996
12197
|
)
|
|
11997
12198
|
return 2;
|
|
11998
12199
|
if (
|
|
11999
12200
|
/*item*/
|
|
12000
|
-
ctx2[
|
|
12201
|
+
ctx2[59] === "text"
|
|
12001
12202
|
)
|
|
12002
12203
|
return 3;
|
|
12003
12204
|
if (
|
|
12004
12205
|
/*item*/
|
|
12005
|
-
ctx2[
|
|
12206
|
+
ctx2[59] === "shapes"
|
|
12006
12207
|
)
|
|
12007
12208
|
return 4;
|
|
12008
12209
|
if (
|
|
12009
12210
|
/*item*/
|
|
12010
|
-
ctx2[
|
|
12211
|
+
ctx2[59] === "eraser"
|
|
12011
12212
|
)
|
|
12012
12213
|
return 5;
|
|
12013
12214
|
if (
|
|
12014
12215
|
/*item*/
|
|
12015
|
-
ctx2[
|
|
12216
|
+
ctx2[59] === "clear"
|
|
12016
12217
|
)
|
|
12017
12218
|
return 6;
|
|
12018
12219
|
if (
|
|
12019
12220
|
/*item*/
|
|
12020
|
-
ctx2[
|
|
12221
|
+
ctx2[59] === "hand"
|
|
12021
12222
|
)
|
|
12022
12223
|
return 7;
|
|
12023
12224
|
if (
|
|
12024
12225
|
/*item*/
|
|
12025
|
-
ctx2[
|
|
12226
|
+
ctx2[59] === "laserPointer"
|
|
12026
12227
|
)
|
|
12027
12228
|
return 8;
|
|
12028
12229
|
return -1;
|
|
@@ -12092,7 +12293,7 @@ function create_each_block_1(ctx) {
|
|
|
12092
12293
|
}
|
|
12093
12294
|
};
|
|
12094
12295
|
}
|
|
12095
|
-
function
|
|
12296
|
+
function create_if_block_8(ctx) {
|
|
12096
12297
|
let button;
|
|
12097
12298
|
let current;
|
|
12098
12299
|
const button_spread_levels = [
|
|
@@ -12115,7 +12316,7 @@ function create_if_block_3(ctx) {
|
|
|
12115
12316
|
}
|
|
12116
12317
|
];
|
|
12117
12318
|
let button_props = {
|
|
12118
|
-
$$slots: { default: [
|
|
12319
|
+
$$slots: { default: [create_default_slot_7] },
|
|
12119
12320
|
$$scope: { ctx }
|
|
12120
12321
|
};
|
|
12121
12322
|
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
@@ -12158,8 +12359,8 @@ function create_if_block_3(ctx) {
|
|
|
12158
12359
|
}
|
|
12159
12360
|
]) : {};
|
|
12160
12361
|
if (dirty[0] & /*theme*/
|
|
12161
|
-
2 | dirty[
|
|
12162
|
-
|
|
12362
|
+
2 | dirty[2] & /*$$scope*/
|
|
12363
|
+
1) {
|
|
12163
12364
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
12164
12365
|
}
|
|
12165
12366
|
button.$set(button_changes);
|
|
@@ -12179,7 +12380,7 @@ function create_if_block_3(ctx) {
|
|
|
12179
12380
|
}
|
|
12180
12381
|
};
|
|
12181
12382
|
}
|
|
12182
|
-
function
|
|
12383
|
+
function create_default_slot_7(ctx) {
|
|
12183
12384
|
let icons_apps;
|
|
12184
12385
|
let current;
|
|
12185
12386
|
icons_apps = new Icons_default.Apps({ props: { theme: (
|
|
@@ -12217,7 +12418,7 @@ function create_default_slot_53(ctx) {
|
|
|
12217
12418
|
}
|
|
12218
12419
|
};
|
|
12219
12420
|
}
|
|
12220
|
-
function
|
|
12421
|
+
function create_if_block_7(ctx) {
|
|
12221
12422
|
let button;
|
|
12222
12423
|
let current;
|
|
12223
12424
|
button = new Button_default({
|
|
@@ -12232,7 +12433,7 @@ function create_if_block_2(ctx) {
|
|
|
12232
12433
|
/*disabled*/
|
|
12233
12434
|
ctx[3]
|
|
12234
12435
|
),
|
|
12235
|
-
$$slots: { default: [
|
|
12436
|
+
$$slots: { default: [create_default_slot_6] },
|
|
12236
12437
|
$$scope: { ctx }
|
|
12237
12438
|
}
|
|
12238
12439
|
});
|
|
@@ -12260,8 +12461,8 @@ function create_if_block_2(ctx) {
|
|
|
12260
12461
|
button_changes.disabled = /*disabled*/
|
|
12261
12462
|
ctx2[3];
|
|
12262
12463
|
if (dirty[0] & /*theme*/
|
|
12263
|
-
2 | dirty[
|
|
12264
|
-
|
|
12464
|
+
2 | dirty[2] & /*$$scope*/
|
|
12465
|
+
1) {
|
|
12265
12466
|
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
12266
12467
|
}
|
|
12267
12468
|
button.$set(button_changes);
|
|
@@ -12281,7 +12482,7 @@ function create_if_block_2(ctx) {
|
|
|
12281
12482
|
}
|
|
12282
12483
|
};
|
|
12283
12484
|
}
|
|
12284
|
-
function
|
|
12485
|
+
function create_default_slot_6(ctx) {
|
|
12285
12486
|
let icons_down;
|
|
12286
12487
|
let current;
|
|
12287
12488
|
icons_down = new Icons_default.Down({ props: { theme: (
|
|
@@ -12319,73 +12520,244 @@ function create_default_slot_43(ctx) {
|
|
|
12319
12520
|
}
|
|
12320
12521
|
};
|
|
12321
12522
|
}
|
|
12322
|
-
function
|
|
12323
|
-
let
|
|
12324
|
-
let
|
|
12325
|
-
let
|
|
12523
|
+
function create_if_block14(ctx) {
|
|
12524
|
+
let current_block_type_index;
|
|
12525
|
+
let if_block0;
|
|
12526
|
+
let t0;
|
|
12527
|
+
let current_block_type_index_1;
|
|
12528
|
+
let if_block1;
|
|
12529
|
+
let t1;
|
|
12530
|
+
let current_block_type_index_2;
|
|
12531
|
+
let if_block2;
|
|
12532
|
+
let if_block2_anchor;
|
|
12326
12533
|
let current;
|
|
12327
|
-
const
|
|
12328
|
-
|
|
12329
|
-
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
|
|
12335
|
-
|
|
12336
|
-
|
|
12337
|
-
|
|
12534
|
+
const if_block_creators = [create_if_block_5, create_if_block_6];
|
|
12535
|
+
const if_blocks = [];
|
|
12536
|
+
function select_block_type_1(ctx2, dirty) {
|
|
12537
|
+
if (
|
|
12538
|
+
/*pencilType*/
|
|
12539
|
+
ctx2[16] !== "pencil"
|
|
12540
|
+
)
|
|
12541
|
+
return 0;
|
|
12542
|
+
if (
|
|
12543
|
+
/*pencilType*/
|
|
12544
|
+
ctx2[16] === "pencil"
|
|
12545
|
+
)
|
|
12546
|
+
return 1;
|
|
12547
|
+
return -1;
|
|
12548
|
+
}
|
|
12549
|
+
if (~(current_block_type_index = select_block_type_1(ctx))) {
|
|
12550
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
12551
|
+
}
|
|
12552
|
+
const if_block_creators_1 = [create_if_block_3, create_if_block_4];
|
|
12553
|
+
const if_blocks_1 = [];
|
|
12554
|
+
function select_block_type_2(ctx2, dirty) {
|
|
12555
|
+
if (
|
|
12556
|
+
/*pencilType*/
|
|
12557
|
+
ctx2[16] === "laser"
|
|
12558
|
+
)
|
|
12559
|
+
return 0;
|
|
12560
|
+
if (
|
|
12561
|
+
/*pencilType*/
|
|
12562
|
+
ctx2[16] !== "laser"
|
|
12563
|
+
)
|
|
12564
|
+
return 1;
|
|
12565
|
+
return -1;
|
|
12566
|
+
}
|
|
12567
|
+
if (~(current_block_type_index_1 = select_block_type_2(ctx))) {
|
|
12568
|
+
if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
|
|
12569
|
+
}
|
|
12570
|
+
const if_block_creators_2 = [create_if_block_19, create_if_block_22];
|
|
12571
|
+
const if_blocks_2 = [];
|
|
12572
|
+
function select_block_type_3(ctx2, dirty) {
|
|
12573
|
+
if (
|
|
12574
|
+
/*pencilType*/
|
|
12575
|
+
ctx2[16] === "mark"
|
|
12576
|
+
)
|
|
12577
|
+
return 0;
|
|
12578
|
+
if (
|
|
12579
|
+
/*pencilType*/
|
|
12580
|
+
ctx2[16] !== "mark"
|
|
12581
|
+
)
|
|
12582
|
+
return 1;
|
|
12583
|
+
return -1;
|
|
12338
12584
|
}
|
|
12339
|
-
|
|
12340
|
-
|
|
12585
|
+
if (~(current_block_type_index_2 = select_block_type_3(ctx))) {
|
|
12586
|
+
if_block2 = if_blocks_2[current_block_type_index_2] = if_block_creators_2[current_block_type_index_2](ctx);
|
|
12587
|
+
}
|
|
12588
|
+
return {
|
|
12589
|
+
c() {
|
|
12590
|
+
if (if_block0)
|
|
12591
|
+
if_block0.c();
|
|
12592
|
+
t0 = space();
|
|
12593
|
+
if (if_block1)
|
|
12594
|
+
if_block1.c();
|
|
12595
|
+
t1 = space();
|
|
12596
|
+
if (if_block2)
|
|
12597
|
+
if_block2.c();
|
|
12598
|
+
if_block2_anchor = empty();
|
|
12599
|
+
},
|
|
12600
|
+
m(target, anchor) {
|
|
12601
|
+
if (~current_block_type_index) {
|
|
12602
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
|
12603
|
+
}
|
|
12604
|
+
insert(target, t0, anchor);
|
|
12605
|
+
if (~current_block_type_index_1) {
|
|
12606
|
+
if_blocks_1[current_block_type_index_1].m(target, anchor);
|
|
12607
|
+
}
|
|
12608
|
+
insert(target, t1, anchor);
|
|
12609
|
+
if (~current_block_type_index_2) {
|
|
12610
|
+
if_blocks_2[current_block_type_index_2].m(target, anchor);
|
|
12611
|
+
}
|
|
12612
|
+
insert(target, if_block2_anchor, anchor);
|
|
12613
|
+
current = true;
|
|
12614
|
+
},
|
|
12615
|
+
p(ctx2, dirty) {
|
|
12616
|
+
let previous_block_index = current_block_type_index;
|
|
12617
|
+
current_block_type_index = select_block_type_1(ctx2);
|
|
12618
|
+
if (current_block_type_index === previous_block_index) {
|
|
12619
|
+
if (~current_block_type_index) {
|
|
12620
|
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
12621
|
+
}
|
|
12622
|
+
} else {
|
|
12623
|
+
if (if_block0) {
|
|
12624
|
+
group_outros();
|
|
12625
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
12626
|
+
if_blocks[previous_block_index] = null;
|
|
12627
|
+
});
|
|
12628
|
+
check_outros();
|
|
12629
|
+
}
|
|
12630
|
+
if (~current_block_type_index) {
|
|
12631
|
+
if_block0 = if_blocks[current_block_type_index];
|
|
12632
|
+
if (!if_block0) {
|
|
12633
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
12634
|
+
if_block0.c();
|
|
12635
|
+
} else {
|
|
12636
|
+
if_block0.p(ctx2, dirty);
|
|
12637
|
+
}
|
|
12638
|
+
transition_in(if_block0, 1);
|
|
12639
|
+
if_block0.m(t0.parentNode, t0);
|
|
12640
|
+
} else {
|
|
12641
|
+
if_block0 = null;
|
|
12642
|
+
}
|
|
12643
|
+
}
|
|
12644
|
+
let previous_block_index_1 = current_block_type_index_1;
|
|
12645
|
+
current_block_type_index_1 = select_block_type_2(ctx2);
|
|
12646
|
+
if (current_block_type_index_1 === previous_block_index_1) {
|
|
12647
|
+
if (~current_block_type_index_1) {
|
|
12648
|
+
if_blocks_1[current_block_type_index_1].p(ctx2, dirty);
|
|
12649
|
+
}
|
|
12650
|
+
} else {
|
|
12651
|
+
if (if_block1) {
|
|
12652
|
+
group_outros();
|
|
12653
|
+
transition_out(if_blocks_1[previous_block_index_1], 1, 1, () => {
|
|
12654
|
+
if_blocks_1[previous_block_index_1] = null;
|
|
12655
|
+
});
|
|
12656
|
+
check_outros();
|
|
12657
|
+
}
|
|
12658
|
+
if (~current_block_type_index_1) {
|
|
12659
|
+
if_block1 = if_blocks_1[current_block_type_index_1];
|
|
12660
|
+
if (!if_block1) {
|
|
12661
|
+
if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx2);
|
|
12662
|
+
if_block1.c();
|
|
12663
|
+
} else {
|
|
12664
|
+
if_block1.p(ctx2, dirty);
|
|
12665
|
+
}
|
|
12666
|
+
transition_in(if_block1, 1);
|
|
12667
|
+
if_block1.m(t1.parentNode, t1);
|
|
12668
|
+
} else {
|
|
12669
|
+
if_block1 = null;
|
|
12670
|
+
}
|
|
12671
|
+
}
|
|
12672
|
+
let previous_block_index_2 = current_block_type_index_2;
|
|
12673
|
+
current_block_type_index_2 = select_block_type_3(ctx2);
|
|
12674
|
+
if (current_block_type_index_2 === previous_block_index_2) {
|
|
12675
|
+
if (~current_block_type_index_2) {
|
|
12676
|
+
if_blocks_2[current_block_type_index_2].p(ctx2, dirty);
|
|
12677
|
+
}
|
|
12678
|
+
} else {
|
|
12679
|
+
if (if_block2) {
|
|
12680
|
+
group_outros();
|
|
12681
|
+
transition_out(if_blocks_2[previous_block_index_2], 1, 1, () => {
|
|
12682
|
+
if_blocks_2[previous_block_index_2] = null;
|
|
12683
|
+
});
|
|
12684
|
+
check_outros();
|
|
12685
|
+
}
|
|
12686
|
+
if (~current_block_type_index_2) {
|
|
12687
|
+
if_block2 = if_blocks_2[current_block_type_index_2];
|
|
12688
|
+
if (!if_block2) {
|
|
12689
|
+
if_block2 = if_blocks_2[current_block_type_index_2] = if_block_creators_2[current_block_type_index_2](ctx2);
|
|
12690
|
+
if_block2.c();
|
|
12691
|
+
} else {
|
|
12692
|
+
if_block2.p(ctx2, dirty);
|
|
12693
|
+
}
|
|
12694
|
+
transition_in(if_block2, 1);
|
|
12695
|
+
if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
|
|
12696
|
+
} else {
|
|
12697
|
+
if_block2 = null;
|
|
12698
|
+
}
|
|
12699
|
+
}
|
|
12700
|
+
},
|
|
12701
|
+
i(local) {
|
|
12702
|
+
if (current)
|
|
12703
|
+
return;
|
|
12704
|
+
transition_in(if_block0);
|
|
12705
|
+
transition_in(if_block1);
|
|
12706
|
+
transition_in(if_block2);
|
|
12707
|
+
current = true;
|
|
12708
|
+
},
|
|
12709
|
+
o(local) {
|
|
12710
|
+
transition_out(if_block0);
|
|
12711
|
+
transition_out(if_block1);
|
|
12712
|
+
transition_out(if_block2);
|
|
12713
|
+
current = false;
|
|
12714
|
+
},
|
|
12715
|
+
d(detaching) {
|
|
12716
|
+
if (~current_block_type_index) {
|
|
12717
|
+
if_blocks[current_block_type_index].d(detaching);
|
|
12718
|
+
}
|
|
12719
|
+
if (detaching)
|
|
12720
|
+
detach(t0);
|
|
12721
|
+
if (~current_block_type_index_1) {
|
|
12722
|
+
if_blocks_1[current_block_type_index_1].d(detaching);
|
|
12723
|
+
}
|
|
12724
|
+
if (detaching)
|
|
12725
|
+
detach(t1);
|
|
12726
|
+
if (~current_block_type_index_2) {
|
|
12727
|
+
if_blocks_2[current_block_type_index_2].d(detaching);
|
|
12728
|
+
}
|
|
12729
|
+
if (detaching)
|
|
12730
|
+
detach(if_block2_anchor);
|
|
12731
|
+
}
|
|
12732
|
+
};
|
|
12733
|
+
}
|
|
12734
|
+
function create_if_block_6(ctx) {
|
|
12735
|
+
let button;
|
|
12736
|
+
let current;
|
|
12737
|
+
const button_spread_levels = [
|
|
12341
12738
|
{ class: name5 + "-panel-switch-btn" },
|
|
12342
12739
|
/*btn_props*/
|
|
12343
12740
|
ctx[15]
|
|
12344
12741
|
];
|
|
12345
|
-
let
|
|
12346
|
-
$$slots: { default: [
|
|
12742
|
+
let button_props = {
|
|
12743
|
+
$$slots: { default: [create_default_slot_53] },
|
|
12347
12744
|
$$scope: { ctx }
|
|
12348
12745
|
};
|
|
12349
|
-
for (let i = 0; i <
|
|
12350
|
-
|
|
12746
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
12747
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
12351
12748
|
}
|
|
12352
|
-
|
|
12353
|
-
button1.$on(
|
|
12354
|
-
"click",
|
|
12355
|
-
/*useLaserPen*/
|
|
12356
|
-
ctx[34]
|
|
12357
|
-
);
|
|
12749
|
+
button = new Button_default({ props: button_props });
|
|
12358
12750
|
return {
|
|
12359
12751
|
c() {
|
|
12360
|
-
create_component(
|
|
12361
|
-
t_1 = space();
|
|
12362
|
-
create_component(button1.$$.fragment);
|
|
12752
|
+
create_component(button.$$.fragment);
|
|
12363
12753
|
},
|
|
12364
12754
|
m(target, anchor) {
|
|
12365
|
-
mount_component(
|
|
12366
|
-
insert(target, t_1, anchor);
|
|
12367
|
-
mount_component(button1, target, anchor);
|
|
12755
|
+
mount_component(button, target, anchor);
|
|
12368
12756
|
current = true;
|
|
12369
12757
|
},
|
|
12370
12758
|
p(ctx2, dirty) {
|
|
12371
|
-
const
|
|
12372
|
-
32768 ? get_spread_update(
|
|
12373
|
-
dirty & /*name*/
|
|
12374
|
-
0 && { class: name5 + "-panel-switch-btn" },
|
|
12375
|
-
dirty[0] & /*btn_props*/
|
|
12376
|
-
32768 && get_spread_object(
|
|
12377
|
-
/*btn_props*/
|
|
12378
|
-
ctx2[15]
|
|
12379
|
-
)
|
|
12380
|
-
]) : {};
|
|
12381
|
-
if (dirty[0] & /*theme*/
|
|
12382
|
-
2 | dirty[1] & /*$$scope*/
|
|
12383
|
-
268435456) {
|
|
12384
|
-
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
12385
|
-
}
|
|
12386
|
-
button0.$set(button0_changes);
|
|
12387
|
-
const button1_changes = dirty[0] & /*btn_props*/
|
|
12388
|
-
32768 ? get_spread_update(button1_spread_levels, [
|
|
12759
|
+
const button_changes = dirty[0] & /*btn_props*/
|
|
12760
|
+
32768 ? get_spread_update(button_spread_levels, [
|
|
12389
12761
|
dirty & /*name*/
|
|
12390
12762
|
0 && { class: name5 + "-panel-switch-btn" },
|
|
12391
12763
|
dirty[0] & /*btn_props*/
|
|
@@ -12395,99 +12767,396 @@ function create_if_block_14(ctx) {
|
|
|
12395
12767
|
)
|
|
12396
12768
|
]) : {};
|
|
12397
12769
|
if (dirty[0] & /*theme*/
|
|
12398
|
-
2 | dirty[
|
|
12399
|
-
|
|
12400
|
-
|
|
12770
|
+
2 | dirty[2] & /*$$scope*/
|
|
12771
|
+
1) {
|
|
12772
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
12401
12773
|
}
|
|
12402
|
-
|
|
12774
|
+
button.$set(button_changes);
|
|
12403
12775
|
},
|
|
12404
12776
|
i(local) {
|
|
12405
12777
|
if (current)
|
|
12406
12778
|
return;
|
|
12407
|
-
transition_in(
|
|
12408
|
-
transition_in(button1.$$.fragment, local);
|
|
12779
|
+
transition_in(button.$$.fragment, local);
|
|
12409
12780
|
current = true;
|
|
12410
12781
|
},
|
|
12411
12782
|
o(local) {
|
|
12412
|
-
transition_out(
|
|
12413
|
-
|
|
12783
|
+
transition_out(button.$$.fragment, local);
|
|
12784
|
+
current = false;
|
|
12785
|
+
},
|
|
12786
|
+
d(detaching) {
|
|
12787
|
+
destroy_component(button, detaching);
|
|
12788
|
+
}
|
|
12789
|
+
};
|
|
12790
|
+
}
|
|
12791
|
+
function create_if_block_5(ctx) {
|
|
12792
|
+
let button;
|
|
12793
|
+
let current;
|
|
12794
|
+
const button_spread_levels = [
|
|
12795
|
+
{ class: name5 + "-panel-switch-btn" },
|
|
12796
|
+
/*btn_props*/
|
|
12797
|
+
ctx[15]
|
|
12798
|
+
];
|
|
12799
|
+
let button_props = {
|
|
12800
|
+
$$slots: { default: [create_default_slot_43] },
|
|
12801
|
+
$$scope: { ctx }
|
|
12802
|
+
};
|
|
12803
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
12804
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
12805
|
+
}
|
|
12806
|
+
button = new Button_default({ props: button_props });
|
|
12807
|
+
button.$on(
|
|
12808
|
+
"click",
|
|
12809
|
+
/*pencil*/
|
|
12810
|
+
ctx[28]
|
|
12811
|
+
);
|
|
12812
|
+
return {
|
|
12813
|
+
c() {
|
|
12814
|
+
create_component(button.$$.fragment);
|
|
12815
|
+
},
|
|
12816
|
+
m(target, anchor) {
|
|
12817
|
+
mount_component(button, target, anchor);
|
|
12818
|
+
current = true;
|
|
12819
|
+
},
|
|
12820
|
+
p(ctx2, dirty) {
|
|
12821
|
+
const button_changes = dirty[0] & /*btn_props*/
|
|
12822
|
+
32768 ? get_spread_update(button_spread_levels, [
|
|
12823
|
+
dirty & /*name*/
|
|
12824
|
+
0 && { class: name5 + "-panel-switch-btn" },
|
|
12825
|
+
dirty[0] & /*btn_props*/
|
|
12826
|
+
32768 && get_spread_object(
|
|
12827
|
+
/*btn_props*/
|
|
12828
|
+
ctx2[15]
|
|
12829
|
+
)
|
|
12830
|
+
]) : {};
|
|
12831
|
+
if (dirty[0] & /*theme*/
|
|
12832
|
+
2 | dirty[2] & /*$$scope*/
|
|
12833
|
+
1) {
|
|
12834
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
12835
|
+
}
|
|
12836
|
+
button.$set(button_changes);
|
|
12837
|
+
},
|
|
12838
|
+
i(local) {
|
|
12839
|
+
if (current)
|
|
12840
|
+
return;
|
|
12841
|
+
transition_in(button.$$.fragment, local);
|
|
12842
|
+
current = true;
|
|
12843
|
+
},
|
|
12844
|
+
o(local) {
|
|
12845
|
+
transition_out(button.$$.fragment, local);
|
|
12846
|
+
current = false;
|
|
12847
|
+
},
|
|
12848
|
+
d(detaching) {
|
|
12849
|
+
destroy_component(button, detaching);
|
|
12850
|
+
}
|
|
12851
|
+
};
|
|
12852
|
+
}
|
|
12853
|
+
function create_default_slot_53(ctx) {
|
|
12854
|
+
let icons_pencilfilled;
|
|
12855
|
+
let current;
|
|
12856
|
+
icons_pencilfilled = new Icons_default.PencilFilled({
|
|
12857
|
+
props: { theme: (
|
|
12858
|
+
/*theme*/
|
|
12859
|
+
ctx[1]
|
|
12860
|
+
), active: true }
|
|
12861
|
+
});
|
|
12862
|
+
return {
|
|
12863
|
+
c() {
|
|
12864
|
+
create_component(icons_pencilfilled.$$.fragment);
|
|
12865
|
+
},
|
|
12866
|
+
m(target, anchor) {
|
|
12867
|
+
mount_component(icons_pencilfilled, target, anchor);
|
|
12868
|
+
current = true;
|
|
12869
|
+
},
|
|
12870
|
+
p(ctx2, dirty) {
|
|
12871
|
+
const icons_pencilfilled_changes = {};
|
|
12872
|
+
if (dirty[0] & /*theme*/
|
|
12873
|
+
2)
|
|
12874
|
+
icons_pencilfilled_changes.theme = /*theme*/
|
|
12875
|
+
ctx2[1];
|
|
12876
|
+
icons_pencilfilled.$set(icons_pencilfilled_changes);
|
|
12877
|
+
},
|
|
12878
|
+
i(local) {
|
|
12879
|
+
if (current)
|
|
12880
|
+
return;
|
|
12881
|
+
transition_in(icons_pencilfilled.$$.fragment, local);
|
|
12882
|
+
current = true;
|
|
12883
|
+
},
|
|
12884
|
+
o(local) {
|
|
12885
|
+
transition_out(icons_pencilfilled.$$.fragment, local);
|
|
12886
|
+
current = false;
|
|
12887
|
+
},
|
|
12888
|
+
d(detaching) {
|
|
12889
|
+
destroy_component(icons_pencilfilled, detaching);
|
|
12890
|
+
}
|
|
12891
|
+
};
|
|
12892
|
+
}
|
|
12893
|
+
function create_default_slot_43(ctx) {
|
|
12894
|
+
let icons_pencil;
|
|
12895
|
+
let current;
|
|
12896
|
+
icons_pencil = new Icons_default.Pencil({ props: { theme: (
|
|
12897
|
+
/*theme*/
|
|
12898
|
+
ctx[1]
|
|
12899
|
+
) } });
|
|
12900
|
+
return {
|
|
12901
|
+
c() {
|
|
12902
|
+
create_component(icons_pencil.$$.fragment);
|
|
12903
|
+
},
|
|
12904
|
+
m(target, anchor) {
|
|
12905
|
+
mount_component(icons_pencil, target, anchor);
|
|
12906
|
+
current = true;
|
|
12907
|
+
},
|
|
12908
|
+
p(ctx2, dirty) {
|
|
12909
|
+
const icons_pencil_changes = {};
|
|
12910
|
+
if (dirty[0] & /*theme*/
|
|
12911
|
+
2)
|
|
12912
|
+
icons_pencil_changes.theme = /*theme*/
|
|
12913
|
+
ctx2[1];
|
|
12914
|
+
icons_pencil.$set(icons_pencil_changes);
|
|
12915
|
+
},
|
|
12916
|
+
i(local) {
|
|
12917
|
+
if (current)
|
|
12918
|
+
return;
|
|
12919
|
+
transition_in(icons_pencil.$$.fragment, local);
|
|
12920
|
+
current = true;
|
|
12921
|
+
},
|
|
12922
|
+
o(local) {
|
|
12923
|
+
transition_out(icons_pencil.$$.fragment, local);
|
|
12924
|
+
current = false;
|
|
12925
|
+
},
|
|
12926
|
+
d(detaching) {
|
|
12927
|
+
destroy_component(icons_pencil, detaching);
|
|
12928
|
+
}
|
|
12929
|
+
};
|
|
12930
|
+
}
|
|
12931
|
+
function create_if_block_4(ctx) {
|
|
12932
|
+
let button;
|
|
12933
|
+
let current;
|
|
12934
|
+
const button_spread_levels = [
|
|
12935
|
+
{ class: name5 + "-panel-switch-btn" },
|
|
12936
|
+
/*btn_props*/
|
|
12937
|
+
ctx[15]
|
|
12938
|
+
];
|
|
12939
|
+
let button_props = {
|
|
12940
|
+
$$slots: { default: [create_default_slot_34] },
|
|
12941
|
+
$$scope: { ctx }
|
|
12942
|
+
};
|
|
12943
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
12944
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
12945
|
+
}
|
|
12946
|
+
button = new Button_default({ props: button_props });
|
|
12947
|
+
button.$on(
|
|
12948
|
+
"click",
|
|
12949
|
+
/*useLaserPen*/
|
|
12950
|
+
ctx[34]
|
|
12951
|
+
);
|
|
12952
|
+
return {
|
|
12953
|
+
c() {
|
|
12954
|
+
create_component(button.$$.fragment);
|
|
12955
|
+
},
|
|
12956
|
+
m(target, anchor) {
|
|
12957
|
+
mount_component(button, target, anchor);
|
|
12958
|
+
current = true;
|
|
12959
|
+
},
|
|
12960
|
+
p(ctx2, dirty) {
|
|
12961
|
+
const button_changes = dirty[0] & /*btn_props*/
|
|
12962
|
+
32768 ? get_spread_update(button_spread_levels, [
|
|
12963
|
+
dirty & /*name*/
|
|
12964
|
+
0 && { class: name5 + "-panel-switch-btn" },
|
|
12965
|
+
dirty[0] & /*btn_props*/
|
|
12966
|
+
32768 && get_spread_object(
|
|
12967
|
+
/*btn_props*/
|
|
12968
|
+
ctx2[15]
|
|
12969
|
+
)
|
|
12970
|
+
]) : {};
|
|
12971
|
+
if (dirty[0] & /*theme*/
|
|
12972
|
+
2 | dirty[2] & /*$$scope*/
|
|
12973
|
+
1) {
|
|
12974
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
12975
|
+
}
|
|
12976
|
+
button.$set(button_changes);
|
|
12977
|
+
},
|
|
12978
|
+
i(local) {
|
|
12979
|
+
if (current)
|
|
12980
|
+
return;
|
|
12981
|
+
transition_in(button.$$.fragment, local);
|
|
12982
|
+
current = true;
|
|
12983
|
+
},
|
|
12984
|
+
o(local) {
|
|
12985
|
+
transition_out(button.$$.fragment, local);
|
|
12986
|
+
current = false;
|
|
12987
|
+
},
|
|
12988
|
+
d(detaching) {
|
|
12989
|
+
destroy_component(button, detaching);
|
|
12990
|
+
}
|
|
12991
|
+
};
|
|
12992
|
+
}
|
|
12993
|
+
function create_if_block_3(ctx) {
|
|
12994
|
+
let button;
|
|
12995
|
+
let current;
|
|
12996
|
+
const button_spread_levels = [
|
|
12997
|
+
{ class: name5 + "-panel-switch-btn" },
|
|
12998
|
+
/*btn_props*/
|
|
12999
|
+
ctx[15]
|
|
13000
|
+
];
|
|
13001
|
+
let button_props = {
|
|
13002
|
+
$$slots: { default: [create_default_slot_24] },
|
|
13003
|
+
$$scope: { ctx }
|
|
13004
|
+
};
|
|
13005
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
13006
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
13007
|
+
}
|
|
13008
|
+
button = new Button_default({ props: button_props });
|
|
13009
|
+
return {
|
|
13010
|
+
c() {
|
|
13011
|
+
create_component(button.$$.fragment);
|
|
13012
|
+
},
|
|
13013
|
+
m(target, anchor) {
|
|
13014
|
+
mount_component(button, target, anchor);
|
|
13015
|
+
current = true;
|
|
13016
|
+
},
|
|
13017
|
+
p(ctx2, dirty) {
|
|
13018
|
+
const button_changes = dirty[0] & /*btn_props*/
|
|
13019
|
+
32768 ? get_spread_update(button_spread_levels, [
|
|
13020
|
+
dirty & /*name*/
|
|
13021
|
+
0 && { class: name5 + "-panel-switch-btn" },
|
|
13022
|
+
dirty[0] & /*btn_props*/
|
|
13023
|
+
32768 && get_spread_object(
|
|
13024
|
+
/*btn_props*/
|
|
13025
|
+
ctx2[15]
|
|
13026
|
+
)
|
|
13027
|
+
]) : {};
|
|
13028
|
+
if (dirty[0] & /*theme*/
|
|
13029
|
+
2 | dirty[2] & /*$$scope*/
|
|
13030
|
+
1) {
|
|
13031
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
13032
|
+
}
|
|
13033
|
+
button.$set(button_changes);
|
|
13034
|
+
},
|
|
13035
|
+
i(local) {
|
|
13036
|
+
if (current)
|
|
13037
|
+
return;
|
|
13038
|
+
transition_in(button.$$.fragment, local);
|
|
13039
|
+
current = true;
|
|
13040
|
+
},
|
|
13041
|
+
o(local) {
|
|
13042
|
+
transition_out(button.$$.fragment, local);
|
|
13043
|
+
current = false;
|
|
13044
|
+
},
|
|
13045
|
+
d(detaching) {
|
|
13046
|
+
destroy_component(button, detaching);
|
|
13047
|
+
}
|
|
13048
|
+
};
|
|
13049
|
+
}
|
|
13050
|
+
function create_default_slot_34(ctx) {
|
|
13051
|
+
let icons_laserpen;
|
|
13052
|
+
let current;
|
|
13053
|
+
icons_laserpen = new Icons_default.LaserPen({ props: { theme: (
|
|
13054
|
+
/*theme*/
|
|
13055
|
+
ctx[1]
|
|
13056
|
+
) } });
|
|
13057
|
+
return {
|
|
13058
|
+
c() {
|
|
13059
|
+
create_component(icons_laserpen.$$.fragment);
|
|
13060
|
+
},
|
|
13061
|
+
m(target, anchor) {
|
|
13062
|
+
mount_component(icons_laserpen, target, anchor);
|
|
13063
|
+
current = true;
|
|
13064
|
+
},
|
|
13065
|
+
p(ctx2, dirty) {
|
|
13066
|
+
const icons_laserpen_changes = {};
|
|
13067
|
+
if (dirty[0] & /*theme*/
|
|
13068
|
+
2)
|
|
13069
|
+
icons_laserpen_changes.theme = /*theme*/
|
|
13070
|
+
ctx2[1];
|
|
13071
|
+
icons_laserpen.$set(icons_laserpen_changes);
|
|
13072
|
+
},
|
|
13073
|
+
i(local) {
|
|
13074
|
+
if (current)
|
|
13075
|
+
return;
|
|
13076
|
+
transition_in(icons_laserpen.$$.fragment, local);
|
|
13077
|
+
current = true;
|
|
13078
|
+
},
|
|
13079
|
+
o(local) {
|
|
13080
|
+
transition_out(icons_laserpen.$$.fragment, local);
|
|
13081
|
+
current = false;
|
|
13082
|
+
},
|
|
13083
|
+
d(detaching) {
|
|
13084
|
+
destroy_component(icons_laserpen, detaching);
|
|
13085
|
+
}
|
|
13086
|
+
};
|
|
13087
|
+
}
|
|
13088
|
+
function create_default_slot_24(ctx) {
|
|
13089
|
+
let icons_laserpenfilled;
|
|
13090
|
+
let current;
|
|
13091
|
+
icons_laserpenfilled = new Icons_default.LaserPenFilled({
|
|
13092
|
+
props: { theme: (
|
|
13093
|
+
/*theme*/
|
|
13094
|
+
ctx[1]
|
|
13095
|
+
), active: true }
|
|
13096
|
+
});
|
|
13097
|
+
return {
|
|
13098
|
+
c() {
|
|
13099
|
+
create_component(icons_laserpenfilled.$$.fragment);
|
|
13100
|
+
},
|
|
13101
|
+
m(target, anchor) {
|
|
13102
|
+
mount_component(icons_laserpenfilled, target, anchor);
|
|
13103
|
+
current = true;
|
|
13104
|
+
},
|
|
13105
|
+
p(ctx2, dirty) {
|
|
13106
|
+
const icons_laserpenfilled_changes = {};
|
|
13107
|
+
if (dirty[0] & /*theme*/
|
|
13108
|
+
2)
|
|
13109
|
+
icons_laserpenfilled_changes.theme = /*theme*/
|
|
13110
|
+
ctx2[1];
|
|
13111
|
+
icons_laserpenfilled.$set(icons_laserpenfilled_changes);
|
|
13112
|
+
},
|
|
13113
|
+
i(local) {
|
|
13114
|
+
if (current)
|
|
13115
|
+
return;
|
|
13116
|
+
transition_in(icons_laserpenfilled.$$.fragment, local);
|
|
13117
|
+
current = true;
|
|
13118
|
+
},
|
|
13119
|
+
o(local) {
|
|
13120
|
+
transition_out(icons_laserpenfilled.$$.fragment, local);
|
|
12414
13121
|
current = false;
|
|
12415
13122
|
},
|
|
12416
13123
|
d(detaching) {
|
|
12417
|
-
destroy_component(
|
|
12418
|
-
if (detaching)
|
|
12419
|
-
detach(t_1);
|
|
12420
|
-
destroy_component(button1, detaching);
|
|
13124
|
+
destroy_component(icons_laserpenfilled, detaching);
|
|
12421
13125
|
}
|
|
12422
13126
|
};
|
|
12423
13127
|
}
|
|
12424
|
-
function
|
|
12425
|
-
let
|
|
12426
|
-
let t_1;
|
|
12427
|
-
let button1;
|
|
13128
|
+
function create_if_block_22(ctx) {
|
|
13129
|
+
let button;
|
|
12428
13130
|
let current;
|
|
12429
|
-
const
|
|
13131
|
+
const button_spread_levels = [
|
|
12430
13132
|
{ class: name5 + "-panel-switch-btn" },
|
|
12431
13133
|
/*btn_props*/
|
|
12432
13134
|
ctx[15]
|
|
12433
13135
|
];
|
|
12434
|
-
let
|
|
13136
|
+
let button_props = {
|
|
12435
13137
|
$$slots: { default: [create_default_slot_14] },
|
|
12436
13138
|
$$scope: { ctx }
|
|
12437
13139
|
};
|
|
12438
|
-
for (let i = 0; i <
|
|
12439
|
-
|
|
13140
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
13141
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
12440
13142
|
}
|
|
12441
|
-
|
|
12442
|
-
|
|
13143
|
+
button = new Button_default({ props: button_props });
|
|
13144
|
+
button.$on(
|
|
12443
13145
|
"click",
|
|
12444
|
-
/*
|
|
12445
|
-
ctx[
|
|
13146
|
+
/*useMarkPen*/
|
|
13147
|
+
ctx[35]
|
|
12446
13148
|
);
|
|
12447
|
-
const button1_spread_levels = [
|
|
12448
|
-
{ class: name5 + "-panel-switch-btn" },
|
|
12449
|
-
/*btn_props*/
|
|
12450
|
-
ctx[15]
|
|
12451
|
-
];
|
|
12452
|
-
let button1_props = {
|
|
12453
|
-
$$slots: { default: [create_default_slot13] },
|
|
12454
|
-
$$scope: { ctx }
|
|
12455
|
-
};
|
|
12456
|
-
for (let i = 0; i < button1_spread_levels.length; i += 1) {
|
|
12457
|
-
button1_props = assign(button1_props, button1_spread_levels[i]);
|
|
12458
|
-
}
|
|
12459
|
-
button1 = new Button_default({ props: button1_props });
|
|
12460
13149
|
return {
|
|
12461
13150
|
c() {
|
|
12462
|
-
create_component(
|
|
12463
|
-
t_1 = space();
|
|
12464
|
-
create_component(button1.$$.fragment);
|
|
13151
|
+
create_component(button.$$.fragment);
|
|
12465
13152
|
},
|
|
12466
13153
|
m(target, anchor) {
|
|
12467
|
-
mount_component(
|
|
12468
|
-
insert(target, t_1, anchor);
|
|
12469
|
-
mount_component(button1, target, anchor);
|
|
13154
|
+
mount_component(button, target, anchor);
|
|
12470
13155
|
current = true;
|
|
12471
13156
|
},
|
|
12472
13157
|
p(ctx2, dirty) {
|
|
12473
|
-
const
|
|
12474
|
-
32768 ? get_spread_update(
|
|
12475
|
-
dirty & /*name*/
|
|
12476
|
-
0 && { class: name5 + "-panel-switch-btn" },
|
|
12477
|
-
dirty[0] & /*btn_props*/
|
|
12478
|
-
32768 && get_spread_object(
|
|
12479
|
-
/*btn_props*/
|
|
12480
|
-
ctx2[15]
|
|
12481
|
-
)
|
|
12482
|
-
]) : {};
|
|
12483
|
-
if (dirty[0] & /*theme*/
|
|
12484
|
-
2 | dirty[1] & /*$$scope*/
|
|
12485
|
-
268435456) {
|
|
12486
|
-
button0_changes.$$scope = { dirty, ctx: ctx2 };
|
|
12487
|
-
}
|
|
12488
|
-
button0.$set(button0_changes);
|
|
12489
|
-
const button1_changes = dirty[0] & /*btn_props*/
|
|
12490
|
-
32768 ? get_spread_update(button1_spread_levels, [
|
|
13158
|
+
const button_changes = dirty[0] & /*btn_props*/
|
|
13159
|
+
32768 ? get_spread_update(button_spread_levels, [
|
|
12491
13160
|
dirty & /*name*/
|
|
12492
13161
|
0 && { class: name5 + "-panel-switch-btn" },
|
|
12493
13162
|
dirty[0] & /*btn_props*/
|
|
@@ -12497,152 +13166,126 @@ function create_if_block14(ctx) {
|
|
|
12497
13166
|
)
|
|
12498
13167
|
]) : {};
|
|
12499
13168
|
if (dirty[0] & /*theme*/
|
|
12500
|
-
2 | dirty[
|
|
12501
|
-
|
|
12502
|
-
|
|
13169
|
+
2 | dirty[2] & /*$$scope*/
|
|
13170
|
+
1) {
|
|
13171
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
12503
13172
|
}
|
|
12504
|
-
|
|
13173
|
+
button.$set(button_changes);
|
|
12505
13174
|
},
|
|
12506
13175
|
i(local) {
|
|
12507
13176
|
if (current)
|
|
12508
13177
|
return;
|
|
12509
|
-
transition_in(
|
|
12510
|
-
transition_in(button1.$$.fragment, local);
|
|
13178
|
+
transition_in(button.$$.fragment, local);
|
|
12511
13179
|
current = true;
|
|
12512
13180
|
},
|
|
12513
13181
|
o(local) {
|
|
12514
|
-
transition_out(
|
|
12515
|
-
transition_out(button1.$$.fragment, local);
|
|
13182
|
+
transition_out(button.$$.fragment, local);
|
|
12516
13183
|
current = false;
|
|
12517
13184
|
},
|
|
12518
13185
|
d(detaching) {
|
|
12519
|
-
destroy_component(
|
|
12520
|
-
if (detaching)
|
|
12521
|
-
detach(t_1);
|
|
12522
|
-
destroy_component(button1, detaching);
|
|
13186
|
+
destroy_component(button, detaching);
|
|
12523
13187
|
}
|
|
12524
13188
|
};
|
|
12525
13189
|
}
|
|
12526
|
-
function
|
|
12527
|
-
let
|
|
13190
|
+
function create_if_block_19(ctx) {
|
|
13191
|
+
let button;
|
|
12528
13192
|
let current;
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
|
|
12532
|
-
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
|
|
12536
|
-
|
|
12537
|
-
create_component(icons_pencilfilled.$$.fragment);
|
|
12538
|
-
},
|
|
12539
|
-
m(target, anchor) {
|
|
12540
|
-
mount_component(icons_pencilfilled, target, anchor);
|
|
12541
|
-
current = true;
|
|
12542
|
-
},
|
|
12543
|
-
p(ctx2, dirty) {
|
|
12544
|
-
const icons_pencilfilled_changes = {};
|
|
12545
|
-
if (dirty[0] & /*theme*/
|
|
12546
|
-
2)
|
|
12547
|
-
icons_pencilfilled_changes.theme = /*theme*/
|
|
12548
|
-
ctx2[1];
|
|
12549
|
-
icons_pencilfilled.$set(icons_pencilfilled_changes);
|
|
12550
|
-
},
|
|
12551
|
-
i(local) {
|
|
12552
|
-
if (current)
|
|
12553
|
-
return;
|
|
12554
|
-
transition_in(icons_pencilfilled.$$.fragment, local);
|
|
12555
|
-
current = true;
|
|
12556
|
-
},
|
|
12557
|
-
o(local) {
|
|
12558
|
-
transition_out(icons_pencilfilled.$$.fragment, local);
|
|
12559
|
-
current = false;
|
|
12560
|
-
},
|
|
12561
|
-
d(detaching) {
|
|
12562
|
-
destroy_component(icons_pencilfilled, detaching);
|
|
12563
|
-
}
|
|
13193
|
+
const button_spread_levels = [
|
|
13194
|
+
{ class: name5 + "-panel-switch-btn" },
|
|
13195
|
+
/*btn_props*/
|
|
13196
|
+
ctx[15]
|
|
13197
|
+
];
|
|
13198
|
+
let button_props = {
|
|
13199
|
+
$$slots: { default: [create_default_slot13] },
|
|
13200
|
+
$$scope: { ctx }
|
|
12564
13201
|
};
|
|
12565
|
-
|
|
12566
|
-
|
|
12567
|
-
|
|
12568
|
-
|
|
12569
|
-
icons_laserpen = new Icons_default.LaserPen({ props: { theme: (
|
|
12570
|
-
/*theme*/
|
|
12571
|
-
ctx[1]
|
|
12572
|
-
) } });
|
|
13202
|
+
for (let i = 0; i < button_spread_levels.length; i += 1) {
|
|
13203
|
+
button_props = assign(button_props, button_spread_levels[i]);
|
|
13204
|
+
}
|
|
13205
|
+
button = new Button_default({ props: button_props });
|
|
12573
13206
|
return {
|
|
12574
13207
|
c() {
|
|
12575
|
-
create_component(
|
|
13208
|
+
create_component(button.$$.fragment);
|
|
12576
13209
|
},
|
|
12577
13210
|
m(target, anchor) {
|
|
12578
|
-
mount_component(
|
|
13211
|
+
mount_component(button, target, anchor);
|
|
12579
13212
|
current = true;
|
|
12580
13213
|
},
|
|
12581
13214
|
p(ctx2, dirty) {
|
|
12582
|
-
const
|
|
13215
|
+
const button_changes = dirty[0] & /*btn_props*/
|
|
13216
|
+
32768 ? get_spread_update(button_spread_levels, [
|
|
13217
|
+
dirty & /*name*/
|
|
13218
|
+
0 && { class: name5 + "-panel-switch-btn" },
|
|
13219
|
+
dirty[0] & /*btn_props*/
|
|
13220
|
+
32768 && get_spread_object(
|
|
13221
|
+
/*btn_props*/
|
|
13222
|
+
ctx2[15]
|
|
13223
|
+
)
|
|
13224
|
+
]) : {};
|
|
12583
13225
|
if (dirty[0] & /*theme*/
|
|
12584
|
-
2
|
|
12585
|
-
|
|
12586
|
-
ctx2
|
|
12587
|
-
|
|
13226
|
+
2 | dirty[2] & /*$$scope*/
|
|
13227
|
+
1) {
|
|
13228
|
+
button_changes.$$scope = { dirty, ctx: ctx2 };
|
|
13229
|
+
}
|
|
13230
|
+
button.$set(button_changes);
|
|
12588
13231
|
},
|
|
12589
13232
|
i(local) {
|
|
12590
13233
|
if (current)
|
|
12591
13234
|
return;
|
|
12592
|
-
transition_in(
|
|
13235
|
+
transition_in(button.$$.fragment, local);
|
|
12593
13236
|
current = true;
|
|
12594
13237
|
},
|
|
12595
13238
|
o(local) {
|
|
12596
|
-
transition_out(
|
|
13239
|
+
transition_out(button.$$.fragment, local);
|
|
12597
13240
|
current = false;
|
|
12598
13241
|
},
|
|
12599
13242
|
d(detaching) {
|
|
12600
|
-
destroy_component(
|
|
13243
|
+
destroy_component(button, detaching);
|
|
12601
13244
|
}
|
|
12602
13245
|
};
|
|
12603
13246
|
}
|
|
12604
13247
|
function create_default_slot_14(ctx) {
|
|
12605
|
-
let
|
|
13248
|
+
let icons_markpen;
|
|
12606
13249
|
let current;
|
|
12607
|
-
|
|
13250
|
+
icons_markpen = new Icons_default.MarkPen({ props: { theme: (
|
|
12608
13251
|
/*theme*/
|
|
12609
13252
|
ctx[1]
|
|
12610
13253
|
) } });
|
|
12611
13254
|
return {
|
|
12612
13255
|
c() {
|
|
12613
|
-
create_component(
|
|
13256
|
+
create_component(icons_markpen.$$.fragment);
|
|
12614
13257
|
},
|
|
12615
13258
|
m(target, anchor) {
|
|
12616
|
-
mount_component(
|
|
13259
|
+
mount_component(icons_markpen, target, anchor);
|
|
12617
13260
|
current = true;
|
|
12618
13261
|
},
|
|
12619
13262
|
p(ctx2, dirty) {
|
|
12620
|
-
const
|
|
13263
|
+
const icons_markpen_changes = {};
|
|
12621
13264
|
if (dirty[0] & /*theme*/
|
|
12622
13265
|
2)
|
|
12623
|
-
|
|
13266
|
+
icons_markpen_changes.theme = /*theme*/
|
|
12624
13267
|
ctx2[1];
|
|
12625
|
-
|
|
13268
|
+
icons_markpen.$set(icons_markpen_changes);
|
|
12626
13269
|
},
|
|
12627
13270
|
i(local) {
|
|
12628
13271
|
if (current)
|
|
12629
13272
|
return;
|
|
12630
|
-
transition_in(
|
|
13273
|
+
transition_in(icons_markpen.$$.fragment, local);
|
|
12631
13274
|
current = true;
|
|
12632
13275
|
},
|
|
12633
13276
|
o(local) {
|
|
12634
|
-
transition_out(
|
|
13277
|
+
transition_out(icons_markpen.$$.fragment, local);
|
|
12635
13278
|
current = false;
|
|
12636
13279
|
},
|
|
12637
13280
|
d(detaching) {
|
|
12638
|
-
destroy_component(
|
|
13281
|
+
destroy_component(icons_markpen, detaching);
|
|
12639
13282
|
}
|
|
12640
13283
|
};
|
|
12641
13284
|
}
|
|
12642
13285
|
function create_default_slot13(ctx) {
|
|
12643
|
-
let
|
|
13286
|
+
let icons_markpenfilled;
|
|
12644
13287
|
let current;
|
|
12645
|
-
|
|
13288
|
+
icons_markpenfilled = new Icons_default.MarkPenFilled({
|
|
12646
13289
|
props: { theme: (
|
|
12647
13290
|
/*theme*/
|
|
12648
13291
|
ctx[1]
|
|
@@ -12650,32 +13293,32 @@ function create_default_slot13(ctx) {
|
|
|
12650
13293
|
});
|
|
12651
13294
|
return {
|
|
12652
13295
|
c() {
|
|
12653
|
-
create_component(
|
|
13296
|
+
create_component(icons_markpenfilled.$$.fragment);
|
|
12654
13297
|
},
|
|
12655
13298
|
m(target, anchor) {
|
|
12656
|
-
mount_component(
|
|
13299
|
+
mount_component(icons_markpenfilled, target, anchor);
|
|
12657
13300
|
current = true;
|
|
12658
13301
|
},
|
|
12659
13302
|
p(ctx2, dirty) {
|
|
12660
|
-
const
|
|
13303
|
+
const icons_markpenfilled_changes = {};
|
|
12661
13304
|
if (dirty[0] & /*theme*/
|
|
12662
13305
|
2)
|
|
12663
|
-
|
|
13306
|
+
icons_markpenfilled_changes.theme = /*theme*/
|
|
12664
13307
|
ctx2[1];
|
|
12665
|
-
|
|
13308
|
+
icons_markpenfilled.$set(icons_markpenfilled_changes);
|
|
12666
13309
|
},
|
|
12667
13310
|
i(local) {
|
|
12668
13311
|
if (current)
|
|
12669
13312
|
return;
|
|
12670
|
-
transition_in(
|
|
13313
|
+
transition_in(icons_markpenfilled.$$.fragment, local);
|
|
12671
13314
|
current = true;
|
|
12672
13315
|
},
|
|
12673
13316
|
o(local) {
|
|
12674
|
-
transition_out(
|
|
13317
|
+
transition_out(icons_markpenfilled.$$.fragment, local);
|
|
12675
13318
|
current = false;
|
|
12676
13319
|
},
|
|
12677
13320
|
d(detaching) {
|
|
12678
|
-
destroy_component(
|
|
13321
|
+
destroy_component(icons_markpenfilled, detaching);
|
|
12679
13322
|
}
|
|
12680
13323
|
};
|
|
12681
13324
|
}
|
|
@@ -12690,7 +13333,7 @@ function create_each_block4(ctx) {
|
|
|
12690
13333
|
let span;
|
|
12691
13334
|
let t1_value = (
|
|
12692
13335
|
/*label*/
|
|
12693
|
-
ctx[
|
|
13336
|
+
ctx[52] + ""
|
|
12694
13337
|
);
|
|
12695
13338
|
let t1;
|
|
12696
13339
|
let span_class_value;
|
|
@@ -12712,40 +13355,40 @@ function create_each_block4(ctx) {
|
|
|
12712
13355
|
attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
|
|
12713
13356
|
ctx[1]);
|
|
12714
13357
|
if (!src_url_equal(img.src, img_src_value = /*icon*/
|
|
12715
|
-
ctx[
|
|
13358
|
+
ctx[51]))
|
|
12716
13359
|
attr(img, "src", img_src_value);
|
|
12717
13360
|
attr(img, "alt", img_alt_value = /*kind*/
|
|
12718
|
-
ctx[
|
|
13361
|
+
ctx[53]);
|
|
12719
13362
|
attr(img, "title", img_title_value = /*label*/
|
|
12720
|
-
ctx[
|
|
13363
|
+
ctx[52]);
|
|
12721
13364
|
attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
|
|
12722
13365
|
ctx[1]);
|
|
12723
13366
|
attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
|
|
12724
|
-
ctx[
|
|
13367
|
+
ctx[53] + " " + /*theme*/
|
|
12725
13368
|
ctx[1]);
|
|
12726
13369
|
attr(button, "title", button_title_value = /*label*/
|
|
12727
|
-
ctx[
|
|
12728
|
-
(ctx[
|
|
12729
|
-
ctx[
|
|
12730
|
-
ctx[
|
|
13370
|
+
ctx[52] + /*state*/
|
|
13371
|
+
(ctx[55] && /*state*/
|
|
13372
|
+
ctx[55].reason ? ": " + /*state*/
|
|
13373
|
+
ctx[55].reason : ""));
|
|
12731
13374
|
attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
|
|
12732
|
-
ctx[
|
|
13375
|
+
ctx[50].kind);
|
|
12733
13376
|
button.disabled = button_disabled_value = /*state*/
|
|
12734
|
-
ctx[
|
|
12735
|
-
ctx[
|
|
13377
|
+
ctx[55] && /*state*/
|
|
13378
|
+
ctx[55].status !== "idle";
|
|
12736
13379
|
toggle_class(
|
|
12737
13380
|
button,
|
|
12738
13381
|
"is-loading",
|
|
12739
13382
|
/*state*/
|
|
12740
|
-
ctx[
|
|
12741
|
-
ctx[
|
|
13383
|
+
ctx[55] && /*state*/
|
|
13384
|
+
ctx[55].status === "loading"
|
|
12742
13385
|
);
|
|
12743
13386
|
toggle_class(
|
|
12744
13387
|
button,
|
|
12745
13388
|
"is-failed",
|
|
12746
13389
|
/*state*/
|
|
12747
|
-
ctx[
|
|
12748
|
-
ctx[
|
|
13390
|
+
ctx[55] && /*state*/
|
|
13391
|
+
ctx[55].status === "failed"
|
|
12749
13392
|
);
|
|
12750
13393
|
},
|
|
12751
13394
|
m(target, anchor) {
|
|
@@ -12759,9 +13402,9 @@ function create_each_block4(ctx) {
|
|
|
12759
13402
|
dispose = listen(button, "click", function() {
|
|
12760
13403
|
if (is_function(
|
|
12761
13404
|
/*on_click*/
|
|
12762
|
-
ctx[
|
|
13405
|
+
ctx[56]
|
|
12763
13406
|
))
|
|
12764
|
-
ctx[
|
|
13407
|
+
ctx[56].apply(this, arguments);
|
|
12765
13408
|
});
|
|
12766
13409
|
mounted = true;
|
|
12767
13410
|
}
|
|
@@ -12775,22 +13418,22 @@ function create_each_block4(ctx) {
|
|
|
12775
13418
|
}
|
|
12776
13419
|
if (dirty[0] & /*$apps*/
|
|
12777
13420
|
2097152 && !src_url_equal(img.src, img_src_value = /*icon*/
|
|
12778
|
-
ctx[
|
|
13421
|
+
ctx[51])) {
|
|
12779
13422
|
attr(img, "src", img_src_value);
|
|
12780
13423
|
}
|
|
12781
13424
|
if (dirty[0] & /*$apps*/
|
|
12782
13425
|
2097152 && img_alt_value !== (img_alt_value = /*kind*/
|
|
12783
|
-
ctx[
|
|
13426
|
+
ctx[53])) {
|
|
12784
13427
|
attr(img, "alt", img_alt_value);
|
|
12785
13428
|
}
|
|
12786
13429
|
if (dirty[0] & /*$apps*/
|
|
12787
13430
|
2097152 && img_title_value !== (img_title_value = /*label*/
|
|
12788
|
-
ctx[
|
|
13431
|
+
ctx[52])) {
|
|
12789
13432
|
attr(img, "title", img_title_value);
|
|
12790
13433
|
}
|
|
12791
13434
|
if (dirty[0] & /*$apps*/
|
|
12792
13435
|
2097152 && t1_value !== (t1_value = /*label*/
|
|
12793
|
-
ctx[
|
|
13436
|
+
ctx[52] + ""))
|
|
12794
13437
|
set_data(t1, t1_value);
|
|
12795
13438
|
if (dirty[0] & /*theme*/
|
|
12796
13439
|
2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
|
|
@@ -12799,27 +13442,27 @@ function create_each_block4(ctx) {
|
|
|
12799
13442
|
}
|
|
12800
13443
|
if (dirty[0] & /*$apps, theme*/
|
|
12801
13444
|
2097154 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
|
|
12802
|
-
ctx[
|
|
13445
|
+
ctx[53] + " " + /*theme*/
|
|
12803
13446
|
ctx[1])) {
|
|
12804
13447
|
attr(button, "class", button_class_value);
|
|
12805
13448
|
}
|
|
12806
13449
|
if (dirty[0] & /*$apps, $status*/
|
|
12807
13450
|
6291456 && button_title_value !== (button_title_value = /*label*/
|
|
12808
|
-
ctx[
|
|
12809
|
-
(ctx[
|
|
12810
|
-
ctx[
|
|
12811
|
-
ctx[
|
|
13451
|
+
ctx[52] + /*state*/
|
|
13452
|
+
(ctx[55] && /*state*/
|
|
13453
|
+
ctx[55].reason ? ": " + /*state*/
|
|
13454
|
+
ctx[55].reason : ""))) {
|
|
12812
13455
|
attr(button, "title", button_title_value);
|
|
12813
13456
|
}
|
|
12814
13457
|
if (dirty[0] & /*$apps*/
|
|
12815
13458
|
2097152 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
|
|
12816
|
-
ctx[
|
|
13459
|
+
ctx[50].kind)) {
|
|
12817
13460
|
attr(button, "data-app-kind", button_data_app_kind_value);
|
|
12818
13461
|
}
|
|
12819
13462
|
if (dirty[0] & /*$status, $apps*/
|
|
12820
13463
|
6291456 && button_disabled_value !== (button_disabled_value = /*state*/
|
|
12821
|
-
ctx[
|
|
12822
|
-
ctx[
|
|
13464
|
+
ctx[55] && /*state*/
|
|
13465
|
+
ctx[55].status !== "idle")) {
|
|
12823
13466
|
button.disabled = button_disabled_value;
|
|
12824
13467
|
}
|
|
12825
13468
|
if (dirty[0] & /*$apps, theme, $status, $apps*/
|
|
@@ -12828,8 +13471,8 @@ function create_each_block4(ctx) {
|
|
|
12828
13471
|
button,
|
|
12829
13472
|
"is-loading",
|
|
12830
13473
|
/*state*/
|
|
12831
|
-
ctx[
|
|
12832
|
-
ctx[
|
|
13474
|
+
ctx[55] && /*state*/
|
|
13475
|
+
ctx[55].status === "loading"
|
|
12833
13476
|
);
|
|
12834
13477
|
}
|
|
12835
13478
|
if (dirty[0] & /*$apps, theme, $status, $apps*/
|
|
@@ -12838,8 +13481,8 @@ function create_each_block4(ctx) {
|
|
|
12838
13481
|
button,
|
|
12839
13482
|
"is-failed",
|
|
12840
13483
|
/*state*/
|
|
12841
|
-
ctx[
|
|
12842
|
-
ctx[
|
|
13484
|
+
ctx[55] && /*state*/
|
|
13485
|
+
ctx[55].status === "failed"
|
|
12843
13486
|
);
|
|
12844
13487
|
}
|
|
12845
13488
|
},
|
|
@@ -12851,7 +13494,8 @@ function create_each_block4(ctx) {
|
|
|
12851
13494
|
}
|
|
12852
13495
|
};
|
|
12853
13496
|
}
|
|
12854
|
-
function
|
|
13497
|
+
function create_fragment71(ctx) {
|
|
13498
|
+
var _a;
|
|
12855
13499
|
let t0;
|
|
12856
13500
|
let div0;
|
|
12857
13501
|
let t1;
|
|
@@ -12861,8 +13505,6 @@ function create_fragment69(ctx) {
|
|
|
12861
13505
|
let div9;
|
|
12862
13506
|
let div3;
|
|
12863
13507
|
let div1;
|
|
12864
|
-
let current_block_type_index;
|
|
12865
|
-
let if_block3;
|
|
12866
13508
|
let t4;
|
|
12867
13509
|
let strokewidth0;
|
|
12868
13510
|
let t5;
|
|
@@ -12890,7 +13532,7 @@ function create_fragment69(ctx) {
|
|
|
12890
13532
|
let dispose;
|
|
12891
13533
|
let if_block0 = (
|
|
12892
13534
|
/*scrollable*/
|
|
12893
|
-
ctx[5] &&
|
|
13535
|
+
ctx[5] && create_if_block_18(ctx)
|
|
12894
13536
|
);
|
|
12895
13537
|
let each_value_1 = (
|
|
12896
13538
|
/*items*/
|
|
@@ -12904,27 +13546,13 @@ function create_fragment69(ctx) {
|
|
|
12904
13546
|
each_blocks_1[i] = null;
|
|
12905
13547
|
});
|
|
12906
13548
|
let if_block1 = !/*hide_apps*/
|
|
12907
|
-
ctx[8] &&
|
|
13549
|
+
ctx[8] && create_if_block_8(ctx);
|
|
12908
13550
|
let if_block2 = (
|
|
12909
13551
|
/*scrollable*/
|
|
12910
|
-
ctx[5] &&
|
|
13552
|
+
ctx[5] && create_if_block_7(ctx)
|
|
12911
13553
|
);
|
|
12912
|
-
|
|
12913
|
-
|
|
12914
|
-
function select_block_type_1(ctx2, dirty) {
|
|
12915
|
-
var _a, _b;
|
|
12916
|
-
if (!!/*app*/
|
|
12917
|
-
((_a = ctx2[0]) == null ? void 0 : _a.appliancePlugin) && /*hasUseLaserPen*/
|
|
12918
|
-
ctx2[16])
|
|
12919
|
-
return 0;
|
|
12920
|
-
if (!!/*app*/
|
|
12921
|
-
((_b = ctx2[0]) == null ? void 0 : _b.appliancePlugin))
|
|
12922
|
-
return 1;
|
|
12923
|
-
return -1;
|
|
12924
|
-
}
|
|
12925
|
-
if (~(current_block_type_index = select_block_type_1(ctx))) {
|
|
12926
|
-
if_block3 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
12927
|
-
}
|
|
13554
|
+
let if_block3 = !!/*app*/
|
|
13555
|
+
((_a = ctx[0]) == null ? void 0 : _a.appliancePlugin) && create_if_block14(ctx);
|
|
12928
13556
|
strokewidth0 = new StrokeWidth_default({
|
|
12929
13557
|
props: {
|
|
12930
13558
|
app: (
|
|
@@ -13135,20 +13763,19 @@ function create_fragment69(ctx) {
|
|
|
13135
13763
|
insert(target, div9, anchor);
|
|
13136
13764
|
append(div9, div3);
|
|
13137
13765
|
append(div3, div1);
|
|
13138
|
-
if (
|
|
13139
|
-
|
|
13140
|
-
}
|
|
13766
|
+
if (if_block3)
|
|
13767
|
+
if_block3.m(div1, null);
|
|
13141
13768
|
append(div3, t4);
|
|
13142
13769
|
mount_component(strokewidth0, div3, null);
|
|
13143
13770
|
append(div3, t5);
|
|
13144
13771
|
append(div3, div2);
|
|
13145
13772
|
append(div3, t6);
|
|
13146
13773
|
mount_component(strokecolor0, div3, null);
|
|
13147
|
-
ctx[
|
|
13774
|
+
ctx[43](div3);
|
|
13148
13775
|
append(div9, t7);
|
|
13149
13776
|
append(div9, div4);
|
|
13150
13777
|
mount_component(textcolor, div4, null);
|
|
13151
|
-
ctx[
|
|
13778
|
+
ctx[44](div4);
|
|
13152
13779
|
append(div9, t8);
|
|
13153
13780
|
append(div9, div7);
|
|
13154
13781
|
mount_component(selectshapes, div7, null);
|
|
@@ -13160,7 +13787,7 @@ function create_fragment69(ctx) {
|
|
|
13160
13787
|
append(div7, div6);
|
|
13161
13788
|
append(div7, t12);
|
|
13162
13789
|
mount_component(strokecolor1, div7, null);
|
|
13163
|
-
ctx[
|
|
13790
|
+
ctx[45](div7);
|
|
13164
13791
|
append(div9, t13);
|
|
13165
13792
|
append(div9, div8);
|
|
13166
13793
|
for (let i = 0; i < each_blocks.length; i += 1) {
|
|
@@ -13168,7 +13795,7 @@ function create_fragment69(ctx) {
|
|
|
13168
13795
|
each_blocks[i].m(div8, null);
|
|
13169
13796
|
}
|
|
13170
13797
|
}
|
|
13171
|
-
ctx[
|
|
13798
|
+
ctx[47](div8);
|
|
13172
13799
|
current = true;
|
|
13173
13800
|
if (!mounted) {
|
|
13174
13801
|
dispose = [
|
|
@@ -13189,6 +13816,7 @@ function create_fragment69(ctx) {
|
|
|
13189
13816
|
}
|
|
13190
13817
|
},
|
|
13191
13818
|
p(ctx2, dirty) {
|
|
13819
|
+
var _a2;
|
|
13192
13820
|
if (
|
|
13193
13821
|
/*scrollable*/
|
|
13194
13822
|
ctx2[5]
|
|
@@ -13200,7 +13828,7 @@ function create_fragment69(ctx) {
|
|
|
13200
13828
|
transition_in(if_block0, 1);
|
|
13201
13829
|
}
|
|
13202
13830
|
} else {
|
|
13203
|
-
if_block0 =
|
|
13831
|
+
if_block0 = create_if_block_18(ctx2);
|
|
13204
13832
|
if_block0.c();
|
|
13205
13833
|
transition_in(if_block0, 1);
|
|
13206
13834
|
if_block0.m(t0.parentNode, t0);
|
|
@@ -13212,7 +13840,7 @@ function create_fragment69(ctx) {
|
|
|
13212
13840
|
});
|
|
13213
13841
|
check_outros();
|
|
13214
13842
|
}
|
|
13215
|
-
if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector,
|
|
13843
|
+
if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector, pencilType, pencil_panel, pencil, text_panel, text, app, t, shapes_panel, eraser*/
|
|
13216
13844
|
2081799299 | dirty[1] & /*clear, hand, laserPointer*/
|
|
13217
13845
|
7) {
|
|
13218
13846
|
each_value_1 = /*items*/
|
|
@@ -13245,7 +13873,7 @@ function create_fragment69(ctx) {
|
|
|
13245
13873
|
transition_in(if_block1, 1);
|
|
13246
13874
|
}
|
|
13247
13875
|
} else {
|
|
13248
|
-
if_block1 =
|
|
13876
|
+
if_block1 = create_if_block_8(ctx2);
|
|
13249
13877
|
if_block1.c();
|
|
13250
13878
|
transition_in(if_block1, 1);
|
|
13251
13879
|
if_block1.m(div0, null);
|
|
@@ -13284,7 +13912,7 @@ function create_fragment69(ctx) {
|
|
|
13284
13912
|
transition_in(if_block2, 1);
|
|
13285
13913
|
}
|
|
13286
13914
|
} else {
|
|
13287
|
-
if_block2 =
|
|
13915
|
+
if_block2 = create_if_block_7(ctx2);
|
|
13288
13916
|
if_block2.c();
|
|
13289
13917
|
transition_in(if_block2, 1);
|
|
13290
13918
|
if_block2.m(t3.parentNode, t3);
|
|
@@ -13296,33 +13924,26 @@ function create_fragment69(ctx) {
|
|
|
13296
13924
|
});
|
|
13297
13925
|
check_outros();
|
|
13298
13926
|
}
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
if (current_block_type_index === previous_block_index) {
|
|
13302
|
-
if (~current_block_type_index) {
|
|
13303
|
-
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
13304
|
-
}
|
|
13305
|
-
} else {
|
|
13927
|
+
if (!!/*app*/
|
|
13928
|
+
((_a2 = ctx2[0]) == null ? void 0 : _a2.appliancePlugin)) {
|
|
13306
13929
|
if (if_block3) {
|
|
13307
|
-
|
|
13308
|
-
|
|
13309
|
-
|
|
13310
|
-
|
|
13311
|
-
check_outros();
|
|
13312
|
-
}
|
|
13313
|
-
if (~current_block_type_index) {
|
|
13314
|
-
if_block3 = if_blocks[current_block_type_index];
|
|
13315
|
-
if (!if_block3) {
|
|
13316
|
-
if_block3 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
13317
|
-
if_block3.c();
|
|
13318
|
-
} else {
|
|
13319
|
-
if_block3.p(ctx2, dirty);
|
|
13930
|
+
if_block3.p(ctx2, dirty);
|
|
13931
|
+
if (dirty[0] & /*app*/
|
|
13932
|
+
1) {
|
|
13933
|
+
transition_in(if_block3, 1);
|
|
13320
13934
|
}
|
|
13935
|
+
} else {
|
|
13936
|
+
if_block3 = create_if_block14(ctx2);
|
|
13937
|
+
if_block3.c();
|
|
13321
13938
|
transition_in(if_block3, 1);
|
|
13322
13939
|
if_block3.m(div1, null);
|
|
13323
|
-
} else {
|
|
13324
|
-
if_block3 = null;
|
|
13325
13940
|
}
|
|
13941
|
+
} else if (if_block3) {
|
|
13942
|
+
group_outros();
|
|
13943
|
+
transition_out(if_block3, 1, 1, () => {
|
|
13944
|
+
if_block3 = null;
|
|
13945
|
+
});
|
|
13946
|
+
check_outros();
|
|
13326
13947
|
}
|
|
13327
13948
|
const strokewidth0_changes = {};
|
|
13328
13949
|
if (dirty[0] & /*app*/
|
|
@@ -13507,27 +14128,26 @@ function create_fragment69(ctx) {
|
|
|
13507
14128
|
detach(t3);
|
|
13508
14129
|
if (detaching)
|
|
13509
14130
|
detach(div9);
|
|
13510
|
-
if (
|
|
13511
|
-
|
|
13512
|
-
}
|
|
14131
|
+
if (if_block3)
|
|
14132
|
+
if_block3.d();
|
|
13513
14133
|
destroy_component(strokewidth0);
|
|
13514
14134
|
destroy_component(strokecolor0);
|
|
13515
|
-
ctx[
|
|
14135
|
+
ctx[43](null);
|
|
13516
14136
|
destroy_component(textcolor);
|
|
13517
|
-
ctx[
|
|
14137
|
+
ctx[44](null);
|
|
13518
14138
|
destroy_component(selectshapes);
|
|
13519
14139
|
destroy_component(strokewidth1);
|
|
13520
14140
|
destroy_component(strokecolor1);
|
|
13521
|
-
ctx[
|
|
14141
|
+
ctx[45](null);
|
|
13522
14142
|
destroy_each(each_blocks, detaching);
|
|
13523
|
-
ctx[
|
|
14143
|
+
ctx[47](null);
|
|
13524
14144
|
mounted = false;
|
|
13525
14145
|
run_all(dispose);
|
|
13526
14146
|
}
|
|
13527
14147
|
};
|
|
13528
14148
|
}
|
|
13529
14149
|
var name5 = "fastboard-toolbar";
|
|
13530
|
-
function
|
|
14150
|
+
function instance71($$self, $$props, $$invalidate) {
|
|
13531
14151
|
let t;
|
|
13532
14152
|
let hotkeys;
|
|
13533
14153
|
let c;
|
|
@@ -13537,9 +14157,11 @@ function instance69($$self, $$props, $$invalidate) {
|
|
|
13537
14157
|
let max_scroll;
|
|
13538
14158
|
let hasAppliancePlugin;
|
|
13539
14159
|
let hasUseLaserPen;
|
|
14160
|
+
let hasUseMarkPen;
|
|
14161
|
+
let pencilType;
|
|
13540
14162
|
let $top;
|
|
13541
|
-
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(
|
|
13542
|
-
let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(
|
|
14163
|
+
let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(41, $memberState = $$value)), memberState);
|
|
14164
|
+
let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(42, $scroll_height = $$value)), scroll_height);
|
|
13543
14165
|
let $apps;
|
|
13544
14166
|
let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(22, $status = $$value)), status);
|
|
13545
14167
|
component_subscribe($$self, apps, ($$value) => $$invalidate(21, $apps = $$value));
|
|
@@ -13564,7 +14186,7 @@ function instance69($$self, $$props, $$invalidate) {
|
|
|
13564
14186
|
let apps_panel;
|
|
13565
14187
|
let btn_props;
|
|
13566
14188
|
let top = writable(0);
|
|
13567
|
-
component_subscribe($$self, top, (value) => $$invalidate(
|
|
14189
|
+
component_subscribe($$self, top, (value) => $$invalidate(49, $top = value));
|
|
13568
14190
|
function scroll_up() {
|
|
13569
14191
|
set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
|
|
13570
14192
|
}
|
|
@@ -13578,7 +14200,16 @@ function instance69($$self, $$props, $$invalidate) {
|
|
|
13578
14200
|
app == null ? void 0 : app.setAppliance("selector");
|
|
13579
14201
|
}
|
|
13580
14202
|
function pencil() {
|
|
13581
|
-
|
|
14203
|
+
var _a;
|
|
14204
|
+
if (hasAppliancePlugin) {
|
|
14205
|
+
(_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
|
|
14206
|
+
currentApplianceName: "pencil",
|
|
14207
|
+
useLaserPen: false,
|
|
14208
|
+
strokeOpacity: 1
|
|
14209
|
+
});
|
|
14210
|
+
} else {
|
|
14211
|
+
app == null ? void 0 : app.setAppliance("pencil");
|
|
14212
|
+
}
|
|
13582
14213
|
}
|
|
13583
14214
|
function text2() {
|
|
13584
14215
|
app == null ? void 0 : app.setAppliance("text");
|
|
@@ -13596,7 +14227,20 @@ function instance69($$self, $$props, $$invalidate) {
|
|
|
13596
14227
|
app == null ? void 0 : app.cleanCurrentScene();
|
|
13597
14228
|
}
|
|
13598
14229
|
function useLaserPen() {
|
|
13599
|
-
|
|
14230
|
+
var _a;
|
|
14231
|
+
(_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
|
|
14232
|
+
currentApplianceName: "laserPen",
|
|
14233
|
+
useLaserPen: true,
|
|
14234
|
+
strokeOpacity: 1
|
|
14235
|
+
});
|
|
14236
|
+
}
|
|
14237
|
+
function useMarkPen() {
|
|
14238
|
+
var _a;
|
|
14239
|
+
(_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
|
|
14240
|
+
currentApplianceName: "pencil",
|
|
14241
|
+
useLaserPen: false,
|
|
14242
|
+
strokeOpacity: 0.5
|
|
14243
|
+
});
|
|
13600
14244
|
}
|
|
13601
14245
|
function div3_binding($$value) {
|
|
13602
14246
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
@@ -13638,7 +14282,7 @@ function instance69($$self, $$props, $$invalidate) {
|
|
|
13638
14282
|
if ("scroll_height" in $$props2)
|
|
13639
14283
|
$$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
|
|
13640
14284
|
if ("computed_height" in $$props2)
|
|
13641
|
-
$$invalidate(
|
|
14285
|
+
$$invalidate(36, computed_height = $$props2.computed_height);
|
|
13642
14286
|
if ("scrollable" in $$props2)
|
|
13643
14287
|
$$invalidate(5, scrollable = $$props2.scrollable);
|
|
13644
14288
|
if ("placement" in $$props2)
|
|
@@ -13667,11 +14311,11 @@ function instance69($$self, $$props, $$invalidate) {
|
|
|
13667
14311
|
}
|
|
13668
14312
|
if ($$self.$$.dirty[0] & /*app*/
|
|
13669
14313
|
1) {
|
|
13670
|
-
$$invalidate(
|
|
14314
|
+
$$invalidate(40, hotkeys = app == null ? void 0 : app.hotKeys);
|
|
13671
14315
|
}
|
|
13672
14316
|
if ($$self.$$.dirty[0] & /*t*/
|
|
13673
14317
|
1024 | $$self.$$.dirty[1] & /*hotkeys*/
|
|
13674
|
-
|
|
14318
|
+
512) {
|
|
13675
14319
|
$$invalidate(20, c = {
|
|
13676
14320
|
clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
|
|
13677
14321
|
selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
|
|
@@ -13687,7 +14331,7 @@ function instance69($$self, $$props, $$invalidate) {
|
|
|
13687
14331
|
$$subscribe_memberState($$invalidate(19, memberState = app == null ? void 0 : app.memberState));
|
|
13688
14332
|
}
|
|
13689
14333
|
if ($$self.$$.dirty[1] & /*$memberState*/
|
|
13690
|
-
|
|
14334
|
+
1024) {
|
|
13691
14335
|
$$invalidate(18, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
|
|
13692
14336
|
}
|
|
13693
14337
|
if ($$self.$$.dirty[0] & /*app*/
|
|
@@ -13696,16 +14340,24 @@ function instance69($$self, $$props, $$invalidate) {
|
|
|
13696
14340
|
}
|
|
13697
14341
|
if ($$self.$$.dirty[0] & /*scrollable*/
|
|
13698
14342
|
32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
|
|
13699
|
-
|
|
14343
|
+
2080) {
|
|
13700
14344
|
max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
|
|
13701
14345
|
}
|
|
13702
14346
|
if ($$self.$$.dirty[0] & /*app*/
|
|
13703
14347
|
1) {
|
|
13704
|
-
$$invalidate(
|
|
14348
|
+
$$invalidate(37, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
|
|
14349
|
+
}
|
|
14350
|
+
if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
|
|
14351
|
+
1088) {
|
|
14352
|
+
$$invalidate(39, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
|
|
13705
14353
|
}
|
|
13706
14354
|
if ($$self.$$.dirty[1] & /*hasAppliancePlugin, $memberState*/
|
|
13707
|
-
|
|
13708
|
-
$$invalidate(
|
|
14355
|
+
1088) {
|
|
14356
|
+
$$invalidate(38, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
|
|
14357
|
+
}
|
|
14358
|
+
if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
|
|
14359
|
+
384) {
|
|
14360
|
+
$$invalidate(16, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
|
|
13709
14361
|
}
|
|
13710
14362
|
};
|
|
13711
14363
|
return [
|
|
@@ -13725,7 +14377,7 @@ function instance69($$self, $$props, $$invalidate) {
|
|
|
13725
14377
|
shapes_panel,
|
|
13726
14378
|
apps_panel,
|
|
13727
14379
|
btn_props,
|
|
13728
|
-
|
|
14380
|
+
pencilType,
|
|
13729
14381
|
status,
|
|
13730
14382
|
appliance,
|
|
13731
14383
|
memberState,
|
|
@@ -13744,8 +14396,11 @@ function instance69($$self, $$props, $$invalidate) {
|
|
|
13744
14396
|
laserPointer,
|
|
13745
14397
|
clear,
|
|
13746
14398
|
useLaserPen,
|
|
14399
|
+
useMarkPen,
|
|
13747
14400
|
computed_height,
|
|
13748
14401
|
hasAppliancePlugin,
|
|
14402
|
+
hasUseMarkPen,
|
|
14403
|
+
hasUseLaserPen,
|
|
13749
14404
|
hotkeys,
|
|
13750
14405
|
$memberState,
|
|
13751
14406
|
$scroll_height,
|
|
@@ -13762,8 +14417,8 @@ var Contents = class extends SvelteComponent {
|
|
|
13762
14417
|
init(
|
|
13763
14418
|
this,
|
|
13764
14419
|
options,
|
|
13765
|
-
|
|
13766
|
-
|
|
14420
|
+
instance71,
|
|
14421
|
+
create_fragment71,
|
|
13767
14422
|
safe_not_equal,
|
|
13768
14423
|
{
|
|
13769
14424
|
app: 0,
|
|
@@ -13771,7 +14426,7 @@ var Contents = class extends SvelteComponent {
|
|
|
13771
14426
|
language: 2,
|
|
13772
14427
|
disabled: 3,
|
|
13773
14428
|
scroll_height: 4,
|
|
13774
|
-
computed_height:
|
|
14429
|
+
computed_height: 36,
|
|
13775
14430
|
scrollable: 5,
|
|
13776
14431
|
placement: 6,
|
|
13777
14432
|
items: 7,
|
|
@@ -13779,7 +14434,7 @@ var Contents = class extends SvelteComponent {
|
|
|
13779
14434
|
colors: 9
|
|
13780
14435
|
},
|
|
13781
14436
|
null,
|
|
13782
|
-
[-1, -1]
|
|
14437
|
+
[-1, -1, -1]
|
|
13783
14438
|
);
|
|
13784
14439
|
}
|
|
13785
14440
|
};
|
|
@@ -13842,7 +14497,7 @@ function create_if_block15(ctx) {
|
|
|
13842
14497
|
}
|
|
13843
14498
|
};
|
|
13844
14499
|
}
|
|
13845
|
-
function
|
|
14500
|
+
function create_fragment72(ctx) {
|
|
13846
14501
|
let div1;
|
|
13847
14502
|
let div0;
|
|
13848
14503
|
let contents;
|
|
@@ -14112,7 +14767,7 @@ function create_fragment70(ctx) {
|
|
|
14112
14767
|
};
|
|
14113
14768
|
}
|
|
14114
14769
|
var name6 = "fastboard-toolbar";
|
|
14115
|
-
function
|
|
14770
|
+
function instance72($$self, $$props, $$invalidate) {
|
|
14116
14771
|
let writable2;
|
|
14117
14772
|
let phase;
|
|
14118
14773
|
let disabled;
|
|
@@ -14231,7 +14886,7 @@ function instance70($$self, $$props, $$invalidate) {
|
|
|
14231
14886
|
var Toolbar = class extends SvelteComponent {
|
|
14232
14887
|
constructor(options) {
|
|
14233
14888
|
super();
|
|
14234
|
-
init(this, options,
|
|
14889
|
+
init(this, options, instance72, create_fragment72, safe_not_equal, {
|
|
14235
14890
|
app: 1,
|
|
14236
14891
|
theme: 2,
|
|
14237
14892
|
language: 3,
|
|
@@ -14305,7 +14960,7 @@ function create_else_block_12(ctx) {
|
|
|
14305
14960
|
}
|
|
14306
14961
|
};
|
|
14307
14962
|
}
|
|
14308
|
-
function
|
|
14963
|
+
function create_if_block_23(ctx) {
|
|
14309
14964
|
var _a;
|
|
14310
14965
|
let icon;
|
|
14311
14966
|
let current;
|
|
@@ -14362,7 +15017,7 @@ function create_if_block_22(ctx) {
|
|
|
14362
15017
|
}
|
|
14363
15018
|
};
|
|
14364
15019
|
}
|
|
14365
|
-
function
|
|
15020
|
+
function create_if_block_110(ctx) {
|
|
14366
15021
|
var _a;
|
|
14367
15022
|
let icon;
|
|
14368
15023
|
let current;
|
|
@@ -14538,7 +15193,7 @@ function create_default_slot_25(ctx) {
|
|
|
14538
15193
|
let if_block;
|
|
14539
15194
|
let if_block_anchor;
|
|
14540
15195
|
let current;
|
|
14541
|
-
const if_block_creators = [
|
|
15196
|
+
const if_block_creators = [create_if_block_110, create_if_block_23, create_else_block_12];
|
|
14542
15197
|
const if_blocks = [];
|
|
14543
15198
|
function select_block_type(ctx2, dirty) {
|
|
14544
15199
|
if (
|
|
@@ -14915,7 +15570,7 @@ function create_each_block5(key_1, ctx) {
|
|
|
14915
15570
|
}
|
|
14916
15571
|
};
|
|
14917
15572
|
}
|
|
14918
|
-
function
|
|
15573
|
+
function create_fragment73(ctx) {
|
|
14919
15574
|
let div0;
|
|
14920
15575
|
let button0;
|
|
14921
15576
|
let t0;
|
|
@@ -15192,7 +15847,7 @@ function format(ms) {
|
|
|
15192
15847
|
return String(m).padStart(2, "0") + ":" + String(s % 60).padStart(2, "0");
|
|
15193
15848
|
}
|
|
15194
15849
|
var name7 = "fastboard-player-control";
|
|
15195
|
-
function
|
|
15850
|
+
function instance73($$self, $$props, $$invalidate) {
|
|
15196
15851
|
let t;
|
|
15197
15852
|
let canPlay;
|
|
15198
15853
|
let disabled;
|
|
@@ -15337,7 +15992,7 @@ function instance71($$self, $$props, $$invalidate) {
|
|
|
15337
15992
|
var PlayerControl = class extends SvelteComponent {
|
|
15338
15993
|
constructor(options) {
|
|
15339
15994
|
super();
|
|
15340
|
-
init(this, options,
|
|
15995
|
+
init(this, options, instance73, create_fragment73, safe_not_equal, {
|
|
15341
15996
|
player: 19,
|
|
15342
15997
|
theme: 0,
|
|
15343
15998
|
language: 20,
|
|
@@ -15406,7 +16061,7 @@ function create_if_block17(ctx) {
|
|
|
15406
16061
|
}
|
|
15407
16062
|
};
|
|
15408
16063
|
}
|
|
15409
|
-
function
|
|
16064
|
+
function create_fragment74(ctx) {
|
|
15410
16065
|
var _a;
|
|
15411
16066
|
let div2;
|
|
15412
16067
|
let div0;
|
|
@@ -15506,7 +16161,7 @@ function create_fragment72(ctx) {
|
|
|
15506
16161
|
};
|
|
15507
16162
|
}
|
|
15508
16163
|
var name8 = "fastboard";
|
|
15509
|
-
function
|
|
16164
|
+
function instance74($$self, $$props, $$invalidate) {
|
|
15510
16165
|
let { player = null } = $$props;
|
|
15511
16166
|
let { theme = "light" } = $$props;
|
|
15512
16167
|
let { language = "en" } = $$props;
|
|
@@ -15581,7 +16236,7 @@ function instance72($$self, $$props, $$invalidate) {
|
|
|
15581
16236
|
var ReplayFastboard = class extends SvelteComponent {
|
|
15582
16237
|
constructor(options) {
|
|
15583
16238
|
super();
|
|
15584
|
-
init(this, options,
|
|
16239
|
+
init(this, options, instance74, create_fragment74, not_equal, {
|
|
15585
16240
|
player: 0,
|
|
15586
16241
|
theme: 1,
|
|
15587
16242
|
language: 2,
|
|
@@ -15659,7 +16314,7 @@ function create_if_block_32(ctx) {
|
|
|
15659
16314
|
}
|
|
15660
16315
|
};
|
|
15661
16316
|
}
|
|
15662
|
-
function
|
|
16317
|
+
function create_if_block_24(ctx) {
|
|
15663
16318
|
let redoundo;
|
|
15664
16319
|
let current;
|
|
15665
16320
|
redoundo = new RedoUndo_default({
|
|
@@ -15717,7 +16372,7 @@ function create_if_block_23(ctx) {
|
|
|
15717
16372
|
}
|
|
15718
16373
|
};
|
|
15719
16374
|
}
|
|
15720
|
-
function
|
|
16375
|
+
function create_if_block_111(ctx) {
|
|
15721
16376
|
let zoomcontrol;
|
|
15722
16377
|
let current;
|
|
15723
16378
|
zoomcontrol = new ZoomControl_default({
|
|
@@ -15833,7 +16488,7 @@ function create_if_block18(ctx) {
|
|
|
15833
16488
|
}
|
|
15834
16489
|
};
|
|
15835
16490
|
}
|
|
15836
|
-
function
|
|
16491
|
+
function create_fragment75(ctx) {
|
|
15837
16492
|
var _a, _b, _c, _d;
|
|
15838
16493
|
let div4;
|
|
15839
16494
|
let div0;
|
|
@@ -15854,11 +16509,11 @@ function create_fragment73(ctx) {
|
|
|
15854
16509
|
);
|
|
15855
16510
|
let if_block1 = (
|
|
15856
16511
|
/*config*/
|
|
15857
|
-
((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false &&
|
|
16512
|
+
((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && create_if_block_24(ctx)
|
|
15858
16513
|
);
|
|
15859
16514
|
let if_block2 = (
|
|
15860
16515
|
/*config*/
|
|
15861
|
-
((_c = ctx[3].zoom_control) == null ? void 0 : _c.enable) !== false &&
|
|
16516
|
+
((_c = ctx[3].zoom_control) == null ? void 0 : _c.enable) !== false && create_if_block_111(ctx)
|
|
15862
16517
|
);
|
|
15863
16518
|
let if_block3 = (
|
|
15864
16519
|
/*config*/
|
|
@@ -15988,7 +16643,7 @@ function create_fragment73(ctx) {
|
|
|
15988
16643
|
transition_in(if_block1, 1);
|
|
15989
16644
|
}
|
|
15990
16645
|
} else {
|
|
15991
|
-
if_block1 =
|
|
16646
|
+
if_block1 = create_if_block_24(ctx2);
|
|
15992
16647
|
if_block1.c();
|
|
15993
16648
|
transition_in(if_block1, 1);
|
|
15994
16649
|
if_block1.m(div2, t2);
|
|
@@ -16011,7 +16666,7 @@ function create_fragment73(ctx) {
|
|
|
16011
16666
|
transition_in(if_block2, 1);
|
|
16012
16667
|
}
|
|
16013
16668
|
} else {
|
|
16014
|
-
if_block2 =
|
|
16669
|
+
if_block2 = create_if_block_111(ctx2);
|
|
16015
16670
|
if_block2.c();
|
|
16016
16671
|
transition_in(if_block2, 1);
|
|
16017
16672
|
if_block2.m(div2, null);
|
|
@@ -16104,7 +16759,7 @@ function create_fragment73(ctx) {
|
|
|
16104
16759
|
};
|
|
16105
16760
|
}
|
|
16106
16761
|
var name9 = "fastboard";
|
|
16107
|
-
function
|
|
16762
|
+
function instance75($$self, $$props, $$invalidate) {
|
|
16108
16763
|
let writable2;
|
|
16109
16764
|
let boxState;
|
|
16110
16765
|
let focusedApp;
|
|
@@ -16229,7 +16884,7 @@ function instance73($$self, $$props, $$invalidate) {
|
|
|
16229
16884
|
var Fastboard = class extends SvelteComponent {
|
|
16230
16885
|
constructor(options) {
|
|
16231
16886
|
super();
|
|
16232
|
-
init(this, options,
|
|
16887
|
+
init(this, options, instance75, create_fragment75, not_equal, {
|
|
16233
16888
|
app: 0,
|
|
16234
16889
|
theme: 1,
|
|
16235
16890
|
language: 2,
|