Skip to content
Shapemetry

Model - ParameterNode

API reference for src/nodes/ParameterNode 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.

isAssetParameter

function

True when a node (or its JSON) is an ATTACHED-FILE parameter — its value method is url (the value IS a URL string; assetTypeOf in schema/model.ts classifies it as font/image/file). Such a parameter is an ordinary graph node in the parameters lane — references to its key are ordinary dependency edges.

isAssetParameter(node: { method?: string; }): boolean

ParameterNode

class

Runtime node for a VALUE operation in the model's parameters header (registry return: "value") — a scalar value (method = "length"/ "number"/"text"/"url"/etc., with numeric constraints on .constraint — see that field's own doc comment). Materials are STATIC asset lanes on the document (v22), not nodes; header GROUPING is the container form (ContainerNode, lane "parameters"), not this class.

class ParameterNode

Members: _valueType, animation, args, compute, constraint, copy, dependents, editorExpanded, expanded, flat, getInput, globalKey, input, key, label, method, setInput, setKey, toJSON, valueType

Last updated: 📖 1 min readEdit on GitHub