AI-native design editor. Open-source Figma alternative.
Only show component labels for COMPONENT and COMPONENT_SET, not instances
Danila Poyarkovc36f3c4667ae
diff --git a/packages/core/src/renderer.ts b/packages/core/src/renderer.tsindex 1ce714990..476760bb8 100644--- a/packages/core/src/renderer.ts+++ b/packages/core/src/renderer.ts@@ -420,7 +420,7 @@ export class SkiaRenderer {if (!pageNode) return nullconst font = this.componentLabelFont- const LABEL_TYPES = new Set(['COMPONENT', 'COMPONENT_SET', 'INSTANCE'])+ const LABEL_TYPES = new Set(['COMPONENT', 'COMPONENT_SET'])let result: SceneNode | null = nullconst check = (parentId: string, ox: number, oy: number) => {@@ -1281,7 +1281,7 @@ export class SkiaRenderer {if (!pageNode) returnconst font = this.componentLabelFont- const LABEL_TYPES = new Set(['COMPONENT', 'COMPONENT_SET', 'INSTANCE'])+ const LABEL_TYPES = new Set(['COMPONENT', 'COMPONENT_SET'])const nodes: { node: SceneNode; absX: number; absY: number; inside: boolean }[] = []const collect = (parentId: string, ox: number, oy: number) => {