mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 13:23:22 +00:00
- Extend vectorcraft-geom::shapes with clean-room open/pie/chord/arc ellipse and rectangle builders, per-corner radii, polygon/star corner rounding and deterministic vertex randomization, logarithmic/Archimedean spiral divergence and inner radius, and perspective/isometric 3D box face builders. - Isolate 3D Box and customizable shape parameters as a VectorCraft add-on under crates/*/src/**/addons/: - crates/tools/src/addons/box3d.rs (Box3dTool and CustomShape extras stored under Node::extras["vc-shape-tools"]) - crates/engine/src/cmd/addons/shapes.rs (addon.shapes.rectangle, addon.shapes.ellipse, addon.shapes.polygon, addon.shapes.star, addon.shapes.spiral, addon.shapes.box3d, and addon.shapes.configure) - crates/ui-egui/src/addons/shapes.rs (Object > Plug-ins > 3D Box > 3D Box Tool and context-sensitive Control bar options) - Keep crates/engine/src/cmd/create.rs, crates/tools/src/shape.rs, and crates/tools/src/draw2/family.rs byte-for-byte identical to main. - Add translations for "3D Box" and "3D Box Tool" across all 26 .tsv catalogs in crates/ui-egui/src/i18n/.
31 lines
723 B
Rust
31 lines
723 B
Rust
//! VectorCraft's built-in add-ons: extra tools beyond the standard menus, each a module of its own
|
|
//! with commands under `addon.<name>.*` (see `docs/mcp.md`).
|
|
|
|
mod arrange;
|
|
mod cleanup;
|
|
mod color;
|
|
mod contour;
|
|
mod document;
|
|
mod pathtools;
|
|
mod pen;
|
|
mod select;
|
|
mod shapes;
|
|
mod typetools;
|
|
|
|
use super::CommandSpec;
|
|
|
|
/// The commands of every built-in add-on.
|
|
pub fn specs() -> Vec<CommandSpec> {
|
|
let mut v = arrange::specs();
|
|
v.extend(cleanup::specs());
|
|
v.extend(color::specs());
|
|
v.extend(contour::specs());
|
|
v.extend(document::specs());
|
|
v.extend(pathtools::specs());
|
|
v.extend(pen::specs());
|
|
v.extend(select::specs());
|
|
v.extend(shapes::specs());
|
|
v.extend(typetools::specs());
|
|
v
|
|
}
|