@ripl/dom
v1.0.0-beta.2
Published
DOM utilities and context for Ripl
Readme
@ripl/dom
DOM utilities for Ripl — a unified API for 2D graphics rendering in the browser.
Installation
npm install @ripl/domOverview
DOM utilities and a lightweight virtual DOM reconciler used internally by browser contexts. This package is primarily an internal dependency — most users won't need to interact with it directly.
API
reconcileNode(domParent, vnode, domCache, options)
Reconciles a virtual node tree against the real DOM, creating, updating, and removing elements as needed.
ensureGroupPath(root, groupIds, defaultTag?)
Ensures a nested group structure exists within the virtual tree, creating intermediate nodes as needed.
getAncestorGroupIds(element)
Returns the chain of ancestor group IDs for a given element reference.
createVNode(id, tag, children?, element?)
Creates a new virtual node.
Documentation
Full documentation is available at ripl.rocks.
