2024-06-28 05:17:56 -05:00
|
|
|
import { overrides } from '@plugin/libraries';
|
|
|
|
import { translateTouched } from '@plugin/translators';
|
2024-06-17 02:58:23 -05:00
|
|
|
|
2024-06-28 05:17:56 -05:00
|
|
|
import { ShapeAttributes } from '@ui/lib/types/shapes/shape';
|
2024-06-17 02:58:23 -05:00
|
|
|
|
2024-06-28 05:17:56 -05:00
|
|
|
export const transformOverrides = (
|
|
|
|
node: SceneNode
|
|
|
|
): Pick<ShapeAttributes, 'touched' | 'componentPropertyReferences'> => {
|
2024-06-17 02:58:23 -05:00
|
|
|
return {
|
2024-06-28 05:17:56 -05:00
|
|
|
touched: translateTouched(overrides.get(node.id)),
|
|
|
|
componentPropertyReferences: node.componentPropertyReferences
|
2024-06-17 02:58:23 -05:00
|
|
|
};
|
|
|
|
};
|