Skip to content

[DS 2.0] Strip measured node sizes from saved and exported diagrams - #124

Draft
librowski wants to merge 1 commit into
ds2-canvas-node-geometryfrom
ds2-persist-without-measured
Draft

[DS 2.0] Strip measured node sizes from saved and exported diagrams#124
librowski wants to merge 1 commit into
ds2-canvas-node-geometryfrom
ds2-persist-without-measured

Conversation

@librowski

Copy link
Copy Markdown
Collaborator

Problem

getStoreDataForIntegration (used by the localStorage, API and props integrations and by export) stripped only selected from nodes, so the runtime measured sizes travelled with the diagram. Observed in the demo: after the node shell width changed, Save still wrote the previous measured.width, so persisted data carried sizes that no longer matched the rendered nodes. Nothing in the SDK reads measured back from stored data - nodes are measured again on load.

Change

  • skipDynamicValuesInNodes drops measured alongside resetting selected; JSDoc of getStoreDataForIntegration lists measured sizes among the stripped runtime values.
  • New dynamic-values.spec.ts covers nodes (measured dropped, selection reset, input untouched) and edges (routing points and selection reset).
  • Changeset: @workflowbuilder/sdk patch (export format no longer contains measured).

Fixtures under apps/ still contain measured; it is now ignored data and can be cleaned up separately.

@librowski
librowski marked this pull request as draft September 7, 2026 12:07
@librowski
librowski force-pushed the ds2-persist-without-measured branch from 11b2648 to 7670612 Compare September 7, 2026 12:09
Runtime dimensions were persisted alongside the diagram and observed to stay
at the stale stored value after remeasurement, so exports and localStorage
carried sizes that no longer matched the rendered nodes. Sizes are a runtime
fact; nodes are measured again on load.
@librowski
librowski force-pushed the ds2-persist-without-measured branch from 7670612 to 2f783dc Compare September 7, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant