Skip to content
Shapemetry

Model - KeyedNode

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

hasLabelOf

function

True when node.label carries real authored text — vs. still holding the constructor's default sentinel, or having been cleared back to empty.

hasLabelOf(node: KeyedNode): boolean

setEnabledOf

function

Set or clear (null/"") the enable expression.

setEnabledOf(node: KeyedNode, expr: string | null): void

setKeyOf

function

Rename the node model-wide: reserved/builtin/duplicate checks, then rewrite every expression referencing the old key. keyType is the noun in the builtin-key error ("operation"/"container").

setKeyOf(node: KeyedNode, key: string, keyType: string): void

setLabelOf

function

Set or clear (null/"") the label expression.

setLabelOf(node: KeyedNode, expr: string | null): void
Last updated: 📖 1 min readEdit on GitHub