Skip to content
/ svg-path Public

A toolset helps manipulate SVG 1.1 path data.

License

Notifications You must be signed in to change notification settings

ycw/svg-path

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

A toolset helps manipulate SVG 1.1 path data.

Usage

Parser

Example | Docs | Options

Error Handling

Example | Docs

Transformer

Example | Docs

Generator

Example | Docs | Options

CLI

Installation:

$ deno install -n svg-path https://deno.land/x/svg_path/cli/mod.ts

Example:

$ echo "M 60 50 z" | svg-path -w 100 -h 100 --terse

Output:

M.6.5z

Available flags:

Flag Default Description
--terse Eliminate unnecessary whitespaces and leading zeros.
--combine Eliminate unnecessary command letters.
--mulitline Separate commands by line feeds.
-t 4 Decimal places that a decimal number is truncated to.
-x 0 Transformation frame's x.
-y 0 Transformation frame's y.
-w 1 Transformation frame's signed width.
-h 1 Transformation frame's signed height.

About

A toolset helps manipulate SVG 1.1 path data.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published