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/cjs/browser.js +109 -93
- package/dist/cjs/index.js +109 -93
- package/dist/cjs/node.js +109 -93
- package/dist/esm/browser.js +109 -93
- package/dist/esm/index.js +109 -93
- package/dist/esm/node.js +109 -93
- package/dist/types/Overlay/IconPack.d.ts +2 -2
- package/package.json +1 -1
package/dist/cjs/browser.js
CHANGED
|
@@ -11731,8 +11731,13 @@ function overlaySymbolIcon(key) {
|
|
|
11731
11731
|
sourcePath: OVERLAY_ICON_SPRITE_PATH
|
|
11732
11732
|
};
|
|
11733
11733
|
}
|
|
11734
|
-
function overlayAssetIcon(path2) {
|
|
11735
|
-
return {
|
|
11734
|
+
function overlayAssetIcon(path2, state) {
|
|
11735
|
+
return state ? {
|
|
11736
|
+
kind: "asset",
|
|
11737
|
+
path: path2,
|
|
11738
|
+
mimeType: "image/svg+xml",
|
|
11739
|
+
state
|
|
11740
|
+
} : {
|
|
11736
11741
|
kind: "asset",
|
|
11737
11742
|
path: path2,
|
|
11738
11743
|
mimeType: "image/svg+xml"
|
|
@@ -11750,16 +11755,16 @@ function symbolIcon(key, state) {
|
|
|
11750
11755
|
return state ? { kind: "symbol", key, sourcePath: OVERLAY_ICON_SPRITE_PATH, state } : { kind: "symbol", key, sourcePath: OVERLAY_ICON_SPRITE_PATH };
|
|
11751
11756
|
}
|
|
11752
11757
|
function styleFillIcon(state) {
|
|
11753
|
-
return
|
|
11758
|
+
return overlayAssetIcon("src/Items/Shape/icons/Fill.icon.svg", state);
|
|
11754
11759
|
}
|
|
11755
11760
|
function styleStrokeIcon(state) {
|
|
11756
|
-
return
|
|
11761
|
+
return overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg", state);
|
|
11757
11762
|
}
|
|
11758
11763
|
function styleColorIcon(state) {
|
|
11759
|
-
return
|
|
11764
|
+
return overlayAssetIcon("src/Items/Shape/icons/Color.icon.svg", state);
|
|
11760
11765
|
}
|
|
11761
11766
|
function styleFontSizeIcon(state) {
|
|
11762
|
-
return
|
|
11767
|
+
return overlayAssetIcon("src/Items/RichText/icons/FontSize.icon.svg", state);
|
|
11763
11768
|
}
|
|
11764
11769
|
// src/Overlay/overlayRegistry.ts
|
|
11765
11770
|
var itemOverlays = {};
|
|
@@ -37875,7 +37880,6 @@ var richTextOverlay = {
|
|
|
37875
37880
|
id: "text.fontSize",
|
|
37876
37881
|
label: "Font size",
|
|
37877
37882
|
icon: styleFontSizeIcon(),
|
|
37878
|
-
icon: styleFontSizeIcon(),
|
|
37879
37883
|
target: "each",
|
|
37880
37884
|
controls: [
|
|
37881
37885
|
{
|
|
@@ -37898,7 +37902,7 @@ var richTextOverlay = {
|
|
|
37898
37902
|
{
|
|
37899
37903
|
id: "textTypography",
|
|
37900
37904
|
label: "Typography",
|
|
37901
|
-
icon:
|
|
37905
|
+
icon: overlayAssetIcon("src/Items/RichText/icons/FontSize.icon.svg"),
|
|
37902
37906
|
actionIds: ["text.fontSize"]
|
|
37903
37907
|
}
|
|
37904
37908
|
]
|
|
@@ -37909,7 +37913,7 @@ var addTextToolOverlay = {
|
|
|
37909
37913
|
kind: "create",
|
|
37910
37914
|
createsItemType: "RichText",
|
|
37911
37915
|
family: "text",
|
|
37912
|
-
icon:
|
|
37916
|
+
icon: overlayAssetIcon("src/Items/RichText/icons/Text.icon.svg"),
|
|
37913
37917
|
description: "Creates editable rich text. The current first pass has no pre-placement defaults on this tool.",
|
|
37914
37918
|
launch: { kind: "activate-tool" },
|
|
37915
37919
|
surface: {
|
|
@@ -44384,12 +44388,28 @@ var COLOR_PALETTE = [
|
|
|
44384
44388
|
"#118AB2",
|
|
44385
44389
|
"#7B61FF"
|
|
44386
44390
|
];
|
|
44387
|
-
var
|
|
44391
|
+
var connectorAssetIcon = (file2) => overlayAssetIcon(`src/Items/Connector/icons/${file2}.icon.svg`);
|
|
44392
|
+
var lineStyleAssetIcons = {
|
|
44393
|
+
straight: connectorAssetIcon("LineStraight"),
|
|
44394
|
+
curved: connectorAssetIcon("LineCurved"),
|
|
44395
|
+
orthogonal: connectorAssetIcon("LineOrthogonal")
|
|
44396
|
+
};
|
|
44397
|
+
var pointerAssetIcons = {
|
|
44398
|
+
None: connectorAssetIcon("PointerNone"),
|
|
44399
|
+
ArrowThin: connectorAssetIcon("PointerArrowThin"),
|
|
44400
|
+
ArrowHeavy: connectorAssetIcon("PointerArrowHeavy"),
|
|
44401
|
+
TriangleFilled: connectorAssetIcon("PointerTriangleFilled"),
|
|
44402
|
+
TriangleOutline: connectorAssetIcon("PointerTriangleOutline"),
|
|
44403
|
+
CircleFilled: connectorAssetIcon("PointerCircleFilled"),
|
|
44404
|
+
CircleOutline: connectorAssetIcon("PointerCircleOutline"),
|
|
44405
|
+
DiamondFilled: connectorAssetIcon("PointerDiamondFilled"),
|
|
44406
|
+
DiamondOutline: connectorAssetIcon("PointerDiamondOutline")
|
|
44407
|
+
};
|
|
44388
44408
|
var lineStyleOptions = ConnectorLineStyles.map((style) => ({
|
|
44389
44409
|
id: style,
|
|
44390
44410
|
label: style[0].toUpperCase() + style.slice(1),
|
|
44391
44411
|
value: style,
|
|
44392
|
-
icon:
|
|
44412
|
+
icon: lineStyleAssetIcons[style]
|
|
44393
44413
|
}));
|
|
44394
44414
|
var lineWidthOptions = ConnectionLineWidths.map((width) => ({
|
|
44395
44415
|
id: `${width}`,
|
|
@@ -44400,13 +44420,13 @@ var pointerOptions = CONNECTOR_POINTER_TYPES.map((pointer) => ({
|
|
|
44400
44420
|
id: pointer,
|
|
44401
44421
|
label: pointer,
|
|
44402
44422
|
value: pointer,
|
|
44403
|
-
icon:
|
|
44423
|
+
icon: pointerAssetIcons[pointer]
|
|
44404
44424
|
}));
|
|
44405
44425
|
var borderStyleOptions = ["solid", "dot", "dash", "longDash"].map((style) => ({
|
|
44406
44426
|
id: style,
|
|
44407
44427
|
label: style,
|
|
44408
44428
|
value: style,
|
|
44409
|
-
icon:
|
|
44429
|
+
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")
|
|
44410
44430
|
}));
|
|
44411
44431
|
var connectorStyleControls = [
|
|
44412
44432
|
{
|
|
@@ -44461,7 +44481,7 @@ var connectorStyleControls = [
|
|
|
44461
44481
|
{
|
|
44462
44482
|
id: "smartJump",
|
|
44463
44483
|
label: "Smart jump",
|
|
44464
|
-
icon:
|
|
44484
|
+
icon: connectorAssetIcon("SmartJump"),
|
|
44465
44485
|
valueSource: { kind: "itemProperty", property: "smartJump" },
|
|
44466
44486
|
editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
|
|
44467
44487
|
invoke: { kind: "setProperty", property: "smartJump" }
|
|
@@ -44520,7 +44540,7 @@ var connectorToolControls = [
|
|
|
44520
44540
|
{
|
|
44521
44541
|
id: "toolSmartJump",
|
|
44522
44542
|
label: "Smart jump",
|
|
44523
|
-
icon:
|
|
44543
|
+
icon: connectorAssetIcon("SmartJump"),
|
|
44524
44544
|
valueSource: { kind: "toolProperty", property: "smartJump" },
|
|
44525
44545
|
editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
|
|
44526
44546
|
invoke: { kind: "toolProperty", property: "smartJump" }
|
|
@@ -44532,21 +44552,21 @@ var connectorOverlay = {
|
|
|
44532
44552
|
{
|
|
44533
44553
|
id: "connector.switchPointers",
|
|
44534
44554
|
label: "Switch arrows",
|
|
44535
|
-
icon:
|
|
44555
|
+
icon: connectorAssetIcon("SwitchPointers"),
|
|
44536
44556
|
target: "selection",
|
|
44537
44557
|
invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
|
|
44538
44558
|
},
|
|
44539
44559
|
{
|
|
44540
44560
|
id: "connector.style",
|
|
44541
44561
|
label: "Connector style",
|
|
44542
|
-
icon:
|
|
44562
|
+
icon: connectorAssetIcon("Style"),
|
|
44543
44563
|
target: "each",
|
|
44544
44564
|
controls: connectorStyleControls,
|
|
44545
44565
|
groups: [
|
|
44546
44566
|
{
|
|
44547
44567
|
id: "connectorStyle",
|
|
44548
44568
|
label: "Connector style",
|
|
44549
|
-
icon:
|
|
44569
|
+
icon: connectorAssetIcon("Style"),
|
|
44550
44570
|
controlIds: connectorStyleControls.map((control) => control.id)
|
|
44551
44571
|
}
|
|
44552
44572
|
]
|
|
@@ -44556,7 +44576,7 @@ var connectorOverlay = {
|
|
|
44556
44576
|
{
|
|
44557
44577
|
id: "connectorArrows",
|
|
44558
44578
|
label: "Arrows",
|
|
44559
|
-
icon:
|
|
44579
|
+
icon: connectorAssetIcon("Style"),
|
|
44560
44580
|
actionIds: ["connector.switchPointers", "connector.style"]
|
|
44561
44581
|
}
|
|
44562
44582
|
]
|
|
@@ -44568,8 +44588,7 @@ var addConnectorToolOverlay = {
|
|
|
44568
44588
|
createsItemType: "Connector",
|
|
44569
44589
|
family: "connector",
|
|
44570
44590
|
icon: {
|
|
44571
|
-
|
|
44572
|
-
key: "tool.connector",
|
|
44591
|
+
...connectorAssetIcon("Tool"),
|
|
44573
44592
|
state: {
|
|
44574
44593
|
swatch: { kind: "toolProperty", property: "lineColor" },
|
|
44575
44594
|
note: "UI can tint or swatch the connector icon from the pending line color."
|
|
@@ -44581,14 +44600,14 @@ var addConnectorToolOverlay = {
|
|
|
44581
44600
|
{
|
|
44582
44601
|
id: "connectorToolQuickDefaults",
|
|
44583
44602
|
label: "Connector quick defaults",
|
|
44584
|
-
icon:
|
|
44603
|
+
icon: connectorAssetIcon("LineStraight"),
|
|
44585
44604
|
controlIds: ["toolLineStyle"],
|
|
44586
44605
|
description: "Primary defaults that match the compact create-surface picker."
|
|
44587
44606
|
},
|
|
44588
44607
|
{
|
|
44589
44608
|
id: "connectorToolAdvancedDefaults",
|
|
44590
44609
|
label: "Connector defaults",
|
|
44591
|
-
icon:
|
|
44610
|
+
icon: connectorAssetIcon("Style"),
|
|
44592
44611
|
controlIds: connectorToolControls.map((control) => control.id),
|
|
44593
44612
|
description: "Extended defaults available in richer create flows."
|
|
44594
44613
|
}
|
|
@@ -58735,7 +58754,8 @@ var COLOR_PALETTE2 = [
|
|
|
58735
58754
|
"transparent"
|
|
58736
58755
|
];
|
|
58737
58756
|
var inlineShapeAsset = (folder, file2 = folder) => overlayAssetIcon(`src/Items/Shape/Basic/${folder}/${file2}.icon.svg`);
|
|
58738
|
-
var
|
|
58757
|
+
var localShapeIcon = (file2) => overlayAssetIcon(`src/Items/Shape/icons/${file2}.icon.svg`);
|
|
58758
|
+
var bpmnIcon = (folder) => overlayAssetIcon(`src/Items/Shape/BPMN/${folder}/${folder}.icon.svg`);
|
|
58739
58759
|
var BASIC_INLINE_OPTIONS = [
|
|
58740
58760
|
{ id: "rectangle", label: "Rectangle", value: "Rectangle", icon: inlineShapeAsset("Rectangle"), family: "basicShapes" },
|
|
58741
58761
|
{ id: "rounded-rectangle", label: "Rounded rectangle", value: "RoundedRectangle", icon: inlineShapeAsset("RoundedRectangle"), family: "basicShapes" },
|
|
@@ -58745,48 +58765,48 @@ var BASIC_INLINE_OPTIONS = [
|
|
|
58745
58765
|
];
|
|
58746
58766
|
var SHAPE_CATALOG_OPTIONS = [
|
|
58747
58767
|
...BASIC_INLINE_OPTIONS,
|
|
58748
|
-
{ id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon:
|
|
58768
|
+
{ id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: localShapeIcon("ReversedTriangle"), family: "basicShapes" },
|
|
58749
58769
|
{ id: "arrow-left", label: "Arrow left", value: "ArrowLeft", icon: inlineShapeAsset("ArrowLeft"), family: "basicShapes" },
|
|
58750
58770
|
{ id: "arrow-right", label: "Arrow right", value: "ArrowRight", icon: inlineShapeAsset("ArrowRight"), family: "basicShapes" },
|
|
58751
58771
|
{ id: "arrow-left-right", label: "Arrow left right", value: "ArrowLeftRight", icon: inlineShapeAsset("ArrowLeftRight"), family: "basicShapes" },
|
|
58752
|
-
{ id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon:
|
|
58753
|
-
{ id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon:
|
|
58772
|
+
{ id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: localShapeIcon("ArrowBlockLeft"), family: "basicShapes" },
|
|
58773
|
+
{ id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: localShapeIcon("ArrowBlockRight"), family: "basicShapes" },
|
|
58754
58774
|
{ id: "cloud", label: "Cloud", value: "Cloud", icon: inlineShapeAsset("Cloud"), family: "basicShapes" },
|
|
58755
58775
|
{ id: "cross", label: "Cross", value: "Cross", icon: inlineShapeAsset("Cross"), family: "basicShapes" },
|
|
58756
58776
|
{ id: "cylinder", label: "Cylinder", value: "Cylinder", icon: inlineShapeAsset("Cylinder"), family: "basicShapes" },
|
|
58757
58777
|
{ id: "hexagon", label: "Hexagon", value: "Hexagon", icon: inlineShapeAsset("Hexagon"), family: "basicShapes" },
|
|
58758
58778
|
{ id: "octagon", label: "Octagon", value: "Octagon", icon: inlineShapeAsset("Octagon"), family: "basicShapes" },
|
|
58759
58779
|
{ id: "parallelogram", label: "Parallelogram", value: "Parallelogram", icon: inlineShapeAsset("Parallelogram"), family: "basicShapes" },
|
|
58760
|
-
{ id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon:
|
|
58780
|
+
{ id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: localShapeIcon("ReversedParallelogram"), family: "basicShapes" },
|
|
58761
58781
|
{ id: "pentagon", label: "Pentagon", value: "Pentagon", icon: inlineShapeAsset("Pentagon"), family: "basicShapes" },
|
|
58762
|
-
{ id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon:
|
|
58782
|
+
{ id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: localShapeIcon("PredefinedProcess"), family: "basicShapes" },
|
|
58763
58783
|
{ id: "speech-bubble", label: "Speech bubble", value: "SpeachBubble", icon: inlineShapeAsset("SpeachBubble"), family: "basicShapes" },
|
|
58764
58784
|
{ id: "star", label: "Star", value: "Star", icon: inlineShapeAsset("Star"), family: "basicShapes" },
|
|
58765
58785
|
{ id: "trapezoid", label: "Trapezoid", value: "Trapezoid", icon: inlineShapeAsset("Trapezoid"), family: "basicShapes" },
|
|
58766
58786
|
{ id: "braces-left", label: "Braces left", value: "BracesLeft", icon: inlineShapeAsset("BracesLeft", "BracesLeft"), family: "basicShapes" },
|
|
58767
58787
|
{ id: "braces-right", label: "Braces right", value: "BracesRight", icon: inlineShapeAsset("BracesRight", "BracesRight"), family: "basicShapes" },
|
|
58768
|
-
{ id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon:
|
|
58769
|
-
{ id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon:
|
|
58770
|
-
{ id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon:
|
|
58771
|
-
{ id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon:
|
|
58772
|
-
{ id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon:
|
|
58773
|
-
{ id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon:
|
|
58774
|
-
{ id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon:
|
|
58775
|
-
{ id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon:
|
|
58776
|
-
{ id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon:
|
|
58777
|
-
{ id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon:
|
|
58778
|
-
{ id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon:
|
|
58779
|
-
{ id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon:
|
|
58780
|
-
{ id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon:
|
|
58781
|
-
{ id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon:
|
|
58782
|
-
{ id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon:
|
|
58783
|
-
{ id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon:
|
|
58788
|
+
{ id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: bpmnIcon("BPMN_Task"), family: "bpmn" },
|
|
58789
|
+
{ id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: bpmnIcon("BPMN_Gateway"), family: "bpmn" },
|
|
58790
|
+
{ id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: bpmnIcon("BPMN_GatewayParallel"), family: "bpmn" },
|
|
58791
|
+
{ id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: bpmnIcon("BPMN_GatewayXOR"), family: "bpmn" },
|
|
58792
|
+
{ id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: bpmnIcon("BPMN_StartEvent"), family: "bpmn" },
|
|
58793
|
+
{ id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: bpmnIcon("BPMN_StartEventNoneInterrupting"), family: "bpmn" },
|
|
58794
|
+
{ id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: bpmnIcon("BPMN_EndEvent"), family: "bpmn" },
|
|
58795
|
+
{ id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: bpmnIcon("BPMN_IntermediateEvent"), family: "bpmn" },
|
|
58796
|
+
{ id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: bpmnIcon("BPMN_IntermediateEventNoneInterrupting"), family: "bpmn" },
|
|
58797
|
+
{ id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: bpmnIcon("BPMN_DataObject"), family: "bpmn" },
|
|
58798
|
+
{ id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: bpmnIcon("BPMN_DataStore"), family: "bpmn" },
|
|
58799
|
+
{ id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: bpmnIcon("BPMN_Participant"), family: "bpmn" },
|
|
58800
|
+
{ id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: bpmnIcon("BPMN_Transaction"), family: "bpmn" },
|
|
58801
|
+
{ id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: bpmnIcon("BPMN_EventSubprocess"), family: "bpmn" },
|
|
58802
|
+
{ id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: bpmnIcon("BPMN_Group"), family: "bpmn" },
|
|
58803
|
+
{ id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: bpmnIcon("BPMN_Annotation"), family: "bpmn" }
|
|
58784
58804
|
];
|
|
58785
58805
|
var BORDER_STYLE_OPTIONS = [
|
|
58786
|
-
{ id: "solid", label: "Solid", value: "solid", icon:
|
|
58787
|
-
{ id: "dot", label: "Dot", value: "dot", icon:
|
|
58788
|
-
{ id: "dash", label: "Dash", value: "dash", icon:
|
|
58789
|
-
{ id: "long-dash", label: "Long dash", value: "longDash", icon:
|
|
58806
|
+
{ id: "solid", label: "Solid", value: "solid", icon: localShapeIcon("StrokeSolid") },
|
|
58807
|
+
{ id: "dot", label: "Dot", value: "dot", icon: localShapeIcon("StrokeDot") },
|
|
58808
|
+
{ id: "dash", label: "Dash", value: "dash", icon: localShapeIcon("StrokeDash") },
|
|
58809
|
+
{ id: "long-dash", label: "Long dash", value: "longDash", icon: localShapeIcon("StrokeLongDash") }
|
|
58790
58810
|
];
|
|
58791
58811
|
var shapeTypeControl = {
|
|
58792
58812
|
id: "shapeType",
|
|
@@ -58819,10 +58839,6 @@ var fillControl = {
|
|
|
58819
58839
|
swatch: { kind: "itemProperty", property: "backgroundColor" },
|
|
58820
58840
|
note: "UI can render the current fill color as a swatch inside the icon."
|
|
58821
58841
|
}),
|
|
58822
|
-
icon: styleFillIcon({
|
|
58823
|
-
swatch: { kind: "itemProperty", property: "backgroundColor" },
|
|
58824
|
-
note: "UI can render the current fill color as a swatch inside the icon."
|
|
58825
|
-
}),
|
|
58826
58842
|
editor: {
|
|
58827
58843
|
kind: "color",
|
|
58828
58844
|
palette: COLOR_PALETTE2,
|
|
@@ -58873,7 +58889,7 @@ var shapeOverlay = {
|
|
|
58873
58889
|
{
|
|
58874
58890
|
id: "shape.shapeType",
|
|
58875
58891
|
label: "Shape type",
|
|
58876
|
-
icon:
|
|
58892
|
+
icon: localShapeIcon("Type"),
|
|
58877
58893
|
target: "each",
|
|
58878
58894
|
controls: [shapeTypeControl]
|
|
58879
58895
|
},
|
|
@@ -58904,13 +58920,13 @@ var shapeOverlay = {
|
|
|
58904
58920
|
{
|
|
58905
58921
|
id: "shapeTypeSection",
|
|
58906
58922
|
label: "Type",
|
|
58907
|
-
icon:
|
|
58923
|
+
icon: localShapeIcon("Type"),
|
|
58908
58924
|
actionIds: ["shape.shapeType"]
|
|
58909
58925
|
},
|
|
58910
58926
|
{
|
|
58911
58927
|
id: "shapeAppearanceSection",
|
|
58912
58928
|
label: "Appearance",
|
|
58913
|
-
icon:
|
|
58929
|
+
icon: localShapeIcon("Stroke"),
|
|
58914
58930
|
actionIds: ["shape.fill", "shape.strokeStyle"]
|
|
58915
58931
|
}
|
|
58916
58932
|
]
|
|
@@ -58922,7 +58938,7 @@ var addShapeToolOverlay = {
|
|
|
58922
58938
|
createsItemType: "Shape",
|
|
58923
58939
|
family: "shape",
|
|
58924
58940
|
icon: {
|
|
58925
|
-
...
|
|
58941
|
+
...overlayAssetIcon("src/Items/Shape/icons/Tool.icon.svg"),
|
|
58926
58942
|
state: {
|
|
58927
58943
|
note: "UI may swap the top-level icon to the selected shape option when desired."
|
|
58928
58944
|
}
|
|
@@ -63362,14 +63378,14 @@ var cardOverlay = {
|
|
|
63362
63378
|
{
|
|
63363
63379
|
id: "card.flip",
|
|
63364
63380
|
label: "Flip card",
|
|
63365
|
-
icon:
|
|
63381
|
+
icon: overlayAssetIcon("src/Items/Card/icons/Flip.icon.svg"),
|
|
63366
63382
|
target: "each",
|
|
63367
63383
|
invoke: { kind: "customMethod", methodName: "toggleIsOpen" }
|
|
63368
63384
|
},
|
|
63369
63385
|
{
|
|
63370
63386
|
id: "card.rotateCcw",
|
|
63371
63387
|
label: "Rotate 90 counter clockwise",
|
|
63372
|
-
icon:
|
|
63388
|
+
icon: overlayAssetIcon("src/Items/Card/icons/RotateCcw.icon.svg"),
|
|
63373
63389
|
target: "each",
|
|
63374
63390
|
invoke: {
|
|
63375
63391
|
kind: "customMethod",
|
|
@@ -63380,7 +63396,7 @@ var cardOverlay = {
|
|
|
63380
63396
|
{
|
|
63381
63397
|
id: "card.rotateCw",
|
|
63382
63398
|
label: "Rotate 90 clockwise",
|
|
63383
|
-
icon:
|
|
63399
|
+
icon: overlayAssetIcon("src/Items/Card/icons/RotateCw.icon.svg"),
|
|
63384
63400
|
target: "each",
|
|
63385
63401
|
invoke: {
|
|
63386
63402
|
kind: "customMethod",
|
|
@@ -63634,28 +63650,28 @@ var deckOverlay = {
|
|
|
63634
63650
|
{
|
|
63635
63651
|
id: "deck.getTopCard",
|
|
63636
63652
|
label: "Draw top card",
|
|
63637
|
-
icon:
|
|
63653
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawTop.icon.svg"),
|
|
63638
63654
|
target: "single",
|
|
63639
63655
|
invoke: { kind: "customMethod", methodName: "getTopCard" }
|
|
63640
63656
|
},
|
|
63641
63657
|
{
|
|
63642
63658
|
id: "deck.getBottomCard",
|
|
63643
63659
|
label: "Draw bottom card",
|
|
63644
|
-
icon:
|
|
63660
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawBottom.icon.svg"),
|
|
63645
63661
|
target: "single",
|
|
63646
63662
|
invoke: { kind: "customMethod", methodName: "getBottomCard" }
|
|
63647
63663
|
},
|
|
63648
63664
|
{
|
|
63649
63665
|
id: "deck.getRandomCard",
|
|
63650
63666
|
label: "Draw random card",
|
|
63651
|
-
icon:
|
|
63667
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawRandom.icon.svg"),
|
|
63652
63668
|
target: "single",
|
|
63653
63669
|
invoke: { kind: "customMethod", methodName: "getRandomCard" }
|
|
63654
63670
|
},
|
|
63655
63671
|
{
|
|
63656
63672
|
id: "deck.getCards",
|
|
63657
63673
|
label: "Draw cards",
|
|
63658
|
-
icon:
|
|
63674
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawMany.icon.svg"),
|
|
63659
63675
|
target: "single",
|
|
63660
63676
|
controls: [
|
|
63661
63677
|
{
|
|
@@ -63677,14 +63693,14 @@ var deckOverlay = {
|
|
|
63677
63693
|
{
|
|
63678
63694
|
id: "deck.shuffle",
|
|
63679
63695
|
label: "Shuffle",
|
|
63680
|
-
icon:
|
|
63696
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/Shuffle.icon.svg"),
|
|
63681
63697
|
target: "single",
|
|
63682
63698
|
invoke: { kind: "customMethod", methodName: "shuffleDeck" }
|
|
63683
63699
|
},
|
|
63684
63700
|
{
|
|
63685
63701
|
id: "deck.flip",
|
|
63686
63702
|
label: "Flip deck",
|
|
63687
|
-
icon:
|
|
63703
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/Flip.icon.svg"),
|
|
63688
63704
|
target: "single",
|
|
63689
63705
|
invoke: { kind: "customMethod", methodName: "flipDeck" }
|
|
63690
63706
|
}
|
|
@@ -63693,7 +63709,7 @@ var deckOverlay = {
|
|
|
63693
63709
|
var createDeckSelectionAction = {
|
|
63694
63710
|
id: "deck.createFromSelection",
|
|
63695
63711
|
label: "Create deck",
|
|
63696
|
-
icon:
|
|
63712
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/CreateFromSelection.icon.svg"),
|
|
63697
63713
|
description: "Stacks selected cards into a new deck, or merges selected cards and decks into one deck.",
|
|
63698
63714
|
invoke: { kind: "selectionMethod", methodName: "createDeck" },
|
|
63699
63715
|
isAvailable: (items) => {
|
|
@@ -64262,14 +64278,14 @@ var diceOverlay = {
|
|
|
64262
64278
|
{
|
|
64263
64279
|
id: "dice.throw",
|
|
64264
64280
|
label: "Throw dice",
|
|
64265
|
-
icon:
|
|
64281
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Throw.icon.svg"),
|
|
64266
64282
|
target: "each",
|
|
64267
64283
|
invoke: { kind: "customMethod", methodName: "throwDice" }
|
|
64268
64284
|
},
|
|
64269
64285
|
{
|
|
64270
64286
|
id: "dice.range",
|
|
64271
64287
|
label: "Range",
|
|
64272
|
-
icon:
|
|
64288
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Range.icon.svg"),
|
|
64273
64289
|
target: "each",
|
|
64274
64290
|
controls: [
|
|
64275
64291
|
{
|
|
@@ -64310,7 +64326,7 @@ var diceOverlay = {
|
|
|
64310
64326
|
{
|
|
64311
64327
|
id: "diceActions",
|
|
64312
64328
|
label: "Dice",
|
|
64313
|
-
icon:
|
|
64329
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Throw.icon.svg"),
|
|
64314
64330
|
actionIds: ["dice.throw", "dice.range", "dice.fill"]
|
|
64315
64331
|
}
|
|
64316
64332
|
]
|
|
@@ -64321,14 +64337,14 @@ var addDiceToolOverlay = {
|
|
|
64321
64337
|
kind: "create",
|
|
64322
64338
|
createsItemType: "Dice",
|
|
64323
64339
|
family: "game",
|
|
64324
|
-
icon:
|
|
64340
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
64325
64341
|
launch: { kind: "activate-tool" },
|
|
64326
64342
|
surface: {
|
|
64327
64343
|
order: 1,
|
|
64328
64344
|
group: {
|
|
64329
64345
|
id: "gameItems",
|
|
64330
64346
|
label: "Game items",
|
|
64331
|
-
icon:
|
|
64347
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
64332
64348
|
order: 1,
|
|
64333
64349
|
behavior: "open-panel"
|
|
64334
64350
|
},
|
|
@@ -64681,7 +64697,7 @@ var screenOverlay = {
|
|
|
64681
64697
|
id: "screen.background",
|
|
64682
64698
|
label: "Background",
|
|
64683
64699
|
icon: {
|
|
64684
|
-
...
|
|
64700
|
+
...overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
|
|
64685
64701
|
state: { swatch: { kind: "itemProperty", property: "backgroundColor" } }
|
|
64686
64702
|
},
|
|
64687
64703
|
target: "each",
|
|
@@ -64703,7 +64719,7 @@ var screenOverlay = {
|
|
|
64703
64719
|
id: "screen.stroke",
|
|
64704
64720
|
label: "Stroke",
|
|
64705
64721
|
icon: {
|
|
64706
|
-
...
|
|
64722
|
+
...overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg"),
|
|
64707
64723
|
state: { swatch: { kind: "itemProperty", property: "borderColor" } }
|
|
64708
64724
|
},
|
|
64709
64725
|
target: "each",
|
|
@@ -64739,7 +64755,7 @@ var screenOverlay = {
|
|
|
64739
64755
|
{
|
|
64740
64756
|
id: "screenStrokeStyle",
|
|
64741
64757
|
label: "Stroke",
|
|
64742
|
-
icon:
|
|
64758
|
+
icon: overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg"),
|
|
64743
64759
|
controlIds: ["borderColor", "borderWidth"]
|
|
64744
64760
|
}
|
|
64745
64761
|
]
|
|
@@ -64747,7 +64763,7 @@ var screenOverlay = {
|
|
|
64747
64763
|
{
|
|
64748
64764
|
id: "screen.backgroundImage",
|
|
64749
64765
|
label: "Background image",
|
|
64750
|
-
icon:
|
|
64766
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/BackgroundImage.icon.svg"),
|
|
64751
64767
|
target: "each",
|
|
64752
64768
|
when: {
|
|
64753
64769
|
kind: "falsy",
|
|
@@ -64770,7 +64786,7 @@ var screenOverlay = {
|
|
|
64770
64786
|
{
|
|
64771
64787
|
id: "screen.removeBackgroundImage",
|
|
64772
64788
|
label: "Remove background image",
|
|
64773
|
-
icon:
|
|
64789
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/BackgroundImageRemove.icon.svg"),
|
|
64774
64790
|
target: "each",
|
|
64775
64791
|
when: {
|
|
64776
64792
|
kind: "truthy",
|
|
@@ -64787,7 +64803,7 @@ var screenOverlay = {
|
|
|
64787
64803
|
{
|
|
64788
64804
|
id: "screenAppearance",
|
|
64789
64805
|
label: "Appearance",
|
|
64790
|
-
icon:
|
|
64806
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
|
|
64791
64807
|
actionIds: ["screen.background", "screen.stroke", "screen.backgroundImage", "screen.removeBackgroundImage"]
|
|
64792
64808
|
}
|
|
64793
64809
|
]
|
|
@@ -64798,14 +64814,14 @@ var addScreenToolOverlay = {
|
|
|
64798
64814
|
kind: "create",
|
|
64799
64815
|
createsItemType: "Screen",
|
|
64800
64816
|
family: "container",
|
|
64801
|
-
icon:
|
|
64817
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/Tool.icon.svg"),
|
|
64802
64818
|
launch: { kind: "activate-tool" },
|
|
64803
64819
|
surface: {
|
|
64804
64820
|
order: 2,
|
|
64805
64821
|
group: {
|
|
64806
64822
|
id: "gameItems",
|
|
64807
64823
|
label: "Game items",
|
|
64808
|
-
icon:
|
|
64824
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
64809
64825
|
order: 1,
|
|
64810
64826
|
behavior: "open-panel"
|
|
64811
64827
|
},
|
|
@@ -64818,14 +64834,14 @@ var addPouchToolOverlay = {
|
|
|
64818
64834
|
kind: "create",
|
|
64819
64835
|
createsItemType: "Screen",
|
|
64820
64836
|
family: "container",
|
|
64821
|
-
icon:
|
|
64837
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/Pouch.icon.svg"),
|
|
64822
64838
|
launch: { kind: "activate-tool" },
|
|
64823
64839
|
surface: {
|
|
64824
64840
|
order: 3,
|
|
64825
64841
|
group: {
|
|
64826
64842
|
id: "gameItems",
|
|
64827
64843
|
label: "Game items",
|
|
64828
|
-
icon:
|
|
64844
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
64829
64845
|
order: 1,
|
|
64830
64846
|
behavior: "open-panel"
|
|
64831
64847
|
},
|
|
@@ -72790,7 +72806,7 @@ var addDrawingToolOverlay = {
|
|
|
72790
72806
|
family: "drawing",
|
|
72791
72807
|
createsItemType: "Drawing",
|
|
72792
72808
|
icon: {
|
|
72793
|
-
...
|
|
72809
|
+
...overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
72794
72810
|
state: {
|
|
72795
72811
|
swatch: { kind: "toolProperty", property: "strokeColor" },
|
|
72796
72812
|
note: "UI can show the pending pen color in the icon."
|
|
@@ -72802,7 +72818,7 @@ var addDrawingToolOverlay = {
|
|
|
72802
72818
|
{
|
|
72803
72819
|
id: "drawingDefaults",
|
|
72804
72820
|
label: "Pen defaults",
|
|
72805
|
-
icon:
|
|
72821
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
72806
72822
|
controlIds: strokeControls2.map((control) => control.id)
|
|
72807
72823
|
}
|
|
72808
72824
|
]
|
|
@@ -72813,7 +72829,7 @@ var addDrawingToolOverlay = {
|
|
|
72813
72829
|
group: {
|
|
72814
72830
|
id: "drawingTools",
|
|
72815
72831
|
label: "Drawing",
|
|
72816
|
-
icon:
|
|
72832
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
72817
72833
|
order: 5,
|
|
72818
72834
|
behavior: "activate-last-used"
|
|
72819
72835
|
},
|
|
@@ -72827,7 +72843,7 @@ var addHighlighterToolOverlay = {
|
|
|
72827
72843
|
family: "drawing",
|
|
72828
72844
|
createsItemType: "Drawing",
|
|
72829
72845
|
icon: {
|
|
72830
|
-
...
|
|
72846
|
+
...overlayAssetIcon("src/Items/Drawing/icons/Highlighter.icon.svg"),
|
|
72831
72847
|
state: {
|
|
72832
72848
|
swatch: { kind: "toolProperty", property: "strokeColor" },
|
|
72833
72849
|
note: "UI can show the pending highlighter color in the icon."
|
|
@@ -72839,7 +72855,7 @@ var addHighlighterToolOverlay = {
|
|
|
72839
72855
|
{
|
|
72840
72856
|
id: "highlighterDefaults",
|
|
72841
72857
|
label: "Highlighter defaults",
|
|
72842
|
-
icon:
|
|
72858
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Highlighter.icon.svg"),
|
|
72843
72859
|
controlIds: strokeControls2.map((control) => control.id)
|
|
72844
72860
|
}
|
|
72845
72861
|
]
|
|
@@ -72850,7 +72866,7 @@ var addHighlighterToolOverlay = {
|
|
|
72850
72866
|
group: {
|
|
72851
72867
|
id: "drawingTools",
|
|
72852
72868
|
label: "Drawing",
|
|
72853
|
-
icon:
|
|
72869
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
72854
72870
|
order: 5,
|
|
72855
72871
|
behavior: "activate-last-used"
|
|
72856
72872
|
},
|
|
@@ -72862,7 +72878,7 @@ var eraserToolOverlay = {
|
|
|
72862
72878
|
label: "Eraser",
|
|
72863
72879
|
kind: "mode",
|
|
72864
72880
|
family: "drawing",
|
|
72865
|
-
icon:
|
|
72881
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Eraser.icon.svg"),
|
|
72866
72882
|
defaults: {
|
|
72867
72883
|
controls: [
|
|
72868
72884
|
{
|
|
@@ -72886,7 +72902,7 @@ var eraserToolOverlay = {
|
|
|
72886
72902
|
group: {
|
|
72887
72903
|
id: "drawingTools",
|
|
72888
72904
|
label: "Drawing",
|
|
72889
|
-
icon:
|
|
72905
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
72890
72906
|
order: 5,
|
|
72891
72907
|
behavior: "activate-last-used"
|
|
72892
72908
|
},
|
|
@@ -73091,7 +73107,7 @@ var frameTypeOptions = Object.keys(Frames).map((frameType) => ({
|
|
|
73091
73107
|
id: frameType,
|
|
73092
73108
|
label: frameType === "Custom" ? "Custom" : Frames[frameType].name,
|
|
73093
73109
|
value: frameType,
|
|
73094
|
-
icon:
|
|
73110
|
+
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")
|
|
73095
73111
|
}));
|
|
73096
73112
|
var addFrameToolOverlay = {
|
|
73097
73113
|
toolName: "AddFrame",
|
|
@@ -73099,7 +73115,7 @@ var addFrameToolOverlay = {
|
|
|
73099
73115
|
kind: "create",
|
|
73100
73116
|
createsItemType: "Frame",
|
|
73101
73117
|
family: "frame",
|
|
73102
|
-
icon:
|
|
73118
|
+
icon: overlayAssetIcon("src/Items/Frame/Frame.icon.svg"),
|
|
73103
73119
|
defaults: {
|
|
73104
73120
|
controls: [
|
|
73105
73121
|
{
|
|
@@ -73481,7 +73497,7 @@ var addStickerToolOverlay = {
|
|
|
73481
73497
|
createsItemType: "Sticker",
|
|
73482
73498
|
family: "sticker",
|
|
73483
73499
|
icon: {
|
|
73484
|
-
...
|
|
73500
|
+
...overlayAssetIcon("src/Items/Sticker/Path/Sticker.icon.svg"),
|
|
73485
73501
|
state: {
|
|
73486
73502
|
swatch: { kind: "toolProperty", property: "backgroundColor" }
|
|
73487
73503
|
}
|