@netless/fastboard-ui 1.1.2-beta.1 → 1.1.2-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -12175,39 +12175,39 @@ var EraserSize_default = EraserSize;
12175
12175
  // src/components/Toolbar/components/Contents.svelte
12176
12176
  function get_each_context4(ctx, list, i) {
12177
12177
  const child_ctx = ctx.slice();
12178
- child_ctx[57] = list[i];
12178
+ child_ctx[58] = list[i];
12179
12179
  const constants_0 = (
12180
12180
  /*netless_app*/
12181
- child_ctx[57]
12181
+ child_ctx[58]
12182
12182
  );
12183
- child_ctx[58] = constants_0.icon;
12184
- child_ctx[59] = constants_0.label;
12185
- child_ctx[60] = constants_0.kind;
12186
- child_ctx[61] = constants_0.onClick;
12183
+ child_ctx[59] = constants_0.icon;
12184
+ child_ctx[60] = constants_0.label;
12185
+ child_ctx[61] = constants_0.kind;
12186
+ child_ctx[62] = constants_0.onClick;
12187
12187
  const constants_1 = (
12188
12188
  /*$status*/
12189
- child_ctx[25] && /*$status*/
12190
- child_ctx[25][
12189
+ child_ctx[26] && /*$status*/
12190
+ child_ctx[26][
12191
12191
  /*kind*/
12192
- child_ctx[60]
12192
+ child_ctx[61]
12193
12193
  ]
12194
12194
  );
12195
- child_ctx[62] = constants_1;
12195
+ child_ctx[63] = constants_1;
12196
12196
  const constants_2 = function func() {
12197
12197
  return (
12198
12198
  /*func*/
12199
- ctx[53](
12199
+ ctx[54](
12200
12200
  /*onClick*/
12201
- child_ctx[61]
12201
+ child_ctx[62]
12202
12202
  )
12203
12203
  );
12204
12204
  };
12205
- child_ctx[63] = constants_2;
12205
+ child_ctx[64] = constants_2;
12206
12206
  return child_ctx;
12207
12207
  }
12208
12208
  function get_each_context_1(ctx, list, i) {
12209
12209
  const child_ctx = ctx.slice();
12210
- child_ctx[66] = list[i];
12210
+ child_ctx[67] = list[i];
12211
12211
  return child_ctx;
12212
12212
  }
12213
12213
  function create_if_block_23(ctx) {
@@ -12229,7 +12229,7 @@ function create_if_block_23(ctx) {
12229
12229
  button.$on(
12230
12230
  "click",
12231
12231
  /*scroll_up*/
12232
- ctx[27]
12232
+ ctx[28]
12233
12233
  );
12234
12234
  return {
12235
12235
  c() {
@@ -12247,7 +12247,7 @@ function create_if_block_23(ctx) {
12247
12247
  )]) : {};
12248
12248
  if (dirty[0] & /*theme*/
12249
12249
  2 | dirty[2] & /*$$scope*/
12250
- 128) {
12250
+ 256) {
12251
12251
  button_changes.$$scope = { dirty, ctx: ctx2 };
12252
12252
  }
12253
12253
  button.$set(button_changes);
@@ -12324,14 +12324,14 @@ function create_if_block_222(ctx) {
12324
12324
  ),
12325
12325
  content: (
12326
12326
  /*c*/
12327
- ctx[23].laserPointer
12327
+ ctx[24].laserPointer
12328
12328
  )
12329
12329
  }
12330
12330
  });
12331
12331
  laser.$on(
12332
12332
  "click",
12333
12333
  /*laserPointer*/
12334
- ctx[35]
12334
+ ctx[36]
12335
12335
  );
12336
12336
  return {
12337
12337
  c() {
@@ -12356,9 +12356,9 @@ function create_if_block_222(ctx) {
12356
12356
  laser_changes.btn_props = /*btn_props*/
12357
12357
  ctx2[17];
12358
12358
  if (dirty[0] & /*c*/
12359
- 8388608)
12359
+ 16777216)
12360
12360
  laser_changes.content = /*c*/
12361
- ctx2[23].laserPointer;
12361
+ ctx2[24].laserPointer;
12362
12362
  laser.$set(laser_changes);
12363
12363
  },
12364
12364
  i(local) {
@@ -12395,14 +12395,14 @@ function create_if_block_21(ctx) {
12395
12395
  ),
12396
12396
  content: (
12397
12397
  /*c*/
12398
- ctx[23].hand
12398
+ ctx[24].hand
12399
12399
  )
12400
12400
  }
12401
12401
  });
12402
12402
  hand_1.$on(
12403
12403
  "click",
12404
12404
  /*hand*/
12405
- ctx[34]
12405
+ ctx[35]
12406
12406
  );
12407
12407
  return {
12408
12408
  c() {
@@ -12427,9 +12427,9 @@ function create_if_block_21(ctx) {
12427
12427
  hand_1_changes.btn_props = /*btn_props*/
12428
12428
  ctx2[17];
12429
12429
  if (dirty[0] & /*c*/
12430
- 8388608)
12430
+ 16777216)
12431
12431
  hand_1_changes.content = /*c*/
12432
- ctx2[23].hand;
12432
+ ctx2[24].hand;
12433
12433
  hand_1.$set(hand_1_changes);
12434
12434
  },
12435
12435
  i(local) {
@@ -12469,7 +12469,7 @@ function create_if_block_20(ctx) {
12469
12469
  clear_1.$on(
12470
12470
  "click",
12471
12471
  /*clear*/
12472
- ctx[36]
12472
+ ctx[37]
12473
12473
  );
12474
12474
  return {
12475
12475
  c() {
@@ -12533,7 +12533,7 @@ function create_if_block_19(ctx) {
12533
12533
  ),
12534
12534
  content: (
12535
12535
  /*c*/
12536
- ctx[23].eraser
12536
+ ctx[24].eraser
12537
12537
  ),
12538
12538
  menu: (
12539
12539
  /*hasAppliancePlugin*/
@@ -12547,7 +12547,7 @@ function create_if_block_19(ctx) {
12547
12547
  eraser_1.$on(
12548
12548
  "click",
12549
12549
  /*eraser*/
12550
- ctx[33]
12550
+ ctx[34]
12551
12551
  );
12552
12552
  return {
12553
12553
  c() {
@@ -12576,9 +12576,9 @@ function create_if_block_19(ctx) {
12576
12576
  eraser_1_changes.btn_props = /*btn_props*/
12577
12577
  ctx2[17];
12578
12578
  if (dirty[0] & /*c*/
12579
- 8388608)
12579
+ 16777216)
12580
12580
  eraser_1_changes.content = /*c*/
12581
- ctx2[23].eraser;
12581
+ ctx2[24].eraser;
12582
12582
  if (dirty[0] & /*hasAppliancePlugin, eraser_panel*/
12583
12583
  66560)
12584
12584
  eraser_1_changes.menu = /*hasAppliancePlugin*/
@@ -12704,7 +12704,7 @@ function create_if_block_17(ctx) {
12704
12704
  ),
12705
12705
  content: (
12706
12706
  /*c*/
12707
- ctx[23].text
12707
+ ctx[24].text
12708
12708
  ),
12709
12709
  menu: (
12710
12710
  /*text_panel*/
@@ -12715,7 +12715,7 @@ function create_if_block_17(ctx) {
12715
12715
  text_1.$on(
12716
12716
  "click",
12717
12717
  /*text*/
12718
- ctx[32]
12718
+ ctx[33]
12719
12719
  );
12720
12720
  return {
12721
12721
  c() {
@@ -12740,9 +12740,9 @@ function create_if_block_17(ctx) {
12740
12740
  text_1_changes.btn_props = /*btn_props*/
12741
12741
  ctx2[17];
12742
12742
  if (dirty[0] & /*c*/
12743
- 8388608)
12743
+ 16777216)
12744
12744
  text_1_changes.content = /*c*/
12745
- ctx2[23].text;
12745
+ ctx2[24].text;
12746
12746
  if (dirty[0] & /*text_panel*/
12747
12747
  8192)
12748
12748
  text_1_changes.menu = /*text_panel*/
@@ -12787,7 +12787,7 @@ function create_if_block_16(ctx) {
12787
12787
  ),
12788
12788
  content: (
12789
12789
  /*c*/
12790
- ctx[23].pencil
12790
+ ctx[24].pencil
12791
12791
  ),
12792
12792
  menu: (
12793
12793
  /*pencil_panel*/
@@ -12798,7 +12798,7 @@ function create_if_block_16(ctx) {
12798
12798
  pencil_1.$on(
12799
12799
  "click",
12800
12800
  /*pencil*/
12801
- ctx[31]
12801
+ ctx[32]
12802
12802
  );
12803
12803
  return {
12804
12804
  c() {
@@ -12827,9 +12827,9 @@ function create_if_block_16(ctx) {
12827
12827
  pencil_1_changes.btn_props = /*btn_props*/
12828
12828
  ctx2[17];
12829
12829
  if (dirty[0] & /*c*/
12830
- 8388608)
12830
+ 16777216)
12831
12831
  pencil_1_changes.content = /*c*/
12832
- ctx2[23].pencil;
12832
+ ctx2[24].pencil;
12833
12833
  if (dirty[0] & /*pencil_panel*/
12834
12834
  4096)
12835
12835
  pencil_1_changes.menu = /*pencil_panel*/
@@ -12870,14 +12870,14 @@ function create_if_block_15(ctx) {
12870
12870
  ),
12871
12871
  content: (
12872
12872
  /*c*/
12873
- ctx[23].selector
12873
+ ctx[24].selector
12874
12874
  )
12875
12875
  }
12876
12876
  });
12877
12877
  selector_1.$on(
12878
12878
  "click",
12879
12879
  /*selector*/
12880
- ctx[30]
12880
+ ctx[31]
12881
12881
  );
12882
12882
  return {
12883
12883
  c() {
@@ -12902,9 +12902,9 @@ function create_if_block_15(ctx) {
12902
12902
  selector_1_changes.btn_props = /*btn_props*/
12903
12903
  ctx2[17];
12904
12904
  if (dirty[0] & /*c*/
12905
- 8388608)
12905
+ 16777216)
12906
12906
  selector_1_changes.content = /*c*/
12907
- ctx2[23].selector;
12907
+ ctx2[24].selector;
12908
12908
  selector_1.$set(selector_1_changes);
12909
12909
  },
12910
12910
  i(local) {
@@ -12941,14 +12941,14 @@ function create_if_block_14(ctx) {
12941
12941
  ),
12942
12942
  content: (
12943
12943
  /*c*/
12944
- ctx[23].clicker
12944
+ ctx[24].clicker
12945
12945
  )
12946
12946
  }
12947
12947
  });
12948
12948
  clicker_1.$on(
12949
12949
  "click",
12950
12950
  /*clicker*/
12951
- ctx[29]
12951
+ ctx[30]
12952
12952
  );
12953
12953
  return {
12954
12954
  c() {
@@ -12973,9 +12973,9 @@ function create_if_block_14(ctx) {
12973
12973
  clicker_1_changes.btn_props = /*btn_props*/
12974
12974
  ctx2[17];
12975
12975
  if (dirty[0] & /*c*/
12976
- 8388608)
12976
+ 16777216)
12977
12977
  clicker_1_changes.content = /*c*/
12978
- ctx2[23].clicker;
12978
+ ctx2[24].clicker;
12979
12979
  clicker_1.$set(clicker_1_changes);
12980
12980
  },
12981
12981
  i(local) {
@@ -13013,47 +13013,47 @@ function create_each_block_1(ctx) {
13013
13013
  function select_block_type(ctx2, dirty) {
13014
13014
  if (
13015
13015
  /*item*/
13016
- ctx2[66] === "clicker"
13016
+ ctx2[67] === "clicker"
13017
13017
  )
13018
13018
  return 0;
13019
13019
  if (
13020
13020
  /*item*/
13021
- ctx2[66] === "selector"
13021
+ ctx2[67] === "selector"
13022
13022
  )
13023
13023
  return 1;
13024
13024
  if (
13025
13025
  /*item*/
13026
- ctx2[66] === "pencil"
13026
+ ctx2[67] === "pencil"
13027
13027
  )
13028
13028
  return 2;
13029
13029
  if (
13030
13030
  /*item*/
13031
- ctx2[66] === "text"
13031
+ ctx2[67] === "text"
13032
13032
  )
13033
13033
  return 3;
13034
13034
  if (
13035
13035
  /*item*/
13036
- ctx2[66] === "shapes"
13036
+ ctx2[67] === "shapes"
13037
13037
  )
13038
13038
  return 4;
13039
13039
  if (
13040
13040
  /*item*/
13041
- ctx2[66] === "eraser"
13041
+ ctx2[67] === "eraser"
13042
13042
  )
13043
13043
  return 5;
13044
13044
  if (
13045
13045
  /*item*/
13046
- ctx2[66] === "clear"
13046
+ ctx2[67] === "clear"
13047
13047
  )
13048
13048
  return 6;
13049
13049
  if (
13050
13050
  /*item*/
13051
- ctx2[66] === "hand"
13051
+ ctx2[67] === "hand"
13052
13052
  )
13053
13053
  return 7;
13054
13054
  if (
13055
13055
  /*item*/
13056
- ctx2[66] === "laserPointer"
13056
+ ctx2[67] === "laserPointer"
13057
13057
  )
13058
13058
  return 8;
13059
13059
  return -1;
@@ -13190,7 +13190,7 @@ function create_if_block_132(ctx) {
13190
13190
  ]) : {};
13191
13191
  if (dirty[0] & /*theme*/
13192
13192
  2 | dirty[2] & /*$$scope*/
13193
- 128) {
13193
+ 256) {
13194
13194
  button_changes.$$scope = { dirty, ctx: ctx2 };
13195
13195
  }
13196
13196
  button.$set(button_changes);
@@ -13270,7 +13270,7 @@ function create_if_block_122(ctx) {
13270
13270
  button.$on(
13271
13271
  "click",
13272
13272
  /*scroll_down*/
13273
- ctx[28]
13273
+ ctx[29]
13274
13274
  );
13275
13275
  return {
13276
13276
  c() {
@@ -13292,7 +13292,7 @@ function create_if_block_122(ctx) {
13292
13292
  ctx2[3];
13293
13293
  if (dirty[0] & /*theme*/
13294
13294
  2 | dirty[2] & /*$$scope*/
13295
- 128) {
13295
+ 256) {
13296
13296
  button_changes.$$scope = { dirty, ctx: ctx2 };
13297
13297
  }
13298
13298
  button.$set(button_changes);
@@ -13383,12 +13383,14 @@ function create_if_block_52(ctx) {
13383
13383
  const if_blocks_1 = [];
13384
13384
  function select_block_type_2(ctx2, dirty) {
13385
13385
  if (
13386
- /*pencilType*/
13386
+ /*showLaserPen*/
13387
+ ctx2[21] && /*pencilType*/
13387
13388
  ctx2[20] === "laser"
13388
13389
  )
13389
13390
  return 0;
13390
13391
  if (
13391
- /*pencilType*/
13392
+ /*showLaserPen*/
13393
+ ctx2[21] && /*pencilType*/
13392
13394
  ctx2[20] !== "laser"
13393
13395
  )
13394
13396
  return 1;
@@ -13598,7 +13600,7 @@ function create_if_block_11(ctx) {
13598
13600
  ]) : {};
13599
13601
  if (dirty[0] & /*theme*/
13600
13602
  2 | dirty[2] & /*$$scope*/
13601
- 128) {
13603
+ 256) {
13602
13604
  button_changes.$$scope = { dirty, ctx: ctx2 };
13603
13605
  }
13604
13606
  button.$set(button_changes);
@@ -13637,7 +13639,7 @@ function create_if_block_10(ctx) {
13637
13639
  button.$on(
13638
13640
  "click",
13639
13641
  /*usePencil*/
13640
- ctx[37]
13642
+ ctx[38]
13641
13643
  );
13642
13644
  return {
13643
13645
  c() {
@@ -13660,7 +13662,7 @@ function create_if_block_10(ctx) {
13660
13662
  ]) : {};
13661
13663
  if (dirty[0] & /*theme*/
13662
13664
  2 | dirty[2] & /*$$scope*/
13663
- 128) {
13665
+ 256) {
13664
13666
  button_changes.$$scope = { dirty, ctx: ctx2 };
13665
13667
  }
13666
13668
  button.$set(button_changes);
@@ -13777,7 +13779,7 @@ function create_if_block_9(ctx) {
13777
13779
  button.$on(
13778
13780
  "click",
13779
13781
  /*useLaserPen*/
13780
- ctx[38]
13782
+ ctx[39]
13781
13783
  );
13782
13784
  return {
13783
13785
  c() {
@@ -13800,7 +13802,7 @@ function create_if_block_9(ctx) {
13800
13802
  ]) : {};
13801
13803
  if (dirty[0] & /*theme*/
13802
13804
  2 | dirty[2] & /*$$scope*/
13803
- 128) {
13805
+ 256) {
13804
13806
  button_changes.$$scope = { dirty, ctx: ctx2 };
13805
13807
  }
13806
13808
  button.$set(button_changes);
@@ -13857,7 +13859,7 @@ function create_if_block_8(ctx) {
13857
13859
  ]) : {};
13858
13860
  if (dirty[0] & /*theme*/
13859
13861
  2 | dirty[2] & /*$$scope*/
13860
- 128) {
13862
+ 256) {
13861
13863
  button_changes.$$scope = { dirty, ctx: ctx2 };
13862
13864
  }
13863
13865
  button.$set(button_changes);
@@ -13974,7 +13976,7 @@ function create_if_block_7(ctx) {
13974
13976
  button.$on(
13975
13977
  "click",
13976
13978
  /*useMarkPen*/
13977
- ctx[39]
13979
+ ctx[40]
13978
13980
  );
13979
13981
  return {
13980
13982
  c() {
@@ -13997,7 +13999,7 @@ function create_if_block_7(ctx) {
13997
13999
  ]) : {};
13998
14000
  if (dirty[0] & /*theme*/
13999
14001
  2 | dirty[2] & /*$$scope*/
14000
- 128) {
14002
+ 256) {
14001
14003
  button_changes.$$scope = { dirty, ctx: ctx2 };
14002
14004
  }
14003
14005
  button.$set(button_changes);
@@ -14054,7 +14056,7 @@ function create_if_block_6(ctx) {
14054
14056
  ]) : {};
14055
14057
  if (dirty[0] & /*theme*/
14056
14058
  2 | dirty[2] & /*$$scope*/
14057
- 128) {
14059
+ 256) {
14058
14060
  button_changes.$$scope = { dirty, ctx: ctx2 };
14059
14061
  }
14060
14062
  button.$set(button_changes);
@@ -14337,7 +14339,7 @@ function create_if_block_42(ctx) {
14337
14339
  ]) : {};
14338
14340
  if (dirty[0] & /*theme*/
14339
14341
  2 | dirty[2] & /*$$scope*/
14340
- 128) {
14342
+ 256) {
14341
14343
  button_changes.$$scope = { dirty, ctx: ctx2 };
14342
14344
  }
14343
14345
  button.$set(button_changes);
@@ -14376,7 +14378,7 @@ function create_if_block_33(ctx) {
14376
14378
  button.$on(
14377
14379
  "click",
14378
14380
  /*useEraser*/
14379
- ctx[40]
14381
+ ctx[41]
14380
14382
  );
14381
14383
  return {
14382
14384
  c() {
@@ -14399,7 +14401,7 @@ function create_if_block_33(ctx) {
14399
14401
  ]) : {};
14400
14402
  if (dirty[0] & /*theme*/
14401
14403
  2 | dirty[2] & /*$$scope*/
14402
- 128) {
14404
+ 256) {
14403
14405
  button_changes.$$scope = { dirty, ctx: ctx2 };
14404
14406
  }
14405
14407
  button.$set(button_changes);
@@ -14516,7 +14518,7 @@ function create_if_block_24(ctx) {
14516
14518
  button.$on(
14517
14519
  "click",
14518
14520
  /*useEraserBitmap*/
14519
- ctx[41]
14521
+ ctx[42]
14520
14522
  );
14521
14523
  return {
14522
14524
  c() {
@@ -14539,7 +14541,7 @@ function create_if_block_24(ctx) {
14539
14541
  ]) : {};
14540
14542
  if (dirty[0] & /*theme*/
14541
14543
  2 | dirty[2] & /*$$scope*/
14542
- 128) {
14544
+ 256) {
14543
14545
  button_changes.$$scope = { dirty, ctx: ctx2 };
14544
14546
  }
14545
14547
  button.$set(button_changes);
@@ -14596,7 +14598,7 @@ function create_if_block_110(ctx) {
14596
14598
  ]) : {};
14597
14599
  if (dirty[0] & /*theme*/
14598
14600
  2 | dirty[2] & /*$$scope*/
14599
- 128) {
14601
+ 256) {
14600
14602
  button_changes.$$scope = { dirty, ctx: ctx2 };
14601
14603
  }
14602
14604
  button.$set(button_changes);
@@ -14705,7 +14707,7 @@ function create_each_block4(ctx) {
14705
14707
  let span;
14706
14708
  let t1_value = (
14707
14709
  /*label*/
14708
- ctx[59] + ""
14710
+ ctx[60] + ""
14709
14711
  );
14710
14712
  let t1;
14711
14713
  let span_class_value;
@@ -14727,40 +14729,40 @@ function create_each_block4(ctx) {
14727
14729
  attr(img, "class", img_class_value = name5 + "-app-btn-icon " + /*theme*/
14728
14730
  ctx[1]);
14729
14731
  if (!src_url_equal(img.src, img_src_value = /*icon*/
14730
- ctx[58]))
14732
+ ctx[59]))
14731
14733
  attr(img, "src", img_src_value);
14732
14734
  attr(img, "alt", img_alt_value = /*kind*/
14733
- ctx[60]);
14735
+ ctx[61]);
14734
14736
  attr(img, "title", img_title_value = /*label*/
14735
- ctx[59]);
14737
+ ctx[60]);
14736
14738
  attr(span, "class", span_class_value = name5 + "-app-btn-text " + /*theme*/
14737
14739
  ctx[1]);
14738
14740
  attr(button, "class", button_class_value = name5 + "-app-btn " + /*kind*/
14739
- ctx[60] + " " + /*theme*/
14741
+ ctx[61] + " " + /*theme*/
14740
14742
  ctx[1]);
14741
14743
  attr(button, "title", button_title_value = /*label*/
14742
- ctx[59] + /*state*/
14743
- (ctx[62] && /*state*/
14744
- ctx[62].reason ? ": " + /*state*/
14745
- ctx[62].reason : ""));
14744
+ ctx[60] + /*state*/
14745
+ (ctx[63] && /*state*/
14746
+ ctx[63].reason ? ": " + /*state*/
14747
+ ctx[63].reason : ""));
14746
14748
  attr(button, "data-app-kind", button_data_app_kind_value = /*netless_app*/
14747
- ctx[57].kind);
14749
+ ctx[58].kind);
14748
14750
  button.disabled = button_disabled_value = /*state*/
14749
- ctx[62] && /*state*/
14750
- ctx[62].status !== "idle";
14751
+ ctx[63] && /*state*/
14752
+ ctx[63].status !== "idle";
14751
14753
  toggle_class(
14752
14754
  button,
14753
14755
  "is-loading",
14754
14756
  /*state*/
14755
- ctx[62] && /*state*/
14756
- ctx[62].status === "loading"
14757
+ ctx[63] && /*state*/
14758
+ ctx[63].status === "loading"
14757
14759
  );
14758
14760
  toggle_class(
14759
14761
  button,
14760
14762
  "is-failed",
14761
14763
  /*state*/
14762
- ctx[62] && /*state*/
14763
- ctx[62].status === "failed"
14764
+ ctx[63] && /*state*/
14765
+ ctx[63].status === "failed"
14764
14766
  );
14765
14767
  },
14766
14768
  m(target, anchor) {
@@ -14774,9 +14776,9 @@ function create_each_block4(ctx) {
14774
14776
  dispose = listen(button, "click", function() {
14775
14777
  if (is_function(
14776
14778
  /*on_click*/
14777
- ctx[63]
14779
+ ctx[64]
14778
14780
  ))
14779
- ctx[63].apply(this, arguments);
14781
+ ctx[64].apply(this, arguments);
14780
14782
  });
14781
14783
  mounted = true;
14782
14784
  }
@@ -14789,23 +14791,23 @@ function create_each_block4(ctx) {
14789
14791
  attr(img, "class", img_class_value);
14790
14792
  }
14791
14793
  if (dirty[0] & /*$apps*/
14792
- 16777216 && !src_url_equal(img.src, img_src_value = /*icon*/
14793
- ctx[58])) {
14794
+ 33554432 && !src_url_equal(img.src, img_src_value = /*icon*/
14795
+ ctx[59])) {
14794
14796
  attr(img, "src", img_src_value);
14795
14797
  }
14796
14798
  if (dirty[0] & /*$apps*/
14797
- 16777216 && img_alt_value !== (img_alt_value = /*kind*/
14798
- ctx[60])) {
14799
+ 33554432 && img_alt_value !== (img_alt_value = /*kind*/
14800
+ ctx[61])) {
14799
14801
  attr(img, "alt", img_alt_value);
14800
14802
  }
14801
14803
  if (dirty[0] & /*$apps*/
14802
- 16777216 && img_title_value !== (img_title_value = /*label*/
14803
- ctx[59])) {
14804
+ 33554432 && img_title_value !== (img_title_value = /*label*/
14805
+ ctx[60])) {
14804
14806
  attr(img, "title", img_title_value);
14805
14807
  }
14806
14808
  if (dirty[0] & /*$apps*/
14807
- 16777216 && t1_value !== (t1_value = /*label*/
14808
- ctx[59] + ""))
14809
+ 33554432 && t1_value !== (t1_value = /*label*/
14810
+ ctx[60] + ""))
14809
14811
  set_data(t1, t1_value);
14810
14812
  if (dirty[0] & /*theme*/
14811
14813
  2 && span_class_value !== (span_class_value = name5 + "-app-btn-text " + /*theme*/
@@ -14813,48 +14815,48 @@ function create_each_block4(ctx) {
14813
14815
  attr(span, "class", span_class_value);
14814
14816
  }
14815
14817
  if (dirty[0] & /*$apps, theme*/
14816
- 16777218 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
14817
- ctx[60] + " " + /*theme*/
14818
+ 33554434 && button_class_value !== (button_class_value = name5 + "-app-btn " + /*kind*/
14819
+ ctx[61] + " " + /*theme*/
14818
14820
  ctx[1])) {
14819
14821
  attr(button, "class", button_class_value);
14820
14822
  }
14821
14823
  if (dirty[0] & /*$apps, $status*/
14822
- 50331648 && button_title_value !== (button_title_value = /*label*/
14823
- ctx[59] + /*state*/
14824
- (ctx[62] && /*state*/
14825
- ctx[62].reason ? ": " + /*state*/
14826
- ctx[62].reason : ""))) {
14824
+ 100663296 && button_title_value !== (button_title_value = /*label*/
14825
+ ctx[60] + /*state*/
14826
+ (ctx[63] && /*state*/
14827
+ ctx[63].reason ? ": " + /*state*/
14828
+ ctx[63].reason : ""))) {
14827
14829
  attr(button, "title", button_title_value);
14828
14830
  }
14829
14831
  if (dirty[0] & /*$apps*/
14830
- 16777216 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
14831
- ctx[57].kind)) {
14832
+ 33554432 && button_data_app_kind_value !== (button_data_app_kind_value = /*netless_app*/
14833
+ ctx[58].kind)) {
14832
14834
  attr(button, "data-app-kind", button_data_app_kind_value);
14833
14835
  }
14834
14836
  if (dirty[0] & /*$status, $apps*/
14835
- 50331648 && button_disabled_value !== (button_disabled_value = /*state*/
14836
- ctx[62] && /*state*/
14837
- ctx[62].status !== "idle")) {
14837
+ 100663296 && button_disabled_value !== (button_disabled_value = /*state*/
14838
+ ctx[63] && /*state*/
14839
+ ctx[63].status !== "idle")) {
14838
14840
  button.disabled = button_disabled_value;
14839
14841
  }
14840
14842
  if (dirty[0] & /*$apps, theme, $status, $apps*/
14841
- 50331650) {
14843
+ 100663298) {
14842
14844
  toggle_class(
14843
14845
  button,
14844
14846
  "is-loading",
14845
14847
  /*state*/
14846
- ctx[62] && /*state*/
14847
- ctx[62].status === "loading"
14848
+ ctx[63] && /*state*/
14849
+ ctx[63].status === "loading"
14848
14850
  );
14849
14851
  }
14850
14852
  if (dirty[0] & /*$apps, theme, $status, $apps*/
14851
- 50331650) {
14853
+ 100663298) {
14852
14854
  toggle_class(
14853
14855
  button,
14854
14856
  "is-failed",
14855
14857
  /*state*/
14856
- ctx[62] && /*state*/
14857
- ctx[62].status === "failed"
14858
+ ctx[63] && /*state*/
14859
+ ctx[63].status === "failed"
14858
14860
  );
14859
14861
  }
14860
14862
  },
@@ -15062,7 +15064,7 @@ function create_fragment74(ctx) {
15062
15064
  });
15063
15065
  let each_value = (
15064
15066
  /*$apps*/
15065
- ctx[24]
15067
+ ctx[25]
15066
15068
  );
15067
15069
  let each_blocks = [];
15068
15070
  for (let i = 0; i < each_value.length; i += 1) {
@@ -15142,7 +15144,7 @@ function create_fragment74(ctx) {
15142
15144
  div10,
15143
15145
  "--n",
15144
15146
  /*$apps*/
15145
- ctx[24].length
15147
+ ctx[25].length
15146
15148
  );
15147
15149
  attr(div11, "class", name5 + "-panel-wrapper");
15148
15150
  set_style(div11, "display", "none");
@@ -15175,11 +15177,11 @@ function create_fragment74(ctx) {
15175
15177
  append(div3, div2);
15176
15178
  append(div3, t6);
15177
15179
  mount_component(strokecolor0, div3, null);
15178
- ctx[49](div3);
15180
+ ctx[50](div3);
15179
15181
  append(div11, t7);
15180
15182
  append(div11, div4);
15181
15183
  mount_component(textcolor, div4, null);
15182
- ctx[50](div4);
15184
+ ctx[51](div4);
15183
15185
  append(div11, t8);
15184
15186
  append(div11, div7);
15185
15187
  mount_component(selectshapes, div7, null);
@@ -15191,7 +15193,7 @@ function create_fragment74(ctx) {
15191
15193
  append(div7, div6);
15192
15194
  append(div7, t12);
15193
15195
  mount_component(strokecolor1, div7, null);
15194
- ctx[51](div7);
15196
+ ctx[52](div7);
15195
15197
  append(div11, t13);
15196
15198
  append(div11, div9);
15197
15199
  append(div9, div8);
@@ -15199,7 +15201,7 @@ function create_fragment74(ctx) {
15199
15201
  if_block4.m(div8, null);
15200
15202
  append(div9, t14);
15201
15203
  mount_component(erasersize, div9, null);
15202
- ctx[52](div9);
15204
+ ctx[53](div9);
15203
15205
  append(div11, t15);
15204
15206
  append(div11, div10);
15205
15207
  for (let i = 0; i < each_blocks.length; i += 1) {
@@ -15207,7 +15209,7 @@ function create_fragment74(ctx) {
15207
15209
  each_blocks[i].m(div10, null);
15208
15210
  }
15209
15211
  }
15210
- ctx[54](div10);
15212
+ ctx[55](div10);
15211
15213
  current = true;
15212
15214
  if (!mounted) {
15213
15215
  dispose = [
@@ -15221,7 +15223,7 @@ function create_fragment74(ctx) {
15221
15223
  null,
15222
15224
  div0,
15223
15225
  /*top*/
15224
- ctx[26]
15226
+ ctx[27]
15225
15227
  ))
15226
15228
  ];
15227
15229
  mounted = true;
@@ -15252,9 +15254,9 @@ function create_fragment74(ctx) {
15252
15254
  });
15253
15255
  check_outros();
15254
15256
  }
15255
- if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, selector, pencilType, pencil_panel, text_panel, app, t, shapes_panel, eraserType, hasAppliancePlugin, eraser_panel*/
15256
- 1621064835 | dirty[1] & /*pencil, text, eraser, clear, hand, laserPointer*/
15257
- 63) {
15257
+ if (dirty[0] & /*appliance, theme, btn_props, c, clicker, items, pencilType, pencil_panel, text_panel, app, t, shapes_panel, eraserType, hasAppliancePlugin, eraser_panel*/
15258
+ 1092582531 | dirty[1] & /*selector, pencil, text, eraser, clear, hand, laserPointer*/
15259
+ 127) {
15258
15260
  each_value_1 = /*items*/
15259
15261
  ctx2[7];
15260
15262
  let i;
@@ -15493,9 +15495,9 @@ function create_fragment74(ctx) {
15493
15495
  ctx2[3];
15494
15496
  erasersize.$set(erasersize_changes);
15495
15497
  if (dirty[0] & /*$apps, theme, $status, app*/
15496
- 50331651) {
15498
+ 100663299) {
15497
15499
  each_value = /*$apps*/
15498
- ctx2[24];
15500
+ ctx2[25];
15499
15501
  let i;
15500
15502
  for (i = 0; i < each_value.length; i += 1) {
15501
15503
  const child_ctx = get_each_context4(ctx2, each_value, i);
@@ -15513,12 +15515,12 @@ function create_fragment74(ctx) {
15513
15515
  each_blocks.length = each_value.length;
15514
15516
  }
15515
15517
  if (!current || dirty[0] & /*$apps*/
15516
- 16777216) {
15518
+ 33554432) {
15517
15519
  set_style(
15518
15520
  div10,
15519
15521
  "--n",
15520
15522
  /*$apps*/
15521
- ctx2[24].length
15523
+ ctx2[25].length
15522
15524
  );
15523
15525
  }
15524
15526
  },
@@ -15583,19 +15585,19 @@ function create_fragment74(ctx) {
15583
15585
  if_block3.d();
15584
15586
  destroy_component(strokewidth0);
15585
15587
  destroy_component(strokecolor0);
15586
- ctx[49](null);
15587
- destroy_component(textcolor);
15588
15588
  ctx[50](null);
15589
+ destroy_component(textcolor);
15590
+ ctx[51](null);
15589
15591
  destroy_component(selectshapes);
15590
15592
  destroy_component(strokewidth1);
15591
15593
  destroy_component(strokecolor1);
15592
- ctx[51](null);
15594
+ ctx[52](null);
15593
15595
  if (if_block4)
15594
15596
  if_block4.d();
15595
15597
  destroy_component(erasersize);
15596
- ctx[52](null);
15598
+ ctx[53](null);
15597
15599
  destroy_each(each_blocks, detaching);
15598
- ctx[54](null);
15600
+ ctx[55](null);
15599
15601
  mounted = false;
15600
15602
  run_all(dispose);
15601
15603
  }
@@ -15611,17 +15613,18 @@ function instance74($$self, $$props, $$invalidate) {
15611
15613
  let status;
15612
15614
  let max_scroll;
15613
15615
  let hasAppliancePlugin;
15616
+ let showLaserPen;
15614
15617
  let hasUseLaserPen;
15615
15618
  let hasUseMarkPen;
15616
15619
  let pencilType;
15617
15620
  let hasUseEraserBitmap;
15618
15621
  let eraserType;
15619
15622
  let $top;
15620
- let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(47, $memberState = $$value)), memberState);
15621
- let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(48, $scroll_height = $$value)), scroll_height);
15623
+ let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(48, $memberState = $$value)), memberState);
15624
+ let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(49, $scroll_height = $$value)), scroll_height);
15622
15625
  let $apps;
15623
- let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(25, $status = $$value)), status);
15624
- component_subscribe($$self, apps, ($$value) => $$invalidate(24, $apps = $$value));
15626
+ let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(26, $status = $$value)), status);
15627
+ component_subscribe($$self, apps, ($$value) => $$invalidate(25, $apps = $$value));
15625
15628
  $$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
15626
15629
  $$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
15627
15630
  $$self.$$.on_destroy.push(() => $$unsubscribe_status());
@@ -15644,7 +15647,7 @@ function instance74($$self, $$props, $$invalidate) {
15644
15647
  let eraser_panel;
15645
15648
  let btn_props;
15646
15649
  let top = writable(0);
15647
- component_subscribe($$self, top, (value) => $$invalidate(56, $top = value));
15650
+ component_subscribe($$self, top, (value) => $$invalidate(57, $top = value));
15648
15651
  function scroll_up() {
15649
15652
  set_store_value(top, $top = clamp($top - 32 - 4, 0, max_scroll), $top);
15650
15653
  }
@@ -15790,7 +15793,7 @@ function instance74($$self, $$props, $$invalidate) {
15790
15793
  if ("scroll_height" in $$props2)
15791
15794
  $$subscribe_scroll_height($$invalidate(4, scroll_height = $$props2.scroll_height));
15792
15795
  if ("computed_height" in $$props2)
15793
- $$invalidate(42, computed_height = $$props2.computed_height);
15796
+ $$invalidate(43, computed_height = $$props2.computed_height);
15794
15797
  if ("scrollable" in $$props2)
15795
15798
  $$invalidate(5, scrollable = $$props2.scrollable);
15796
15799
  if ("placement" in $$props2)
@@ -15803,6 +15806,7 @@ function instance74($$self, $$props, $$invalidate) {
15803
15806
  $$invalidate(9, colors2 = $$props2.colors);
15804
15807
  };
15805
15808
  $$self.$$.update = () => {
15809
+ var _a;
15806
15810
  if ($$self.$$.dirty[0] & /*theme, disabled, placement*/
15807
15811
  74) {
15808
15812
  $$invalidate(17, btn_props = {
@@ -15819,12 +15823,12 @@ function instance74($$self, $$props, $$invalidate) {
15819
15823
  }
15820
15824
  if ($$self.$$.dirty[0] & /*app*/
15821
15825
  1) {
15822
- $$invalidate(46, hotkeys = app == null ? void 0 : app.hotKeys);
15826
+ $$invalidate(47, hotkeys = app == null ? void 0 : app.hotKeys);
15823
15827
  }
15824
15828
  if ($$self.$$.dirty[0] & /*t*/
15825
15829
  2048 | $$self.$$.dirty[1] & /*hotkeys*/
15826
- 32768) {
15827
- $$invalidate(23, c = {
15830
+ 65536) {
15831
+ $$invalidate(24, c = {
15828
15832
  clicker: tooltip(t.clicker, hotkeys == null ? void 0 : hotkeys.changeToClick),
15829
15833
  selector: tooltip(t.selector, hotkeys == null ? void 0 : hotkeys.changeToSelector),
15830
15834
  pencil: tooltip(t.pencil, hotkeys == null ? void 0 : hotkeys.changeToPencil),
@@ -15836,46 +15840,50 @@ function instance74($$self, $$props, $$invalidate) {
15836
15840
  }
15837
15841
  if ($$self.$$.dirty[0] & /*app*/
15838
15842
  1) {
15839
- $$subscribe_memberState($$invalidate(22, memberState = app == null ? void 0 : app.memberState));
15843
+ $$subscribe_memberState($$invalidate(23, memberState = app == null ? void 0 : app.memberState));
15840
15844
  }
15841
15845
  if ($$self.$$.dirty[1] & /*$memberState*/
15842
- 65536) {
15846
+ 131072) {
15843
15847
  $$invalidate(19, appliance = $memberState == null ? void 0 : $memberState.currentApplianceName);
15844
15848
  }
15845
15849
  if ($$self.$$.dirty[0] & /*app*/
15846
15850
  1) {
15847
- $$subscribe_status($$invalidate(21, status = app == null ? void 0 : app.appsStatus));
15851
+ $$subscribe_status($$invalidate(22, status = app == null ? void 0 : app.appsStatus));
15848
15852
  }
15849
15853
  if ($$self.$$.dirty[0] & /*scrollable*/
15850
15854
  32 | $$self.$$.dirty[1] & /*$scroll_height, computed_height*/
15851
- 133120) {
15855
+ 266240) {
15852
15856
  max_scroll = scrollable ? $scroll_height + (32 + 8) * 2 - computed_height : 0;
15853
15857
  }
15854
15858
  if ($$self.$$.dirty[0] & /*app*/
15855
15859
  1) {
15856
15860
  $$invalidate(10, hasAppliancePlugin = !!(app == null ? void 0 : app.appliancePlugin));
15857
15861
  }
15862
+ if ($$self.$$.dirty[0] & /*app*/
15863
+ 1) {
15864
+ $$invalidate(21, showLaserPen = (app == null ? void 0 : app.appliancePlugin) && !((_a = app == null ? void 0 : app.appliancePlugin.currentManager) == null ? void 0 : _a.pluginOptions.extras.useSimple) || false);
15865
+ }
15858
15866
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15859
15867
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15860
- 65536) {
15861
- $$invalidate(45, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
15868
+ 131072) {
15869
+ $$invalidate(46, hasUseLaserPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.useLaserPen) || false);
15862
15870
  }
15863
15871
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15864
15872
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15865
- 65536) {
15866
- $$invalidate(44, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
15873
+ 131072) {
15874
+ $$invalidate(45, hasUseMarkPen = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.strokeOpacity) === 0.5 || false);
15867
15875
  }
15868
15876
  if ($$self.$$.dirty[1] & /*hasUseLaserPen, hasUseMarkPen*/
15869
- 24576) {
15877
+ 49152) {
15870
15878
  $$invalidate(20, pencilType = hasUseLaserPen ? "laser" : hasUseMarkPen ? "mark" : "pencil");
15871
15879
  }
15872
15880
  if ($$self.$$.dirty[0] & /*hasAppliancePlugin*/
15873
15881
  1024 | $$self.$$.dirty[1] & /*$memberState*/
15874
- 65536) {
15875
- $$invalidate(43, hasUseEraserBitmap = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.isLine) === false);
15882
+ 131072) {
15883
+ $$invalidate(44, hasUseEraserBitmap = hasAppliancePlugin && ($memberState == null ? void 0 : $memberState.isLine) === false);
15876
15884
  }
15877
15885
  if ($$self.$$.dirty[1] & /*hasUseEraserBitmap*/
15878
- 4096) {
15886
+ 8192) {
15879
15887
  $$invalidate(18, eraserType = hasUseEraserBitmap ? "pencilEraser" : "eraser");
15880
15888
  }
15881
15889
  };
@@ -15901,6 +15909,7 @@ function instance74($$self, $$props, $$invalidate) {
15901
15909
  eraserType,
15902
15910
  appliance,
15903
15911
  pencilType,
15912
+ showLaserPen,
15904
15913
  status,
15905
15914
  memberState,
15906
15915
  c,
@@ -15952,7 +15961,7 @@ var Contents = class extends SvelteComponent {
15952
15961
  language: 2,
15953
15962
  disabled: 3,
15954
15963
  scroll_height: 4,
15955
- computed_height: 42,
15964
+ computed_height: 43,
15956
15965
  scrollable: 5,
15957
15966
  placement: 6,
15958
15967
  items: 7,