diff --git a/plugin-src/translators/index.ts b/plugin-src/translators/index.ts index 15d3f9c5..1e730410 100644 --- a/plugin-src/translators/index.ts +++ b/plugin-src/translators/index.ts @@ -9,7 +9,6 @@ export * from './translateLineHeight'; export * from './translateStrokes'; export * from './translateStyledTextSegments'; export * from './translateTextDecoration'; -export * from './translateTextPositionData'; export * from './translateTextTransform'; export * from './translateVectorPaths'; export * from './translateVerticalAlign'; diff --git a/plugin-src/translators/translateTextPositionData.ts b/plugin-src/translators/translateTextPositionData.ts deleted file mode 100644 index ec42e757..00000000 --- a/plugin-src/translators/translateTextPositionData.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { transformDimensionAndPosition } from '@plugin/transformers/partials'; - -import { PositionData } from '@ui/lib/types/text/textAttributes'; -import { TextNode as PenpotTextNode } from '@ui/lib/types/text/textContent'; - -export const translateTextPositionData = ( - node: TextNode, - segments: PenpotTextNode[], - baseX: number, - baseY: number -): PositionData[] => { - return segments.map((segment): PositionData => { - return { - ...transformDimensionAndPosition(node, baseX, baseY), - ...segment - }; - }); -};