Skip to content

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

Draft
librowski wants to merge 2 commits 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 2 commits into
ds2-canvas-node-geometryfrom
ds2-persist-without-measured

Conversation

@librowski

@librowski librowski commented Sep 7, 2026

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).
  • Second commit: the 82 stored measured: { width: 258, height: ... } entries are removed from the Demo templates and AI Studio flows (9 files). They were dead data after the first commit and still recorded the pre-DS 2.0 width; design confirmed stored sizes are a cache, not a source.

@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
@librowski
librowski force-pushed the ds2-persist-without-measured branch from 7670612 to 2f783dc Compare September 7, 2026 12:37
@librowski
librowski force-pushed the ds2-persist-without-measured branch from 38d3263 to 9d2f9a9 Compare September 9, 2026 16:49
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.
…dio flows

Runtime dimensions are no longer persisted (see the sdk change in this
branch), so the 82 stored measured values were dead data that still
recorded the pre-DS 2.0 width.
@librowski
librowski force-pushed the ds2-persist-without-measured branch from 9d2f9a9 to 27a232d Compare September 9, 2026 21:38
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