mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-28 13:28:11 +08:00
Make the transform cage show/hide resize grips as space allows (#2209)
* Changes rotation handles to be around overlay squares Fixes https://discord.com/channels/731730685944922173/931942323644928040/1330785941786329209 * Fix zero width objects not being selected by slightly nudging the transform * Follow the categorical limits to render overlay quads As discussed here: https://discord.com/channels/731730685944922173/931942323644928040/1331166336923074600 * Replace area based calculations with edge based calculations * Fix 3rd category vis * Code review * Add missing powi(2) * Fixes to handle logic * Remove single axis prioritisation * Explicitly check for distance to find nearest handle * Replace threshold check based on corner vis bounds * Fix discrepancy at h=12px * Allow grab when box is too small by disabling resizing within bounds * Replace inside resize pixel limit * Code review --------- Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
co-authored by
Keavon Chambers
parent
c5a3c32114
commit
a0f8f89e71
@@ -1296,7 +1296,7 @@ impl NodeNetworkInterface {
|
||||
let clip_input = artboard.unwrap().inputs.get(5).unwrap();
|
||||
if let NodeInput::Value { tagged_value, .. } = clip_input {
|
||||
if tagged_value.to_primitive_string() == "true" {
|
||||
return Some(Quad::constraint_bounds(
|
||||
return Some(Quad::clip(
|
||||
self.document_metadata.bounding_box_document(layer).unwrap_or_default(),
|
||||
self.document_metadata.bounding_box_document(artboard_node_identifier).unwrap_or_default(),
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user