@pixerate/editor 0.35.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -48,6 +48,8 @@ reproduced at the end of this file. Paths are relative to each source repository
48
48
  - `crates/engine/src/cmd/component.rs` (create component, combine as variants, create / detach / swap instance, reset instance and overrides, push changes, restore main, set instance properties, add / edit / delete / bind component properties) → `packages/core/src/canvas/components.ts`, `packages/core/src/canvas/componentsController.ts`
49
49
  - `crates/engine/src/{components_tests.rs,components_behaviour_tests.rs,components_scale_tests.rs}` (test cases re-expressed) → `packages/core/tests/canvas-components.test.ts`, `packages/core/tests/canvas-components-controller.test.ts`
50
50
  - `crates/engine/src/vectoredit/ops.rs` (`bend`: handles at the chord's thirds plus one shared offset so the segment passes through the pointer at `t`, `t` clamped to 0.05–0.95) → `bendSegment` in `packages/core/src/vector/pathEdit.ts`; its `delete_vertices` / `heal_handles` (a healed curve through the deleted point) were compared and not ported, as the least-error refit followed the old segments more closely
51
+ - `crates/doc/src/vector.rs` (`VectorNetwork::rounded` / `corner`, `trim`, `start_dir`: each side of a rounded point trimmed by arc length with the radius clamped so a cut takes at most half of each side, the round cut a cubic with handles `4/3 · tan(φ/4) · ρ` along the sides' directions at the cut, a curved side keeping the rest of its curve) → `packages/core/src/vector/corners.ts`
52
+ - `crates/pathops/src/lib.rs` (`stroke_outline_of`: an inside stroke as twice the width intersected with the fill, an outside one as twice the width minus the fill, open shapes always centred) → `packages/core/src/vector/stroke.ts`
51
53
 
52
54
  ## filmcraft
53
55
 
@@ -156,6 +158,11 @@ GridCraft. Apache POI is © The Apache Software Foundation, licensed under the A
156
158
  - `crates/geom/src/path.rs` (`SubPath::cut_at`) → `cutSubpathAt` in `packages/core/src/vector/pathEdit.ts`; its `bend_segment` was not used
157
159
  - `crates/tools/src/draw2/curvature.rs` (`curvature_move`) → `curvatureMoveAnchor` in `packages/core/src/vector/pathEdit.ts`
158
160
  - `crates/engine/src/cmd/draw2.rs` (`knife`, `erase_region`, `erase_outline`, `cut_subpath`: which paths a stroke reaches, fills losing the stroke's area by a boolean difference, outlines cut into runs that keep the original curves and join across a closed path's start, one object per piece) → `packages/core/src/vector/pathCut.ts`; the fixed 0.05 pt knife slit and the 24-sample crossing search were replaced by gap-free chord splitting with exact crossings
161
+ - `crates/geom/src/corners.rs` (`path_corners`, `Corner` — `setback`, `max_radius`, `fitted`, `on_bisector`, `radius_change` — `arc_handle`, `square_to`, and `cut_corners` with the round, inverted round and chamfer kinds, curved sides trimmed between cuts and a closed subpath whose first corner is cut starting where that cut ends) → `packages/core/src/vector/corners.ts`; its curved-side `round_handles` were replaced by figcraft's chord-based arc handles
162
+ - `crates/tools/src/corners.rs` (the corner widgets: shown at the selected corners, on the bisector at the arc's centre at least 10 px in, hidden on sides under 30 px; a drag sets every shown corner's radius from the pointer's travel along the bisector up to fully round; Alt-click cycles the kind; a click picks that corner) → `getVectorCornerWidgets` and the `corner` drag in `packages/core/src/vector/controller.ts`
163
+ - `crates/effects/src/stroke/arrow.rs` (`pieces`, `end_of`, `cut_point`, `trim`, `inset`, `shape`, the `ring` / `arm` / `bar` sizes and `NOTCH`: arrowheads on the open ends of the first and last subpaths, `Tip` vs `Extend` alignment, the stroke ending under the head) and `crates/doc/src/appearance.rs` (`arrow_weight`) → `packages/core/src/vector/stroke.ts`; only the triangle, arrow, open arrow, circle, square and bar heads were ported
164
+ - `crates/svg/src/lib.rs` (stroke alignment written as a double-width stroke clipped to the shape for inside and masked by it for outside) → `packages/core/src/vector/svg.ts`
165
+ - Test cases from `crates/geom/src/corners.rs`, `crates/tools/src/corners.rs` and `crates/effects/src/stroke/arrow.rs`, re-expressed → `packages/core/tests/vector-corners-strokes.test.ts`
159
166
  ---
160
167
 
161
168
  ## wordcraft