@netless/fastboard-ui 1.0.0-canary.5 → 1.0.0-canary.7

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.
@@ -2990,15 +2990,16 @@ function create_else_block_1(ctx) {
2990
2990
  let current;
2991
2991
  let mounted;
2992
2992
  let dispose;
2993
- const default_slot_template = ctx[9].default;
2994
- const default_slot = create_slot(default_slot_template, ctx, ctx[8], null);
2993
+ const default_slot_template = ctx[10].default;
2994
+ const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
2995
2995
  return {
2996
2996
  c() {
2997
2997
  button = element("button");
2998
2998
  if (default_slot)
2999
2999
  default_slot.c();
3000
3000
  attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
3001
- button.disabled = ctx[3];
3001
+ button.disabled = ctx[4];
3002
+ toggle_class(button, "is-active", ctx[3]);
3002
3003
  },
3003
3004
  m(target, anchor) {
3004
3005
  insert(target, button, anchor);
@@ -3007,19 +3008,19 @@ function create_else_block_1(ctx) {
3007
3008
  }
3008
3009
  current = true;
3009
3010
  if (!mounted) {
3010
- dispose = listen(button, "click", ctx[12]);
3011
+ dispose = listen(button, "click", ctx[13]);
3011
3012
  mounted = true;
3012
3013
  }
3013
3014
  },
3014
3015
  p(ctx2, dirty) {
3015
3016
  if (default_slot) {
3016
- if (default_slot.p && (!current || dirty & 256)) {
3017
+ if (default_slot.p && (!current || dirty & 512)) {
3017
3018
  update_slot_base(
3018
3019
  default_slot,
3019
3020
  default_slot_template,
3020
3021
  ctx2,
3021
- ctx2[8],
3022
- !current ? get_all_dirty_from_scope(ctx2[8]) : get_slot_changes(default_slot_template, ctx2[8], dirty, null),
3022
+ ctx2[9],
3023
+ !current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
3023
3024
  null
3024
3025
  );
3025
3026
  }
@@ -3027,8 +3028,11 @@ function create_else_block_1(ctx) {
3027
3028
  if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
3028
3029
  attr(button, "class", button_class_value);
3029
3030
  }
3030
- if (!current || dirty & 8) {
3031
- button.disabled = ctx2[3];
3031
+ if (!current || dirty & 16) {
3032
+ button.disabled = ctx2[4];
3033
+ }
3034
+ if (dirty & 15) {
3035
+ toggle_class(button, "is-active", ctx2[3]);
3032
3036
  }
3033
3037
  },
3034
3038
  i(local) {
@@ -3059,7 +3063,7 @@ function create_if_block2(ctx) {
3059
3063
  const if_block_creators = [create_if_block_1, create_else_block2];
3060
3064
  const if_blocks = [];
3061
3065
  function select_block_type_1(ctx2, dirty) {
3062
- if (ctx2[6])
3066
+ if (ctx2[7])
3063
3067
  return 0;
3064
3068
  return 1;
3065
3069
  }
@@ -3121,15 +3125,16 @@ function create_else_block2(ctx) {
3121
3125
  let current;
3122
3126
  let mounted;
3123
3127
  let dispose;
3124
- const default_slot_template = ctx[9].default;
3125
- const default_slot = create_slot(default_slot_template, ctx, ctx[8], null);
3128
+ const default_slot_template = ctx[10].default;
3129
+ const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
3126
3130
  return {
3127
3131
  c() {
3128
3132
  button = element("button");
3129
3133
  if (default_slot)
3130
3134
  default_slot.c();
3131
3135
  attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
3132
- button.disabled = ctx[3];
3136
+ button.disabled = ctx[4];
3137
+ toggle_class(button, "is-active", ctx[3]);
3133
3138
  },
3134
3139
  m(target, anchor) {
3135
3140
  insert(target, button, anchor);
@@ -3139,10 +3144,10 @@ function create_else_block2(ctx) {
3139
3144
  current = true;
3140
3145
  if (!mounted) {
3141
3146
  dispose = [
3142
- listen(button, "click", ctx[11]),
3147
+ listen(button, "click", ctx[12]),
3143
3148
  action_destroyer(tippy_action = tippy.call(null, button, {
3144
- content: ctx[4],
3145
- placement: ctx[5],
3149
+ content: ctx[5],
3150
+ placement: ctx[6],
3146
3151
  className: ctx[0]
3147
3152
  }))
3148
3153
  ];
@@ -3151,13 +3156,13 @@ function create_else_block2(ctx) {
3151
3156
  },
3152
3157
  p(ctx2, dirty) {
3153
3158
  if (default_slot) {
3154
- if (default_slot.p && (!current || dirty & 256)) {
3159
+ if (default_slot.p && (!current || dirty & 512)) {
3155
3160
  update_slot_base(
3156
3161
  default_slot,
3157
3162
  default_slot_template,
3158
3163
  ctx2,
3159
- ctx2[8],
3160
- !current ? get_all_dirty_from_scope(ctx2[8]) : get_slot_changes(default_slot_template, ctx2[8], dirty, null),
3164
+ ctx2[9],
3165
+ !current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
3161
3166
  null
3162
3167
  );
3163
3168
  }
@@ -3165,15 +3170,18 @@ function create_else_block2(ctx) {
3165
3170
  if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
3166
3171
  attr(button, "class", button_class_value);
3167
3172
  }
3168
- if (!current || dirty & 8) {
3169
- button.disabled = ctx2[3];
3173
+ if (!current || dirty & 16) {
3174
+ button.disabled = ctx2[4];
3170
3175
  }
3171
- if (tippy_action && is_function(tippy_action.update) && dirty & 49)
3176
+ if (tippy_action && is_function(tippy_action.update) && dirty & 97)
3172
3177
  tippy_action.update.call(null, {
3173
- content: ctx2[4],
3174
- placement: ctx2[5],
3178
+ content: ctx2[5],
3179
+ placement: ctx2[6],
3175
3180
  className: ctx2[0]
3176
3181
  });
3182
+ if (dirty & 15) {
3183
+ toggle_class(button, "is-active", ctx2[3]);
3184
+ }
3177
3185
  },
3178
3186
  i(local) {
3179
3187
  if (current)
@@ -3208,8 +3216,8 @@ function create_if_block_1(ctx) {
3208
3216
  let current;
3209
3217
  let mounted;
3210
3218
  let dispose;
3211
- const default_slot_template = ctx[9].default;
3212
- const default_slot = create_slot(default_slot_template, ctx, ctx[8], null);
3219
+ const default_slot_template = ctx[10].default;
3220
+ const default_slot = create_slot(default_slot_template, ctx, ctx[9], null);
3213
3221
  return {
3214
3222
  c() {
3215
3223
  span1 = element("span");
@@ -3219,7 +3227,8 @@ function create_if_block_1(ctx) {
3219
3227
  t = space();
3220
3228
  span0 = element("span");
3221
3229
  attr(button, "class", button_class_value = ctx[1] + "-btn " + ctx[0] + " " + ctx[2]);
3222
- button.disabled = ctx[3];
3230
+ button.disabled = ctx[4];
3231
+ toggle_class(button, "is-active", ctx[3]);
3223
3232
  attr(span0, "class", span0_class_value = ctx[1] + "-triangle");
3224
3233
  attr(span1, "class", span1_class_value = ctx[1] + "-btn-interactive " + ctx[2]);
3225
3234
  },
@@ -3234,18 +3243,18 @@ function create_if_block_1(ctx) {
3234
3243
  current = true;
3235
3244
  if (!mounted) {
3236
3245
  dispose = [
3237
- listen(button, "click", ctx[10]),
3246
+ listen(button, "click", ctx[11]),
3238
3247
  action_destroyer(tippy_action = tippy.call(null, button, {
3239
- content: ctx[6],
3248
+ content: ctx[7],
3240
3249
  ...tippy_menu,
3241
- placement: ctx[7],
3250
+ placement: ctx[8],
3242
3251
  appendTo: document.body,
3243
3252
  theme: ctx[2],
3244
3253
  className: "fastboard-panel"
3245
3254
  })),
3246
3255
  action_destroyer(tippy_action_1 = tippy.call(null, span1, {
3247
- content: ctx[4],
3248
- placement: ctx[5],
3256
+ content: ctx[5],
3257
+ placement: ctx[6],
3249
3258
  className: ctx[0]
3250
3259
  }))
3251
3260
  ];
@@ -3254,13 +3263,13 @@ function create_if_block_1(ctx) {
3254
3263
  },
3255
3264
  p(ctx2, dirty) {
3256
3265
  if (default_slot) {
3257
- if (default_slot.p && (!current || dirty & 256)) {
3266
+ if (default_slot.p && (!current || dirty & 512)) {
3258
3267
  update_slot_base(
3259
3268
  default_slot,
3260
3269
  default_slot_template,
3261
3270
  ctx2,
3262
- ctx2[8],
3263
- !current ? get_all_dirty_from_scope(ctx2[8]) : get_slot_changes(default_slot_template, ctx2[8], dirty, null),
3271
+ ctx2[9],
3272
+ !current ? get_all_dirty_from_scope(ctx2[9]) : get_slot_changes(default_slot_template, ctx2[9], dirty, null),
3264
3273
  null
3265
3274
  );
3266
3275
  }
@@ -3268,28 +3277,31 @@ function create_if_block_1(ctx) {
3268
3277
  if (!current || dirty & 7 && button_class_value !== (button_class_value = ctx2[1] + "-btn " + ctx2[0] + " " + ctx2[2])) {
3269
3278
  attr(button, "class", button_class_value);
3270
3279
  }
3271
- if (!current || dirty & 8) {
3272
- button.disabled = ctx2[3];
3280
+ if (!current || dirty & 16) {
3281
+ button.disabled = ctx2[4];
3273
3282
  }
3274
- if (tippy_action && is_function(tippy_action.update) && dirty & 196)
3283
+ if (tippy_action && is_function(tippy_action.update) && dirty & 388)
3275
3284
  tippy_action.update.call(null, {
3276
- content: ctx2[6],
3285
+ content: ctx2[7],
3277
3286
  ...tippy_menu,
3278
- placement: ctx2[7],
3287
+ placement: ctx2[8],
3279
3288
  appendTo: document.body,
3280
3289
  theme: ctx2[2],
3281
3290
  className: "fastboard-panel"
3282
3291
  });
3292
+ if (dirty & 15) {
3293
+ toggle_class(button, "is-active", ctx2[3]);
3294
+ }
3283
3295
  if (!current || dirty & 2 && span0_class_value !== (span0_class_value = ctx2[1] + "-triangle")) {
3284
3296
  attr(span0, "class", span0_class_value);
3285
3297
  }
3286
3298
  if (!current || dirty & 6 && span1_class_value !== (span1_class_value = ctx2[1] + "-btn-interactive " + ctx2[2])) {
3287
3299
  attr(span1, "class", span1_class_value);
3288
3300
  }
3289
- if (tippy_action_1 && is_function(tippy_action_1.update) && dirty & 49)
3301
+ if (tippy_action_1 && is_function(tippy_action_1.update) && dirty & 97)
3290
3302
  tippy_action_1.update.call(null, {
3291
- content: ctx2[4],
3292
- placement: ctx2[5],
3303
+ content: ctx2[5],
3304
+ placement: ctx2[6],
3293
3305
  className: ctx2[0]
3294
3306
  });
3295
3307
  },
@@ -3321,7 +3333,7 @@ function create_fragment47(ctx) {
3321
3333
  const if_block_creators = [create_if_block2, create_else_block_1];
3322
3334
  const if_blocks = [];
3323
3335
  function select_block_type(ctx2, dirty) {
3324
- if (ctx2[4])
3336
+ if (ctx2[5])
3325
3337
  return 0;
3326
3338
  return 1;
3327
3339
  }
@@ -3381,6 +3393,7 @@ function instance47($$self, $$props, $$invalidate) {
3381
3393
  let { class: className = "" } = $$props;
3382
3394
  let { name: name10 = "fastboard-ui" } = $$props;
3383
3395
  let { theme = "light" } = $$props;
3396
+ let { active = false } = $$props;
3384
3397
  let { disabled = false } = $$props;
3385
3398
  let { content = "" } = $$props;
3386
3399
  let { placement = "top" } = $$props;
@@ -3402,23 +3415,26 @@ function instance47($$self, $$props, $$invalidate) {
3402
3415
  $$invalidate(1, name10 = $$props2.name);
3403
3416
  if ("theme" in $$props2)
3404
3417
  $$invalidate(2, theme = $$props2.theme);
3418
+ if ("active" in $$props2)
3419
+ $$invalidate(3, active = $$props2.active);
3405
3420
  if ("disabled" in $$props2)
3406
- $$invalidate(3, disabled = $$props2.disabled);
3421
+ $$invalidate(4, disabled = $$props2.disabled);
3407
3422
  if ("content" in $$props2)
3408
- $$invalidate(4, content = $$props2.content);
3423
+ $$invalidate(5, content = $$props2.content);
3409
3424
  if ("placement" in $$props2)
3410
- $$invalidate(5, placement = $$props2.placement);
3425
+ $$invalidate(6, placement = $$props2.placement);
3411
3426
  if ("menu" in $$props2)
3412
- $$invalidate(6, menu = $$props2.menu);
3427
+ $$invalidate(7, menu = $$props2.menu);
3413
3428
  if ("menu_placement" in $$props2)
3414
- $$invalidate(7, menu_placement = $$props2.menu_placement);
3429
+ $$invalidate(8, menu_placement = $$props2.menu_placement);
3415
3430
  if ("$$scope" in $$props2)
3416
- $$invalidate(8, $$scope = $$props2.$$scope);
3431
+ $$invalidate(9, $$scope = $$props2.$$scope);
3417
3432
  };
3418
3433
  return [
3419
3434
  className,
3420
3435
  name10,
3421
3436
  theme,
3437
+ active,
3422
3438
  disabled,
3423
3439
  content,
3424
3440
  placement,
@@ -3438,11 +3454,12 @@ var Button = class extends SvelteComponent {
3438
3454
  class: 0,
3439
3455
  name: 1,
3440
3456
  theme: 2,
3441
- disabled: 3,
3442
- content: 4,
3443
- placement: 5,
3444
- menu: 6,
3445
- menu_placement: 7
3457
+ active: 3,
3458
+ disabled: 4,
3459
+ content: 5,
3460
+ placement: 6,
3461
+ menu: 7,
3462
+ menu_placement: 8
3446
3463
  });
3447
3464
  }
3448
3465
  };
@@ -5088,7 +5105,7 @@ var AppsInToolbar = class {
5088
5105
  this._listeners.forEach((fn) => fn(this._data));
5089
5106
  }
5090
5107
  };
5091
- var apps = new AppsInToolbar([]);
5108
+ var stockedApps = new AppsInToolbar([]);
5092
5109
  function tooltip(text4, hotkey) {
5093
5110
  if (!hotkey || typeof hotkey !== "string")
5094
5111
  return text4;
@@ -7019,6 +7036,9 @@ function create_else_block_4(ctx) {
7019
7036
  let current;
7020
7037
  const button_spread_levels = [
7021
7038
  { class: "eraser" },
7039
+ {
7040
+ active: ctx[8] === ctx[12]
7041
+ },
7022
7042
  ctx[18],
7023
7043
  {
7024
7044
  content: ctx[10][ctx[12]]
@@ -7043,8 +7063,11 @@ function create_else_block_4(ctx) {
7043
7063
  current = true;
7044
7064
  },
7045
7065
  p(ctx2, dirty) {
7046
- const button_changes = dirty[0] & 332800 ? get_spread_update(button_spread_levels, [
7066
+ const button_changes = dirty[0] & 333056 ? get_spread_update(button_spread_levels, [
7047
7067
  button_spread_levels[0],
7068
+ dirty[0] & 4352 && {
7069
+ active: ctx2[8] === ctx2[12]
7070
+ },
7048
7071
  dirty[0] & 262144 && get_spread_object(ctx2[18]),
7049
7072
  dirty[0] & 5120 && {
7050
7073
  content: ctx2[10][ctx2[12]]
@@ -7076,6 +7099,9 @@ function create_if_block_9(ctx) {
7076
7099
  let current;
7077
7100
  const button_spread_levels = [
7078
7101
  { class: "eraser" },
7102
+ {
7103
+ active: ctx[8] === "pencilEraser"
7104
+ },
7079
7105
  ctx[18],
7080
7106
  { content: ctx[21].pencilEraser },
7081
7107
  { menu: ctx[16] }
@@ -7098,8 +7124,11 @@ function create_if_block_9(ctx) {
7098
7124
  current = true;
7099
7125
  },
7100
7126
  p(ctx2, dirty) {
7101
- const button_changes = dirty[0] & 2424832 ? get_spread_update(button_spread_levels, [
7127
+ const button_changes = dirty[0] & 2425088 ? get_spread_update(button_spread_levels, [
7102
7128
  button_spread_levels[0],
7129
+ dirty[0] & 256 && {
7130
+ active: ctx2[8] === "pencilEraser"
7131
+ },
7103
7132
  dirty[0] & 262144 && get_spread_object(ctx2[18]),
7104
7133
  dirty[0] & 2097152 && { content: ctx2[21].pencilEraser },
7105
7134
  dirty[0] & 65536 && { menu: ctx2[16] }
@@ -7127,7 +7156,14 @@ function create_if_block_9(ctx) {
7127
7156
  function create_if_block_7(ctx) {
7128
7157
  let button;
7129
7158
  let current;
7130
- const button_spread_levels = [{ class: "eraser" }, ctx[18], { content: ctx[21].eraser }];
7159
+ const button_spread_levels = [
7160
+ { class: "eraser" },
7161
+ {
7162
+ active: ctx[8] === "eraser"
7163
+ },
7164
+ ctx[18],
7165
+ { content: ctx[21].eraser }
7166
+ ];
7131
7167
  let button_props = {
7132
7168
  $$slots: { default: [create_default_slot_53] },
7133
7169
  $$scope: { ctx }
@@ -7146,8 +7182,11 @@ function create_if_block_7(ctx) {
7146
7182
  current = true;
7147
7183
  },
7148
7184
  p(ctx2, dirty) {
7149
- const button_changes = dirty[0] & 2359296 ? get_spread_update(button_spread_levels, [
7185
+ const button_changes = dirty[0] & 2359552 ? get_spread_update(button_spread_levels, [
7150
7186
  button_spread_levels[0],
7187
+ dirty[0] & 256 && {
7188
+ active: ctx2[8] === "eraser"
7189
+ },
7151
7190
  dirty[0] & 262144 && get_spread_object(ctx2[18]),
7152
7191
  dirty[0] & 2097152 && { content: ctx2[21].eraser }
7153
7192
  ]) : {};
@@ -7890,6 +7929,9 @@ function create_if_block6(ctx) {
7890
7929
  let current;
7891
7930
  const button0_spread_levels = [
7892
7931
  { class: "eraser" },
7932
+ {
7933
+ active: ctx[8] === "pencilEraser"
7934
+ },
7893
7935
  ctx[18],
7894
7936
  { placement: "top" },
7895
7937
  {
@@ -7907,6 +7949,9 @@ function create_if_block6(ctx) {
7907
7949
  button0.$on("click", ctx[34]);
7908
7950
  const button1_spread_levels = [
7909
7951
  { class: "eraser" },
7952
+ {
7953
+ active: ctx[8] === "eraser"
7954
+ },
7910
7955
  ctx[18],
7911
7956
  { placement: "top" },
7912
7957
  { content: ctx[21].eraserForPanel }
@@ -7945,10 +7990,13 @@ function create_if_block6(ctx) {
7945
7990
  current = true;
7946
7991
  },
7947
7992
  p(ctx2, dirty) {
7948
- const button0_changes = dirty[0] & 2359296 ? get_spread_update(button0_spread_levels, [
7993
+ const button0_changes = dirty[0] & 2359552 ? get_spread_update(button0_spread_levels, [
7949
7994
  button0_spread_levels[0],
7995
+ dirty[0] & 256 && {
7996
+ active: ctx2[8] === "pencilEraser"
7997
+ },
7950
7998
  dirty[0] & 262144 && get_spread_object(ctx2[18]),
7951
- button0_spread_levels[2],
7999
+ button0_spread_levels[3],
7952
8000
  dirty[0] & 2097152 && {
7953
8001
  content: ctx2[21].pencilEraserForPanel
7954
8002
  }
@@ -7957,10 +8005,13 @@ function create_if_block6(ctx) {
7957
8005
  button0_changes.$$scope = { dirty, ctx: ctx2 };
7958
8006
  }
7959
8007
  button0.$set(button0_changes);
7960
- const button1_changes = dirty[0] & 2359296 ? get_spread_update(button1_spread_levels, [
8008
+ const button1_changes = dirty[0] & 2359552 ? get_spread_update(button1_spread_levels, [
7961
8009
  button1_spread_levels[0],
8010
+ dirty[0] & 256 && {
8011
+ active: ctx2[8] === "eraser"
8012
+ },
7962
8013
  dirty[0] & 262144 && get_spread_object(ctx2[18]),
7963
- button1_spread_levels[2],
8014
+ button1_spread_levels[3],
7964
8015
  dirty[0] & 2097152 && { content: ctx2[21].eraserForPanel }
7965
8016
  ]) : {};
7966
8017
  if (dirty[0] & 258 | dirty[1] & 33554432) {
@@ -8486,6 +8537,9 @@ function create_fragment57(ctx) {
8486
8537
  let if_block0 = ctx[5] && create_if_block_17(ctx);
8487
8538
  const button0_spread_levels = [
8488
8539
  { class: "clicker" },
8540
+ {
8541
+ active: ctx[8] === "clicker"
8542
+ },
8489
8543
  ctx[18],
8490
8544
  { content: ctx[21].clicker }
8491
8545
  ];
@@ -8500,6 +8554,9 @@ function create_fragment57(ctx) {
8500
8554
  button0.$on("click", ctx[27]);
8501
8555
  const button1_spread_levels = [
8502
8556
  { class: "selector" },
8557
+ {
8558
+ active: ctx[8] === "selector"
8559
+ },
8503
8560
  ctx[18],
8504
8561
  { content: ctx[21].selector }
8505
8562
  ];
@@ -8514,6 +8571,9 @@ function create_fragment57(ctx) {
8514
8571
  button1.$on("click", ctx[28]);
8515
8572
  const button2_spread_levels = [
8516
8573
  { class: "pencil" },
8574
+ {
8575
+ active: ctx[8] === "pencil"
8576
+ },
8517
8577
  ctx[18],
8518
8578
  { content: ctx[21].pencil },
8519
8579
  { menu: ctx[13] }
@@ -8529,6 +8589,7 @@ function create_fragment57(ctx) {
8529
8589
  button2.$on("click", ctx[29]);
8530
8590
  const button3_spread_levels = [
8531
8591
  { class: "text" },
8592
+ { active: ctx[8] === "text" },
8532
8593
  ctx[18],
8533
8594
  { content: ctx[21].text },
8534
8595
  { menu: ctx[14] }
@@ -8544,6 +8605,9 @@ function create_fragment57(ctx) {
8544
8605
  button3.$on("click", ctx[30]);
8545
8606
  const button4_spread_levels = [
8546
8607
  { class: "shapes" },
8608
+ {
8609
+ active: ctx[8] === ctx[11] || ctx[8] === "shape" && ctx[9] === ctx[11]
8610
+ },
8547
8611
  ctx[18],
8548
8612
  { content: ctx[10].shapes },
8549
8613
  { menu: ctx[15] }
@@ -8800,8 +8864,11 @@ function create_fragment57(ctx) {
8800
8864
  });
8801
8865
  check_outros();
8802
8866
  }
8803
- const button0_changes = dirty[0] & 2359296 ? get_spread_update(button0_spread_levels, [
8867
+ const button0_changes = dirty[0] & 2359552 ? get_spread_update(button0_spread_levels, [
8804
8868
  button0_spread_levels[0],
8869
+ dirty[0] & 256 && {
8870
+ active: ctx2[8] === "clicker"
8871
+ },
8805
8872
  dirty[0] & 262144 && get_spread_object(ctx2[18]),
8806
8873
  dirty[0] & 2097152 && { content: ctx2[21].clicker }
8807
8874
  ]) : {};
@@ -8809,8 +8876,11 @@ function create_fragment57(ctx) {
8809
8876
  button0_changes.$$scope = { dirty, ctx: ctx2 };
8810
8877
  }
8811
8878
  button0.$set(button0_changes);
8812
- const button1_changes = dirty[0] & 2359296 ? get_spread_update(button1_spread_levels, [
8879
+ const button1_changes = dirty[0] & 2359552 ? get_spread_update(button1_spread_levels, [
8813
8880
  button1_spread_levels[0],
8881
+ dirty[0] & 256 && {
8882
+ active: ctx2[8] === "selector"
8883
+ },
8814
8884
  dirty[0] & 262144 && get_spread_object(ctx2[18]),
8815
8885
  dirty[0] & 2097152 && { content: ctx2[21].selector }
8816
8886
  ]) : {};
@@ -8818,8 +8888,11 @@ function create_fragment57(ctx) {
8818
8888
  button1_changes.$$scope = { dirty, ctx: ctx2 };
8819
8889
  }
8820
8890
  button1.$set(button1_changes);
8821
- const button2_changes = dirty[0] & 2367488 ? get_spread_update(button2_spread_levels, [
8891
+ const button2_changes = dirty[0] & 2367744 ? get_spread_update(button2_spread_levels, [
8822
8892
  button2_spread_levels[0],
8893
+ dirty[0] & 256 && {
8894
+ active: ctx2[8] === "pencil"
8895
+ },
8823
8896
  dirty[0] & 262144 && get_spread_object(ctx2[18]),
8824
8897
  dirty[0] & 2097152 && { content: ctx2[21].pencil },
8825
8898
  dirty[0] & 8192 && { menu: ctx2[13] }
@@ -8828,8 +8901,9 @@ function create_fragment57(ctx) {
8828
8901
  button2_changes.$$scope = { dirty, ctx: ctx2 };
8829
8902
  }
8830
8903
  button2.$set(button2_changes);
8831
- const button3_changes = dirty[0] & 2375680 ? get_spread_update(button3_spread_levels, [
8904
+ const button3_changes = dirty[0] & 2375936 ? get_spread_update(button3_spread_levels, [
8832
8905
  button3_spread_levels[0],
8906
+ dirty[0] & 256 && { active: ctx2[8] === "text" },
8833
8907
  dirty[0] & 262144 && get_spread_object(ctx2[18]),
8834
8908
  dirty[0] & 2097152 && { content: ctx2[21].text },
8835
8909
  dirty[0] & 16384 && { menu: ctx2[14] }
@@ -8838,8 +8912,11 @@ function create_fragment57(ctx) {
8838
8912
  button3_changes.$$scope = { dirty, ctx: ctx2 };
8839
8913
  }
8840
8914
  button3.$set(button3_changes);
8841
- const button4_changes = dirty[0] & 295936 ? get_spread_update(button4_spread_levels, [
8915
+ const button4_changes = dirty[0] & 298752 ? get_spread_update(button4_spread_levels, [
8842
8916
  button4_spread_levels[0],
8917
+ dirty[0] & 2816 && {
8918
+ active: ctx2[8] === ctx2[11] || ctx2[8] === "shape" && ctx2[9] === ctx2[11]
8919
+ },
8843
8920
  dirty[0] & 262144 && get_spread_object(ctx2[18]),
8844
8921
  dirty[0] & 1024 && { content: ctx2[10].shapes },
8845
8922
  dirty[0] & 32768 && { menu: ctx2[15] }
@@ -9119,9 +9196,9 @@ function instance57($$self, $$props, $$invalidate) {
9119
9196
  let $top;
9120
9197
  let $scroll_height, $$unsubscribe_scroll_height = noop, $$subscribe_scroll_height = () => ($$unsubscribe_scroll_height(), $$unsubscribe_scroll_height = subscribe(scroll_height, ($$value) => $$invalidate(38, $scroll_height = $$value)), scroll_height);
9121
9198
  let $memberState, $$unsubscribe_memberState = noop, $$subscribe_memberState = () => ($$unsubscribe_memberState(), $$unsubscribe_memberState = subscribe(memberState, ($$value) => $$invalidate(39, $memberState = $$value)), memberState);
9122
- let $apps;
9199
+ let $stockedApps;
9123
9200
  let $status, $$unsubscribe_status = noop, $$subscribe_status = () => ($$unsubscribe_status(), $$unsubscribe_status = subscribe(status, ($$value) => $$invalidate(23, $status = $$value)), status);
9124
- component_subscribe($$self, apps, ($$value) => $$invalidate(22, $apps = $$value));
9201
+ component_subscribe($$self, stockedApps, ($$value) => $$invalidate(22, $stockedApps = $$value));
9125
9202
  $$self.$$.on_destroy.push(() => $$unsubscribe_scroll_height());
9126
9203
  $$self.$$.on_destroy.push(() => $$unsubscribe_memberState());
9127
9204
  $$self.$$.on_destroy.push(() => $$unsubscribe_status());
@@ -9310,7 +9387,7 @@ function instance57($$self, $$props, $$invalidate) {
9310
9387
  status,
9311
9388
  memberState,
9312
9389
  c,
9313
- $apps,
9390
+ $stockedApps,
9314
9391
  $status,
9315
9392
  top,
9316
9393
  scroll_up,
@@ -9364,58 +9441,44 @@ var Contents_default = Contents;
9364
9441
 
9365
9442
  // src/components/Toolbar/Toolbar.svelte
9366
9443
  function create_else_block7(ctx) {
9367
- let path0;
9368
- let path1;
9444
+ let path;
9369
9445
  return {
9370
9446
  c() {
9371
- path0 = svg_element("path");
9372
- path1 = svg_element("path");
9373
- attr(path0, "stroke", "#000");
9374
- attr(path0, "d", "M20 52v16");
9375
- attr(path0, "class", name6 + "-handler-image-stroke-color");
9376
- attr(path1, "fill", "#000");
9377
- attr(path1, "stroke", "none");
9378
- attr(path1, "d", "M16 52v16l-8-8z");
9379
- attr(path1, "class", name6 + "-handler-image-fill-color");
9447
+ path = svg_element("path");
9448
+ attr(path, "fill-rule", "evenodd");
9449
+ attr(path, "clip-rule", "evenodd");
9450
+ attr(path, "d", "M6 19L8 17V25L6 23L4 21L6 19ZM10 17H9V25H10V17Z");
9451
+ attr(path, "fill", "#fff");
9452
+ attr(path, "class", name6 + "-handler-image-fill-color");
9380
9453
  },
9381
9454
  m(target, anchor) {
9382
- insert(target, path0, anchor);
9383
- insert(target, path1, anchor);
9455
+ insert(target, path, anchor);
9384
9456
  },
9385
9457
  p: noop,
9386
9458
  d(detaching) {
9387
9459
  if (detaching)
9388
- detach(path0);
9389
- if (detaching)
9390
- detach(path1);
9460
+ detach(path);
9391
9461
  }
9392
9462
  };
9393
9463
  }
9394
9464
  function create_if_block7(ctx) {
9395
- let path0;
9396
- let path1;
9465
+ let path;
9397
9466
  return {
9398
9467
  c() {
9399
- path0 = svg_element("path");
9400
- path1 = svg_element("path");
9401
- attr(path0, "stroke", "#000");
9402
- attr(path0, "d", "M10 52v16");
9403
- attr(path0, "class", name6 + "-handler-image-stroke-color");
9404
- attr(path1, "fill", "#000");
9405
- attr(path1, "stroke", "none");
9406
- attr(path1, "d", "M14 52v16l8-8z");
9407
- attr(path1, "class", name6 + "-handler-image-fill-color");
9468
+ path = svg_element("path");
9469
+ attr(path, "fill-rule", "evenodd");
9470
+ attr(path, "clip-rule", "evenodd");
9471
+ attr(path, "d", "M8 19L6 17V25L8 23L10 21L8 19ZM4 17H5V25H4V17Z");
9472
+ attr(path, "fill", "#fff");
9473
+ attr(path, "class", name6 + "-handler-image-fill-color");
9408
9474
  },
9409
9475
  m(target, anchor) {
9410
- insert(target, path0, anchor);
9411
- insert(target, path1, anchor);
9476
+ insert(target, path, anchor);
9412
9477
  },
9413
9478
  p: noop,
9414
9479
  d(detaching) {
9415
9480
  if (detaching)
9416
- detach(path0);
9417
- if (detaching)
9418
- detach(path1);
9481
+ detach(path);
9419
9482
  }
9420
9483
  };
9421
9484
  }
@@ -9429,8 +9492,7 @@ function create_fragment58(ctx) {
9429
9492
  let input;
9430
9493
  let t1;
9431
9494
  let svg;
9432
- let path0;
9433
- let path1;
9495
+ let path;
9434
9496
  let label_class_value;
9435
9497
  let div1_class_value;
9436
9498
  let current;
@@ -9466,8 +9528,7 @@ function create_fragment58(ctx) {
9466
9528
  input = element("input");
9467
9529
  t1 = space();
9468
9530
  svg = svg_element("svg");
9469
- path0 = svg_element("path");
9470
- path1 = svg_element("path");
9531
+ path = svg_element("path");
9471
9532
  if_block.c();
9472
9533
  attr(div0, "class", div0_class_value = name6 + "-contents " + ctx[1]);
9473
9534
  set_style(
@@ -9477,16 +9538,14 @@ function create_fragment58(ctx) {
9477
9538
  false
9478
9539
  );
9479
9540
  attr(input, "type", "checkbox");
9480
- attr(path0, "fill", "#fff");
9481
- attr(path0, "stroke", "none");
9482
- attr(path0, "d", "m0 0 24 16q6 4 6 14v60q0 10-6 14L0 120");
9483
- attr(path0, "class", name6 + "-handler-bg-color");
9484
- attr(path1, "stroke", "#000");
9485
- attr(path1, "d", "m0 0 24 16q6 4 6 14v60q0 10-6 14L0 120");
9486
- attr(path1, "class", name6 + "-handler-border-color");
9541
+ attr(path, "d", "M0 41H12C14.2091 41 16 39.2091 16 37V5C16 2.79086 14.2091 1 12 1H0");
9542
+ attr(path, "stroke", "#000");
9543
+ attr(path, "fill", "#fff");
9544
+ attr(path, "class", name6 + "-handler-border-color " + name6 + "-handler-bg-color");
9545
+ attr(svg, "width", "17");
9546
+ attr(svg, "height", "42");
9547
+ attr(svg, "viewBox", "0 0 17 42");
9487
9548
  attr(svg, "fill", "none");
9488
- attr(svg, "stroke-width", "2");
9489
- attr(svg, "viewBox", "0 0 32 120");
9490
9549
  attr(label, "class", label_class_value = name6 + "-handler " + ctx[1]);
9491
9550
  attr(div1, "class", div1_class_value = name6 + " " + ctx[1]);
9492
9551
  toggle_class(div1, "collapsed", ctx[3]);
@@ -9501,8 +9560,7 @@ function create_fragment58(ctx) {
9501
9560
  input.checked = ctx[3];
9502
9561
  append(label, t1);
9503
9562
  append(label, svg);
9504
- append(svg, path0);
9505
- append(svg, path1);
9563
+ append(svg, path);
9506
9564
  if_block.m(svg, null);
9507
9565
  current = true;
9508
9566
  if (!mounted) {
@@ -11348,5 +11406,5 @@ function createReplayUI(player, div) {
11348
11406
  return ui;
11349
11407
  }
11350
11408
 
11351
- export { Fastboard_default as Fastboard, PageControl_default as PageControl, PlayerControl_default as PlayerControl, RedoUndo_default as RedoUndo, ReplayFastboard_default as ReplayFastboard, Toolbar_default as Toolbar, ZoomControl_default as ZoomControl, apps, createReplayUI, createUI };
11409
+ export { Fastboard_default as Fastboard, PageControl_default as PageControl, PlayerControl_default as PlayerControl, RedoUndo_default as RedoUndo, ReplayFastboard_default as ReplayFastboard, Toolbar_default as Toolbar, ZoomControl_default as ZoomControl, createReplayUI, createUI, stockedApps };
11352
11410
  //# sourceMappingURL=index.svelte.mjs.map