tracespace icon indicating copy to clipboard operation
tracespace copied to clipboard

Plot return empty children when parsing my gerber file

Open rakirizu opened this issue 1 year ago • 0 comments

Hi, I'm trying V5.

import { identifyLayers } from '@tracespace/identify-layers'
import { parse } from '@tracespace/parser'
import { plot } from '@tracespace/plotter'
import { render } from '@tracespace/renderer'

....

const parseResult = parse(showLayersContent)
const plotResult = plot(parseResult)
showLayers[showLayersKey] = render(plotResult)

When I tried to parse all the gerbers files, I found that the children of silk was empty. image

I checked further:

const parseResult = parse(showLayersContent)
console.log('parse', parseResult)
const plotResult = plot(parseResult)
console.log('plot', plotResult)
showLayers[showLayersKey] = render(plotResult)
console.log('render', showLayers[showLayersKey])

Result: image

Here's my silk file in gerber, The file name in it is Gerber_TopSilkscreenLayer.GTO: gerber.zip

rakirizu avatar Mar 15 '24 05:03 rakirizu