@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.
package/dist/index.js CHANGED
@@ -2167,7 +2167,7 @@ function getInteractionModelForDomain(domain) {
2167
2167
  // src/patterns/patterns-registry.json
2168
2168
  var patterns_registry_default = {
2169
2169
  version: "1.0.0",
2170
- exportedAt: "2026-07-31T07:15:07.239Z",
2170
+ exportedAt: "2026-07-31T10:02:24.207Z",
2171
2171
  patterns: {
2172
2172
  "entity-table": {
2173
2173
  type: "entity-table",
@@ -43361,6 +43361,18 @@ var patterns_registry_default = {
43361
43361
  }
43362
43362
  }
43363
43363
  },
43364
+ lighting: {
43365
+ types: [
43366
+ "object"
43367
+ ],
43368
+ description: "3D scene light rig as data \u2014 ambient/directional/hemisphere/point lights + optional 'room' environment for PBR reflections. Omitted \u2192 the standard fixed rig."
43369
+ },
43370
+ post: {
43371
+ types: [
43372
+ "object"
43373
+ ],
43374
+ description: "3D post-processing stack \u2014 bloom (emissive glow / neon) and vignette. Omitted \u2192 no post pass."
43375
+ },
43364
43376
  tileClickEvent: {
43365
43377
  types: [
43366
43378
  "string"
@@ -44047,6 +44059,357 @@ var patterns_registry_default = {
44047
44059
  description: "Additional CSS classes applied to the trigger button"
44048
44060
  }
44049
44061
  }
44062
+ },
44063
+ "draw-mesh": {
44064
+ type: "draw-mesh",
44065
+ category: "game",
44066
+ tier: "atoms",
44067
+ family: "game",
44068
+ description: "DrawMesh component",
44069
+ suggestedFor: [
44070
+ "draw",
44071
+ "mesh",
44072
+ "draw mesh"
44073
+ ],
44074
+ typicalSize: "small",
44075
+ propsSchema: {
44076
+ id: {
44077
+ types: [
44078
+ "string"
44079
+ ],
44080
+ description: "Optional source-tagged hit-test handle \u2014 the host indexes the drawable's ScenePos\u2192id so a pointer/raycast at that cell resolves to this id (unit/entity click). No id \u2192 the host emits only the coordinate (tile click)."
44081
+ },
44082
+ type: {
44083
+ types: [
44084
+ "unknown"
44085
+ ],
44086
+ description: "type prop",
44087
+ required: true
44088
+ },
44089
+ shape: {
44090
+ types: [
44091
+ "string"
44092
+ ],
44093
+ description: "shape prop",
44094
+ required: true,
44095
+ enumValues: [
44096
+ "box",
44097
+ "sphere",
44098
+ "capsule",
44099
+ "cylinder",
44100
+ "cone",
44101
+ "torus",
44102
+ "plane",
44103
+ "circle"
44104
+ ]
44105
+ },
44106
+ position: {
44107
+ types: [
44108
+ "object"
44109
+ ],
44110
+ description: "Logical scene position; `z` is height in cells (projected to world Y).",
44111
+ required: true,
44112
+ properties: {
44113
+ x: {
44114
+ types: [
44115
+ "number"
44116
+ ]
44117
+ },
44118
+ y: {
44119
+ types: [
44120
+ "number"
44121
+ ]
44122
+ },
44123
+ z: {
44124
+ types: [
44125
+ "number"
44126
+ ]
44127
+ }
44128
+ },
44129
+ propertyRequired: [
44130
+ "x",
44131
+ "y"
44132
+ ],
44133
+ scenePos: true
44134
+ },
44135
+ width: {
44136
+ types: [
44137
+ "number"
44138
+ ],
44139
+ description: "Box/plane X extent in cells (default 1)."
44140
+ },
44141
+ height: {
44142
+ types: [
44143
+ "number"
44144
+ ],
44145
+ description: "Box Y (height) extent / capsule-cylinder-cone length in cells (default 1)."
44146
+ },
44147
+ depth: {
44148
+ types: [
44149
+ "number"
44150
+ ],
44151
+ description: "Box/plane Z extent in cells (default `width`)."
44152
+ },
44153
+ radius: {
44154
+ types: [
44155
+ "number"
44156
+ ],
44157
+ description: "Sphere/capsule/cone/torus/circle radius in cells (default 0.4)."
44158
+ },
44159
+ radiusTop: {
44160
+ types: [
44161
+ "number"
44162
+ ],
44163
+ description: "Cylinder top radius (default `radius`)."
44164
+ },
44165
+ radiusBottom: {
44166
+ types: [
44167
+ "number"
44168
+ ],
44169
+ description: "Cylinder bottom radius (default `radius`)."
44170
+ },
44171
+ tube: {
44172
+ types: [
44173
+ "number"
44174
+ ],
44175
+ description: "Torus tube radius in cells (default `radius` / 3)."
44176
+ },
44177
+ segments: {
44178
+ types: [
44179
+ "number"
44180
+ ],
44181
+ description: "Curved-surface tessellation, clamped 3..64 (default 24). 4\u20138 + `flatShading` = low-poly."
44182
+ },
44183
+ rotation: {
44184
+ types: [
44185
+ "array"
44186
+ ],
44187
+ description: "Euler rotation `[x, y, z]` in radians.",
44188
+ items: {
44189
+ types: [
44190
+ "number"
44191
+ ]
44192
+ }
44193
+ },
44194
+ pivot: {
44195
+ types: [
44196
+ "string"
44197
+ ],
44198
+ description: "`bottom` (default) rests the mesh on its position's ground plane; `center` centers it there.",
44199
+ enumValues: [
44200
+ "bottom",
44201
+ "center"
44202
+ ]
44203
+ },
44204
+ material: {
44205
+ types: [
44206
+ "object"
44207
+ ],
44208
+ description: "material prop",
44209
+ properties: {
44210
+ kind: {
44211
+ types: [
44212
+ "string"
44213
+ ],
44214
+ enumValues: [
44215
+ "standard",
44216
+ "physical",
44217
+ "toon",
44218
+ "basic"
44219
+ ]
44220
+ },
44221
+ color: {
44222
+ types: [
44223
+ "string"
44224
+ ]
44225
+ },
44226
+ metalness: {
44227
+ types: [
44228
+ "number"
44229
+ ]
44230
+ },
44231
+ roughness: {
44232
+ types: [
44233
+ "number"
44234
+ ]
44235
+ },
44236
+ emissive: {
44237
+ types: [
44238
+ "string"
44239
+ ]
44240
+ },
44241
+ emissiveIntensity: {
44242
+ types: [
44243
+ "number"
44244
+ ]
44245
+ },
44246
+ opacity: {
44247
+ types: [
44248
+ "number"
44249
+ ]
44250
+ },
44251
+ transmission: {
44252
+ types: [
44253
+ "number"
44254
+ ]
44255
+ },
44256
+ ior: {
44257
+ types: [
44258
+ "number"
44259
+ ]
44260
+ },
44261
+ flatShading: {
44262
+ types: [
44263
+ "boolean"
44264
+ ]
44265
+ },
44266
+ side: {
44267
+ types: [
44268
+ "string"
44269
+ ],
44270
+ enumValues: [
44271
+ "front",
44272
+ "back",
44273
+ "double"
44274
+ ]
44275
+ }
44276
+ }
44277
+ },
44278
+ outline: {
44279
+ types: [
44280
+ "object"
44281
+ ],
44282
+ description: "outline prop",
44283
+ properties: {
44284
+ color: {
44285
+ types: [
44286
+ "string"
44287
+ ]
44288
+ },
44289
+ width: {
44290
+ types: [
44291
+ "number"
44292
+ ]
44293
+ }
44294
+ }
44295
+ },
44296
+ castShadow: {
44297
+ types: [
44298
+ "boolean"
44299
+ ],
44300
+ description: "castShadow prop"
44301
+ },
44302
+ receiveShadow: {
44303
+ types: [
44304
+ "boolean"
44305
+ ],
44306
+ description: "receiveShadow prop"
44307
+ },
44308
+ animation: {
44309
+ types: [
44310
+ "object"
44311
+ ],
44312
+ description: "Keyframe animation over transform/material tracks; the 3D host runs it per frame.",
44313
+ properties: {
44314
+ durationMs: {
44315
+ types: [
44316
+ "number"
44317
+ ]
44318
+ },
44319
+ loop: {
44320
+ types: [
44321
+ "boolean"
44322
+ ]
44323
+ },
44324
+ keyframes: {
44325
+ types: [
44326
+ "array"
44327
+ ],
44328
+ items: {
44329
+ types: [
44330
+ "object"
44331
+ ],
44332
+ properties: {
44333
+ at: {
44334
+ types: [
44335
+ "number"
44336
+ ]
44337
+ },
44338
+ offsetX: {
44339
+ types: [
44340
+ "number"
44341
+ ]
44342
+ },
44343
+ offsetY: {
44344
+ types: [
44345
+ "number"
44346
+ ]
44347
+ },
44348
+ offsetZ: {
44349
+ types: [
44350
+ "number"
44351
+ ]
44352
+ },
44353
+ rotateX: {
44354
+ types: [
44355
+ "number"
44356
+ ]
44357
+ },
44358
+ rotateY: {
44359
+ types: [
44360
+ "number"
44361
+ ]
44362
+ },
44363
+ rotateZ: {
44364
+ types: [
44365
+ "number"
44366
+ ]
44367
+ },
44368
+ scale: {
44369
+ types: [
44370
+ "number"
44371
+ ]
44372
+ },
44373
+ opacity: {
44374
+ types: [
44375
+ "number"
44376
+ ]
44377
+ },
44378
+ emissiveIntensity: {
44379
+ types: [
44380
+ "number"
44381
+ ]
44382
+ },
44383
+ color: {
44384
+ types: [
44385
+ "string"
44386
+ ]
44387
+ },
44388
+ emissive: {
44389
+ types: [
44390
+ "string"
44391
+ ]
44392
+ }
44393
+ },
44394
+ required: [
44395
+ "at"
44396
+ ]
44397
+ }
44398
+ }
44399
+ },
44400
+ propertyRequired: [
44401
+ "durationMs",
44402
+ "keyframes"
44403
+ ]
44404
+ },
44405
+ opacity: {
44406
+ types: [
44407
+ "number"
44408
+ ],
44409
+ description: "0..1 opacity; multiplies the material and enclosing group opacity."
44410
+ }
44411
+ },
44412
+ drawable: true
44050
44413
  }
44051
44414
  },
44052
44415
  categories: [
@@ -44968,7 +45331,7 @@ var integrators_registry_default = {
44968
45331
  // src/patterns/component-mapping.json
44969
45332
  var component_mapping_default = {
44970
45333
  version: "1.0.0",
44971
- exportedAt: "2026-07-31T07:15:07.239Z",
45334
+ exportedAt: "2026-07-31T10:02:24.207Z",
44972
45335
  mappings: {
44973
45336
  "page-header": {
44974
45337
  component: "PageHeader",
@@ -46351,6 +46714,11 @@ var component_mapping_default = {
46351
46714
  component: "EmojiPicker",
46352
46715
  importPath: "@/components/core/molecules/EmojiPicker",
46353
46716
  category: "component"
46717
+ },
46718
+ "draw-mesh": {
46719
+ component: "DrawMesh",
46720
+ importPath: "@/components/game/atoms/DrawMesh",
46721
+ category: "game"
46354
46722
  }
46355
46723
  }
46356
46724
  };
@@ -46358,7 +46726,7 @@ var component_mapping_default = {
46358
46726
  // src/patterns/event-contracts.json
46359
46727
  var event_contracts_default = {
46360
46728
  version: "1.0.0",
46361
- exportedAt: "2026-07-31T07:15:07.239Z",
46729
+ exportedAt: "2026-07-31T10:02:24.207Z",
46362
46730
  contracts: {
46363
46731
  form: {
46364
46732
  emits: [
@@ -47589,6 +47957,7 @@ var PATTERN_TYPES = [
47589
47957
  "doc-toc",
47590
47958
  "document-viewer",
47591
47959
  "draw-group",
47960
+ "draw-mesh",
47592
47961
  "draw-shape",
47593
47962
  "draw-shape-layer",
47594
47963
  "draw-sprite",