0
Fork 0
mirror of https://github.com/penpot/penpot-exporter-figma-plugin.git synced 2025-01-03 05:10:13 -05:00
penpot-exporter-figma-plugin/plugin-src/transformers/partials/transformOverrides.ts

14 lines
434 B
TypeScript
Raw Permalink Normal View History

import { overrides } from '@plugin/libraries';
import { translateTouched } from '@plugin/translators';
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
export const transformOverrides = (
node: SceneNode
): Pick<ShapeAttributes, 'touched' | 'componentPropertyReferences'> => {
return {
touched: translateTouched(overrides.get(node.id)),
componentPropertyReferences: node.componentPropertyReferences
};
};