Skip to content
This repository has been archived by the owner on Mar 18, 2018. It is now read-only.
/ dart-svg Public archive
forked from matanlurey/svg

An SVG parser implemented in pure Dart.

License

Notifications You must be signed in to change notification settings

bitterfudge/dart-svg

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SVG

Build Status

A pure-dart implementation of an SVG parser. The end goal of this package is to provide a semi-full featured implementation that is able to run in both the browser and on the server (or command line tooling).

Example

import 'package:svg/svg.path';

void main() {
  // Parses an "up-arrow" shape segment.
  print(parseSvgPath('M0,15,L15,15L7.5,0z'));

  // Outputs:
  // [
  //   SvgPathMoveSegment {x: 0, y: 15, isRelative: false},
  //   SvgPathLineSegment {x: 15, y: 15, isRelative: false}, 
  //   SvgPathLineSegment {x: 7.5, y: 0, isRelative: false}, 
  //   SvgPathClose {}
  // ]
}

Currently supported

  • Parsing a single SVG spec compatible path.

About

An SVG parser implemented in pure Dart.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dart 100.0%