mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-18 05:29:53 +00:00
Packaging Tools: Fold Preview folds the blank in 3D with the printed art on its panels
43 lines
1.1 KiB
Rust
43 lines
1.1 KiB
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 cutting;
|
|
mod document;
|
|
mod image;
|
|
mod packaging;
|
|
mod pathtools;
|
|
mod pen;
|
|
mod select;
|
|
mod shapes;
|
|
mod typetools;
|
|
mod units;
|
|
|
|
pub(crate) use image::{DecodedImages, refresh_color_masks};
|
|
pub use packaging::{fold_source, print_hidden};
|
|
pub(crate) use packaging::{role_swatch_edited, role_swatches_merged};
|
|
|
|
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(cutting::specs());
|
|
v.extend(document::specs());
|
|
v.extend(image::specs());
|
|
v.extend(packaging::specs());
|
|
v.extend(pathtools::specs());
|
|
v.extend(pen::specs());
|
|
v.extend(select::specs());
|
|
v.extend(shapes::specs());
|
|
v.extend(typetools::specs());
|
|
v.extend(units::specs());
|
|
v
|
|
}
|