@pixerate/editor 0.39.0 → 0.40.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.
- package/THIRD_PARTY_NOTICES.md +1 -1
- package/dist/vector/index.cjs +414 -155
- package/dist/vector/index.cjs.map +1 -1
- package/dist/vector/index.d.cts +83 -9
- package/dist/vector/index.d.ts +83 -9
- package/dist/vector/index.js +295 -36
- package/dist/vector/index.js.map +1 -1
- package/package.json +1 -1
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -179,7 +179,7 @@ GridCraft. Apache POI is © The Apache Software Foundation, licensed under the A
|
|
|
179
179
|
- `crates/pathops/src/planar.rs` (`map`: input paths split into a planar graph, coincident pieces one edge keyed by the front-most input, half-edges sorted by `leaving_angle` — where each first gets half the shortest edge away from the vertex — and `without_spurs`; `Map::merge`: merged faces traced along the map's own edges so shared edges drop out exactly; `build`: faces with the fills covering an interior point, and edges chained through vertices where nothing else meets; `shape_builder`, `encloses_area`; `interior_point`) → `PlanarMap` / `interiorPoint` in `packages/core/src/canvas/pathops/planar.ts`, `subpathEnclosesArea` / `vectorShapeBuilderMap` in `packages/core/src/vector/builder.ts`; the sweep and its shear were replaced by `planarSplit` (the boolean engine's intersection search), `cut_out` with `nearest_u`, `span` and `snap_ends` (an erased edge opening a closed subpath, splitting an open one or taking a subpath it runs round, filled open subpaths running round an invisible closing edge that never comes back) → `cutOutPiece` / `contourEnclosesArea` in `packages/core/src/canvas/pathops/planar.ts`
|
|
180
180
|
- `crates/tools/src/builder.rs` (the Shape Builder tool: `BuilderMap` with regions and line pieces, `hit` preferring the nearer of a line piece and an outline edge within tolerance when erasing, `Hit::Edge`, `erased_edges` (an edge bounding a face touched in the same gesture goes with the face), `sides`, `line_between`, `Touched`, `sample_polyline`, `shape_builder_shapes` closing filled open subpaths that enclose an area, hover and drag highlights, Alt to erase) and `crates/engine/src/cmd/buildcmds.rs` (`sb_merge`: line pieces deleted or lying between merged faces go, covering shapes keep their faces not merged, erased edges cut out of every outline they lie on, the merged shape styled like the top-most shape over the first region or the current fill for a gap) → `packages/core/src/vector/builder.ts` and the `shapeBuilder` tool in `packages/core/src/vector/controller.ts`; `hatch` (45° scanlines clipped to a face, the gap widened past a line cap) → `hatchPath` in `packages/core/src/canvas/pathops/hatch.ts`, drawn by the React and Svelte canvases; Live Paint groups were not ported
|
|
181
181
|
- Test cases from `crates/pathops/src/{pathfinder.rs,planar.rs}` and `crates/engine/src/tests_build.rs`, re-expressed → `packages/core/tests/canvas-pathfinder.test.ts`, `packages/core/tests/vector-pathfinder.test.ts`
|
|
182
|
-
- `crates/tools/src/distort/width.rs` (the Width tool: the stroke under the pointer and its width there, dragging outward to add or widen a width point — symmetric, Alt one side — dragging a point's centre to slide it along the path, its handle ends to widen it, width-point diamonds and side handles in the overlay, Delete removing the selected point) → `getVectorWidthHandles`, the `width` hover and drag in `packages/core/src/vector/controller.ts` and the overlay's `widthPoints` / `widthSpot` in `packages/core/src/vector/render.ts`;
|
|
182
|
+
- `crates/tools/src/distort/width.rs` (the Width tool: the stroke under the pointer and its width there, dragging outward to add or widen a width point — symmetric, Alt one side — dragging a point's centre to slide it along the path, its handle ends to widen it, width-point diamonds and side handles in the overlay, Delete removing the selected point) → `getVectorWidthHandles`, the `width` hover and drag in `packages/core/src/vector/controller.ts` and the overlay's `widthPoints` / `widthSpot` in `packages/core/src/vector/render.ts`; and its later additions: Alt-dragging a centre to slide a copy (`stroke.widthPoint.copy`), dropping a slid point onto another to make a discontinuous point, Shift-click multi-selection with selected points moved or widened together and kept selected after a move (`group` / `toggle` / `selected_indices`), Delete removing every selected point, and double-click opening Width Point Edit on a point or a stroke spot (the `widthPoint` dialog) → `selectedWidthPoints`, `selectWidthPoints`, `removeWidthPoints`, `setWidthPoint`, `openWidthPointEdit` / `commitWidthPointEdit` / `widthPointEdit` and the `copy` drag in `packages/core/src/vector/controller.ts`, and `VectorWidthPointEditor` in `packages/react/src/vector/VectorWidthPointEditor.tsx` and `packages/svelte/src/vector/VectorWidthPointEditor.svelte`; test cases re-expressed → `packages/core/tests/vector-width.test.ts`
|
|
183
183
|
---
|
|
184
184
|
|
|
185
185
|
## wordcraft
|