stripEdgeRuntimeProperties
since v1.3.0stripEdgeRuntimeProperties(
edge):Edge
Strips runtime-computed properties from an edge
(sourcePosition, targetPosition, measuredLabels, computedZIndex, _internalId).
These properties are recomputed during initialization and stale values from persistence cause the measurement system to skip fresh DOM measurement.
Free endpoints of dangling edges are the exception: when source or target
is empty, the corresponding sourcePosition/targetPosition is authored data
— the only source of truth for that endpoint — so it is preserved.
This is the default edge strip function used by initializeModel and initializeModelAdapter. When providing a custom strip function, wrap this one instead of reimplementing it so future runtime properties stay covered.