convsvg

package
v2.0.0-...-db0112a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Convert

func Convert(dst io.Writer, r io.Reader, styleName string, offsetX, offsetY, k float64) error

func NormMatrix

func NormMatrix(e Encoder) matrix

func Register

func Register(name string, s Style)

Register make a g-code available by the provided name. If Register is called twice with the same name or if style is nil, it panics.

Types

type Encoder

type Encoder interface {
	StartPath() error
	MoveTo(x, y float64) error
	LineTo(x, y float64) error
	ClosePath() error
}

type Style

type Style interface {
	NewEncoder(dst io.Writer) Encoder
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL