mirror of
https://github.com/storytold/texturecraft.git
synced 2026-11-21 15:00:42 +01:00
Reject overflowing set indexes, saturate layer moves and clone offsets, and validate path corner flags before mutation. Clear discarded path caches and replace disabled-mask previews with a blank upload. Reduce repeated selection allocations and temporary mask buffers. Preserve public reexports while separating types, and complete scoped comment and guard-spacing cleanup. Validated paint and focused engine tests, workspace Clippy, production wasm checks, layering and formatting.
13 lines
513 B
Rust
13 lines
513 B
Rust
use texturecraft_core::LayerId;
|
|
|
|
/// The layers selected in one texture set together with the active one.
|
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
|
pub struct MultiSelection {
|
|
/// The active layer these were picked with; another selected layer ends the selection.
|
|
pub active: LayerId,
|
|
/// Where a Shift+click range starts: the last layer clicked without Shift.
|
|
pub anchor: LayerId,
|
|
/// Every selected layer, the active one included, in the order they were picked.
|
|
pub layers: Vec<LayerId>,
|
|
}
|