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/esm/node.js
CHANGED
|
@@ -12283,8 +12283,13 @@ function overlaySymbolIcon(key) {
|
|
|
12283
12283
|
sourcePath: OVERLAY_ICON_SPRITE_PATH
|
|
12284
12284
|
};
|
|
12285
12285
|
}
|
|
12286
|
-
function overlayAssetIcon(path2) {
|
|
12287
|
-
return {
|
|
12286
|
+
function overlayAssetIcon(path2, state) {
|
|
12287
|
+
return state ? {
|
|
12288
|
+
kind: "asset",
|
|
12289
|
+
path: path2,
|
|
12290
|
+
mimeType: "image/svg+xml",
|
|
12291
|
+
state
|
|
12292
|
+
} : {
|
|
12288
12293
|
kind: "asset",
|
|
12289
12294
|
path: path2,
|
|
12290
12295
|
mimeType: "image/svg+xml"
|
|
@@ -12302,16 +12307,16 @@ function symbolIcon(key, state) {
|
|
|
12302
12307
|
return state ? { kind: "symbol", key, sourcePath: OVERLAY_ICON_SPRITE_PATH, state } : { kind: "symbol", key, sourcePath: OVERLAY_ICON_SPRITE_PATH };
|
|
12303
12308
|
}
|
|
12304
12309
|
function styleFillIcon(state) {
|
|
12305
|
-
return
|
|
12310
|
+
return overlayAssetIcon("src/Items/Shape/icons/Fill.icon.svg", state);
|
|
12306
12311
|
}
|
|
12307
12312
|
function styleStrokeIcon(state) {
|
|
12308
|
-
return
|
|
12313
|
+
return overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg", state);
|
|
12309
12314
|
}
|
|
12310
12315
|
function styleColorIcon(state) {
|
|
12311
|
-
return
|
|
12316
|
+
return overlayAssetIcon("src/Items/Shape/icons/Color.icon.svg", state);
|
|
12312
12317
|
}
|
|
12313
12318
|
function styleFontSizeIcon(state) {
|
|
12314
|
-
return
|
|
12319
|
+
return overlayAssetIcon("src/Items/RichText/icons/FontSize.icon.svg", state);
|
|
12315
12320
|
}
|
|
12316
12321
|
// src/Overlay/overlayRegistry.ts
|
|
12317
12322
|
var itemOverlays = {};
|
|
@@ -40186,7 +40191,6 @@ var richTextOverlay = {
|
|
|
40186
40191
|
id: "text.fontSize",
|
|
40187
40192
|
label: "Font size",
|
|
40188
40193
|
icon: styleFontSizeIcon(),
|
|
40189
|
-
icon: styleFontSizeIcon(),
|
|
40190
40194
|
target: "each",
|
|
40191
40195
|
controls: [
|
|
40192
40196
|
{
|
|
@@ -40209,7 +40213,7 @@ var richTextOverlay = {
|
|
|
40209
40213
|
{
|
|
40210
40214
|
id: "textTypography",
|
|
40211
40215
|
label: "Typography",
|
|
40212
|
-
icon:
|
|
40216
|
+
icon: overlayAssetIcon("src/Items/RichText/icons/FontSize.icon.svg"),
|
|
40213
40217
|
actionIds: ["text.fontSize"]
|
|
40214
40218
|
}
|
|
40215
40219
|
]
|
|
@@ -40220,7 +40224,7 @@ var addTextToolOverlay = {
|
|
|
40220
40224
|
kind: "create",
|
|
40221
40225
|
createsItemType: "RichText",
|
|
40222
40226
|
family: "text",
|
|
40223
|
-
icon:
|
|
40227
|
+
icon: overlayAssetIcon("src/Items/RichText/icons/Text.icon.svg"),
|
|
40224
40228
|
description: "Creates editable rich text. The current first pass has no pre-placement defaults on this tool.",
|
|
40225
40229
|
launch: { kind: "activate-tool" },
|
|
40226
40230
|
surface: {
|
|
@@ -46628,12 +46632,28 @@ var COLOR_PALETTE = [
|
|
|
46628
46632
|
"#118AB2",
|
|
46629
46633
|
"#7B61FF"
|
|
46630
46634
|
];
|
|
46631
|
-
var
|
|
46635
|
+
var connectorAssetIcon = (file2) => overlayAssetIcon(`src/Items/Connector/icons/${file2}.icon.svg`);
|
|
46636
|
+
var lineStyleAssetIcons = {
|
|
46637
|
+
straight: connectorAssetIcon("LineStraight"),
|
|
46638
|
+
curved: connectorAssetIcon("LineCurved"),
|
|
46639
|
+
orthogonal: connectorAssetIcon("LineOrthogonal")
|
|
46640
|
+
};
|
|
46641
|
+
var pointerAssetIcons = {
|
|
46642
|
+
None: connectorAssetIcon("PointerNone"),
|
|
46643
|
+
ArrowThin: connectorAssetIcon("PointerArrowThin"),
|
|
46644
|
+
ArrowHeavy: connectorAssetIcon("PointerArrowHeavy"),
|
|
46645
|
+
TriangleFilled: connectorAssetIcon("PointerTriangleFilled"),
|
|
46646
|
+
TriangleOutline: connectorAssetIcon("PointerTriangleOutline"),
|
|
46647
|
+
CircleFilled: connectorAssetIcon("PointerCircleFilled"),
|
|
46648
|
+
CircleOutline: connectorAssetIcon("PointerCircleOutline"),
|
|
46649
|
+
DiamondFilled: connectorAssetIcon("PointerDiamondFilled"),
|
|
46650
|
+
DiamondOutline: connectorAssetIcon("PointerDiamondOutline")
|
|
46651
|
+
};
|
|
46632
46652
|
var lineStyleOptions = ConnectorLineStyles.map((style) => ({
|
|
46633
46653
|
id: style,
|
|
46634
46654
|
label: style[0].toUpperCase() + style.slice(1),
|
|
46635
46655
|
value: style,
|
|
46636
|
-
icon:
|
|
46656
|
+
icon: lineStyleAssetIcons[style]
|
|
46637
46657
|
}));
|
|
46638
46658
|
var lineWidthOptions = ConnectionLineWidths.map((width) => ({
|
|
46639
46659
|
id: `${width}`,
|
|
@@ -46644,13 +46664,13 @@ var pointerOptions = CONNECTOR_POINTER_TYPES.map((pointer) => ({
|
|
|
46644
46664
|
id: pointer,
|
|
46645
46665
|
label: pointer,
|
|
46646
46666
|
value: pointer,
|
|
46647
|
-
icon:
|
|
46667
|
+
icon: pointerAssetIcons[pointer]
|
|
46648
46668
|
}));
|
|
46649
46669
|
var borderStyleOptions = ["solid", "dot", "dash", "longDash"].map((style) => ({
|
|
46650
46670
|
id: style,
|
|
46651
46671
|
label: style,
|
|
46652
46672
|
value: style,
|
|
46653
|
-
icon:
|
|
46673
|
+
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")
|
|
46654
46674
|
}));
|
|
46655
46675
|
var connectorStyleControls = [
|
|
46656
46676
|
{
|
|
@@ -46705,7 +46725,7 @@ var connectorStyleControls = [
|
|
|
46705
46725
|
{
|
|
46706
46726
|
id: "smartJump",
|
|
46707
46727
|
label: "Smart jump",
|
|
46708
|
-
icon:
|
|
46728
|
+
icon: connectorAssetIcon("SmartJump"),
|
|
46709
46729
|
valueSource: { kind: "itemProperty", property: "smartJump" },
|
|
46710
46730
|
editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
|
|
46711
46731
|
invoke: { kind: "setProperty", property: "smartJump" }
|
|
@@ -46764,7 +46784,7 @@ var connectorToolControls = [
|
|
|
46764
46784
|
{
|
|
46765
46785
|
id: "toolSmartJump",
|
|
46766
46786
|
label: "Smart jump",
|
|
46767
|
-
icon:
|
|
46787
|
+
icon: connectorAssetIcon("SmartJump"),
|
|
46768
46788
|
valueSource: { kind: "toolProperty", property: "smartJump" },
|
|
46769
46789
|
editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
|
|
46770
46790
|
invoke: { kind: "toolProperty", property: "smartJump" }
|
|
@@ -46776,21 +46796,21 @@ var connectorOverlay = {
|
|
|
46776
46796
|
{
|
|
46777
46797
|
id: "connector.switchPointers",
|
|
46778
46798
|
label: "Switch arrows",
|
|
46779
|
-
icon:
|
|
46799
|
+
icon: connectorAssetIcon("SwitchPointers"),
|
|
46780
46800
|
target: "selection",
|
|
46781
46801
|
invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
|
|
46782
46802
|
},
|
|
46783
46803
|
{
|
|
46784
46804
|
id: "connector.style",
|
|
46785
46805
|
label: "Connector style",
|
|
46786
|
-
icon:
|
|
46806
|
+
icon: connectorAssetIcon("Style"),
|
|
46787
46807
|
target: "each",
|
|
46788
46808
|
controls: connectorStyleControls,
|
|
46789
46809
|
groups: [
|
|
46790
46810
|
{
|
|
46791
46811
|
id: "connectorStyle",
|
|
46792
46812
|
label: "Connector style",
|
|
46793
|
-
icon:
|
|
46813
|
+
icon: connectorAssetIcon("Style"),
|
|
46794
46814
|
controlIds: connectorStyleControls.map((control) => control.id)
|
|
46795
46815
|
}
|
|
46796
46816
|
]
|
|
@@ -46800,7 +46820,7 @@ var connectorOverlay = {
|
|
|
46800
46820
|
{
|
|
46801
46821
|
id: "connectorArrows",
|
|
46802
46822
|
label: "Arrows",
|
|
46803
|
-
icon:
|
|
46823
|
+
icon: connectorAssetIcon("Style"),
|
|
46804
46824
|
actionIds: ["connector.switchPointers", "connector.style"]
|
|
46805
46825
|
}
|
|
46806
46826
|
]
|
|
@@ -46812,8 +46832,7 @@ var addConnectorToolOverlay = {
|
|
|
46812
46832
|
createsItemType: "Connector",
|
|
46813
46833
|
family: "connector",
|
|
46814
46834
|
icon: {
|
|
46815
|
-
|
|
46816
|
-
key: "tool.connector",
|
|
46835
|
+
...connectorAssetIcon("Tool"),
|
|
46817
46836
|
state: {
|
|
46818
46837
|
swatch: { kind: "toolProperty", property: "lineColor" },
|
|
46819
46838
|
note: "UI can tint or swatch the connector icon from the pending line color."
|
|
@@ -46825,14 +46844,14 @@ var addConnectorToolOverlay = {
|
|
|
46825
46844
|
{
|
|
46826
46845
|
id: "connectorToolQuickDefaults",
|
|
46827
46846
|
label: "Connector quick defaults",
|
|
46828
|
-
icon:
|
|
46847
|
+
icon: connectorAssetIcon("LineStraight"),
|
|
46829
46848
|
controlIds: ["toolLineStyle"],
|
|
46830
46849
|
description: "Primary defaults that match the compact create-surface picker."
|
|
46831
46850
|
},
|
|
46832
46851
|
{
|
|
46833
46852
|
id: "connectorToolAdvancedDefaults",
|
|
46834
46853
|
label: "Connector defaults",
|
|
46835
|
-
icon:
|
|
46854
|
+
icon: connectorAssetIcon("Style"),
|
|
46836
46855
|
controlIds: connectorToolControls.map((control) => control.id),
|
|
46837
46856
|
description: "Extended defaults available in richer create flows."
|
|
46838
46857
|
}
|
|
@@ -60980,7 +60999,8 @@ var COLOR_PALETTE2 = [
|
|
|
60980
60999
|
"transparent"
|
|
60981
61000
|
];
|
|
60982
61001
|
var inlineShapeAsset = (folder, file2 = folder) => overlayAssetIcon(`src/Items/Shape/Basic/${folder}/${file2}.icon.svg`);
|
|
60983
|
-
var
|
|
61002
|
+
var localShapeIcon = (file2) => overlayAssetIcon(`src/Items/Shape/icons/${file2}.icon.svg`);
|
|
61003
|
+
var bpmnIcon = (folder) => overlayAssetIcon(`src/Items/Shape/BPMN/${folder}/${folder}.icon.svg`);
|
|
60984
61004
|
var BASIC_INLINE_OPTIONS = [
|
|
60985
61005
|
{ id: "rectangle", label: "Rectangle", value: "Rectangle", icon: inlineShapeAsset("Rectangle"), family: "basicShapes" },
|
|
60986
61006
|
{ id: "rounded-rectangle", label: "Rounded rectangle", value: "RoundedRectangle", icon: inlineShapeAsset("RoundedRectangle"), family: "basicShapes" },
|
|
@@ -60990,48 +61010,48 @@ var BASIC_INLINE_OPTIONS = [
|
|
|
60990
61010
|
];
|
|
60991
61011
|
var SHAPE_CATALOG_OPTIONS = [
|
|
60992
61012
|
...BASIC_INLINE_OPTIONS,
|
|
60993
|
-
{ id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon:
|
|
61013
|
+
{ id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: localShapeIcon("ReversedTriangle"), family: "basicShapes" },
|
|
60994
61014
|
{ id: "arrow-left", label: "Arrow left", value: "ArrowLeft", icon: inlineShapeAsset("ArrowLeft"), family: "basicShapes" },
|
|
60995
61015
|
{ id: "arrow-right", label: "Arrow right", value: "ArrowRight", icon: inlineShapeAsset("ArrowRight"), family: "basicShapes" },
|
|
60996
61016
|
{ id: "arrow-left-right", label: "Arrow left right", value: "ArrowLeftRight", icon: inlineShapeAsset("ArrowLeftRight"), family: "basicShapes" },
|
|
60997
|
-
{ id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon:
|
|
60998
|
-
{ id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon:
|
|
61017
|
+
{ id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: localShapeIcon("ArrowBlockLeft"), family: "basicShapes" },
|
|
61018
|
+
{ id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: localShapeIcon("ArrowBlockRight"), family: "basicShapes" },
|
|
60999
61019
|
{ id: "cloud", label: "Cloud", value: "Cloud", icon: inlineShapeAsset("Cloud"), family: "basicShapes" },
|
|
61000
61020
|
{ id: "cross", label: "Cross", value: "Cross", icon: inlineShapeAsset("Cross"), family: "basicShapes" },
|
|
61001
61021
|
{ id: "cylinder", label: "Cylinder", value: "Cylinder", icon: inlineShapeAsset("Cylinder"), family: "basicShapes" },
|
|
61002
61022
|
{ id: "hexagon", label: "Hexagon", value: "Hexagon", icon: inlineShapeAsset("Hexagon"), family: "basicShapes" },
|
|
61003
61023
|
{ id: "octagon", label: "Octagon", value: "Octagon", icon: inlineShapeAsset("Octagon"), family: "basicShapes" },
|
|
61004
61024
|
{ id: "parallelogram", label: "Parallelogram", value: "Parallelogram", icon: inlineShapeAsset("Parallelogram"), family: "basicShapes" },
|
|
61005
|
-
{ id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon:
|
|
61025
|
+
{ id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: localShapeIcon("ReversedParallelogram"), family: "basicShapes" },
|
|
61006
61026
|
{ id: "pentagon", label: "Pentagon", value: "Pentagon", icon: inlineShapeAsset("Pentagon"), family: "basicShapes" },
|
|
61007
|
-
{ id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon:
|
|
61027
|
+
{ id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: localShapeIcon("PredefinedProcess"), family: "basicShapes" },
|
|
61008
61028
|
{ id: "speech-bubble", label: "Speech bubble", value: "SpeachBubble", icon: inlineShapeAsset("SpeachBubble"), family: "basicShapes" },
|
|
61009
61029
|
{ id: "star", label: "Star", value: "Star", icon: inlineShapeAsset("Star"), family: "basicShapes" },
|
|
61010
61030
|
{ id: "trapezoid", label: "Trapezoid", value: "Trapezoid", icon: inlineShapeAsset("Trapezoid"), family: "basicShapes" },
|
|
61011
61031
|
{ id: "braces-left", label: "Braces left", value: "BracesLeft", icon: inlineShapeAsset("BracesLeft", "BracesLeft"), family: "basicShapes" },
|
|
61012
61032
|
{ id: "braces-right", label: "Braces right", value: "BracesRight", icon: inlineShapeAsset("BracesRight", "BracesRight"), family: "basicShapes" },
|
|
61013
|
-
{ id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon:
|
|
61014
|
-
{ id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon:
|
|
61015
|
-
{ id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon:
|
|
61016
|
-
{ id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon:
|
|
61017
|
-
{ id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon:
|
|
61018
|
-
{ id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon:
|
|
61019
|
-
{ id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon:
|
|
61020
|
-
{ id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon:
|
|
61021
|
-
{ id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon:
|
|
61022
|
-
{ id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon:
|
|
61023
|
-
{ id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon:
|
|
61024
|
-
{ id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon:
|
|
61025
|
-
{ id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon:
|
|
61026
|
-
{ id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon:
|
|
61027
|
-
{ id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon:
|
|
61028
|
-
{ id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon:
|
|
61033
|
+
{ id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: bpmnIcon("BPMN_Task"), family: "bpmn" },
|
|
61034
|
+
{ id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: bpmnIcon("BPMN_Gateway"), family: "bpmn" },
|
|
61035
|
+
{ id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: bpmnIcon("BPMN_GatewayParallel"), family: "bpmn" },
|
|
61036
|
+
{ id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: bpmnIcon("BPMN_GatewayXOR"), family: "bpmn" },
|
|
61037
|
+
{ id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: bpmnIcon("BPMN_StartEvent"), family: "bpmn" },
|
|
61038
|
+
{ id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: bpmnIcon("BPMN_StartEventNoneInterrupting"), family: "bpmn" },
|
|
61039
|
+
{ id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: bpmnIcon("BPMN_EndEvent"), family: "bpmn" },
|
|
61040
|
+
{ id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: bpmnIcon("BPMN_IntermediateEvent"), family: "bpmn" },
|
|
61041
|
+
{ id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: bpmnIcon("BPMN_IntermediateEventNoneInterrupting"), family: "bpmn" },
|
|
61042
|
+
{ id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: bpmnIcon("BPMN_DataObject"), family: "bpmn" },
|
|
61043
|
+
{ id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: bpmnIcon("BPMN_DataStore"), family: "bpmn" },
|
|
61044
|
+
{ id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: bpmnIcon("BPMN_Participant"), family: "bpmn" },
|
|
61045
|
+
{ id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: bpmnIcon("BPMN_Transaction"), family: "bpmn" },
|
|
61046
|
+
{ id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: bpmnIcon("BPMN_EventSubprocess"), family: "bpmn" },
|
|
61047
|
+
{ id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: bpmnIcon("BPMN_Group"), family: "bpmn" },
|
|
61048
|
+
{ id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: bpmnIcon("BPMN_Annotation"), family: "bpmn" }
|
|
61029
61049
|
];
|
|
61030
61050
|
var BORDER_STYLE_OPTIONS = [
|
|
61031
|
-
{ id: "solid", label: "Solid", value: "solid", icon:
|
|
61032
|
-
{ id: "dot", label: "Dot", value: "dot", icon:
|
|
61033
|
-
{ id: "dash", label: "Dash", value: "dash", icon:
|
|
61034
|
-
{ id: "long-dash", label: "Long dash", value: "longDash", icon:
|
|
61051
|
+
{ id: "solid", label: "Solid", value: "solid", icon: localShapeIcon("StrokeSolid") },
|
|
61052
|
+
{ id: "dot", label: "Dot", value: "dot", icon: localShapeIcon("StrokeDot") },
|
|
61053
|
+
{ id: "dash", label: "Dash", value: "dash", icon: localShapeIcon("StrokeDash") },
|
|
61054
|
+
{ id: "long-dash", label: "Long dash", value: "longDash", icon: localShapeIcon("StrokeLongDash") }
|
|
61035
61055
|
];
|
|
61036
61056
|
var shapeTypeControl = {
|
|
61037
61057
|
id: "shapeType",
|
|
@@ -61064,10 +61084,6 @@ var fillControl = {
|
|
|
61064
61084
|
swatch: { kind: "itemProperty", property: "backgroundColor" },
|
|
61065
61085
|
note: "UI can render the current fill color as a swatch inside the icon."
|
|
61066
61086
|
}),
|
|
61067
|
-
icon: styleFillIcon({
|
|
61068
|
-
swatch: { kind: "itemProperty", property: "backgroundColor" },
|
|
61069
|
-
note: "UI can render the current fill color as a swatch inside the icon."
|
|
61070
|
-
}),
|
|
61071
61087
|
editor: {
|
|
61072
61088
|
kind: "color",
|
|
61073
61089
|
palette: COLOR_PALETTE2,
|
|
@@ -61118,7 +61134,7 @@ var shapeOverlay = {
|
|
|
61118
61134
|
{
|
|
61119
61135
|
id: "shape.shapeType",
|
|
61120
61136
|
label: "Shape type",
|
|
61121
|
-
icon:
|
|
61137
|
+
icon: localShapeIcon("Type"),
|
|
61122
61138
|
target: "each",
|
|
61123
61139
|
controls: [shapeTypeControl]
|
|
61124
61140
|
},
|
|
@@ -61149,13 +61165,13 @@ var shapeOverlay = {
|
|
|
61149
61165
|
{
|
|
61150
61166
|
id: "shapeTypeSection",
|
|
61151
61167
|
label: "Type",
|
|
61152
|
-
icon:
|
|
61168
|
+
icon: localShapeIcon("Type"),
|
|
61153
61169
|
actionIds: ["shape.shapeType"]
|
|
61154
61170
|
},
|
|
61155
61171
|
{
|
|
61156
61172
|
id: "shapeAppearanceSection",
|
|
61157
61173
|
label: "Appearance",
|
|
61158
|
-
icon:
|
|
61174
|
+
icon: localShapeIcon("Stroke"),
|
|
61159
61175
|
actionIds: ["shape.fill", "shape.strokeStyle"]
|
|
61160
61176
|
}
|
|
61161
61177
|
]
|
|
@@ -61167,7 +61183,7 @@ var addShapeToolOverlay = {
|
|
|
61167
61183
|
createsItemType: "Shape",
|
|
61168
61184
|
family: "shape",
|
|
61169
61185
|
icon: {
|
|
61170
|
-
...
|
|
61186
|
+
...overlayAssetIcon("src/Items/Shape/icons/Tool.icon.svg"),
|
|
61171
61187
|
state: {
|
|
61172
61188
|
note: "UI may swap the top-level icon to the selected shape option when desired."
|
|
61173
61189
|
}
|
|
@@ -65607,14 +65623,14 @@ var cardOverlay = {
|
|
|
65607
65623
|
{
|
|
65608
65624
|
id: "card.flip",
|
|
65609
65625
|
label: "Flip card",
|
|
65610
|
-
icon:
|
|
65626
|
+
icon: overlayAssetIcon("src/Items/Card/icons/Flip.icon.svg"),
|
|
65611
65627
|
target: "each",
|
|
65612
65628
|
invoke: { kind: "customMethod", methodName: "toggleIsOpen" }
|
|
65613
65629
|
},
|
|
65614
65630
|
{
|
|
65615
65631
|
id: "card.rotateCcw",
|
|
65616
65632
|
label: "Rotate 90 counter clockwise",
|
|
65617
|
-
icon:
|
|
65633
|
+
icon: overlayAssetIcon("src/Items/Card/icons/RotateCcw.icon.svg"),
|
|
65618
65634
|
target: "each",
|
|
65619
65635
|
invoke: {
|
|
65620
65636
|
kind: "customMethod",
|
|
@@ -65625,7 +65641,7 @@ var cardOverlay = {
|
|
|
65625
65641
|
{
|
|
65626
65642
|
id: "card.rotateCw",
|
|
65627
65643
|
label: "Rotate 90 clockwise",
|
|
65628
|
-
icon:
|
|
65644
|
+
icon: overlayAssetIcon("src/Items/Card/icons/RotateCw.icon.svg"),
|
|
65629
65645
|
target: "each",
|
|
65630
65646
|
invoke: {
|
|
65631
65647
|
kind: "customMethod",
|
|
@@ -65879,28 +65895,28 @@ var deckOverlay = {
|
|
|
65879
65895
|
{
|
|
65880
65896
|
id: "deck.getTopCard",
|
|
65881
65897
|
label: "Draw top card",
|
|
65882
|
-
icon:
|
|
65898
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawTop.icon.svg"),
|
|
65883
65899
|
target: "single",
|
|
65884
65900
|
invoke: { kind: "customMethod", methodName: "getTopCard" }
|
|
65885
65901
|
},
|
|
65886
65902
|
{
|
|
65887
65903
|
id: "deck.getBottomCard",
|
|
65888
65904
|
label: "Draw bottom card",
|
|
65889
|
-
icon:
|
|
65905
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawBottom.icon.svg"),
|
|
65890
65906
|
target: "single",
|
|
65891
65907
|
invoke: { kind: "customMethod", methodName: "getBottomCard" }
|
|
65892
65908
|
},
|
|
65893
65909
|
{
|
|
65894
65910
|
id: "deck.getRandomCard",
|
|
65895
65911
|
label: "Draw random card",
|
|
65896
|
-
icon:
|
|
65912
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawRandom.icon.svg"),
|
|
65897
65913
|
target: "single",
|
|
65898
65914
|
invoke: { kind: "customMethod", methodName: "getRandomCard" }
|
|
65899
65915
|
},
|
|
65900
65916
|
{
|
|
65901
65917
|
id: "deck.getCards",
|
|
65902
65918
|
label: "Draw cards",
|
|
65903
|
-
icon:
|
|
65919
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawMany.icon.svg"),
|
|
65904
65920
|
target: "single",
|
|
65905
65921
|
controls: [
|
|
65906
65922
|
{
|
|
@@ -65922,14 +65938,14 @@ var deckOverlay = {
|
|
|
65922
65938
|
{
|
|
65923
65939
|
id: "deck.shuffle",
|
|
65924
65940
|
label: "Shuffle",
|
|
65925
|
-
icon:
|
|
65941
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/Shuffle.icon.svg"),
|
|
65926
65942
|
target: "single",
|
|
65927
65943
|
invoke: { kind: "customMethod", methodName: "shuffleDeck" }
|
|
65928
65944
|
},
|
|
65929
65945
|
{
|
|
65930
65946
|
id: "deck.flip",
|
|
65931
65947
|
label: "Flip deck",
|
|
65932
|
-
icon:
|
|
65948
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/Flip.icon.svg"),
|
|
65933
65949
|
target: "single",
|
|
65934
65950
|
invoke: { kind: "customMethod", methodName: "flipDeck" }
|
|
65935
65951
|
}
|
|
@@ -65938,7 +65954,7 @@ var deckOverlay = {
|
|
|
65938
65954
|
var createDeckSelectionAction = {
|
|
65939
65955
|
id: "deck.createFromSelection",
|
|
65940
65956
|
label: "Create deck",
|
|
65941
|
-
icon:
|
|
65957
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/CreateFromSelection.icon.svg"),
|
|
65942
65958
|
description: "Stacks selected cards into a new deck, or merges selected cards and decks into one deck.",
|
|
65943
65959
|
invoke: { kind: "selectionMethod", methodName: "createDeck" },
|
|
65944
65960
|
isAvailable: (items) => {
|
|
@@ -66507,14 +66523,14 @@ var diceOverlay = {
|
|
|
66507
66523
|
{
|
|
66508
66524
|
id: "dice.throw",
|
|
66509
66525
|
label: "Throw dice",
|
|
66510
|
-
icon:
|
|
66526
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Throw.icon.svg"),
|
|
66511
66527
|
target: "each",
|
|
66512
66528
|
invoke: { kind: "customMethod", methodName: "throwDice" }
|
|
66513
66529
|
},
|
|
66514
66530
|
{
|
|
66515
66531
|
id: "dice.range",
|
|
66516
66532
|
label: "Range",
|
|
66517
|
-
icon:
|
|
66533
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Range.icon.svg"),
|
|
66518
66534
|
target: "each",
|
|
66519
66535
|
controls: [
|
|
66520
66536
|
{
|
|
@@ -66555,7 +66571,7 @@ var diceOverlay = {
|
|
|
66555
66571
|
{
|
|
66556
66572
|
id: "diceActions",
|
|
66557
66573
|
label: "Dice",
|
|
66558
|
-
icon:
|
|
66574
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Throw.icon.svg"),
|
|
66559
66575
|
actionIds: ["dice.throw", "dice.range", "dice.fill"]
|
|
66560
66576
|
}
|
|
66561
66577
|
]
|
|
@@ -66566,14 +66582,14 @@ var addDiceToolOverlay = {
|
|
|
66566
66582
|
kind: "create",
|
|
66567
66583
|
createsItemType: "Dice",
|
|
66568
66584
|
family: "game",
|
|
66569
|
-
icon:
|
|
66585
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
66570
66586
|
launch: { kind: "activate-tool" },
|
|
66571
66587
|
surface: {
|
|
66572
66588
|
order: 1,
|
|
66573
66589
|
group: {
|
|
66574
66590
|
id: "gameItems",
|
|
66575
66591
|
label: "Game items",
|
|
66576
|
-
icon:
|
|
66592
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
66577
66593
|
order: 1,
|
|
66578
66594
|
behavior: "open-panel"
|
|
66579
66595
|
},
|
|
@@ -66926,7 +66942,7 @@ var screenOverlay = {
|
|
|
66926
66942
|
id: "screen.background",
|
|
66927
66943
|
label: "Background",
|
|
66928
66944
|
icon: {
|
|
66929
|
-
...
|
|
66945
|
+
...overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
|
|
66930
66946
|
state: { swatch: { kind: "itemProperty", property: "backgroundColor" } }
|
|
66931
66947
|
},
|
|
66932
66948
|
target: "each",
|
|
@@ -66948,7 +66964,7 @@ var screenOverlay = {
|
|
|
66948
66964
|
id: "screen.stroke",
|
|
66949
66965
|
label: "Stroke",
|
|
66950
66966
|
icon: {
|
|
66951
|
-
...
|
|
66967
|
+
...overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg"),
|
|
66952
66968
|
state: { swatch: { kind: "itemProperty", property: "borderColor" } }
|
|
66953
66969
|
},
|
|
66954
66970
|
target: "each",
|
|
@@ -66984,7 +67000,7 @@ var screenOverlay = {
|
|
|
66984
67000
|
{
|
|
66985
67001
|
id: "screenStrokeStyle",
|
|
66986
67002
|
label: "Stroke",
|
|
66987
|
-
icon:
|
|
67003
|
+
icon: overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg"),
|
|
66988
67004
|
controlIds: ["borderColor", "borderWidth"]
|
|
66989
67005
|
}
|
|
66990
67006
|
]
|
|
@@ -66992,7 +67008,7 @@ var screenOverlay = {
|
|
|
66992
67008
|
{
|
|
66993
67009
|
id: "screen.backgroundImage",
|
|
66994
67010
|
label: "Background image",
|
|
66995
|
-
icon:
|
|
67011
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/BackgroundImage.icon.svg"),
|
|
66996
67012
|
target: "each",
|
|
66997
67013
|
when: {
|
|
66998
67014
|
kind: "falsy",
|
|
@@ -67015,7 +67031,7 @@ var screenOverlay = {
|
|
|
67015
67031
|
{
|
|
67016
67032
|
id: "screen.removeBackgroundImage",
|
|
67017
67033
|
label: "Remove background image",
|
|
67018
|
-
icon:
|
|
67034
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/BackgroundImageRemove.icon.svg"),
|
|
67019
67035
|
target: "each",
|
|
67020
67036
|
when: {
|
|
67021
67037
|
kind: "truthy",
|
|
@@ -67032,7 +67048,7 @@ var screenOverlay = {
|
|
|
67032
67048
|
{
|
|
67033
67049
|
id: "screenAppearance",
|
|
67034
67050
|
label: "Appearance",
|
|
67035
|
-
icon:
|
|
67051
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
|
|
67036
67052
|
actionIds: ["screen.background", "screen.stroke", "screen.backgroundImage", "screen.removeBackgroundImage"]
|
|
67037
67053
|
}
|
|
67038
67054
|
]
|
|
@@ -67043,14 +67059,14 @@ var addScreenToolOverlay = {
|
|
|
67043
67059
|
kind: "create",
|
|
67044
67060
|
createsItemType: "Screen",
|
|
67045
67061
|
family: "container",
|
|
67046
|
-
icon:
|
|
67062
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/Tool.icon.svg"),
|
|
67047
67063
|
launch: { kind: "activate-tool" },
|
|
67048
67064
|
surface: {
|
|
67049
67065
|
order: 2,
|
|
67050
67066
|
group: {
|
|
67051
67067
|
id: "gameItems",
|
|
67052
67068
|
label: "Game items",
|
|
67053
|
-
icon:
|
|
67069
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
67054
67070
|
order: 1,
|
|
67055
67071
|
behavior: "open-panel"
|
|
67056
67072
|
},
|
|
@@ -67063,14 +67079,14 @@ var addPouchToolOverlay = {
|
|
|
67063
67079
|
kind: "create",
|
|
67064
67080
|
createsItemType: "Screen",
|
|
67065
67081
|
family: "container",
|
|
67066
|
-
icon:
|
|
67082
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/Pouch.icon.svg"),
|
|
67067
67083
|
launch: { kind: "activate-tool" },
|
|
67068
67084
|
surface: {
|
|
67069
67085
|
order: 3,
|
|
67070
67086
|
group: {
|
|
67071
67087
|
id: "gameItems",
|
|
67072
67088
|
label: "Game items",
|
|
67073
|
-
icon:
|
|
67089
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
67074
67090
|
order: 1,
|
|
67075
67091
|
behavior: "open-panel"
|
|
67076
67092
|
},
|
|
@@ -75035,7 +75051,7 @@ var addDrawingToolOverlay = {
|
|
|
75035
75051
|
family: "drawing",
|
|
75036
75052
|
createsItemType: "Drawing",
|
|
75037
75053
|
icon: {
|
|
75038
|
-
...
|
|
75054
|
+
...overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
75039
75055
|
state: {
|
|
75040
75056
|
swatch: { kind: "toolProperty", property: "strokeColor" },
|
|
75041
75057
|
note: "UI can show the pending pen color in the icon."
|
|
@@ -75047,7 +75063,7 @@ var addDrawingToolOverlay = {
|
|
|
75047
75063
|
{
|
|
75048
75064
|
id: "drawingDefaults",
|
|
75049
75065
|
label: "Pen defaults",
|
|
75050
|
-
icon:
|
|
75066
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
75051
75067
|
controlIds: strokeControls2.map((control) => control.id)
|
|
75052
75068
|
}
|
|
75053
75069
|
]
|
|
@@ -75058,7 +75074,7 @@ var addDrawingToolOverlay = {
|
|
|
75058
75074
|
group: {
|
|
75059
75075
|
id: "drawingTools",
|
|
75060
75076
|
label: "Drawing",
|
|
75061
|
-
icon:
|
|
75077
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
75062
75078
|
order: 5,
|
|
75063
75079
|
behavior: "activate-last-used"
|
|
75064
75080
|
},
|
|
@@ -75072,7 +75088,7 @@ var addHighlighterToolOverlay = {
|
|
|
75072
75088
|
family: "drawing",
|
|
75073
75089
|
createsItemType: "Drawing",
|
|
75074
75090
|
icon: {
|
|
75075
|
-
...
|
|
75091
|
+
...overlayAssetIcon("src/Items/Drawing/icons/Highlighter.icon.svg"),
|
|
75076
75092
|
state: {
|
|
75077
75093
|
swatch: { kind: "toolProperty", property: "strokeColor" },
|
|
75078
75094
|
note: "UI can show the pending highlighter color in the icon."
|
|
@@ -75084,7 +75100,7 @@ var addHighlighterToolOverlay = {
|
|
|
75084
75100
|
{
|
|
75085
75101
|
id: "highlighterDefaults",
|
|
75086
75102
|
label: "Highlighter defaults",
|
|
75087
|
-
icon:
|
|
75103
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Highlighter.icon.svg"),
|
|
75088
75104
|
controlIds: strokeControls2.map((control) => control.id)
|
|
75089
75105
|
}
|
|
75090
75106
|
]
|
|
@@ -75095,7 +75111,7 @@ var addHighlighterToolOverlay = {
|
|
|
75095
75111
|
group: {
|
|
75096
75112
|
id: "drawingTools",
|
|
75097
75113
|
label: "Drawing",
|
|
75098
|
-
icon:
|
|
75114
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
75099
75115
|
order: 5,
|
|
75100
75116
|
behavior: "activate-last-used"
|
|
75101
75117
|
},
|
|
@@ -75107,7 +75123,7 @@ var eraserToolOverlay = {
|
|
|
75107
75123
|
label: "Eraser",
|
|
75108
75124
|
kind: "mode",
|
|
75109
75125
|
family: "drawing",
|
|
75110
|
-
icon:
|
|
75126
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Eraser.icon.svg"),
|
|
75111
75127
|
defaults: {
|
|
75112
75128
|
controls: [
|
|
75113
75129
|
{
|
|
@@ -75131,7 +75147,7 @@ var eraserToolOverlay = {
|
|
|
75131
75147
|
group: {
|
|
75132
75148
|
id: "drawingTools",
|
|
75133
75149
|
label: "Drawing",
|
|
75134
|
-
icon:
|
|
75150
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
75135
75151
|
order: 5,
|
|
75136
75152
|
behavior: "activate-last-used"
|
|
75137
75153
|
},
|
|
@@ -75336,7 +75352,7 @@ var frameTypeOptions = Object.keys(Frames).map((frameType) => ({
|
|
|
75336
75352
|
id: frameType,
|
|
75337
75353
|
label: frameType === "Custom" ? "Custom" : Frames[frameType].name,
|
|
75338
75354
|
value: frameType,
|
|
75339
|
-
icon:
|
|
75355
|
+
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")
|
|
75340
75356
|
}));
|
|
75341
75357
|
var addFrameToolOverlay = {
|
|
75342
75358
|
toolName: "AddFrame",
|
|
@@ -75344,7 +75360,7 @@ var addFrameToolOverlay = {
|
|
|
75344
75360
|
kind: "create",
|
|
75345
75361
|
createsItemType: "Frame",
|
|
75346
75362
|
family: "frame",
|
|
75347
|
-
icon:
|
|
75363
|
+
icon: overlayAssetIcon("src/Items/Frame/Frame.icon.svg"),
|
|
75348
75364
|
defaults: {
|
|
75349
75365
|
controls: [
|
|
75350
75366
|
{
|
|
@@ -75726,7 +75742,7 @@ var addStickerToolOverlay = {
|
|
|
75726
75742
|
createsItemType: "Sticker",
|
|
75727
75743
|
family: "sticker",
|
|
75728
75744
|
icon: {
|
|
75729
|
-
...
|
|
75745
|
+
...overlayAssetIcon("src/Items/Sticker/Path/Sticker.icon.svg"),
|
|
75730
75746
|
state: {
|
|
75731
75747
|
swatch: { kind: "toolProperty", property: "backgroundColor" }
|
|
75732
75748
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OverlayIcon } from "./OverlayMetadata";
|
|
1
|
+
import type { OverlayIcon, OverlayIconStateHint } from "./OverlayMetadata";
|
|
2
2
|
export declare const OVERLAY_ICON_SPRITE_PATH = "src/Overlay/overlay-icons.svg";
|
|
3
3
|
export declare function overlaySymbolIcon(key: string): OverlayIcon;
|
|
4
|
-
export declare function overlayAssetIcon(path: string): OverlayIcon;
|
|
4
|
+
export declare function overlayAssetIcon(path: string, state?: OverlayIconStateHint): OverlayIcon;
|