mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-24 11:23:43 +01:00
In Draw Behind, an Alt-drag of whole objects with the Selection or Direct Selection tool now puts each copy directly below its own original, in the original's group or layer, and selects the copies, as the drawing modes help page lists duplicating by Alt-drag among the actions Draw Behind applies to (https://helpx.adobe.com/illustrator/desktop/draw-shapes-and-paths/learn-drawing-basics/drawing-modes-overview.html). The copy of a clip group's or clipping layer's clipping path goes directly above it, so the clipping path stays the bottom object. - object.transform takes drawBehind (with copy); the tools send it while Alt is held. A value that is not true or false is refused. - Draw Normal, Draw Inside, object.move, the transform dialogs' Copy, Duplicate and Transform Again keep putting copies above. - Document::insert_below puts nodes directly below their anchors in one pass. Docs: docs/mcp.md, docs/target-app-parity.md.
46 lines
1.8 KiB
Rust
46 lines
1.8 KiB
Rust
//! Object menu: transforms, arrange, group, lock/hide, compound paths, clipping masks, isolation,
|
|
//! align & distribute, object properties.
|
|
|
|
use std::collections::BTreeSet;
|
|
use std::sync::Arc;
|
|
|
|
use serde_json::{Value, json};
|
|
use vectorcraft_color::{BlendMode, Paint};
|
|
use vectorcraft_doc::corners::{convert_radii_relative, set_corners};
|
|
use vectorcraft_doc::{Appearance, Document, Knockout, LiveCorners, LiveShape, Node, NodeId, NodeKind, OrientedBox, Scaling};
|
|
use vectorcraft_geom::shapes::CornerKind;
|
|
use vectorcraft_geom::{Affine, FillRule, PathData, Point, Rect, Vec2};
|
|
use vectorcraft_render::effects;
|
|
|
|
use super::edit::{duplicate_beside, outermost, selected_roots, selected_roots_to_transform};
|
|
use super::opacitymask::percent;
|
|
use super::{
|
|
CommandSpec, Result, Session, bad, bool_or, check_numbers, check_switches, cmd, f64_or, f64_req, has_doc, has_multi, has_selection,
|
|
has_selection_or_guides, ids_param, matrix_param, object_param, ok, point_param, str_param, targets,
|
|
};
|
|
use crate::{EngineError, LastTransform};
|
|
|
|
mod align;
|
|
mod arrange;
|
|
mod bounds;
|
|
mod commands;
|
|
mod compound;
|
|
mod pixelgrid;
|
|
mod props;
|
|
mod shape;
|
|
mod spans;
|
|
mod transform;
|
|
|
|
pub(crate) use align::choice;
|
|
pub(crate) use arrange::group_nodes;
|
|
pub(crate) use bounds::{bounds_rewrite, object_bounds_transform};
|
|
pub use commands::specs;
|
|
pub(super) use compound::{as_clipping_path, make_clipping_path, release_clip};
|
|
pub(crate) use pixelgrid::{
|
|
align_new_object, can_align, keep_aligned_in, keep_compound_aligned, keep_pixel_aligned, refresh as refresh_pixel_aligned, resnap,
|
|
snap_if_aligned, snap_symbol_art,
|
|
};
|
|
pub(super) use shape::recut;
|
|
pub(crate) use transform::{apply_transform, preview_copies, scaling, transform_node, transform_patterns, transforms_objects};
|
|
pub use transform::{reflect_axis, scale_factors, shear_tangent};
|