0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2024-12-22 21:53:27 -05:00
penpot-exporter-figma-plugin/plugin-src/transformers/partials/transformProportion.ts

8 lines
229 B
TypeScript
Raw Normal View History

2024-05-06 01:06:14 -05:00
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
export const transformProportion = (node: LayoutMixin): Pick<ShapeAttributes, 'proportionLock'> => {
return {
proportionLock: node.constrainProportions
};
};