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/node.js
CHANGED
|
@@ -12767,8 +12767,13 @@ function overlaySymbolIcon(key) {
|
|
|
12767
12767
|
sourcePath: OVERLAY_ICON_SPRITE_PATH
|
|
12768
12768
|
};
|
|
12769
12769
|
}
|
|
12770
|
-
function overlayAssetIcon(path2) {
|
|
12771
|
-
return {
|
|
12770
|
+
function overlayAssetIcon(path2, state) {
|
|
12771
|
+
return state ? {
|
|
12772
|
+
kind: "asset",
|
|
12773
|
+
path: path2,
|
|
12774
|
+
mimeType: "image/svg+xml",
|
|
12775
|
+
state
|
|
12776
|
+
} : {
|
|
12772
12777
|
kind: "asset",
|
|
12773
12778
|
path: path2,
|
|
12774
12779
|
mimeType: "image/svg+xml"
|
|
@@ -12786,16 +12791,16 @@ function symbolIcon(key, state) {
|
|
|
12786
12791
|
return state ? { kind: "symbol", key, sourcePath: OVERLAY_ICON_SPRITE_PATH, state } : { kind: "symbol", key, sourcePath: OVERLAY_ICON_SPRITE_PATH };
|
|
12787
12792
|
}
|
|
12788
12793
|
function styleFillIcon(state) {
|
|
12789
|
-
return
|
|
12794
|
+
return overlayAssetIcon("src/Items/Shape/icons/Fill.icon.svg", state);
|
|
12790
12795
|
}
|
|
12791
12796
|
function styleStrokeIcon(state) {
|
|
12792
|
-
return
|
|
12797
|
+
return overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg", state);
|
|
12793
12798
|
}
|
|
12794
12799
|
function styleColorIcon(state) {
|
|
12795
|
-
return
|
|
12800
|
+
return overlayAssetIcon("src/Items/Shape/icons/Color.icon.svg", state);
|
|
12796
12801
|
}
|
|
12797
12802
|
function styleFontSizeIcon(state) {
|
|
12798
|
-
return
|
|
12803
|
+
return overlayAssetIcon("src/Items/RichText/icons/FontSize.icon.svg", state);
|
|
12799
12804
|
}
|
|
12800
12805
|
// src/Overlay/overlayRegistry.ts
|
|
12801
12806
|
var itemOverlays = {};
|
|
@@ -40414,7 +40419,6 @@ var richTextOverlay = {
|
|
|
40414
40419
|
id: "text.fontSize",
|
|
40415
40420
|
label: "Font size",
|
|
40416
40421
|
icon: styleFontSizeIcon(),
|
|
40417
|
-
icon: styleFontSizeIcon(),
|
|
40418
40422
|
target: "each",
|
|
40419
40423
|
controls: [
|
|
40420
40424
|
{
|
|
@@ -40437,7 +40441,7 @@ var richTextOverlay = {
|
|
|
40437
40441
|
{
|
|
40438
40442
|
id: "textTypography",
|
|
40439
40443
|
label: "Typography",
|
|
40440
|
-
icon:
|
|
40444
|
+
icon: overlayAssetIcon("src/Items/RichText/icons/FontSize.icon.svg"),
|
|
40441
40445
|
actionIds: ["text.fontSize"]
|
|
40442
40446
|
}
|
|
40443
40447
|
]
|
|
@@ -40448,7 +40452,7 @@ var addTextToolOverlay = {
|
|
|
40448
40452
|
kind: "create",
|
|
40449
40453
|
createsItemType: "RichText",
|
|
40450
40454
|
family: "text",
|
|
40451
|
-
icon:
|
|
40455
|
+
icon: overlayAssetIcon("src/Items/RichText/icons/Text.icon.svg"),
|
|
40452
40456
|
description: "Creates editable rich text. The current first pass has no pre-placement defaults on this tool.",
|
|
40453
40457
|
launch: { kind: "activate-tool" },
|
|
40454
40458
|
surface: {
|
|
@@ -46856,12 +46860,28 @@ var COLOR_PALETTE = [
|
|
|
46856
46860
|
"#118AB2",
|
|
46857
46861
|
"#7B61FF"
|
|
46858
46862
|
];
|
|
46859
|
-
var
|
|
46863
|
+
var connectorAssetIcon = (file2) => overlayAssetIcon(`src/Items/Connector/icons/${file2}.icon.svg`);
|
|
46864
|
+
var lineStyleAssetIcons = {
|
|
46865
|
+
straight: connectorAssetIcon("LineStraight"),
|
|
46866
|
+
curved: connectorAssetIcon("LineCurved"),
|
|
46867
|
+
orthogonal: connectorAssetIcon("LineOrthogonal")
|
|
46868
|
+
};
|
|
46869
|
+
var pointerAssetIcons = {
|
|
46870
|
+
None: connectorAssetIcon("PointerNone"),
|
|
46871
|
+
ArrowThin: connectorAssetIcon("PointerArrowThin"),
|
|
46872
|
+
ArrowHeavy: connectorAssetIcon("PointerArrowHeavy"),
|
|
46873
|
+
TriangleFilled: connectorAssetIcon("PointerTriangleFilled"),
|
|
46874
|
+
TriangleOutline: connectorAssetIcon("PointerTriangleOutline"),
|
|
46875
|
+
CircleFilled: connectorAssetIcon("PointerCircleFilled"),
|
|
46876
|
+
CircleOutline: connectorAssetIcon("PointerCircleOutline"),
|
|
46877
|
+
DiamondFilled: connectorAssetIcon("PointerDiamondFilled"),
|
|
46878
|
+
DiamondOutline: connectorAssetIcon("PointerDiamondOutline")
|
|
46879
|
+
};
|
|
46860
46880
|
var lineStyleOptions = ConnectorLineStyles.map((style) => ({
|
|
46861
46881
|
id: style,
|
|
46862
46882
|
label: style[0].toUpperCase() + style.slice(1),
|
|
46863
46883
|
value: style,
|
|
46864
|
-
icon:
|
|
46884
|
+
icon: lineStyleAssetIcons[style]
|
|
46865
46885
|
}));
|
|
46866
46886
|
var lineWidthOptions = ConnectionLineWidths.map((width) => ({
|
|
46867
46887
|
id: `${width}`,
|
|
@@ -46872,13 +46892,13 @@ var pointerOptions = CONNECTOR_POINTER_TYPES.map((pointer) => ({
|
|
|
46872
46892
|
id: pointer,
|
|
46873
46893
|
label: pointer,
|
|
46874
46894
|
value: pointer,
|
|
46875
|
-
icon:
|
|
46895
|
+
icon: pointerAssetIcons[pointer]
|
|
46876
46896
|
}));
|
|
46877
46897
|
var borderStyleOptions = ["solid", "dot", "dash", "longDash"].map((style) => ({
|
|
46878
46898
|
id: style,
|
|
46879
46899
|
label: style,
|
|
46880
46900
|
value: style,
|
|
46881
|
-
icon:
|
|
46901
|
+
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")
|
|
46882
46902
|
}));
|
|
46883
46903
|
var connectorStyleControls = [
|
|
46884
46904
|
{
|
|
@@ -46933,7 +46953,7 @@ var connectorStyleControls = [
|
|
|
46933
46953
|
{
|
|
46934
46954
|
id: "smartJump",
|
|
46935
46955
|
label: "Smart jump",
|
|
46936
|
-
icon:
|
|
46956
|
+
icon: connectorAssetIcon("SmartJump"),
|
|
46937
46957
|
valueSource: { kind: "itemProperty", property: "smartJump" },
|
|
46938
46958
|
editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
|
|
46939
46959
|
invoke: { kind: "setProperty", property: "smartJump" }
|
|
@@ -46992,7 +47012,7 @@ var connectorToolControls = [
|
|
|
46992
47012
|
{
|
|
46993
47013
|
id: "toolSmartJump",
|
|
46994
47014
|
label: "Smart jump",
|
|
46995
|
-
icon:
|
|
47015
|
+
icon: connectorAssetIcon("SmartJump"),
|
|
46996
47016
|
valueSource: { kind: "toolProperty", property: "smartJump" },
|
|
46997
47017
|
editor: { kind: "toggle", trueLabel: "On", falseLabel: "Off" },
|
|
46998
47018
|
invoke: { kind: "toolProperty", property: "smartJump" }
|
|
@@ -47004,21 +47024,21 @@ var connectorOverlay = {
|
|
|
47004
47024
|
{
|
|
47005
47025
|
id: "connector.switchPointers",
|
|
47006
47026
|
label: "Switch arrows",
|
|
47007
|
-
icon:
|
|
47027
|
+
icon: connectorAssetIcon("SwitchPointers"),
|
|
47008
47028
|
target: "selection",
|
|
47009
47029
|
invoke: { kind: "operation", class: "Connector", method: "switchPointers" }
|
|
47010
47030
|
},
|
|
47011
47031
|
{
|
|
47012
47032
|
id: "connector.style",
|
|
47013
47033
|
label: "Connector style",
|
|
47014
|
-
icon:
|
|
47034
|
+
icon: connectorAssetIcon("Style"),
|
|
47015
47035
|
target: "each",
|
|
47016
47036
|
controls: connectorStyleControls,
|
|
47017
47037
|
groups: [
|
|
47018
47038
|
{
|
|
47019
47039
|
id: "connectorStyle",
|
|
47020
47040
|
label: "Connector style",
|
|
47021
|
-
icon:
|
|
47041
|
+
icon: connectorAssetIcon("Style"),
|
|
47022
47042
|
controlIds: connectorStyleControls.map((control) => control.id)
|
|
47023
47043
|
}
|
|
47024
47044
|
]
|
|
@@ -47028,7 +47048,7 @@ var connectorOverlay = {
|
|
|
47028
47048
|
{
|
|
47029
47049
|
id: "connectorArrows",
|
|
47030
47050
|
label: "Arrows",
|
|
47031
|
-
icon:
|
|
47051
|
+
icon: connectorAssetIcon("Style"),
|
|
47032
47052
|
actionIds: ["connector.switchPointers", "connector.style"]
|
|
47033
47053
|
}
|
|
47034
47054
|
]
|
|
@@ -47040,8 +47060,7 @@ var addConnectorToolOverlay = {
|
|
|
47040
47060
|
createsItemType: "Connector",
|
|
47041
47061
|
family: "connector",
|
|
47042
47062
|
icon: {
|
|
47043
|
-
|
|
47044
|
-
key: "tool.connector",
|
|
47063
|
+
...connectorAssetIcon("Tool"),
|
|
47045
47064
|
state: {
|
|
47046
47065
|
swatch: { kind: "toolProperty", property: "lineColor" },
|
|
47047
47066
|
note: "UI can tint or swatch the connector icon from the pending line color."
|
|
@@ -47053,14 +47072,14 @@ var addConnectorToolOverlay = {
|
|
|
47053
47072
|
{
|
|
47054
47073
|
id: "connectorToolQuickDefaults",
|
|
47055
47074
|
label: "Connector quick defaults",
|
|
47056
|
-
icon:
|
|
47075
|
+
icon: connectorAssetIcon("LineStraight"),
|
|
47057
47076
|
controlIds: ["toolLineStyle"],
|
|
47058
47077
|
description: "Primary defaults that match the compact create-surface picker."
|
|
47059
47078
|
},
|
|
47060
47079
|
{
|
|
47061
47080
|
id: "connectorToolAdvancedDefaults",
|
|
47062
47081
|
label: "Connector defaults",
|
|
47063
|
-
icon:
|
|
47082
|
+
icon: connectorAssetIcon("Style"),
|
|
47064
47083
|
controlIds: connectorToolControls.map((control) => control.id),
|
|
47065
47084
|
description: "Extended defaults available in richer create flows."
|
|
47066
47085
|
}
|
|
@@ -61208,7 +61227,8 @@ var COLOR_PALETTE2 = [
|
|
|
61208
61227
|
"transparent"
|
|
61209
61228
|
];
|
|
61210
61229
|
var inlineShapeAsset = (folder, file2 = folder) => overlayAssetIcon(`src/Items/Shape/Basic/${folder}/${file2}.icon.svg`);
|
|
61211
|
-
var
|
|
61230
|
+
var localShapeIcon = (file2) => overlayAssetIcon(`src/Items/Shape/icons/${file2}.icon.svg`);
|
|
61231
|
+
var bpmnIcon = (folder) => overlayAssetIcon(`src/Items/Shape/BPMN/${folder}/${folder}.icon.svg`);
|
|
61212
61232
|
var BASIC_INLINE_OPTIONS = [
|
|
61213
61233
|
{ id: "rectangle", label: "Rectangle", value: "Rectangle", icon: inlineShapeAsset("Rectangle"), family: "basicShapes" },
|
|
61214
61234
|
{ id: "rounded-rectangle", label: "Rounded rectangle", value: "RoundedRectangle", icon: inlineShapeAsset("RoundedRectangle"), family: "basicShapes" },
|
|
@@ -61218,48 +61238,48 @@ var BASIC_INLINE_OPTIONS = [
|
|
|
61218
61238
|
];
|
|
61219
61239
|
var SHAPE_CATALOG_OPTIONS = [
|
|
61220
61240
|
...BASIC_INLINE_OPTIONS,
|
|
61221
|
-
{ id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon:
|
|
61241
|
+
{ id: "reversed-triangle", label: "Reversed triangle", value: "ReversedTriangle", icon: localShapeIcon("ReversedTriangle"), family: "basicShapes" },
|
|
61222
61242
|
{ id: "arrow-left", label: "Arrow left", value: "ArrowLeft", icon: inlineShapeAsset("ArrowLeft"), family: "basicShapes" },
|
|
61223
61243
|
{ id: "arrow-right", label: "Arrow right", value: "ArrowRight", icon: inlineShapeAsset("ArrowRight"), family: "basicShapes" },
|
|
61224
61244
|
{ id: "arrow-left-right", label: "Arrow left right", value: "ArrowLeftRight", icon: inlineShapeAsset("ArrowLeftRight"), family: "basicShapes" },
|
|
61225
|
-
{ id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon:
|
|
61226
|
-
{ id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon:
|
|
61245
|
+
{ id: "arrow-block-left", label: "Arrow block left", value: "ArrowBlockLeft", icon: localShapeIcon("ArrowBlockLeft"), family: "basicShapes" },
|
|
61246
|
+
{ id: "arrow-block-right", label: "Arrow block right", value: "ArrowBlockRight", icon: localShapeIcon("ArrowBlockRight"), family: "basicShapes" },
|
|
61227
61247
|
{ id: "cloud", label: "Cloud", value: "Cloud", icon: inlineShapeAsset("Cloud"), family: "basicShapes" },
|
|
61228
61248
|
{ id: "cross", label: "Cross", value: "Cross", icon: inlineShapeAsset("Cross"), family: "basicShapes" },
|
|
61229
61249
|
{ id: "cylinder", label: "Cylinder", value: "Cylinder", icon: inlineShapeAsset("Cylinder"), family: "basicShapes" },
|
|
61230
61250
|
{ id: "hexagon", label: "Hexagon", value: "Hexagon", icon: inlineShapeAsset("Hexagon"), family: "basicShapes" },
|
|
61231
61251
|
{ id: "octagon", label: "Octagon", value: "Octagon", icon: inlineShapeAsset("Octagon"), family: "basicShapes" },
|
|
61232
61252
|
{ id: "parallelogram", label: "Parallelogram", value: "Parallelogram", icon: inlineShapeAsset("Parallelogram"), family: "basicShapes" },
|
|
61233
|
-
{ id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon:
|
|
61253
|
+
{ id: "reversed-parallelogram", label: "Reversed parallelogram", value: "ReversedParallelogram", icon: localShapeIcon("ReversedParallelogram"), family: "basicShapes" },
|
|
61234
61254
|
{ id: "pentagon", label: "Pentagon", value: "Pentagon", icon: inlineShapeAsset("Pentagon"), family: "basicShapes" },
|
|
61235
|
-
{ id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon:
|
|
61255
|
+
{ id: "predefined-process", label: "Predefined process", value: "PredefinedProcess", icon: localShapeIcon("PredefinedProcess"), family: "basicShapes" },
|
|
61236
61256
|
{ id: "speech-bubble", label: "Speech bubble", value: "SpeachBubble", icon: inlineShapeAsset("SpeachBubble"), family: "basicShapes" },
|
|
61237
61257
|
{ id: "star", label: "Star", value: "Star", icon: inlineShapeAsset("Star"), family: "basicShapes" },
|
|
61238
61258
|
{ id: "trapezoid", label: "Trapezoid", value: "Trapezoid", icon: inlineShapeAsset("Trapezoid"), family: "basicShapes" },
|
|
61239
61259
|
{ id: "braces-left", label: "Braces left", value: "BracesLeft", icon: inlineShapeAsset("BracesLeft", "BracesLeft"), family: "basicShapes" },
|
|
61240
61260
|
{ id: "braces-right", label: "Braces right", value: "BracesRight", icon: inlineShapeAsset("BracesRight", "BracesRight"), family: "basicShapes" },
|
|
61241
|
-
{ id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon:
|
|
61242
|
-
{ id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon:
|
|
61243
|
-
{ id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon:
|
|
61244
|
-
{ id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon:
|
|
61245
|
-
{ id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon:
|
|
61246
|
-
{ id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon:
|
|
61247
|
-
{ id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon:
|
|
61248
|
-
{ id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon:
|
|
61249
|
-
{ id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon:
|
|
61250
|
-
{ id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon:
|
|
61251
|
-
{ id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon:
|
|
61252
|
-
{ id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon:
|
|
61253
|
-
{ id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon:
|
|
61254
|
-
{ id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon:
|
|
61255
|
-
{ id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon:
|
|
61256
|
-
{ id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon:
|
|
61261
|
+
{ id: "bpmn-task", label: "BPMN task", value: "BPMN_Task", icon: bpmnIcon("BPMN_Task"), family: "bpmn" },
|
|
61262
|
+
{ id: "bpmn-gateway", label: "BPMN gateway", value: "BPMN_Gateway", icon: bpmnIcon("BPMN_Gateway"), family: "bpmn" },
|
|
61263
|
+
{ id: "bpmn-gateway-parallel", label: "BPMN gateway parallel", value: "BPMN_GatewayParallel", icon: bpmnIcon("BPMN_GatewayParallel"), family: "bpmn" },
|
|
61264
|
+
{ id: "bpmn-gateway-xor", label: "BPMN gateway XOR", value: "BPMN_GatewayXOR", icon: bpmnIcon("BPMN_GatewayXOR"), family: "bpmn" },
|
|
61265
|
+
{ id: "bpmn-start-event", label: "BPMN start event", value: "BPMN_StartEvent", icon: bpmnIcon("BPMN_StartEvent"), family: "bpmn" },
|
|
61266
|
+
{ id: "bpmn-start-event-non-interrupting", label: "BPMN start event non interrupting", value: "BPMN_StartEventNoneInterrupting", icon: bpmnIcon("BPMN_StartEventNoneInterrupting"), family: "bpmn" },
|
|
61267
|
+
{ id: "bpmn-end-event", label: "BPMN end event", value: "BPMN_EndEvent", icon: bpmnIcon("BPMN_EndEvent"), family: "bpmn" },
|
|
61268
|
+
{ id: "bpmn-intermediate-event", label: "BPMN intermediate event", value: "BPMN_IntermediateEvent", icon: bpmnIcon("BPMN_IntermediateEvent"), family: "bpmn" },
|
|
61269
|
+
{ id: "bpmn-intermediate-event-none-interrupting", label: "BPMN intermediate event none interrupting", value: "BPMN_IntermediateEventNoneInterrupting", icon: bpmnIcon("BPMN_IntermediateEventNoneInterrupting"), family: "bpmn" },
|
|
61270
|
+
{ id: "bpmn-data-object", label: "BPMN data object", value: "BPMN_DataObject", icon: bpmnIcon("BPMN_DataObject"), family: "bpmn" },
|
|
61271
|
+
{ id: "bpmn-data-store", label: "BPMN data store", value: "BPMN_DataStore", icon: bpmnIcon("BPMN_DataStore"), family: "bpmn" },
|
|
61272
|
+
{ id: "bpmn-participant", label: "BPMN participant", value: "BPMN_Participant", icon: bpmnIcon("BPMN_Participant"), family: "bpmn" },
|
|
61273
|
+
{ id: "bpmn-transaction", label: "BPMN transaction", value: "BPMN_Transaction", icon: bpmnIcon("BPMN_Transaction"), family: "bpmn" },
|
|
61274
|
+
{ id: "bpmn-event-subprocess", label: "BPMN event subprocess", value: "BPMN_EventSubprocess", icon: bpmnIcon("BPMN_EventSubprocess"), family: "bpmn" },
|
|
61275
|
+
{ id: "bpmn-group", label: "BPMN group", value: "BPMN_Group", icon: bpmnIcon("BPMN_Group"), family: "bpmn" },
|
|
61276
|
+
{ id: "bpmn-annotation", label: "BPMN annotation", value: "BPMN_Annotation", icon: bpmnIcon("BPMN_Annotation"), family: "bpmn" }
|
|
61257
61277
|
];
|
|
61258
61278
|
var BORDER_STYLE_OPTIONS = [
|
|
61259
|
-
{ id: "solid", label: "Solid", value: "solid", icon:
|
|
61260
|
-
{ id: "dot", label: "Dot", value: "dot", icon:
|
|
61261
|
-
{ id: "dash", label: "Dash", value: "dash", icon:
|
|
61262
|
-
{ id: "long-dash", label: "Long dash", value: "longDash", icon:
|
|
61279
|
+
{ id: "solid", label: "Solid", value: "solid", icon: localShapeIcon("StrokeSolid") },
|
|
61280
|
+
{ id: "dot", label: "Dot", value: "dot", icon: localShapeIcon("StrokeDot") },
|
|
61281
|
+
{ id: "dash", label: "Dash", value: "dash", icon: localShapeIcon("StrokeDash") },
|
|
61282
|
+
{ id: "long-dash", label: "Long dash", value: "longDash", icon: localShapeIcon("StrokeLongDash") }
|
|
61263
61283
|
];
|
|
61264
61284
|
var shapeTypeControl = {
|
|
61265
61285
|
id: "shapeType",
|
|
@@ -61292,10 +61312,6 @@ var fillControl = {
|
|
|
61292
61312
|
swatch: { kind: "itemProperty", property: "backgroundColor" },
|
|
61293
61313
|
note: "UI can render the current fill color as a swatch inside the icon."
|
|
61294
61314
|
}),
|
|
61295
|
-
icon: styleFillIcon({
|
|
61296
|
-
swatch: { kind: "itemProperty", property: "backgroundColor" },
|
|
61297
|
-
note: "UI can render the current fill color as a swatch inside the icon."
|
|
61298
|
-
}),
|
|
61299
61315
|
editor: {
|
|
61300
61316
|
kind: "color",
|
|
61301
61317
|
palette: COLOR_PALETTE2,
|
|
@@ -61346,7 +61362,7 @@ var shapeOverlay = {
|
|
|
61346
61362
|
{
|
|
61347
61363
|
id: "shape.shapeType",
|
|
61348
61364
|
label: "Shape type",
|
|
61349
|
-
icon:
|
|
61365
|
+
icon: localShapeIcon("Type"),
|
|
61350
61366
|
target: "each",
|
|
61351
61367
|
controls: [shapeTypeControl]
|
|
61352
61368
|
},
|
|
@@ -61377,13 +61393,13 @@ var shapeOverlay = {
|
|
|
61377
61393
|
{
|
|
61378
61394
|
id: "shapeTypeSection",
|
|
61379
61395
|
label: "Type",
|
|
61380
|
-
icon:
|
|
61396
|
+
icon: localShapeIcon("Type"),
|
|
61381
61397
|
actionIds: ["shape.shapeType"]
|
|
61382
61398
|
},
|
|
61383
61399
|
{
|
|
61384
61400
|
id: "shapeAppearanceSection",
|
|
61385
61401
|
label: "Appearance",
|
|
61386
|
-
icon:
|
|
61402
|
+
icon: localShapeIcon("Stroke"),
|
|
61387
61403
|
actionIds: ["shape.fill", "shape.strokeStyle"]
|
|
61388
61404
|
}
|
|
61389
61405
|
]
|
|
@@ -61395,7 +61411,7 @@ var addShapeToolOverlay = {
|
|
|
61395
61411
|
createsItemType: "Shape",
|
|
61396
61412
|
family: "shape",
|
|
61397
61413
|
icon: {
|
|
61398
|
-
...
|
|
61414
|
+
...overlayAssetIcon("src/Items/Shape/icons/Tool.icon.svg"),
|
|
61399
61415
|
state: {
|
|
61400
61416
|
note: "UI may swap the top-level icon to the selected shape option when desired."
|
|
61401
61417
|
}
|
|
@@ -65835,14 +65851,14 @@ var cardOverlay = {
|
|
|
65835
65851
|
{
|
|
65836
65852
|
id: "card.flip",
|
|
65837
65853
|
label: "Flip card",
|
|
65838
|
-
icon:
|
|
65854
|
+
icon: overlayAssetIcon("src/Items/Card/icons/Flip.icon.svg"),
|
|
65839
65855
|
target: "each",
|
|
65840
65856
|
invoke: { kind: "customMethod", methodName: "toggleIsOpen" }
|
|
65841
65857
|
},
|
|
65842
65858
|
{
|
|
65843
65859
|
id: "card.rotateCcw",
|
|
65844
65860
|
label: "Rotate 90 counter clockwise",
|
|
65845
|
-
icon:
|
|
65861
|
+
icon: overlayAssetIcon("src/Items/Card/icons/RotateCcw.icon.svg"),
|
|
65846
65862
|
target: "each",
|
|
65847
65863
|
invoke: {
|
|
65848
65864
|
kind: "customMethod",
|
|
@@ -65853,7 +65869,7 @@ var cardOverlay = {
|
|
|
65853
65869
|
{
|
|
65854
65870
|
id: "card.rotateCw",
|
|
65855
65871
|
label: "Rotate 90 clockwise",
|
|
65856
|
-
icon:
|
|
65872
|
+
icon: overlayAssetIcon("src/Items/Card/icons/RotateCw.icon.svg"),
|
|
65857
65873
|
target: "each",
|
|
65858
65874
|
invoke: {
|
|
65859
65875
|
kind: "customMethod",
|
|
@@ -66107,28 +66123,28 @@ var deckOverlay = {
|
|
|
66107
66123
|
{
|
|
66108
66124
|
id: "deck.getTopCard",
|
|
66109
66125
|
label: "Draw top card",
|
|
66110
|
-
icon:
|
|
66126
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawTop.icon.svg"),
|
|
66111
66127
|
target: "single",
|
|
66112
66128
|
invoke: { kind: "customMethod", methodName: "getTopCard" }
|
|
66113
66129
|
},
|
|
66114
66130
|
{
|
|
66115
66131
|
id: "deck.getBottomCard",
|
|
66116
66132
|
label: "Draw bottom card",
|
|
66117
|
-
icon:
|
|
66133
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawBottom.icon.svg"),
|
|
66118
66134
|
target: "single",
|
|
66119
66135
|
invoke: { kind: "customMethod", methodName: "getBottomCard" }
|
|
66120
66136
|
},
|
|
66121
66137
|
{
|
|
66122
66138
|
id: "deck.getRandomCard",
|
|
66123
66139
|
label: "Draw random card",
|
|
66124
|
-
icon:
|
|
66140
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawRandom.icon.svg"),
|
|
66125
66141
|
target: "single",
|
|
66126
66142
|
invoke: { kind: "customMethod", methodName: "getRandomCard" }
|
|
66127
66143
|
},
|
|
66128
66144
|
{
|
|
66129
66145
|
id: "deck.getCards",
|
|
66130
66146
|
label: "Draw cards",
|
|
66131
|
-
icon:
|
|
66147
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/DrawMany.icon.svg"),
|
|
66132
66148
|
target: "single",
|
|
66133
66149
|
controls: [
|
|
66134
66150
|
{
|
|
@@ -66150,14 +66166,14 @@ var deckOverlay = {
|
|
|
66150
66166
|
{
|
|
66151
66167
|
id: "deck.shuffle",
|
|
66152
66168
|
label: "Shuffle",
|
|
66153
|
-
icon:
|
|
66169
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/Shuffle.icon.svg"),
|
|
66154
66170
|
target: "single",
|
|
66155
66171
|
invoke: { kind: "customMethod", methodName: "shuffleDeck" }
|
|
66156
66172
|
},
|
|
66157
66173
|
{
|
|
66158
66174
|
id: "deck.flip",
|
|
66159
66175
|
label: "Flip deck",
|
|
66160
|
-
icon:
|
|
66176
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/Flip.icon.svg"),
|
|
66161
66177
|
target: "single",
|
|
66162
66178
|
invoke: { kind: "customMethod", methodName: "flipDeck" }
|
|
66163
66179
|
}
|
|
@@ -66166,7 +66182,7 @@ var deckOverlay = {
|
|
|
66166
66182
|
var createDeckSelectionAction = {
|
|
66167
66183
|
id: "deck.createFromSelection",
|
|
66168
66184
|
label: "Create deck",
|
|
66169
|
-
icon:
|
|
66185
|
+
icon: overlayAssetIcon("src/Items/Deck/icons/CreateFromSelection.icon.svg"),
|
|
66170
66186
|
description: "Stacks selected cards into a new deck, or merges selected cards and decks into one deck.",
|
|
66171
66187
|
invoke: { kind: "selectionMethod", methodName: "createDeck" },
|
|
66172
66188
|
isAvailable: (items) => {
|
|
@@ -66735,14 +66751,14 @@ var diceOverlay = {
|
|
|
66735
66751
|
{
|
|
66736
66752
|
id: "dice.throw",
|
|
66737
66753
|
label: "Throw dice",
|
|
66738
|
-
icon:
|
|
66754
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Throw.icon.svg"),
|
|
66739
66755
|
target: "each",
|
|
66740
66756
|
invoke: { kind: "customMethod", methodName: "throwDice" }
|
|
66741
66757
|
},
|
|
66742
66758
|
{
|
|
66743
66759
|
id: "dice.range",
|
|
66744
66760
|
label: "Range",
|
|
66745
|
-
icon:
|
|
66761
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Range.icon.svg"),
|
|
66746
66762
|
target: "each",
|
|
66747
66763
|
controls: [
|
|
66748
66764
|
{
|
|
@@ -66783,7 +66799,7 @@ var diceOverlay = {
|
|
|
66783
66799
|
{
|
|
66784
66800
|
id: "diceActions",
|
|
66785
66801
|
label: "Dice",
|
|
66786
|
-
icon:
|
|
66802
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Throw.icon.svg"),
|
|
66787
66803
|
actionIds: ["dice.throw", "dice.range", "dice.fill"]
|
|
66788
66804
|
}
|
|
66789
66805
|
]
|
|
@@ -66794,14 +66810,14 @@ var addDiceToolOverlay = {
|
|
|
66794
66810
|
kind: "create",
|
|
66795
66811
|
createsItemType: "Dice",
|
|
66796
66812
|
family: "game",
|
|
66797
|
-
icon:
|
|
66813
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
66798
66814
|
launch: { kind: "activate-tool" },
|
|
66799
66815
|
surface: {
|
|
66800
66816
|
order: 1,
|
|
66801
66817
|
group: {
|
|
66802
66818
|
id: "gameItems",
|
|
66803
66819
|
label: "Game items",
|
|
66804
|
-
icon:
|
|
66820
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
66805
66821
|
order: 1,
|
|
66806
66822
|
behavior: "open-panel"
|
|
66807
66823
|
},
|
|
@@ -67154,7 +67170,7 @@ var screenOverlay = {
|
|
|
67154
67170
|
id: "screen.background",
|
|
67155
67171
|
label: "Background",
|
|
67156
67172
|
icon: {
|
|
67157
|
-
...
|
|
67173
|
+
...overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
|
|
67158
67174
|
state: { swatch: { kind: "itemProperty", property: "backgroundColor" } }
|
|
67159
67175
|
},
|
|
67160
67176
|
target: "each",
|
|
@@ -67176,7 +67192,7 @@ var screenOverlay = {
|
|
|
67176
67192
|
id: "screen.stroke",
|
|
67177
67193
|
label: "Stroke",
|
|
67178
67194
|
icon: {
|
|
67179
|
-
...
|
|
67195
|
+
...overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg"),
|
|
67180
67196
|
state: { swatch: { kind: "itemProperty", property: "borderColor" } }
|
|
67181
67197
|
},
|
|
67182
67198
|
target: "each",
|
|
@@ -67212,7 +67228,7 @@ var screenOverlay = {
|
|
|
67212
67228
|
{
|
|
67213
67229
|
id: "screenStrokeStyle",
|
|
67214
67230
|
label: "Stroke",
|
|
67215
|
-
icon:
|
|
67231
|
+
icon: overlayAssetIcon("src/Items/Shape/icons/Stroke.icon.svg"),
|
|
67216
67232
|
controlIds: ["borderColor", "borderWidth"]
|
|
67217
67233
|
}
|
|
67218
67234
|
]
|
|
@@ -67220,7 +67236,7 @@ var screenOverlay = {
|
|
|
67220
67236
|
{
|
|
67221
67237
|
id: "screen.backgroundImage",
|
|
67222
67238
|
label: "Background image",
|
|
67223
|
-
icon:
|
|
67239
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/BackgroundImage.icon.svg"),
|
|
67224
67240
|
target: "each",
|
|
67225
67241
|
when: {
|
|
67226
67242
|
kind: "falsy",
|
|
@@ -67243,7 +67259,7 @@ var screenOverlay = {
|
|
|
67243
67259
|
{
|
|
67244
67260
|
id: "screen.removeBackgroundImage",
|
|
67245
67261
|
label: "Remove background image",
|
|
67246
|
-
icon:
|
|
67262
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/BackgroundImageRemove.icon.svg"),
|
|
67247
67263
|
target: "each",
|
|
67248
67264
|
when: {
|
|
67249
67265
|
kind: "truthy",
|
|
@@ -67260,7 +67276,7 @@ var screenOverlay = {
|
|
|
67260
67276
|
{
|
|
67261
67277
|
id: "screenAppearance",
|
|
67262
67278
|
label: "Appearance",
|
|
67263
|
-
icon:
|
|
67279
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/Background.icon.svg"),
|
|
67264
67280
|
actionIds: ["screen.background", "screen.stroke", "screen.backgroundImage", "screen.removeBackgroundImage"]
|
|
67265
67281
|
}
|
|
67266
67282
|
]
|
|
@@ -67271,14 +67287,14 @@ var addScreenToolOverlay = {
|
|
|
67271
67287
|
kind: "create",
|
|
67272
67288
|
createsItemType: "Screen",
|
|
67273
67289
|
family: "container",
|
|
67274
|
-
icon:
|
|
67290
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/Tool.icon.svg"),
|
|
67275
67291
|
launch: { kind: "activate-tool" },
|
|
67276
67292
|
surface: {
|
|
67277
67293
|
order: 2,
|
|
67278
67294
|
group: {
|
|
67279
67295
|
id: "gameItems",
|
|
67280
67296
|
label: "Game items",
|
|
67281
|
-
icon:
|
|
67297
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
67282
67298
|
order: 1,
|
|
67283
67299
|
behavior: "open-panel"
|
|
67284
67300
|
},
|
|
@@ -67291,14 +67307,14 @@ var addPouchToolOverlay = {
|
|
|
67291
67307
|
kind: "create",
|
|
67292
67308
|
createsItemType: "Screen",
|
|
67293
67309
|
family: "container",
|
|
67294
|
-
icon:
|
|
67310
|
+
icon: overlayAssetIcon("src/Items/Screen/icons/Pouch.icon.svg"),
|
|
67295
67311
|
launch: { kind: "activate-tool" },
|
|
67296
67312
|
surface: {
|
|
67297
67313
|
order: 3,
|
|
67298
67314
|
group: {
|
|
67299
67315
|
id: "gameItems",
|
|
67300
67316
|
label: "Game items",
|
|
67301
|
-
icon:
|
|
67317
|
+
icon: overlayAssetIcon("src/Items/Dice/icons/Tool.icon.svg"),
|
|
67302
67318
|
order: 1,
|
|
67303
67319
|
behavior: "open-panel"
|
|
67304
67320
|
},
|
|
@@ -75263,7 +75279,7 @@ var addDrawingToolOverlay = {
|
|
|
75263
75279
|
family: "drawing",
|
|
75264
75280
|
createsItemType: "Drawing",
|
|
75265
75281
|
icon: {
|
|
75266
|
-
...
|
|
75282
|
+
...overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
75267
75283
|
state: {
|
|
75268
75284
|
swatch: { kind: "toolProperty", property: "strokeColor" },
|
|
75269
75285
|
note: "UI can show the pending pen color in the icon."
|
|
@@ -75275,7 +75291,7 @@ var addDrawingToolOverlay = {
|
|
|
75275
75291
|
{
|
|
75276
75292
|
id: "drawingDefaults",
|
|
75277
75293
|
label: "Pen defaults",
|
|
75278
|
-
icon:
|
|
75294
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
75279
75295
|
controlIds: strokeControls2.map((control) => control.id)
|
|
75280
75296
|
}
|
|
75281
75297
|
]
|
|
@@ -75286,7 +75302,7 @@ var addDrawingToolOverlay = {
|
|
|
75286
75302
|
group: {
|
|
75287
75303
|
id: "drawingTools",
|
|
75288
75304
|
label: "Drawing",
|
|
75289
|
-
icon:
|
|
75305
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
75290
75306
|
order: 5,
|
|
75291
75307
|
behavior: "activate-last-used"
|
|
75292
75308
|
},
|
|
@@ -75300,7 +75316,7 @@ var addHighlighterToolOverlay = {
|
|
|
75300
75316
|
family: "drawing",
|
|
75301
75317
|
createsItemType: "Drawing",
|
|
75302
75318
|
icon: {
|
|
75303
|
-
...
|
|
75319
|
+
...overlayAssetIcon("src/Items/Drawing/icons/Highlighter.icon.svg"),
|
|
75304
75320
|
state: {
|
|
75305
75321
|
swatch: { kind: "toolProperty", property: "strokeColor" },
|
|
75306
75322
|
note: "UI can show the pending highlighter color in the icon."
|
|
@@ -75312,7 +75328,7 @@ var addHighlighterToolOverlay = {
|
|
|
75312
75328
|
{
|
|
75313
75329
|
id: "highlighterDefaults",
|
|
75314
75330
|
label: "Highlighter defaults",
|
|
75315
|
-
icon:
|
|
75331
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Highlighter.icon.svg"),
|
|
75316
75332
|
controlIds: strokeControls2.map((control) => control.id)
|
|
75317
75333
|
}
|
|
75318
75334
|
]
|
|
@@ -75323,7 +75339,7 @@ var addHighlighterToolOverlay = {
|
|
|
75323
75339
|
group: {
|
|
75324
75340
|
id: "drawingTools",
|
|
75325
75341
|
label: "Drawing",
|
|
75326
|
-
icon:
|
|
75342
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
75327
75343
|
order: 5,
|
|
75328
75344
|
behavior: "activate-last-used"
|
|
75329
75345
|
},
|
|
@@ -75335,7 +75351,7 @@ var eraserToolOverlay = {
|
|
|
75335
75351
|
label: "Eraser",
|
|
75336
75352
|
kind: "mode",
|
|
75337
75353
|
family: "drawing",
|
|
75338
|
-
icon:
|
|
75354
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Eraser.icon.svg"),
|
|
75339
75355
|
defaults: {
|
|
75340
75356
|
controls: [
|
|
75341
75357
|
{
|
|
@@ -75359,7 +75375,7 @@ var eraserToolOverlay = {
|
|
|
75359
75375
|
group: {
|
|
75360
75376
|
id: "drawingTools",
|
|
75361
75377
|
label: "Drawing",
|
|
75362
|
-
icon:
|
|
75378
|
+
icon: overlayAssetIcon("src/Items/Drawing/icons/Pen.icon.svg"),
|
|
75363
75379
|
order: 5,
|
|
75364
75380
|
behavior: "activate-last-used"
|
|
75365
75381
|
},
|
|
@@ -75564,7 +75580,7 @@ var frameTypeOptions = Object.keys(Frames).map((frameType) => ({
|
|
|
75564
75580
|
id: frameType,
|
|
75565
75581
|
label: frameType === "Custom" ? "Custom" : Frames[frameType].name,
|
|
75566
75582
|
value: frameType,
|
|
75567
|
-
icon:
|
|
75583
|
+
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")
|
|
75568
75584
|
}));
|
|
75569
75585
|
var addFrameToolOverlay = {
|
|
75570
75586
|
toolName: "AddFrame",
|
|
@@ -75572,7 +75588,7 @@ var addFrameToolOverlay = {
|
|
|
75572
75588
|
kind: "create",
|
|
75573
75589
|
createsItemType: "Frame",
|
|
75574
75590
|
family: "frame",
|
|
75575
|
-
icon:
|
|
75591
|
+
icon: overlayAssetIcon("src/Items/Frame/Frame.icon.svg"),
|
|
75576
75592
|
defaults: {
|
|
75577
75593
|
controls: [
|
|
75578
75594
|
{
|
|
@@ -75954,7 +75970,7 @@ var addStickerToolOverlay = {
|
|
|
75954
75970
|
createsItemType: "Sticker",
|
|
75955
75971
|
family: "sticker",
|
|
75956
75972
|
icon: {
|
|
75957
|
-
...
|
|
75973
|
+
...overlayAssetIcon("src/Items/Sticker/Path/Sticker.icon.svg"),
|
|
75958
75974
|
state: {
|
|
75959
75975
|
swatch: { kind: "toolProperty", property: "backgroundColor" }
|
|
75960
75976
|
}
|