mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
A new live shape kind, LiveShape::Triangle { rect, corner_radius }, draws an isosceles triangle that fills the dragged box (apex at the top centre, then bottom right, bottom left). The engine no longer turns a triangle into an inscribed 3-sided polygon. Triangles saved before this are 3-sided polygons and keep that geometry.
The .pcraft manifest stores a live triangle in a new optional triangle_live field beside live (as arrow_live does), so older builds open the file and show the saved path. PSD export writes no vogk for a triangle, as for polygons.
Arms the new kind forces: live_kind, the axis-aligned transform, params, the corner radius widgets and the Properties Shape section (Corner radius only). Shift keeps today's equilateral triangle, sent as its tight box.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Model-Effort: Opus 5.5 drove; Fable 5.2 briefed; Sonnet 5.5 wrote at medium
14 lines
256 B
Rust
14 lines
256 B
Rust
//! The crate's integration tests, linked into one test binary.
|
|
|
|
mod analysis;
|
|
mod autosave;
|
|
mod common;
|
|
mod corruption;
|
|
mod directory_symlinks;
|
|
mod float_roundtrip;
|
|
mod frame_stroke;
|
|
mod layer_labels;
|
|
mod roundtrip;
|
|
mod smart_contents;
|
|
mod triangle_live;
|