Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot return empty children when parsing my gerber file #424

Open
bwenquan opened this issue Mar 15, 2024 · 0 comments
Open

Plot return empty children when parsing my gerber file #424

bwenquan opened this issue Mar 15, 2024 · 0 comments

Comments

@bwenquan
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant