A Pencil or Paintbrush stroke that starts on a selected path and is
lifted away from it drew a new path, and a stroke back onto the path
joined it with a straight piece at each end.
- A stroke that starts on the path and is lifted farther than Edit
selected paths within from it takes the path with it: a closed path
opens where the stroke starts and ends where the stroke does; an open
path is cut there and drops the part the stroke heads along (one the
stroke leaves nearly square to it, more than 70 degrees from its
direction, drops its shorter part). From one of its ends it drops
nothing.
- A stroke that ends back on the path (within Edit selected paths
within) replaces the section between. On a closed path that is the
way round that lies nearer the stroke, so carving across a shape cuts
off the part the stroke crosses and drawing round outside it replaces
the part it follows. On an open path, a stroke over its open ends
closes it along the stroke.
- A stroke that returns to where it started adds a loop there.
- The stroke's ends bend smoothly onto the path over Edit selected paths
within, instead of meeting it with a straight piece.
- A shape's holes keep their winding, so they stay holes.
Tests: tests_draw2 covers each case (opening a closed shape, cutting an
open path, the loop, the side a closed redraw takes, carving, closing
over open ends, the smooth join, a shape with a hole); bend_tests checks
the end bending.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A selected compound path (a shape with a hole, such as one made with
Object › Compound Path › Make) could not be redrawn with the Pencil or
the Paintbrush: at the press, find_redraw looked only for selected
objects that are paths themselves, and a compound path's paths are its
children. The stroke then drew a new path, which Keep selected selected
in place of the compound path, so every later stroke near the shape drew
a new path too: redrawing seemed to stop working.
- find_redraw takes a selected compound path's member paths as well,
the nearest one within Edit selected paths within of the press.
- path.freehand's redraw keeps the compound path selected (or, with Keep
selected off, takes it out of the selection) when the redrawn path is
one of its members, so the next stroke redraws it too.
Test: pencil_redraws_a_selected_compound_path redraws the outer path and
then the hole of a selected compound path; it fails without this change
(the first stroke draws a new path).
cargo xtask ci: every step passes except one test in `test`,
vectorcraft-pdf tests_import_fidelity::text_becomes_point_type, which
fails the same way on unmodified main on this machine; it is unrelated
to this change.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Replace glob imports (`use super::*`, `use crate::*`, `use sig::*`) with
the names each file uses, in scriptcheck, pdf, render, text and ui-egui.
No code changes.
Replace glob `use super::*` with the names each module uses, so the
module's imports are visible at the top of the file (Sonar rust:S2208).
No code changes.
- packaging/linux/package.sh: one verify_sha256 helper replaces the four
repeated printf|sha256sum -c pipelines.
- packaging/macos/package.sh: stapler_retry copies its positional
arguments into locals before use.
- swatch_options: f64::from(v) instead of v as f64 (same value; the
argument is an f32, so the conversion stays).