vecta_parser
SVG parser for the Vecta animation framework. Converts SVG files into Vecta's intermediate representation (IR) for animation.
Features
- Parses SVG files into a structured IR (nodes, groups, paths, text)
- Preserves element names and IDs for animation binding
- Supports gradients, transforms, styles, and clip paths
- Pure Dart -- no Flutter dependency
Getting started
dependencies:
vecta_parser: ^1.0.0
Usage
import 'package:vecta_parser/vecta_parser.dart';
final scene = VectaParser.parse(svgString);
// Inspect named nodes
for (final node in scene.nodes) {
print('${node.name} (${node.type})');
}
Additional information
Part of the Vecta monorepo. See the main repository for full documentation.
Libraries
- vecta_parser
- SVG parser and Intermediate Representation for the Vecta animation runtime.