microboard-temp 0.14.19 → 0.14.20

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/esm/index.js CHANGED
@@ -11500,8 +11500,13 @@ function overlaySymbolIcon(key) {
11500
11500
  sourcePath: OVERLAY_ICON_SPRITE_PATH
11501
11501
  };
11502
11502
  }
11503
- function overlayAssetIcon(path2) {
11504
- return {
11503
+ function overlayAssetIcon(path2, state) {
11504
+ return state ? {
11505
+ kind: "asset",
11506
+ path: path2,
11507
+ mimeType: "image/svg+xml",
11508
+ state
11509
+ } : {
11505
11510
  kind: "asset",
11506
11511
  path: path2,
11507
11512
  mimeType: "image/svg+xml"
@@ -11519,16 +11524,16 @@ function symbolIcon(key, state) {
11519
11524
  return state ? { kind: "symbol", key, sourcePath: OVERLAY_ICON_SPRITE_PATH, state } : { kind: "symbol", key, sourcePath: OVERLAY_ICON_SPRITE_PATH };
11520
11525
  }
11521
11526
  function styleFillIcon(state) {
11522
- return symbolIcon(OVERLAY_SYMBOL_KEYS.styleFill, state);
11527
+ return overlayAssetIcon("src/Items/Shape/icons/Fill.icon.svg", state);
11523
11528
  }
11524
11529
  function styleStrokeIcon(state) {
11525
- return symbolIcon(OVERLAY_SYMBOL_KEYS.styleStroke, state);
11530
+ return overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg", state);
11526
11531
  }
11527
11532
  function styleColorIcon(state) {
11528
- return symbolIcon(OVERLAY_SYMBOL_KEYS.styleColor, state);
11533
+ return overlayAssetIcon("src/Items/Shape/icons/Color.icon.svg", state);
11529
11534
  }
11530
11535
  function styleFontSizeIcon(state) {
11531
- return symbolIcon(OVERLAY_SYMBOL_KEYS.styleFontSize, state);
11536
+ return overlayAssetIcon("src/Items/RichText/icons/FontSize.icon.svg", state);
11532
11537
  }
11533
11538
  // src/Overlay/overlayRegistry.ts
11534
11539
  var itemOverlays = {};
@@ -37652,7 +37657,6 @@ var richTextOverlay = {
37652
37657
  id: "text.fontSize",
37653
37658
  label: "Font size",
37654
37659
  icon: styleFontSizeIcon(),
37655
- icon: styleFontSizeIcon(),
37656
37660
  target: "each",
37657
37661
  controls: [
37658
37662
  {
@@ -37675,7 +37679,7 @@ var richTextOverlay = {
37675
37679
  {
37676
37680
  id: "textTypography",
37677
37681
  label: "Typography",
37678
- icon: overlaySymbolIcon("text.fontSize"),
37682
+ icon: overlayAssetIcon("src/Items/RichText/icons/FontSize.icon.svg"),
37679
37683
  actionIds: ["text.fontSize"]
37680
37684
  }
37681
37685
  ]
@@ -37686,7 +37690,7 @@ var addTextToolOverlay = {
37686
37690
  kind: "create",
37687
37691
  createsItemType: "RichText",
37688
37692
  family: "text",
37689
- icon: overlaySymbolIcon("tool.text"),
37693
+ icon: overlayAssetIcon("src/Items/RichText/icons/Text.icon.svg"),
37690
37694
  description: "Creates editable rich text. The current first pass has no pre-placement defaults on this tool.",
37691
37695
  launch: { kind: "activate-tool" },
37692
37696
  surface: {
@@ -44161,12 +44165,28 @@ var COLOR_PALETTE = [
44161
44165
  "#118AB2",
44162
44166
  "#7B61FF"
44163
44167
  ];
44164
- var symbolIcon2 = (key) => overlaySymbolIcon(key);
44168
+ var connectorAssetIcon = (file2) => overlayAssetIcon(`src/Items/Connector/icons/${file2}.icon.svg`);
44169
+ var lineStyleAssetIcons = {
44170
+ straight: connectorAssetIcon("LineStraight"),
44171
+ curved: connectorAssetIcon("LineCurved"),
44172
+ orthogonal: connectorAssetIcon("LineOrthogonal")
44173
+ };
44174
+ var pointerAssetIcons = {
44175
+ None: connectorAssetIcon("PointerNone"),
44176
+ ArrowThin: connectorAssetIcon("PointerArrowThin"),
44177
+ ArrowHeavy: connectorAssetIcon("PointerArrowHeavy"),
44178
+ TriangleFilled: connectorAssetIcon("PointerTriangleFilled"),
44179
+ TriangleOutline: connectorAssetIcon("PointerTriangleOutline"),
44180
+ CircleFilled: connectorAssetIcon("PointerCircleFilled"),
44181
+ CircleOutline: connectorAssetIcon("PointerCircleOutline"),
44182
+ DiamondFilled: connectorAssetIcon("PointerDiamondFilled"),
44183
+ DiamondOutline: connectorAssetIcon("PointerDiamondOutline")
44184
+ };
44165
44185
  var lineStyleOptions = ConnectorLineStyles.map((style) => ({
44166
44186
  id: style,
44167
44187
  label: style[0].toUpperCase() + style.slice(1),
44168
44188
  value: style,
44169
- icon: symbolIcon2(`connector.lineStyle.${style}`)
44189
+ icon: lineStyleAssetIcons[style]
44170
44190
  }));
44171
44191
  var lineWidthOptions = ConnectionLineWidths.map((width) => ({
44172
44192
  id: `${width}`,
@@ -44177,13 +44197,13 @@ var pointerOptions = CONNECTOR_POINTER_TYPES.map((pointer) => ({
44177
44197
  id: pointer,
44178
44198
  label: pointer,
44179
44199
  value: pointer,
44180
- icon: symbolIcon2(`connector.pointer.${pointer}`)
44200
+ icon: pointerAssetIcons[pointer]
44181
44201
  }));
44182
44202
  var borderStyleOptions = ["solid", "dot", "dash", "longDash"].map((style) => ({
44183
44203
  id: style,
44184
44204
  label: style,
44185
44205
  value: style,
44186
- icon: symbolIcon2(`stroke.${style}`)
44206
+ icon: overlayAssetIcon(style === "solid" ? "src/Items/Shape/icons/StrokeSolid.icon.svg" : style === "dot" ? "src/Items/Shape/icons/StrokeDot.icon.svg" : style === "dash" ? "src/Items/Shape/icons/StrokeDash.icon.svg" : "src/Items/Shape/icons/StrokeLongDash.icon.svg")
44187
44207
  }));
44188
44208
  var connectorStyleControls = [
44189
44209
  {
@@ -44238,7 +44258,7 @@ var connectorStyleControls = [
44238
44258
  {
44239
44259
  id: "smartJump",
44240
44260
  label: "Smart jump",
44241
- icon: symbolIcon2("connector.smartJump"),
44261
+ icon: connectorAssetIcon("SmartJump"),
44242
44262
  valueSource: { kind: "itemProperty", property: "smartJump" },
44243
44263
  editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
44244
44264
  invoke: { kind: "setProperty", property: "smartJump" }
@@ -44297,7 +44317,7 @@ var connectorToolControls = [
44297
44317
  {
44298
44318
  id: "toolSmartJump",
44299
44319
  label: "Smart jump",
44300
- icon: symbolIcon2("connector.smartJump"),
44320
+ icon: connectorAssetIcon("SmartJump"),
44301
44321
  valueSource: { kind: "toolProperty", property: "smartJump" },
44302
44322
  editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
44303
44323
  invoke: { kind: "toolProperty", property: "smartJump" }
@@ -44309,21 +44329,21 @@ var connectorOverlay = {
44309
44329
  {
44310
44330
  id: "connector.switchPointers",
44311
44331
  label: "Switch arrows",
44312
- icon: symbolIcon2("connector.switchPointers"),
44332
+ icon: connectorAssetIcon("SwitchPointers"),
44313
44333
  target: "selection",
44314
44334
  invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
44315
44335
  },
44316
44336
  {
44317
44337
  id: "connector.style",
44318
44338
  label: "Connector style",
44319
- icon: symbolIcon2("connector.style"),
44339
+ icon: connectorAssetIcon("Style"),
44320
44340
  target: "each",
44321
44341
  controls: connectorStyleControls,
44322
44342
  groups: [
44323
44343
  {
44324
44344
  id: "connectorStyle",
44325
44345
  label: "Connector style",
44326
- icon: symbolIcon2("connector.style"),
44346
+ icon: connectorAssetIcon("Style"),
44327
44347
  controlIds: connectorStyleControls.map((control) => control.id)
44328
44348
  }
44329
44349
  ]
@@ -44333,7 +44353,7 @@ var connectorOverlay = {
44333
44353
  {
44334
44354
  id: "connectorArrows",
44335
44355
  label: "Arrows",
44336
- icon: symbolIcon2("connector.style"),
44356
+ icon: connectorAssetIcon("Style"),
44337
44357
  actionIds: ["connector.switchPointers", "connector.style"]
44338
44358
  }
44339
44359
  ]
@@ -44345,8 +44365,7 @@ var addConnectorToolOverlay = {
44345
44365
  createsItemType: "Connector",
44346
44366
  family: "connector",
44347
44367
  icon: {
44348
- kind: "symbol",
44349
- key: "tool.connector",
44368
+ ...connectorAssetIcon("Tool"),
44350
44369
  state: {
44351
44370
  swatch: { kind: "toolProperty", property: "lineColor" },
44352
44371
  note: "UI can tint or swatch the connector icon from the pending line color."
@@ -44358,14 +44377,14 @@ var addConnectorToolOverlay = {
44358
44377
  {
44359
44378
  id: "connectorToolQuickDefaults",
44360
44379
  label: "Connector quick defaults",
44361
- icon: symbolIcon2("connector.lineStyle.straight"),
44380
+ icon: connectorAssetIcon("LineStraight"),
44362
44381
  controlIds: ["toolLineStyle"],
44363
44382
  description: "Primary defaults that match the compact create-surface picker."
44364
44383
  },
44365
44384
  {
44366
44385
  id: "connectorToolAdvancedDefaults",
44367
44386
  label: "Connector defaults",
44368
- icon: symbolIcon2("connector.style"),
44387
+ icon: connectorAssetIcon("Style"),
44369
44388
  controlIds: connectorToolControls.map((control) => control.id),
44370
44389
  description: "Extended defaults available in richer create flows."
44371
44390
  }
@@ -58512,7 +58531,8 @@ var COLOR_PALETTE2 = [
58512
58531
  "transparent"
58513
58532
  ];
58514
58533
  var inlineShapeAsset = (folder, file2 = folder) => overlayAssetIcon(`src/Items/Shape/Basic/${folder}/${file2}.icon.svg`);
58515
- var symbolIcon3 = (key) => overlaySymbolIcon(key);
58534
+ var localShapeIcon = (file2) => overlayAssetIcon(`src/Items/Shape/icons/${file2}.icon.svg`);
58535
+ var bpmnIcon = (folder) => overlayAssetIcon(`src/Items/Shape/BPMN/${folder}/${folder}.icon.svg`);
58516
58536
  var BASIC_INLINE_OPTIONS = [
58517
58537
  { id: "rectangle", label: "Rectangle", value: "Rectangle", icon: inlineShapeAsset("Rectangle"), family: "basicShapes" },
58518
58538
  { id: "rounded-rectangle", label: "Rounded rectangle", value: "RoundedRectangle", icon: inlineShapeAsset("RoundedRectangle"), family: "basicShapes" },
@@ -58522,48 +58542,48 @@ var BASIC_INLINE_OPTIONS = [
58522
58542
  ];
58523
58543
  var SHAPE_CATALOG_OPTIONS = [
58524
58544
  ...BASIC_INLINE_OPTIONS,
58525
- { id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: symbolIcon3("shape.reversedTriangle"), family: "basicShapes" },
58545
+ { id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: localShapeIcon("ReversedTriangle"), family: "basicShapes" },
58526
58546
  { id: "arrow-left", label: "Arrow left", value: "ArrowLeft", icon: inlineShapeAsset("ArrowLeft"), family: "basicShapes" },
58527
58547
  { id: "arrow-right", label: "Arrow right", value: "ArrowRight", icon: inlineShapeAsset("ArrowRight"), family: "basicShapes" },
58528
58548
  { id: "arrow-left-right", label: "Arrow left right", value: "ArrowLeftRight", icon: inlineShapeAsset("ArrowLeftRight"), family: "basicShapes" },
58529
- { id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: symbolIcon3("shape.arrowBlockLeft"), family: "basicShapes" },
58530
- { id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: symbolIcon3("shape.arrowBlockRight"), family: "basicShapes" },
58549
+ { id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: localShapeIcon("ArrowBlockLeft"), family: "basicShapes" },
58550
+ { id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: localShapeIcon("ArrowBlockRight"), family: "basicShapes" },
58531
58551
  { id: "cloud", label: "Cloud", value: "Cloud", icon: inlineShapeAsset("Cloud"), family: "basicShapes" },
58532
58552
  { id: "cross", label: "Cross", value: "Cross", icon: inlineShapeAsset("Cross"), family: "basicShapes" },
58533
58553
  { id: "cylinder", label: "Cylinder", value: "Cylinder", icon: inlineShapeAsset("Cylinder"), family: "basicShapes" },
58534
58554
  { id: "hexagon", label: "Hexagon", value: "Hexagon", icon: inlineShapeAsset("Hexagon"), family: "basicShapes" },
58535
58555
  { id: "octagon", label: "Octagon", value: "Octagon", icon: inlineShapeAsset("Octagon"), family: "basicShapes" },
58536
58556
  { id: "parallelogram", label: "Parallelogram", value: "Parallelogram", icon: inlineShapeAsset("Parallelogram"), family: "basicShapes" },
58537
- { id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: symbolIcon3("shape.reversedParallelogram"), family: "basicShapes" },
58557
+ { id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: localShapeIcon("ReversedParallelogram"), family: "basicShapes" },
58538
58558
  { id: "pentagon", label: "Pentagon", value: "Pentagon", icon: inlineShapeAsset("Pentagon"), family: "basicShapes" },
58539
- { id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: symbolIcon3("shape.predefinedProcess"), family: "basicShapes" },
58559
+ { id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: localShapeIcon("PredefinedProcess"), family: "basicShapes" },
58540
58560
  { id: "speech-bubble", label: "Speech bubble", value: "SpeachBubble", icon: inlineShapeAsset("SpeachBubble"), family: "basicShapes" },
58541
58561
  { id: "star", label: "Star", value: "Star", icon: inlineShapeAsset("Star"), family: "basicShapes" },
58542
58562
  { id: "trapezoid", label: "Trapezoid", value: "Trapezoid", icon: inlineShapeAsset("Trapezoid"), family: "basicShapes" },
58543
58563
  { id: "braces-left", label: "Braces left", value: "BracesLeft", icon: inlineShapeAsset("BracesLeft", "BracesLeft"), family: "basicShapes" },
58544
58564
  { id: "braces-right", label: "Braces right", value: "BracesRight", icon: inlineShapeAsset("BracesRight", "BracesRight"), family: "basicShapes" },
58545
- { id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: symbolIcon3("shape.bpmn.task"), family: "bpmn" },
58546
- { id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: symbolIcon3("shape.bpmn.gateway"), family: "bpmn" },
58547
- { id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: symbolIcon3("shape.bpmn.gatewayParallel"), family: "bpmn" },
58548
- { id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: symbolIcon3("shape.bpmn.gatewayXor"), family: "bpmn" },
58549
- { id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: symbolIcon3("shape.bpmn.startEvent"), family: "bpmn" },
58550
- { id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: symbolIcon3("shape.bpmn.startEventNoneInterrupting"), family: "bpmn" },
58551
- { id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: symbolIcon3("shape.bpmn.endEvent"), family: "bpmn" },
58552
- { id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: symbolIcon3("shape.bpmn.intermediateEvent"), family: "bpmn" },
58553
- { id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: symbolIcon3("shape.bpmn.intermediateEventNoneInterrupting"), family: "bpmn" },
58554
- { id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: symbolIcon3("shape.bpmn.dataObject"), family: "bpmn" },
58555
- { id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: symbolIcon3("shape.bpmn.dataStore"), family: "bpmn" },
58556
- { id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: symbolIcon3("shape.bpmn.participant"), family: "bpmn" },
58557
- { id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: symbolIcon3("shape.bpmn.transaction"), family: "bpmn" },
58558
- { id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: symbolIcon3("shape.bpmn.eventSubprocess"), family: "bpmn" },
58559
- { id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: symbolIcon3("shape.bpmn.group"), family: "bpmn" },
58560
- { id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: symbolIcon3("shape.bpmn.annotation"), family: "bpmn" }
58565
+ { id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: bpmnIcon("BPMN_Task"), family: "bpmn" },
58566
+ { id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: bpmnIcon("BPMN_Gateway"), family: "bpmn" },
58567
+ { id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: bpmnIcon("BPMN_GatewayParallel"), family: "bpmn" },
58568
+ { id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: bpmnIcon("BPMN_GatewayXOR"), family: "bpmn" },
58569
+ { id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: bpmnIcon("BPMN_StartEvent"), family: "bpmn" },
58570
+ { id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: bpmnIcon("BPMN_StartEventNoneInterrupting"), family: "bpmn" },
58571
+ { id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: bpmnIcon("BPMN_EndEvent"), family: "bpmn" },
58572
+ { id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: bpmnIcon("BPMN_IntermediateEvent"), family: "bpmn" },
58573
+ { id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: bpmnIcon("BPMN_IntermediateEventNoneInterrupting"), family: "bpmn" },
58574
+ { id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: bpmnIcon("BPMN_DataObject"), family: "bpmn" },
58575
+ { id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: bpmnIcon("BPMN_DataStore"), family: "bpmn" },
58576
+ { id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: bpmnIcon("BPMN_Participant"), family: "bpmn" },
58577
+ { id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: bpmnIcon("BPMN_Transaction"), family: "bpmn" },
58578
+ { id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: bpmnIcon("BPMN_EventSubprocess"), family: "bpmn" },
58579
+ { id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: bpmnIcon("BPMN_Group"), family: "bpmn" },
58580
+ { id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: bpmnIcon("BPMN_Annotation"), family: "bpmn" }
58561
58581
  ];
58562
58582
  var BORDER_STYLE_OPTIONS = [
58563
- { id: "solid", label: "Solid", value: "solid", icon: symbolIcon3("stroke.solid") },
58564
- { id: "dot", label: "Dot", value: "dot", icon: symbolIcon3("stroke.dot") },
58565
- { id: "dash", label: "Dash", value: "dash", icon: symbolIcon3("stroke.dash") },
58566
- { id: "long-dash", label: "Long dash", value: "longDash", icon: symbolIcon3("stroke.longDash") }
58583
+ { id: "solid", label: "Solid", value: "solid", icon: localShapeIcon("StrokeSolid") },
58584
+ { id: "dot", label: "Dot", value: "dot", icon: localShapeIcon("StrokeDot") },
58585
+ { id: "dash", label: "Dash", value: "dash", icon: localShapeIcon("StrokeDash") },
58586
+ { id: "long-dash", label: "Long dash", value: "longDash", icon: localShapeIcon("StrokeLongDash") }
58567
58587
  ];
58568
58588
  var shapeTypeControl = {
58569
58589
  id: "shapeType",
@@ -58596,10 +58616,6 @@ var fillControl = {
58596
58616
  swatch: { kind: "itemProperty", property: "backgroundColor" },
58597
58617
  note: "UI can render the current fill color as a swatch inside the icon."
58598
58618
  }),
58599
- icon: styleFillIcon({
58600
- swatch: { kind: "itemProperty", property: "backgroundColor" },
58601
- note: "UI can render the current fill color as a swatch inside the icon."
58602
- }),
58603
58619
  editor: {
58604
58620
  kind: "color",
58605
58621
  palette: COLOR_PALETTE2,
@@ -58650,7 +58666,7 @@ var shapeOverlay = {
58650
58666
  {
58651
58667
  id: "shape.shapeType",
58652
58668
  label: "Shape type",
58653
- icon: symbolIcon3("shape.type"),
58669
+ icon: localShapeIcon("Type"),
58654
58670
  target: "each",
58655
58671
  controls: [shapeTypeControl]
58656
58672
  },
@@ -58681,13 +58697,13 @@ var shapeOverlay = {
58681
58697
  {
58682
58698
  id: "shapeTypeSection",
58683
58699
  label: "Type",
58684
- icon: symbolIcon3("shape.type"),
58700
+ icon: localShapeIcon("Type"),
58685
58701
  actionIds: ["shape.shapeType"]
58686
58702
  },
58687
58703
  {
58688
58704
  id: "shapeAppearanceSection",
58689
58705
  label: "Appearance",
58690
- icon: symbolIcon3("shape.stroke"),
58706
+ icon: localShapeIcon("Stroke"),
58691
58707
  actionIds: ["shape.fill", "shape.strokeStyle"]
58692
58708
  }
58693
58709
  ]
@@ -58699,7 +58715,7 @@ var addShapeToolOverlay = {
58699
58715
  createsItemType: "Shape",
58700
58716
  family: "shape",
58701
58717
  icon: {
58702
- ...overlaySymbolIcon("tool.shape"),
58718
+ ...overlayAssetIcon("src/Items/Shape/icons/Tool.icon.svg"),
58703
58719
  state: {
58704
58720
  note: "UI may swap the top-level icon to the selected shape option when desired."
58705
58721
  }
@@ -63139,14 +63155,14 @@ var cardOverlay = {
63139
63155
  {
63140
63156
  id: "card.flip",
63141
63157
  label: "Flip card",
63142
- icon: overlaySymbolIcon("card.flip"),
63158
+ icon: overlayAssetIcon("src/Items/Card/icons/Flip.icon.svg"),
63143
63159
  target: "each",
63144
63160
  invoke: { kind: "customMethod", methodName: "toggleIsOpen" }
63145
63161
  },
63146
63162
  {
63147
63163
  id: "card.rotateCcw",
63148
63164
  label: "Rotate 90 counter clockwise",
63149
- icon: overlaySymbolIcon("card.rotateCcw"),
63165
+ icon: overlayAssetIcon("src/Items/Card/icons/RotateCcw.icon.svg"),
63150
63166
  target: "each",
63151
63167
  invoke: {
63152
63168
  kind: "customMethod",
@@ -63157,7 +63173,7 @@ var cardOverlay = {
63157
63173
  {
63158
63174
  id: "card.rotateCw",
63159
63175
  label: "Rotate 90 clockwise",
63160
- icon: overlaySymbolIcon("card.rotateCw"),
63176
+ icon: overlayAssetIcon("src/Items/Card/icons/RotateCw.icon.svg"),
63161
63177
  target: "each",
63162
63178
  invoke: {
63163
63179
  kind: "customMethod",
@@ -63411,28 +63427,28 @@ var deckOverlay = {
63411
63427
  {
63412
63428
  id: "deck.getTopCard",
63413
63429
  label: "Draw top card",
63414
- icon: overlaySymbolIcon("deck.drawTop"),
63430
+ icon: overlayAssetIcon("src/Items/Deck/icons/DrawTop.icon.svg"),
63415
63431
  target: "single",
63416
63432
  invoke: { kind: "customMethod", methodName: "getTopCard" }
63417
63433
  },
63418
63434
  {
63419
63435
  id: "deck.getBottomCard",
63420
63436
  label: "Draw bottom card",
63421
- icon: overlaySymbolIcon("deck.drawBottom"),
63437
+ icon: overlayAssetIcon("src/Items/Deck/icons/DrawBottom.icon.svg"),
63422
63438
  target: "single",
63423
63439
  invoke: { kind: "customMethod", methodName: "getBottomCard" }
63424
63440
  },
63425
63441
  {
63426
63442
  id: "deck.getRandomCard",
63427
63443
  label: "Draw random card",
63428
- icon: overlaySymbolIcon("deck.drawRandom"),
63444
+ icon: overlayAssetIcon("src/Items/Deck/icons/DrawRandom.icon.svg"),
63429
63445
  target: "single",
63430
63446
  invoke: { kind: "customMethod", methodName: "getRandomCard" }
63431
63447
  },
63432
63448
  {
63433
63449
  id: "deck.getCards",
63434
63450
  label: "Draw cards",
63435
- icon: overlaySymbolIcon("deck.drawMany"),
63451
+ icon: overlayAssetIcon("src/Items/Deck/icons/DrawMany.icon.svg"),
63436
63452
  target: "single",
63437
63453
  controls: [
63438
63454
  {
@@ -63454,14 +63470,14 @@ var deckOverlay = {
63454
63470
  {
63455
63471
  id: "deck.shuffle",
63456
63472
  label: "Shuffle",
63457
- icon: overlaySymbolIcon("deck.shuffle"),
63473
+ icon: overlayAssetIcon("src/Items/Deck/icons/Shuffle.icon.svg"),
63458
63474
  target: "single",
63459
63475
  invoke: { kind: "customMethod", methodName: "shuffleDeck" }
63460
63476
  },
63461
63477
  {
63462
63478
  id: "deck.flip",
63463
63479
  label: "Flip deck",
63464
- icon: overlaySymbolIcon("deck.flip"),
63480
+ icon: overlayAssetIcon("src/Items/Deck/icons/Flip.icon.svg"),
63465
63481
  target: "single",
63466
63482
  invoke: { kind: "customMethod", methodName: "flipDeck" }
63467
63483
  }
@@ -63470,7 +63486,7 @@ var deckOverlay = {
63470
63486
  var createDeckSelectionAction = {
63471
63487
  id: "deck.createFromSelection",
63472
63488
  label: "Create deck",
63473
- icon: overlaySymbolIcon("deck.createFromSelection"),
63489
+ icon: overlayAssetIcon("src/Items/Deck/icons/CreateFromSelection.icon.svg"),
63474
63490
  description: "Stacks selected cards into a new deck, or merges selected cards and decks into one deck.",
63475
63491
  invoke: { kind: "selectionMethod", methodName: "createDeck" },
63476
63492
  isAvailable: (items) => {
@@ -64039,14 +64055,14 @@ var diceOverlay = {
64039
64055
  {
64040
64056
  id: "dice.throw",
64041
64057
  label: "Throw dice",
64042
- icon: overlaySymbolIcon("dice.throw"),
64058
+ icon: overlayAssetIcon("src/Items/Dice/icons/Throw.icon.svg"),
64043
64059
  target: "each",
64044
64060
  invoke: { kind: "customMethod", methodName: "throwDice" }
64045
64061
  },
64046
64062
  {
64047
64063
  id: "dice.range",
64048
64064
  label: "Range",
64049
- icon: overlaySymbolIcon("dice.range"),
64065
+ icon: overlayAssetIcon("src/Items/Dice/icons/Range.icon.svg"),
64050
64066
  target: "each",
64051
64067
  controls: [
64052
64068
  {
@@ -64087,7 +64103,7 @@ var diceOverlay = {
64087
64103
  {
64088
64104
  id: "diceActions",
64089
64105
  label: "Dice",
64090
- icon: overlaySymbolIcon("dice.throw"),
64106
+ icon: overlayAssetIcon("src/Items/Dice/icons/Throw.icon.svg"),
64091
64107
  actionIds: ["dice.throw", "dice.range", "dice.fill"]
64092
64108
  }
64093
64109
  ]
@@ -64098,14 +64114,14 @@ var addDiceToolOverlay = {
64098
64114
  kind: "create",
64099
64115
  createsItemType: "Dice",
64100
64116
  family: "game",
64101
- icon: overlaySymbolIcon("tool.dice"),
64117
+ icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
64102
64118
  launch: { kind: "activate-tool" },
64103
64119
  surface: {
64104
64120
  order: 1,
64105
64121
  group: {
64106
64122
  id: "gameItems",
64107
64123
  label: "Game items",
64108
- icon: overlaySymbolIcon("tool.dice"),
64124
+ icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
64109
64125
  order: 1,
64110
64126
  behavior: "open-panel"
64111
64127
  },
@@ -64458,7 +64474,7 @@ var screenOverlay = {
64458
64474
  id: "screen.background",
64459
64475
  label: "Background",
64460
64476
  icon: {
64461
- ...overlaySymbolIcon("screen.background"),
64477
+ ...overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
64462
64478
  state: { swatch: { kind: "itemProperty", property: "backgroundColor" } }
64463
64479
  },
64464
64480
  target: "each",
@@ -64480,7 +64496,7 @@ var screenOverlay = {
64480
64496
  id: "screen.stroke",
64481
64497
  label: "Stroke",
64482
64498
  icon: {
64483
- ...overlaySymbolIcon("shape.stroke"),
64499
+ ...overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg"),
64484
64500
  state: { swatch: { kind: "itemProperty", property: "borderColor" } }
64485
64501
  },
64486
64502
  target: "each",
@@ -64516,7 +64532,7 @@ var screenOverlay = {
64516
64532
  {
64517
64533
  id: "screenStrokeStyle",
64518
64534
  label: "Stroke",
64519
- icon: overlaySymbolIcon("shape.stroke"),
64535
+ icon: overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg"),
64520
64536
  controlIds: ["borderColor", "borderWidth"]
64521
64537
  }
64522
64538
  ]
@@ -64524,7 +64540,7 @@ var screenOverlay = {
64524
64540
  {
64525
64541
  id: "screen.backgroundImage",
64526
64542
  label: "Background image",
64527
- icon: overlaySymbolIcon("screen.backgroundImage"),
64543
+ icon: overlayAssetIcon("src/Items/Screen/icons/BackgroundImage.icon.svg"),
64528
64544
  target: "each",
64529
64545
  when: {
64530
64546
  kind: "falsy",
@@ -64547,7 +64563,7 @@ var screenOverlay = {
64547
64563
  {
64548
64564
  id: "screen.removeBackgroundImage",
64549
64565
  label: "Remove background image",
64550
- icon: overlaySymbolIcon("screen.backgroundImage.remove"),
64566
+ icon: overlayAssetIcon("src/Items/Screen/icons/BackgroundImageRemove.icon.svg"),
64551
64567
  target: "each",
64552
64568
  when: {
64553
64569
  kind: "truthy",
@@ -64564,7 +64580,7 @@ var screenOverlay = {
64564
64580
  {
64565
64581
  id: "screenAppearance",
64566
64582
  label: "Appearance",
64567
- icon: overlaySymbolIcon("screen.background"),
64583
+ icon: overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
64568
64584
  actionIds: ["screen.background", "screen.stroke", "screen.backgroundImage", "screen.removeBackgroundImage"]
64569
64585
  }
64570
64586
  ]
@@ -64575,14 +64591,14 @@ var addScreenToolOverlay = {
64575
64591
  kind: "create",
64576
64592
  createsItemType: "Screen",
64577
64593
  family: "container",
64578
- icon: overlaySymbolIcon("tool.screen"),
64594
+ icon: overlayAssetIcon("src/Items/Screen/icons/Tool.icon.svg"),
64579
64595
  launch: { kind: "activate-tool" },
64580
64596
  surface: {
64581
64597
  order: 2,
64582
64598
  group: {
64583
64599
  id: "gameItems",
64584
64600
  label: "Game items",
64585
- icon: overlaySymbolIcon("tool.dice"),
64601
+ icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
64586
64602
  order: 1,
64587
64603
  behavior: "open-panel"
64588
64604
  },
@@ -64595,14 +64611,14 @@ var addPouchToolOverlay = {
64595
64611
  kind: "create",
64596
64612
  createsItemType: "Screen",
64597
64613
  family: "container",
64598
- icon: overlaySymbolIcon("tool.pouch"),
64614
+ icon: overlayAssetIcon("src/Items/Screen/icons/Pouch.icon.svg"),
64599
64615
  launch: { kind: "activate-tool" },
64600
64616
  surface: {
64601
64617
  order: 3,
64602
64618
  group: {
64603
64619
  id: "gameItems",
64604
64620
  label: "Game items",
64605
- icon: overlaySymbolIcon("tool.dice"),
64621
+ icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
64606
64622
  order: 1,
64607
64623
  behavior: "open-panel"
64608
64624
  },
@@ -72567,7 +72583,7 @@ var addDrawingToolOverlay = {
72567
72583
  family: "drawing",
72568
72584
  createsItemType: "Drawing",
72569
72585
  icon: {
72570
- ...overlaySymbolIcon("tool.pen"),
72586
+ ...overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
72571
72587
  state: {
72572
72588
  swatch: { kind: "toolProperty", property: "strokeColor" },
72573
72589
  note: "UI can show the pending pen color in the icon."
@@ -72579,7 +72595,7 @@ var addDrawingToolOverlay = {
72579
72595
  {
72580
72596
  id: "drawingDefaults",
72581
72597
  label: "Pen defaults",
72582
- icon: overlaySymbolIcon("tool.pen"),
72598
+ icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
72583
72599
  controlIds: strokeControls2.map((control) => control.id)
72584
72600
  }
72585
72601
  ]
@@ -72590,7 +72606,7 @@ var addDrawingToolOverlay = {
72590
72606
  group: {
72591
72607
  id: "drawingTools",
72592
72608
  label: "Drawing",
72593
- icon: overlaySymbolIcon("tool.pen"),
72609
+ icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
72594
72610
  order: 5,
72595
72611
  behavior: "activate-last-used"
72596
72612
  },
@@ -72604,7 +72620,7 @@ var addHighlighterToolOverlay = {
72604
72620
  family: "drawing",
72605
72621
  createsItemType: "Drawing",
72606
72622
  icon: {
72607
- ...overlaySymbolIcon("tool.highlighter"),
72623
+ ...overlayAssetIcon("src/Items/Drawing/icons/Highlighter.icon.svg"),
72608
72624
  state: {
72609
72625
  swatch: { kind: "toolProperty", property: "strokeColor" },
72610
72626
  note: "UI can show the pending highlighter color in the icon."
@@ -72616,7 +72632,7 @@ var addHighlighterToolOverlay = {
72616
72632
  {
72617
72633
  id: "highlighterDefaults",
72618
72634
  label: "Highlighter defaults",
72619
- icon: overlaySymbolIcon("tool.highlighter"),
72635
+ icon: overlayAssetIcon("src/Items/Drawing/icons/Highlighter.icon.svg"),
72620
72636
  controlIds: strokeControls2.map((control) => control.id)
72621
72637
  }
72622
72638
  ]
@@ -72627,7 +72643,7 @@ var addHighlighterToolOverlay = {
72627
72643
  group: {
72628
72644
  id: "drawingTools",
72629
72645
  label: "Drawing",
72630
- icon: overlaySymbolIcon("tool.pen"),
72646
+ icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
72631
72647
  order: 5,
72632
72648
  behavior: "activate-last-used"
72633
72649
  },
@@ -72639,7 +72655,7 @@ var eraserToolOverlay = {
72639
72655
  label: "Eraser",
72640
72656
  kind: "mode",
72641
72657
  family: "drawing",
72642
- icon: overlaySymbolIcon("tool.eraser"),
72658
+ icon: overlayAssetIcon("src/Items/Drawing/icons/Eraser.icon.svg"),
72643
72659
  defaults: {
72644
72660
  controls: [
72645
72661
  {
@@ -72663,7 +72679,7 @@ var eraserToolOverlay = {
72663
72679
  group: {
72664
72680
  id: "drawingTools",
72665
72681
  label: "Drawing",
72666
- icon: overlaySymbolIcon("tool.pen"),
72682
+ icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
72667
72683
  order: 5,
72668
72684
  behavior: "activate-last-used"
72669
72685
  },
@@ -72868,7 +72884,7 @@ var frameTypeOptions = Object.keys(Frames).map((frameType) => ({
72868
72884
  id: frameType,
72869
72885
  label: frameType === "Custom" ? "Custom" : Frames[frameType].name,
72870
72886
  value: frameType,
72871
- icon: overlaySymbolIcon(`frame.${frameType}`)
72887
+ icon: overlayAssetIcon(frameType === "Custom" ? "src/Items/Frame/Basic/Custom/Custom.icon.svg" : frameType === "A4" ? "src/Items/Frame/Basic/A4/A4.icon.svg" : frameType === "Letter" ? "src/Items/Frame/Basic/Letter/Letter.icon.svg" : frameType === "Frame16x9" ? "src/Items/Frame/Basic/16-9/16-9.icon.svg" : frameType === "Frame4x3" ? "src/Items/Frame/Basic/4-3/4-3.icon.svg" : frameType === "Frame1x1" ? "src/Items/Frame/Basic/1-1/1-1.icon.svg" : frameType === "Frame3x2" ? "src/Items/Frame/Basic/3-2/3-2.icon.svg" : "src/Items/Frame/Basic/9-18/9-18.icon.svg")
72872
72888
  }));
72873
72889
  var addFrameToolOverlay = {
72874
72890
  toolName: "AddFrame",
@@ -72876,7 +72892,7 @@ var addFrameToolOverlay = {
72876
72892
  kind: "create",
72877
72893
  createsItemType: "Frame",
72878
72894
  family: "frame",
72879
- icon: overlaySymbolIcon("tool.frame"),
72895
+ icon: overlayAssetIcon("src/Items/Frame/Frame.icon.svg"),
72880
72896
  defaults: {
72881
72897
  controls: [
72882
72898
  {
@@ -73258,7 +73274,7 @@ var addStickerToolOverlay = {
73258
73274
  createsItemType: "Sticker",
73259
73275
  family: "sticker",
73260
73276
  icon: {
73261
- ...overlaySymbolIcon("tool.sticker"),
73277
+ ...overlayAssetIcon("src/Items/Sticker/Path/Sticker.icon.svg"),
73262
73278
  state: {
73263
73279
  swatch: { kind: "toolProperty", property: "backgroundColor" }
73264
73280
  }