mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-26 19:36:16 +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/.
36 lines
1.1 KiB
Rust
36 lines
1.1 KiB
Rust
//! The module defines VectorCraft's built-in add-on menus and panels. Object › Plug-ins lists their tools and commands.
|
||
|
||
pub mod arrange;
|
||
pub mod cleanup;
|
||
pub mod color;
|
||
pub mod compounds;
|
||
pub mod contour;
|
||
pub mod document;
|
||
pub mod enclosing_lasso;
|
||
pub mod pathtools;
|
||
pub mod pen;
|
||
pub mod select;
|
||
pub mod shapes;
|
||
pub mod typetools;
|
||
|
||
use crate::menus::Item;
|
||
|
||
/// The add-ons' submenus, then a separator: the head of Object › Plug-ins.
|
||
pub fn plugin_menu() -> Vec<Item> {
|
||
vec![
|
||
Item::Sub("3D Box", shapes::menu()),
|
||
Item::Sub("Arrange Tools", arrange::menu()),
|
||
Item::Sub("Artwork Cleanup", cleanup::menu()),
|
||
Item::Sub("Color Effects", color::menu()),
|
||
Item::Sub("Compound Shapes", compounds::menu()),
|
||
Item::Sub("Contour", contour::menu()),
|
||
Item::Sub("Document Tools", document::menu()),
|
||
Item::Sub("Enclosing Lasso", enclosing_lasso::menu()),
|
||
Item::Sub("Path Precision Tools", pathtools::menu()),
|
||
Item::Sub("Selection Tools", select::menu()),
|
||
Item::Sub("Smart Pen", pen::menu()),
|
||
Item::Sub("Type Tools", typetools::menu()),
|
||
Item::Sep,
|
||
]
|
||
}
|