@sqlrooms/canvas
React Flow-based artifact-scoped canvas for building SQL + Vega node DAGs in SQLRooms apps.
This package includes:
createCanvasSlicefor artifact-scoped canvas runtime statecreateDefaultCanvasConfigfor persisted config defaultsCanvasReact component, which requires an explicitartifactIdCanvasSliceConfig,CanvasNodeMeta, andCanvasArtifactMetaschemas/types
Refer to the Canvas example.
Stable vs internal imports
Use root imports from @sqlrooms/canvas as the stable API surface.
- stable:
createCanvasSlice,createDefaultCanvasConfig,Canvas,CanvasSliceConfig,CanvasNodeMeta,CanvasArtifactMeta - internal: direct imports from implementation files under
src/are not semver-stable and may change without notice
