From c36f3c4667ae2b065ff4d9d9621b460b240563a1 Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Tue, 3 Mar 2026 14:40:29 +0300 Subject: [PATCH] Only show component labels for COMPONENT and COMPONENT_SET, not instances --- packages/core/src/renderer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/renderer.ts b/packages/core/src/renderer.ts index 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 null const font = this.componentLabelFont - const LABEL_TYPES = new Set(['COMPONENT', 'COMPONENT_SET', 'INSTANCE']) + const LABEL_TYPES = new Set(['COMPONENT', 'COMPONENT_SET']) let result: SceneNode | null = null const check = (parentId: string, ox: number, oy: number) => { @@ -1281,7 +1281,7 @@ export class SkiaRenderer { if (!pageNode) return const 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) => {