Only show component labels for COMPONENT and COMPONENT_SET, not instances

This commit is contained in:
Danila Poyarkov 2026-03-03 14:40:29 +03:00
parent 0c0be3f28b
commit c36f3c4667

View file

@ -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) => {