5.0.3 • Published 21 days ago

@hpcreery/tracespace-renderer v5.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago

@hpcreery/tracespace-renderer

npm

Render @hpcreery/tracespace-plotter image trees as SVGs. Part of the tracespace collection of PCB visualization tools.

This module is one part of the tracespace render pipeline, and you may not need to use it directly. See @tracespace/core to integrate the full render pipeline into your project.

npm install @hpcreery/tracespace-renderer@next

usage

import fs from 'node:fs/promises'
import {toHtml} from 'hast-util-to-html'

import {parse} from '@hpcreery/tracespace-parser'
import {plot} from '@hpcreery/tracespace-plotter'
import {render} from '@hpcreery/tracespace-renderer'

const gerberContents = await fs.readFile('gerber.gbr', 'utf-8')
const syntaxTree = parse(gerberContents)
const imageTree = plot(syntaxTree)
const image = render(imageTree)

await fs.writeFile('render.svg', toHtml(image), 'utf-8)
5.0.3

21 days ago

5.0.1

23 days ago

5.0.0-alpha.26

2 months ago

5.0.0-alpha.24

2 months ago

5.0.0-alpha.25

2 months ago

5.0.0-alpha.22

2 months ago

5.0.0-alpha.23

2 months ago

5.0.0-alpha.21

2 months ago

5.0.0-alpha.19

11 months ago

5.0.0-alpha.17

12 months ago

5.0.0-alpha.18

12 months ago

5.0.0-alpha.15

1 year ago

5.0.0-alpha.16

1 year ago

5.0.0-alpha.13

1 year ago

5.0.0-alpha.14

1 year ago

5.0.0-alpha.20

11 months ago

5.0.0-alpha.7

1 year ago

5.0.0-alpha.6

1 year ago

5.0.0-alpha.5

1 year ago

5.0.0-alpha.9

1 year ago

5.0.0-alpha.8

1 year ago

5.0.0-alpha.11

1 year ago

5.0.0-alpha.12

1 year ago

5.0.0-alpha.10

1 year ago

5.0.0-alpha.4

1 year ago

5.0.0-alpha.3

1 year ago

5.0.0-alpha.2

1 year ago

5.0.0-alpha.1

1 year ago

5.0.0-alpha.0

1 year ago