mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 16:31:38 +00:00
Review of #5694 asked for two changes. Add-on, not a core tool, as Enclosing Lasso is: - The command is addon.contour.set, in an add-on module of its own (crates/engine/src/cmd/addons/contour.rs) with its tests beside it. - The tool is listed under Object > Plug-ins > Contour and under its own "Contour" heading in All Tools. It has no Basic or Advanced toolbar slot and no default shortcut. The Contour bar is unchanged. - The add-on drawer test lists Contour with the other add-on tools. - Docs (mcp.md, the parity documents, ROADMAP) say add-on and use the new command name; mcp.md gains a Contour add-on section. Translations: rows for "Contour", "Contour Tool", "Sharp", "Bake" and "Turn the Contour into plain paths" in all 26 catalogs ("Round" and "Square" already had them). Drafted from each catalog's own vocabulary (for Bake, the verb it uses for Expand Appearance; a word other than the catalog's Stroke or Path word for the tool's name where they collide); they are not native-speaker reviewed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
29 lines
680 B
Rust
29 lines
680 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 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(typetools::specs());
|
|
v
|
|
}
|