Import @pixxl-tools/components/styles.css once in the host application root.
Import @pixxl-tools/canvas/styles.css separately when using canvas React chrome.
Do not rely on the documentation website’s CSS order in a consumer app.
Treat React primitives and browser hooks as client components.
Use @pixxl-tools/components/metadata and /tokens for server-safe data.
Keep CanvasDocument, codecs, geometry, and other React-free helpers outside client-only modules when possible.
Confirm schema is pixxl.canvas.document and version is 1.
Ensure at least one page exists and every element pageId references an existing page.
Check connector endpoints, group/frame children, resource refs, finite transforms, opacity, and JSON-serializable payloads.
Parse untrusted files through canvasDocumentCodec instead of casting JSON to CanvasDocument.
For controlled components, update the value passed back after onValueChange or onNodesChange/onEdgesChange.
Keep controlled and uncontrolled modes separate; do not switch ownership after mount.
Subscribe to the controller once, unsubscribe on teardown, and call destroy when the app lifecycle ends.
Group multi-step edits in one transaction when they should undo as one action.
Verify host dimensions are non-zero before fitting the viewport or rendering responsive canvas content.
Check page-local element transforms against workspace page coordinates and current viewport transform.
Resolve images/fonts before final render and invalidate derived caches when source resources change.
For graphs, verify node measurements and controlled change handlers; for charts, verify normalized rows and dataSourceRef.
Profile a representative document before changing architecture or adding throttling.
Cull offscreen graph nodes, limit canvas work to invalidated regions, and avoid rebuilding unchanged derived state.
Normalize, sample, or decimate large chart data before pushing work into UI event handlers.
Isolate editor React state so unrelated application updates do not rerender the editing surface.
Email contact@gtktsc.com after reducing the failure to a public API reproduction.
Include package and version, runtime, browser or Node version, minimal reproduction, expected result, and actual result.
Do not include credentials or private documents; report vulnerabilities as described under Releases → Security.