@almadar/core 10.47.0 → 10.48.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-31T07:15:07.239Z",
3
+ "exportedAt": "2026-07-31T10:02:24.207Z",
4
4
  "patterns": {
5
5
  "entity-table": {
6
6
  "type": "entity-table",
@@ -41194,6 +41194,18 @@
41194
41194
  }
41195
41195
  }
41196
41196
  },
41197
+ "lighting": {
41198
+ "types": [
41199
+ "object"
41200
+ ],
41201
+ "description": "3D scene light rig as data — ambient/directional/hemisphere/point lights + optional 'room' environment for PBR reflections. Omitted → the standard fixed rig."
41202
+ },
41203
+ "post": {
41204
+ "types": [
41205
+ "object"
41206
+ ],
41207
+ "description": "3D post-processing stack — bloom (emissive glow / neon) and vignette. Omitted → no post pass."
41208
+ },
41197
41209
  "tileClickEvent": {
41198
41210
  "types": [
41199
41211
  "string"
@@ -41880,6 +41892,357 @@
41880
41892
  "description": "Additional CSS classes applied to the trigger button"
41881
41893
  }
41882
41894
  }
41895
+ },
41896
+ "draw-mesh": {
41897
+ "type": "draw-mesh",
41898
+ "category": "game",
41899
+ "tier": "atoms",
41900
+ "family": "game",
41901
+ "description": "DrawMesh component",
41902
+ "suggestedFor": [
41903
+ "draw",
41904
+ "mesh",
41905
+ "draw mesh"
41906
+ ],
41907
+ "typicalSize": "small",
41908
+ "propsSchema": {
41909
+ "id": {
41910
+ "types": [
41911
+ "string"
41912
+ ],
41913
+ "description": "Optional source-tagged hit-test handle — the host indexes the drawable's ScenePos→id so a pointer/raycast at that cell resolves to this id (unit/entity click). No id → the host emits only the coordinate (tile click)."
41914
+ },
41915
+ "type": {
41916
+ "types": [
41917
+ "unknown"
41918
+ ],
41919
+ "description": "type prop",
41920
+ "required": true
41921
+ },
41922
+ "shape": {
41923
+ "types": [
41924
+ "string"
41925
+ ],
41926
+ "description": "shape prop",
41927
+ "required": true,
41928
+ "enumValues": [
41929
+ "box",
41930
+ "sphere",
41931
+ "capsule",
41932
+ "cylinder",
41933
+ "cone",
41934
+ "torus",
41935
+ "plane",
41936
+ "circle"
41937
+ ]
41938
+ },
41939
+ "position": {
41940
+ "types": [
41941
+ "object"
41942
+ ],
41943
+ "description": "Logical scene position; `z` is height in cells (projected to world Y).",
41944
+ "required": true,
41945
+ "properties": {
41946
+ "x": {
41947
+ "types": [
41948
+ "number"
41949
+ ]
41950
+ },
41951
+ "y": {
41952
+ "types": [
41953
+ "number"
41954
+ ]
41955
+ },
41956
+ "z": {
41957
+ "types": [
41958
+ "number"
41959
+ ]
41960
+ }
41961
+ },
41962
+ "propertyRequired": [
41963
+ "x",
41964
+ "y"
41965
+ ],
41966
+ "scenePos": true
41967
+ },
41968
+ "width": {
41969
+ "types": [
41970
+ "number"
41971
+ ],
41972
+ "description": "Box/plane X extent in cells (default 1)."
41973
+ },
41974
+ "height": {
41975
+ "types": [
41976
+ "number"
41977
+ ],
41978
+ "description": "Box Y (height) extent / capsule-cylinder-cone length in cells (default 1)."
41979
+ },
41980
+ "depth": {
41981
+ "types": [
41982
+ "number"
41983
+ ],
41984
+ "description": "Box/plane Z extent in cells (default `width`)."
41985
+ },
41986
+ "radius": {
41987
+ "types": [
41988
+ "number"
41989
+ ],
41990
+ "description": "Sphere/capsule/cone/torus/circle radius in cells (default 0.4)."
41991
+ },
41992
+ "radiusTop": {
41993
+ "types": [
41994
+ "number"
41995
+ ],
41996
+ "description": "Cylinder top radius (default `radius`)."
41997
+ },
41998
+ "radiusBottom": {
41999
+ "types": [
42000
+ "number"
42001
+ ],
42002
+ "description": "Cylinder bottom radius (default `radius`)."
42003
+ },
42004
+ "tube": {
42005
+ "types": [
42006
+ "number"
42007
+ ],
42008
+ "description": "Torus tube radius in cells (default `radius` / 3)."
42009
+ },
42010
+ "segments": {
42011
+ "types": [
42012
+ "number"
42013
+ ],
42014
+ "description": "Curved-surface tessellation, clamped 3..64 (default 24). 4–8 + `flatShading` = low-poly."
42015
+ },
42016
+ "rotation": {
42017
+ "types": [
42018
+ "array"
42019
+ ],
42020
+ "description": "Euler rotation `[x, y, z]` in radians.",
42021
+ "items": {
42022
+ "types": [
42023
+ "number"
42024
+ ]
42025
+ }
42026
+ },
42027
+ "pivot": {
42028
+ "types": [
42029
+ "string"
42030
+ ],
42031
+ "description": "`bottom` (default) rests the mesh on its position's ground plane; `center` centers it there.",
42032
+ "enumValues": [
42033
+ "bottom",
42034
+ "center"
42035
+ ]
42036
+ },
42037
+ "material": {
42038
+ "types": [
42039
+ "object"
42040
+ ],
42041
+ "description": "material prop",
42042
+ "properties": {
42043
+ "kind": {
42044
+ "types": [
42045
+ "string"
42046
+ ],
42047
+ "enumValues": [
42048
+ "standard",
42049
+ "physical",
42050
+ "toon",
42051
+ "basic"
42052
+ ]
42053
+ },
42054
+ "color": {
42055
+ "types": [
42056
+ "string"
42057
+ ]
42058
+ },
42059
+ "metalness": {
42060
+ "types": [
42061
+ "number"
42062
+ ]
42063
+ },
42064
+ "roughness": {
42065
+ "types": [
42066
+ "number"
42067
+ ]
42068
+ },
42069
+ "emissive": {
42070
+ "types": [
42071
+ "string"
42072
+ ]
42073
+ },
42074
+ "emissiveIntensity": {
42075
+ "types": [
42076
+ "number"
42077
+ ]
42078
+ },
42079
+ "opacity": {
42080
+ "types": [
42081
+ "number"
42082
+ ]
42083
+ },
42084
+ "transmission": {
42085
+ "types": [
42086
+ "number"
42087
+ ]
42088
+ },
42089
+ "ior": {
42090
+ "types": [
42091
+ "number"
42092
+ ]
42093
+ },
42094
+ "flatShading": {
42095
+ "types": [
42096
+ "boolean"
42097
+ ]
42098
+ },
42099
+ "side": {
42100
+ "types": [
42101
+ "string"
42102
+ ],
42103
+ "enumValues": [
42104
+ "front",
42105
+ "back",
42106
+ "double"
42107
+ ]
42108
+ }
42109
+ }
42110
+ },
42111
+ "outline": {
42112
+ "types": [
42113
+ "object"
42114
+ ],
42115
+ "description": "outline prop",
42116
+ "properties": {
42117
+ "color": {
42118
+ "types": [
42119
+ "string"
42120
+ ]
42121
+ },
42122
+ "width": {
42123
+ "types": [
42124
+ "number"
42125
+ ]
42126
+ }
42127
+ }
42128
+ },
42129
+ "castShadow": {
42130
+ "types": [
42131
+ "boolean"
42132
+ ],
42133
+ "description": "castShadow prop"
42134
+ },
42135
+ "receiveShadow": {
42136
+ "types": [
42137
+ "boolean"
42138
+ ],
42139
+ "description": "receiveShadow prop"
42140
+ },
42141
+ "animation": {
42142
+ "types": [
42143
+ "object"
42144
+ ],
42145
+ "description": "Keyframe animation over transform/material tracks; the 3D host runs it per frame.",
42146
+ "properties": {
42147
+ "durationMs": {
42148
+ "types": [
42149
+ "number"
42150
+ ]
42151
+ },
42152
+ "loop": {
42153
+ "types": [
42154
+ "boolean"
42155
+ ]
42156
+ },
42157
+ "keyframes": {
42158
+ "types": [
42159
+ "array"
42160
+ ],
42161
+ "items": {
42162
+ "types": [
42163
+ "object"
42164
+ ],
42165
+ "properties": {
42166
+ "at": {
42167
+ "types": [
42168
+ "number"
42169
+ ]
42170
+ },
42171
+ "offsetX": {
42172
+ "types": [
42173
+ "number"
42174
+ ]
42175
+ },
42176
+ "offsetY": {
42177
+ "types": [
42178
+ "number"
42179
+ ]
42180
+ },
42181
+ "offsetZ": {
42182
+ "types": [
42183
+ "number"
42184
+ ]
42185
+ },
42186
+ "rotateX": {
42187
+ "types": [
42188
+ "number"
42189
+ ]
42190
+ },
42191
+ "rotateY": {
42192
+ "types": [
42193
+ "number"
42194
+ ]
42195
+ },
42196
+ "rotateZ": {
42197
+ "types": [
42198
+ "number"
42199
+ ]
42200
+ },
42201
+ "scale": {
42202
+ "types": [
42203
+ "number"
42204
+ ]
42205
+ },
42206
+ "opacity": {
42207
+ "types": [
42208
+ "number"
42209
+ ]
42210
+ },
42211
+ "emissiveIntensity": {
42212
+ "types": [
42213
+ "number"
42214
+ ]
42215
+ },
42216
+ "color": {
42217
+ "types": [
42218
+ "string"
42219
+ ]
42220
+ },
42221
+ "emissive": {
42222
+ "types": [
42223
+ "string"
42224
+ ]
42225
+ }
42226
+ },
42227
+ "required": [
42228
+ "at"
42229
+ ]
42230
+ }
42231
+ }
42232
+ },
42233
+ "propertyRequired": [
42234
+ "durationMs",
42235
+ "keyframes"
42236
+ ]
42237
+ },
42238
+ "opacity": {
42239
+ "types": [
42240
+ "number"
42241
+ ],
42242
+ "description": "0..1 opacity; multiplies the material and enclosing group opacity."
42243
+ }
42244
+ },
42245
+ "drawable": true
41883
42246
  }
41884
42247
  },
41885
42248
  "categories": [