@almadar/core 10.40.0 → 10.41.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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "version": "1.0.0",
3
- "exportedAt": "2026-07-28T10:40:00.004Z",
3
+ "exportedAt": "2026-07-28T14:48:23.507Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -40913,6 +40913,445 @@
40913
40913
  "description": "Additional CSS classes"
40914
40914
  }
40915
40915
  }
40916
+ },
40917
+ "svg-draw-group": {
40918
+ "type": "svg-draw-group",
40919
+ "category": "game",
40920
+ "tier": "atoms",
40921
+ "family": "game",
40922
+ "description": "SvgDrawGroup component",
40923
+ "suggestedFor": [
40924
+ "svg",
40925
+ "draw",
40926
+ "group",
40927
+ "svg draw group"
40928
+ ],
40929
+ "typicalSize": "small",
40930
+ "propsSchema": {
40931
+ "x": {
40932
+ "types": [
40933
+ "number"
40934
+ ],
40935
+ "description": "Grid-cell x of the group's origin.",
40936
+ "default": 0
40937
+ },
40938
+ "y": {
40939
+ "types": [
40940
+ "number"
40941
+ ],
40942
+ "description": "Grid-cell y of the group's origin.",
40943
+ "default": 0
40944
+ },
40945
+ "scale": {
40946
+ "types": [
40947
+ "number"
40948
+ ],
40949
+ "description": "Uniform scale applied after the translate."
40950
+ },
40951
+ "rotate": {
40952
+ "types": [
40953
+ "number"
40954
+ ],
40955
+ "description": "Rotation in degrees applied after the translate."
40956
+ },
40957
+ "opacity": {
40958
+ "types": [
40959
+ "number"
40960
+ ],
40961
+ "description": "0..1 opacity."
40962
+ },
40963
+ "className": {
40964
+ "types": [
40965
+ "string"
40966
+ ],
40967
+ "description": "Additional CSS classes"
40968
+ },
40969
+ "children": {
40970
+ "types": [
40971
+ "node"
40972
+ ],
40973
+ "description": "children prop"
40974
+ }
40975
+ }
40976
+ },
40977
+ "svg-draw-shape": {
40978
+ "type": "svg-draw-shape",
40979
+ "category": "game",
40980
+ "tier": "atoms",
40981
+ "family": "game",
40982
+ "description": "SvgDrawShape component",
40983
+ "suggestedFor": [
40984
+ "svg",
40985
+ "draw",
40986
+ "shape",
40987
+ "svg draw shape"
40988
+ ],
40989
+ "typicalSize": "small",
40990
+ "propsSchema": {
40991
+ "shape": {
40992
+ "types": [
40993
+ "string"
40994
+ ],
40995
+ "description": "shape prop",
40996
+ "required": true,
40997
+ "enumValues": [
40998
+ "rect",
40999
+ "circle",
41000
+ "ellipse",
41001
+ "polygon",
41002
+ "polyline",
41003
+ "path",
41004
+ "line"
41005
+ ]
41006
+ },
41007
+ "x": {
41008
+ "types": [
41009
+ "number"
41010
+ ],
41011
+ "description": "Grid-cell x of the element's translated origin.",
41012
+ "required": true
41013
+ },
41014
+ "y": {
41015
+ "types": [
41016
+ "number"
41017
+ ],
41018
+ "description": "Grid-cell y of the element's translated origin.",
41019
+ "required": true
41020
+ },
41021
+ "width": {
41022
+ "types": [
41023
+ "number"
41024
+ ],
41025
+ "description": "Rect width in cell units."
41026
+ },
41027
+ "height": {
41028
+ "types": [
41029
+ "number"
41030
+ ],
41031
+ "description": "Rect height in cell units."
41032
+ },
41033
+ "radius": {
41034
+ "types": [
41035
+ "number"
41036
+ ],
41037
+ "description": "Circle radius / ellipse horizontal radius in cell units."
41038
+ },
41039
+ "radiusY": {
41040
+ "types": [
41041
+ "number"
41042
+ ],
41043
+ "description": "Ellipse vertical radius in cell units; omitted → `radius` (a circle)."
41044
+ },
41045
+ "points": {
41046
+ "types": [
41047
+ "string"
41048
+ ],
41049
+ "description": "Polygon/polyline points, viewBox units relative to the translated origin."
41050
+ },
41051
+ "d": {
41052
+ "types": [
41053
+ "string"
41054
+ ],
41055
+ "description": "Path data, viewBox units relative to the translated origin."
41056
+ },
41057
+ "x2": {
41058
+ "types": [
41059
+ "number"
41060
+ ],
41061
+ "description": "Line end x in cell units."
41062
+ },
41063
+ "y2": {
41064
+ "types": [
41065
+ "number"
41066
+ ],
41067
+ "description": "Line end y in cell units."
41068
+ },
41069
+ "fill": {
41070
+ "types": [
41071
+ "string"
41072
+ ],
41073
+ "description": "fill prop"
41074
+ },
41075
+ "stroke": {
41076
+ "types": [
41077
+ "string"
41078
+ ],
41079
+ "description": "stroke prop"
41080
+ },
41081
+ "strokeWidth": {
41082
+ "types": [
41083
+ "number"
41084
+ ],
41085
+ "description": "strokeWidth prop"
41086
+ },
41087
+ "opacity": {
41088
+ "types": [
41089
+ "number"
41090
+ ],
41091
+ "description": "0..1 opacity."
41092
+ },
41093
+ "className": {
41094
+ "types": [
41095
+ "string"
41096
+ ],
41097
+ "description": "Additional CSS classes"
41098
+ }
41099
+ }
41100
+ },
41101
+ "svg-draw-text": {
41102
+ "type": "svg-draw-text",
41103
+ "category": "game",
41104
+ "tier": "atoms",
41105
+ "family": "game",
41106
+ "description": "SvgDrawText component",
41107
+ "suggestedFor": [
41108
+ "svg",
41109
+ "draw",
41110
+ "text",
41111
+ "svg draw text"
41112
+ ],
41113
+ "typicalSize": "small",
41114
+ "propsSchema": {
41115
+ "x": {
41116
+ "types": [
41117
+ "number"
41118
+ ],
41119
+ "description": "Grid-cell x of the text anchor.",
41120
+ "required": true
41121
+ },
41122
+ "y": {
41123
+ "types": [
41124
+ "number"
41125
+ ],
41126
+ "description": "Grid-cell y of the text anchor.",
41127
+ "required": true
41128
+ },
41129
+ "text": {
41130
+ "types": [
41131
+ "string"
41132
+ ],
41133
+ "description": "The text content.",
41134
+ "required": true
41135
+ },
41136
+ "size": {
41137
+ "types": [
41138
+ "number"
41139
+ ],
41140
+ "description": "Font size in viewBox units (default 12).",
41141
+ "default": 12
41142
+ },
41143
+ "fill": {
41144
+ "types": [
41145
+ "string"
41146
+ ],
41147
+ "description": "fill prop",
41148
+ "default": "var(--color-foreground)"
41149
+ },
41150
+ "anchor": {
41151
+ "types": [
41152
+ "string"
41153
+ ],
41154
+ "description": "Text anchor (default 'middle').",
41155
+ "enumValues": [
41156
+ "start",
41157
+ "middle",
41158
+ "end"
41159
+ ],
41160
+ "default": "middle"
41161
+ },
41162
+ "className": {
41163
+ "types": [
41164
+ "string"
41165
+ ],
41166
+ "description": "Additional CSS classes"
41167
+ }
41168
+ }
41169
+ },
41170
+ "svg-draw-shape-layer": {
41171
+ "type": "svg-draw-shape-layer",
41172
+ "category": "game",
41173
+ "tier": "molecules",
41174
+ "family": "game",
41175
+ "description": "SvgDrawShapeLayer component",
41176
+ "suggestedFor": [
41177
+ "svg",
41178
+ "draw",
41179
+ "shape",
41180
+ "layer",
41181
+ "svg draw shape layer"
41182
+ ],
41183
+ "typicalSize": "medium",
41184
+ "propsSchema": {
41185
+ "items": {
41186
+ "types": [
41187
+ "array"
41188
+ ],
41189
+ "description": "items prop",
41190
+ "required": true,
41191
+ "items": {
41192
+ "types": [
41193
+ "object"
41194
+ ],
41195
+ "properties": {
41196
+ "id": {
41197
+ "types": [
41198
+ "string"
41199
+ ]
41200
+ }
41201
+ },
41202
+ "required": [
41203
+ "id"
41204
+ ]
41205
+ }
41206
+ },
41207
+ "fill": {
41208
+ "types": [
41209
+ "string"
41210
+ ],
41211
+ "description": "Default fill for items that don't set one."
41212
+ },
41213
+ "stroke": {
41214
+ "types": [
41215
+ "string"
41216
+ ],
41217
+ "description": "Default stroke for items that don't set one."
41218
+ },
41219
+ "strokeWidth": {
41220
+ "types": [
41221
+ "number"
41222
+ ],
41223
+ "description": "Default strokeWidth for items that don't set one."
41224
+ },
41225
+ "opacity": {
41226
+ "types": [
41227
+ "number"
41228
+ ],
41229
+ "description": "Default 0..1 opacity for items that don't set one."
41230
+ }
41231
+ }
41232
+ },
41233
+ "svg-stage": {
41234
+ "type": "svg-stage",
41235
+ "category": "game",
41236
+ "tier": "molecules",
41237
+ "family": "game",
41238
+ "description": "SvgStage component",
41239
+ "suggestedFor": [
41240
+ "svg",
41241
+ "stage",
41242
+ "svg stage"
41243
+ ],
41244
+ "typicalSize": "medium",
41245
+ "propsSchema": {
41246
+ "cols": {
41247
+ "types": [
41248
+ "number"
41249
+ ],
41250
+ "description": "Grid width in cells.",
41251
+ "required": true
41252
+ },
41253
+ "rows": {
41254
+ "types": [
41255
+ "number"
41256
+ ],
41257
+ "description": "Grid height in cells.",
41258
+ "required": true
41259
+ },
41260
+ "tileSize": {
41261
+ "types": [
41262
+ "number"
41263
+ ],
41264
+ "description": "ViewBox units per cell (default 32); viewBox is `0 0 cols*tileSize rows*tileSize`.",
41265
+ "default": 32
41266
+ },
41267
+ "background": {
41268
+ "types": [
41269
+ "string"
41270
+ ],
41271
+ "description": "Background rect fill (default `var(--color-background)`).",
41272
+ "default": "var(--color-background)"
41273
+ },
41274
+ "tileClickEvent": {
41275
+ "types": [
41276
+ "string"
41277
+ ],
41278
+ "description": "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer up (<5px drag).",
41279
+ "kind": "event-ref",
41280
+ "emitPayloadSchema": [
41281
+ {
41282
+ "name": "x",
41283
+ "type": "number",
41284
+ "required": true
41285
+ },
41286
+ {
41287
+ "name": "y",
41288
+ "type": "number",
41289
+ "required": true
41290
+ }
41291
+ ]
41292
+ },
41293
+ "tileHoverEvent": {
41294
+ "types": [
41295
+ "string"
41296
+ ],
41297
+ "description": "Emitted as `UI:<event>` with `{ x, y }` cell coords on pointer move.",
41298
+ "kind": "event-ref",
41299
+ "emitPayloadSchema": [
41300
+ {
41301
+ "name": "x",
41302
+ "type": "number",
41303
+ "required": true
41304
+ },
41305
+ {
41306
+ "name": "y",
41307
+ "type": "number",
41308
+ "required": true
41309
+ }
41310
+ ]
41311
+ },
41312
+ "tileLeaveEvent": {
41313
+ "types": [
41314
+ "string"
41315
+ ],
41316
+ "description": "Emitted as `UI:<event>` with `{}` when the pointer leaves the stage.",
41317
+ "kind": "event-ref",
41318
+ "emitPayloadSchema": []
41319
+ },
41320
+ "keyMap": {
41321
+ "types": [
41322
+ "object"
41323
+ ],
41324
+ "description": "Keyboard → semantic events: `e.code` → event name, emitted as `UI:<event>` with `{}`.",
41325
+ "mapValue": {
41326
+ "types": [
41327
+ "string"
41328
+ ]
41329
+ }
41330
+ },
41331
+ "keyUpMap": {
41332
+ "types": [
41333
+ "object"
41334
+ ],
41335
+ "description": "Keyup counterpart of `keyMap`.",
41336
+ "mapValue": {
41337
+ "types": [
41338
+ "string"
41339
+ ]
41340
+ }
41341
+ },
41342
+ "className": {
41343
+ "types": [
41344
+ "string"
41345
+ ],
41346
+ "description": "Additional CSS classes"
41347
+ },
41348
+ "children": {
41349
+ "types": [
41350
+ "node"
41351
+ ],
41352
+ "description": "children prop"
41353
+ }
41354
+ }
40916
41355
  }
40917
41356
  },
40918
41357
  "categories": [