microboard-temp 0.14.17 → 0.14.18

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/cjs/node.js CHANGED
@@ -1676,6 +1676,11 @@ __export(exports_node, {
1676
1676
  toFiniteNumber: () => toFiniteNumber,
1677
1677
  tempStorage: () => tempStorage,
1678
1678
  tagByType: () => tagByType,
1679
+ symbolIcon: () => symbolIcon,
1680
+ styleStrokeIcon: () => styleStrokeIcon,
1681
+ styleFontSizeIcon: () => styleFontSizeIcon,
1682
+ styleFillIcon: () => styleFillIcon,
1683
+ styleColorIcon: () => styleColorIcon,
1679
1684
  stickerColors: () => stickerColors,
1680
1685
  srgbChannelToLinear: () => srgbChannelToLinear,
1681
1686
  sha256: () => sha256,
@@ -1802,6 +1807,7 @@ __export(exports_node, {
1802
1807
  PRESENCE_CURSOR_THROTTLE: () => PRESENCE_CURSOR_THROTTLE,
1803
1808
  PRESENCE_CLEANUP_USER_TIMER: () => PRESENCE_CLEANUP_USER_TIMER,
1804
1809
  PRESENCE_CLEANUP_IDLE_TIMER: () => PRESENCE_CLEANUP_IDLE_TIMER,
1810
+ OVERLAY_SYMBOL_KEYS: () => OVERLAY_SYMBOL_KEYS,
1805
1811
  MiroItemConverter: () => MiroItemConverter,
1806
1812
  Mbr: () => Mbr,
1807
1813
  Matrix: () => Matrix,
@@ -12747,6 +12753,28 @@ function toLocalTransformOp(op, containerMatrix, itemId) {
12747
12753
  return op;
12748
12754
  }
12749
12755
  }
12756
+ // src/Overlay/OverlayIcons.ts
12757
+ var OVERLAY_SYMBOL_KEYS = {
12758
+ styleFill: "style.fill",
12759
+ styleStroke: "style.stroke",
12760
+ styleColor: "style.color",
12761
+ styleFontSize: "style.fontSize"
12762
+ };
12763
+ function symbolIcon(key, state) {
12764
+ return state ? { kind: "symbol", key, state } : { kind: "symbol", key };
12765
+ }
12766
+ function styleFillIcon(state) {
12767
+ return symbolIcon(OVERLAY_SYMBOL_KEYS.styleFill, state);
12768
+ }
12769
+ function styleStrokeIcon(state) {
12770
+ return symbolIcon(OVERLAY_SYMBOL_KEYS.styleStroke, state);
12771
+ }
12772
+ function styleColorIcon(state) {
12773
+ return symbolIcon(OVERLAY_SYMBOL_KEYS.styleColor, state);
12774
+ }
12775
+ function styleFontSizeIcon(state) {
12776
+ return symbolIcon(OVERLAY_SYMBOL_KEYS.styleFontSize, state);
12777
+ }
12750
12778
  // src/Overlay/overlayRegistry.ts
12751
12779
  var itemOverlays = {};
12752
12780
  var toolOverlays = {};
@@ -40279,7 +40307,7 @@ var richTextOverlay = {
40279
40307
  {
40280
40308
  id: "text.fontSize",
40281
40309
  label: "Font size",
40282
- icon: { kind: "symbol", key: "text.fontSize" },
40310
+ icon: styleFontSizeIcon(),
40283
40311
  target: "each",
40284
40312
  controls: [
40285
40313
  {
@@ -46709,12 +46737,12 @@ var COLOR_PALETTE = [
46709
46737
  "#118AB2",
46710
46738
  "#7B61FF"
46711
46739
  ];
46712
- var symbolIcon = (key) => ({ kind: "symbol", key });
46740
+ var symbolIcon2 = (key) => ({ kind: "symbol", key });
46713
46741
  var lineStyleOptions = ConnectorLineStyles.map((style) => ({
46714
46742
  id: style,
46715
46743
  label: style[0].toUpperCase() + style.slice(1),
46716
46744
  value: style,
46717
- icon: symbolIcon(`connector.lineStyle.${style}`)
46745
+ icon: symbolIcon2(`connector.lineStyle.${style}`)
46718
46746
  }));
46719
46747
  var lineWidthOptions = ConnectionLineWidths.map((width) => ({
46720
46748
  id: `${width}`,
@@ -46725,13 +46753,13 @@ var pointerOptions = CONNECTOR_POINTER_TYPES.map((pointer) => ({
46725
46753
  id: pointer,
46726
46754
  label: pointer,
46727
46755
  value: pointer,
46728
- icon: symbolIcon(`connector.pointer.${pointer}`)
46756
+ icon: symbolIcon2(`connector.pointer.${pointer}`)
46729
46757
  }));
46730
46758
  var borderStyleOptions = ["solid", "dot", "dash", "longDash"].map((style) => ({
46731
46759
  id: style,
46732
46760
  label: style,
46733
46761
  value: style,
46734
- icon: symbolIcon(`stroke.${style}`)
46762
+ icon: symbolIcon2(`stroke.${style}`)
46735
46763
  }));
46736
46764
  var connectorStyleControls = [
46737
46765
  {
@@ -46786,7 +46814,7 @@ var connectorStyleControls = [
46786
46814
  {
46787
46815
  id: "smartJump",
46788
46816
  label: "Smart jump",
46789
- icon: symbolIcon("connector.smartJump"),
46817
+ icon: symbolIcon2("connector.smartJump"),
46790
46818
  valueSource: { kind: "itemProperty", property: "smartJump" },
46791
46819
  editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
46792
46820
  invoke: { kind: "setProperty", property: "smartJump" }
@@ -46845,7 +46873,7 @@ var connectorToolControls = [
46845
46873
  {
46846
46874
  id: "toolSmartJump",
46847
46875
  label: "Smart jump",
46848
- icon: symbolIcon("connector.smartJump"),
46876
+ icon: symbolIcon2("connector.smartJump"),
46849
46877
  valueSource: { kind: "toolProperty", property: "smartJump" },
46850
46878
  editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
46851
46879
  invoke: { kind: "toolProperty", property: "smartJump" }
@@ -46857,21 +46885,21 @@ var connectorOverlay = {
46857
46885
  {
46858
46886
  id: "connector.switchPointers",
46859
46887
  label: "Switch arrows",
46860
- icon: symbolIcon("connector.switchPointers"),
46888
+ icon: symbolIcon2("connector.switchPointers"),
46861
46889
  target: "selection",
46862
46890
  invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
46863
46891
  },
46864
46892
  {
46865
46893
  id: "connector.style",
46866
46894
  label: "Connector style",
46867
- icon: symbolIcon("connector.style"),
46895
+ icon: symbolIcon2("connector.style"),
46868
46896
  target: "each",
46869
46897
  controls: connectorStyleControls,
46870
46898
  groups: [
46871
46899
  {
46872
46900
  id: "connectorStyle",
46873
46901
  label: "Connector style",
46874
- icon: symbolIcon("connector.style"),
46902
+ icon: symbolIcon2("connector.style"),
46875
46903
  controlIds: connectorStyleControls.map((control) => control.id)
46876
46904
  }
46877
46905
  ]
@@ -46898,7 +46926,7 @@ var addConnectorToolOverlay = {
46898
46926
  {
46899
46927
  id: "connectorToolStyle",
46900
46928
  label: "Connector defaults",
46901
- icon: symbolIcon("connector.style"),
46929
+ icon: symbolIcon2("connector.style"),
46902
46930
  controlIds: connectorToolControls.map((control) => control.id)
46903
46931
  }
46904
46932
  ]
@@ -61045,7 +61073,7 @@ var inlineShapeAsset = (folder, file2 = folder) => ({
61045
61073
  path: `src/Items/Shape/Basic/${folder}/${file2}.icon.svg`,
61046
61074
  mimeType: "image/svg+xml"
61047
61075
  });
61048
- var symbolIcon2 = (key) => ({ kind: "symbol", key });
61076
+ var symbolIcon3 = (key) => ({ kind: "symbol", key });
61049
61077
  var BASIC_INLINE_OPTIONS = [
61050
61078
  { id: "rectangle", label: "Rectangle", value: "Rectangle", icon: inlineShapeAsset("Rectangle") },
61051
61079
  { id: "rounded-rectangle", label: "Rounded rectangle", value: "RoundedRectangle", icon: inlineShapeAsset("RoundedRectangle") },
@@ -61055,48 +61083,48 @@ var BASIC_INLINE_OPTIONS = [
61055
61083
  ];
61056
61084
  var SHAPE_CATALOG_OPTIONS = [
61057
61085
  ...BASIC_INLINE_OPTIONS,
61058
- { id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: symbolIcon2("shape.reversedTriangle") },
61086
+ { id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: symbolIcon3("shape.reversedTriangle") },
61059
61087
  { id: "arrow-left", label: "Arrow left", value: "ArrowLeft", icon: inlineShapeAsset("ArrowLeft") },
61060
61088
  { id: "arrow-right", label: "Arrow right", value: "ArrowRight", icon: inlineShapeAsset("ArrowRight") },
61061
61089
  { id: "arrow-left-right", label: "Arrow left right", value: "ArrowLeftRight", icon: inlineShapeAsset("ArrowLeftRight") },
61062
- { id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: symbolIcon2("shape.arrowBlockLeft") },
61063
- { id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: symbolIcon2("shape.arrowBlockRight") },
61090
+ { id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: symbolIcon3("shape.arrowBlockLeft") },
61091
+ { id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: symbolIcon3("shape.arrowBlockRight") },
61064
61092
  { id: "cloud", label: "Cloud", value: "Cloud", icon: inlineShapeAsset("Cloud") },
61065
61093
  { id: "cross", label: "Cross", value: "Cross", icon: inlineShapeAsset("Cross") },
61066
61094
  { id: "cylinder", label: "Cylinder", value: "Cylinder", icon: inlineShapeAsset("Cylinder") },
61067
61095
  { id: "hexagon", label: "Hexagon", value: "Hexagon", icon: inlineShapeAsset("Hexagon") },
61068
61096
  { id: "octagon", label: "Octagon", value: "Octagon", icon: inlineShapeAsset("Octagon") },
61069
61097
  { id: "parallelogram", label: "Parallelogram", value: "Parallelogram", icon: inlineShapeAsset("Parallelogram") },
61070
- { id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: symbolIcon2("shape.reversedParallelogram") },
61098
+ { id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: symbolIcon3("shape.reversedParallelogram") },
61071
61099
  { id: "pentagon", label: "Pentagon", value: "Pentagon", icon: inlineShapeAsset("Pentagon") },
61072
- { id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: symbolIcon2("shape.predefinedProcess") },
61100
+ { id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: symbolIcon3("shape.predefinedProcess") },
61073
61101
  { id: "speech-bubble", label: "Speech bubble", value: "SpeachBubble", icon: inlineShapeAsset("SpeachBubble") },
61074
61102
  { id: "star", label: "Star", value: "Star", icon: inlineShapeAsset("Star") },
61075
61103
  { id: "trapezoid", label: "Trapezoid", value: "Trapezoid", icon: inlineShapeAsset("Trapezoid") },
61076
61104
  { id: "braces-left", label: "Braces left", value: "BracesLeft", icon: inlineShapeAsset("BracesLeft", "BracesLeft") },
61077
61105
  { id: "braces-right", label: "Braces right", value: "BracesRight", icon: inlineShapeAsset("BracesRight", "BracesRight") },
61078
- { id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: symbolIcon2("shape.bpmn.task") },
61079
- { id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: symbolIcon2("shape.bpmn.gateway") },
61080
- { id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: symbolIcon2("shape.bpmn.gatewayParallel") },
61081
- { id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: symbolIcon2("shape.bpmn.gatewayXor") },
61082
- { id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: symbolIcon2("shape.bpmn.startEvent") },
61083
- { id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: symbolIcon2("shape.bpmn.startEventNoneInterrupting") },
61084
- { id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: symbolIcon2("shape.bpmn.endEvent") },
61085
- { id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: symbolIcon2("shape.bpmn.intermediateEvent") },
61086
- { id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: symbolIcon2("shape.bpmn.intermediateEventNoneInterrupting") },
61087
- { id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: symbolIcon2("shape.bpmn.dataObject") },
61088
- { id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: symbolIcon2("shape.bpmn.dataStore") },
61089
- { id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: symbolIcon2("shape.bpmn.participant") },
61090
- { id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: symbolIcon2("shape.bpmn.transaction") },
61091
- { id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: symbolIcon2("shape.bpmn.eventSubprocess") },
61092
- { id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: symbolIcon2("shape.bpmn.group") },
61093
- { id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: symbolIcon2("shape.bpmn.annotation") }
61106
+ { id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: symbolIcon3("shape.bpmn.task") },
61107
+ { id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: symbolIcon3("shape.bpmn.gateway") },
61108
+ { id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: symbolIcon3("shape.bpmn.gatewayParallel") },
61109
+ { id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: symbolIcon3("shape.bpmn.gatewayXor") },
61110
+ { id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: symbolIcon3("shape.bpmn.startEvent") },
61111
+ { id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: symbolIcon3("shape.bpmn.startEventNoneInterrupting") },
61112
+ { id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: symbolIcon3("shape.bpmn.endEvent") },
61113
+ { id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: symbolIcon3("shape.bpmn.intermediateEvent") },
61114
+ { id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: symbolIcon3("shape.bpmn.intermediateEventNoneInterrupting") },
61115
+ { id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: symbolIcon3("shape.bpmn.dataObject") },
61116
+ { id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: symbolIcon3("shape.bpmn.dataStore") },
61117
+ { id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: symbolIcon3("shape.bpmn.participant") },
61118
+ { id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: symbolIcon3("shape.bpmn.transaction") },
61119
+ { id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: symbolIcon3("shape.bpmn.eventSubprocess") },
61120
+ { id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: symbolIcon3("shape.bpmn.group") },
61121
+ { id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: symbolIcon3("shape.bpmn.annotation") }
61094
61122
  ];
61095
61123
  var BORDER_STYLE_OPTIONS = [
61096
- { id: "solid", label: "Solid", value: "solid", icon: symbolIcon2("stroke.solid") },
61097
- { id: "dot", label: "Dot", value: "dot", icon: symbolIcon2("stroke.dot") },
61098
- { id: "dash", label: "Dash", value: "dash", icon: symbolIcon2("stroke.dash") },
61099
- { id: "long-dash", label: "Long dash", value: "longDash", icon: symbolIcon2("stroke.longDash") }
61124
+ { id: "solid", label: "Solid", value: "solid", icon: symbolIcon3("stroke.solid") },
61125
+ { id: "dot", label: "Dot", value: "dot", icon: symbolIcon3("stroke.dot") },
61126
+ { id: "dash", label: "Dash", value: "dash", icon: symbolIcon3("stroke.dash") },
61127
+ { id: "long-dash", label: "Long dash", value: "longDash", icon: symbolIcon3("stroke.longDash") }
61100
61128
  ];
61101
61129
  var shapeTypeControl = {
61102
61130
  id: "shapeType",
@@ -61119,14 +61147,10 @@ var fillControl = {
61119
61147
  id: "backgroundColor",
61120
61148
  label: "Fill",
61121
61149
  valueSource: { kind: "itemProperty", property: "backgroundColor" },
61122
- icon: {
61123
- kind: "symbol",
61124
- key: "shape.fill",
61125
- state: {
61126
- swatch: { kind: "itemProperty", property: "backgroundColor" },
61127
- note: "UI can render the current fill color as a swatch inside the icon."
61128
- }
61129
- },
61150
+ icon: styleFillIcon({
61151
+ swatch: { kind: "itemProperty", property: "backgroundColor" },
61152
+ note: "UI can render the current fill color as a swatch inside the icon."
61153
+ }),
61130
61154
  editor: {
61131
61155
  kind: "color",
61132
61156
  palette: COLOR_PALETTE2,
@@ -61177,7 +61201,7 @@ var shapeOverlay = {
61177
61201
  {
61178
61202
  id: "shape.shapeType",
61179
61203
  label: "Shape type",
61180
- icon: symbolIcon2("shape.type"),
61204
+ icon: symbolIcon3("shape.type"),
61181
61205
  target: "each",
61182
61206
  controls: [shapeTypeControl]
61183
61207
  },
@@ -61191,14 +61215,14 @@ var shapeOverlay = {
61191
61215
  {
61192
61216
  id: "shape.strokeStyle",
61193
61217
  label: "Stroke style",
61194
- icon: symbolIcon2("shape.stroke"),
61218
+ icon: styleStrokeIcon(),
61195
61219
  target: "each",
61196
61220
  controls: strokeControls,
61197
61221
  groups: [
61198
61222
  {
61199
61223
  id: "shapeStrokeStyle",
61200
61224
  label: "Stroke style",
61201
- icon: symbolIcon2("shape.stroke"),
61225
+ icon: styleStrokeIcon(),
61202
61226
  controlIds: strokeControls.map((control) => control.id)
61203
61227
  }
61204
61228
  ]
@@ -66572,11 +66596,9 @@ var diceOverlay = {
66572
66596
  {
66573
66597
  id: "dice.fill",
66574
66598
  label: "Fill",
66575
- icon: {
66576
- kind: "symbol",
66577
- key: "shape.fill",
66578
- state: { swatch: { kind: "itemProperty", property: "backgroundColor" } }
66579
- },
66599
+ icon: styleFillIcon({
66600
+ swatch: { kind: "itemProperty", property: "backgroundColor" }
66601
+ }),
66580
66602
  target: "each",
66581
66603
  controls: [
66582
66604
  {
@@ -11498,6 +11498,28 @@ function toLocalTransformOp(op, containerMatrix, itemId) {
11498
11498
  return op;
11499
11499
  }
11500
11500
  }
11501
+ // src/Overlay/OverlayIcons.ts
11502
+ var OVERLAY_SYMBOL_KEYS = {
11503
+ styleFill: "style.fill",
11504
+ styleStroke: "style.stroke",
11505
+ styleColor: "style.color",
11506
+ styleFontSize: "style.fontSize"
11507
+ };
11508
+ function symbolIcon(key, state) {
11509
+ return state ? { kind: "symbol", key, state } : { kind: "symbol", key };
11510
+ }
11511
+ function styleFillIcon(state) {
11512
+ return symbolIcon(OVERLAY_SYMBOL_KEYS.styleFill, state);
11513
+ }
11514
+ function styleStrokeIcon(state) {
11515
+ return symbolIcon(OVERLAY_SYMBOL_KEYS.styleStroke, state);
11516
+ }
11517
+ function styleColorIcon(state) {
11518
+ return symbolIcon(OVERLAY_SYMBOL_KEYS.styleColor, state);
11519
+ }
11520
+ function styleFontSizeIcon(state) {
11521
+ return symbolIcon(OVERLAY_SYMBOL_KEYS.styleFontSize, state);
11522
+ }
11501
11523
  // src/Overlay/overlayRegistry.ts
11502
11524
  var itemOverlays = {};
11503
11525
  var toolOverlays = {};
@@ -37535,7 +37557,7 @@ var richTextOverlay = {
37535
37557
  {
37536
37558
  id: "text.fontSize",
37537
37559
  label: "Font size",
37538
- icon: { kind: "symbol", key: "text.fontSize" },
37560
+ icon: styleFontSizeIcon(),
37539
37561
  target: "each",
37540
37562
  controls: [
37541
37563
  {
@@ -44032,12 +44054,12 @@ var COLOR_PALETTE = [
44032
44054
  "#118AB2",
44033
44055
  "#7B61FF"
44034
44056
  ];
44035
- var symbolIcon = (key) => ({ kind: "symbol", key });
44057
+ var symbolIcon2 = (key) => ({ kind: "symbol", key });
44036
44058
  var lineStyleOptions = ConnectorLineStyles.map((style) => ({
44037
44059
  id: style,
44038
44060
  label: style[0].toUpperCase() + style.slice(1),
44039
44061
  value: style,
44040
- icon: symbolIcon(`connector.lineStyle.${style}`)
44062
+ icon: symbolIcon2(`connector.lineStyle.${style}`)
44041
44063
  }));
44042
44064
  var lineWidthOptions = ConnectionLineWidths.map((width) => ({
44043
44065
  id: `${width}`,
@@ -44048,13 +44070,13 @@ var pointerOptions = CONNECTOR_POINTER_TYPES.map((pointer) => ({
44048
44070
  id: pointer,
44049
44071
  label: pointer,
44050
44072
  value: pointer,
44051
- icon: symbolIcon(`connector.pointer.${pointer}`)
44073
+ icon: symbolIcon2(`connector.pointer.${pointer}`)
44052
44074
  }));
44053
44075
  var borderStyleOptions = ["solid", "dot", "dash", "longDash"].map((style) => ({
44054
44076
  id: style,
44055
44077
  label: style,
44056
44078
  value: style,
44057
- icon: symbolIcon(`stroke.${style}`)
44079
+ icon: symbolIcon2(`stroke.${style}`)
44058
44080
  }));
44059
44081
  var connectorStyleControls = [
44060
44082
  {
@@ -44109,7 +44131,7 @@ var connectorStyleControls = [
44109
44131
  {
44110
44132
  id: "smartJump",
44111
44133
  label: "Smart jump",
44112
- icon: symbolIcon("connector.smartJump"),
44134
+ icon: symbolIcon2("connector.smartJump"),
44113
44135
  valueSource: { kind: "itemProperty", property: "smartJump" },
44114
44136
  editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
44115
44137
  invoke: { kind: "setProperty", property: "smartJump" }
@@ -44168,7 +44190,7 @@ var connectorToolControls = [
44168
44190
  {
44169
44191
  id: "toolSmartJump",
44170
44192
  label: "Smart jump",
44171
- icon: symbolIcon("connector.smartJump"),
44193
+ icon: symbolIcon2("connector.smartJump"),
44172
44194
  valueSource: { kind: "toolProperty", property: "smartJump" },
44173
44195
  editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
44174
44196
  invoke: { kind: "toolProperty", property: "smartJump" }
@@ -44180,21 +44202,21 @@ var connectorOverlay = {
44180
44202
  {
44181
44203
  id: "connector.switchPointers",
44182
44204
  label: "Switch arrows",
44183
- icon: symbolIcon("connector.switchPointers"),
44205
+ icon: symbolIcon2("connector.switchPointers"),
44184
44206
  target: "selection",
44185
44207
  invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
44186
44208
  },
44187
44209
  {
44188
44210
  id: "connector.style",
44189
44211
  label: "Connector style",
44190
- icon: symbolIcon("connector.style"),
44212
+ icon: symbolIcon2("connector.style"),
44191
44213
  target: "each",
44192
44214
  controls: connectorStyleControls,
44193
44215
  groups: [
44194
44216
  {
44195
44217
  id: "connectorStyle",
44196
44218
  label: "Connector style",
44197
- icon: symbolIcon("connector.style"),
44219
+ icon: symbolIcon2("connector.style"),
44198
44220
  controlIds: connectorStyleControls.map((control) => control.id)
44199
44221
  }
44200
44222
  ]
@@ -44221,7 +44243,7 @@ var addConnectorToolOverlay = {
44221
44243
  {
44222
44244
  id: "connectorToolStyle",
44223
44245
  label: "Connector defaults",
44224
- icon: symbolIcon("connector.style"),
44246
+ icon: symbolIcon2("connector.style"),
44225
44247
  controlIds: connectorToolControls.map((control) => control.id)
44226
44248
  }
44227
44249
  ]
@@ -58367,7 +58389,7 @@ var inlineShapeAsset = (folder, file2 = folder) => ({
58367
58389
  path: `src/Items/Shape/Basic/${folder}/${file2}.icon.svg`,
58368
58390
  mimeType: "image/svg+xml"
58369
58391
  });
58370
- var symbolIcon2 = (key) => ({ kind: "symbol", key });
58392
+ var symbolIcon3 = (key) => ({ kind: "symbol", key });
58371
58393
  var BASIC_INLINE_OPTIONS = [
58372
58394
  { id: "rectangle", label: "Rectangle", value: "Rectangle", icon: inlineShapeAsset("Rectangle") },
58373
58395
  { id: "rounded-rectangle", label: "Rounded rectangle", value: "RoundedRectangle", icon: inlineShapeAsset("RoundedRectangle") },
@@ -58377,48 +58399,48 @@ var BASIC_INLINE_OPTIONS = [
58377
58399
  ];
58378
58400
  var SHAPE_CATALOG_OPTIONS = [
58379
58401
  ...BASIC_INLINE_OPTIONS,
58380
- { id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: symbolIcon2("shape.reversedTriangle") },
58402
+ { id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: symbolIcon3("shape.reversedTriangle") },
58381
58403
  { id: "arrow-left", label: "Arrow left", value: "ArrowLeft", icon: inlineShapeAsset("ArrowLeft") },
58382
58404
  { id: "arrow-right", label: "Arrow right", value: "ArrowRight", icon: inlineShapeAsset("ArrowRight") },
58383
58405
  { id: "arrow-left-right", label: "Arrow left right", value: "ArrowLeftRight", icon: inlineShapeAsset("ArrowLeftRight") },
58384
- { id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: symbolIcon2("shape.arrowBlockLeft") },
58385
- { id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: symbolIcon2("shape.arrowBlockRight") },
58406
+ { id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: symbolIcon3("shape.arrowBlockLeft") },
58407
+ { id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: symbolIcon3("shape.arrowBlockRight") },
58386
58408
  { id: "cloud", label: "Cloud", value: "Cloud", icon: inlineShapeAsset("Cloud") },
58387
58409
  { id: "cross", label: "Cross", value: "Cross", icon: inlineShapeAsset("Cross") },
58388
58410
  { id: "cylinder", label: "Cylinder", value: "Cylinder", icon: inlineShapeAsset("Cylinder") },
58389
58411
  { id: "hexagon", label: "Hexagon", value: "Hexagon", icon: inlineShapeAsset("Hexagon") },
58390
58412
  { id: "octagon", label: "Octagon", value: "Octagon", icon: inlineShapeAsset("Octagon") },
58391
58413
  { id: "parallelogram", label: "Parallelogram", value: "Parallelogram", icon: inlineShapeAsset("Parallelogram") },
58392
- { id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: symbolIcon2("shape.reversedParallelogram") },
58414
+ { id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: symbolIcon3("shape.reversedParallelogram") },
58393
58415
  { id: "pentagon", label: "Pentagon", value: "Pentagon", icon: inlineShapeAsset("Pentagon") },
58394
- { id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: symbolIcon2("shape.predefinedProcess") },
58416
+ { id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: symbolIcon3("shape.predefinedProcess") },
58395
58417
  { id: "speech-bubble", label: "Speech bubble", value: "SpeachBubble", icon: inlineShapeAsset("SpeachBubble") },
58396
58418
  { id: "star", label: "Star", value: "Star", icon: inlineShapeAsset("Star") },
58397
58419
  { id: "trapezoid", label: "Trapezoid", value: "Trapezoid", icon: inlineShapeAsset("Trapezoid") },
58398
58420
  { id: "braces-left", label: "Braces left", value: "BracesLeft", icon: inlineShapeAsset("BracesLeft", "BracesLeft") },
58399
58421
  { id: "braces-right", label: "Braces right", value: "BracesRight", icon: inlineShapeAsset("BracesRight", "BracesRight") },
58400
- { id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: symbolIcon2("shape.bpmn.task") },
58401
- { id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: symbolIcon2("shape.bpmn.gateway") },
58402
- { id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: symbolIcon2("shape.bpmn.gatewayParallel") },
58403
- { id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: symbolIcon2("shape.bpmn.gatewayXor") },
58404
- { id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: symbolIcon2("shape.bpmn.startEvent") },
58405
- { id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: symbolIcon2("shape.bpmn.startEventNoneInterrupting") },
58406
- { id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: symbolIcon2("shape.bpmn.endEvent") },
58407
- { id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: symbolIcon2("shape.bpmn.intermediateEvent") },
58408
- { id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: symbolIcon2("shape.bpmn.intermediateEventNoneInterrupting") },
58409
- { id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: symbolIcon2("shape.bpmn.dataObject") },
58410
- { id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: symbolIcon2("shape.bpmn.dataStore") },
58411
- { id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: symbolIcon2("shape.bpmn.participant") },
58412
- { id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: symbolIcon2("shape.bpmn.transaction") },
58413
- { id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: symbolIcon2("shape.bpmn.eventSubprocess") },
58414
- { id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: symbolIcon2("shape.bpmn.group") },
58415
- { id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: symbolIcon2("shape.bpmn.annotation") }
58422
+ { id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: symbolIcon3("shape.bpmn.task") },
58423
+ { id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: symbolIcon3("shape.bpmn.gateway") },
58424
+ { id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: symbolIcon3("shape.bpmn.gatewayParallel") },
58425
+ { id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: symbolIcon3("shape.bpmn.gatewayXor") },
58426
+ { id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: symbolIcon3("shape.bpmn.startEvent") },
58427
+ { id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: symbolIcon3("shape.bpmn.startEventNoneInterrupting") },
58428
+ { id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: symbolIcon3("shape.bpmn.endEvent") },
58429
+ { id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: symbolIcon3("shape.bpmn.intermediateEvent") },
58430
+ { id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: symbolIcon3("shape.bpmn.intermediateEventNoneInterrupting") },
58431
+ { id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: symbolIcon3("shape.bpmn.dataObject") },
58432
+ { id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: symbolIcon3("shape.bpmn.dataStore") },
58433
+ { id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: symbolIcon3("shape.bpmn.participant") },
58434
+ { id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: symbolIcon3("shape.bpmn.transaction") },
58435
+ { id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: symbolIcon3("shape.bpmn.eventSubprocess") },
58436
+ { id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: symbolIcon3("shape.bpmn.group") },
58437
+ { id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: symbolIcon3("shape.bpmn.annotation") }
58416
58438
  ];
58417
58439
  var BORDER_STYLE_OPTIONS = [
58418
- { id: "solid", label: "Solid", value: "solid", icon: symbolIcon2("stroke.solid") },
58419
- { id: "dot", label: "Dot", value: "dot", icon: symbolIcon2("stroke.dot") },
58420
- { id: "dash", label: "Dash", value: "dash", icon: symbolIcon2("stroke.dash") },
58421
- { id: "long-dash", label: "Long dash", value: "longDash", icon: symbolIcon2("stroke.longDash") }
58440
+ { id: "solid", label: "Solid", value: "solid", icon: symbolIcon3("stroke.solid") },
58441
+ { id: "dot", label: "Dot", value: "dot", icon: symbolIcon3("stroke.dot") },
58442
+ { id: "dash", label: "Dash", value: "dash", icon: symbolIcon3("stroke.dash") },
58443
+ { id: "long-dash", label: "Long dash", value: "longDash", icon: symbolIcon3("stroke.longDash") }
58422
58444
  ];
58423
58445
  var shapeTypeControl = {
58424
58446
  id: "shapeType",
@@ -58441,14 +58463,10 @@ var fillControl = {
58441
58463
  id: "backgroundColor",
58442
58464
  label: "Fill",
58443
58465
  valueSource: { kind: "itemProperty", property: "backgroundColor" },
58444
- icon: {
58445
- kind: "symbol",
58446
- key: "shape.fill",
58447
- state: {
58448
- swatch: { kind: "itemProperty", property: "backgroundColor" },
58449
- note: "UI can render the current fill color as a swatch inside the icon."
58450
- }
58451
- },
58466
+ icon: styleFillIcon({
58467
+ swatch: { kind: "itemProperty", property: "backgroundColor" },
58468
+ note: "UI can render the current fill color as a swatch inside the icon."
58469
+ }),
58452
58470
  editor: {
58453
58471
  kind: "color",
58454
58472
  palette: COLOR_PALETTE2,
@@ -58499,7 +58517,7 @@ var shapeOverlay = {
58499
58517
  {
58500
58518
  id: "shape.shapeType",
58501
58519
  label: "Shape type",
58502
- icon: symbolIcon2("shape.type"),
58520
+ icon: symbolIcon3("shape.type"),
58503
58521
  target: "each",
58504
58522
  controls: [shapeTypeControl]
58505
58523
  },
@@ -58513,14 +58531,14 @@ var shapeOverlay = {
58513
58531
  {
58514
58532
  id: "shape.strokeStyle",
58515
58533
  label: "Stroke style",
58516
- icon: symbolIcon2("shape.stroke"),
58534
+ icon: styleStrokeIcon(),
58517
58535
  target: "each",
58518
58536
  controls: strokeControls,
58519
58537
  groups: [
58520
58538
  {
58521
58539
  id: "shapeStrokeStyle",
58522
58540
  label: "Stroke style",
58523
- icon: symbolIcon2("shape.stroke"),
58541
+ icon: styleStrokeIcon(),
58524
58542
  controlIds: strokeControls.map((control) => control.id)
58525
58543
  }
58526
58544
  ]
@@ -63894,11 +63912,9 @@ var diceOverlay = {
63894
63912
  {
63895
63913
  id: "dice.fill",
63896
63914
  label: "Fill",
63897
- icon: {
63898
- kind: "symbol",
63899
- key: "shape.fill",
63900
- state: { swatch: { kind: "itemProperty", property: "backgroundColor" } }
63901
- },
63915
+ icon: styleFillIcon({
63916
+ swatch: { kind: "itemProperty", property: "backgroundColor" }
63917
+ }),
63902
63918
  target: "each",
63903
63919
  controls: [
63904
63920
  {
@@ -75330,6 +75346,11 @@ export {
75330
75346
  toFiniteNumber,
75331
75347
  tempStorage,
75332
75348
  tagByType,
75349
+ symbolIcon,
75350
+ styleStrokeIcon,
75351
+ styleFontSizeIcon,
75352
+ styleFillIcon,
75353
+ styleColorIcon,
75333
75354
  stickerColors,
75334
75355
  srgbChannelToLinear,
75335
75356
  sha256,
@@ -75456,6 +75477,7 @@ export {
75456
75477
  PRESENCE_CURSOR_THROTTLE,
75457
75478
  PRESENCE_CLEANUP_USER_TIMER,
75458
75479
  PRESENCE_CLEANUP_IDLE_TIMER,
75480
+ OVERLAY_SYMBOL_KEYS,
75459
75481
  MiroItemConverter,
75460
75482
  Mbr,
75461
75483
  Matrix,