Skip to content

Commit 4aa4a5b

Browse files
8/31 typings update (#373)
1 parent c841bf2 commit 4aa4a5b

2 files changed

Lines changed: 110 additions & 64 deletions

File tree

‎plugin-api-standalone.d.ts‎

Lines changed: 55 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7621,7 +7621,9 @@ interface AutoLayoutMixin {
76217621
*
76227622
* - In horizontal auto-layout frames, `“MIN”` and `“MAX”` correspond to left and right respectively.
76237623
* - In vertical auto-layout frames, `“MIN”` and `“MAX”` correspond to top and bottom respectively.
7624-
* - `“SPACE_BETWEEN”` will cause the children to space themselves evenly along the primary axis, only putting the extra space between the children.
7624+
* - `“SPACE_BETWEEN”` will space the children evenly along the primary axis, only putting the extra space between the children. The first and last child are flush with the edges of the frame.
7625+
* - `“SPACE_EVENLY”` will space the children evenly along the primary axis, dividing the extra space equally in the spaces before the first child, between each pair of items, and after the last child.
7626+
* - `“SPACE_AROUND”` will space the children evenly along the primary axis such that the spacing between each pair of items is equal, and the empty space before the first and after the last child is equal to half the space between items.
76257627
*
76267628
* The corresponding property for the counter axis direction is {@link AutoLayoutMixin.counterAxisAlignItems}.
76277629
*
@@ -7636,47 +7638,68 @@ interface AutoLayoutMixin {
76367638
* parentFrame.resize(300, 100)
76377639
*
76387640
* // Parent frame
7639-
* // +------------------------------------+
7640-
* // | +-----------++-----------+ |
7641-
* // | | || | |
7642-
* // | | Child 1 || Child 2 | |
7643-
* // | | || | |
7644-
* // | +-----------++-----------+ |
7645-
* // +------------------------------------+
7641+
* // +--------------------------------------+
7642+
* // |+-----------++-----------+ |
7643+
* // || || | |
7644+
* // || Child 1 || Child 2 | |
7645+
* // || || | |
7646+
* // |+-----------++-----------+ |
7647+
* // +--------------------------------------+
76467648
* parentFrame.primaryAxisAlignItems = 'MIN'
76477649
*
76487650
* // Parent frame
7649-
* // +------------------------------------+
7650-
* // | +-----------++-----------+|
7651-
* // | | || ||
7652-
* // | | Child 1 || Child 2 ||
7653-
* // | | || ||
7654-
* // | +-----------++-----------+|
7655-
* // +------------------------------------+
7651+
* // +--------------------------------------+
7652+
* // | +-----------++-----------+|
7653+
* // | | || ||
7654+
* // | | Child 1 || Child 2 ||
7655+
* // | | || ||
7656+
* // | +-----------++-----------+|
7657+
* // +--------------------------------------+
76567658
* parentFrame.primaryAxisAlignItems = 'MAX'
76577659
*
76587660
* // Parent frame
7659-
* // +------------------------------------+
7660-
* // | +-----------++-----------+ |
7661-
* // | | || | |
7662-
* // | | Child 1 || Child 2 | |
7663-
* // | | || | |
7664-
* // | +-----------++-----------+ |
7665-
* // +------------------------------------+
7661+
* // +--------------------------------------+
7662+
* // | +-----------++-----------+ |
7663+
* // | | || | |
7664+
* // | | Child 1 || Child 2 | |
7665+
* // | | || | |
7666+
* // | +-----------++-----------+ |
7667+
* // +--------------------------------------+
76667668
* parentFrame.primaryAxisAlignItems = 'CENTER'
76677669
*
76687670
* // Parent frame
7669-
* // +------------------------------------+
7670-
* // |+-----------+ +-----------+|
7671-
* // || | | ||
7672-
* // || Child 1 | | Child 2 ||
7673-
* // || | | ||
7674-
* // |+-----------+ +-----------+|
7675-
* // +------------------------------------+
7671+
* // +--------------------------------------+
7672+
* // |+-----------+ +-----------+|
7673+
* // || | | ||
7674+
* // || Child 1 | | Child 2 ||
7675+
* // || | | ||
7676+
* // |+-----------+ +-----------+|
7677+
* // +--------------------------------------+
76767678
* parentFrame.primaryAxisAlignItems = 'SPACE_BETWEEN'
7677-
* ```
7678-
*/
7679-
primaryAxisAlignItems: 'MIN' | 'MAX' | 'CENTER' | 'SPACE_BETWEEN'
7679+
*
7680+
* // Parent frame
7681+
* // +--------------------------------------+
7682+
* // | +-----------+ +-----------+ |
7683+
* // | | | | | |
7684+
* // |----| Child 1 |----| Child 2 |----|
7685+
* // | | | | | |
7686+
* // | +-----------+ +-----------+ |
7687+
* // +--------------------------------------+
7688+
* parentFrame.primaryAxisAlignItems = 'SPACE_EVENLY'
7689+
*
7690+
* // Parent frame
7691+
* // +--------------------------------------+
7692+
* // | +-----------+ +-----------+ |
7693+
* // | | | | | |
7694+
* // |---| Child 1 |------| Child 2 |---|
7695+
* // | | | | | |
7696+
* // | +-----------+ +-----------+ |
7697+
* // +--------------------------------------+
7698+
* parentFrame.primaryAxisAlignItems = 'SPACE_AROUND'
7699+
* ```
7700+
*/
7701+
primaryAxisAlignItems:
7702+
'MIN' | 'MAX' | 'CENTER' | 'SPACE_BETWEEN' | 'SPACE_EVENLY' | 'SPACE_AROUND'
76807703
/**
76817704
* Applicable only on "HORIZONTAL" or "VERTICAL" auto-layout frames. Determines how the auto-layout frame’s children should be aligned in the counter axis direction.
76827705
*

‎plugin-api.d.ts‎

Lines changed: 55 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7621,7 +7621,9 @@ interface AutoLayoutMixin {
76217621
*
76227622
* - In horizontal auto-layout frames, `“MIN”` and `“MAX”` correspond to left and right respectively.
76237623
* - In vertical auto-layout frames, `“MIN”` and `“MAX”` correspond to top and bottom respectively.
7624-
* - `“SPACE_BETWEEN”` will cause the children to space themselves evenly along the primary axis, only putting the extra space between the children.
7624+
* - `“SPACE_BETWEEN”` will space the children evenly along the primary axis, only putting the extra space between the children. The first and last child are flush with the edges of the frame.
7625+
* - `“SPACE_EVENLY”` will space the children evenly along the primary axis, dividing the extra space equally in the spaces before the first child, between each pair of items, and after the last child.
7626+
* - `“SPACE_AROUND”` will space the children evenly along the primary axis such that the spacing between each pair of items is equal, and the empty space before the first and after the last child is equal to half the space between items.
76257627
*
76267628
* The corresponding property for the counter axis direction is {@link AutoLayoutMixin.counterAxisAlignItems}.
76277629
*
@@ -7636,47 +7638,68 @@ interface AutoLayoutMixin {
76367638
* parentFrame.resize(300, 100)
76377639
*
76387640
* // Parent frame
7639-
* // +------------------------------------+
7640-
* // | +-----------++-----------+ |
7641-
* // | | || | |
7642-
* // | | Child 1 || Child 2 | |
7643-
* // | | || | |
7644-
* // | +-----------++-----------+ |
7645-
* // +------------------------------------+
7641+
* // +--------------------------------------+
7642+
* // |+-----------++-----------+ |
7643+
* // || || | |
7644+
* // || Child 1 || Child 2 | |
7645+
* // || || | |
7646+
* // |+-----------++-----------+ |
7647+
* // +--------------------------------------+
76467648
* parentFrame.primaryAxisAlignItems = 'MIN'
76477649
*
76487650
* // Parent frame
7649-
* // +------------------------------------+
7650-
* // | +-----------++-----------+|
7651-
* // | | || ||
7652-
* // | | Child 1 || Child 2 ||
7653-
* // | | || ||
7654-
* // | +-----------++-----------+|
7655-
* // +------------------------------------+
7651+
* // +--------------------------------------+
7652+
* // | +-----------++-----------+|
7653+
* // | | || ||
7654+
* // | | Child 1 || Child 2 ||
7655+
* // | | || ||
7656+
* // | +-----------++-----------+|
7657+
* // +--------------------------------------+
76567658
* parentFrame.primaryAxisAlignItems = 'MAX'
76577659
*
76587660
* // Parent frame
7659-
* // +------------------------------------+
7660-
* // | +-----------++-----------+ |
7661-
* // | | || | |
7662-
* // | | Child 1 || Child 2 | |
7663-
* // | | || | |
7664-
* // | +-----------++-----------+ |
7665-
* // +------------------------------------+
7661+
* // +--------------------------------------+
7662+
* // | +-----------++-----------+ |
7663+
* // | | || | |
7664+
* // | | Child 1 || Child 2 | |
7665+
* // | | || | |
7666+
* // | +-----------++-----------+ |
7667+
* // +--------------------------------------+
76667668
* parentFrame.primaryAxisAlignItems = 'CENTER'
76677669
*
76687670
* // Parent frame
7669-
* // +------------------------------------+
7670-
* // |+-----------+ +-----------+|
7671-
* // || | | ||
7672-
* // || Child 1 | | Child 2 ||
7673-
* // || | | ||
7674-
* // |+-----------+ +-----------+|
7675-
* // +------------------------------------+
7671+
* // +--------------------------------------+
7672+
* // |+-----------+ +-----------+|
7673+
* // || | | ||
7674+
* // || Child 1 | | Child 2 ||
7675+
* // || | | ||
7676+
* // |+-----------+ +-----------+|
7677+
* // +--------------------------------------+
76767678
* parentFrame.primaryAxisAlignItems = 'SPACE_BETWEEN'
7677-
* ```
7678-
*/
7679-
primaryAxisAlignItems: 'MIN' | 'MAX' | 'CENTER' | 'SPACE_BETWEEN'
7679+
*
7680+
* // Parent frame
7681+
* // +--------------------------------------+
7682+
* // | +-----------+ +-----------+ |
7683+
* // | | | | | |
7684+
* // |----| Child 1 |----| Child 2 |----|
7685+
* // | | | | | |
7686+
* // | +-----------+ +-----------+ |
7687+
* // +--------------------------------------+
7688+
* parentFrame.primaryAxisAlignItems = 'SPACE_EVENLY'
7689+
*
7690+
* // Parent frame
7691+
* // +--------------------------------------+
7692+
* // | +-----------+ +-----------+ |
7693+
* // | | | | | |
7694+
* // |---| Child 1 |------| Child 2 |---|
7695+
* // | | | | | |
7696+
* // | +-----------+ +-----------+ |
7697+
* // +--------------------------------------+
7698+
* parentFrame.primaryAxisAlignItems = 'SPACE_AROUND'
7699+
* ```
7700+
*/
7701+
primaryAxisAlignItems:
7702+
'MIN' | 'MAX' | 'CENTER' | 'SPACE_BETWEEN' | 'SPACE_EVENLY' | 'SPACE_AROUND'
76807703
/**
76817704
* Applicable only on "HORIZONTAL" or "VERTICAL" auto-layout frames. Determines how the auto-layout frame’s children should be aligned in the counter axis direction.
76827705
*

0 commit comments

Comments
 (0)