-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add width/height overrides for NestedArtboardLayout
Adds the ability to override width and height for NestedArtboardLayout. This allows each NestedArtboardLayout instance to respond to be sized differently. This is not supported in the NestedArtboard Node and Leaf types, since those are resized using differently (Node uses scale and Leaf uses a combination of scale/fit/alignment). Implemented via FFI as discussed with @luigi-rosso because NestedArtboardLayout modifying the "taken" layoutNode directly could result in race conditions and other conflicts. https://github.com/user-attachments/assets/c323a94f-f392-4c10-ac01-af112f70a256 Diffs= 0dc0b435f Add width/height overrides for NestedArtboardLayout (#7736) Co-authored-by: Philip Chung <[email protected]>
- Loading branch information
Showing
10 changed files
with
500 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1131f30e6a45bee5c0561de3a35b19985bf46820 | ||
0dc0b435ffb0df61de0afcdc2cea0c69bb8fedd4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,66 @@ | ||
{ | ||
"name": "NestedArtboardLayout", | ||
"key": { | ||
"int": 452, | ||
"string": "nestedartboardlayout" | ||
"name": "NestedArtboardLayout", | ||
"key": { | ||
"int": 452, | ||
"string": "nestedartboardlayout" | ||
}, | ||
"extends": "nested_artboard.json", | ||
"properties": { | ||
"instanceWidth": { | ||
"type": "double", | ||
"initialValue": "-1", | ||
"animates": true, | ||
"key": { | ||
"int": 663, | ||
"string": "instancewidth" | ||
}, | ||
"description": "Width value in points or percent of this nested artboard instance." | ||
}, | ||
"extends": "nested_artboard.json" | ||
"instanceHeight": { | ||
"type": "double", | ||
"initialValue": "-1", | ||
"animates": true, | ||
"key": { | ||
"int": 664, | ||
"string": "instanceheight" | ||
}, | ||
"description": "Height value in points or percent of this nested artboard instance" | ||
}, | ||
"instanceWidthUnitsValue": { | ||
"type": "uint", | ||
"initialValue": "1", | ||
"key": { | ||
"int": 665, | ||
"string": "instancewidthunitsvalue" | ||
}, | ||
"description": "Whether to display width in points or percent" | ||
}, | ||
"instanceHeightUnitsValue": { | ||
"type": "uint", | ||
"initialValue": "1", | ||
"key": { | ||
"int": 666, | ||
"string": "instanceheightunitsvalue" | ||
}, | ||
"description": "Whether to display height in points or percent" | ||
}, | ||
"instanceWidthScaleType": { | ||
"type": "uint", | ||
"initialValue": "0", | ||
"key": { | ||
"int": 667, | ||
"string": "instancewidthscaletype" | ||
}, | ||
"description": "Width scale type fixed | fill" | ||
}, | ||
"instanceHeightScaleType": { | ||
"type": "uint", | ||
"initialValue": "0", | ||
"key": { | ||
"int": 668, | ||
"string": "instanceheightscaletype" | ||
}, | ||
"description": "Height scale type fixed | fill" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.