Skip to content

Type Editor


Type Editor / @type-editor/viewdesc / util/replace-nodes

util/replace-nodes

Functions

FunctionDescription

replaceNodes

Replace range from-to in an array of view descs with replacement (may be undefined to just delete). This goes very much against the grain of the rest of this code, which tends to create nodes with the right shape in one go, rather than messing with them after creation, but is necessary in the composition hack.