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/browser.js +75 -53
- package/dist/cjs/index.js +75 -53
- package/dist/cjs/node.js +75 -53
- package/dist/esm/browser.js +75 -53
- package/dist/esm/index.js +75 -53
- package/dist/esm/node.js +75 -53
- package/dist/types/Items/Dice/DiceOverlay.d.ts +1 -1
- package/dist/types/Items/RichText/RichTextOverlay.d.ts +1 -1
- package/dist/types/Items/Shape/ShapeOverlay.d.ts +1 -1
- package/dist/types/Overlay/OverlayIcons.d.ts +12 -0
- package/dist/types/Overlay/index.d.ts +1 -0
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -639,6 +639,11 @@ __export(exports_browser, {
|
|
|
639
639
|
toFiniteNumber: () => toFiniteNumber,
|
|
640
640
|
tempStorage: () => tempStorage,
|
|
641
641
|
tagByType: () => tagByType,
|
|
642
|
+
symbolIcon: () => symbolIcon,
|
|
643
|
+
styleStrokeIcon: () => styleStrokeIcon,
|
|
644
|
+
styleFontSizeIcon: () => styleFontSizeIcon,
|
|
645
|
+
styleFillIcon: () => styleFillIcon,
|
|
646
|
+
styleColorIcon: () => styleColorIcon,
|
|
642
647
|
stickerColors: () => stickerColors,
|
|
643
648
|
srgbChannelToLinear: () => srgbChannelToLinear,
|
|
644
649
|
sha256: () => sha256,
|
|
@@ -765,6 +770,7 @@ __export(exports_browser, {
|
|
|
765
770
|
PRESENCE_CURSOR_THROTTLE: () => PRESENCE_CURSOR_THROTTLE,
|
|
766
771
|
PRESENCE_CLEANUP_USER_TIMER: () => PRESENCE_CLEANUP_USER_TIMER,
|
|
767
772
|
PRESENCE_CLEANUP_IDLE_TIMER: () => PRESENCE_CLEANUP_IDLE_TIMER,
|
|
773
|
+
OVERLAY_SYMBOL_KEYS: () => OVERLAY_SYMBOL_KEYS,
|
|
768
774
|
MiroItemConverter: () => MiroItemConverter,
|
|
769
775
|
Mbr: () => Mbr,
|
|
770
776
|
Matrix: () => Matrix,
|
|
@@ -11711,6 +11717,28 @@ function toLocalTransformOp(op, containerMatrix, itemId) {
|
|
|
11711
11717
|
return op;
|
|
11712
11718
|
}
|
|
11713
11719
|
}
|
|
11720
|
+
// src/Overlay/OverlayIcons.ts
|
|
11721
|
+
var OVERLAY_SYMBOL_KEYS = {
|
|
11722
|
+
styleFill: "style.fill",
|
|
11723
|
+
styleStroke: "style.stroke",
|
|
11724
|
+
styleColor: "style.color",
|
|
11725
|
+
styleFontSize: "style.fontSize"
|
|
11726
|
+
};
|
|
11727
|
+
function symbolIcon(key, state) {
|
|
11728
|
+
return state ? { kind: "symbol", key, state } : { kind: "symbol", key };
|
|
11729
|
+
}
|
|
11730
|
+
function styleFillIcon(state) {
|
|
11731
|
+
return symbolIcon(OVERLAY_SYMBOL_KEYS.styleFill, state);
|
|
11732
|
+
}
|
|
11733
|
+
function styleStrokeIcon(state) {
|
|
11734
|
+
return symbolIcon(OVERLAY_SYMBOL_KEYS.styleStroke, state);
|
|
11735
|
+
}
|
|
11736
|
+
function styleColorIcon(state) {
|
|
11737
|
+
return symbolIcon(OVERLAY_SYMBOL_KEYS.styleColor, state);
|
|
11738
|
+
}
|
|
11739
|
+
function styleFontSizeIcon(state) {
|
|
11740
|
+
return symbolIcon(OVERLAY_SYMBOL_KEYS.styleFontSize, state);
|
|
11741
|
+
}
|
|
11714
11742
|
// src/Overlay/overlayRegistry.ts
|
|
11715
11743
|
var itemOverlays = {};
|
|
11716
11744
|
var toolOverlays = {};
|
|
@@ -37740,7 +37768,7 @@ var richTextOverlay = {
|
|
|
37740
37768
|
{
|
|
37741
37769
|
id: "text.fontSize",
|
|
37742
37770
|
label: "Font size",
|
|
37743
|
-
icon:
|
|
37771
|
+
icon: styleFontSizeIcon(),
|
|
37744
37772
|
target: "each",
|
|
37745
37773
|
controls: [
|
|
37746
37774
|
{
|
|
@@ -44237,12 +44265,12 @@ var COLOR_PALETTE = [
|
|
|
44237
44265
|
"#118AB2",
|
|
44238
44266
|
"#7B61FF"
|
|
44239
44267
|
];
|
|
44240
|
-
var
|
|
44268
|
+
var symbolIcon2 = (key) => ({ kind: "symbol", key });
|
|
44241
44269
|
var lineStyleOptions = ConnectorLineStyles.map((style) => ({
|
|
44242
44270
|
id: style,
|
|
44243
44271
|
label: style[0].toUpperCase() + style.slice(1),
|
|
44244
44272
|
value: style,
|
|
44245
|
-
icon:
|
|
44273
|
+
icon: symbolIcon2(`connector.lineStyle.${style}`)
|
|
44246
44274
|
}));
|
|
44247
44275
|
var lineWidthOptions = ConnectionLineWidths.map((width) => ({
|
|
44248
44276
|
id: `${width}`,
|
|
@@ -44253,13 +44281,13 @@ var pointerOptions = CONNECTOR_POINTER_TYPES.map((pointer) => ({
|
|
|
44253
44281
|
id: pointer,
|
|
44254
44282
|
label: pointer,
|
|
44255
44283
|
value: pointer,
|
|
44256
|
-
icon:
|
|
44284
|
+
icon: symbolIcon2(`connector.pointer.${pointer}`)
|
|
44257
44285
|
}));
|
|
44258
44286
|
var borderStyleOptions = ["solid", "dot", "dash", "longDash"].map((style) => ({
|
|
44259
44287
|
id: style,
|
|
44260
44288
|
label: style,
|
|
44261
44289
|
value: style,
|
|
44262
|
-
icon:
|
|
44290
|
+
icon: symbolIcon2(`stroke.${style}`)
|
|
44263
44291
|
}));
|
|
44264
44292
|
var connectorStyleControls = [
|
|
44265
44293
|
{
|
|
@@ -44314,7 +44342,7 @@ var connectorStyleControls = [
|
|
|
44314
44342
|
{
|
|
44315
44343
|
id: "smartJump",
|
|
44316
44344
|
label: "Smart jump",
|
|
44317
|
-
icon:
|
|
44345
|
+
icon: symbolIcon2("connector.smartJump"),
|
|
44318
44346
|
valueSource: { kind: "itemProperty", property: "smartJump" },
|
|
44319
44347
|
editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
|
|
44320
44348
|
invoke: { kind: "setProperty", property: "smartJump" }
|
|
@@ -44373,7 +44401,7 @@ var connectorToolControls = [
|
|
|
44373
44401
|
{
|
|
44374
44402
|
id: "toolSmartJump",
|
|
44375
44403
|
label: "Smart jump",
|
|
44376
|
-
icon:
|
|
44404
|
+
icon: symbolIcon2("connector.smartJump"),
|
|
44377
44405
|
valueSource: { kind: "toolProperty", property: "smartJump" },
|
|
44378
44406
|
editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
|
|
44379
44407
|
invoke: { kind: "toolProperty", property: "smartJump" }
|
|
@@ -44385,21 +44413,21 @@ var connectorOverlay = {
|
|
|
44385
44413
|
{
|
|
44386
44414
|
id: "connector.switchPointers",
|
|
44387
44415
|
label: "Switch arrows",
|
|
44388
|
-
icon:
|
|
44416
|
+
icon: symbolIcon2("connector.switchPointers"),
|
|
44389
44417
|
target: "selection",
|
|
44390
44418
|
invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
|
|
44391
44419
|
},
|
|
44392
44420
|
{
|
|
44393
44421
|
id: "connector.style",
|
|
44394
44422
|
label: "Connector style",
|
|
44395
|
-
icon:
|
|
44423
|
+
icon: symbolIcon2("connector.style"),
|
|
44396
44424
|
target: "each",
|
|
44397
44425
|
controls: connectorStyleControls,
|
|
44398
44426
|
groups: [
|
|
44399
44427
|
{
|
|
44400
44428
|
id: "connectorStyle",
|
|
44401
44429
|
label: "Connector style",
|
|
44402
|
-
icon:
|
|
44430
|
+
icon: symbolIcon2("connector.style"),
|
|
44403
44431
|
controlIds: connectorStyleControls.map((control) => control.id)
|
|
44404
44432
|
}
|
|
44405
44433
|
]
|
|
@@ -44426,7 +44454,7 @@ var addConnectorToolOverlay = {
|
|
|
44426
44454
|
{
|
|
44427
44455
|
id: "connectorToolStyle",
|
|
44428
44456
|
label: "Connector defaults",
|
|
44429
|
-
icon:
|
|
44457
|
+
icon: symbolIcon2("connector.style"),
|
|
44430
44458
|
controlIds: connectorToolControls.map((control) => control.id)
|
|
44431
44459
|
}
|
|
44432
44460
|
]
|
|
@@ -58572,7 +58600,7 @@ var inlineShapeAsset = (folder, file2 = folder) => ({
|
|
|
58572
58600
|
path: `src/Items/Shape/Basic/${folder}/${file2}.icon.svg`,
|
|
58573
58601
|
mimeType: "image/svg+xml"
|
|
58574
58602
|
});
|
|
58575
|
-
var
|
|
58603
|
+
var symbolIcon3 = (key) => ({ kind: "symbol", key });
|
|
58576
58604
|
var BASIC_INLINE_OPTIONS = [
|
|
58577
58605
|
{ id: "rectangle", label: "Rectangle", value: "Rectangle", icon: inlineShapeAsset("Rectangle") },
|
|
58578
58606
|
{ id: "rounded-rectangle", label: "Rounded rectangle", value: "RoundedRectangle", icon: inlineShapeAsset("RoundedRectangle") },
|
|
@@ -58582,48 +58610,48 @@ var BASIC_INLINE_OPTIONS = [
|
|
|
58582
58610
|
];
|
|
58583
58611
|
var SHAPE_CATALOG_OPTIONS = [
|
|
58584
58612
|
...BASIC_INLINE_OPTIONS,
|
|
58585
|
-
{ id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon:
|
|
58613
|
+
{ id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: symbolIcon3("shape.reversedTriangle") },
|
|
58586
58614
|
{ id: "arrow-left", label: "Arrow left", value: "ArrowLeft", icon: inlineShapeAsset("ArrowLeft") },
|
|
58587
58615
|
{ id: "arrow-right", label: "Arrow right", value: "ArrowRight", icon: inlineShapeAsset("ArrowRight") },
|
|
58588
58616
|
{ id: "arrow-left-right", label: "Arrow left right", value: "ArrowLeftRight", icon: inlineShapeAsset("ArrowLeftRight") },
|
|
58589
|
-
{ id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon:
|
|
58590
|
-
{ id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon:
|
|
58617
|
+
{ id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: symbolIcon3("shape.arrowBlockLeft") },
|
|
58618
|
+
{ id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: symbolIcon3("shape.arrowBlockRight") },
|
|
58591
58619
|
{ id: "cloud", label: "Cloud", value: "Cloud", icon: inlineShapeAsset("Cloud") },
|
|
58592
58620
|
{ id: "cross", label: "Cross", value: "Cross", icon: inlineShapeAsset("Cross") },
|
|
58593
58621
|
{ id: "cylinder", label: "Cylinder", value: "Cylinder", icon: inlineShapeAsset("Cylinder") },
|
|
58594
58622
|
{ id: "hexagon", label: "Hexagon", value: "Hexagon", icon: inlineShapeAsset("Hexagon") },
|
|
58595
58623
|
{ id: "octagon", label: "Octagon", value: "Octagon", icon: inlineShapeAsset("Octagon") },
|
|
58596
58624
|
{ id: "parallelogram", label: "Parallelogram", value: "Parallelogram", icon: inlineShapeAsset("Parallelogram") },
|
|
58597
|
-
{ id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon:
|
|
58625
|
+
{ id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: symbolIcon3("shape.reversedParallelogram") },
|
|
58598
58626
|
{ id: "pentagon", label: "Pentagon", value: "Pentagon", icon: inlineShapeAsset("Pentagon") },
|
|
58599
|
-
{ id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon:
|
|
58627
|
+
{ id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: symbolIcon3("shape.predefinedProcess") },
|
|
58600
58628
|
{ id: "speech-bubble", label: "Speech bubble", value: "SpeachBubble", icon: inlineShapeAsset("SpeachBubble") },
|
|
58601
58629
|
{ id: "star", label: "Star", value: "Star", icon: inlineShapeAsset("Star") },
|
|
58602
58630
|
{ id: "trapezoid", label: "Trapezoid", value: "Trapezoid", icon: inlineShapeAsset("Trapezoid") },
|
|
58603
58631
|
{ id: "braces-left", label: "Braces left", value: "BracesLeft", icon: inlineShapeAsset("BracesLeft", "BracesLeft") },
|
|
58604
58632
|
{ id: "braces-right", label: "Braces right", value: "BracesRight", icon: inlineShapeAsset("BracesRight", "BracesRight") },
|
|
58605
|
-
{ id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon:
|
|
58606
|
-
{ id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon:
|
|
58607
|
-
{ id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon:
|
|
58608
|
-
{ id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon:
|
|
58609
|
-
{ id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon:
|
|
58610
|
-
{ id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon:
|
|
58611
|
-
{ id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon:
|
|
58612
|
-
{ id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon:
|
|
58613
|
-
{ id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon:
|
|
58614
|
-
{ id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon:
|
|
58615
|
-
{ id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon:
|
|
58616
|
-
{ id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon:
|
|
58617
|
-
{ id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon:
|
|
58618
|
-
{ id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon:
|
|
58619
|
-
{ id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon:
|
|
58620
|
-
{ id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon:
|
|
58633
|
+
{ id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: symbolIcon3("shape.bpmn.task") },
|
|
58634
|
+
{ id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: symbolIcon3("shape.bpmn.gateway") },
|
|
58635
|
+
{ id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: symbolIcon3("shape.bpmn.gatewayParallel") },
|
|
58636
|
+
{ id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: symbolIcon3("shape.bpmn.gatewayXor") },
|
|
58637
|
+
{ id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: symbolIcon3("shape.bpmn.startEvent") },
|
|
58638
|
+
{ id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: symbolIcon3("shape.bpmn.startEventNoneInterrupting") },
|
|
58639
|
+
{ id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: symbolIcon3("shape.bpmn.endEvent") },
|
|
58640
|
+
{ id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: symbolIcon3("shape.bpmn.intermediateEvent") },
|
|
58641
|
+
{ id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: symbolIcon3("shape.bpmn.intermediateEventNoneInterrupting") },
|
|
58642
|
+
{ id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: symbolIcon3("shape.bpmn.dataObject") },
|
|
58643
|
+
{ id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: symbolIcon3("shape.bpmn.dataStore") },
|
|
58644
|
+
{ id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: symbolIcon3("shape.bpmn.participant") },
|
|
58645
|
+
{ id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: symbolIcon3("shape.bpmn.transaction") },
|
|
58646
|
+
{ id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: symbolIcon3("shape.bpmn.eventSubprocess") },
|
|
58647
|
+
{ id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: symbolIcon3("shape.bpmn.group") },
|
|
58648
|
+
{ id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: symbolIcon3("shape.bpmn.annotation") }
|
|
58621
58649
|
];
|
|
58622
58650
|
var BORDER_STYLE_OPTIONS = [
|
|
58623
|
-
{ id: "solid", label: "Solid", value: "solid", icon:
|
|
58624
|
-
{ id: "dot", label: "Dot", value: "dot", icon:
|
|
58625
|
-
{ id: "dash", label: "Dash", value: "dash", icon:
|
|
58626
|
-
{ id: "long-dash", label: "Long dash", value: "longDash", icon:
|
|
58651
|
+
{ id: "solid", label: "Solid", value: "solid", icon: symbolIcon3("stroke.solid") },
|
|
58652
|
+
{ id: "dot", label: "Dot", value: "dot", icon: symbolIcon3("stroke.dot") },
|
|
58653
|
+
{ id: "dash", label: "Dash", value: "dash", icon: symbolIcon3("stroke.dash") },
|
|
58654
|
+
{ id: "long-dash", label: "Long dash", value: "longDash", icon: symbolIcon3("stroke.longDash") }
|
|
58627
58655
|
];
|
|
58628
58656
|
var shapeTypeControl = {
|
|
58629
58657
|
id: "shapeType",
|
|
@@ -58646,14 +58674,10 @@ var fillControl = {
|
|
|
58646
58674
|
id: "backgroundColor",
|
|
58647
58675
|
label: "Fill",
|
|
58648
58676
|
valueSource: { kind: "itemProperty", property: "backgroundColor" },
|
|
58649
|
-
icon: {
|
|
58650
|
-
kind: "
|
|
58651
|
-
|
|
58652
|
-
|
|
58653
|
-
swatch: { kind: "itemProperty", property: "backgroundColor" },
|
|
58654
|
-
note: "UI can render the current fill color as a swatch inside the icon."
|
|
58655
|
-
}
|
|
58656
|
-
},
|
|
58677
|
+
icon: styleFillIcon({
|
|
58678
|
+
swatch: { kind: "itemProperty", property: "backgroundColor" },
|
|
58679
|
+
note: "UI can render the current fill color as a swatch inside the icon."
|
|
58680
|
+
}),
|
|
58657
58681
|
editor: {
|
|
58658
58682
|
kind: "color",
|
|
58659
58683
|
palette: COLOR_PALETTE2,
|
|
@@ -58704,7 +58728,7 @@ var shapeOverlay = {
|
|
|
58704
58728
|
{
|
|
58705
58729
|
id: "shape.shapeType",
|
|
58706
58730
|
label: "Shape type",
|
|
58707
|
-
icon:
|
|
58731
|
+
icon: symbolIcon3("shape.type"),
|
|
58708
58732
|
target: "each",
|
|
58709
58733
|
controls: [shapeTypeControl]
|
|
58710
58734
|
},
|
|
@@ -58718,14 +58742,14 @@ var shapeOverlay = {
|
|
|
58718
58742
|
{
|
|
58719
58743
|
id: "shape.strokeStyle",
|
|
58720
58744
|
label: "Stroke style",
|
|
58721
|
-
icon:
|
|
58745
|
+
icon: styleStrokeIcon(),
|
|
58722
58746
|
target: "each",
|
|
58723
58747
|
controls: strokeControls,
|
|
58724
58748
|
groups: [
|
|
58725
58749
|
{
|
|
58726
58750
|
id: "shapeStrokeStyle",
|
|
58727
58751
|
label: "Stroke style",
|
|
58728
|
-
icon:
|
|
58752
|
+
icon: styleStrokeIcon(),
|
|
58729
58753
|
controlIds: strokeControls.map((control) => control.id)
|
|
58730
58754
|
}
|
|
58731
58755
|
]
|
|
@@ -64099,11 +64123,9 @@ var diceOverlay = {
|
|
|
64099
64123
|
{
|
|
64100
64124
|
id: "dice.fill",
|
|
64101
64125
|
label: "Fill",
|
|
64102
|
-
icon: {
|
|
64103
|
-
kind: "
|
|
64104
|
-
|
|
64105
|
-
state: { swatch: { kind: "itemProperty", property: "backgroundColor" } }
|
|
64106
|
-
},
|
|
64126
|
+
icon: styleFillIcon({
|
|
64127
|
+
swatch: { kind: "itemProperty", property: "backgroundColor" }
|
|
64128
|
+
}),
|
|
64107
64129
|
target: "each",
|
|
64108
64130
|
controls: [
|
|
64109
64131
|
{
|
package/dist/cjs/index.js
CHANGED
|
@@ -639,6 +639,11 @@ __export(exports_src, {
|
|
|
639
639
|
toFiniteNumber: () => toFiniteNumber,
|
|
640
640
|
tempStorage: () => tempStorage,
|
|
641
641
|
tagByType: () => tagByType,
|
|
642
|
+
symbolIcon: () => symbolIcon,
|
|
643
|
+
styleStrokeIcon: () => styleStrokeIcon,
|
|
644
|
+
styleFontSizeIcon: () => styleFontSizeIcon,
|
|
645
|
+
styleFillIcon: () => styleFillIcon,
|
|
646
|
+
styleColorIcon: () => styleColorIcon,
|
|
642
647
|
stickerColors: () => stickerColors,
|
|
643
648
|
srgbChannelToLinear: () => srgbChannelToLinear,
|
|
644
649
|
sha256: () => sha256,
|
|
@@ -765,6 +770,7 @@ __export(exports_src, {
|
|
|
765
770
|
PRESENCE_CURSOR_THROTTLE: () => PRESENCE_CURSOR_THROTTLE,
|
|
766
771
|
PRESENCE_CLEANUP_USER_TIMER: () => PRESENCE_CLEANUP_USER_TIMER,
|
|
767
772
|
PRESENCE_CLEANUP_IDLE_TIMER: () => PRESENCE_CLEANUP_IDLE_TIMER,
|
|
773
|
+
OVERLAY_SYMBOL_KEYS: () => OVERLAY_SYMBOL_KEYS,
|
|
768
774
|
MiroItemConverter: () => MiroItemConverter,
|
|
769
775
|
Mbr: () => Mbr,
|
|
770
776
|
Matrix: () => Matrix,
|
|
@@ -11711,6 +11717,28 @@ function toLocalTransformOp(op, containerMatrix, itemId) {
|
|
|
11711
11717
|
return op;
|
|
11712
11718
|
}
|
|
11713
11719
|
}
|
|
11720
|
+
// src/Overlay/OverlayIcons.ts
|
|
11721
|
+
var OVERLAY_SYMBOL_KEYS = {
|
|
11722
|
+
styleFill: "style.fill",
|
|
11723
|
+
styleStroke: "style.stroke",
|
|
11724
|
+
styleColor: "style.color",
|
|
11725
|
+
styleFontSize: "style.fontSize"
|
|
11726
|
+
};
|
|
11727
|
+
function symbolIcon(key, state) {
|
|
11728
|
+
return state ? { kind: "symbol", key, state } : { kind: "symbol", key };
|
|
11729
|
+
}
|
|
11730
|
+
function styleFillIcon(state) {
|
|
11731
|
+
return symbolIcon(OVERLAY_SYMBOL_KEYS.styleFill, state);
|
|
11732
|
+
}
|
|
11733
|
+
function styleStrokeIcon(state) {
|
|
11734
|
+
return symbolIcon(OVERLAY_SYMBOL_KEYS.styleStroke, state);
|
|
11735
|
+
}
|
|
11736
|
+
function styleColorIcon(state) {
|
|
11737
|
+
return symbolIcon(OVERLAY_SYMBOL_KEYS.styleColor, state);
|
|
11738
|
+
}
|
|
11739
|
+
function styleFontSizeIcon(state) {
|
|
11740
|
+
return symbolIcon(OVERLAY_SYMBOL_KEYS.styleFontSize, state);
|
|
11741
|
+
}
|
|
11714
11742
|
// src/Overlay/overlayRegistry.ts
|
|
11715
11743
|
var itemOverlays = {};
|
|
11716
11744
|
var toolOverlays = {};
|
|
@@ -37740,7 +37768,7 @@ var richTextOverlay = {
|
|
|
37740
37768
|
{
|
|
37741
37769
|
id: "text.fontSize",
|
|
37742
37770
|
label: "Font size",
|
|
37743
|
-
icon:
|
|
37771
|
+
icon: styleFontSizeIcon(),
|
|
37744
37772
|
target: "each",
|
|
37745
37773
|
controls: [
|
|
37746
37774
|
{
|
|
@@ -44237,12 +44265,12 @@ var COLOR_PALETTE = [
|
|
|
44237
44265
|
"#118AB2",
|
|
44238
44266
|
"#7B61FF"
|
|
44239
44267
|
];
|
|
44240
|
-
var
|
|
44268
|
+
var symbolIcon2 = (key) => ({ kind: "symbol", key });
|
|
44241
44269
|
var lineStyleOptions = ConnectorLineStyles.map((style) => ({
|
|
44242
44270
|
id: style,
|
|
44243
44271
|
label: style[0].toUpperCase() + style.slice(1),
|
|
44244
44272
|
value: style,
|
|
44245
|
-
icon:
|
|
44273
|
+
icon: symbolIcon2(`connector.lineStyle.${style}`)
|
|
44246
44274
|
}));
|
|
44247
44275
|
var lineWidthOptions = ConnectionLineWidths.map((width) => ({
|
|
44248
44276
|
id: `${width}`,
|
|
@@ -44253,13 +44281,13 @@ var pointerOptions = CONNECTOR_POINTER_TYPES.map((pointer) => ({
|
|
|
44253
44281
|
id: pointer,
|
|
44254
44282
|
label: pointer,
|
|
44255
44283
|
value: pointer,
|
|
44256
|
-
icon:
|
|
44284
|
+
icon: symbolIcon2(`connector.pointer.${pointer}`)
|
|
44257
44285
|
}));
|
|
44258
44286
|
var borderStyleOptions = ["solid", "dot", "dash", "longDash"].map((style) => ({
|
|
44259
44287
|
id: style,
|
|
44260
44288
|
label: style,
|
|
44261
44289
|
value: style,
|
|
44262
|
-
icon:
|
|
44290
|
+
icon: symbolIcon2(`stroke.${style}`)
|
|
44263
44291
|
}));
|
|
44264
44292
|
var connectorStyleControls = [
|
|
44265
44293
|
{
|
|
@@ -44314,7 +44342,7 @@ var connectorStyleControls = [
|
|
|
44314
44342
|
{
|
|
44315
44343
|
id: "smartJump",
|
|
44316
44344
|
label: "Smart jump",
|
|
44317
|
-
icon:
|
|
44345
|
+
icon: symbolIcon2("connector.smartJump"),
|
|
44318
44346
|
valueSource: { kind: "itemProperty", property: "smartJump" },
|
|
44319
44347
|
editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
|
|
44320
44348
|
invoke: { kind: "setProperty", property: "smartJump" }
|
|
@@ -44373,7 +44401,7 @@ var connectorToolControls = [
|
|
|
44373
44401
|
{
|
|
44374
44402
|
id: "toolSmartJump",
|
|
44375
44403
|
label: "Smart jump",
|
|
44376
|
-
icon:
|
|
44404
|
+
icon: symbolIcon2("connector.smartJump"),
|
|
44377
44405
|
valueSource: { kind: "toolProperty", property: "smartJump" },
|
|
44378
44406
|
editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
|
|
44379
44407
|
invoke: { kind: "toolProperty", property: "smartJump" }
|
|
@@ -44385,21 +44413,21 @@ var connectorOverlay = {
|
|
|
44385
44413
|
{
|
|
44386
44414
|
id: "connector.switchPointers",
|
|
44387
44415
|
label: "Switch arrows",
|
|
44388
|
-
icon:
|
|
44416
|
+
icon: symbolIcon2("connector.switchPointers"),
|
|
44389
44417
|
target: "selection",
|
|
44390
44418
|
invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
|
|
44391
44419
|
},
|
|
44392
44420
|
{
|
|
44393
44421
|
id: "connector.style",
|
|
44394
44422
|
label: "Connector style",
|
|
44395
|
-
icon:
|
|
44423
|
+
icon: symbolIcon2("connector.style"),
|
|
44396
44424
|
target: "each",
|
|
44397
44425
|
controls: connectorStyleControls,
|
|
44398
44426
|
groups: [
|
|
44399
44427
|
{
|
|
44400
44428
|
id: "connectorStyle",
|
|
44401
44429
|
label: "Connector style",
|
|
44402
|
-
icon:
|
|
44430
|
+
icon: symbolIcon2("connector.style"),
|
|
44403
44431
|
controlIds: connectorStyleControls.map((control) => control.id)
|
|
44404
44432
|
}
|
|
44405
44433
|
]
|
|
@@ -44426,7 +44454,7 @@ var addConnectorToolOverlay = {
|
|
|
44426
44454
|
{
|
|
44427
44455
|
id: "connectorToolStyle",
|
|
44428
44456
|
label: "Connector defaults",
|
|
44429
|
-
icon:
|
|
44457
|
+
icon: symbolIcon2("connector.style"),
|
|
44430
44458
|
controlIds: connectorToolControls.map((control) => control.id)
|
|
44431
44459
|
}
|
|
44432
44460
|
]
|
|
@@ -58572,7 +58600,7 @@ var inlineShapeAsset = (folder, file2 = folder) => ({
|
|
|
58572
58600
|
path: `src/Items/Shape/Basic/${folder}/${file2}.icon.svg`,
|
|
58573
58601
|
mimeType: "image/svg+xml"
|
|
58574
58602
|
});
|
|
58575
|
-
var
|
|
58603
|
+
var symbolIcon3 = (key) => ({ kind: "symbol", key });
|
|
58576
58604
|
var BASIC_INLINE_OPTIONS = [
|
|
58577
58605
|
{ id: "rectangle", label: "Rectangle", value: "Rectangle", icon: inlineShapeAsset("Rectangle") },
|
|
58578
58606
|
{ id: "rounded-rectangle", label: "Rounded rectangle", value: "RoundedRectangle", icon: inlineShapeAsset("RoundedRectangle") },
|
|
@@ -58582,48 +58610,48 @@ var BASIC_INLINE_OPTIONS = [
|
|
|
58582
58610
|
];
|
|
58583
58611
|
var SHAPE_CATALOG_OPTIONS = [
|
|
58584
58612
|
...BASIC_INLINE_OPTIONS,
|
|
58585
|
-
{ id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon:
|
|
58613
|
+
{ id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: symbolIcon3("shape.reversedTriangle") },
|
|
58586
58614
|
{ id: "arrow-left", label: "Arrow left", value: "ArrowLeft", icon: inlineShapeAsset("ArrowLeft") },
|
|
58587
58615
|
{ id: "arrow-right", label: "Arrow right", value: "ArrowRight", icon: inlineShapeAsset("ArrowRight") },
|
|
58588
58616
|
{ id: "arrow-left-right", label: "Arrow left right", value: "ArrowLeftRight", icon: inlineShapeAsset("ArrowLeftRight") },
|
|
58589
|
-
{ id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon:
|
|
58590
|
-
{ id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon:
|
|
58617
|
+
{ id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: symbolIcon3("shape.arrowBlockLeft") },
|
|
58618
|
+
{ id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: symbolIcon3("shape.arrowBlockRight") },
|
|
58591
58619
|
{ id: "cloud", label: "Cloud", value: "Cloud", icon: inlineShapeAsset("Cloud") },
|
|
58592
58620
|
{ id: "cross", label: "Cross", value: "Cross", icon: inlineShapeAsset("Cross") },
|
|
58593
58621
|
{ id: "cylinder", label: "Cylinder", value: "Cylinder", icon: inlineShapeAsset("Cylinder") },
|
|
58594
58622
|
{ id: "hexagon", label: "Hexagon", value: "Hexagon", icon: inlineShapeAsset("Hexagon") },
|
|
58595
58623
|
{ id: "octagon", label: "Octagon", value: "Octagon", icon: inlineShapeAsset("Octagon") },
|
|
58596
58624
|
{ id: "parallelogram", label: "Parallelogram", value: "Parallelogram", icon: inlineShapeAsset("Parallelogram") },
|
|
58597
|
-
{ id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon:
|
|
58625
|
+
{ id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: symbolIcon3("shape.reversedParallelogram") },
|
|
58598
58626
|
{ id: "pentagon", label: "Pentagon", value: "Pentagon", icon: inlineShapeAsset("Pentagon") },
|
|
58599
|
-
{ id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon:
|
|
58627
|
+
{ id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: symbolIcon3("shape.predefinedProcess") },
|
|
58600
58628
|
{ id: "speech-bubble", label: "Speech bubble", value: "SpeachBubble", icon: inlineShapeAsset("SpeachBubble") },
|
|
58601
58629
|
{ id: "star", label: "Star", value: "Star", icon: inlineShapeAsset("Star") },
|
|
58602
58630
|
{ id: "trapezoid", label: "Trapezoid", value: "Trapezoid", icon: inlineShapeAsset("Trapezoid") },
|
|
58603
58631
|
{ id: "braces-left", label: "Braces left", value: "BracesLeft", icon: inlineShapeAsset("BracesLeft", "BracesLeft") },
|
|
58604
58632
|
{ id: "braces-right", label: "Braces right", value: "BracesRight", icon: inlineShapeAsset("BracesRight", "BracesRight") },
|
|
58605
|
-
{ id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon:
|
|
58606
|
-
{ id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon:
|
|
58607
|
-
{ id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon:
|
|
58608
|
-
{ id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon:
|
|
58609
|
-
{ id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon:
|
|
58610
|
-
{ id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon:
|
|
58611
|
-
{ id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon:
|
|
58612
|
-
{ id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon:
|
|
58613
|
-
{ id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon:
|
|
58614
|
-
{ id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon:
|
|
58615
|
-
{ id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon:
|
|
58616
|
-
{ id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon:
|
|
58617
|
-
{ id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon:
|
|
58618
|
-
{ id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon:
|
|
58619
|
-
{ id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon:
|
|
58620
|
-
{ id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon:
|
|
58633
|
+
{ id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: symbolIcon3("shape.bpmn.task") },
|
|
58634
|
+
{ id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: symbolIcon3("shape.bpmn.gateway") },
|
|
58635
|
+
{ id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: symbolIcon3("shape.bpmn.gatewayParallel") },
|
|
58636
|
+
{ id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: symbolIcon3("shape.bpmn.gatewayXor") },
|
|
58637
|
+
{ id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: symbolIcon3("shape.bpmn.startEvent") },
|
|
58638
|
+
{ id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: symbolIcon3("shape.bpmn.startEventNoneInterrupting") },
|
|
58639
|
+
{ id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: symbolIcon3("shape.bpmn.endEvent") },
|
|
58640
|
+
{ id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: symbolIcon3("shape.bpmn.intermediateEvent") },
|
|
58641
|
+
{ id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: symbolIcon3("shape.bpmn.intermediateEventNoneInterrupting") },
|
|
58642
|
+
{ id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: symbolIcon3("shape.bpmn.dataObject") },
|
|
58643
|
+
{ id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: symbolIcon3("shape.bpmn.dataStore") },
|
|
58644
|
+
{ id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: symbolIcon3("shape.bpmn.participant") },
|
|
58645
|
+
{ id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: symbolIcon3("shape.bpmn.transaction") },
|
|
58646
|
+
{ id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: symbolIcon3("shape.bpmn.eventSubprocess") },
|
|
58647
|
+
{ id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: symbolIcon3("shape.bpmn.group") },
|
|
58648
|
+
{ id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: symbolIcon3("shape.bpmn.annotation") }
|
|
58621
58649
|
];
|
|
58622
58650
|
var BORDER_STYLE_OPTIONS = [
|
|
58623
|
-
{ id: "solid", label: "Solid", value: "solid", icon:
|
|
58624
|
-
{ id: "dot", label: "Dot", value: "dot", icon:
|
|
58625
|
-
{ id: "dash", label: "Dash", value: "dash", icon:
|
|
58626
|
-
{ id: "long-dash", label: "Long dash", value: "longDash", icon:
|
|
58651
|
+
{ id: "solid", label: "Solid", value: "solid", icon: symbolIcon3("stroke.solid") },
|
|
58652
|
+
{ id: "dot", label: "Dot", value: "dot", icon: symbolIcon3("stroke.dot") },
|
|
58653
|
+
{ id: "dash", label: "Dash", value: "dash", icon: symbolIcon3("stroke.dash") },
|
|
58654
|
+
{ id: "long-dash", label: "Long dash", value: "longDash", icon: symbolIcon3("stroke.longDash") }
|
|
58627
58655
|
];
|
|
58628
58656
|
var shapeTypeControl = {
|
|
58629
58657
|
id: "shapeType",
|
|
@@ -58646,14 +58674,10 @@ var fillControl = {
|
|
|
58646
58674
|
id: "backgroundColor",
|
|
58647
58675
|
label: "Fill",
|
|
58648
58676
|
valueSource: { kind: "itemProperty", property: "backgroundColor" },
|
|
58649
|
-
icon: {
|
|
58650
|
-
kind: "
|
|
58651
|
-
|
|
58652
|
-
|
|
58653
|
-
swatch: { kind: "itemProperty", property: "backgroundColor" },
|
|
58654
|
-
note: "UI can render the current fill color as a swatch inside the icon."
|
|
58655
|
-
}
|
|
58656
|
-
},
|
|
58677
|
+
icon: styleFillIcon({
|
|
58678
|
+
swatch: { kind: "itemProperty", property: "backgroundColor" },
|
|
58679
|
+
note: "UI can render the current fill color as a swatch inside the icon."
|
|
58680
|
+
}),
|
|
58657
58681
|
editor: {
|
|
58658
58682
|
kind: "color",
|
|
58659
58683
|
palette: COLOR_PALETTE2,
|
|
@@ -58704,7 +58728,7 @@ var shapeOverlay = {
|
|
|
58704
58728
|
{
|
|
58705
58729
|
id: "shape.shapeType",
|
|
58706
58730
|
label: "Shape type",
|
|
58707
|
-
icon:
|
|
58731
|
+
icon: symbolIcon3("shape.type"),
|
|
58708
58732
|
target: "each",
|
|
58709
58733
|
controls: [shapeTypeControl]
|
|
58710
58734
|
},
|
|
@@ -58718,14 +58742,14 @@ var shapeOverlay = {
|
|
|
58718
58742
|
{
|
|
58719
58743
|
id: "shape.strokeStyle",
|
|
58720
58744
|
label: "Stroke style",
|
|
58721
|
-
icon:
|
|
58745
|
+
icon: styleStrokeIcon(),
|
|
58722
58746
|
target: "each",
|
|
58723
58747
|
controls: strokeControls,
|
|
58724
58748
|
groups: [
|
|
58725
58749
|
{
|
|
58726
58750
|
id: "shapeStrokeStyle",
|
|
58727
58751
|
label: "Stroke style",
|
|
58728
|
-
icon:
|
|
58752
|
+
icon: styleStrokeIcon(),
|
|
58729
58753
|
controlIds: strokeControls.map((control) => control.id)
|
|
58730
58754
|
}
|
|
58731
58755
|
]
|
|
@@ -64099,11 +64123,9 @@ var diceOverlay = {
|
|
|
64099
64123
|
{
|
|
64100
64124
|
id: "dice.fill",
|
|
64101
64125
|
label: "Fill",
|
|
64102
|
-
icon: {
|
|
64103
|
-
kind: "
|
|
64104
|
-
|
|
64105
|
-
state: { swatch: { kind: "itemProperty", property: "backgroundColor" } }
|
|
64106
|
-
},
|
|
64126
|
+
icon: styleFillIcon({
|
|
64127
|
+
swatch: { kind: "itemProperty", property: "backgroundColor" }
|
|
64128
|
+
}),
|
|
64107
64129
|
target: "each",
|
|
64108
64130
|
controls: [
|
|
64109
64131
|
{
|