Model - Builtins
API reference for src/registry/builtins on @huukhanhnguyen/model, reachable from ..
See the Guide for the ModelJSON / evaluate pipeline.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
CORE_NODES
const
CORE_NODES — the engine's own operation definitions, present in EVERY registry regardless of the caller's own node set:
- scalar value declarations for the core value types (length/number/ angle/boolean/color/text/url/function/length[])
- structural producers (clone/entities) — deep-copy placement + literal static geometry (materials are STATIC asset lanes on the document, not nodes — see schema/model.ts)
- the structural transforms blockExplode / looseToBlock / makeBlock
clone keeps a create STUB: the engine intercepts it structurally in EntitiesNode (its source arg is read RAW — un-coerced, groups kept). It lives here so validation, key generation, and the catalog treat it uniformly.
v21: the CONTAINER form is grammar (no method, never in a registry); the old container generator and group parameter methods are gone. 2026-07-18: the loadModel/placeModel wire kind (embedded sub-models, Type/Instance overrides) is gone entirely — installing a catalog model now folds it into ONE components[] entry (share.ts's installModel), placed with the SAME placeComponent every other component already uses.
const CORE_NODES: OperationDefinition[]