Model - ModelScope
API reference for src/core/ModelScope 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.
ModelScope
class
Runtime scope holder for a parametric model. Carries the node graph, unit configuration, static asset lanes, and the cross-lane resolver hooks (Model.ts wires them, avoiding a circular import) every isolated scope (components[]/textures[]) reaches through.
class ModelScopeMembers: animations, annotationStyles, bakeValue, cameras, components, entities, evaluate, flat, fonts, fromJSON, images, key, layers, materials, name, opening, setName, sheets, skeletons, styles, tables, textStyles, textures, toJSON, url
resolveImageUrl
function
Resolve an attached-image reference against the computed url-parameter rows (ModelScope.images): ref may be a url-method parameter KEY (the by-key consumption sheet placements / the pattern image source use) or a literal URI already — a key lookup miss passes ref through unchanged.
resolveImageUrl(images: AssetFile[] | undefined, ref: string): string