mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-05 19:51:26 -05:00
c99020bf0b
Deleting an artboard now clears the owner tag of its marks group, on the marks layer or moved off it, so a reopened file that gives a new artboard the old id does not hand it the old marks. artboard.setProps with moveArt and a new x or y takes the artboard's own marks group wherever it lies and leaves another artboard's group lying on it, as artboard.move does; an artboard scaled in the same call leaves a moving artboard's marks alone, and marks lying on another locked artboard stay unless lockedAndHidden. A run on the active artboard records it in the journal as activeArtboard, which recorded actions leave out.
47 lines
1.4 KiB
Rust
47 lines
1.4 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 color::screen_marks::{
|
|
LAYER_NAME as SCREEN_MARKS_LAYER, adopt_layer as adopt_screen_marks_layer, copied_owners as screen_marks_copied, layer_id as screen_marks_layer,
|
|
managed_owners as screen_marks_owners, owned_by as screen_marks_of, release as release_screen_marks, retag as retag_screen_marks,
|
|
};
|
|
pub(crate) use image::{DecodedImages, refresh_color_masks};
|
|
pub use packaging::{FoldAngles, fold_source, print_hidden, selection_fold_angles, selection_fold_lines};
|
|
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
|
|
}
|