Viewing version 1.0.0+1. Open the latest package page.
vector_graphics_compiler
1.0.0+1A compiler for `package:vector_graphics`.
Readme
vector_graphics_compiler
A compiler for package:vector_graphics.
This package parses SVG files into a format that the vector_graphics runtime can render.
Features
Supported SVG features:
- Groups, paths, and basic shapes are all supported.
- References, including out of order references.
- Linear and radial gradients, including radial gradients with focal points.
- Text
- Symbols
- Images
- Patterns
Unsupported SVG features:
- Filters
- Some text processing attributes
Optimizations:
- Opacity peepholing
- Transformation inlining (except for text and radial gradients)
- Group collapsing
- Mask and clip elimination
Changelog
CHANGELOG
1.0.0+1
- Fix issue in pattern decoding.
- Fix issue in matrix parsing for some combinations of matrices.
1.0.0
- Initial stable release.
- Parsing is now synchronous, and is easier to work with in tests.
- Correctly handle images with
ids and defined indefsblocks. - Compile time color remapping support.
0.0.3
- Better concurrency support
- Pattern support.
- Bug fixes around image handling.
- Bug fix for when optimizers are used on non-default fill types.
- Support for SVG theme related properties (currentColor, font-size, x-height).
0.0.2
- Add optimizations for masks, clipping, and overdraw.
0.0.1
- Create repository
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'vector_graphics_compiler:1.0.0+1'pubspec.yaml
name: vector_graphics_compiler
description: A compiler for `package:vector_graphics`.
version: 1.0.0+1
homepage: https://github.com/dnfield/vector_graphics
executables:
vector_graphics_compiler:
environment:
sdk: '>=2.19.0-0 <3.0.0'
dependencies:
args: ^2.3.0
meta: ^1.7.0
path_parsing: ^1.0.1
xml: ^6.0.1
vector_graphics_codec: 1.0.0+1
dev_dependencies:
flutter_lints: ^1.0.0
test: ^1.20.1
vector_math: ^2.1.2
flutter:
sdk: flutter
flutter_test:
sdk: flutter
vector_graphics: 1.0.0+1
# Comment out before publishing
dependency_overrides:
vector_graphics:
path: ../vector_graphics
vector_graphics_codec:
path: ../vector_graphics_codec
platforms:
android:
ios:
linux:
macos:
web:
windows:
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.0.0 | Cached · Upstream SHA-256 matched | Download | 70349fb1…4b54cf |
| 0.0.1 | Cached · Upstream SHA-256 matched | Download | 522c2bed…5cefb4 |
| 0.0.2 | On demand | Download | 24596228…568688 |
| 0.0.3 | Cached · Upstream SHA-256 matched | Download | a7ce5a10…02d467 |
| 0.0.4 | Cached · Upstream SHA-256 matched | Download | fc9528ce…971163 |
| 0.0.5 | Cached · Upstream SHA-256 matched | Download | 74582743…e75740 |
| 1.0.0 | Cached · Upstream SHA-256 matched | Download | 7863ea5f…72362f |
| 1.0.0+1 | Cached · Upstream SHA-256 matched | Download | 009c3321…8b64a2 |
| 1.0.1 | Cached · Upstream SHA-256 matched | Download | 5d9010c4…10d24e |
| 1.1.0 | Cached · Upstream SHA-256 matched | Download | 3190cc26…daff86 |
| 1.1.1 | Cached · Upstream SHA-256 matched | Download | 9e8066d2…a10b3e |
| 1.1.2 | Cached · Upstream SHA-256 matched | Download | 464d3e46…38db06 |
| 1.1.3 | Cached · Upstream SHA-256 matched | Download | 524c9889…c2bec3 |
| 1.1.4 | Cached · Upstream SHA-256 matched | Download | 0bf61ad5…9d6163 |
| 1.1.5 | Cached · Upstream SHA-256 matched | Download | 15edc42f…97c4ca |
| 1.1.5+1 | Cached · Upstream SHA-256 matched | Download | 6ca1298b…1c61bb |
| 1.1.6 | Cached · Upstream SHA-256 matched | Download | 7430f5d8…b28e5b |
| 1.1.7 | Cached · Upstream SHA-256 matched | Download | 80a13c61…03ba2e |
| 1.1.9 | Cached · Upstream SHA-256 matched | Download | d26c0e2f…5dc47f |
| 1.1.9+1 | Cached · Upstream SHA-256 matched | Download | d2433372…790c26 |
| 1.1.9+2 | Cached · Upstream SHA-256 matched | Download | 03012b0a…3bc0ad |
| 1.1.10 | Cached · Upstream SHA-256 matched | Download | 23c27164…999005 |
| 1.1.10+1 | Cached · Upstream SHA-256 matched | Download | 18489bdd…d76c5a |
| 1.1.11 | Cached · Upstream SHA-256 matched | Download | afff5629…0ba0fe |
| 1.1.11+1 | Cached · Upstream SHA-256 matched | Download | 12faff3f…c8cd81 |
| 1.1.12 | Cached · Upstream SHA-256 matched | Download | f3b9b6e4…d7d173 |
| 1.1.13 | Cached · Upstream SHA-256 matched | Download | 101e1a04…3b92c6 |
| 1.1.14 | Cached · Upstream SHA-256 matched | Download | 26d52073…7d3a2e |
| 1.1.15 | Cached · Upstream SHA-256 matched | Download | ab9ff38f…b49ab1 |
| 1.1.16 | Cached · Upstream SHA-256 matched | Download | 1b4b9e70…407aad |
| 1.1.17 | Cached · Upstream SHA-256 matched | Download | 557a315b…5d3331 |
| 1.1.18 | Cached · Upstream SHA-256 matched | Download | ca81fdfa…6725b0 |
| 1.1.19 | Cached · Upstream SHA-256 matched | Download | d354a7ec…8ff0dc |
| 1.1.20 | Cached · Upstream SHA-256 matched | Download | 201e876b…f71c9b |
| 1.2.0 | Cached · Upstream SHA-256 matched | Download | 5a88dd14…f73a74 |
| 1.2.1 | Cached · Upstream SHA-256 matched | Download | 06f0c50f…2cefa0 |
| 1.2.2 | Cached · Upstream SHA-256 matched | Download | 98e7e94d…fef598 |
| 1.2.3 | Cached · Upstream SHA-256 matched | Download | b9b3f391…ea129e |
| 1.2.4 | On demand | Download | 09854c76…f72230 |
| 1.2.5 | Cached · Upstream SHA-256 matched | Download | 7ee12e6d…73d172 |
| 1.2.6 | Cached · Upstream SHA-256 matched | Download | 142a9146…4923a3 |
| 1.3.0 | Cached · Upstream SHA-256 matched | Download | 4dca4feb…ca5682 |
| 1.3.1 | Cached · Upstream SHA-256 matched | Download | 670a5909…c68f2b |
| 1.3.2 | Cached · Upstream SHA-256 matched | Download | a8e2c197…faed65 |
| 1.3.3 | Cached · Upstream SHA-256 matched | Download | 40c92d6d…526b2f |
| 1.3.4 | Cached · Upstream SHA-256 matched | Download | 4c9d2e71…89b50d |
Dependencies
args "^2.3.0"
meta "^1.7.0"
path_parsing "^1.0.1"
vector_graphics_codec "1.0.0+1"
xml "^6.0.1"