Skip to content
Shapemetry

Model - Model update

API reference for src/core/modelUpdate 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.

carryParameterValues

function

Merge the source's NEW doc/component with the consumer's PREVIOUS one: every parameter whose key exists in both with the SAME method keeps the previous (locally edited) args/animation; everything else — new parameters, operations/scene, and every other field — comes from next verbatim. Returns a fresh object; neither input is mutated.

carryParameterValues(next: T, prev: ParameterDoc | null | undefined): T
Last updated: 📖 1 min readEdit on GitHub