mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-28 20:36:55 -06:00
M4: live boolean editing, arc fields, shape builder on strokes, one-sided widths (#111)
Boolean operands are editable in place with live results (per-operand operations, cached prefixes so a drag recomputes from the edited operand up); a Design panel Arc section; the shape builder takes strokes and open paths as outlined areas; variable width points can be wider on one side.
This commit is contained in:
@@ -443,6 +443,10 @@ pub struct Node {
|
||||
/// Explicit variable modes (collection → mode) set on this container.
|
||||
#[serde(default, skip_serializing_if = "is_default")]
|
||||
pub var_modes: BTreeMap<CollectionId, ModeId>,
|
||||
/// In a boolean group: how this operand combines with the operands below it (`None`: the
|
||||
/// group's operation). Ignored for the bottom operand and outside boolean groups.
|
||||
#[serde(default, skip_serializing_if = "Option::is_none")]
|
||||
pub bool_op: Option<BoolOp>,
|
||||
/// Lock aspect ratio when resizing from the panel.
|
||||
#[serde(default, skip_serializing_if = "is_default")]
|
||||
pub constrain_proportions: bool,
|
||||
@@ -574,6 +578,7 @@ impl Node {
|
||||
styles: StyleRefs::default(),
|
||||
bound: BTreeMap::new(),
|
||||
var_modes: BTreeMap::new(),
|
||||
bool_op: None,
|
||||
constrain_proportions: false,
|
||||
source: None,
|
||||
exposed: false,
|
||||
|
||||
Reference in New Issue
Block a user