Files
vectorcraft/crates/engine/src/session.rs
T
dotCooCoo ad0675d4f9 Transform panel: Show on Shape Creation shows the panel after a shape is drawn
The Transform panel menu has a Show on Shape Creation check item, the
`showOnShapeCreation` preference (off until chosen, kept with the
preferences). With it on, the app shows the Transform panel, as Window >
Transform shows it, after a shape is drawn: a drag or OK in the dialog of
the Rectangle, Rounded Rectangle, Ellipse, Polygon, Star or Line Segment
tool, a shape the Shaper tool recognizes, or a shape.rectangle,
shape.ellipse, shape.polygon, shape.star or shape.line command, alone or
as a batch step. A panel that is showing already stays as it is. A
canceled drag or dialog, a failed command, saved steps an action plays, a
script's commands and Presentation Mode leave the panels as they are.

The engine notes a drawn shape where it journals the command
(`Session::take_shape_drawn`), and the app checks it once per frame.

Help page: https://helpx.adobe.com/illustrator/desktop/manage-objects/reshape-transform-objects/transform-panel-overview.html
2026-11-16 08:16:11 -08:00

17 lines
729 B
Rust

use super::command_sets::{DRAWS_SHAPE, JOURNALED_READS, SELECTS_GIVEN_IDS, TAKES_GUIDE_IDS, given_ids, strip_replay_only, waits_for_tool_edit};
use super::doc_state::DocState;
use super::error::{EngineError, Result};
use super::history::NamedStep;
use super::interaction::{BatchSteps, Interaction, LastTransform, UndoGroup, UndoScope};
use super::prefs::{DrawMode, Prefs};
use super::sanity::{TOO_DEEP, deselect_hidden, doc_sane, objects_in_range};
use super::{
Arc, Clipboard, Color, CommandInfo, CommandSpec, Document, GradientPaint, Journal, NodeId, NodeKind, PaintDefaults, Selection, Session, Value,
ViewInfo, cmd, command_specs, file_access, find_command, guard,
};
mod documents;
mod edit;
mod execute;
mod undo;