@almadar/std 16.158.0 → 16.159.0
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/behaviors/lolo/ui/core/atoms/std-calendar.lolo +8 -1
- package/behaviors/lolo/ui/core/atoms/std-esign-flow.lolo +8 -1
- package/behaviors/lolo/ui/core/atoms/std-list.lolo +8 -1
- package/behaviors/lolo/ui/core/atoms/std-related.lolo +8 -1
- package/behaviors/lolo/ui/core/atoms/std-selection.lolo +8 -1
- package/behaviors/lolo/ui/game/atoms/std-grid-tactics.lolo +3 -2
- package/behaviors/lolo/ui/game/atoms/ui-draw-group.lolo +39 -0
- package/behaviors/lolo/ui/game/atoms/ui-draw-mesh.lolo +23 -2
- package/behaviors/lolo/ui/game/molecules/std-tactics-board-3d.lolo +3 -2
- package/behaviors/registry/factory-signatures.json +16058 -34167
- package/behaviors/registry/ui/core/atoms/std-calendar.orb +40 -1
- package/behaviors/registry/ui/core/atoms/std-esign-flow.orb +40 -1
- package/behaviors/registry/ui/core/atoms/std-list.orb +40 -1
- package/behaviors/registry/ui/core/atoms/std-related.orb +40 -1
- package/behaviors/registry/ui/core/atoms/std-selection.orb +40 -1
- package/behaviors/registry/ui/game/atoms/std-grid-tactics.orb +218 -2
- package/behaviors/registry/ui/game/atoms/ui-draw-group.orb +114 -0
- package/behaviors/registry/ui/game/atoms/ui-draw-mesh.orb +81 -2
- package/behaviors/registry/ui/game/molecules/std-tactics-board-3d.orb +41 -0
- package/behaviors/registry/ui/game/organisms/ui-sokoban-board.orb +1 -475
- package/dist/behaviors/behaviors-registry.json +155 -1494
- package/dist/behaviors/exports-reader.js +8343 -15544
- package/dist/behaviors/functions/index.d.ts +54 -459
- package/dist/behaviors/functions/index.js +8344 -15530
- package/dist/behaviors/index.d.ts +1 -1
- package/dist/behaviors/index.js +8344 -15545
- package/dist/behaviors/query.js +8343 -15544
- package/dist/behaviors/registry/factory-signatures.json +16058 -34167
- package/dist/behaviors/registry/ui/core/atoms/std-calendar.orb +40 -1
- package/dist/behaviors/registry/ui/core/atoms/std-esign-flow.orb +40 -1
- package/dist/behaviors/registry/ui/core/atoms/std-list.orb +40 -1
- package/dist/behaviors/registry/ui/core/atoms/std-related.orb +40 -1
- package/dist/behaviors/registry/ui/core/atoms/std-selection.orb +40 -1
- package/dist/behaviors/registry/ui/game/atoms/std-grid-tactics.orb +218 -2
- package/dist/behaviors/registry/ui/game/atoms/ui-draw-group.orb +114 -0
- package/dist/behaviors/registry/ui/game/atoms/ui-draw-mesh.orb +81 -2
- package/dist/behaviors/registry/ui/game/molecules/std-tactics-board-3d.orb +41 -0
- package/dist/behaviors/registry/ui/game/organisms/ui-sokoban-board.orb +1 -475
- package/dist/behaviors-registry.json +155 -1494
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8344 -15545
- package/dist/registry/factory-signatures.json +16058 -34167
- package/package.json +4 -4
- package/behaviors/lolo/ui/game/atoms/ui-svg-draw-group.lolo +0 -58
- package/behaviors/lolo/ui/game/atoms/ui-svg-draw-shape.lolo +0 -103
- package/behaviors/lolo/ui/game/atoms/ui-svg-draw-text.lolo +0 -58
- package/behaviors/lolo/ui/game/molecules/ui-svg-draw-shape-layer.lolo +0 -52
- package/behaviors/lolo/ui/game/molecules/ui-svg-stage.lolo +0 -98
- package/behaviors/registry/ui/game/atoms/ui-svg-draw-group.orb +0 -186
- package/behaviors/registry/ui/game/atoms/ui-svg-draw-shape.orb +0 -259
- package/behaviors/registry/ui/game/atoms/ui-svg-draw-text.orb +0 -195
- package/behaviors/registry/ui/game/molecules/ui-svg-draw-shape-layer.orb +0 -188
- package/behaviors/registry/ui/game/molecules/ui-svg-stage.orb +0 -362
- package/dist/behaviors/registry/ui/game/atoms/ui-svg-draw-group.orb +0 -186
- package/dist/behaviors/registry/ui/game/atoms/ui-svg-draw-shape.orb +0 -259
- package/dist/behaviors/registry/ui/game/atoms/ui-svg-draw-text.orb +0 -195
- package/dist/behaviors/registry/ui/game/molecules/ui-svg-draw-shape-layer.orb +0 -188
- package/dist/behaviors/registry/ui/game/molecules/ui-svg-stage.orb +0 -362
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almadar/std",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.159.0",
|
|
4
4
|
"description": "Standard library operators for Almadar (math, string, array, etc.)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -56,13 +56,13 @@
|
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"@almadar/core": "^10.
|
|
59
|
+
"@almadar/core": "^10.49.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@almadar/eslint-plugin": "^2.15.0",
|
|
63
|
-
"@almadar/llm": "^2.
|
|
63
|
+
"@almadar/llm": "^2.39.0",
|
|
64
64
|
"@types/node": "^20.0.0",
|
|
65
|
-
"@typescript-eslint/parser": "8.
|
|
65
|
+
"@typescript-eslint/parser": "8.65.0",
|
|
66
66
|
"eslint": "10.0.0",
|
|
67
67
|
"tsup": "^8.0.0",
|
|
68
68
|
"tsx": "^4.7.0",
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
app ui-svg-draw-group "1.0.0"
|
|
2
|
-
"SvgDrawGroup — UI factory (1:1 with the @almadar/ui svg-draw-group pattern)."
|
|
3
|
-
orbital SvgDrawGroupOrbital {
|
|
4
|
-
entity SvgDrawGroupItem [runtime] {
|
|
5
|
-
id : string!
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
trait SvgDrawGroupRender -> @rebindable SvgDrawGroupItem [interaction, instance] {
|
|
9
|
-
initial: idle
|
|
10
|
-
|
|
11
|
-
state idle {
|
|
12
|
-
INIT -> idle
|
|
13
|
-
(render-ui main {
|
|
14
|
-
x: @config.x
|
|
15
|
-
y: @config.y
|
|
16
|
-
scale: @config.scale
|
|
17
|
-
rotate: @config.rotate
|
|
18
|
-
opacity: @config.opacity
|
|
19
|
-
className: @config.className
|
|
20
|
-
children: @config.children
|
|
21
|
-
type: svg-draw-group
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
config {
|
|
26
|
-
x : number = 0
|
|
27
|
-
@label "X"
|
|
28
|
-
@description "Grid-cell x of the group's origin."
|
|
29
|
-
@tier "presentation"
|
|
30
|
-
y : number = 0
|
|
31
|
-
@label "Y"
|
|
32
|
-
@description "Grid-cell y of the group's origin."
|
|
33
|
-
@tier "presentation"
|
|
34
|
-
scale : number
|
|
35
|
-
@label "Scale"
|
|
36
|
-
@description "Uniform scale applied after the translate."
|
|
37
|
-
@tier "presentation"
|
|
38
|
-
rotate : number
|
|
39
|
-
@label "Rotate"
|
|
40
|
-
@description "Rotation in degrees applied after the translate."
|
|
41
|
-
@tier "presentation"
|
|
42
|
-
opacity : number
|
|
43
|
-
@label "Opacity"
|
|
44
|
-
@description "0..1 opacity."
|
|
45
|
-
@tier "presentation"
|
|
46
|
-
className : string
|
|
47
|
-
@label "Class Name"
|
|
48
|
-
@description "Additional CSS classes"
|
|
49
|
-
@tier "presentation"
|
|
50
|
-
children : node
|
|
51
|
-
@label "Children"
|
|
52
|
-
@description "children prop"
|
|
53
|
-
@tier "presentation"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
page "/svg-draw-group" as SvgDrawGroupPage -> SvgDrawGroupRender
|
|
58
|
-
}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
app ui-svg-draw-shape "1.0.0"
|
|
2
|
-
"SvgDrawShape — UI factory (1:1 with the @almadar/ui svg-draw-shape pattern)."
|
|
3
|
-
orbital SvgDrawShapeOrbital {
|
|
4
|
-
entity SvgDrawShapeItem [runtime] {
|
|
5
|
-
id : string!
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
trait SvgDrawShapeRender -> @rebindable SvgDrawShapeItem [interaction, instance] {
|
|
9
|
-
initial: idle
|
|
10
|
-
|
|
11
|
-
state idle {
|
|
12
|
-
INIT -> idle
|
|
13
|
-
(render-ui main {
|
|
14
|
-
shape: @config.shape
|
|
15
|
-
x: @config.x
|
|
16
|
-
y: @config.y
|
|
17
|
-
width: @config.width
|
|
18
|
-
height: @config.height
|
|
19
|
-
radius: @config.radius
|
|
20
|
-
radiusY: @config.radiusY
|
|
21
|
-
points: @config.points
|
|
22
|
-
d: @config.d
|
|
23
|
-
x2: @config.x2
|
|
24
|
-
y2: @config.y2
|
|
25
|
-
fill: @config.fill
|
|
26
|
-
stroke: @config.stroke
|
|
27
|
-
strokeWidth: @config.strokeWidth
|
|
28
|
-
opacity: @config.opacity
|
|
29
|
-
className: @config.className
|
|
30
|
-
type: svg-draw-shape
|
|
31
|
-
})
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
config {
|
|
35
|
-
shape : "rect" | "circle" | "ellipse" | "polygon" | "polyline" | "path" | "line" = rect
|
|
36
|
-
@label "Shape"
|
|
37
|
-
@description "shape prop"
|
|
38
|
-
@tier "presentation"
|
|
39
|
-
x : number = 1
|
|
40
|
-
@label "X"
|
|
41
|
-
@description "Grid-cell x of the element's translated origin."
|
|
42
|
-
@tier "presentation"
|
|
43
|
-
y : number = 1
|
|
44
|
-
@label "Y"
|
|
45
|
-
@description "Grid-cell y of the element's translated origin."
|
|
46
|
-
@tier "presentation"
|
|
47
|
-
width : number
|
|
48
|
-
@label "Width"
|
|
49
|
-
@description "Rect width in cell units."
|
|
50
|
-
@tier "presentation"
|
|
51
|
-
height : number
|
|
52
|
-
@label "Height"
|
|
53
|
-
@description "Rect height in cell units."
|
|
54
|
-
@tier "presentation"
|
|
55
|
-
radius : number
|
|
56
|
-
@label "Radius"
|
|
57
|
-
@description "Circle radius / ellipse horizontal radius in cell units."
|
|
58
|
-
@tier "presentation"
|
|
59
|
-
radiusY : number
|
|
60
|
-
@label "Radius Y"
|
|
61
|
-
@description "Ellipse vertical radius in cell units; omitted → `radius` (a circle)."
|
|
62
|
-
@tier "presentation"
|
|
63
|
-
points : string
|
|
64
|
-
@label "Points"
|
|
65
|
-
@description "Polygon/polyline points, viewBox units relative to the translated origin."
|
|
66
|
-
@tier "presentation"
|
|
67
|
-
d : string
|
|
68
|
-
@label "D"
|
|
69
|
-
@description "Path data, viewBox units relative to the translated origin."
|
|
70
|
-
@tier "presentation"
|
|
71
|
-
x2 : number
|
|
72
|
-
@label "X2"
|
|
73
|
-
@description "Line end x in cell units."
|
|
74
|
-
@tier "presentation"
|
|
75
|
-
y2 : number
|
|
76
|
-
@label "Y2"
|
|
77
|
-
@description "Line end y in cell units."
|
|
78
|
-
@tier "presentation"
|
|
79
|
-
fill : string
|
|
80
|
-
@label "Fill"
|
|
81
|
-
@description "fill prop"
|
|
82
|
-
@tier "presentation"
|
|
83
|
-
stroke : string
|
|
84
|
-
@label "Stroke"
|
|
85
|
-
@description "stroke prop"
|
|
86
|
-
@tier "presentation"
|
|
87
|
-
strokeWidth : number
|
|
88
|
-
@label "Stroke Width"
|
|
89
|
-
@description "strokeWidth prop"
|
|
90
|
-
@tier "presentation"
|
|
91
|
-
opacity : number
|
|
92
|
-
@label "Opacity"
|
|
93
|
-
@description "0..1 opacity."
|
|
94
|
-
@tier "presentation"
|
|
95
|
-
className : string
|
|
96
|
-
@label "Class Name"
|
|
97
|
-
@description "Additional CSS classes"
|
|
98
|
-
@tier "presentation"
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
page "/svg-draw-shape" as SvgDrawShapePage -> SvgDrawShapeRender
|
|
103
|
-
}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
app ui-svg-draw-text "1.0.0"
|
|
2
|
-
"SvgDrawText — UI factory (1:1 with the @almadar/ui svg-draw-text pattern)."
|
|
3
|
-
orbital SvgDrawTextOrbital {
|
|
4
|
-
entity SvgDrawTextItem [runtime] {
|
|
5
|
-
id : string!
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
trait SvgDrawTextRender -> @rebindable SvgDrawTextItem [interaction, instance] {
|
|
9
|
-
initial: idle
|
|
10
|
-
|
|
11
|
-
state idle {
|
|
12
|
-
INIT -> idle
|
|
13
|
-
(render-ui main {
|
|
14
|
-
x: @config.x
|
|
15
|
-
y: @config.y
|
|
16
|
-
text: @config.text
|
|
17
|
-
size: @config.size
|
|
18
|
-
fill: @config.fill
|
|
19
|
-
anchor: @config.anchor
|
|
20
|
-
className: @config.className
|
|
21
|
-
type: svg-draw-text
|
|
22
|
-
})
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
config {
|
|
26
|
-
x : number = 1
|
|
27
|
-
@label "X"
|
|
28
|
-
@description "Grid-cell x of the text anchor."
|
|
29
|
-
@tier "presentation"
|
|
30
|
-
y : number = 1
|
|
31
|
-
@label "Y"
|
|
32
|
-
@description "Grid-cell y of the text anchor."
|
|
33
|
-
@tier "presentation"
|
|
34
|
-
text : string = ""
|
|
35
|
-
@label "Text"
|
|
36
|
-
@description "The text content."
|
|
37
|
-
@tier "presentation"
|
|
38
|
-
size : number = 12
|
|
39
|
-
@label "Size"
|
|
40
|
-
@description "Font size in viewBox units (default 12)."
|
|
41
|
-
@tier "presentation"
|
|
42
|
-
fill : string = "var(--color-foreground)"
|
|
43
|
-
@label "Fill"
|
|
44
|
-
@description "fill prop"
|
|
45
|
-
@tier "presentation"
|
|
46
|
-
anchor : "start" | "middle" | "end" = middle
|
|
47
|
-
@label "Anchor"
|
|
48
|
-
@description "Text anchor (default 'middle')."
|
|
49
|
-
@tier "presentation"
|
|
50
|
-
className : string
|
|
51
|
-
@label "Class Name"
|
|
52
|
-
@description "Additional CSS classes"
|
|
53
|
-
@tier "presentation"
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
page "/svg-draw-text" as SvgDrawTextPage -> SvgDrawTextRender
|
|
58
|
-
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
app ui-svg-draw-shape-layer "1.0.0"
|
|
2
|
-
"SvgDrawShapeLayer — UI factory (1:1 with the @almadar/ui svg-draw-shape-layer pattern)."
|
|
3
|
-
orbital SvgDrawShapeLayerOrbital {
|
|
4
|
-
type SvgDrawShapeLayerItemsItem = {
|
|
5
|
-
id : string!
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
entity SvgDrawShapeLayerItem [runtime] {
|
|
9
|
-
id : string!
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
trait SvgDrawShapeLayerRender -> @rebindable SvgDrawShapeLayerItem [interaction, instance] {
|
|
13
|
-
initial: idle
|
|
14
|
-
|
|
15
|
-
state idle {
|
|
16
|
-
INIT -> idle
|
|
17
|
-
(render-ui main {
|
|
18
|
-
items: @config.items
|
|
19
|
-
fill: @config.fill
|
|
20
|
-
stroke: @config.stroke
|
|
21
|
-
strokeWidth: @config.strokeWidth
|
|
22
|
-
opacity: @config.opacity
|
|
23
|
-
type: svg-draw-shape-layer
|
|
24
|
-
})
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
config {
|
|
28
|
-
items : [SvgDrawShapeLayerItemsItem] = [{ id: "Id" }, { id: "Id 2" }]
|
|
29
|
-
@label "Items"
|
|
30
|
-
@description "items prop"
|
|
31
|
-
@tier "presentation"
|
|
32
|
-
fill : string
|
|
33
|
-
@label "Fill"
|
|
34
|
-
@description "Default fill for items that don't set one."
|
|
35
|
-
@tier "presentation"
|
|
36
|
-
stroke : string
|
|
37
|
-
@label "Stroke"
|
|
38
|
-
@description "Default stroke for items that don't set one."
|
|
39
|
-
@tier "presentation"
|
|
40
|
-
strokeWidth : number
|
|
41
|
-
@label "Stroke Width"
|
|
42
|
-
@description "Default strokeWidth for items that don't set one."
|
|
43
|
-
@tier "presentation"
|
|
44
|
-
opacity : number
|
|
45
|
-
@label "Opacity"
|
|
46
|
-
@description "Default 0..1 opacity for items that don't set one."
|
|
47
|
-
@tier "presentation"
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
page "/svg-draw-shape-layer" as SvgDrawShapeLayerPage -> SvgDrawShapeLayerRender
|
|
52
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
app ui-svg-stage "1.0.0"
|
|
2
|
-
"SvgStage — UI factory (1:1 with the @almadar/ui svg-stage pattern)."
|
|
3
|
-
orbital SvgStageOrbital {
|
|
4
|
-
entity SvgStageItem [runtime] {
|
|
5
|
-
id : string!
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
trait SvgStageRender -> @rebindable SvgStageItem [interaction, instance] {
|
|
9
|
-
initial: idle
|
|
10
|
-
|
|
11
|
-
state idle {
|
|
12
|
-
INIT -> idle
|
|
13
|
-
(render-ui main {
|
|
14
|
-
cols: @config.cols
|
|
15
|
-
rows: @config.rows
|
|
16
|
-
tileSize: @config.tileSize
|
|
17
|
-
background: @config.background
|
|
18
|
-
tileClickEvent: @config.tileClickEvent
|
|
19
|
-
tileHoverEvent: @config.tileHoverEvent
|
|
20
|
-
tileLeaveEvent: @config.tileLeaveEvent
|
|
21
|
-
keyMap: @config.keyMap
|
|
22
|
-
keyUpMap: @config.keyUpMap
|
|
23
|
-
className: @config.className
|
|
24
|
-
children: @config.children
|
|
25
|
-
type: svg-stage
|
|
26
|
-
})
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
emits {
|
|
30
|
-
@config.tileClickEvent -> external {
|
|
31
|
-
x : number!
|
|
32
|
-
y : number!
|
|
33
|
-
}
|
|
34
|
-
@description "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer up (<5px drag)."
|
|
35
|
-
@tier "essential"
|
|
36
|
-
@config.tileHoverEvent -> external {
|
|
37
|
-
x : number!
|
|
38
|
-
y : number!
|
|
39
|
-
}
|
|
40
|
-
@description "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer move."
|
|
41
|
-
@tier "essential"
|
|
42
|
-
@config.tileLeaveEvent -> external {
|
|
43
|
-
id : string
|
|
44
|
-
}
|
|
45
|
-
@description "Emitted as `UI:<event>` with `{}` when the pointer leaves the stage."
|
|
46
|
-
@tier "essential"
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
config {
|
|
50
|
-
cols : number = 1
|
|
51
|
-
@label "Cols"
|
|
52
|
-
@description "Grid width in cells."
|
|
53
|
-
@tier "presentation"
|
|
54
|
-
rows : number = 1
|
|
55
|
-
@label "Rows"
|
|
56
|
-
@description "Grid height in cells."
|
|
57
|
-
@tier "presentation"
|
|
58
|
-
tileSize : number = 32
|
|
59
|
-
@label "Tile Size"
|
|
60
|
-
@description "ViewBox units per cell (default 32); viewBox is `0 0 cols*tileSize rows*tileSize`."
|
|
61
|
-
@tier "presentation"
|
|
62
|
-
background : string = "var(--color-background)"
|
|
63
|
-
@label "Background"
|
|
64
|
-
@description "Background rect fill (default `var(--color-background)`)."
|
|
65
|
-
@tier "presentation"
|
|
66
|
-
tileClickEvent : string = "TILE_CLICK"
|
|
67
|
-
@label "Tile Click Event"
|
|
68
|
-
@description "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer up (<5px drag)."
|
|
69
|
-
@tier "presentation"
|
|
70
|
-
tileHoverEvent : string = "TILE_HOVER"
|
|
71
|
-
@label "Tile Hover Event"
|
|
72
|
-
@description "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer move."
|
|
73
|
-
@tier "presentation"
|
|
74
|
-
tileLeaveEvent : string = "TILE_LEAVE"
|
|
75
|
-
@label "Tile Leave Event"
|
|
76
|
-
@description "Emitted as `UI:<event>` with `{}` when the pointer leaves the stage."
|
|
77
|
-
@tier "presentation"
|
|
78
|
-
keyMap : Map string string = { item: "Item" }
|
|
79
|
-
@label "Key Map"
|
|
80
|
-
@description "Keyboard → semantic events: `e.code` → event name, emitted as `UI:<event>` with `{}`."
|
|
81
|
-
@tier "presentation"
|
|
82
|
-
keyUpMap : Map string string = { item: "Item" }
|
|
83
|
-
@label "Key Up Map"
|
|
84
|
-
@description "Keyup counterpart of `keyMap`."
|
|
85
|
-
@tier "presentation"
|
|
86
|
-
className : string
|
|
87
|
-
@label "Class Name"
|
|
88
|
-
@description "Additional CSS classes"
|
|
89
|
-
@tier "presentation"
|
|
90
|
-
children : node
|
|
91
|
-
@label "Children"
|
|
92
|
-
@description "children prop"
|
|
93
|
-
@tier "presentation"
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
page "/svg-stage" as SvgStagePage -> SvgStageRender
|
|
98
|
-
}
|
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "SvgDrawGroup — UI factory (1:1 with the @almadar/ui svg-draw-group pattern).",
|
|
3
|
-
"ledger": {
|
|
4
|
-
"entries": {
|
|
5
|
-
"ent_01KYMKTF35MDDAS1R74C2SG6T5": {
|
|
6
|
-
"bakedName": "SvgDrawGroupItem",
|
|
7
|
-
"curName": "SvgDrawGroupItem",
|
|
8
|
-
"id": "ent_01KYMKTF35MDDAS1R74C2SG6T5",
|
|
9
|
-
"kind": "entity",
|
|
10
|
-
"owner": "workspace",
|
|
11
|
-
"renames": []
|
|
12
|
-
},
|
|
13
|
-
"evt_01KYMKTF3562FXPARGCC220TWE": {
|
|
14
|
-
"bakedName": "INIT",
|
|
15
|
-
"curName": "INIT",
|
|
16
|
-
"id": "evt_01KYMKTF3562FXPARGCC220TWE",
|
|
17
|
-
"kind": "event",
|
|
18
|
-
"owner": "workspace",
|
|
19
|
-
"parent": "trt_01KYMKTF35P7FYP2AJB4689VCN",
|
|
20
|
-
"renames": []
|
|
21
|
-
},
|
|
22
|
-
"orb_01KYMKTF35FTQ5Y8HCZBQPYVZ4": {
|
|
23
|
-
"bakedName": "SvgDrawGroupOrbital",
|
|
24
|
-
"curName": "SvgDrawGroupOrbital",
|
|
25
|
-
"id": "orb_01KYMKTF35FTQ5Y8HCZBQPYVZ4",
|
|
26
|
-
"kind": "orbital",
|
|
27
|
-
"owner": "workspace",
|
|
28
|
-
"renames": []
|
|
29
|
-
},
|
|
30
|
-
"pag_01KYMKTF36J0SESNTGYJ55AZTF": {
|
|
31
|
-
"bakedName": "SvgDrawGroupPage",
|
|
32
|
-
"curName": "SvgDrawGroupPage",
|
|
33
|
-
"id": "pag_01KYMKTF36J0SESNTGYJ55AZTF",
|
|
34
|
-
"kind": "page",
|
|
35
|
-
"owner": "workspace",
|
|
36
|
-
"renames": []
|
|
37
|
-
},
|
|
38
|
-
"trt_01KYMKTF35P7FYP2AJB4689VCN": {
|
|
39
|
-
"bakedName": "SvgDrawGroupRender",
|
|
40
|
-
"curName": "SvgDrawGroupRender",
|
|
41
|
-
"id": "trt_01KYMKTF35P7FYP2AJB4689VCN",
|
|
42
|
-
"kind": "trait",
|
|
43
|
-
"owner": "workspace",
|
|
44
|
-
"renames": []
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"schemaVersion": 1
|
|
48
|
-
},
|
|
49
|
-
"name": "ui-svg-draw-group",
|
|
50
|
-
"orbitals": [
|
|
51
|
-
{
|
|
52
|
-
"entity": {
|
|
53
|
-
"fields": [
|
|
54
|
-
{
|
|
55
|
-
"name": "id",
|
|
56
|
-
"required": true,
|
|
57
|
-
"type": "string"
|
|
58
|
-
}
|
|
59
|
-
],
|
|
60
|
-
"id": "ent_01KYMKTF35MDDAS1R74C2SG6T5",
|
|
61
|
-
"name": "SvgDrawGroupItem",
|
|
62
|
-
"persistence": "runtime"
|
|
63
|
-
},
|
|
64
|
-
"id": "orb_01KYMKTF35FTQ5Y8HCZBQPYVZ4",
|
|
65
|
-
"name": "SvgDrawGroupOrbital",
|
|
66
|
-
"pages": [
|
|
67
|
-
{
|
|
68
|
-
"id": "pag_01KYMKTF36J0SESNTGYJ55AZTF",
|
|
69
|
-
"name": "SvgDrawGroupPage",
|
|
70
|
-
"path": "/svg-draw-group",
|
|
71
|
-
"traits": [
|
|
72
|
-
{
|
|
73
|
-
"ref": "SvgDrawGroupRender",
|
|
74
|
-
"refId": "trt_01KYMKTF35P7FYP2AJB4689VCN"
|
|
75
|
-
}
|
|
76
|
-
]
|
|
77
|
-
}
|
|
78
|
-
],
|
|
79
|
-
"traits": [
|
|
80
|
-
{
|
|
81
|
-
"category": "interaction",
|
|
82
|
-
"config": {
|
|
83
|
-
"children": {
|
|
84
|
-
"description": "children prop",
|
|
85
|
-
"label": "Children",
|
|
86
|
-
"tier": "presentation",
|
|
87
|
-
"type": "node"
|
|
88
|
-
},
|
|
89
|
-
"className": {
|
|
90
|
-
"description": "Additional CSS classes",
|
|
91
|
-
"label": "Class Name",
|
|
92
|
-
"tier": "presentation",
|
|
93
|
-
"type": "string"
|
|
94
|
-
},
|
|
95
|
-
"opacity": {
|
|
96
|
-
"description": "0..1 opacity.",
|
|
97
|
-
"label": "Opacity",
|
|
98
|
-
"tier": "presentation",
|
|
99
|
-
"type": "number"
|
|
100
|
-
},
|
|
101
|
-
"rotate": {
|
|
102
|
-
"description": "Rotation in degrees applied after the translate.",
|
|
103
|
-
"label": "Rotate",
|
|
104
|
-
"tier": "presentation",
|
|
105
|
-
"type": "number"
|
|
106
|
-
},
|
|
107
|
-
"scale": {
|
|
108
|
-
"description": "Uniform scale applied after the translate.",
|
|
109
|
-
"label": "Scale",
|
|
110
|
-
"tier": "presentation",
|
|
111
|
-
"type": "number"
|
|
112
|
-
},
|
|
113
|
-
"x": {
|
|
114
|
-
"default": 0.0,
|
|
115
|
-
"description": "Grid-cell x of the group's origin.",
|
|
116
|
-
"label": "X",
|
|
117
|
-
"tier": "presentation",
|
|
118
|
-
"type": "number"
|
|
119
|
-
},
|
|
120
|
-
"y": {
|
|
121
|
-
"default": 0.0,
|
|
122
|
-
"description": "Grid-cell y of the group's origin.",
|
|
123
|
-
"label": "Y",
|
|
124
|
-
"tier": "presentation",
|
|
125
|
-
"type": "number"
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
"entityContract": {
|
|
129
|
-
"provides": [],
|
|
130
|
-
"requires": []
|
|
131
|
-
},
|
|
132
|
-
"entityRebindable": true,
|
|
133
|
-
"entityRefIds": {
|
|
134
|
-
"SvgDrawGroupItem": "ent_01KYMKTF35MDDAS1R74C2SG6T5"
|
|
135
|
-
},
|
|
136
|
-
"id": "trt_01KYMKTF35P7FYP2AJB4689VCN",
|
|
137
|
-
"linkedEntity": "SvgDrawGroupItem",
|
|
138
|
-
"linkedEntityId": "ent_01KYMKTF35MDDAS1R74C2SG6T5",
|
|
139
|
-
"name": "SvgDrawGroupRender",
|
|
140
|
-
"scope": "instance",
|
|
141
|
-
"stateMachine": {
|
|
142
|
-
"events": [
|
|
143
|
-
{
|
|
144
|
-
"id": "evt_01KYMKTF3562FXPARGCC220TWE",
|
|
145
|
-
"key": "INIT",
|
|
146
|
-
"name": "Initialize"
|
|
147
|
-
}
|
|
148
|
-
],
|
|
149
|
-
"states": [
|
|
150
|
-
{
|
|
151
|
-
"isInitial": true,
|
|
152
|
-
"name": "idle"
|
|
153
|
-
}
|
|
154
|
-
],
|
|
155
|
-
"transitions": [
|
|
156
|
-
{
|
|
157
|
-
"effects": [
|
|
158
|
-
[
|
|
159
|
-
"render-ui",
|
|
160
|
-
"main",
|
|
161
|
-
{
|
|
162
|
-
"children": "@config.children",
|
|
163
|
-
"className": "@config.className",
|
|
164
|
-
"opacity": "@config.opacity",
|
|
165
|
-
"rotate": "@config.rotate",
|
|
166
|
-
"scale": "@config.scale",
|
|
167
|
-
"type": "svg-draw-group",
|
|
168
|
-
"x": "@config.x",
|
|
169
|
-
"y": "@config.y"
|
|
170
|
-
}
|
|
171
|
-
]
|
|
172
|
-
],
|
|
173
|
-
"event": "INIT",
|
|
174
|
-
"eventId": "evt_01KYMKTF3562FXPARGCC220TWE",
|
|
175
|
-
"from": "idle",
|
|
176
|
-
"to": "idle"
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
]
|
|
182
|
-
}
|
|
183
|
-
],
|
|
184
|
-
"schemaVersion": 1,
|
|
185
|
-
"version": "1.0.0"
|
|
186
|
-
}
|