@netless/fastboard-ui 1.1.3 → 1.1.4

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.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, instance79, create_fragment79, not_equal2, props, append_styles, dirty = [-1]) {
507
+ function init(component, options, instance81, create_fragment81, 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, instance79, create_fragment79, not_equal2, pro
530
530
  };
531
531
  append_styles && append_styles($$.root);
532
532
  let ready = false;
533
- $$.ctx = instance79 ? instance79(component, options.props || {}, (i, ret, ...rest) => {
533
+ $$.ctx = instance81 ? instance81(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, instance79, create_fragment79, not_equal2, pro
543
543
  $$.update();
544
544
  ready = true;
545
545
  run_all($$.before_update);
546
- $$.fragment = create_fragment79 ? create_fragment79($$.ctx) : false;
546
+ $$.fragment = create_fragment81 ? create_fragment81($$.ctx) : false;
547
547
  if (options.target) {
548
548
  if (options.hydrate) {
549
549
  const nodes = children(options.target);
@@ -2627,8 +2627,160 @@ var PencilFilled = class extends SvelteComponent {
2627
2627
  };
2628
2628
  var PencilFilled_default = PencilFilled;
2629
2629
 
2630
- // src/components/Icons/Plus.svelte
2630
+ // src/components/Icons/BrushPen.svelte
2631
2631
  function create_fragment26(ctx) {
2632
+ let svg;
2633
+ let g;
2634
+ let path;
2635
+ let svg_class_value;
2636
+ return {
2637
+ c() {
2638
+ svg = svg_element("svg");
2639
+ g = svg_element("g");
2640
+ path = svg_element("path");
2641
+ attr(path, "class", "fastboard-icon-fill-color");
2642
+ attr(path, "d", "M7 16c.55 0 1 .45 1 1c0 1.1-.9 2-2 2c-.17 0-.33 0-.5-.05c.31-.55.5-1.21.5-1.95c0-.55.45-1 1-1M18.67 3c-.26 0-.51.1-.71.29L9 12.25L11.75 15l8.96-8.96c.39-.39.39-1.04 0-1.41l-1.34-1.34c-.2-.2-.45-.29-.7-.29M7 14c-1.66 0-3 1.34-3 3c0 1.31-1.16 2-2 2c.92 1.22 2.5 2 4 2c2.21 0 4-1.79 4-4c0-1.66-1.34-3-3-3");
2643
+ attr(g, "stroke-width", "1");
2644
+ attr(g, "stroke-linecap", "round");
2645
+ attr(g, "stroke-linejoin", "round");
2646
+ attr(g, "transform", "scale(1 0.85)");
2647
+ attr(svg, "fill", "none");
2648
+ attr(svg, "viewBox", "0 0 24 24");
2649
+ attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
2650
+ ctx[0]);
2651
+ toggle_class(
2652
+ svg,
2653
+ "is-active",
2654
+ /*active*/
2655
+ ctx[1]
2656
+ );
2657
+ },
2658
+ m(target, anchor) {
2659
+ insert(target, svg, anchor);
2660
+ append(svg, g);
2661
+ append(g, path);
2662
+ },
2663
+ p(ctx2, [dirty]) {
2664
+ if (dirty & /*theme*/
2665
+ 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + /*theme*/
2666
+ ctx2[0])) {
2667
+ attr(svg, "class", svg_class_value);
2668
+ }
2669
+ if (dirty & /*theme, active*/
2670
+ 3) {
2671
+ toggle_class(
2672
+ svg,
2673
+ "is-active",
2674
+ /*active*/
2675
+ ctx2[1]
2676
+ );
2677
+ }
2678
+ },
2679
+ i: noop,
2680
+ o: noop,
2681
+ d(detaching) {
2682
+ if (detaching)
2683
+ detach(svg);
2684
+ }
2685
+ };
2686
+ }
2687
+ function instance26($$self, $$props, $$invalidate) {
2688
+ let { theme = "light" } = $$props;
2689
+ let { active = false } = $$props;
2690
+ $$self.$$set = ($$props2) => {
2691
+ if ("theme" in $$props2)
2692
+ $$invalidate(0, theme = $$props2.theme);
2693
+ if ("active" in $$props2)
2694
+ $$invalidate(1, active = $$props2.active);
2695
+ };
2696
+ return [theme, active];
2697
+ }
2698
+ var BrushPen = class extends SvelteComponent {
2699
+ constructor(options) {
2700
+ super();
2701
+ init(this, options, instance26, create_fragment26, safe_not_equal, { theme: 0, active: 1 });
2702
+ }
2703
+ };
2704
+ var BrushPen_default = BrushPen;
2705
+
2706
+ // src/components/Icons/BrushPenFilled.svelte
2707
+ function create_fragment27(ctx) {
2708
+ let svg;
2709
+ let g;
2710
+ let path;
2711
+ let svg_class_value;
2712
+ return {
2713
+ c() {
2714
+ svg = svg_element("svg");
2715
+ g = svg_element("g");
2716
+ path = svg_element("path");
2717
+ attr(path, "class", "fastboard-icon-fill-color");
2718
+ attr(path, "d", "m20.71 4.63l-1.34-1.34c-.37-.39-1.02-.39-1.41 0L9 12.25L11.75 15l8.96-8.96c.39-.39.39-1.04 0-1.41M7 14a3 3 0 0 0-3 3c0 1.31-1.16 2-2 2c.92 1.22 2.5 2 4 2a4 4 0 0 0 4-4a3 3 0 0 0-3-3");
2719
+ attr(g, "stroke-width", "1");
2720
+ attr(g, "stroke-linecap", "round");
2721
+ attr(g, "stroke-linejoin", "round");
2722
+ attr(g, "transform", "scale(1 0.85)");
2723
+ attr(svg, "fill", "none");
2724
+ attr(svg, "viewBox", "0 0 24 24");
2725
+ attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
2726
+ ctx[0]);
2727
+ toggle_class(
2728
+ svg,
2729
+ "is-active",
2730
+ /*active*/
2731
+ ctx[1]
2732
+ );
2733
+ },
2734
+ m(target, anchor) {
2735
+ insert(target, svg, anchor);
2736
+ append(svg, g);
2737
+ append(g, path);
2738
+ },
2739
+ p(ctx2, [dirty]) {
2740
+ if (dirty & /*theme*/
2741
+ 1 && svg_class_value !== (svg_class_value = "fastboard-icon " + /*theme*/
2742
+ ctx2[0])) {
2743
+ attr(svg, "class", svg_class_value);
2744
+ }
2745
+ if (dirty & /*theme, active*/
2746
+ 3) {
2747
+ toggle_class(
2748
+ svg,
2749
+ "is-active",
2750
+ /*active*/
2751
+ ctx2[1]
2752
+ );
2753
+ }
2754
+ },
2755
+ i: noop,
2756
+ o: noop,
2757
+ d(detaching) {
2758
+ if (detaching)
2759
+ detach(svg);
2760
+ }
2761
+ };
2762
+ }
2763
+ function instance27($$self, $$props, $$invalidate) {
2764
+ let { theme = "light" } = $$props;
2765
+ let { active = false } = $$props;
2766
+ $$self.$$set = ($$props2) => {
2767
+ if ("theme" in $$props2)
2768
+ $$invalidate(0, theme = $$props2.theme);
2769
+ if ("active" in $$props2)
2770
+ $$invalidate(1, active = $$props2.active);
2771
+ };
2772
+ return [theme, active];
2773
+ }
2774
+ var BrushPenFilled = class extends SvelteComponent {
2775
+ constructor(options) {
2776
+ super();
2777
+ init(this, options, instance27, create_fragment27, safe_not_equal, { theme: 0, active: 1 });
2778
+ }
2779
+ };
2780
+ var BrushPenFilled_default = BrushPenFilled;
2781
+
2782
+ // src/components/Icons/Plus.svelte
2783
+ function create_fragment28(ctx) {
2632
2784
  let svg;
2633
2785
  let path;
2634
2786
  let svg_class_value;
@@ -2680,7 +2832,7 @@ function create_fragment26(ctx) {
2680
2832
  }
2681
2833
  };
2682
2834
  }
2683
- function instance26($$self, $$props, $$invalidate) {
2835
+ function instance28($$self, $$props, $$invalidate) {
2684
2836
  let { theme = "light" } = $$props;
2685
2837
  let { active = false } = $$props;
2686
2838
  $$self.$$set = ($$props2) => {
@@ -2694,13 +2846,13 @@ function instance26($$self, $$props, $$invalidate) {
2694
2846
  var Plus = class extends SvelteComponent {
2695
2847
  constructor(options) {
2696
2848
  super();
2697
- init(this, options, instance26, create_fragment26, safe_not_equal, { theme: 0, active: 1 });
2849
+ init(this, options, instance28, create_fragment28, safe_not_equal, { theme: 0, active: 1 });
2698
2850
  }
2699
2851
  };
2700
2852
  var Plus_default = Plus;
2701
2853
 
2702
2854
  // src/components/Icons/Rectangle.svelte
2703
- function create_fragment27(ctx) {
2855
+ function create_fragment29(ctx) {
2704
2856
  let svg;
2705
2857
  let path;
2706
2858
  let svg_class_value;
@@ -2752,7 +2904,7 @@ function create_fragment27(ctx) {
2752
2904
  }
2753
2905
  };
2754
2906
  }
2755
- function instance27($$self, $$props, $$invalidate) {
2907
+ function instance29($$self, $$props, $$invalidate) {
2756
2908
  let { theme = "light" } = $$props;
2757
2909
  let { active = false } = $$props;
2758
2910
  $$self.$$set = ($$props2) => {
@@ -2766,13 +2918,13 @@ function instance27($$self, $$props, $$invalidate) {
2766
2918
  var Rectangle = class extends SvelteComponent {
2767
2919
  constructor(options) {
2768
2920
  super();
2769
- init(this, options, instance27, create_fragment27, safe_not_equal, { theme: 0, active: 1 });
2921
+ init(this, options, instance29, create_fragment29, safe_not_equal, { theme: 0, active: 1 });
2770
2922
  }
2771
2923
  };
2772
2924
  var Rectangle_default = Rectangle;
2773
2925
 
2774
2926
  // src/components/Icons/RectangleBolded.svelte
2775
- function create_fragment28(ctx) {
2927
+ function create_fragment30(ctx) {
2776
2928
  let svg;
2777
2929
  let path;
2778
2930
  let svg_class_value;
@@ -2824,7 +2976,7 @@ function create_fragment28(ctx) {
2824
2976
  }
2825
2977
  };
2826
2978
  }
2827
- function instance28($$self, $$props, $$invalidate) {
2979
+ function instance30($$self, $$props, $$invalidate) {
2828
2980
  let { theme = "light" } = $$props;
2829
2981
  let { active = false } = $$props;
2830
2982
  $$self.$$set = ($$props2) => {
@@ -2838,13 +2990,13 @@ function instance28($$self, $$props, $$invalidate) {
2838
2990
  var RectangleBolded = class extends SvelteComponent {
2839
2991
  constructor(options) {
2840
2992
  super();
2841
- init(this, options, instance28, create_fragment28, safe_not_equal, { theme: 0, active: 1 });
2993
+ init(this, options, instance30, create_fragment30, safe_not_equal, { theme: 0, active: 1 });
2842
2994
  }
2843
2995
  };
2844
2996
  var RectangleBolded_default = RectangleBolded;
2845
2997
 
2846
2998
  // src/components/Icons/Redo.svelte
2847
- function create_fragment29(ctx) {
2999
+ function create_fragment31(ctx) {
2848
3000
  let svg;
2849
3001
  let path0;
2850
3002
  let path1;
@@ -2900,7 +3052,7 @@ function create_fragment29(ctx) {
2900
3052
  }
2901
3053
  };
2902
3054
  }
2903
- function instance29($$self, $$props, $$invalidate) {
3055
+ function instance31($$self, $$props, $$invalidate) {
2904
3056
  let { theme = "light" } = $$props;
2905
3057
  let { active = false } = $$props;
2906
3058
  $$self.$$set = ($$props2) => {
@@ -2914,13 +3066,13 @@ function instance29($$self, $$props, $$invalidate) {
2914
3066
  var Redo = class extends SvelteComponent {
2915
3067
  constructor(options) {
2916
3068
  super();
2917
- init(this, options, instance29, create_fragment29, safe_not_equal, { theme: 0, active: 1 });
3069
+ init(this, options, instance31, create_fragment31, safe_not_equal, { theme: 0, active: 1 });
2918
3070
  }
2919
3071
  };
2920
3072
  var Redo_default = Redo;
2921
3073
 
2922
3074
  // src/components/Icons/Reset.svelte
2923
- function create_fragment30(ctx) {
3075
+ function create_fragment32(ctx) {
2924
3076
  let svg;
2925
3077
  let circle0;
2926
3078
  let path;
@@ -2990,7 +3142,7 @@ function create_fragment30(ctx) {
2990
3142
  }
2991
3143
  };
2992
3144
  }
2993
- function instance30($$self, $$props, $$invalidate) {
3145
+ function instance32($$self, $$props, $$invalidate) {
2994
3146
  let { theme = "light" } = $$props;
2995
3147
  let { active = false } = $$props;
2996
3148
  $$self.$$set = ($$props2) => {
@@ -3004,13 +3156,13 @@ function instance30($$self, $$props, $$invalidate) {
3004
3156
  var Reset = class extends SvelteComponent {
3005
3157
  constructor(options) {
3006
3158
  super();
3007
- init(this, options, instance30, create_fragment30, safe_not_equal, { theme: 0, active: 1 });
3159
+ init(this, options, instance32, create_fragment32, safe_not_equal, { theme: 0, active: 1 });
3008
3160
  }
3009
3161
  };
3010
3162
  var Reset_default = Reset;
3011
3163
 
3012
3164
  // src/components/Icons/Rhombus.svelte
3013
- function create_fragment31(ctx) {
3165
+ function create_fragment33(ctx) {
3014
3166
  let svg;
3015
3167
  let path;
3016
3168
  let svg_class_value;
@@ -3062,7 +3214,7 @@ function create_fragment31(ctx) {
3062
3214
  }
3063
3215
  };
3064
3216
  }
3065
- function instance31($$self, $$props, $$invalidate) {
3217
+ function instance33($$self, $$props, $$invalidate) {
3066
3218
  let { theme = "light" } = $$props;
3067
3219
  let { active = false } = $$props;
3068
3220
  $$self.$$set = ($$props2) => {
@@ -3076,13 +3228,13 @@ function instance31($$self, $$props, $$invalidate) {
3076
3228
  var Rhombus = class extends SvelteComponent {
3077
3229
  constructor(options) {
3078
3230
  super();
3079
- init(this, options, instance31, create_fragment31, safe_not_equal, { theme: 0, active: 1 });
3231
+ init(this, options, instance33, create_fragment33, safe_not_equal, { theme: 0, active: 1 });
3080
3232
  }
3081
3233
  };
3082
3234
  var Rhombus_default = Rhombus;
3083
3235
 
3084
3236
  // src/components/Icons/RhombusBolded.svelte
3085
- function create_fragment32(ctx) {
3237
+ function create_fragment34(ctx) {
3086
3238
  let svg;
3087
3239
  let path;
3088
3240
  let svg_class_value;
@@ -3134,7 +3286,7 @@ function create_fragment32(ctx) {
3134
3286
  }
3135
3287
  };
3136
3288
  }
3137
- function instance32($$self, $$props, $$invalidate) {
3289
+ function instance34($$self, $$props, $$invalidate) {
3138
3290
  let { theme = "light" } = $$props;
3139
3291
  let { active = false } = $$props;
3140
3292
  $$self.$$set = ($$props2) => {
@@ -3148,13 +3300,13 @@ function instance32($$self, $$props, $$invalidate) {
3148
3300
  var RhombusBolded = class extends SvelteComponent {
3149
3301
  constructor(options) {
3150
3302
  super();
3151
- init(this, options, instance32, create_fragment32, safe_not_equal, { theme: 0, active: 1 });
3303
+ init(this, options, instance34, create_fragment34, safe_not_equal, { theme: 0, active: 1 });
3152
3304
  }
3153
3305
  };
3154
3306
  var RhombusBolded_default = RhombusBolded;
3155
3307
 
3156
3308
  // src/components/Icons/Right.svelte
3157
- function create_fragment33(ctx) {
3309
+ function create_fragment35(ctx) {
3158
3310
  let svg;
3159
3311
  let path;
3160
3312
  let svg_class_value;
@@ -3206,7 +3358,7 @@ function create_fragment33(ctx) {
3206
3358
  }
3207
3359
  };
3208
3360
  }
3209
- function instance33($$self, $$props, $$invalidate) {
3361
+ function instance35($$self, $$props, $$invalidate) {
3210
3362
  let { theme = "light" } = $$props;
3211
3363
  let { active = false } = $$props;
3212
3364
  $$self.$$set = ($$props2) => {
@@ -3220,13 +3372,13 @@ function instance33($$self, $$props, $$invalidate) {
3220
3372
  var Right = class extends SvelteComponent {
3221
3373
  constructor(options) {
3222
3374
  super();
3223
- init(this, options, instance33, create_fragment33, safe_not_equal, { theme: 0, active: 1 });
3375
+ init(this, options, instance35, create_fragment35, safe_not_equal, { theme: 0, active: 1 });
3224
3376
  }
3225
3377
  };
3226
3378
  var Right_default = Right;
3227
3379
 
3228
3380
  // src/components/Icons/Selector.svelte
3229
- function create_fragment34(ctx) {
3381
+ function create_fragment36(ctx) {
3230
3382
  let svg;
3231
3383
  let path0;
3232
3384
  let path1;
@@ -3287,7 +3439,7 @@ function create_fragment34(ctx) {
3287
3439
  }
3288
3440
  };
3289
3441
  }
3290
- function instance34($$self, $$props, $$invalidate) {
3442
+ function instance36($$self, $$props, $$invalidate) {
3291
3443
  let { theme = "light" } = $$props;
3292
3444
  let { active = false } = $$props;
3293
3445
  $$self.$$set = ($$props2) => {
@@ -3301,13 +3453,13 @@ function instance34($$self, $$props, $$invalidate) {
3301
3453
  var Selector = class extends SvelteComponent {
3302
3454
  constructor(options) {
3303
3455
  super();
3304
- init(this, options, instance34, create_fragment34, safe_not_equal, { theme: 0, active: 1 });
3456
+ init(this, options, instance36, create_fragment36, safe_not_equal, { theme: 0, active: 1 });
3305
3457
  }
3306
3458
  };
3307
3459
  var Selector_default = Selector;
3308
3460
 
3309
3461
  // src/components/Icons/SelectorFilled.svelte
3310
- function create_fragment35(ctx) {
3462
+ function create_fragment37(ctx) {
3311
3463
  let svg;
3312
3464
  let path0;
3313
3465
  let path1;
@@ -3366,7 +3518,7 @@ function create_fragment35(ctx) {
3366
3518
  }
3367
3519
  };
3368
3520
  }
3369
- function instance35($$self, $$props, $$invalidate) {
3521
+ function instance37($$self, $$props, $$invalidate) {
3370
3522
  let { theme = "light" } = $$props;
3371
3523
  let { active = false } = $$props;
3372
3524
  $$self.$$set = ($$props2) => {
@@ -3380,13 +3532,13 @@ function instance35($$self, $$props, $$invalidate) {
3380
3532
  var SelectorFilled = class extends SvelteComponent {
3381
3533
  constructor(options) {
3382
3534
  super();
3383
- init(this, options, instance35, create_fragment35, safe_not_equal, { theme: 0, active: 1 });
3535
+ init(this, options, instance37, create_fragment37, safe_not_equal, { theme: 0, active: 1 });
3384
3536
  }
3385
3537
  };
3386
3538
  var SelectorFilled_default = SelectorFilled;
3387
3539
 
3388
3540
  // src/components/Icons/SpeechBalloon.svelte
3389
- function create_fragment36(ctx) {
3541
+ function create_fragment38(ctx) {
3390
3542
  let svg;
3391
3543
  let path;
3392
3544
  let svg_class_value;
@@ -3438,7 +3590,7 @@ function create_fragment36(ctx) {
3438
3590
  }
3439
3591
  };
3440
3592
  }
3441
- function instance36($$self, $$props, $$invalidate) {
3593
+ function instance38($$self, $$props, $$invalidate) {
3442
3594
  let { theme = "light" } = $$props;
3443
3595
  let { active = false } = $$props;
3444
3596
  $$self.$$set = ($$props2) => {
@@ -3452,13 +3604,13 @@ function instance36($$self, $$props, $$invalidate) {
3452
3604
  var SpeechBalloon = class extends SvelteComponent {
3453
3605
  constructor(options) {
3454
3606
  super();
3455
- init(this, options, instance36, create_fragment36, safe_not_equal, { theme: 0, active: 1 });
3607
+ init(this, options, instance38, create_fragment38, safe_not_equal, { theme: 0, active: 1 });
3456
3608
  }
3457
3609
  };
3458
3610
  var SpeechBalloon_default = SpeechBalloon;
3459
3611
 
3460
3612
  // src/components/Icons/Star.svelte
3461
- function create_fragment37(ctx) {
3613
+ function create_fragment39(ctx) {
3462
3614
  let svg;
3463
3615
  let path;
3464
3616
  let svg_class_value;
@@ -3510,7 +3662,7 @@ function create_fragment37(ctx) {
3510
3662
  }
3511
3663
  };
3512
3664
  }
3513
- function instance37($$self, $$props, $$invalidate) {
3665
+ function instance39($$self, $$props, $$invalidate) {
3514
3666
  let { theme = "light" } = $$props;
3515
3667
  let { active = false } = $$props;
3516
3668
  $$self.$$set = ($$props2) => {
@@ -3524,13 +3676,13 @@ function instance37($$self, $$props, $$invalidate) {
3524
3676
  var Star = class extends SvelteComponent {
3525
3677
  constructor(options) {
3526
3678
  super();
3527
- init(this, options, instance37, create_fragment37, safe_not_equal, { theme: 0, active: 1 });
3679
+ init(this, options, instance39, create_fragment39, safe_not_equal, { theme: 0, active: 1 });
3528
3680
  }
3529
3681
  };
3530
3682
  var Star_default = Star;
3531
3683
 
3532
3684
  // src/components/Icons/StarBolded.svelte
3533
- function create_fragment38(ctx) {
3685
+ function create_fragment40(ctx) {
3534
3686
  let svg;
3535
3687
  let path;
3536
3688
  let svg_class_value;
@@ -3582,7 +3734,7 @@ function create_fragment38(ctx) {
3582
3734
  }
3583
3735
  };
3584
3736
  }
3585
- function instance38($$self, $$props, $$invalidate) {
3737
+ function instance40($$self, $$props, $$invalidate) {
3586
3738
  let { theme = "light" } = $$props;
3587
3739
  let { active = false } = $$props;
3588
3740
  $$self.$$set = ($$props2) => {
@@ -3596,13 +3748,13 @@ function instance38($$self, $$props, $$invalidate) {
3596
3748
  var StarBolded = class extends SvelteComponent {
3597
3749
  constructor(options) {
3598
3750
  super();
3599
- init(this, options, instance38, create_fragment38, safe_not_equal, { theme: 0, active: 1 });
3751
+ init(this, options, instance40, create_fragment40, safe_not_equal, { theme: 0, active: 1 });
3600
3752
  }
3601
3753
  };
3602
3754
  var StarBolded_default = StarBolded;
3603
3755
 
3604
3756
  // src/components/Icons/Text.svelte
3605
- function create_fragment39(ctx) {
3757
+ function create_fragment41(ctx) {
3606
3758
  let svg;
3607
3759
  let path;
3608
3760
  let svg_class_value;
@@ -3654,7 +3806,7 @@ function create_fragment39(ctx) {
3654
3806
  }
3655
3807
  };
3656
3808
  }
3657
- function instance39($$self, $$props, $$invalidate) {
3809
+ function instance41($$self, $$props, $$invalidate) {
3658
3810
  let { theme = "light" } = $$props;
3659
3811
  let { active = false } = $$props;
3660
3812
  $$self.$$set = ($$props2) => {
@@ -3668,13 +3820,13 @@ function instance39($$self, $$props, $$invalidate) {
3668
3820
  var Text = class extends SvelteComponent {
3669
3821
  constructor(options) {
3670
3822
  super();
3671
- init(this, options, instance39, create_fragment39, safe_not_equal, { theme: 0, active: 1 });
3823
+ init(this, options, instance41, create_fragment41, safe_not_equal, { theme: 0, active: 1 });
3672
3824
  }
3673
3825
  };
3674
3826
  var Text_default = Text;
3675
3827
 
3676
3828
  // src/components/Icons/TextFilled.svelte
3677
- function create_fragment40(ctx) {
3829
+ function create_fragment42(ctx) {
3678
3830
  let svg;
3679
3831
  let path0;
3680
3832
  let path1;
@@ -3733,7 +3885,7 @@ function create_fragment40(ctx) {
3733
3885
  }
3734
3886
  };
3735
3887
  }
3736
- function instance40($$self, $$props, $$invalidate) {
3888
+ function instance42($$self, $$props, $$invalidate) {
3737
3889
  let { theme = "light" } = $$props;
3738
3890
  let { active = false } = $$props;
3739
3891
  $$self.$$set = ($$props2) => {
@@ -3747,13 +3899,13 @@ function instance40($$self, $$props, $$invalidate) {
3747
3899
  var TextFilled = class extends SvelteComponent {
3748
3900
  constructor(options) {
3749
3901
  super();
3750
- init(this, options, instance40, create_fragment40, safe_not_equal, { theme: 0, active: 1 });
3902
+ init(this, options, instance42, create_fragment42, safe_not_equal, { theme: 0, active: 1 });
3751
3903
  }
3752
3904
  };
3753
3905
  var TextFilled_default = TextFilled;
3754
3906
 
3755
3907
  // src/components/Icons/Triangle.svelte
3756
- function create_fragment41(ctx) {
3908
+ function create_fragment43(ctx) {
3757
3909
  let svg;
3758
3910
  let path;
3759
3911
  let svg_class_value;
@@ -3805,7 +3957,7 @@ function create_fragment41(ctx) {
3805
3957
  }
3806
3958
  };
3807
3959
  }
3808
- function instance41($$self, $$props, $$invalidate) {
3960
+ function instance43($$self, $$props, $$invalidate) {
3809
3961
  let { theme = "light" } = $$props;
3810
3962
  let { active = false } = $$props;
3811
3963
  $$self.$$set = ($$props2) => {
@@ -3819,13 +3971,13 @@ function instance41($$self, $$props, $$invalidate) {
3819
3971
  var Triangle = class extends SvelteComponent {
3820
3972
  constructor(options) {
3821
3973
  super();
3822
- init(this, options, instance41, create_fragment41, safe_not_equal, { theme: 0, active: 1 });
3974
+ init(this, options, instance43, create_fragment43, safe_not_equal, { theme: 0, active: 1 });
3823
3975
  }
3824
3976
  };
3825
3977
  var Triangle_default = Triangle;
3826
3978
 
3827
3979
  // src/components/Icons/TriangleBolded.svelte
3828
- function create_fragment42(ctx) {
3980
+ function create_fragment44(ctx) {
3829
3981
  let svg;
3830
3982
  let path;
3831
3983
  let svg_class_value;
@@ -3877,7 +4029,7 @@ function create_fragment42(ctx) {
3877
4029
  }
3878
4030
  };
3879
4031
  }
3880
- function instance42($$self, $$props, $$invalidate) {
4032
+ function instance44($$self, $$props, $$invalidate) {
3881
4033
  let { theme = "light" } = $$props;
3882
4034
  let { active = false } = $$props;
3883
4035
  $$self.$$set = ($$props2) => {
@@ -3891,13 +4043,13 @@ function instance42($$self, $$props, $$invalidate) {
3891
4043
  var TriangleBolded = class extends SvelteComponent {
3892
4044
  constructor(options) {
3893
4045
  super();
3894
- init(this, options, instance42, create_fragment42, safe_not_equal, { theme: 0, active: 1 });
4046
+ init(this, options, instance44, create_fragment44, safe_not_equal, { theme: 0, active: 1 });
3895
4047
  }
3896
4048
  };
3897
4049
  var TriangleBolded_default = TriangleBolded;
3898
4050
 
3899
4051
  // src/components/Icons/Undo.svelte
3900
- function create_fragment43(ctx) {
4052
+ function create_fragment45(ctx) {
3901
4053
  let svg;
3902
4054
  let path0;
3903
4055
  let path1;
@@ -3953,7 +4105,7 @@ function create_fragment43(ctx) {
3953
4105
  }
3954
4106
  };
3955
4107
  }
3956
- function instance43($$self, $$props, $$invalidate) {
4108
+ function instance45($$self, $$props, $$invalidate) {
3957
4109
  let { theme = "light" } = $$props;
3958
4110
  let { active = false } = $$props;
3959
4111
  $$self.$$set = ($$props2) => {
@@ -3967,13 +4119,13 @@ function instance43($$self, $$props, $$invalidate) {
3967
4119
  var Undo = class extends SvelteComponent {
3968
4120
  constructor(options) {
3969
4121
  super();
3970
- init(this, options, instance43, create_fragment43, safe_not_equal, { theme: 0, active: 1 });
4122
+ init(this, options, instance45, create_fragment45, safe_not_equal, { theme: 0, active: 1 });
3971
4123
  }
3972
4124
  };
3973
4125
  var Undo_default = Undo;
3974
4126
 
3975
4127
  // src/components/Icons/Up.svelte
3976
- function create_fragment44(ctx) {
4128
+ function create_fragment46(ctx) {
3977
4129
  let svg;
3978
4130
  let path;
3979
4131
  let svg_class_value;
@@ -4025,7 +4177,7 @@ function create_fragment44(ctx) {
4025
4177
  }
4026
4178
  };
4027
4179
  }
4028
- function instance44($$self, $$props, $$invalidate) {
4180
+ function instance46($$self, $$props, $$invalidate) {
4029
4181
  let { theme = "light" } = $$props;
4030
4182
  let { active = false } = $$props;
4031
4183
  $$self.$$set = ($$props2) => {
@@ -4039,13 +4191,13 @@ function instance44($$self, $$props, $$invalidate) {
4039
4191
  var Up = class extends SvelteComponent {
4040
4192
  constructor(options) {
4041
4193
  super();
4042
- init(this, options, instance44, create_fragment44, safe_not_equal, { theme: 0, active: 1 });
4194
+ init(this, options, instance46, create_fragment46, safe_not_equal, { theme: 0, active: 1 });
4043
4195
  }
4044
4196
  };
4045
4197
  var Up_default = Up;
4046
4198
 
4047
4199
  // src/components/Icons/WhiteboardAdd.svelte
4048
- function create_fragment45(ctx) {
4200
+ function create_fragment47(ctx) {
4049
4201
  let svg;
4050
4202
  let path0;
4051
4203
  let rect;
@@ -4117,7 +4269,7 @@ function create_fragment45(ctx) {
4117
4269
  }
4118
4270
  };
4119
4271
  }
4120
- function instance45($$self, $$props, $$invalidate) {
4272
+ function instance47($$self, $$props, $$invalidate) {
4121
4273
  let { theme = "light" } = $$props;
4122
4274
  let { active = false } = $$props;
4123
4275
  $$self.$$set = ($$props2) => {
@@ -4131,13 +4283,13 @@ function instance45($$self, $$props, $$invalidate) {
4131
4283
  var WhiteboardAdd = class extends SvelteComponent {
4132
4284
  constructor(options) {
4133
4285
  super();
4134
- init(this, options, instance45, create_fragment45, safe_not_equal, { theme: 0, active: 1 });
4286
+ init(this, options, instance47, create_fragment47, safe_not_equal, { theme: 0, active: 1 });
4135
4287
  }
4136
4288
  };
4137
4289
  var WhiteboardAdd_default = WhiteboardAdd;
4138
4290
 
4139
4291
  // src/components/Icons/Play.svelte
4140
- function create_fragment46(ctx) {
4292
+ function create_fragment48(ctx) {
4141
4293
  let svg;
4142
4294
  let path;
4143
4295
  let svg_class_value;
@@ -4187,7 +4339,7 @@ function create_fragment46(ctx) {
4187
4339
  }
4188
4340
  };
4189
4341
  }
4190
- function instance46($$self, $$props, $$invalidate) {
4342
+ function instance48($$self, $$props, $$invalidate) {
4191
4343
  let { theme = "light" } = $$props;
4192
4344
  let { active = false } = $$props;
4193
4345
  $$self.$$set = ($$props2) => {
@@ -4201,13 +4353,13 @@ function instance46($$self, $$props, $$invalidate) {
4201
4353
  var Play = class extends SvelteComponent {
4202
4354
  constructor(options) {
4203
4355
  super();
4204
- init(this, options, instance46, create_fragment46, safe_not_equal, { theme: 0, active: 1 });
4356
+ init(this, options, instance48, create_fragment48, safe_not_equal, { theme: 0, active: 1 });
4205
4357
  }
4206
4358
  };
4207
4359
  var Play_default = Play;
4208
4360
 
4209
4361
  // src/components/Icons/Pause.svelte
4210
- function create_fragment47(ctx) {
4362
+ function create_fragment49(ctx) {
4211
4363
  let svg;
4212
4364
  let path;
4213
4365
  let svg_class_value;
@@ -4257,7 +4409,7 @@ function create_fragment47(ctx) {
4257
4409
  }
4258
4410
  };
4259
4411
  }
4260
- function instance47($$self, $$props, $$invalidate) {
4412
+ function instance49($$self, $$props, $$invalidate) {
4261
4413
  let { theme = "light" } = $$props;
4262
4414
  let { active = false } = $$props;
4263
4415
  $$self.$$set = ($$props2) => {
@@ -4271,13 +4423,13 @@ function instance47($$self, $$props, $$invalidate) {
4271
4423
  var Pause = class extends SvelteComponent {
4272
4424
  constructor(options) {
4273
4425
  super();
4274
- init(this, options, instance47, create_fragment47, safe_not_equal, { theme: 0, active: 1 });
4426
+ init(this, options, instance49, create_fragment49, safe_not_equal, { theme: 0, active: 1 });
4275
4427
  }
4276
4428
  };
4277
4429
  var Pause_default = Pause;
4278
4430
 
4279
4431
  // src/components/Icons/Loading.svelte
4280
- function create_fragment48(ctx) {
4432
+ function create_fragment50(ctx) {
4281
4433
  let svg;
4282
4434
  let path;
4283
4435
  let svg_class_value;
@@ -4327,7 +4479,7 @@ function create_fragment48(ctx) {
4327
4479
  }
4328
4480
  };
4329
4481
  }
4330
- function instance48($$self, $$props, $$invalidate) {
4482
+ function instance50($$self, $$props, $$invalidate) {
4331
4483
  let { theme = "light" } = $$props;
4332
4484
  let { active = false } = $$props;
4333
4485
  $$self.$$set = ($$props2) => {
@@ -4341,13 +4493,13 @@ function instance48($$self, $$props, $$invalidate) {
4341
4493
  var Loading = class extends SvelteComponent {
4342
4494
  constructor(options) {
4343
4495
  super();
4344
- init(this, options, instance48, create_fragment48, safe_not_equal, { theme: 0, active: 1 });
4496
+ init(this, options, instance50, create_fragment50, safe_not_equal, { theme: 0, active: 1 });
4345
4497
  }
4346
4498
  };
4347
4499
  var Loading_default = Loading;
4348
4500
 
4349
4501
  // src/components/Icons/LaserPen.svelte
4350
- function create_fragment49(ctx) {
4502
+ function create_fragment51(ctx) {
4351
4503
  let svg;
4352
4504
  let g;
4353
4505
  let path0;
@@ -4367,7 +4519,7 @@ function create_fragment49(ctx) {
4367
4519
  attr(g, "stroke-width", "1.25");
4368
4520
  attr(g, "stroke-linecap", "round");
4369
4521
  attr(g, "stroke-linejoin", "round");
4370
- attr(g, "transform", "rotate(0 10 10)");
4522
+ attr(g, "transform", "rotate(0 10 10) translate(3 2)");
4371
4523
  attr(svg, "fill", "none");
4372
4524
  attr(svg, "viewBox", "0 0 24 24");
4373
4525
  attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
@@ -4409,7 +4561,7 @@ function create_fragment49(ctx) {
4409
4561
  }
4410
4562
  };
4411
4563
  }
4412
- function instance49($$self, $$props, $$invalidate) {
4564
+ function instance51($$self, $$props, $$invalidate) {
4413
4565
  let { theme = "light" } = $$props;
4414
4566
  let { active = false } = $$props;
4415
4567
  $$self.$$set = ($$props2) => {
@@ -4423,13 +4575,13 @@ function instance49($$self, $$props, $$invalidate) {
4423
4575
  var LaserPen = class extends SvelteComponent {
4424
4576
  constructor(options) {
4425
4577
  super();
4426
- init(this, options, instance49, create_fragment49, safe_not_equal, { theme: 0, active: 1 });
4578
+ init(this, options, instance51, create_fragment51, safe_not_equal, { theme: 0, active: 1 });
4427
4579
  }
4428
4580
  };
4429
4581
  var LaserPen_default = LaserPen;
4430
4582
 
4431
4583
  // src/components/Icons/LaserPenFilled.svelte
4432
- function create_fragment50(ctx) {
4584
+ function create_fragment52(ctx) {
4433
4585
  let svg;
4434
4586
  let g;
4435
4587
  let path0;
@@ -4449,7 +4601,7 @@ function create_fragment50(ctx) {
4449
4601
  attr(g, "stroke-width", "1.25");
4450
4602
  attr(g, "stroke-linecap", "round");
4451
4603
  attr(g, "stroke-linejoin", "round");
4452
- attr(g, "transform", "rotate(0 10 10)");
4604
+ attr(g, "transform", "rotate(0 10 10) translate(3 2)");
4453
4605
  attr(svg, "fill", "none");
4454
4606
  attr(svg, "viewBox", "0 0 24 24");
4455
4607
  attr(svg, "class", svg_class_value = "fastboard-icon " + /*theme*/
@@ -4491,7 +4643,7 @@ function create_fragment50(ctx) {
4491
4643
  }
4492
4644
  };
4493
4645
  }
4494
- function instance50($$self, $$props, $$invalidate) {
4646
+ function instance52($$self, $$props, $$invalidate) {
4495
4647
  let { theme = "light" } = $$props;
4496
4648
  let { active = false } = $$props;
4497
4649
  $$self.$$set = ($$props2) => {
@@ -4505,13 +4657,13 @@ function instance50($$self, $$props, $$invalidate) {
4505
4657
  var LaserPenFilled = class extends SvelteComponent {
4506
4658
  constructor(options) {
4507
4659
  super();
4508
- init(this, options, instance50, create_fragment50, safe_not_equal, { theme: 0, active: 1 });
4660
+ init(this, options, instance52, create_fragment52, safe_not_equal, { theme: 0, active: 1 });
4509
4661
  }
4510
4662
  };
4511
4663
  var LaserPenFilled_default = LaserPenFilled;
4512
4664
 
4513
4665
  // src/components/Icons/MarkPen.svelte
4514
- function create_fragment51(ctx) {
4666
+ function create_fragment53(ctx) {
4515
4667
  let svg;
4516
4668
  let g;
4517
4669
  let path;
@@ -4567,7 +4719,7 @@ function create_fragment51(ctx) {
4567
4719
  }
4568
4720
  };
4569
4721
  }
4570
- function instance51($$self, $$props, $$invalidate) {
4722
+ function instance53($$self, $$props, $$invalidate) {
4571
4723
  let { theme = "light" } = $$props;
4572
4724
  let { active = false } = $$props;
4573
4725
  $$self.$$set = ($$props2) => {
@@ -4581,13 +4733,13 @@ function instance51($$self, $$props, $$invalidate) {
4581
4733
  var MarkPen = class extends SvelteComponent {
4582
4734
  constructor(options) {
4583
4735
  super();
4584
- init(this, options, instance51, create_fragment51, safe_not_equal, { theme: 0, active: 1 });
4736
+ init(this, options, instance53, create_fragment53, safe_not_equal, { theme: 0, active: 1 });
4585
4737
  }
4586
4738
  };
4587
4739
  var MarkPen_default = MarkPen;
4588
4740
 
4589
4741
  // src/components/Icons/MarkPenFilled.svelte
4590
- function create_fragment52(ctx) {
4742
+ function create_fragment54(ctx) {
4591
4743
  let svg;
4592
4744
  let g;
4593
4745
  let path;
@@ -4643,7 +4795,7 @@ function create_fragment52(ctx) {
4643
4795
  }
4644
4796
  };
4645
4797
  }
4646
- function instance52($$self, $$props, $$invalidate) {
4798
+ function instance54($$self, $$props, $$invalidate) {
4647
4799
  let { theme = "light" } = $$props;
4648
4800
  let { active = false } = $$props;
4649
4801
  $$self.$$set = ($$props2) => {
@@ -4657,13 +4809,13 @@ function instance52($$self, $$props, $$invalidate) {
4657
4809
  var MarkPenFilled = class extends SvelteComponent {
4658
4810
  constructor(options) {
4659
4811
  super();
4660
- init(this, options, instance52, create_fragment52, safe_not_equal, { theme: 0, active: 1 });
4812
+ init(this, options, instance54, create_fragment54, safe_not_equal, { theme: 0, active: 1 });
4661
4813
  }
4662
4814
  };
4663
4815
  var MarkPenFilled_default = MarkPenFilled;
4664
4816
 
4665
4817
  // src/components/Icons/EraserBitmap.svelte
4666
- function create_fragment53(ctx) {
4818
+ function create_fragment55(ctx) {
4667
4819
  let svg;
4668
4820
  let g;
4669
4821
  let path0;
@@ -4684,6 +4836,7 @@ function create_fragment53(ctx) {
4684
4836
  attr(path1, "d", "M9 21h12");
4685
4837
  attr(path1, "class", "fastboard-icon-stroke-color");
4686
4838
  attr(g, "fill", "none");
4839
+ attr(g, "transform", "scale(0.8 0.8) translate(3 1)");
4687
4840
  attr(svg, "width", "24");
4688
4841
  attr(svg, "height", "24");
4689
4842
  attr(svg, "viewBox", "0 0 24 24");
@@ -4726,7 +4879,7 @@ function create_fragment53(ctx) {
4726
4879
  }
4727
4880
  };
4728
4881
  }
4729
- function instance53($$self, $$props, $$invalidate) {
4882
+ function instance55($$self, $$props, $$invalidate) {
4730
4883
  let { theme = "light" } = $$props;
4731
4884
  let { active = false } = $$props;
4732
4885
  $$self.$$set = ($$props2) => {
@@ -4740,13 +4893,13 @@ function instance53($$self, $$props, $$invalidate) {
4740
4893
  var EraserBitmap = class extends SvelteComponent {
4741
4894
  constructor(options) {
4742
4895
  super();
4743
- init(this, options, instance53, create_fragment53, safe_not_equal, { theme: 0, active: 1 });
4896
+ init(this, options, instance55, create_fragment55, safe_not_equal, { theme: 0, active: 1 });
4744
4897
  }
4745
4898
  };
4746
4899
  var EraserBitmap_default = EraserBitmap;
4747
4900
 
4748
4901
  // src/components/Icons/EraserBitmapFilled.svelte
4749
- function create_fragment54(ctx) {
4902
+ function create_fragment56(ctx) {
4750
4903
  let svg;
4751
4904
  let g;
4752
4905
  let path0;
@@ -4767,6 +4920,7 @@ function create_fragment54(ctx) {
4767
4920
  attr(path1, "d", "M9 21h12");
4768
4921
  attr(path1, "class", "fastboard-icon-stroke-color");
4769
4922
  attr(g, "fill", "none");
4923
+ attr(g, "transform", "scale(0.8 0.8) translate(3 1)");
4770
4924
  attr(svg, "width", "24");
4771
4925
  attr(svg, "height", "24");
4772
4926
  attr(svg, "viewBox", "0 0 24 24");
@@ -4809,7 +4963,7 @@ function create_fragment54(ctx) {
4809
4963
  }
4810
4964
  };
4811
4965
  }
4812
- function instance54($$self, $$props, $$invalidate) {
4966
+ function instance56($$self, $$props, $$invalidate) {
4813
4967
  let { theme = "light" } = $$props;
4814
4968
  let { active = false } = $$props;
4815
4969
  $$self.$$set = ($$props2) => {
@@ -4823,7 +4977,7 @@ function instance54($$self, $$props, $$invalidate) {
4823
4977
  var EraserBitmapFilled = class extends SvelteComponent {
4824
4978
  constructor(options) {
4825
4979
  super();
4826
- init(this, options, instance54, create_fragment54, safe_not_equal, { theme: 0, active: 1 });
4980
+ init(this, options, instance56, create_fragment56, safe_not_equal, { theme: 0, active: 1 });
4827
4981
  }
4828
4982
  };
4829
4983
  var EraserBitmapFilled_default = EraserBitmapFilled;
@@ -4882,7 +5036,9 @@ var Icons = {
4882
5036
  MarkPen: MarkPen_default,
4883
5037
  MarkPenFilled: MarkPenFilled_default,
4884
5038
  EraserBitmap: EraserBitmap_default,
4885
- EraserBitmapFilled: EraserBitmapFilled_default
5039
+ EraserBitmapFilled: EraserBitmapFilled_default,
5040
+ StrokePencil: BrushPen_default,
5041
+ StrokePencilFilled: BrushPenFilled_default
4886
5042
  };
4887
5043
  var Icons_default = Icons;
4888
5044
  if (typeof window !== "undefined") {
@@ -4895,12 +5051,12 @@ if (typeof window !== "undefined") {
4895
5051
  {
4896
5052
  name: "className",
4897
5053
  defaultValue: "",
4898
- fn(instance79) {
5054
+ fn(instance81) {
4899
5055
  function add() {
4900
- const el = instance79.popper.firstElementChild;
5056
+ const el = instance81.popper.firstElementChild;
4901
5057
  if (el) {
4902
5058
  el.classList.add("fastboard-tip");
4903
- const extra = (instance79.props.className || "").trim();
5059
+ const extra = (instance81.props.className || "").trim();
4904
5060
  if (extra) {
4905
5061
  el.classList.add(extra);
4906
5062
  }
@@ -4908,7 +5064,7 @@ if (typeof window !== "undefined") {
4908
5064
  }
4909
5065
  function remove() {
4910
5066
  var _a;
4911
- (_a = instance79.popper.firstElementChild) == null ? void 0 : _a.classList.remove("fastboard-tip");
5067
+ (_a = instance81.popper.firstElementChild) == null ? void 0 : _a.classList.remove("fastboard-tip");
4912
5068
  }
4913
5069
  return {
4914
5070
  onCreate: add,
@@ -4921,21 +5077,21 @@ if (typeof window !== "undefined") {
4921
5077
  });
4922
5078
  }
4923
5079
  var tippy = function(node, props) {
4924
- const instance79 = Tippy(node, props);
5080
+ const instance81 = Tippy(node, props);
4925
5081
  return {
4926
5082
  update(props2) {
4927
- instance79.setProps(props2);
5083
+ instance81.setProps(props2);
4928
5084
  },
4929
5085
  destroy() {
4930
- instance79.destroy();
5086
+ instance81.destroy();
4931
5087
  }
4932
5088
  };
4933
5089
  };
4934
5090
  function tippy_hide_all() {
4935
5091
  document.querySelectorAll("[data-tippy-root]").forEach((el) => {
4936
- const instance79 = el._tippy;
4937
- if (instance79)
4938
- instance79.hide();
5092
+ const instance81 = el._tippy;
5093
+ if (instance81)
5094
+ instance81.hide();
4939
5095
  });
4940
5096
  }
4941
5097
  var tippy_menu = {
@@ -5449,7 +5605,7 @@ function create_if_block_1(ctx) {
5449
5605
  }
5450
5606
  };
5451
5607
  }
5452
- function create_fragment55(ctx) {
5608
+ function create_fragment57(ctx) {
5453
5609
  let current_block_type_index;
5454
5610
  let if_block;
5455
5611
  let if_block_anchor;
@@ -5515,7 +5671,7 @@ function create_fragment55(ctx) {
5515
5671
  }
5516
5672
  };
5517
5673
  }
5518
- function instance55($$self, $$props, $$invalidate) {
5674
+ function instance57($$self, $$props, $$invalidate) {
5519
5675
  let { $$slots: slots = {}, $$scope } = $$props;
5520
5676
  let { class: className = "" } = $$props;
5521
5677
  let { name: name10 = "fastboard-ui" } = $$props;
@@ -5573,7 +5729,7 @@ function instance55($$self, $$props, $$invalidate) {
5573
5729
  var Button = class extends SvelteComponent {
5574
5730
  constructor(options) {
5575
5731
  super();
5576
- init(this, options, instance55, create_fragment55, safe_not_equal, {
5732
+ init(this, options, instance57, create_fragment57, safe_not_equal, {
5577
5733
  class: 0,
5578
5734
  name: 1,
5579
5735
  theme: 2,
@@ -5778,7 +5934,7 @@ function create_default_slot(ctx) {
5778
5934
  }
5779
5935
  };
5780
5936
  }
5781
- function create_fragment56(ctx) {
5937
+ function create_fragment58(ctx) {
5782
5938
  let div;
5783
5939
  let button0;
5784
5940
  let t_1;
@@ -5919,7 +6075,7 @@ var i18n = {
5919
6075
  "zh-CN": { redo: "\u91CD\u505A", undo: "\u64A4\u9500" }
5920
6076
  };
5921
6077
  var name = "fastboard-redo-undo";
5922
- function instance56($$self, $$props, $$invalidate) {
6078
+ function instance58($$self, $$props, $$invalidate) {
5923
6079
  let writable2;
5924
6080
  let phase;
5925
6081
  let disabled;
@@ -6020,7 +6176,7 @@ function instance56($$self, $$props, $$invalidate) {
6020
6176
  var RedoUndo = class extends SvelteComponent {
6021
6177
  constructor(options) {
6022
6178
  super();
6023
- init(this, options, instance56, create_fragment56, safe_not_equal, {
6179
+ init(this, options, instance58, create_fragment58, safe_not_equal, {
6024
6180
  app: 12,
6025
6181
  theme: 0,
6026
6182
  language: 13,
@@ -6377,7 +6533,7 @@ function create_default_slot2(ctx) {
6377
6533
  }
6378
6534
  };
6379
6535
  }
6380
- function create_fragment57(ctx) {
6536
+ function create_fragment59(ctx) {
6381
6537
  let div;
6382
6538
  let button0;
6383
6539
  let t0;
@@ -6612,7 +6768,7 @@ var i18n2 = {
6612
6768
  "zh-CN": { prev: "\u4E0A\u4E00\u9875", next: "\u4E0B\u4E00\u9875", add: "\u6DFB\u52A0\u9875\u9762" }
6613
6769
  };
6614
6770
  var name2 = "fastboard-page-control";
6615
- function instance57($$self, $$props, $$invalidate) {
6771
+ function instance59($$self, $$props, $$invalidate) {
6616
6772
  let writable2;
6617
6773
  let phase;
6618
6774
  let disabled;
@@ -6718,7 +6874,7 @@ function instance57($$self, $$props, $$invalidate) {
6718
6874
  var PageControl = class extends SvelteComponent {
6719
6875
  constructor(options) {
6720
6876
  super();
6721
- init(this, options, instance57, create_fragment57, safe_not_equal, {
6877
+ init(this, options, instance59, create_fragment59, safe_not_equal, {
6722
6878
  app: 16,
6723
6879
  theme: 0,
6724
6880
  language: 17,
@@ -7067,7 +7223,7 @@ function create_default_slot3(ctx) {
7067
7223
  }
7068
7224
  };
7069
7225
  }
7070
- function create_fragment58(ctx) {
7226
+ function create_fragment60(ctx) {
7071
7227
  let div;
7072
7228
  let button0;
7073
7229
  let t0;
@@ -7330,7 +7486,7 @@ function next_scale(scale, delta) {
7330
7486
  return 1;
7331
7487
  }
7332
7488
  var name3 = "fastboard-zoom-control";
7333
- function instance58($$self, $$props, $$invalidate) {
7489
+ function instance60($$self, $$props, $$invalidate) {
7334
7490
  let writable2;
7335
7491
  let phase;
7336
7492
  let disabled;
@@ -7441,7 +7597,7 @@ function instance58($$self, $$props, $$invalidate) {
7441
7597
  var ZoomControl = class extends SvelteComponent {
7442
7598
  constructor(options) {
7443
7599
  super();
7444
- init(this, options, instance58, create_fragment58, safe_not_equal, {
7600
+ init(this, options, instance60, create_fragment60, safe_not_equal, {
7445
7601
  app: 15,
7446
7602
  theme: 0,
7447
7603
  language: 16,
@@ -7743,7 +7899,7 @@ function hexToRgb(hex) {
7743
7899
  }
7744
7900
 
7745
7901
  // src/components/Toolbar/components/Slider.svelte
7746
- function create_fragment59(ctx) {
7902
+ function create_fragment61(ctx) {
7747
7903
  let div;
7748
7904
  let input;
7749
7905
  let input_class_value;
@@ -7958,7 +8114,7 @@ function create_fragment59(ctx) {
7958
8114
  };
7959
8115
  }
7960
8116
  var name4 = "fastboard-slider";
7961
- function instance59($$self, $$props, $$invalidate) {
8117
+ function instance61($$self, $$props, $$invalidate) {
7962
8118
  let percent;
7963
8119
  const dispatch = createEventDispatcher();
7964
8120
  let { class: className = "" } = $$props;
@@ -8029,7 +8185,7 @@ function instance59($$self, $$props, $$invalidate) {
8029
8185
  var Slider = class extends SvelteComponent {
8030
8186
  constructor(options) {
8031
8187
  super();
8032
- init(this, options, instance59, create_fragment59, safe_not_equal, {
8188
+ init(this, options, instance61, create_fragment61, safe_not_equal, {
8033
8189
  class: 1,
8034
8190
  theme: 2,
8035
8191
  min: 3,
@@ -8043,7 +8199,7 @@ var Slider = class extends SvelteComponent {
8043
8199
  var Slider_default = Slider;
8044
8200
 
8045
8201
  // src/components/Toolbar/components/StrokeWidth.svelte
8046
- function create_fragment60(ctx) {
8202
+ function create_fragment62(ctx) {
8047
8203
  let slider;
8048
8204
  let current;
8049
8205
  const slider_spread_levels = [
@@ -8099,7 +8255,7 @@ function create_fragment60(ctx) {
8099
8255
  }
8100
8256
  };
8101
8257
  }
8102
- function instance60($$self, $$props, $$invalidate) {
8258
+ function instance62($$self, $$props, $$invalidate) {
8103
8259
  let memberState;
8104
8260
  let value;
8105
8261
  let props;
@@ -8148,7 +8304,7 @@ function instance60($$self, $$props, $$invalidate) {
8148
8304
  var StrokeWidth = class extends SvelteComponent {
8149
8305
  constructor(options) {
8150
8306
  super();
8151
- init(this, options, instance60, create_fragment60, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
8307
+ init(this, options, instance62, create_fragment62, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
8152
8308
  }
8153
8309
  };
8154
8310
  var StrokeWidth_default = StrokeWidth;
@@ -8252,7 +8408,7 @@ function create_each_block(ctx) {
8252
8408
  }
8253
8409
  };
8254
8410
  }
8255
- function create_fragment61(ctx) {
8411
+ function create_fragment63(ctx) {
8256
8412
  let div;
8257
8413
  let div_class_value;
8258
8414
  let mounted;
@@ -8332,7 +8488,7 @@ function create_fragment61(ctx) {
8332
8488
  function is_equal_color(a, b) {
8333
8489
  return a && b && a.every((v, i) => v === b[i]);
8334
8490
  }
8335
- function instance61($$self, $$props, $$invalidate) {
8491
+ function instance63($$self, $$props, $$invalidate) {
8336
8492
  let memberState;
8337
8493
  let strokeColor;
8338
8494
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
@@ -8384,7 +8540,7 @@ function instance61($$self, $$props, $$invalidate) {
8384
8540
  var StrokeColor = class extends SvelteComponent {
8385
8541
  constructor(options) {
8386
8542
  super();
8387
- init(this, options, instance61, create_fragment61, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
8543
+ init(this, options, instance63, create_fragment63, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
8388
8544
  }
8389
8545
  };
8390
8546
  var StrokeColor_default = StrokeColor;
@@ -8488,7 +8644,7 @@ function create_each_block2(ctx) {
8488
8644
  }
8489
8645
  };
8490
8646
  }
8491
- function create_fragment62(ctx) {
8647
+ function create_fragment64(ctx) {
8492
8648
  let div;
8493
8649
  let div_class_value;
8494
8650
  let mounted;
@@ -8568,7 +8724,7 @@ function create_fragment62(ctx) {
8568
8724
  function is_equal_color2(a, b) {
8569
8725
  return a && b && a.every((v, i) => v === b[i]);
8570
8726
  }
8571
- function instance62($$self, $$props, $$invalidate) {
8727
+ function instance64($$self, $$props, $$invalidate) {
8572
8728
  let memberState;
8573
8729
  let textColor;
8574
8730
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(7, $memberState = $$value)), memberState);
@@ -8620,7 +8776,7 @@ function instance62($$self, $$props, $$invalidate) {
8620
8776
  var TextColor = class extends SvelteComponent {
8621
8777
  constructor(options) {
8622
8778
  super();
8623
- init(this, options, instance62, create_fragment62, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
8779
+ init(this, options, instance64, create_fragment64, safe_not_equal, { app: 6, theme: 0, disabled: 1, colors: 2 });
8624
8780
  }
8625
8781
  };
8626
8782
  var TextColor_default = TextColor;
@@ -8951,7 +9107,7 @@ function create_each_block3(key_1, ctx) {
8951
9107
  }
8952
9108
  };
8953
9109
  }
8954
- function create_fragment63(ctx) {
9110
+ function create_fragment65(ctx) {
8955
9111
  let div;
8956
9112
  let each_blocks = [];
8957
9113
  let each_1_lookup = /* @__PURE__ */ new Map();
@@ -9057,7 +9213,7 @@ var i18n5 = {
9057
9213
  speechBalloon: "\u6C14\u6CE1"
9058
9214
  }
9059
9215
  };
9060
- function instance63($$self, $$props, $$invalidate) {
9216
+ function instance65($$self, $$props, $$invalidate) {
9061
9217
  let t;
9062
9218
  let memberState;
9063
9219
  let appliance;
@@ -9142,7 +9298,7 @@ function instance63($$self, $$props, $$invalidate) {
9142
9298
  var SelectShapes = class extends SvelteComponent {
9143
9299
  constructor(options) {
9144
9300
  super();
9145
- init(this, options, instance63, create_fragment63, safe_not_equal, {
9301
+ init(this, options, instance65, create_fragment65, safe_not_equal, {
9146
9302
  app: 8,
9147
9303
  theme: 0,
9148
9304
  language: 9,
@@ -9297,7 +9453,7 @@ function create_default_slot4(ctx) {
9297
9453
  }
9298
9454
  };
9299
9455
  }
9300
- function create_fragment64(ctx) {
9456
+ function create_fragment66(ctx) {
9301
9457
  let button;
9302
9458
  let current;
9303
9459
  const button_spread_levels = [
@@ -9366,7 +9522,7 @@ function create_fragment64(ctx) {
9366
9522
  }
9367
9523
  };
9368
9524
  }
9369
- function instance64($$self, $$props, $$invalidate) {
9525
+ function instance66($$self, $$props, $$invalidate) {
9370
9526
  let { btn_props = {} } = $$props;
9371
9527
  let { content } = $$props;
9372
9528
  let { appliance } = $$props;
@@ -9389,7 +9545,7 @@ function instance64($$self, $$props, $$invalidate) {
9389
9545
  var Clicker = class extends SvelteComponent {
9390
9546
  constructor(options) {
9391
9547
  super();
9392
- init(this, options, instance64, create_fragment64, safe_not_equal, {
9548
+ init(this, options, instance66, create_fragment66, safe_not_equal, {
9393
9549
  btn_props: 0,
9394
9550
  content: 1,
9395
9551
  appliance: 2,
@@ -9544,7 +9700,7 @@ function create_default_slot5(ctx) {
9544
9700
  }
9545
9701
  };
9546
9702
  }
9547
- function create_fragment65(ctx) {
9703
+ function create_fragment67(ctx) {
9548
9704
  let button;
9549
9705
  let current;
9550
9706
  const button_spread_levels = [
@@ -9613,7 +9769,7 @@ function create_fragment65(ctx) {
9613
9769
  }
9614
9770
  };
9615
9771
  }
9616
- function instance65($$self, $$props, $$invalidate) {
9772
+ function instance67($$self, $$props, $$invalidate) {
9617
9773
  let { btn_props = {} } = $$props;
9618
9774
  let { content } = $$props;
9619
9775
  let { appliance } = $$props;
@@ -9636,7 +9792,7 @@ function instance65($$self, $$props, $$invalidate) {
9636
9792
  var Selector2 = class extends SvelteComponent {
9637
9793
  constructor(options) {
9638
9794
  super();
9639
- init(this, options, instance65, create_fragment65, safe_not_equal, {
9795
+ init(this, options, instance67, create_fragment67, safe_not_equal, {
9640
9796
  btn_props: 0,
9641
9797
  content: 1,
9642
9798
  appliance: 2,
@@ -9647,6 +9803,72 @@ var Selector2 = class extends SvelteComponent {
9647
9803
  var Selector_default2 = Selector2;
9648
9804
 
9649
9805
  // src/components/Toolbar/definitions/Pencil.svelte
9806
+ function create_if_block_6(ctx) {
9807
+ let current_block_type_index;
9808
+ let if_block;
9809
+ let if_block_anchor;
9810
+ let current;
9811
+ const if_block_creators = [create_if_block_7, create_else_block_3];
9812
+ const if_blocks = [];
9813
+ function select_block_type_4(ctx2, dirty) {
9814
+ if (
9815
+ /*appliance*/
9816
+ ctx2[3] === "pencil"
9817
+ )
9818
+ return 0;
9819
+ return 1;
9820
+ }
9821
+ current_block_type_index = select_block_type_4(ctx);
9822
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9823
+ return {
9824
+ c() {
9825
+ if_block.c();
9826
+ if_block_anchor = empty();
9827
+ },
9828
+ m(target, anchor) {
9829
+ if_blocks[current_block_type_index].m(target, anchor);
9830
+ insert(target, if_block_anchor, anchor);
9831
+ current = true;
9832
+ },
9833
+ p(ctx2, dirty) {
9834
+ let previous_block_index = current_block_type_index;
9835
+ current_block_type_index = select_block_type_4(ctx2);
9836
+ if (current_block_type_index === previous_block_index) {
9837
+ if_blocks[current_block_type_index].p(ctx2, dirty);
9838
+ } else {
9839
+ group_outros();
9840
+ transition_out(if_blocks[previous_block_index], 1, 1, () => {
9841
+ if_blocks[previous_block_index] = null;
9842
+ });
9843
+ check_outros();
9844
+ if_block = if_blocks[current_block_type_index];
9845
+ if (!if_block) {
9846
+ if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
9847
+ if_block.c();
9848
+ } else {
9849
+ if_block.p(ctx2, dirty);
9850
+ }
9851
+ transition_in(if_block, 1);
9852
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
9853
+ }
9854
+ },
9855
+ i(local) {
9856
+ if (current)
9857
+ return;
9858
+ transition_in(if_block);
9859
+ current = true;
9860
+ },
9861
+ o(local) {
9862
+ transition_out(if_block);
9863
+ current = false;
9864
+ },
9865
+ d(detaching) {
9866
+ if_blocks[current_block_type_index].d(detaching);
9867
+ if (detaching)
9868
+ detach(if_block_anchor);
9869
+ }
9870
+ };
9871
+ }
9650
9872
  function create_if_block_4(ctx) {
9651
9873
  let current_block_type_index;
9652
9874
  let if_block;
@@ -9845,7 +10067,7 @@ function create_if_block8(ctx) {
9845
10067
  }
9846
10068
  };
9847
10069
  }
9848
- function create_else_block_2(ctx) {
10070
+ function create_else_block_3(ctx) {
9849
10071
  let icons_pencil;
9850
10072
  let current;
9851
10073
  icons_pencil = new Icons_default.Pencil({ props: { theme: (
@@ -9883,7 +10105,7 @@ function create_else_block_2(ctx) {
9883
10105
  }
9884
10106
  };
9885
10107
  }
9886
- function create_if_block_5(ctx) {
10108
+ function create_if_block_7(ctx) {
9887
10109
  let icons_pencilfilled;
9888
10110
  let current;
9889
10111
  icons_pencilfilled = new Icons_default.PencilFilled({
@@ -9923,6 +10145,84 @@ function create_if_block_5(ctx) {
9923
10145
  }
9924
10146
  };
9925
10147
  }
10148
+ function create_else_block_2(ctx) {
10149
+ let icons_strokepencil;
10150
+ let current;
10151
+ icons_strokepencil = new Icons_default.StrokePencil({ props: { theme: (
10152
+ /*theme*/
10153
+ ctx[4]
10154
+ ) } });
10155
+ return {
10156
+ c() {
10157
+ create_component(icons_strokepencil.$$.fragment);
10158
+ },
10159
+ m(target, anchor) {
10160
+ mount_component(icons_strokepencil, target, anchor);
10161
+ current = true;
10162
+ },
10163
+ p(ctx2, dirty) {
10164
+ const icons_strokepencil_changes = {};
10165
+ if (dirty & /*theme*/
10166
+ 16)
10167
+ icons_strokepencil_changes.theme = /*theme*/
10168
+ ctx2[4];
10169
+ icons_strokepencil.$set(icons_strokepencil_changes);
10170
+ },
10171
+ i(local) {
10172
+ if (current)
10173
+ return;
10174
+ transition_in(icons_strokepencil.$$.fragment, local);
10175
+ current = true;
10176
+ },
10177
+ o(local) {
10178
+ transition_out(icons_strokepencil.$$.fragment, local);
10179
+ current = false;
10180
+ },
10181
+ d(detaching) {
10182
+ destroy_component(icons_strokepencil, detaching);
10183
+ }
10184
+ };
10185
+ }
10186
+ function create_if_block_5(ctx) {
10187
+ let icons_strokepencilfilled;
10188
+ let current;
10189
+ icons_strokepencilfilled = new Icons_default.StrokePencilFilled({
10190
+ props: { theme: (
10191
+ /*theme*/
10192
+ ctx[4]
10193
+ ), active: true }
10194
+ });
10195
+ return {
10196
+ c() {
10197
+ create_component(icons_strokepencilfilled.$$.fragment);
10198
+ },
10199
+ m(target, anchor) {
10200
+ mount_component(icons_strokepencilfilled, target, anchor);
10201
+ current = true;
10202
+ },
10203
+ p(ctx2, dirty) {
10204
+ const icons_strokepencilfilled_changes = {};
10205
+ if (dirty & /*theme*/
10206
+ 16)
10207
+ icons_strokepencilfilled_changes.theme = /*theme*/
10208
+ ctx2[4];
10209
+ icons_strokepencilfilled.$set(icons_strokepencilfilled_changes);
10210
+ },
10211
+ i(local) {
10212
+ if (current)
10213
+ return;
10214
+ transition_in(icons_strokepencilfilled.$$.fragment, local);
10215
+ current = true;
10216
+ },
10217
+ o(local) {
10218
+ transition_out(icons_strokepencilfilled.$$.fragment, local);
10219
+ current = false;
10220
+ },
10221
+ d(detaching) {
10222
+ destroy_component(icons_strokepencilfilled, detaching);
10223
+ }
10224
+ };
10225
+ }
9926
10226
  function create_else_block_12(ctx) {
9927
10227
  let icons_laserpen;
9928
10228
  let current;
@@ -10084,7 +10384,7 @@ function create_default_slot6(ctx) {
10084
10384
  let if_block;
10085
10385
  let if_block_anchor;
10086
10386
  let current;
10087
- const if_block_creators = [create_if_block8, create_if_block_2, create_if_block_4];
10387
+ const if_block_creators = [create_if_block8, create_if_block_2, create_if_block_4, create_if_block_6];
10088
10388
  const if_blocks = [];
10089
10389
  function select_block_type(ctx2, dirty) {
10090
10390
  if (
@@ -10099,9 +10399,14 @@ function create_default_slot6(ctx) {
10099
10399
  return 1;
10100
10400
  if (
10101
10401
  /*pencilType*/
10102
- ctx2[5] === "pencil"
10402
+ ctx2[5] === "stroke"
10103
10403
  )
10104
10404
  return 2;
10405
+ if (
10406
+ /*pencilType*/
10407
+ ctx2[5] === "pencil"
10408
+ )
10409
+ return 3;
10105
10410
  return -1;
10106
10411
  }
10107
10412
  if (~(current_block_type_index = select_block_type(ctx))) {
@@ -10169,7 +10474,7 @@ function create_default_slot6(ctx) {
10169
10474
  }
10170
10475
  };
10171
10476
  }
10172
- function create_fragment66(ctx) {
10477
+ function create_fragment68(ctx) {
10173
10478
  let button;
10174
10479
  let current;
10175
10480
  const button_spread_levels = [
@@ -10247,7 +10552,7 @@ function create_fragment66(ctx) {
10247
10552
  }
10248
10553
  };
10249
10554
  }
10250
- function instance66($$self, $$props, $$invalidate) {
10555
+ function instance68($$self, $$props, $$invalidate) {
10251
10556
  let { btn_props = {} } = $$props;
10252
10557
  let { content } = $$props;
10253
10558
  let { menu } = $$props;
@@ -10276,7 +10581,7 @@ function instance66($$self, $$props, $$invalidate) {
10276
10581
  var Pencil2 = class extends SvelteComponent {
10277
10582
  constructor(options) {
10278
10583
  super();
10279
- init(this, options, instance66, create_fragment66, safe_not_equal, {
10584
+ init(this, options, instance68, create_fragment68, safe_not_equal, {
10280
10585
  btn_props: 0,
10281
10586
  content: 1,
10282
10587
  menu: 2,
@@ -10433,7 +10738,7 @@ function create_default_slot7(ctx) {
10433
10738
  }
10434
10739
  };
10435
10740
  }
10436
- function create_fragment67(ctx) {
10741
+ function create_fragment69(ctx) {
10437
10742
  let button;
10438
10743
  let current;
10439
10744
  const button_spread_levels = [
@@ -10511,7 +10816,7 @@ function create_fragment67(ctx) {
10511
10816
  }
10512
10817
  };
10513
10818
  }
10514
- function instance67($$self, $$props, $$invalidate) {
10819
+ function instance69($$self, $$props, $$invalidate) {
10515
10820
  let { btn_props = {} } = $$props;
10516
10821
  let { content } = $$props;
10517
10822
  let { menu } = $$props;
@@ -10537,7 +10842,7 @@ function instance67($$self, $$props, $$invalidate) {
10537
10842
  var Text2 = class extends SvelteComponent {
10538
10843
  constructor(options) {
10539
10844
  super();
10540
- init(this, options, instance67, create_fragment67, safe_not_equal, {
10845
+ init(this, options, instance69, create_fragment69, safe_not_equal, {
10541
10846
  btn_props: 0,
10542
10847
  content: 1,
10543
10848
  menu: 2,
@@ -10781,7 +11086,7 @@ function create_default_slot8(ctx) {
10781
11086
  }
10782
11087
  };
10783
11088
  }
10784
- function create_fragment68(ctx) {
11089
+ function create_fragment70(ctx) {
10785
11090
  let button;
10786
11091
  let current;
10787
11092
  const button_spread_levels = [
@@ -10859,7 +11164,7 @@ function create_fragment68(ctx) {
10859
11164
  }
10860
11165
  };
10861
11166
  }
10862
- function instance68($$self, $$props, $$invalidate) {
11167
+ function instance70($$self, $$props, $$invalidate) {
10863
11168
  let memberState;
10864
11169
  let shape;
10865
11170
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(10, $memberState = $$value)), memberState);
@@ -10931,7 +11236,7 @@ function instance68($$self, $$props, $$invalidate) {
10931
11236
  var Shapes = class extends SvelteComponent {
10932
11237
  constructor(options) {
10933
11238
  super();
10934
- init(this, options, instance68, create_fragment68, safe_not_equal, {
11239
+ init(this, options, instance70, create_fragment70, safe_not_equal, {
10935
11240
  app: 9,
10936
11241
  btn_props: 1,
10937
11242
  content: 2,
@@ -11317,7 +11622,7 @@ function create_default_slot9(ctx) {
11317
11622
  }
11318
11623
  };
11319
11624
  }
11320
- function create_fragment69(ctx) {
11625
+ function create_fragment71(ctx) {
11321
11626
  let button;
11322
11627
  let current;
11323
11628
  const button_spread_levels = [
@@ -11395,7 +11700,7 @@ function create_fragment69(ctx) {
11395
11700
  }
11396
11701
  };
11397
11702
  }
11398
- function instance69($$self, $$props, $$invalidate) {
11703
+ function instance71($$self, $$props, $$invalidate) {
11399
11704
  let { btn_props = {} } = $$props;
11400
11705
  let { content } = $$props;
11401
11706
  let { appliance } = $$props;
@@ -11424,7 +11729,7 @@ function instance69($$self, $$props, $$invalidate) {
11424
11729
  var Eraser2 = class extends SvelteComponent {
11425
11730
  constructor(options) {
11426
11731
  super();
11427
- init(this, options, instance69, create_fragment69, safe_not_equal, {
11732
+ init(this, options, instance71, create_fragment71, safe_not_equal, {
11428
11733
  btn_props: 0,
11429
11734
  content: 1,
11430
11735
  appliance: 2,
@@ -11475,7 +11780,7 @@ function create_default_slot10(ctx) {
11475
11780
  }
11476
11781
  };
11477
11782
  }
11478
- function create_fragment70(ctx) {
11783
+ function create_fragment72(ctx) {
11479
11784
  let button;
11480
11785
  let current;
11481
11786
  const button_spread_levels = [
@@ -11544,7 +11849,7 @@ function create_fragment70(ctx) {
11544
11849
  }
11545
11850
  };
11546
11851
  }
11547
- function instance70($$self, $$props, $$invalidate) {
11852
+ function instance72($$self, $$props, $$invalidate) {
11548
11853
  let { btn_props = {} } = $$props;
11549
11854
  let { content } = $$props;
11550
11855
  let { theme = "light" } = $$props;
@@ -11564,7 +11869,7 @@ function instance70($$self, $$props, $$invalidate) {
11564
11869
  var Clear2 = class extends SvelteComponent {
11565
11870
  constructor(options) {
11566
11871
  super();
11567
- init(this, options, instance70, create_fragment70, safe_not_equal, { btn_props: 0, content: 1, theme: 2 });
11872
+ init(this, options, instance72, create_fragment72, safe_not_equal, { btn_props: 0, content: 1, theme: 2 });
11568
11873
  }
11569
11874
  };
11570
11875
  var Clear_default2 = Clear2;
@@ -11714,7 +12019,7 @@ function create_default_slot11(ctx) {
11714
12019
  }
11715
12020
  };
11716
12021
  }
11717
- function create_fragment71(ctx) {
12022
+ function create_fragment73(ctx) {
11718
12023
  let button;
11719
12024
  let current;
11720
12025
  const button_spread_levels = [
@@ -11783,7 +12088,7 @@ function create_fragment71(ctx) {
11783
12088
  }
11784
12089
  };
11785
12090
  }
11786
- function instance71($$self, $$props, $$invalidate) {
12091
+ function instance73($$self, $$props, $$invalidate) {
11787
12092
  let { btn_props = {} } = $$props;
11788
12093
  let { content } = $$props;
11789
12094
  let { appliance } = $$props;
@@ -11806,7 +12111,7 @@ function instance71($$self, $$props, $$invalidate) {
11806
12111
  var Hand = class extends SvelteComponent {
11807
12112
  constructor(options) {
11808
12113
  super();
11809
- init(this, options, instance71, create_fragment71, safe_not_equal, {
12114
+ init(this, options, instance73, create_fragment73, safe_not_equal, {
11810
12115
  btn_props: 0,
11811
12116
  content: 1,
11812
12117
  appliance: 2,
@@ -11961,7 +12266,7 @@ function create_default_slot12(ctx) {
11961
12266
  }
11962
12267
  };
11963
12268
  }
11964
- function create_fragment72(ctx) {
12269
+ function create_fragment74(ctx) {
11965
12270
  let button;
11966
12271
  let current;
11967
12272
  const button_spread_levels = [
@@ -12030,7 +12335,7 @@ function create_fragment72(ctx) {
12030
12335
  }
12031
12336
  };
12032
12337
  }
12033
- function instance72($$self, $$props, $$invalidate) {
12338
+ function instance74($$self, $$props, $$invalidate) {
12034
12339
  let { btn_props = {} } = $$props;
12035
12340
  let { content } = $$props;
12036
12341
  let { appliance } = $$props;
@@ -12053,7 +12358,7 @@ function instance72($$self, $$props, $$invalidate) {
12053
12358
  var Laser2 = class extends SvelteComponent {
12054
12359
  constructor(options) {
12055
12360
  super();
12056
- init(this, options, instance72, create_fragment72, safe_not_equal, {
12361
+ init(this, options, instance74, create_fragment74, safe_not_equal, {
12057
12362
  btn_props: 0,
12058
12363
  content: 1,
12059
12364
  appliance: 2,
@@ -12064,7 +12369,7 @@ var Laser2 = class extends SvelteComponent {
12064
12369
  var Laser_default2 = Laser2;
12065
12370
 
12066
12371
  // src/components/Toolbar/components/EraserSize.svelte
12067
- function create_fragment73(ctx) {
12372
+ function create_fragment75(ctx) {
12068
12373
  let slider;
12069
12374
  let current;
12070
12375
  const slider_spread_levels = [
@@ -12120,7 +12425,7 @@ function create_fragment73(ctx) {
12120
12425
  }
12121
12426
  };
12122
12427
  }
12123
- function instance73($$self, $$props, $$invalidate) {
12428
+ function instance75($$self, $$props, $$invalidate) {
12124
12429
  let memberState;
12125
12430
  let value;
12126
12431
  let props;
@@ -12161,7 +12466,7 @@ function instance73($$self, $$props, $$invalidate) {
12161
12466
  var EraserSize = class extends SvelteComponent {
12162
12467
  constructor(options) {
12163
12468
  super();
12164
- init(this, options, instance73, create_fragment73, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
12469
+ init(this, options, instance75, create_fragment75, safe_not_equal, { app: 3, theme: 4, disabled: 5 });
12165
12470
  }
12166
12471
  };
12167
12472
  var EraserSize_default = EraserSize;
@@ -12169,42 +12474,42 @@ var EraserSize_default = EraserSize;
12169
12474
  // src/components/Toolbar/components/Contents.svelte
12170
12475
  function get_each_context4(ctx, list, i) {
12171
12476
  const child_ctx = ctx.slice();
12172
- child_ctx[58] = list[i];
12477
+ child_ctx[60] = list[i];
12173
12478
  const constants_0 = (
12174
12479
  /*netless_app*/
12175
- child_ctx[58]
12480
+ child_ctx[60]
12176
12481
  );
12177
- child_ctx[59] = constants_0.icon;
12178
- child_ctx[60] = constants_0.label;
12179
- child_ctx[61] = constants_0.kind;
12180
- child_ctx[62] = constants_0.onClick;
12482
+ child_ctx[61] = constants_0.icon;
12483
+ child_ctx[62] = constants_0.label;
12484
+ child_ctx[63] = constants_0.kind;
12485
+ child_ctx[64] = constants_0.onClick;
12181
12486
  const constants_1 = (
12182
12487
  /*$status*/
12183
12488
  child_ctx[26] && /*$status*/
12184
12489
  child_ctx[26][
12185
12490
  /*kind*/
12186
- child_ctx[61]
12491
+ child_ctx[63]
12187
12492
  ]
12188
12493
  );
12189
- child_ctx[63] = constants_1;
12494
+ child_ctx[65] = constants_1;
12190
12495
  const constants_2 = function func() {
12191
12496
  return (
12192
12497
  /*func*/
12193
- ctx[54](
12498
+ ctx[56](
12194
12499
  /*onClick*/
12195
- child_ctx[62]
12500
+ child_ctx[64]
12196
12501
  )
12197
12502
  );
12198
12503
  };
12199
- child_ctx[64] = constants_2;
12504
+ child_ctx[66] = constants_2;
12200
12505
  return child_ctx;
12201
12506
  }
12202
12507
  function get_each_context_1(ctx, list, i) {
12203
12508
  const child_ctx = ctx.slice();
12204
- child_ctx[67] = list[i];
12509
+ child_ctx[69] = list[i];
12205
12510
  return child_ctx;
12206
12511
  }
12207
- function create_if_block_23(ctx) {
12512
+ function create_if_block_25(ctx) {
12208
12513
  let button;
12209
12514
  let current;
12210
12515
  const button_spread_levels = [
@@ -12213,7 +12518,7 @@ function create_if_block_23(ctx) {
12213
12518
  ctx[17]
12214
12519
  ];
12215
12520
  let button_props = {
12216
- $$slots: { default: [create_default_slot_122] },
12521
+ $$slots: { default: [create_default_slot_14] },
12217
12522
  $$scope: { ctx }
12218
12523
  };
12219
12524
  for (let i = 0; i < button_spread_levels.length; i += 1) {
@@ -12241,7 +12546,7 @@ function create_if_block_23(ctx) {
12241
12546
  )]) : {};
12242
12547
  if (dirty[0] & /*theme*/
12243
12548
  2 | dirty[2] & /*$$scope*/
12244
- 256) {
12549
+ 1024) {
12245
12550
  button_changes.$$scope = { dirty, ctx: ctx2 };
12246
12551
  }
12247
12552
  button.$set(button_changes);
@@ -12261,7 +12566,7 @@ function create_if_block_23(ctx) {
12261
12566
  }
12262
12567
  };
12263
12568
  }
12264
- function create_default_slot_122(ctx) {
12569
+ function create_default_slot_14(ctx) {
12265
12570
  let icons_up;
12266
12571
  let current;
12267
12572
  icons_up = new Icons_default.Up({ props: { theme: (
@@ -12299,7 +12604,7 @@ function create_default_slot_122(ctx) {
12299
12604
  }
12300
12605
  };
12301
12606
  }
12302
- function create_if_block_222(ctx) {
12607
+ function create_if_block_24(ctx) {
12303
12608
  let laser;
12304
12609
  let current;
12305
12610
  laser = new Laser_default2({
@@ -12370,7 +12675,7 @@ function create_if_block_222(ctx) {
12370
12675
  }
12371
12676
  };
12372
12677
  }
12373
- function create_if_block_21(ctx) {
12678
+ function create_if_block_23(ctx) {
12374
12679
  let hand_1;
12375
12680
  let current;
12376
12681
  hand_1 = new Hand_default({
@@ -12441,7 +12746,7 @@ function create_if_block_21(ctx) {
12441
12746
  }
12442
12747
  };
12443
12748
  }
12444
- function create_if_block_20(ctx) {
12749
+ function create_if_block_222(ctx) {
12445
12750
  let clear_1;
12446
12751
  let current;
12447
12752
  clear_1 = new Clear_default2({
@@ -12504,7 +12809,7 @@ function create_if_block_20(ctx) {
12504
12809
  }
12505
12810
  };
12506
12811
  }
12507
- function create_if_block_19(ctx) {
12812
+ function create_if_block_21(ctx) {
12508
12813
  let eraser_1;
12509
12814
  let current;
12510
12815
  eraser_1 = new Eraser_default2({
@@ -12597,7 +12902,7 @@ function create_if_block_19(ctx) {
12597
12902
  }
12598
12903
  };
12599
12904
  }
12600
- function create_if_block_18(ctx) {
12905
+ function create_if_block_20(ctx) {
12601
12906
  let shapes2;
12602
12907
  let current;
12603
12908
  shapes2 = new Shapes_default({
@@ -12679,7 +12984,7 @@ function create_if_block_18(ctx) {
12679
12984
  }
12680
12985
  };
12681
12986
  }
12682
- function create_if_block_17(ctx) {
12987
+ function create_if_block_19(ctx) {
12683
12988
  let text_1;
12684
12989
  let current;
12685
12990
  text_1 = new Text_default2({
@@ -12758,7 +13063,7 @@ function create_if_block_17(ctx) {
12758
13063
  }
12759
13064
  };
12760
13065
  }
12761
- function create_if_block_16(ctx) {
13066
+ function create_if_block_18(ctx) {
12762
13067
  let pencil_1;
12763
13068
  let current;
12764
13069
  pencil_1 = new Pencil_default2({
@@ -12845,7 +13150,7 @@ function create_if_block_16(ctx) {
12845
13150
  }
12846
13151
  };
12847
13152
  }
12848
- function create_if_block_15(ctx) {
13153
+ function create_if_block_17(ctx) {
12849
13154
  let selector_1;
12850
13155
  let current;
12851
13156
  selector_1 = new Selector_default2({
@@ -12916,7 +13221,7 @@ function create_if_block_15(ctx) {
12916
13221
  }
12917
13222
  };
12918
13223
  }
12919
- function create_if_block_14(ctx) {
13224
+ function create_if_block_16(ctx) {
12920
13225
  let clicker_1;
12921
13226
  let current;
12922
13227
  clicker_1 = new Clicker_default({
@@ -12993,61 +13298,61 @@ function create_each_block_1(ctx) {
12993
13298
  let if_block_anchor;
12994
13299
  let current;
12995
13300
  const if_block_creators = [
12996
- create_if_block_14,
12997
- create_if_block_15,
12998
13301
  create_if_block_16,
12999
13302
  create_if_block_17,
13000
13303
  create_if_block_18,
13001
13304
  create_if_block_19,
13002
13305
  create_if_block_20,
13003
13306
  create_if_block_21,
13004
- create_if_block_222
13307
+ create_if_block_222,
13308
+ create_if_block_23,
13309
+ create_if_block_24
13005
13310
  ];
13006
13311
  const if_blocks = [];
13007
13312
  function select_block_type(ctx2, dirty) {
13008
13313
  if (
13009
13314
  /*item*/
13010
- ctx2[67] === "clicker"
13315
+ ctx2[69] === "clicker"
13011
13316
  )
13012
13317
  return 0;
13013
13318
  if (
13014
13319
  /*item*/
13015
- ctx2[67] === "selector"
13320
+ ctx2[69] === "selector"
13016
13321
  )
13017
13322
  return 1;
13018
13323
  if (
13019
13324
  /*item*/
13020
- ctx2[67] === "pencil"
13325
+ ctx2[69] === "pencil"
13021
13326
  )
13022
13327
  return 2;
13023
13328
  if (
13024
13329
  /*item*/
13025
- ctx2[67] === "text"
13330
+ ctx2[69] === "text"
13026
13331
  )
13027
13332
  return 3;
13028
13333
  if (
13029
13334
  /*item*/
13030
- ctx2[67] === "shapes"
13335
+ ctx2[69] === "shapes"
13031
13336
  )
13032
13337
  return 4;
13033
13338
  if (
13034
13339
  /*item*/
13035
- ctx2[67] === "eraser"
13340
+ ctx2[69] === "eraser"
13036
13341
  )
13037
13342
  return 5;
13038
13343
  if (
13039
13344
  /*item*/
13040
- ctx2[67] === "clear"
13345
+ ctx2[69] === "clear"
13041
13346
  )
13042
13347
  return 6;
13043
13348
  if (
13044
13349
  /*item*/
13045
- ctx2[67] === "hand"
13350
+ ctx2[69] === "hand"
13046
13351
  )
13047
13352
  return 7;
13048
13353
  if (
13049
13354
  /*item*/
13050
- ctx2[67] === "laserPointer"
13355
+ ctx2[69] === "laserPointer"
13051
13356
  )
13052
13357
  return 8;
13053
13358
  return -1;
@@ -13117,7 +13422,7 @@ function create_each_block_1(ctx) {
13117
13422
  }
13118
13423
  };
13119
13424
  }
13120
- function create_if_block_132(ctx) {
13425
+ function create_if_block_15(ctx) {
13121
13426
  let button;
13122
13427
  let current;
13123
13428
  const button_spread_levels = [
@@ -13140,7 +13445,7 @@ function create_if_block_132(ctx) {
13140
13445
  }
13141
13446
  ];
13142
13447
  let button_props = {
13143
- $$slots: { default: [create_default_slot_11] },
13448
+ $$slots: { default: [create_default_slot_132] },
13144
13449
  $$scope: { ctx }
13145
13450
  };
13146
13451
  for (let i = 0; i < button_spread_levels.length; i += 1) {
@@ -13184,7 +13489,7 @@ function create_if_block_132(ctx) {
13184
13489
  ]) : {};
13185
13490
  if (dirty[0] & /*theme*/
13186
13491
  2 | dirty[2] & /*$$scope*/
13187
- 256) {
13492
+ 1024) {
13188
13493
  button_changes.$$scope = { dirty, ctx: ctx2 };
13189
13494
  }
13190
13495
  button.$set(button_changes);
@@ -13204,7 +13509,7 @@ function create_if_block_132(ctx) {
13204
13509
  }
13205
13510
  };
13206
13511
  }
13207
- function create_default_slot_11(ctx) {
13512
+ function create_default_slot_132(ctx) {
13208
13513
  let icons_apps;
13209
13514
  let current;
13210
13515
  icons_apps = new Icons_default.Apps({ props: { theme: (
@@ -13242,7 +13547,7 @@ function create_default_slot_11(ctx) {
13242
13547
  }
13243
13548
  };
13244
13549
  }
13245
- function create_if_block_122(ctx) {
13550
+ function create_if_block_14(ctx) {
13246
13551
  let button;
13247
13552
  let current;
13248
13553
  button = new Button_default({
@@ -13257,7 +13562,7 @@ function create_if_block_122(ctx) {
13257
13562
  /*disabled*/
13258
13563
  ctx[3]
13259
13564
  ),
13260
- $$slots: { default: [create_default_slot_10] },
13565
+ $$slots: { default: [create_default_slot_122] },
13261
13566
  $$scope: { ctx }
13262
13567
  }
13263
13568
  });
@@ -13286,7 +13591,7 @@ function create_if_block_122(ctx) {
13286
13591
  ctx2[3];
13287
13592
  if (dirty[0] & /*theme*/
13288
13593
  2 | dirty[2] & /*$$scope*/
13289
- 256) {
13594
+ 1024) {
13290
13595
  button_changes.$$scope = { dirty, ctx: ctx2 };
13291
13596
  }
13292
13597
  button.$set(button_changes);
@@ -13306,7 +13611,7 @@ function create_if_block_122(ctx) {
13306
13611
  }
13307
13612
  };
13308
13613
  }
13309
- function create_default_slot_10(ctx) {
13614
+ function create_default_slot_122(ctx) {
13310
13615
  let icons_down;
13311
13616
  let current;
13312
13617
  icons_down = new Icons_default.Down({ props: { theme: (
@@ -13353,9 +13658,12 @@ function create_if_block_52(ctx) {
13353
13658
  let t1;
13354
13659
  let current_block_type_index_2;
13355
13660
  let if_block2;
13356
- let if_block2_anchor;
13661
+ let t2;
13662
+ let current_block_type_index_3;
13663
+ let if_block3;
13664
+ let if_block3_anchor;
13357
13665
  let current;
13358
- const if_block_creators = [create_if_block_10, create_if_block_11];
13666
+ const if_block_creators = [create_if_block_122, create_if_block_132];
13359
13667
  const if_blocks = [];
13360
13668
  function select_block_type_1(ctx2, dirty) {
13361
13669
  if (
@@ -13373,9 +13681,27 @@ function create_if_block_52(ctx) {
13373
13681
  if (~(current_block_type_index = select_block_type_1(ctx))) {
13374
13682
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
13375
13683
  }
13376
- const if_block_creators_1 = [create_if_block_8, create_if_block_9];
13684
+ const if_block_creators_1 = [create_if_block_10, create_if_block_11];
13377
13685
  const if_blocks_1 = [];
13378
13686
  function select_block_type_2(ctx2, dirty) {
13687
+ if (
13688
+ /*pencilType*/
13689
+ ctx2[20] === "stroke"
13690
+ )
13691
+ return 0;
13692
+ if (
13693
+ /*pencilType*/
13694
+ ctx2[20] !== "stroke"
13695
+ )
13696
+ return 1;
13697
+ return -1;
13698
+ }
13699
+ if (~(current_block_type_index_1 = select_block_type_2(ctx))) {
13700
+ if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
13701
+ }
13702
+ const if_block_creators_2 = [create_if_block_8, create_if_block_9];
13703
+ const if_blocks_2 = [];
13704
+ function select_block_type_3(ctx2, dirty) {
13379
13705
  if (
13380
13706
  /*showLaserPen*/
13381
13707
  ctx2[21] && /*pencilType*/
@@ -13390,12 +13716,12 @@ function create_if_block_52(ctx) {
13390
13716
  return 1;
13391
13717
  return -1;
13392
13718
  }
13393
- if (~(current_block_type_index_1 = select_block_type_2(ctx))) {
13394
- if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
13719
+ if (~(current_block_type_index_2 = select_block_type_3(ctx))) {
13720
+ if_block2 = if_blocks_2[current_block_type_index_2] = if_block_creators_2[current_block_type_index_2](ctx);
13395
13721
  }
13396
- const if_block_creators_2 = [create_if_block_6, create_if_block_7];
13397
- const if_blocks_2 = [];
13398
- function select_block_type_3(ctx2, dirty) {
13722
+ const if_block_creators_3 = [create_if_block_62, create_if_block_72];
13723
+ const if_blocks_3 = [];
13724
+ function select_block_type_4(ctx2, dirty) {
13399
13725
  if (
13400
13726
  /*pencilType*/
13401
13727
  ctx2[20] === "mark"
@@ -13408,8 +13734,8 @@ function create_if_block_52(ctx) {
13408
13734
  return 1;
13409
13735
  return -1;
13410
13736
  }
13411
- if (~(current_block_type_index_2 = select_block_type_3(ctx))) {
13412
- if_block2 = if_blocks_2[current_block_type_index_2] = if_block_creators_2[current_block_type_index_2](ctx);
13737
+ if (~(current_block_type_index_3 = select_block_type_4(ctx))) {
13738
+ if_block3 = if_blocks_3[current_block_type_index_3] = if_block_creators_3[current_block_type_index_3](ctx);
13413
13739
  }
13414
13740
  return {
13415
13741
  c() {
@@ -13421,7 +13747,10 @@ function create_if_block_52(ctx) {
13421
13747
  t1 = space();
13422
13748
  if (if_block2)
13423
13749
  if_block2.c();
13424
- if_block2_anchor = empty();
13750
+ t2 = space();
13751
+ if (if_block3)
13752
+ if_block3.c();
13753
+ if_block3_anchor = empty();
13425
13754
  },
13426
13755
  m(target, anchor) {
13427
13756
  if (~current_block_type_index) {
@@ -13435,7 +13764,11 @@ function create_if_block_52(ctx) {
13435
13764
  if (~current_block_type_index_2) {
13436
13765
  if_blocks_2[current_block_type_index_2].m(target, anchor);
13437
13766
  }
13438
- insert(target, if_block2_anchor, anchor);
13767
+ insert(target, t2, anchor);
13768
+ if (~current_block_type_index_3) {
13769
+ if_blocks_3[current_block_type_index_3].m(target, anchor);
13770
+ }
13771
+ insert(target, if_block3_anchor, anchor);
13439
13772
  current = true;
13440
13773
  },
13441
13774
  p(ctx2, dirty) {
@@ -13518,42 +13851,274 @@ function create_if_block_52(ctx) {
13518
13851
  if_block2.p(ctx2, dirty);
13519
13852
  }
13520
13853
  transition_in(if_block2, 1);
13521
- if_block2.m(if_block2_anchor.parentNode, if_block2_anchor);
13854
+ if_block2.m(t2.parentNode, t2);
13522
13855
  } else {
13523
13856
  if_block2 = null;
13524
13857
  }
13525
13858
  }
13859
+ let previous_block_index_3 = current_block_type_index_3;
13860
+ current_block_type_index_3 = select_block_type_4(ctx2);
13861
+ if (current_block_type_index_3 === previous_block_index_3) {
13862
+ if (~current_block_type_index_3) {
13863
+ if_blocks_3[current_block_type_index_3].p(ctx2, dirty);
13864
+ }
13865
+ } else {
13866
+ if (if_block3) {
13867
+ group_outros();
13868
+ transition_out(if_blocks_3[previous_block_index_3], 1, 1, () => {
13869
+ if_blocks_3[previous_block_index_3] = null;
13870
+ });
13871
+ check_outros();
13872
+ }
13873
+ if (~current_block_type_index_3) {
13874
+ if_block3 = if_blocks_3[current_block_type_index_3];
13875
+ if (!if_block3) {
13876
+ if_block3 = if_blocks_3[current_block_type_index_3] = if_block_creators_3[current_block_type_index_3](ctx2);
13877
+ if_block3.c();
13878
+ } else {
13879
+ if_block3.p(ctx2, dirty);
13880
+ }
13881
+ transition_in(if_block3, 1);
13882
+ if_block3.m(if_block3_anchor.parentNode, if_block3_anchor);
13883
+ } else {
13884
+ if_block3 = null;
13885
+ }
13886
+ }
13887
+ },
13888
+ i(local) {
13889
+ if (current)
13890
+ return;
13891
+ transition_in(if_block0);
13892
+ transition_in(if_block1);
13893
+ transition_in(if_block2);
13894
+ transition_in(if_block3);
13895
+ current = true;
13896
+ },
13897
+ o(local) {
13898
+ transition_out(if_block0);
13899
+ transition_out(if_block1);
13900
+ transition_out(if_block2);
13901
+ transition_out(if_block3);
13902
+ current = false;
13903
+ },
13904
+ d(detaching) {
13905
+ if (~current_block_type_index) {
13906
+ if_blocks[current_block_type_index].d(detaching);
13907
+ }
13908
+ if (detaching)
13909
+ detach(t0);
13910
+ if (~current_block_type_index_1) {
13911
+ if_blocks_1[current_block_type_index_1].d(detaching);
13912
+ }
13913
+ if (detaching)
13914
+ detach(t1);
13915
+ if (~current_block_type_index_2) {
13916
+ if_blocks_2[current_block_type_index_2].d(detaching);
13917
+ }
13918
+ if (detaching)
13919
+ detach(t2);
13920
+ if (~current_block_type_index_3) {
13921
+ if_blocks_3[current_block_type_index_3].d(detaching);
13922
+ }
13923
+ if (detaching)
13924
+ detach(if_block3_anchor);
13925
+ }
13926
+ };
13927
+ }
13928
+ function create_if_block_132(ctx) {
13929
+ let button;
13930
+ let current;
13931
+ const button_spread_levels = [
13932
+ { class: name5 + "-panel-switch-btn" },
13933
+ /*btn_props*/
13934
+ ctx[17]
13935
+ ];
13936
+ let button_props = {
13937
+ $$slots: { default: [create_default_slot_11] },
13938
+ $$scope: { ctx }
13939
+ };
13940
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
13941
+ button_props = assign(button_props, button_spread_levels[i]);
13942
+ }
13943
+ button = new Button_default({ props: button_props });
13944
+ return {
13945
+ c() {
13946
+ create_component(button.$$.fragment);
13947
+ },
13948
+ m(target, anchor) {
13949
+ mount_component(button, target, anchor);
13950
+ current = true;
13951
+ },
13952
+ p(ctx2, dirty) {
13953
+ const button_changes = dirty[0] & /*btn_props*/
13954
+ 131072 ? get_spread_update(button_spread_levels, [
13955
+ dirty & /*name*/
13956
+ 0 && { class: name5 + "-panel-switch-btn" },
13957
+ dirty[0] & /*btn_props*/
13958
+ 131072 && get_spread_object(
13959
+ /*btn_props*/
13960
+ ctx2[17]
13961
+ )
13962
+ ]) : {};
13963
+ if (dirty[0] & /*theme*/
13964
+ 2 | dirty[2] & /*$$scope*/
13965
+ 1024) {
13966
+ button_changes.$$scope = { dirty, ctx: ctx2 };
13967
+ }
13968
+ button.$set(button_changes);
13969
+ },
13970
+ i(local) {
13971
+ if (current)
13972
+ return;
13973
+ transition_in(button.$$.fragment, local);
13974
+ current = true;
13975
+ },
13976
+ o(local) {
13977
+ transition_out(button.$$.fragment, local);
13978
+ current = false;
13979
+ },
13980
+ d(detaching) {
13981
+ destroy_component(button, detaching);
13982
+ }
13983
+ };
13984
+ }
13985
+ function create_if_block_122(ctx) {
13986
+ let button;
13987
+ let current;
13988
+ const button_spread_levels = [
13989
+ { class: name5 + "-panel-switch-btn" },
13990
+ /*btn_props*/
13991
+ ctx[17]
13992
+ ];
13993
+ let button_props = {
13994
+ $$slots: { default: [create_default_slot_10] },
13995
+ $$scope: { ctx }
13996
+ };
13997
+ for (let i = 0; i < button_spread_levels.length; i += 1) {
13998
+ button_props = assign(button_props, button_spread_levels[i]);
13999
+ }
14000
+ button = new Button_default({ props: button_props });
14001
+ button.$on(
14002
+ "click",
14003
+ /*useNormalPencil*/
14004
+ ctx[38]
14005
+ );
14006
+ return {
14007
+ c() {
14008
+ create_component(button.$$.fragment);
14009
+ },
14010
+ m(target, anchor) {
14011
+ mount_component(button, target, anchor);
14012
+ current = true;
14013
+ },
14014
+ p(ctx2, dirty) {
14015
+ const button_changes = dirty[0] & /*btn_props*/
14016
+ 131072 ? get_spread_update(button_spread_levels, [
14017
+ dirty & /*name*/
14018
+ 0 && { class: name5 + "-panel-switch-btn" },
14019
+ dirty[0] & /*btn_props*/
14020
+ 131072 && get_spread_object(
14021
+ /*btn_props*/
14022
+ ctx2[17]
14023
+ )
14024
+ ]) : {};
14025
+ if (dirty[0] & /*theme*/
14026
+ 2 | dirty[2] & /*$$scope*/
14027
+ 1024) {
14028
+ button_changes.$$scope = { dirty, ctx: ctx2 };
14029
+ }
14030
+ button.$set(button_changes);
14031
+ },
14032
+ i(local) {
14033
+ if (current)
14034
+ return;
14035
+ transition_in(button.$$.fragment, local);
14036
+ current = true;
14037
+ },
14038
+ o(local) {
14039
+ transition_out(button.$$.fragment, local);
14040
+ current = false;
14041
+ },
14042
+ d(detaching) {
14043
+ destroy_component(button, detaching);
14044
+ }
14045
+ };
14046
+ }
14047
+ function create_default_slot_11(ctx) {
14048
+ let icons_pencilfilled;
14049
+ let current;
14050
+ icons_pencilfilled = new Icons_default.PencilFilled({
14051
+ props: { theme: (
14052
+ /*theme*/
14053
+ ctx[1]
14054
+ ), active: true }
14055
+ });
14056
+ return {
14057
+ c() {
14058
+ create_component(icons_pencilfilled.$$.fragment);
14059
+ },
14060
+ m(target, anchor) {
14061
+ mount_component(icons_pencilfilled, target, anchor);
14062
+ current = true;
14063
+ },
14064
+ p(ctx2, dirty) {
14065
+ const icons_pencilfilled_changes = {};
14066
+ if (dirty[0] & /*theme*/
14067
+ 2)
14068
+ icons_pencilfilled_changes.theme = /*theme*/
14069
+ ctx2[1];
14070
+ icons_pencilfilled.$set(icons_pencilfilled_changes);
14071
+ },
14072
+ i(local) {
14073
+ if (current)
14074
+ return;
14075
+ transition_in(icons_pencilfilled.$$.fragment, local);
14076
+ current = true;
14077
+ },
14078
+ o(local) {
14079
+ transition_out(icons_pencilfilled.$$.fragment, local);
14080
+ current = false;
14081
+ },
14082
+ d(detaching) {
14083
+ destroy_component(icons_pencilfilled, detaching);
14084
+ }
14085
+ };
14086
+ }
14087
+ function create_default_slot_10(ctx) {
14088
+ let icons_pencil;
14089
+ let current;
14090
+ icons_pencil = new Icons_default.Pencil({ props: { theme: (
14091
+ /*theme*/
14092
+ ctx[1]
14093
+ ) } });
14094
+ return {
14095
+ c() {
14096
+ create_component(icons_pencil.$$.fragment);
14097
+ },
14098
+ m(target, anchor) {
14099
+ mount_component(icons_pencil, target, anchor);
14100
+ current = true;
14101
+ },
14102
+ p(ctx2, dirty) {
14103
+ const icons_pencil_changes = {};
14104
+ if (dirty[0] & /*theme*/
14105
+ 2)
14106
+ icons_pencil_changes.theme = /*theme*/
14107
+ ctx2[1];
14108
+ icons_pencil.$set(icons_pencil_changes);
13526
14109
  },
13527
14110
  i(local) {
13528
14111
  if (current)
13529
14112
  return;
13530
- transition_in(if_block0);
13531
- transition_in(if_block1);
13532
- transition_in(if_block2);
14113
+ transition_in(icons_pencil.$$.fragment, local);
13533
14114
  current = true;
13534
14115
  },
13535
14116
  o(local) {
13536
- transition_out(if_block0);
13537
- transition_out(if_block1);
13538
- transition_out(if_block2);
14117
+ transition_out(icons_pencil.$$.fragment, local);
13539
14118
  current = false;
13540
14119
  },
13541
14120
  d(detaching) {
13542
- if (~current_block_type_index) {
13543
- if_blocks[current_block_type_index].d(detaching);
13544
- }
13545
- if (detaching)
13546
- detach(t0);
13547
- if (~current_block_type_index_1) {
13548
- if_blocks_1[current_block_type_index_1].d(detaching);
13549
- }
13550
- if (detaching)
13551
- detach(t1);
13552
- if (~current_block_type_index_2) {
13553
- if_blocks_2[current_block_type_index_2].d(detaching);
13554
- }
13555
- if (detaching)
13556
- detach(if_block2_anchor);
14121
+ destroy_component(icons_pencil, detaching);
13557
14122
  }
13558
14123
  };
13559
14124
  }
@@ -13573,6 +14138,11 @@ function create_if_block_11(ctx) {
13573
14138
  button_props = assign(button_props, button_spread_levels[i]);
13574
14139
  }
13575
14140
  button = new Button_default({ props: button_props });
14141
+ button.$on(
14142
+ "click",
14143
+ /*useStrokePencil*/
14144
+ ctx[39]
14145
+ );
13576
14146
  return {
13577
14147
  c() {
13578
14148
  create_component(button.$$.fragment);
@@ -13594,7 +14164,7 @@ function create_if_block_11(ctx) {
13594
14164
  ]) : {};
13595
14165
  if (dirty[0] & /*theme*/
13596
14166
  2 | dirty[2] & /*$$scope*/
13597
- 256) {
14167
+ 1024) {
13598
14168
  button_changes.$$scope = { dirty, ctx: ctx2 };
13599
14169
  }
13600
14170
  button.$set(button_changes);
@@ -13630,11 +14200,6 @@ function create_if_block_10(ctx) {
13630
14200
  button_props = assign(button_props, button_spread_levels[i]);
13631
14201
  }
13632
14202
  button = new Button_default({ props: button_props });
13633
- button.$on(
13634
- "click",
13635
- /*usePencil*/
13636
- ctx[38]
13637
- );
13638
14203
  return {
13639
14204
  c() {
13640
14205
  create_component(button.$$.fragment);
@@ -13656,7 +14221,7 @@ function create_if_block_10(ctx) {
13656
14221
  ]) : {};
13657
14222
  if (dirty[0] & /*theme*/
13658
14223
  2 | dirty[2] & /*$$scope*/
13659
- 256) {
14224
+ 1024) {
13660
14225
  button_changes.$$scope = { dirty, ctx: ctx2 };
13661
14226
  }
13662
14227
  button.$set(button_changes);
@@ -13677,80 +14242,80 @@ function create_if_block_10(ctx) {
13677
14242
  };
13678
14243
  }
13679
14244
  function create_default_slot_9(ctx) {
13680
- let icons_pencilfilled;
14245
+ let icons_strokepencil;
13681
14246
  let current;
13682
- icons_pencilfilled = new Icons_default.PencilFilled({
13683
- props: { theme: (
13684
- /*theme*/
13685
- ctx[1]
13686
- ), active: true }
13687
- });
14247
+ icons_strokepencil = new Icons_default.StrokePencil({ props: { theme: (
14248
+ /*theme*/
14249
+ ctx[1]
14250
+ ) } });
13688
14251
  return {
13689
14252
  c() {
13690
- create_component(icons_pencilfilled.$$.fragment);
14253
+ create_component(icons_strokepencil.$$.fragment);
13691
14254
  },
13692
14255
  m(target, anchor) {
13693
- mount_component(icons_pencilfilled, target, anchor);
14256
+ mount_component(icons_strokepencil, target, anchor);
13694
14257
  current = true;
13695
14258
  },
13696
14259
  p(ctx2, dirty) {
13697
- const icons_pencilfilled_changes = {};
14260
+ const icons_strokepencil_changes = {};
13698
14261
  if (dirty[0] & /*theme*/
13699
14262
  2)
13700
- icons_pencilfilled_changes.theme = /*theme*/
14263
+ icons_strokepencil_changes.theme = /*theme*/
13701
14264
  ctx2[1];
13702
- icons_pencilfilled.$set(icons_pencilfilled_changes);
14265
+ icons_strokepencil.$set(icons_strokepencil_changes);
13703
14266
  },
13704
14267
  i(local) {
13705
14268
  if (current)
13706
14269
  return;
13707
- transition_in(icons_pencilfilled.$$.fragment, local);
14270
+ transition_in(icons_strokepencil.$$.fragment, local);
13708
14271
  current = true;
13709
14272
  },
13710
14273
  o(local) {
13711
- transition_out(icons_pencilfilled.$$.fragment, local);
14274
+ transition_out(icons_strokepencil.$$.fragment, local);
13712
14275
  current = false;
13713
14276
  },
13714
14277
  d(detaching) {
13715
- destroy_component(icons_pencilfilled, detaching);
14278
+ destroy_component(icons_strokepencil, detaching);
13716
14279
  }
13717
14280
  };
13718
14281
  }
13719
14282
  function create_default_slot_8(ctx) {
13720
- let icons_pencil;
14283
+ let icons_strokepencilfilled;
13721
14284
  let current;
13722
- icons_pencil = new Icons_default.Pencil({ props: { theme: (
13723
- /*theme*/
13724
- ctx[1]
13725
- ) } });
14285
+ icons_strokepencilfilled = new Icons_default.StrokePencilFilled({
14286
+ props: { theme: (
14287
+ /*theme*/
14288
+ ctx[1]
14289
+ ), active: true }
14290
+ });
13726
14291
  return {
13727
14292
  c() {
13728
- create_component(icons_pencil.$$.fragment);
14293
+ create_component(icons_strokepencilfilled.$$.fragment);
13729
14294
  },
13730
14295
  m(target, anchor) {
13731
- mount_component(icons_pencil, target, anchor);
14296
+ mount_component(icons_strokepencilfilled, target, anchor);
13732
14297
  current = true;
13733
14298
  },
13734
14299
  p(ctx2, dirty) {
13735
- const icons_pencil_changes = {};
14300
+ const icons_strokepencilfilled_changes = {};
13736
14301
  if (dirty[0] & /*theme*/
13737
14302
  2)
13738
- icons_pencil_changes.theme = /*theme*/
14303
+ icons_strokepencilfilled_changes.theme = /*theme*/
13739
14304
  ctx2[1];
13740
- icons_pencil.$set(icons_pencil_changes);
14305
+ icons_strokepencilfilled.$set(icons_strokepencilfilled_changes);
13741
14306
  },
13742
14307
  i(local) {
13743
14308
  if (current)
13744
14309
  return;
13745
- transition_in(icons_pencil.$$.fragment, local);
14310
+ transition_in(icons_strokepencilfilled.$$.fragment, local);
13746
14311
  current = true;
13747
14312
  },
13748
14313
  o(local) {
13749
- transition_out(icons_pencil.$$.fragment, local);
14314
+ transition_out(icons_strokepencilfilled.$$.fragment, local);
13750
14315
  current = false;
13751
14316
  },
13752
14317
  d(detaching) {
13753
- destroy_component(icons_pencil, detaching);
14318
+ destroy_component(icons_strokepencilfilled, detaching);
13754
14319
  }
13755
14320
  };
13756
14321
  }
@@ -13773,7 +14338,7 @@ function create_if_block_9(ctx) {
13773
14338
  button.$on(
13774
14339
  "click",
13775
14340
  /*useLaserPen*/
13776
- ctx[39]
14341
+ ctx[40]
13777
14342
  );
13778
14343
  return {
13779
14344
  c() {
@@ -13796,7 +14361,7 @@ function create_if_block_9(ctx) {
13796
14361
  ]) : {};
13797
14362
  if (dirty[0] & /*theme*/
13798
14363
  2 | dirty[2] & /*$$scope*/
13799
- 256) {
14364
+ 1024) {
13800
14365
  button_changes.$$scope = { dirty, ctx: ctx2 };
13801
14366
  }
13802
14367
  button.$set(button_changes);
@@ -13853,7 +14418,7 @@ function create_if_block_8(ctx) {
13853
14418
  ]) : {};
13854
14419
  if (dirty[0] & /*theme*/
13855
14420
  2 | dirty[2] & /*$$scope*/
13856
- 256) {
14421
+ 1024) {
13857
14422
  button_changes.$$scope = { dirty, ctx: ctx2 };
13858
14423
  }
13859
14424
  button.$set(button_changes);
@@ -13951,7 +14516,7 @@ function create_default_slot_6(ctx) {
13951
14516
  }
13952
14517
  };
13953
14518
  }
13954
- function create_if_block_7(ctx) {
14519
+ function create_if_block_72(ctx) {
13955
14520
  let button;
13956
14521
  let current;
13957
14522
  const button_spread_levels = [
@@ -13970,7 +14535,7 @@ function create_if_block_7(ctx) {
13970
14535
  button.$on(
13971
14536
  "click",
13972
14537
  /*useMarkPen*/
13973
- ctx[40]
14538
+ ctx[41]
13974
14539
  );
13975
14540
  return {
13976
14541
  c() {
@@ -13993,7 +14558,7 @@ function create_if_block_7(ctx) {
13993
14558
  ]) : {};
13994
14559
  if (dirty[0] & /*theme*/
13995
14560
  2 | dirty[2] & /*$$scope*/
13996
- 256) {
14561
+ 1024) {
13997
14562
  button_changes.$$scope = { dirty, ctx: ctx2 };
13998
14563
  }
13999
14564
  button.$set(button_changes);
@@ -14013,7 +14578,7 @@ function create_if_block_7(ctx) {
14013
14578
  }
14014
14579
  };
14015
14580
  }
14016
- function create_if_block_6(ctx) {
14581
+ function create_if_block_62(ctx) {
14017
14582
  let button;
14018
14583
  let current;
14019
14584
  const button_spread_levels = [
@@ -14050,7 +14615,7 @@ function create_if_block_6(ctx) {
14050
14615
  ]) : {};
14051
14616
  if (dirty[0] & /*theme*/
14052
14617
  2 | dirty[2] & /*$$scope*/
14053
- 256) {
14618
+ 1024) {
14054
14619
  button_changes.$$scope = { dirty, ctx: ctx2 };
14055
14620
  }
14056
14621
  button.$set(button_changes);
@@ -14158,7 +14723,7 @@ function create_if_block14(ctx) {
14158
14723
  let current;
14159
14724
  const if_block_creators = [create_if_block_33, create_if_block_42];
14160
14725
  const if_blocks = [];
14161
- function select_block_type_4(ctx2, dirty) {
14726
+ function select_block_type_5(ctx2, dirty) {
14162
14727
  if (
14163
14728
  /*eraserType*/
14164
14729
  ctx2[18] !== "eraser"
@@ -14171,12 +14736,12 @@ function create_if_block14(ctx) {
14171
14736
  return 1;
14172
14737
  return -1;
14173
14738
  }
14174
- if (~(current_block_type_index = select_block_type_4(ctx))) {
14739
+ if (~(current_block_type_index = select_block_type_5(ctx))) {
14175
14740
  if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
14176
14741
  }
14177
- const if_block_creators_1 = [create_if_block_110, create_if_block_24];
14742
+ const if_block_creators_1 = [create_if_block_110, create_if_block_26];
14178
14743
  const if_blocks_1 = [];
14179
- function select_block_type_5(ctx2, dirty) {
14744
+ function select_block_type_6(ctx2, dirty) {
14180
14745
  if (
14181
14746
  /*eraserType*/
14182
14747
  ctx2[18] === "pencilEraser"
@@ -14189,7 +14754,7 @@ function create_if_block14(ctx) {
14189
14754
  return 1;
14190
14755
  return -1;
14191
14756
  }
14192
- if (~(current_block_type_index_1 = select_block_type_5(ctx))) {
14757
+ if (~(current_block_type_index_1 = select_block_type_6(ctx))) {
14193
14758
  if_block1 = if_blocks_1[current_block_type_index_1] = if_block_creators_1[current_block_type_index_1](ctx);
14194
14759
  }
14195
14760
  return {
@@ -14214,7 +14779,7 @@ function create_if_block14(ctx) {
14214
14779
  },
14215
14780
  p(ctx2, dirty) {
14216
14781
  let previous_block_index = current_block_type_index;
14217
- current_block_type_index = select_block_type_4(ctx2);
14782
+ current_block_type_index = select_block_type_5(ctx2);
14218
14783
  if (current_block_type_index === previous_block_index) {
14219
14784
  if (~current_block_type_index) {
14220
14785
  if_blocks[current_block_type_index].p(ctx2, dirty);
@@ -14242,7 +14807,7 @@ function create_if_block14(ctx) {
14242
14807
  }
14243
14808
  }
14244
14809
  let previous_block_index_1 = current_block_type_index_1;
14245
- current_block_type_index_1 = select_block_type_5(ctx2);
14810
+ current_block_type_index_1 = select_block_type_6(ctx2);
14246
14811
  if (current_block_type_index_1 === previous_block_index_1) {
14247
14812
  if (~current_block_type_index_1) {
14248
14813
  if_blocks_1[current_block_type_index_1].p(ctx2, dirty);
@@ -14333,7 +14898,7 @@ function create_if_block_42(ctx) {
14333
14898
  ]) : {};
14334
14899
  if (dirty[0] & /*theme*/
14335
14900
  2 | dirty[2] & /*$$scope*/
14336
- 256) {
14901
+ 1024) {
14337
14902
  button_changes.$$scope = { dirty, ctx: ctx2 };
14338
14903
  }
14339
14904
  button.$set(button_changes);
@@ -14372,7 +14937,7 @@ function create_if_block_33(ctx) {
14372
14937
  button.$on(
14373
14938
  "click",
14374
14939
  /*useEraser*/
14375
- ctx[41]
14940
+ ctx[42]
14376
14941
  );
14377
14942
  return {
14378
14943
  c() {
@@ -14395,7 +14960,7 @@ function create_if_block_33(ctx) {
14395
14960
  ]) : {};
14396
14961
  if (dirty[0] & /*theme*/
14397
14962
  2 | dirty[2] & /*$$scope*/
14398
- 256) {
14963
+ 1024) {
14399
14964
  button_changes.$$scope = { dirty, ctx: ctx2 };
14400
14965
  }
14401
14966
  button.$set(button_changes);
@@ -14493,7 +15058,7 @@ function create_default_slot_24(ctx) {
14493
15058
  }
14494
15059
  };
14495
15060
  }
14496
- function create_if_block_24(ctx) {
15061
+ function create_if_block_26(ctx) {
14497
15062
  let button;
14498
15063
  let current;
14499
15064
  const button_spread_levels = [
@@ -14502,7 +15067,7 @@ function create_if_block_24(ctx) {
14502
15067
  ctx[17]
14503
15068
  ];
14504
15069
  let button_props = {
14505
- $$slots: { default: [create_default_slot_14] },
15070
+ $$slots: { default: [create_default_slot_15] },
14506
15071
  $$scope: { ctx }
14507
15072
  };
14508
15073
  for (let i = 0; i < button_spread_levels.length; i += 1) {
@@ -14512,7 +15077,7 @@ function create_if_block_24(ctx) {
14512
15077
  button.$on(
14513
15078
  "click",
14514
15079
  /*useEraserBitmap*/
14515
- ctx[42]
15080
+ ctx[43]
14516
15081
  );
14517
15082
  return {
14518
15083
  c() {
@@ -14535,7 +15100,7 @@ function create_if_block_24(ctx) {
14535
15100
  ]) : {};
14536
15101
  if (dirty[0] & /*theme*/
14537
15102
  2 | dirty[2] & /*$$scope*/
14538
- 256) {
15103
+ 1024) {
14539
15104
  button_changes.$$scope = { dirty, ctx: ctx2 };
14540
15105
  }
14541
15106
  button.$set(button_changes);
@@ -14592,7 +15157,7 @@ function create_if_block_110(ctx) {
14592
15157
  ]) : {};
14593
15158
  if (dirty[0] & /*theme*/
14594
15159
  2 | dirty[2] & /*$$scope*/
14595
- 256) {
15160
+ 1024) {
14596
15161
  button_changes.$$scope = { dirty, ctx: ctx2 };
14597
15162
  }
14598
15163
  button.$set(button_changes);
@@ -14612,7 +15177,7 @@ function create_if_block_110(ctx) {
14612
15177
  }
14613
15178
  };
14614
15179
  }
14615
- function create_default_slot_14(ctx) {
15180
+ function create_default_slot_15(ctx) {
14616
15181
  let icons_eraserbitmapfilled;
14617
15182
  let current;
14618
15183
  icons_eraserbitmapfilled = new Icons_default.EraserBitmapFilled({ props: { theme: (
@@ -14701,7 +15266,7 @@ function create_each_block4(ctx) {
14701
15266
  let span;
14702
15267
  let t1_value = (
14703
15268
  /*label*/
14704
- ctx[60] + ""
15269
+ ctx[62] + ""
14705
15270
  );
14706
15271
  let t1;
14707
15272
  let span_class_value;
@@ -14723,40 +15288,40 @@ function create_each_block4(ctx) {
14723
15288
  attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
14724
15289
  ctx[1]);
14725
15290
  if (!src_url_equal(img.src, img_src_value = /*icon*/
14726
- ctx[59]))
15291
+ ctx[61]))
14727
15292
  attr(img, "src", img_src_value);
14728
15293
  attr(img, "alt", img_alt_value = /*kind*/
14729
- ctx[61]);
15294
+ ctx[63]);
14730
15295
  attr(img, "title", img_title_value = /*label*/
14731
- ctx[60]);
15296
+ ctx[62]);
14732
15297
  attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
14733
15298
  ctx[1]);
14734
15299
  attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
14735
- ctx[61] + " " + /*theme*/
15300
+ ctx[63] + " " + /*theme*/
14736
15301
  ctx[1]);
14737
15302
  attr(button, "title", button_title_value = /*label*/
14738
- ctx[60] + /*state*/
14739
- (ctx[63] && /*state*/
14740
- ctx[63].reason ? ": " + /*state*/
14741
- ctx[63].reason : ""));
15303
+ ctx[62] + /*state*/
15304
+ (ctx[65] && /*state*/
15305
+ ctx[65].reason ? ": " + /*state*/
15306
+ ctx[65].reason : ""));
14742
15307
  attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
14743
- ctx[58].kind);
15308
+ ctx[60].kind);
14744
15309
  button.disabled = button_disabled_value = /*state*/
14745
- ctx[63] && /*state*/
14746
- ctx[63].status !== "idle";
15310
+ ctx[65] && /*state*/
15311
+ ctx[65].status !== "idle";
14747
15312
  toggle_class(
14748
15313
  button,
14749
15314
  "is-loading",
14750
15315
  /*state*/
14751
- ctx[63] && /*state*/
14752
- ctx[63].status === "loading"
15316
+ ctx[65] && /*state*/
15317
+ ctx[65].status === "loading"
14753
15318
  );
14754
15319
  toggle_class(
14755
15320
  button,
14756
15321
  "is-failed",
14757
15322
  /*state*/
14758
- ctx[63] && /*state*/
14759
- ctx[63].status === "failed"
15323
+ ctx[65] && /*state*/
15324
+ ctx[65].status === "failed"
14760
15325
  );
14761
15326
  },
14762
15327
  m(target, anchor) {
@@ -14770,9 +15335,9 @@ function create_each_block4(ctx) {
14770
15335
  dispose = listen(button, "click", function() {
14771
15336
  if (is_function(
14772
15337
  /*on_click*/
14773
- ctx[64]
15338
+ ctx[66]
14774
15339
  ))
14775
- ctx[64].apply(this, arguments);
15340
+ ctx[66].apply(this, arguments);
14776
15341
  });
14777
15342
  mounted = true;
14778
15343
  }
@@ -14786,22 +15351,22 @@ function create_each_block4(ctx) {
14786
15351
  }
14787
15352
  if (dirty[0] & /*$apps*/
14788
15353
  33554432 && !src_url_equal(img.src, img_src_value = /*icon*/
14789
- ctx[59])) {
15354
+ ctx[61])) {
14790
15355
  attr(img, "src", img_src_value);
14791
15356
  }
14792
15357
  if (dirty[0] & /*$apps*/
14793
15358
  33554432 && img_alt_value !== (img_alt_value = /*kind*/
14794
- ctx[61])) {
15359
+ ctx[63])) {
14795
15360
  attr(img, "alt", img_alt_value);
14796
15361
  }
14797
15362
  if (dirty[0] & /*$apps*/
14798
15363
  33554432 && img_title_value !== (img_title_value = /*label*/
14799
- ctx[60])) {
15364
+ ctx[62])) {
14800
15365
  attr(img, "title", img_title_value);
14801
15366
  }
14802
15367
  if (dirty[0] & /*$apps*/
14803
15368
  33554432 && t1_value !== (t1_value = /*label*/
14804
- ctx[60] + ""))
15369
+ ctx[62] + ""))
14805
15370
  set_data(t1, t1_value);
14806
15371
  if (dirty[0] & /*theme*/
14807
15372
  2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
@@ -14810,27 +15375,27 @@ function create_each_block4(ctx) {
14810
15375
  }
14811
15376
  if (dirty[0] & /*$apps, theme*/
14812
15377
  33554434 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
14813
- ctx[61] + " " + /*theme*/
15378
+ ctx[63] + " " + /*theme*/
14814
15379
  ctx[1])) {
14815
15380
  attr(button, "class", button_class_value);
14816
15381
  }
14817
15382
  if (dirty[0] & /*$apps, $status*/
14818
15383
  100663296 && button_title_value !== (button_title_value = /*label*/
14819
- ctx[60] + /*state*/
14820
- (ctx[63] && /*state*/
14821
- ctx[63].reason ? ": " + /*state*/
14822
- ctx[63].reason : ""))) {
15384
+ ctx[62] + /*state*/
15385
+ (ctx[65] && /*state*/
15386
+ ctx[65].reason ? ": " + /*state*/
15387
+ ctx[65].reason : ""))) {
14823
15388
  attr(button, "title", button_title_value);
14824
15389
  }
14825
15390
  if (dirty[0] & /*$apps*/
14826
15391
  33554432 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
14827
- ctx[58].kind)) {
15392
+ ctx[60].kind)) {
14828
15393
  attr(button, "data-app-kind", button_data_app_kind_value);
14829
15394
  }
14830
15395
  if (dirty[0] & /*$status, $apps*/
14831
15396
  100663296 && button_disabled_value !== (button_disabled_value = /*state*/
14832
- ctx[63] && /*state*/
14833
- ctx[63].status !== "idle")) {
15397
+ ctx[65] && /*state*/
15398
+ ctx[65].status !== "idle")) {
14834
15399
  button.disabled = button_disabled_value;
14835
15400
  }
14836
15401
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -14839,8 +15404,8 @@ function create_each_block4(ctx) {
14839
15404
  button,
14840
15405
  "is-loading",
14841
15406
  /*state*/
14842
- ctx[63] && /*state*/
14843
- ctx[63].status === "loading"
15407
+ ctx[65] && /*state*/
15408
+ ctx[65].status === "loading"
14844
15409
  );
14845
15410
  }
14846
15411
  if (dirty[0] & /*$apps, theme, $status, $apps*/
@@ -14849,8 +15414,8 @@ function create_each_block4(ctx) {
14849
15414
  button,
14850
15415
  "is-failed",
14851
15416
  /*state*/
14852
- ctx[63] && /*state*/
14853
- ctx[63].status === "failed"
15417
+ ctx[65] && /*state*/
15418
+ ctx[65].status === "failed"
14854
15419
  );
14855
15420
  }
14856
15421
  },
@@ -14862,7 +15427,7 @@ function create_each_block4(ctx) {
14862
15427
  }
14863
15428
  };
14864
15429
  }
14865
- function create_fragment74(ctx) {
15430
+ function create_fragment76(ctx) {
14866
15431
  var _a, _b;
14867
15432
  let t0;
14868
15433
  let div0;
@@ -14870,42 +15435,44 @@ function create_fragment74(ctx) {
14870
15435
  let scrollHeight_action;
14871
15436
  let t2;
14872
15437
  let t3;
14873
- let div11;
14874
- let div3;
15438
+ let div12;
15439
+ let div4;
14875
15440
  let div1;
14876
15441
  let t4;
14877
- let strokewidth0;
14878
- let t5;
14879
15442
  let div2;
15443
+ let t5;
15444
+ let strokewidth0;
14880
15445
  let t6;
14881
- let strokecolor0;
15446
+ let div3;
14882
15447
  let t7;
14883
- let div4;
14884
- let textcolor;
15448
+ let strokecolor0;
14885
15449
  let t8;
14886
- let div7;
14887
- let selectshapes;
14888
- let t9;
14889
15450
  let div5;
15451
+ let textcolor;
15452
+ let t9;
15453
+ let div8;
15454
+ let selectshapes;
14890
15455
  let t10;
14891
- let strokewidth1;
14892
- let t11;
14893
15456
  let div6;
15457
+ let t11;
15458
+ let strokewidth1;
14894
15459
  let t12;
14895
- let strokecolor1;
15460
+ let div7;
14896
15461
  let t13;
14897
- let div9;
14898
- let div8;
15462
+ let strokecolor1;
14899
15463
  let t14;
14900
- let erasersize;
14901
- let t15;
14902
15464
  let div10;
15465
+ let div9;
15466
+ let t15;
15467
+ let erasersize;
15468
+ let t16;
15469
+ let div11;
14903
15470
  let current;
14904
15471
  let mounted;
14905
15472
  let dispose;
14906
15473
  let if_block0 = (
14907
15474
  /*scrollable*/
14908
- ctx[5] && create_if_block_23(ctx)
15475
+ ctx[5] && create_if_block_25(ctx)
14909
15476
  );
14910
15477
  let each_value_1 = (
14911
15478
  /*items*/
@@ -14919,10 +15486,10 @@ function create_fragment74(ctx) {
14919
15486
  each_blocks_1[i] = null;
14920
15487
  });
14921
15488
  let if_block1 = !/*hide_apps*/
14922
- ctx[8] && create_if_block_132(ctx);
15489
+ ctx[8] && create_if_block_15(ctx);
14923
15490
  let if_block2 = (
14924
15491
  /*scrollable*/
14925
- ctx[5] && create_if_block_122(ctx)
15492
+ ctx[5] && create_if_block_14(ctx)
14926
15493
  );
14927
15494
  let if_block3 = !!/*app*/
14928
15495
  ((_a = ctx[0]) == null ? void 0 : _a.appliancePlugin) && create_if_block_52(ctx);
@@ -15080,40 +15647,42 @@ function create_fragment74(ctx) {
15080
15647
  if (if_block2)
15081
15648
  if_block2.c();
15082
15649
  t3 = space();
15083
- div11 = element("div");
15084
- div3 = element("div");
15650
+ div12 = element("div");
15651
+ div4 = element("div");
15085
15652
  div1 = element("div");
15086
15653
  if (if_block3)
15087
15654
  if_block3.c();
15088
15655
  t4 = space();
15089
- create_component(strokewidth0.$$.fragment);
15090
- t5 = space();
15091
15656
  div2 = element("div");
15657
+ t5 = space();
15658
+ create_component(strokewidth0.$$.fragment);
15092
15659
  t6 = space();
15093
- create_component(strokecolor0.$$.fragment);
15660
+ div3 = element("div");
15094
15661
  t7 = space();
15095
- div4 = element("div");
15096
- create_component(textcolor.$$.fragment);
15662
+ create_component(strokecolor0.$$.fragment);
15097
15663
  t8 = space();
15098
- div7 = element("div");
15099
- create_component(selectshapes.$$.fragment);
15100
- t9 = space();
15101
15664
  div5 = element("div");
15665
+ create_component(textcolor.$$.fragment);
15666
+ t9 = space();
15667
+ div8 = element("div");
15668
+ create_component(selectshapes.$$.fragment);
15102
15669
  t10 = space();
15103
- create_component(strokewidth1.$$.fragment);
15104
- t11 = space();
15105
15670
  div6 = element("div");
15671
+ t11 = space();
15672
+ create_component(strokewidth1.$$.fragment);
15106
15673
  t12 = space();
15107
- create_component(strokecolor1.$$.fragment);
15674
+ div7 = element("div");
15108
15675
  t13 = space();
15676
+ create_component(strokecolor1.$$.fragment);
15677
+ t14 = space();
15678
+ div10 = element("div");
15109
15679
  div9 = element("div");
15110
- div8 = element("div");
15111
15680
  if (if_block4)
15112
15681
  if_block4.c();
15113
- t14 = space();
15114
- create_component(erasersize.$$.fragment);
15115
15682
  t15 = space();
15116
- div10 = element("div");
15683
+ create_component(erasersize.$$.fragment);
15684
+ t16 = space();
15685
+ div11 = element("div");
15117
15686
  for (let i = 0; i < each_blocks.length; i += 1) {
15118
15687
  each_blocks[i].c();
15119
15688
  }
@@ -15126,22 +15695,23 @@ function create_fragment74(ctx) {
15126
15695
  );
15127
15696
  attr(div1, "class", name5 + "-panel-switch-pencil");
15128
15697
  attr(div2, "class", name5 + "-panel-divider");
15129
- attr(div3, "class", name5 + "-panel pencil");
15130
- attr(div4, "class", name5 + "-panel text");
15131
- attr(div5, "class", name5 + "-panel-divider");
15698
+ attr(div3, "class", name5 + "-panel-divider");
15699
+ attr(div4, "class", name5 + "-panel pencil");
15700
+ attr(div5, "class", name5 + "-panel text");
15132
15701
  attr(div6, "class", name5 + "-panel-divider");
15133
- attr(div7, "class", name5 + "-panel shapes");
15134
- attr(div8, "class", name5 + "-panel-switch-earser");
15135
- attr(div9, "class", name5 + "-panel earser");
15136
- attr(div10, "class", name5 + "-panel apps");
15702
+ attr(div7, "class", name5 + "-panel-divider");
15703
+ attr(div8, "class", name5 + "-panel shapes");
15704
+ attr(div9, "class", name5 + "-panel-switch-earser");
15705
+ attr(div10, "class", name5 + "-panel earser");
15706
+ attr(div11, "class", name5 + "-panel apps");
15137
15707
  set_style(
15138
- div10,
15708
+ div11,
15139
15709
  "--n",
15140
15710
  /*$apps*/
15141
15711
  ctx[25].length
15142
15712
  );
15143
- attr(div11, "class", name5 + "-panel-wrapper");
15144
- set_style(div11, "display", "none");
15713
+ attr(div12, "class", name5 + "-panel-wrapper");
15714
+ set_style(div12, "display", "none");
15145
15715
  },
15146
15716
  m(target, anchor) {
15147
15717
  if (if_block0)
@@ -15160,50 +15730,52 @@ function create_fragment74(ctx) {
15160
15730
  if (if_block2)
15161
15731
  if_block2.m(target, anchor);
15162
15732
  insert(target, t3, anchor);
15163
- insert(target, div11, anchor);
15164
- append(div11, div3);
15165
- append(div3, div1);
15733
+ insert(target, div12, anchor);
15734
+ append(div12, div4);
15735
+ append(div4, div1);
15166
15736
  if (if_block3)
15167
15737
  if_block3.m(div1, null);
15168
- append(div3, t4);
15169
- mount_component(strokewidth0, div3, null);
15170
- append(div3, t5);
15171
- append(div3, div2);
15172
- append(div3, t6);
15173
- mount_component(strokecolor0, div3, null);
15174
- ctx[50](div3);
15175
- append(div11, t7);
15176
- append(div11, div4);
15177
- mount_component(textcolor, div4, null);
15178
- ctx[51](div4);
15179
- append(div11, t8);
15180
- append(div11, div7);
15181
- mount_component(selectshapes, div7, null);
15182
- append(div7, t9);
15183
- append(div7, div5);
15184
- append(div7, t10);
15185
- mount_component(strokewidth1, div7, null);
15186
- append(div7, t11);
15187
- append(div7, div6);
15188
- append(div7, t12);
15189
- mount_component(strokecolor1, div7, null);
15190
- ctx[52](div7);
15191
- append(div11, t13);
15192
- append(div11, div9);
15193
- append(div9, div8);
15738
+ append(div4, t4);
15739
+ append(div4, div2);
15740
+ append(div4, t5);
15741
+ mount_component(strokewidth0, div4, null);
15742
+ append(div4, t6);
15743
+ append(div4, div3);
15744
+ append(div4, t7);
15745
+ mount_component(strokecolor0, div4, null);
15746
+ ctx[52](div4);
15747
+ append(div12, t8);
15748
+ append(div12, div5);
15749
+ mount_component(textcolor, div5, null);
15750
+ ctx[53](div5);
15751
+ append(div12, t9);
15752
+ append(div12, div8);
15753
+ mount_component(selectshapes, div8, null);
15754
+ append(div8, t10);
15755
+ append(div8, div6);
15756
+ append(div8, t11);
15757
+ mount_component(strokewidth1, div8, null);
15758
+ append(div8, t12);
15759
+ append(div8, div7);
15760
+ append(div8, t13);
15761
+ mount_component(strokecolor1, div8, null);
15762
+ ctx[54](div8);
15763
+ append(div12, t14);
15764
+ append(div12, div10);
15765
+ append(div10, div9);
15194
15766
  if (if_block4)
15195
- if_block4.m(div8, null);
15196
- append(div9, t14);
15197
- mount_component(erasersize, div9, null);
15198
- ctx[53](div9);
15199
- append(div11, t15);
15200
- append(div11, div10);
15767
+ if_block4.m(div9, null);
15768
+ append(div10, t15);
15769
+ mount_component(erasersize, div10, null);
15770
+ ctx[55](div10);
15771
+ append(div12, t16);
15772
+ append(div12, div11);
15201
15773
  for (let i = 0; i < each_blocks.length; i += 1) {
15202
15774
  if (each_blocks[i]) {
15203
- each_blocks[i].m(div10, null);
15775
+ each_blocks[i].m(div11, null);
15204
15776
  }
15205
15777
  }
15206
- ctx[55](div10);
15778
+ ctx[57](div11);
15207
15779
  current = true;
15208
15780
  if (!mounted) {
15209
15781
  dispose = [
@@ -15236,7 +15808,7 @@ function create_fragment74(ctx) {
15236
15808
  transition_in(if_block0, 1);
15237
15809
  }
15238
15810
  } else {
15239
- if_block0 = create_if_block_23(ctx2);
15811
+ if_block0 = create_if_block_25(ctx2);
15240
15812
  if_block0.c();
15241
15813
  transition_in(if_block0, 1);
15242
15814
  if_block0.m(t0.parentNode, t0);
@@ -15281,7 +15853,7 @@ function create_fragment74(ctx) {
15281
15853
  transition_in(if_block1, 1);
15282
15854
  }
15283
15855
  } else {
15284
- if_block1 = create_if_block_132(ctx2);
15856
+ if_block1 = create_if_block_15(ctx2);
15285
15857
  if_block1.c();
15286
15858
  transition_in(if_block1, 1);
15287
15859
  if_block1.m(div0, null);
@@ -15320,7 +15892,7 @@ function create_fragment74(ctx) {
15320
15892
  transition_in(if_block2, 1);
15321
15893
  }
15322
15894
  } else {
15323
- if_block2 = create_if_block_122(ctx2);
15895
+ if_block2 = create_if_block_14(ctx2);
15324
15896
  if_block2.c();
15325
15897
  transition_in(if_block2, 1);
15326
15898
  if_block2.m(t3.parentNode, t3);
@@ -15465,7 +16037,7 @@ function create_fragment74(ctx) {
15465
16037
  if_block4 = create_if_block14(ctx2);
15466
16038
  if_block4.c();
15467
16039
  transition_in(if_block4, 1);
15468
- if_block4.m(div8, null);
16040
+ if_block4.m(div9, null);
15469
16041
  }
15470
16042
  } else if (if_block4) {
15471
16043
  group_outros();
@@ -15500,7 +16072,7 @@ function create_fragment74(ctx) {
15500
16072
  } else {
15501
16073
  each_blocks[i] = create_each_block4(child_ctx);
15502
16074
  each_blocks[i].c();
15503
- each_blocks[i].m(div10, null);
16075
+ each_blocks[i].m(div11, null);
15504
16076
  }
15505
16077
  }
15506
16078
  for (; i < each_blocks.length; i += 1) {
@@ -15511,7 +16083,7 @@ function create_fragment74(ctx) {
15511
16083
  if (!current || dirty[0] & /*$apps*/
15512
16084
  33554432) {
15513
16085
  set_style(
15514
- div10,
16086
+ div11,
15515
16087
  "--n",
15516
16088
  /*$apps*/
15517
16089
  ctx2[25].length
@@ -15574,31 +16146,31 @@ function create_fragment74(ctx) {
15574
16146
  if (detaching)
15575
16147
  detach(t3);
15576
16148
  if (detaching)
15577
- detach(div11);
16149
+ detach(div12);
15578
16150
  if (if_block3)
15579
16151
  if_block3.d();
15580
16152
  destroy_component(strokewidth0);
15581
16153
  destroy_component(strokecolor0);
15582
- ctx[50](null);
16154
+ ctx[52](null);
15583
16155
  destroy_component(textcolor);
15584
- ctx[51](null);
16156
+ ctx[53](null);
15585
16157
  destroy_component(selectshapes);
15586
16158
  destroy_component(strokewidth1);
15587
16159
  destroy_component(strokecolor1);
15588
- ctx[52](null);
16160
+ ctx[54](null);
15589
16161
  if (if_block4)
15590
16162
  if_block4.d();
15591
16163
  destroy_component(erasersize);
15592
- ctx[53](null);
15593
- destroy_each(each_blocks, detaching);
15594
16164
  ctx[55](null);
16165
+ destroy_each(each_blocks, detaching);
16166
+ ctx[57](null);
15595
16167
  mounted = false;
15596
16168
  run_all(dispose);
15597
16169
  }
15598
16170
  };
15599
16171
  }
15600
16172
  var name5 = "fastboard-toolbar";
15601
- function instance74($$self, $$props, $$invalidate) {
16173
+ function instance76($$self, $$props, $$invalidate) {
15602
16174
  let t;
15603
16175
  let hotkeys;
15604
16176
  let c;
@@ -15610,12 +16182,13 @@ function instance74($$self, $$props, $$invalidate) {
15610
16182
  let showLaserPen;
15611
16183
  let hasUseLaserPen;
15612
16184
  let hasUseMarkPen;
16185
+ let hasUseStroke;
15613
16186
  let pencilType;
15614
16187
  let hasUseEraserBitmap;
15615
16188
  let eraserType;
15616
16189
  let $top;
15617
- let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(48, $memberState = $$value)), memberState);
15618
- let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(49, $scroll_height = $$value)), scroll_height);
16190
+ let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(50, $memberState = $$value)), memberState);
16191
+ let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(51, $scroll_height = $$value)), scroll_height);
15619
16192
  let $apps;
15620
16193
  let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(26, $status = $$value)), status);
15621
16194
  component_subscribe($$self, apps, ($$value) => $$invalidate(25, $apps = $$value));
@@ -15641,7 +16214,7 @@ function instance74($$self, $$props, $$invalidate) {
15641
16214
  let eraser_panel;
15642
16215
  let btn_props;
15643
16216
  let top = writable(0);
15644
- component_subscribe($$self, top, (value) => $$invalidate(57, $top = value));
16217
+ component_subscribe($$self, top, (value) => $$invalidate(59, $top = value));
15645
16218
  function scroll_up() {
15646
16219
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
15647
16220
  }
@@ -15661,12 +16234,14 @@ function instance74($$self, $$props, $$invalidate) {
15661
16234
  useMarkPen();
15662
16235
  } else if (pencilType === "laser") {
15663
16236
  useLaserPen();
16237
+ } else if (pencilType === "stroke") {
16238
+ useStrokePencil();
15664
16239
  } else {
15665
- usePencil();
16240
+ useNormalPencil();
15666
16241
  }
15667
16242
  }
15668
16243
  } else {
15669
- usePencil();
16244
+ useNormalPencil();
15670
16245
  }
15671
16246
  }
15672
16247
  function text2() {
@@ -15694,12 +16269,12 @@ function instance74($$self, $$props, $$invalidate) {
15694
16269
  function clear() {
15695
16270
  app == null ? void 0 : app.cleanCurrentScene();
15696
16271
  }
15697
- function usePencil() {
16272
+ function useNormalPencil() {
15698
16273
  var _a;
15699
16274
  if (hasAppliancePlugin) {
15700
16275
  (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
15701
16276
  currentApplianceName: "pencil",
15702
- strokeType: "Stroke",
16277
+ strokeType: "Normal",
15703
16278
  useLaserPen: false,
15704
16279
  strokeOpacity: 1
15705
16280
  });
@@ -15707,6 +16282,15 @@ function instance74($$self, $$props, $$invalidate) {
15707
16282
  app == null ? void 0 : app.setAppliance("pencil");
15708
16283
  }
15709
16284
  }
16285
+ function useStrokePencil() {
16286
+ var _a;
16287
+ (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
16288
+ currentApplianceName: "pencil",
16289
+ strokeType: "Stroke",
16290
+ useLaserPen: false,
16291
+ strokeOpacity: 1
16292
+ });
16293
+ }
15710
16294
  function useLaserPen() {
15711
16295
  var _a;
15712
16296
  (_a = app == null ? void 0 : app.appliancePlugin) == null ? void 0 : _a.setMemberState({
@@ -15741,25 +16325,25 @@ function instance74($$self, $$props, $$invalidate) {
15741
16325
  isLine: false
15742
16326
  });
15743
16327
  }
15744
- function div3_binding($$value) {
16328
+ function div4_binding($$value) {
15745
16329
  binding_callbacks[$$value ? "unshift" : "push"](() => {
15746
16330
  pencil_panel = $$value;
15747
16331
  $$invalidate(12, pencil_panel);
15748
16332
  });
15749
16333
  }
15750
- function div4_binding($$value) {
16334
+ function div5_binding($$value) {
15751
16335
  binding_callbacks[$$value ? "unshift" : "push"](() => {
15752
16336
  text_panel = $$value;
15753
16337
  $$invalidate(13, text_panel);
15754
16338
  });
15755
16339
  }
15756
- function div7_binding($$value) {
16340
+ function div8_binding($$value) {
15757
16341
  binding_callbacks[$$value ? "unshift" : "push"](() => {
15758
16342
  shapes_panel = $$value;
15759
16343
  $$invalidate(14, shapes_panel);
15760
16344
  });
15761
16345
  }
15762
- function div9_binding($$value) {
16346
+ function div10_binding($$value) {
15763
16347
  binding_callbacks[$$value ? "unshift" : "push"](() => {
15764
16348
  eraser_panel = $$value;
15765
16349
  $$invalidate(16, eraser_panel);
@@ -15769,7 +16353,7 @@ function instance74($$self, $$props, $$invalidate) {
15769
16353
  app && onClick(app);
15770
16354
  tippy_hide_all();
15771
16355
  };
15772
- function div10_binding($$value) {
16356
+ function div11_binding($$value) {
15773
16357
  binding_callbacks[$$value ? "unshift" : "push"](() => {
15774
16358
  apps_panel = $$value;
15775
16359
  $$invalidate(15, apps_panel);
@@ -15787,7 +16371,7 @@ function instance74($$self, $$props, $$invalidate) {
15787
16371
  if ("scroll_height" in $$props2)
15788
16372
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
15789
16373
  if ("computed_height" in $$props2)
15790
- $$invalidate(43, computed_height = $$props2.computed_height);
16374
+ $$invalidate(44, computed_height = $$props2.computed_height);
15791
16375
  if ("scrollable" in $$props2)
15792
16376
  $$invalidate(5, scrollable = $$props2.scrollable);
15793
16377
  if ("placement" in $$props2)
@@ -15817,11 +16401,11 @@ function instance74($$self, $$props, $$invalidate) {
15817
16401
  }
15818
16402
  if ($$self.$$.dirty[0] & /*app*/
15819
16403
  1) {
15820
- $$invalidate(47, hotkeys = app == null ? void 0 : app.hotKeys);
16404
+ $$invalidate(49, hotkeys = app == null ? void 0 : app.hotKeys);
15821
16405
  }
15822
16406
  if ($$self.$$.dirty[0] & /*t*/
15823
16407
  2048 | $$self.$$.dirty[1] & /*hotkeys*/
15824
- 65536) {
16408
+ 262144) {
15825
16409
  $$invalidate(24, c = {
15826
16410
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
15827
16411
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
@@ -15837,7 +16421,7 @@ function instance74($$self, $$props, $$invalidate) {
15837
16421
  $$subscribe_memberState($$invalidate(23, memberState = app == null ? void 0 : app.memberState));
15838
16422
  }
15839
16423
  if ($$self.$$.dirty[1] & /*$memberState*/
15840
- 131072) {
16424
+ 524288) {
15841
16425
  $$invalidate(19, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
15842
16426
  }
15843
16427
  if ($$self.$$.dirty[0] & /*app*/
@@ -15846,7 +16430,7 @@ function instance74($$self, $$props, $$invalidate) {
15846
16430
  }
15847
16431
  if ($$self.$$.dirty[0] & /*scrollable*/
15848
16432
  32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
15849
- 266240) {
16433
+ 1056768) {
15850
16434
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
15851
16435
  }
15852
16436
  if ($$self.$$.dirty[0] & /*app*/
@@ -15859,25 +16443,30 @@ function instance74($$self, $$props, $$invalidate) {
15859
16443
  }
15860
16444
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15861
16445
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15862
- 131072) {
15863
- $$invalidate(46, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
16446
+ 524288) {
16447
+ $$invalidate(48, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
15864
16448
  }
15865
16449
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15866
16450
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15867
- 131072) {
15868
- $$invalidate(45, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
16451
+ 524288) {
16452
+ $$invalidate(47, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
15869
16453
  }
15870
- if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
15871
- 49152) {
15872
- $$invalidate(20, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
16454
+ if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
16455
+ 1024 | $$self.$$.dirty[1] & /*$memberState*/
16456
+ 524288) {
16457
+ $$invalidate(46, hasUseStroke = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeType) === "Stroke" || false);
16458
+ }
16459
+ if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen, hasUseStroke*/
16460
+ 229376) {
16461
+ $$invalidate(20, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : hasUseStroke ? "stroke" : "pencil");
15873
16462
  }
15874
16463
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15875
16464
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15876
- 131072) {
15877
- $$invalidate(44, hasUseEraserBitmap = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.isLine) === false);
16465
+ 524288) {
16466
+ $$invalidate(45, hasUseEraserBitmap = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.isLine) === false);
15878
16467
  }
15879
16468
  if ($$self.$$.dirty[1] & /*hasUseEraserBitmap*/
15880
- 8192) {
16469
+ 16384) {
15881
16470
  $$invalidate(18, eraserType = hasUseEraserBitmap ? "pencilEraser" : "eraser");
15882
16471
  }
15883
16472
  };
@@ -15920,24 +16509,26 @@ function instance74($$self, $$props, $$invalidate) {
15920
16509
  hand,
15921
16510
  laserPointer,
15922
16511
  clear,
15923
- usePencil,
16512
+ useNormalPencil,
16513
+ useStrokePencil,
15924
16514
  useLaserPen,
15925
16515
  useMarkPen,
15926
16516
  useEraser,
15927
16517
  useEraserBitmap,
15928
16518
  computed_height,
15929
16519
  hasUseEraserBitmap,
16520
+ hasUseStroke,
15930
16521
  hasUseMarkPen,
15931
16522
  hasUseLaserPen,
15932
16523
  hotkeys,
15933
16524
  $memberState,
15934
16525
  $scroll_height,
15935
- div3_binding,
15936
16526
  div4_binding,
15937
- div7_binding,
15938
- div9_binding,
16527
+ div5_binding,
16528
+ div8_binding,
16529
+ div10_binding,
15939
16530
  func,
15940
- div10_binding
16531
+ div11_binding
15941
16532
  ];
15942
16533
  }
15943
16534
  var Contents = class extends SvelteComponent {
@@ -15946,8 +16537,8 @@ var Contents = class extends SvelteComponent {
15946
16537
  init(
15947
16538
  this,
15948
16539
  options,
15949
- instance74,
15950
- create_fragment74,
16540
+ instance76,
16541
+ create_fragment76,
15951
16542
  safe_not_equal,
15952
16543
  {
15953
16544
  app: 0,
@@ -15955,7 +16546,7 @@ var Contents = class extends SvelteComponent {
15955
16546
  language: 2,
15956
16547
  disabled: 3,
15957
16548
  scroll_height: 4,
15958
- computed_height: 43,
16549
+ computed_height: 44,
15959
16550
  scrollable: 5,
15960
16551
  placement: 6,
15961
16552
  items: 7,
@@ -16026,7 +16617,7 @@ function create_if_block15(ctx) {
16026
16617
  }
16027
16618
  };
16028
16619
  }
16029
- function create_fragment75(ctx) {
16620
+ function create_fragment77(ctx) {
16030
16621
  let div1;
16031
16622
  let div0;
16032
16623
  let contents;
@@ -16296,7 +16887,7 @@ function create_fragment75(ctx) {
16296
16887
  };
16297
16888
  }
16298
16889
  var name6 = "fastboard-toolbar";
16299
- function instance75($$self, $$props, $$invalidate) {
16890
+ function instance77($$self, $$props, $$invalidate) {
16300
16891
  let writable2;
16301
16892
  let phase;
16302
16893
  let disabled;
@@ -16415,7 +17006,7 @@ function instance75($$self, $$props, $$invalidate) {
16415
17006
  var Toolbar = class extends SvelteComponent {
16416
17007
  constructor(options) {
16417
17008
  super();
16418
- init(this, options, instance75, create_fragment75, safe_not_equal, {
17009
+ init(this, options, instance77, create_fragment77, safe_not_equal, {
16419
17010
  app: 1,
16420
17011
  theme: 2,
16421
17012
  language: 3,
@@ -16489,7 +17080,7 @@ function create_else_block_14(ctx) {
16489
17080
  }
16490
17081
  };
16491
17082
  }
16492
- function create_if_block_25(ctx) {
17083
+ function create_if_block_27(ctx) {
16493
17084
  var _a;
16494
17085
  let icon;
16495
17086
  let current;
@@ -16722,7 +17313,7 @@ function create_default_slot_25(ctx) {
16722
17313
  let if_block;
16723
17314
  let if_block_anchor;
16724
17315
  let current;
16725
- const if_block_creators = [create_if_block_111, create_if_block_25, create_else_block_14];
17316
+ const if_block_creators = [create_if_block_111, create_if_block_27, create_else_block_14];
16726
17317
  const if_blocks = [];
16727
17318
  function select_block_type(ctx2, dirty) {
16728
17319
  if (
@@ -16958,7 +17549,7 @@ function create_if_block16(ctx) {
16958
17549
  }
16959
17550
  };
16960
17551
  }
16961
- function create_default_slot_15(ctx) {
17552
+ function create_default_slot_16(ctx) {
16962
17553
  let span;
16963
17554
  let t0_value = (
16964
17555
  /*$playbackRate*/
@@ -17099,7 +17690,7 @@ function create_each_block5(key_1, ctx) {
17099
17690
  }
17100
17691
  };
17101
17692
  }
17102
- function create_fragment76(ctx) {
17693
+ function create_fragment78(ctx) {
17103
17694
  let div0;
17104
17695
  let button0;
17105
17696
  let t0;
@@ -17186,7 +17777,7 @@ function create_fragment76(ctx) {
17186
17777
  ctx[6]
17187
17778
  ),
17188
17779
  menu_placement: "top-end",
17189
- $$slots: { default: [create_default_slot_15] },
17780
+ $$slots: { default: [create_default_slot_16] },
17190
17781
  $$scope: { ctx }
17191
17782
  }
17192
17783
  });
@@ -17376,7 +17967,7 @@ function format(ms) {
17376
17967
  return String(m).padStart(2, "0") + ":" + String(s % 60).padStart(2, "0");
17377
17968
  }
17378
17969
  var name7 = "fastboard-player-control";
17379
- function instance76($$self, $$props, $$invalidate) {
17970
+ function instance78($$self, $$props, $$invalidate) {
17380
17971
  let t;
17381
17972
  let canPlay;
17382
17973
  let disabled;
@@ -17521,7 +18112,7 @@ function instance76($$self, $$props, $$invalidate) {
17521
18112
  var PlayerControl = class extends SvelteComponent {
17522
18113
  constructor(options) {
17523
18114
  super();
17524
- init(this, options, instance76, create_fragment76, safe_not_equal, {
18115
+ init(this, options, instance78, create_fragment78, safe_not_equal, {
17525
18116
  player: 19,
17526
18117
  theme: 0,
17527
18118
  language: 20,
@@ -17590,7 +18181,7 @@ function create_if_block17(ctx) {
17590
18181
  }
17591
18182
  };
17592
18183
  }
17593
- function create_fragment77(ctx) {
18184
+ function create_fragment79(ctx) {
17594
18185
  var _a;
17595
18186
  let div2;
17596
18187
  let div0;
@@ -17690,7 +18281,7 @@ function create_fragment77(ctx) {
17690
18281
  };
17691
18282
  }
17692
18283
  var name8 = "fastboard";
17693
- function instance77($$self, $$props, $$invalidate) {
18284
+ function instance79($$self, $$props, $$invalidate) {
17694
18285
  let { player = null } = $$props;
17695
18286
  let { theme = "light" } = $$props;
17696
18287
  let { language = "en" } = $$props;
@@ -17765,7 +18356,7 @@ function instance77($$self, $$props, $$invalidate) {
17765
18356
  var ReplayFastboard = class extends SvelteComponent {
17766
18357
  constructor(options) {
17767
18358
  super();
17768
- init(this, options, instance77, create_fragment77, not_equal, {
18359
+ init(this, options, instance79, create_fragment79, not_equal, {
17769
18360
  player: 0,
17770
18361
  theme: 1,
17771
18362
  language: 2,
@@ -17843,7 +18434,7 @@ function create_if_block_34(ctx) {
17843
18434
  }
17844
18435
  };
17845
18436
  }
17846
- function create_if_block_26(ctx) {
18437
+ function create_if_block_28(ctx) {
17847
18438
  let redoundo;
17848
18439
  let current;
17849
18440
  redoundo = new RedoUndo_default({
@@ -18017,7 +18608,7 @@ function create_if_block18(ctx) {
18017
18608
  }
18018
18609
  };
18019
18610
  }
18020
- function create_fragment78(ctx) {
18611
+ function create_fragment80(ctx) {
18021
18612
  var _a, _b, _c, _d;
18022
18613
  let div4;
18023
18614
  let div0;
@@ -18039,7 +18630,7 @@ function create_fragment78(ctx) {
18039
18630
  let if_block1 = (
18040
18631
  /*config*/
18041
18632
  ((_b = ctx[3].redo_undo) == null ? void 0 : _b.enable) !== false && !/*hidden_redo_undo*/
18042
- ctx[6] && create_if_block_26(ctx)
18633
+ ctx[6] && create_if_block_28(ctx)
18043
18634
  );
18044
18635
  let if_block2 = (
18045
18636
  /*config*/
@@ -18180,7 +18771,7 @@ function create_fragment78(ctx) {
18180
18771
  transition_in(if_block1, 1);
18181
18772
  }
18182
18773
  } else {
18183
- if_block1 = create_if_block_26(ctx2);
18774
+ if_block1 = create_if_block_28(ctx2);
18184
18775
  if_block1.c();
18185
18776
  transition_in(if_block1, 1);
18186
18777
  if_block1.m(div2, t2);
@@ -18298,7 +18889,7 @@ function create_fragment78(ctx) {
18298
18889
  };
18299
18890
  }
18300
18891
  var name9 = "fastboard";
18301
- function instance78($$self, $$props, $$invalidate) {
18892
+ function instance80($$self, $$props, $$invalidate) {
18302
18893
  let writable2;
18303
18894
  let boxState;
18304
18895
  let focusedApp;
@@ -18510,7 +19101,7 @@ function instance78($$self, $$props, $$invalidate) {
18510
19101
  var Fastboard = class extends SvelteComponent {
18511
19102
  constructor(options) {
18512
19103
  super();
18513
- init(this, options, instance78, create_fragment78, not_equal, {
19104
+ init(this, options, instance80, create_fragment80, not_equal, {
18514
19105
  app: 0,
18515
19106
  theme: 1,
18516
19107
  language: 2,