mirror of
https://github.com/penpot/penpot-exporter-figma-plugin.git
synced 2024-12-22 21:53:27 -05:00
303cc833a0
* wip * wip * wip * wip * wip * fixes * fixes * fixes * fixes * fixes * fixes * fixes * fixes * fixes
13 lines
434 B
TypeScript
13 lines
434 B
TypeScript
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
|
|
};
|
|
};
|