diagram_core/src/render/rebuild.rs#
Source: lib/diagram_core/src/render/rebuild.rs
rebuild -- the items of some top-level shapes made anew in their place (JD7: a shape that
moves, grows or changes its look while it is dragged), the rest of the drawing kept
render::rebuild(&doc, &mut drawing, &mut measure, &opts, &shapes) -> bool
A top-level shape's items lie together in painter's order (build draws a top-level shape
with everything below it before the next one), so making one anew replaces a range of the
items: the items after it move when the count changes, the grid follows (Grid::replace),
the notes and the font families are added up again. `shapes` may name subshapes: their
top-level shape is made anew; shapes of pages the drawing does not show are passed over.
The result is the list build would make of the document now, as long as only those shapes
changed. false (nothing changed in the drawing): a shape came or went, the top-level order
changed, the page's size or scale changed, a named shape of the page is not in the drawing
-- the caller builds anew. Changes the shapes do not show (the page's layers, styles,
masters, themes) are the caller's to know: they need build. (JD21) Line jumps are rows of
the connectors' Geometry: a connector whose jumps changed is a changed shape like any other.
fn affected(doc: &Document, d: &Drawing, opts: &Options, shapes: &[ShapeRef]) -> Vec<ShapeRef>(JD21) the top-level shapes rebuild makes anew forshapes(in painter's order; shapes the drawing does not show are passed over)fn rebuild(doc: &Document, d: &mut Drawing, measure: &mut dyn Measure, opts: &Options, shapes: &[ShapeRef]) -> boolthe items of the top-level shapes ofshapesmade anew ind-> false: build anew