mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 13:43:03 -05:00
fixes
This commit is contained in:
parent
e555463a8f
commit
73f6ea5fb7
2 changed files with 14 additions and 14 deletions
|
@ -28,10 +28,10 @@ export const transformAutoLayout = (node: BaseFrameMixin): LayoutAttributes => {
|
|||
|
||||
export const transformLayoutSizing = (
|
||||
node: LayoutMixin
|
||||
): Pick<LayoutChildAttributes, 'layoutItemHSizing' | 'layoutItemVSizing'> => {
|
||||
): Pick<LayoutChildAttributes, 'layoutItemH-Sizing' | 'layoutItemV-Sizing'> => {
|
||||
return {
|
||||
layoutItemHSizing: translateLayoutSizing(node.layoutSizingHorizontal),
|
||||
layoutItemVSizing: translateLayoutSizing(node.layoutSizingVertical)
|
||||
'layoutItemH-Sizing': translateLayoutSizing(node.layoutSizingHorizontal),
|
||||
'layoutItemV-Sizing': translateLayoutSizing(node.layoutSizingVertical)
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -19,24 +19,24 @@ export type LayoutSizing =
|
|||
| typeof ITEM_SIZING_AUTO;
|
||||
|
||||
export type LayoutChildAttributes = {
|
||||
layoutItemMarginType?:
|
||||
'layoutItemMarginType'?:
|
||||
| 'simple'
|
||||
| 'multiple'
|
||||
| typeof ITEM_MARGIN_SIMPLE_TYPE
|
||||
| typeof ITEM_MARGIN_MULTIPLE_TYPE;
|
||||
layoutItemMargin?: {
|
||||
'layoutItemMargin'?: {
|
||||
m1?: number;
|
||||
m2?: number;
|
||||
m3?: number;
|
||||
m4?: number;
|
||||
};
|
||||
layoutItemMaxH?: number;
|
||||
layoutItemMinH?: number;
|
||||
layoutItemMaxW?: number;
|
||||
layoutItemMinW?: number;
|
||||
layoutItemHSizing?: LayoutSizing;
|
||||
layoutItemVSizing?: LayoutSizing;
|
||||
layoutItemAlignSelf?:
|
||||
'layoutItemMaxH'?: number;
|
||||
'layoutItemMinH'?: number;
|
||||
'layoutItemMaxW'?: number;
|
||||
'layoutItemMinW'?: number;
|
||||
'layoutItemH-Sizing'?: LayoutSizing;
|
||||
'layoutItemV-Sizing'?: LayoutSizing;
|
||||
'layoutItemAlignSelf'?:
|
||||
| 'start'
|
||||
| 'end'
|
||||
| 'center'
|
||||
|
@ -45,8 +45,8 @@ export type LayoutChildAttributes = {
|
|||
| typeof ITEM_ALIGN_SELF_END
|
||||
| typeof ITEM_ALIGN_SELF_CENTER
|
||||
| typeof ITEM_ALIGN_SELF_STRETCH;
|
||||
layoutItemAbsolute?: boolean;
|
||||
layoutItemZIndex?: number;
|
||||
'layoutItemAbsolute'?: boolean;
|
||||
'layoutItemZIndex'?: number;
|
||||
};
|
||||
|
||||
export type JustifyAlignContent =
|
||||
|
|
Loading…
Reference in a new issue