Skip to content

v0.1.17

Choose a tag to compare

@clearloop clearloop released this 26 Sep 08:16
8da7b47

Canvas editing respects locks and zoom limits, with faster undo and cached containment.

New

  • CanvasEditor::take_events lets headless callers drain pending events and release retained changes; the view drains them automatically.

Changed

  • Undo batches are built in linear time without repeated vector prepends, preserving undo and redo order.
  • Rendering and gestures reuse containment indexes for the document and preview, invalidated by edits, measurements and kind changes. Container depths are memoized, including cycles.
  • CanvasEditor::selected finds the primary selection without allocating a temporary vector.

Fixed

  • Zero or negative snap grid spacing paints no dots instead of hanging rendering.
  • Dragging a selection leaves nodes that disallow dragging stationary and selected.
  • fit and zoom_to_selection respect both configured zoom limits.