microboard-temp 0.14.46 → 0.14.47

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.
@@ -35438,6 +35438,7 @@ function underline(ctx, textBlock) {
35438
35438
  const width = measure.width - (textBlock.marginLeft || 0);
35439
35439
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
35440
35440
  ctx.lineWidth = textBlock.fontSize / 14;
35441
+ ctx.setLineDash([]);
35441
35442
  ctx.beginPath();
35442
35443
  ctx.moveTo(x, y + 2 * textBlock.fontSize / 14);
35443
35444
  ctx.lineTo(x + width, y + 2 * textBlock.fontSize / 14);
@@ -35457,6 +35458,7 @@ function cross(ctx, textBlock) {
35457
35458
  const height = measure.height;
35458
35459
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
35459
35460
  ctx.lineWidth = textBlock.fontSize / 14;
35461
+ ctx.setLineDash([]);
35460
35462
  ctx.beginPath();
35461
35463
  ctx.moveTo(x, y - height / 4);
35462
35464
  ctx.lineTo(x + width, y - height / 4);
@@ -50146,15 +50148,7 @@ var CONNECTOR_POINTER_TYPES = [
50146
50148
  ];
50147
50149
 
50148
50150
  // src/Items/Connector/ConnectorOverlay.ts
50149
- var COLOR_PALETTE = [
50150
- "#111111",
50151
- "#FFFFFF",
50152
- "#FF6B6B",
50153
- "#FFD166",
50154
- "#06D6A0",
50155
- "#118AB2",
50156
- "#7B61FF"
50157
- ];
50151
+ var COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
50158
50152
  var connectorAssetIcon = (file2) => overlayAssetIcon(`src/Items/Connector/icons/${file2}.icon.svg`);
50159
50153
  var lineStyleAssetIcons = {
50160
50154
  straight: connectorAssetIcon("LineStraight"),
@@ -64510,16 +64504,7 @@ function transformShape({
64510
64504
  }
64511
64505
 
64512
64506
  // src/Items/Shape/ShapeOverlay.ts
64513
- var COLOR_PALETTE2 = [
64514
- "#111111",
64515
- "#FFFFFF",
64516
- "#FF6B6B",
64517
- "#FFD166",
64518
- "#06D6A0",
64519
- "#118AB2",
64520
- "#7B61FF",
64521
- "transparent"
64522
- ];
64507
+ var COLOR_PALETTE2 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
64523
64508
  var inlineShapeAsset = (folder, file2 = folder) => overlayAssetIcon(`src/Items/Shape/Basic/${folder}/${file2}.icon.svg`);
64524
64509
  var localShapeIcon = (file2) => overlayAssetIcon(`src/Items/Shape/icons/${file2}.icon.svg`);
64525
64510
  var shapeSymbolIcon = (key) => symbolIcon(key);
@@ -70218,14 +70203,7 @@ class AddDice extends ShapeTool {
70218
70203
  }
70219
70204
 
70220
70205
  // src/Items/Dice/DiceOverlay.ts
70221
- var COLOR_PALETTE3 = [
70222
- "#FFFFFF",
70223
- "#111111",
70224
- "#FF4444",
70225
- "#44BB44",
70226
- "#4466FF",
70227
- "#FFDD00"
70228
- ];
70206
+ var COLOR_PALETTE3 = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
70229
70207
  var diceOverlay = {
70230
70208
  itemType: "Dice",
70231
70209
  actions: [
@@ -70638,12 +70616,7 @@ class AddPouch extends ShapeTool {
70638
70616
  }
70639
70617
 
70640
70618
  // src/Items/Screen/ScreenOverlay.ts
70641
- var SCREEN_PALETTE = [
70642
- "#FFFFFF",
70643
- "#F0F0F0",
70644
- "#222222",
70645
- "transparent"
70646
- ];
70619
+ var SCREEN_PALETTE = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
70647
70620
  var screenOverlay = {
70648
70621
  itemType: "Screen",
70649
70622
  actions: [
@@ -70684,7 +70657,7 @@ var screenOverlay = {
70684
70657
  valueSource: { kind: "itemProperty", property: "borderColor" },
70685
70658
  editor: {
70686
70659
  kind: "color",
70687
- palette: ["#000000", "#FFFFFF", "#888888", "transparent"],
70660
+ palette: SCREEN_PALETTE,
70688
70661
  allowTransparent: true,
70689
70662
  presentation: "square"
70690
70663
  },
@@ -73939,6 +73912,8 @@ class Presence {
73939
73912
  }
73940
73913
 
73941
73914
  // src/Selection/SelectionOverlay.ts
73915
+ var SEMANTIC_COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
73916
+ var SEMANTIC_HIGHLIGHT_PALETTE = ["transparent", ...SEMANTIC_COLOR_PALETTE];
73942
73917
  function everyItemHasRichText(items) {
73943
73918
  return items.length > 0 && items.every((item) => !!item.getRichText?.());
73944
73919
  }
@@ -74068,7 +74043,7 @@ registerSelectionAction({
74068
74043
  valueSource: { kind: "selectionProperty", property: "getFontColor" },
74069
74044
  editor: {
74070
74045
  kind: "color",
74071
- palette: ["#111111", "#FFFFFF", "#E11D48", "#2563EB", "#16A34A", "#F59E0B"]
74046
+ palette: SEMANTIC_COLOR_PALETTE
74072
74047
  },
74073
74048
  invoke: { kind: "selectionMethod", methodName: "setFontColor" }
74074
74049
  }
@@ -74091,7 +74066,7 @@ registerSelectionAction({
74091
74066
  valueSource: { kind: "selectionProperty", property: "getFontHighlight" },
74092
74067
  editor: {
74093
74068
  kind: "color",
74094
- palette: ["transparent", "#FEF08A", "#FDBA74", "#BFDBFE", "#FBCFE8", "#D9F99D"]
74069
+ palette: SEMANTIC_HIGHLIGHT_PALETTE
74095
74070
  },
74096
74071
  invoke: { kind: "selectionMethod", methodName: "setFontHighlight" }
74097
74072
  }
@@ -78893,15 +78868,7 @@ class AddConnector extends BoardTool {
78893
78868
  registerTool({ name: "AddConnector", tool: AddConnector, overlay: addConnectorToolOverlay });
78894
78869
 
78895
78870
  // src/Items/Drawing/DrawingOverlay.ts
78896
- var COLOR_PALETTE4 = [
78897
- "#111111",
78898
- "#FF6B6B",
78899
- "#FFD166",
78900
- "#06D6A0",
78901
- "#118AB2",
78902
- "#7B61FF",
78903
- "transparent"
78904
- ];
78871
+ var COLOR_PALETTE4 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
78905
78872
  var strokeControls2 = [
78906
78873
  {
78907
78874
  id: "strokeColor",
package/dist/cjs/index.js CHANGED
@@ -35438,6 +35438,7 @@ function underline(ctx, textBlock) {
35438
35438
  const width = measure.width - (textBlock.marginLeft || 0);
35439
35439
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
35440
35440
  ctx.lineWidth = textBlock.fontSize / 14;
35441
+ ctx.setLineDash([]);
35441
35442
  ctx.beginPath();
35442
35443
  ctx.moveTo(x, y + 2 * textBlock.fontSize / 14);
35443
35444
  ctx.lineTo(x + width, y + 2 * textBlock.fontSize / 14);
@@ -35457,6 +35458,7 @@ function cross(ctx, textBlock) {
35457
35458
  const height = measure.height;
35458
35459
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
35459
35460
  ctx.lineWidth = textBlock.fontSize / 14;
35461
+ ctx.setLineDash([]);
35460
35462
  ctx.beginPath();
35461
35463
  ctx.moveTo(x, y - height / 4);
35462
35464
  ctx.lineTo(x + width, y - height / 4);
@@ -50146,15 +50148,7 @@ var CONNECTOR_POINTER_TYPES = [
50146
50148
  ];
50147
50149
 
50148
50150
  // src/Items/Connector/ConnectorOverlay.ts
50149
- var COLOR_PALETTE = [
50150
- "#111111",
50151
- "#FFFFFF",
50152
- "#FF6B6B",
50153
- "#FFD166",
50154
- "#06D6A0",
50155
- "#118AB2",
50156
- "#7B61FF"
50157
- ];
50151
+ var COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
50158
50152
  var connectorAssetIcon = (file2) => overlayAssetIcon(`src/Items/Connector/icons/${file2}.icon.svg`);
50159
50153
  var lineStyleAssetIcons = {
50160
50154
  straight: connectorAssetIcon("LineStraight"),
@@ -64510,16 +64504,7 @@ function transformShape({
64510
64504
  }
64511
64505
 
64512
64506
  // src/Items/Shape/ShapeOverlay.ts
64513
- var COLOR_PALETTE2 = [
64514
- "#111111",
64515
- "#FFFFFF",
64516
- "#FF6B6B",
64517
- "#FFD166",
64518
- "#06D6A0",
64519
- "#118AB2",
64520
- "#7B61FF",
64521
- "transparent"
64522
- ];
64507
+ var COLOR_PALETTE2 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
64523
64508
  var inlineShapeAsset = (folder, file2 = folder) => overlayAssetIcon(`src/Items/Shape/Basic/${folder}/${file2}.icon.svg`);
64524
64509
  var localShapeIcon = (file2) => overlayAssetIcon(`src/Items/Shape/icons/${file2}.icon.svg`);
64525
64510
  var shapeSymbolIcon = (key) => symbolIcon(key);
@@ -70218,14 +70203,7 @@ class AddDice extends ShapeTool {
70218
70203
  }
70219
70204
 
70220
70205
  // src/Items/Dice/DiceOverlay.ts
70221
- var COLOR_PALETTE3 = [
70222
- "#FFFFFF",
70223
- "#111111",
70224
- "#FF4444",
70225
- "#44BB44",
70226
- "#4466FF",
70227
- "#FFDD00"
70228
- ];
70206
+ var COLOR_PALETTE3 = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
70229
70207
  var diceOverlay = {
70230
70208
  itemType: "Dice",
70231
70209
  actions: [
@@ -70638,12 +70616,7 @@ class AddPouch extends ShapeTool {
70638
70616
  }
70639
70617
 
70640
70618
  // src/Items/Screen/ScreenOverlay.ts
70641
- var SCREEN_PALETTE = [
70642
- "#FFFFFF",
70643
- "#F0F0F0",
70644
- "#222222",
70645
- "transparent"
70646
- ];
70619
+ var SCREEN_PALETTE = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
70647
70620
  var screenOverlay = {
70648
70621
  itemType: "Screen",
70649
70622
  actions: [
@@ -70684,7 +70657,7 @@ var screenOverlay = {
70684
70657
  valueSource: { kind: "itemProperty", property: "borderColor" },
70685
70658
  editor: {
70686
70659
  kind: "color",
70687
- palette: ["#000000", "#FFFFFF", "#888888", "transparent"],
70660
+ palette: SCREEN_PALETTE,
70688
70661
  allowTransparent: true,
70689
70662
  presentation: "square"
70690
70663
  },
@@ -73939,6 +73912,8 @@ class Presence {
73939
73912
  }
73940
73913
 
73941
73914
  // src/Selection/SelectionOverlay.ts
73915
+ var SEMANTIC_COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
73916
+ var SEMANTIC_HIGHLIGHT_PALETTE = ["transparent", ...SEMANTIC_COLOR_PALETTE];
73942
73917
  function everyItemHasRichText(items) {
73943
73918
  return items.length > 0 && items.every((item) => !!item.getRichText?.());
73944
73919
  }
@@ -74068,7 +74043,7 @@ registerSelectionAction({
74068
74043
  valueSource: { kind: "selectionProperty", property: "getFontColor" },
74069
74044
  editor: {
74070
74045
  kind: "color",
74071
- palette: ["#111111", "#FFFFFF", "#E11D48", "#2563EB", "#16A34A", "#F59E0B"]
74046
+ palette: SEMANTIC_COLOR_PALETTE
74072
74047
  },
74073
74048
  invoke: { kind: "selectionMethod", methodName: "setFontColor" }
74074
74049
  }
@@ -74091,7 +74066,7 @@ registerSelectionAction({
74091
74066
  valueSource: { kind: "selectionProperty", property: "getFontHighlight" },
74092
74067
  editor: {
74093
74068
  kind: "color",
74094
- palette: ["transparent", "#FEF08A", "#FDBA74", "#BFDBFE", "#FBCFE8", "#D9F99D"]
74069
+ palette: SEMANTIC_HIGHLIGHT_PALETTE
74095
74070
  },
74096
74071
  invoke: { kind: "selectionMethod", methodName: "setFontHighlight" }
74097
74072
  }
@@ -78893,15 +78868,7 @@ class AddConnector extends BoardTool {
78893
78868
  registerTool({ name: "AddConnector", tool: AddConnector, overlay: addConnectorToolOverlay });
78894
78869
 
78895
78870
  // src/Items/Drawing/DrawingOverlay.ts
78896
- var COLOR_PALETTE4 = [
78897
- "#111111",
78898
- "#FF6B6B",
78899
- "#FFD166",
78900
- "#06D6A0",
78901
- "#118AB2",
78902
- "#7B61FF",
78903
- "transparent"
78904
- ];
78871
+ var COLOR_PALETTE4 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
78905
78872
  var strokeControls2 = [
78906
78873
  {
78907
78874
  id: "strokeColor",
package/dist/cjs/node.js CHANGED
@@ -36474,6 +36474,7 @@ function underline(ctx, textBlock) {
36474
36474
  const width = measure.width - (textBlock.marginLeft || 0);
36475
36475
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
36476
36476
  ctx.lineWidth = textBlock.fontSize / 14;
36477
+ ctx.setLineDash([]);
36477
36478
  ctx.beginPath();
36478
36479
  ctx.moveTo(x, y + 2 * textBlock.fontSize / 14);
36479
36480
  ctx.lineTo(x + width, y + 2 * textBlock.fontSize / 14);
@@ -36493,6 +36494,7 @@ function cross(ctx, textBlock) {
36493
36494
  const height = measure.height;
36494
36495
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
36495
36496
  ctx.lineWidth = textBlock.fontSize / 14;
36497
+ ctx.setLineDash([]);
36496
36498
  ctx.beginPath();
36497
36499
  ctx.moveTo(x, y - height / 4);
36498
36500
  ctx.lineTo(x + width, y - height / 4);
@@ -52618,15 +52620,7 @@ var CONNECTOR_POINTER_TYPES = [
52618
52620
  ];
52619
52621
 
52620
52622
  // src/Items/Connector/ConnectorOverlay.ts
52621
- var COLOR_PALETTE = [
52622
- "#111111",
52623
- "#FFFFFF",
52624
- "#FF6B6B",
52625
- "#FFD166",
52626
- "#06D6A0",
52627
- "#118AB2",
52628
- "#7B61FF"
52629
- ];
52623
+ var COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
52630
52624
  var connectorAssetIcon = (file2) => overlayAssetIcon(`src/Items/Connector/icons/${file2}.icon.svg`);
52631
52625
  var lineStyleAssetIcons = {
52632
52626
  straight: connectorAssetIcon("LineStraight"),
@@ -66983,16 +66977,7 @@ function transformShape({
66983
66977
  }
66984
66978
 
66985
66979
  // src/Items/Shape/ShapeOverlay.ts
66986
- var COLOR_PALETTE2 = [
66987
- "#111111",
66988
- "#FFFFFF",
66989
- "#FF6B6B",
66990
- "#FFD166",
66991
- "#06D6A0",
66992
- "#118AB2",
66993
- "#7B61FF",
66994
- "transparent"
66995
- ];
66980
+ var COLOR_PALETTE2 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
66996
66981
  var inlineShapeAsset = (folder, file2 = folder) => overlayAssetIcon(`src/Items/Shape/Basic/${folder}/${file2}.icon.svg`);
66997
66982
  var localShapeIcon = (file2) => overlayAssetIcon(`src/Items/Shape/icons/${file2}.icon.svg`);
66998
66983
  var shapeSymbolIcon = (key) => symbolIcon(key);
@@ -72691,14 +72676,7 @@ class AddDice extends ShapeTool {
72691
72676
  }
72692
72677
 
72693
72678
  // src/Items/Dice/DiceOverlay.ts
72694
- var COLOR_PALETTE3 = [
72695
- "#FFFFFF",
72696
- "#111111",
72697
- "#FF4444",
72698
- "#44BB44",
72699
- "#4466FF",
72700
- "#FFDD00"
72701
- ];
72679
+ var COLOR_PALETTE3 = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
72702
72680
  var diceOverlay = {
72703
72681
  itemType: "Dice",
72704
72682
  actions: [
@@ -73111,12 +73089,7 @@ class AddPouch extends ShapeTool {
73111
73089
  }
73112
73090
 
73113
73091
  // src/Items/Screen/ScreenOverlay.ts
73114
- var SCREEN_PALETTE = [
73115
- "#FFFFFF",
73116
- "#F0F0F0",
73117
- "#222222",
73118
- "transparent"
73119
- ];
73092
+ var SCREEN_PALETTE = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
73120
73093
  var screenOverlay = {
73121
73094
  itemType: "Screen",
73122
73095
  actions: [
@@ -73157,7 +73130,7 @@ var screenOverlay = {
73157
73130
  valueSource: { kind: "itemProperty", property: "borderColor" },
73158
73131
  editor: {
73159
73132
  kind: "color",
73160
- palette: ["#000000", "#FFFFFF", "#888888", "transparent"],
73133
+ palette: SCREEN_PALETTE,
73161
73134
  allowTransparent: true,
73162
73135
  presentation: "square"
73163
73136
  },
@@ -76412,6 +76385,8 @@ class Presence {
76412
76385
  }
76413
76386
 
76414
76387
  // src/Selection/SelectionOverlay.ts
76388
+ var SEMANTIC_COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
76389
+ var SEMANTIC_HIGHLIGHT_PALETTE = ["transparent", ...SEMANTIC_COLOR_PALETTE];
76415
76390
  function everyItemHasRichText(items) {
76416
76391
  return items.length > 0 && items.every((item) => !!item.getRichText?.());
76417
76392
  }
@@ -76541,7 +76516,7 @@ registerSelectionAction({
76541
76516
  valueSource: { kind: "selectionProperty", property: "getFontColor" },
76542
76517
  editor: {
76543
76518
  kind: "color",
76544
- palette: ["#111111", "#FFFFFF", "#E11D48", "#2563EB", "#16A34A", "#F59E0B"]
76519
+ palette: SEMANTIC_COLOR_PALETTE
76545
76520
  },
76546
76521
  invoke: { kind: "selectionMethod", methodName: "setFontColor" }
76547
76522
  }
@@ -76564,7 +76539,7 @@ registerSelectionAction({
76564
76539
  valueSource: { kind: "selectionProperty", property: "getFontHighlight" },
76565
76540
  editor: {
76566
76541
  kind: "color",
76567
- palette: ["transparent", "#FEF08A", "#FDBA74", "#BFDBFE", "#FBCFE8", "#D9F99D"]
76542
+ palette: SEMANTIC_HIGHLIGHT_PALETTE
76568
76543
  },
76569
76544
  invoke: { kind: "selectionMethod", methodName: "setFontHighlight" }
76570
76545
  }
@@ -81366,15 +81341,7 @@ class AddConnector extends BoardTool {
81366
81341
  registerTool({ name: "AddConnector", tool: AddConnector, overlay: addConnectorToolOverlay });
81367
81342
 
81368
81343
  // src/Items/Drawing/DrawingOverlay.ts
81369
- var COLOR_PALETTE4 = [
81370
- "#111111",
81371
- "#FF6B6B",
81372
- "#FFD166",
81373
- "#06D6A0",
81374
- "#118AB2",
81375
- "#7B61FF",
81376
- "transparent"
81377
- ];
81344
+ var COLOR_PALETTE4 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
81378
81345
  var strokeControls2 = [
81379
81346
  {
81380
81347
  id: "strokeColor",
@@ -35207,6 +35207,7 @@ function underline(ctx, textBlock) {
35207
35207
  const width = measure.width - (textBlock.marginLeft || 0);
35208
35208
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
35209
35209
  ctx.lineWidth = textBlock.fontSize / 14;
35210
+ ctx.setLineDash([]);
35210
35211
  ctx.beginPath();
35211
35212
  ctx.moveTo(x, y + 2 * textBlock.fontSize / 14);
35212
35213
  ctx.lineTo(x + width, y + 2 * textBlock.fontSize / 14);
@@ -35226,6 +35227,7 @@ function cross(ctx, textBlock) {
35226
35227
  const height = measure.height;
35227
35228
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
35228
35229
  ctx.lineWidth = textBlock.fontSize / 14;
35230
+ ctx.setLineDash([]);
35229
35231
  ctx.beginPath();
35230
35232
  ctx.moveTo(x, y - height / 4);
35231
35233
  ctx.lineTo(x + width, y - height / 4);
@@ -49919,15 +49921,7 @@ var CONNECTOR_POINTER_TYPES = [
49919
49921
  ];
49920
49922
 
49921
49923
  // src/Items/Connector/ConnectorOverlay.ts
49922
- var COLOR_PALETTE = [
49923
- "#111111",
49924
- "#FFFFFF",
49925
- "#FF6B6B",
49926
- "#FFD166",
49927
- "#06D6A0",
49928
- "#118AB2",
49929
- "#7B61FF"
49930
- ];
49924
+ var COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
49931
49925
  var connectorAssetIcon = (file2) => overlayAssetIcon(`src/Items/Connector/icons/${file2}.icon.svg`);
49932
49926
  var lineStyleAssetIcons = {
49933
49927
  straight: connectorAssetIcon("LineStraight"),
@@ -64283,16 +64277,7 @@ function transformShape({
64283
64277
  }
64284
64278
 
64285
64279
  // src/Items/Shape/ShapeOverlay.ts
64286
- var COLOR_PALETTE2 = [
64287
- "#111111",
64288
- "#FFFFFF",
64289
- "#FF6B6B",
64290
- "#FFD166",
64291
- "#06D6A0",
64292
- "#118AB2",
64293
- "#7B61FF",
64294
- "transparent"
64295
- ];
64280
+ var COLOR_PALETTE2 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
64296
64281
  var inlineShapeAsset = (folder, file2 = folder) => overlayAssetIcon(`src/Items/Shape/Basic/${folder}/${file2}.icon.svg`);
64297
64282
  var localShapeIcon = (file2) => overlayAssetIcon(`src/Items/Shape/icons/${file2}.icon.svg`);
64298
64283
  var shapeSymbolIcon = (key) => symbolIcon(key);
@@ -69991,14 +69976,7 @@ class AddDice extends ShapeTool {
69991
69976
  }
69992
69977
 
69993
69978
  // src/Items/Dice/DiceOverlay.ts
69994
- var COLOR_PALETTE3 = [
69995
- "#FFFFFF",
69996
- "#111111",
69997
- "#FF4444",
69998
- "#44BB44",
69999
- "#4466FF",
70000
- "#FFDD00"
70001
- ];
69979
+ var COLOR_PALETTE3 = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
70002
69980
  var diceOverlay = {
70003
69981
  itemType: "Dice",
70004
69982
  actions: [
@@ -70411,12 +70389,7 @@ class AddPouch extends ShapeTool {
70411
70389
  }
70412
70390
 
70413
70391
  // src/Items/Screen/ScreenOverlay.ts
70414
- var SCREEN_PALETTE = [
70415
- "#FFFFFF",
70416
- "#F0F0F0",
70417
- "#222222",
70418
- "transparent"
70419
- ];
70392
+ var SCREEN_PALETTE = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
70420
70393
  var screenOverlay = {
70421
70394
  itemType: "Screen",
70422
70395
  actions: [
@@ -70457,7 +70430,7 @@ var screenOverlay = {
70457
70430
  valueSource: { kind: "itemProperty", property: "borderColor" },
70458
70431
  editor: {
70459
70432
  kind: "color",
70460
- palette: ["#000000", "#FFFFFF", "#888888", "transparent"],
70433
+ palette: SCREEN_PALETTE,
70461
70434
  allowTransparent: true,
70462
70435
  presentation: "square"
70463
70436
  },
@@ -73712,6 +73685,8 @@ class Presence {
73712
73685
  }
73713
73686
 
73714
73687
  // src/Selection/SelectionOverlay.ts
73688
+ var SEMANTIC_COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
73689
+ var SEMANTIC_HIGHLIGHT_PALETTE = ["transparent", ...SEMANTIC_COLOR_PALETTE];
73715
73690
  function everyItemHasRichText(items) {
73716
73691
  return items.length > 0 && items.every((item) => !!item.getRichText?.());
73717
73692
  }
@@ -73841,7 +73816,7 @@ registerSelectionAction({
73841
73816
  valueSource: { kind: "selectionProperty", property: "getFontColor" },
73842
73817
  editor: {
73843
73818
  kind: "color",
73844
- palette: ["#111111", "#FFFFFF", "#E11D48", "#2563EB", "#16A34A", "#F59E0B"]
73819
+ palette: SEMANTIC_COLOR_PALETTE
73845
73820
  },
73846
73821
  invoke: { kind: "selectionMethod", methodName: "setFontColor" }
73847
73822
  }
@@ -73864,7 +73839,7 @@ registerSelectionAction({
73864
73839
  valueSource: { kind: "selectionProperty", property: "getFontHighlight" },
73865
73840
  editor: {
73866
73841
  kind: "color",
73867
- palette: ["transparent", "#FEF08A", "#FDBA74", "#BFDBFE", "#FBCFE8", "#D9F99D"]
73842
+ palette: SEMANTIC_HIGHLIGHT_PALETTE
73868
73843
  },
73869
73844
  invoke: { kind: "selectionMethod", methodName: "setFontHighlight" }
73870
73845
  }
@@ -78666,15 +78641,7 @@ class AddConnector extends BoardTool {
78666
78641
  registerTool({ name: "AddConnector", tool: AddConnector, overlay: addConnectorToolOverlay });
78667
78642
 
78668
78643
  // src/Items/Drawing/DrawingOverlay.ts
78669
- var COLOR_PALETTE4 = [
78670
- "#111111",
78671
- "#FF6B6B",
78672
- "#FFD166",
78673
- "#06D6A0",
78674
- "#118AB2",
78675
- "#7B61FF",
78676
- "transparent"
78677
- ];
78644
+ var COLOR_PALETTE4 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
78678
78645
  var strokeControls2 = [
78679
78646
  {
78680
78647
  id: "strokeColor",
package/dist/esm/index.js CHANGED
@@ -35200,6 +35200,7 @@ function underline(ctx, textBlock) {
35200
35200
  const width = measure.width - (textBlock.marginLeft || 0);
35201
35201
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
35202
35202
  ctx.lineWidth = textBlock.fontSize / 14;
35203
+ ctx.setLineDash([]);
35203
35204
  ctx.beginPath();
35204
35205
  ctx.moveTo(x, y + 2 * textBlock.fontSize / 14);
35205
35206
  ctx.lineTo(x + width, y + 2 * textBlock.fontSize / 14);
@@ -35219,6 +35220,7 @@ function cross(ctx, textBlock) {
35219
35220
  const height = measure.height;
35220
35221
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
35221
35222
  ctx.lineWidth = textBlock.fontSize / 14;
35223
+ ctx.setLineDash([]);
35222
35224
  ctx.beginPath();
35223
35225
  ctx.moveTo(x, y - height / 4);
35224
35226
  ctx.lineTo(x + width, y - height / 4);
@@ -49912,15 +49914,7 @@ var CONNECTOR_POINTER_TYPES = [
49912
49914
  ];
49913
49915
 
49914
49916
  // src/Items/Connector/ConnectorOverlay.ts
49915
- var COLOR_PALETTE = [
49916
- "#111111",
49917
- "#FFFFFF",
49918
- "#FF6B6B",
49919
- "#FFD166",
49920
- "#06D6A0",
49921
- "#118AB2",
49922
- "#7B61FF"
49923
- ];
49917
+ var COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
49924
49918
  var connectorAssetIcon = (file2) => overlayAssetIcon(`src/Items/Connector/icons/${file2}.icon.svg`);
49925
49919
  var lineStyleAssetIcons = {
49926
49920
  straight: connectorAssetIcon("LineStraight"),
@@ -64276,16 +64270,7 @@ function transformShape({
64276
64270
  }
64277
64271
 
64278
64272
  // src/Items/Shape/ShapeOverlay.ts
64279
- var COLOR_PALETTE2 = [
64280
- "#111111",
64281
- "#FFFFFF",
64282
- "#FF6B6B",
64283
- "#FFD166",
64284
- "#06D6A0",
64285
- "#118AB2",
64286
- "#7B61FF",
64287
- "transparent"
64288
- ];
64273
+ var COLOR_PALETTE2 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
64289
64274
  var inlineShapeAsset = (folder, file2 = folder) => overlayAssetIcon(`src/Items/Shape/Basic/${folder}/${file2}.icon.svg`);
64290
64275
  var localShapeIcon = (file2) => overlayAssetIcon(`src/Items/Shape/icons/${file2}.icon.svg`);
64291
64276
  var shapeSymbolIcon = (key) => symbolIcon(key);
@@ -69984,14 +69969,7 @@ class AddDice extends ShapeTool {
69984
69969
  }
69985
69970
 
69986
69971
  // src/Items/Dice/DiceOverlay.ts
69987
- var COLOR_PALETTE3 = [
69988
- "#FFFFFF",
69989
- "#111111",
69990
- "#FF4444",
69991
- "#44BB44",
69992
- "#4466FF",
69993
- "#FFDD00"
69994
- ];
69972
+ var COLOR_PALETTE3 = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
69995
69973
  var diceOverlay = {
69996
69974
  itemType: "Dice",
69997
69975
  actions: [
@@ -70404,12 +70382,7 @@ class AddPouch extends ShapeTool {
70404
70382
  }
70405
70383
 
70406
70384
  // src/Items/Screen/ScreenOverlay.ts
70407
- var SCREEN_PALETTE = [
70408
- "#FFFFFF",
70409
- "#F0F0F0",
70410
- "#222222",
70411
- "transparent"
70412
- ];
70385
+ var SCREEN_PALETTE = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
70413
70386
  var screenOverlay = {
70414
70387
  itemType: "Screen",
70415
70388
  actions: [
@@ -70450,7 +70423,7 @@ var screenOverlay = {
70450
70423
  valueSource: { kind: "itemProperty", property: "borderColor" },
70451
70424
  editor: {
70452
70425
  kind: "color",
70453
- palette: ["#000000", "#FFFFFF", "#888888", "transparent"],
70426
+ palette: SCREEN_PALETTE,
70454
70427
  allowTransparent: true,
70455
70428
  presentation: "square"
70456
70429
  },
@@ -73705,6 +73678,8 @@ class Presence {
73705
73678
  }
73706
73679
 
73707
73680
  // src/Selection/SelectionOverlay.ts
73681
+ var SEMANTIC_COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
73682
+ var SEMANTIC_HIGHLIGHT_PALETTE = ["transparent", ...SEMANTIC_COLOR_PALETTE];
73708
73683
  function everyItemHasRichText(items) {
73709
73684
  return items.length > 0 && items.every((item) => !!item.getRichText?.());
73710
73685
  }
@@ -73834,7 +73809,7 @@ registerSelectionAction({
73834
73809
  valueSource: { kind: "selectionProperty", property: "getFontColor" },
73835
73810
  editor: {
73836
73811
  kind: "color",
73837
- palette: ["#111111", "#FFFFFF", "#E11D48", "#2563EB", "#16A34A", "#F59E0B"]
73812
+ palette: SEMANTIC_COLOR_PALETTE
73838
73813
  },
73839
73814
  invoke: { kind: "selectionMethod", methodName: "setFontColor" }
73840
73815
  }
@@ -73857,7 +73832,7 @@ registerSelectionAction({
73857
73832
  valueSource: { kind: "selectionProperty", property: "getFontHighlight" },
73858
73833
  editor: {
73859
73834
  kind: "color",
73860
- palette: ["transparent", "#FEF08A", "#FDBA74", "#BFDBFE", "#FBCFE8", "#D9F99D"]
73835
+ palette: SEMANTIC_HIGHLIGHT_PALETTE
73861
73836
  },
73862
73837
  invoke: { kind: "selectionMethod", methodName: "setFontHighlight" }
73863
73838
  }
@@ -78659,15 +78634,7 @@ class AddConnector extends BoardTool {
78659
78634
  registerTool({ name: "AddConnector", tool: AddConnector, overlay: addConnectorToolOverlay });
78660
78635
 
78661
78636
  // src/Items/Drawing/DrawingOverlay.ts
78662
- var COLOR_PALETTE4 = [
78663
- "#111111",
78664
- "#FF6B6B",
78665
- "#FFD166",
78666
- "#06D6A0",
78667
- "#118AB2",
78668
- "#7B61FF",
78669
- "transparent"
78670
- ];
78637
+ var COLOR_PALETTE4 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
78671
78638
  var strokeControls2 = [
78672
78639
  {
78673
78640
  id: "strokeColor",
package/dist/esm/node.js CHANGED
@@ -35983,6 +35983,7 @@ function underline(ctx, textBlock) {
35983
35983
  const width = measure.width - (textBlock.marginLeft || 0);
35984
35984
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
35985
35985
  ctx.lineWidth = textBlock.fontSize / 14;
35986
+ ctx.setLineDash([]);
35986
35987
  ctx.beginPath();
35987
35988
  ctx.moveTo(x, y + 2 * textBlock.fontSize / 14);
35988
35989
  ctx.lineTo(x + width, y + 2 * textBlock.fontSize / 14);
@@ -36002,6 +36003,7 @@ function cross(ctx, textBlock) {
36002
36003
  const height = measure.height;
36003
36004
  ctx.strokeStyle = resolveColor(style.color, conf.theme, "foreground");
36004
36005
  ctx.lineWidth = textBlock.fontSize / 14;
36006
+ ctx.setLineDash([]);
36005
36007
  ctx.beginPath();
36006
36008
  ctx.moveTo(x, y - height / 4);
36007
36009
  ctx.lineTo(x + width, y - height / 4);
@@ -52379,15 +52381,7 @@ var CONNECTOR_POINTER_TYPES = [
52379
52381
  ];
52380
52382
 
52381
52383
  // src/Items/Connector/ConnectorOverlay.ts
52382
- var COLOR_PALETTE = [
52383
- "#111111",
52384
- "#FFFFFF",
52385
- "#FF6B6B",
52386
- "#FFD166",
52387
- "#06D6A0",
52388
- "#118AB2",
52389
- "#7B61FF"
52390
- ];
52384
+ var COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
52391
52385
  var connectorAssetIcon = (file2) => overlayAssetIcon(`src/Items/Connector/icons/${file2}.icon.svg`);
52392
52386
  var lineStyleAssetIcons = {
52393
52387
  straight: connectorAssetIcon("LineStraight"),
@@ -66744,16 +66738,7 @@ function transformShape({
66744
66738
  }
66745
66739
 
66746
66740
  // src/Items/Shape/ShapeOverlay.ts
66747
- var COLOR_PALETTE2 = [
66748
- "#111111",
66749
- "#FFFFFF",
66750
- "#FF6B6B",
66751
- "#FFD166",
66752
- "#06D6A0",
66753
- "#118AB2",
66754
- "#7B61FF",
66755
- "transparent"
66756
- ];
66741
+ var COLOR_PALETTE2 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
66757
66742
  var inlineShapeAsset = (folder, file2 = folder) => overlayAssetIcon(`src/Items/Shape/Basic/${folder}/${file2}.icon.svg`);
66758
66743
  var localShapeIcon = (file2) => overlayAssetIcon(`src/Items/Shape/icons/${file2}.icon.svg`);
66759
66744
  var shapeSymbolIcon = (key) => symbolIcon(key);
@@ -72452,14 +72437,7 @@ class AddDice extends ShapeTool {
72452
72437
  }
72453
72438
 
72454
72439
  // src/Items/Dice/DiceOverlay.ts
72455
- var COLOR_PALETTE3 = [
72456
- "#FFFFFF",
72457
- "#111111",
72458
- "#FF4444",
72459
- "#44BB44",
72460
- "#4466FF",
72461
- "#FFDD00"
72462
- ];
72440
+ var COLOR_PALETTE3 = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
72463
72441
  var diceOverlay = {
72464
72442
  itemType: "Dice",
72465
72443
  actions: [
@@ -72872,12 +72850,7 @@ class AddPouch extends ShapeTool {
72872
72850
  }
72873
72851
 
72874
72852
  // src/Items/Screen/ScreenOverlay.ts
72875
- var SCREEN_PALETTE = [
72876
- "#FFFFFF",
72877
- "#F0F0F0",
72878
- "#222222",
72879
- "transparent"
72880
- ];
72853
+ var SCREEN_PALETTE = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
72881
72854
  var screenOverlay = {
72882
72855
  itemType: "Screen",
72883
72856
  actions: [
@@ -72918,7 +72891,7 @@ var screenOverlay = {
72918
72891
  valueSource: { kind: "itemProperty", property: "borderColor" },
72919
72892
  editor: {
72920
72893
  kind: "color",
72921
- palette: ["#000000", "#FFFFFF", "#888888", "transparent"],
72894
+ palette: SCREEN_PALETTE,
72922
72895
  allowTransparent: true,
72923
72896
  presentation: "square"
72924
72897
  },
@@ -76173,6 +76146,8 @@ class Presence {
76173
76146
  }
76174
76147
 
76175
76148
  // src/Selection/SelectionOverlay.ts
76149
+ var SEMANTIC_COLOR_PALETTE = CONTRAST_PALETTE_LIST.map((pair) => pair.id);
76150
+ var SEMANTIC_HIGHLIGHT_PALETTE = ["transparent", ...SEMANTIC_COLOR_PALETTE];
76176
76151
  function everyItemHasRichText(items) {
76177
76152
  return items.length > 0 && items.every((item) => !!item.getRichText?.());
76178
76153
  }
@@ -76302,7 +76277,7 @@ registerSelectionAction({
76302
76277
  valueSource: { kind: "selectionProperty", property: "getFontColor" },
76303
76278
  editor: {
76304
76279
  kind: "color",
76305
- palette: ["#111111", "#FFFFFF", "#E11D48", "#2563EB", "#16A34A", "#F59E0B"]
76280
+ palette: SEMANTIC_COLOR_PALETTE
76306
76281
  },
76307
76282
  invoke: { kind: "selectionMethod", methodName: "setFontColor" }
76308
76283
  }
@@ -76325,7 +76300,7 @@ registerSelectionAction({
76325
76300
  valueSource: { kind: "selectionProperty", property: "getFontHighlight" },
76326
76301
  editor: {
76327
76302
  kind: "color",
76328
- palette: ["transparent", "#FEF08A", "#FDBA74", "#BFDBFE", "#FBCFE8", "#D9F99D"]
76303
+ palette: SEMANTIC_HIGHLIGHT_PALETTE
76329
76304
  },
76330
76305
  invoke: { kind: "selectionMethod", methodName: "setFontHighlight" }
76331
76306
  }
@@ -81127,15 +81102,7 @@ class AddConnector extends BoardTool {
81127
81102
  registerTool({ name: "AddConnector", tool: AddConnector, overlay: addConnectorToolOverlay });
81128
81103
 
81129
81104
  // src/Items/Drawing/DrawingOverlay.ts
81130
- var COLOR_PALETTE4 = [
81131
- "#111111",
81132
- "#FF6B6B",
81133
- "#FFD166",
81134
- "#06D6A0",
81135
- "#118AB2",
81136
- "#7B61FF",
81137
- "transparent"
81138
- ];
81105
+ var COLOR_PALETTE4 = [...CONTRAST_PALETTE_LIST.map((pair) => pair.id), "transparent"];
81139
81106
  var strokeControls2 = [
81140
81107
  {
81141
81108
  id: "strokeColor",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "microboard-temp",
3
- "version": "0.14.46",
3
+ "version": "0.14.47",
4
4
  "description": "A flexible interactive whiteboard library",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",