Releases: MacCASOutreach/graphicsvg
GraphicSVG 8.1.0
This is a minor release, adding the new GraphicSVG.Secrets
module which exposes the internal data structures of GraphicSVG for use by advanced users. This can be used to, for example, traverse a GraphicSVG tree to change its structure or properties, or to calculate analytics about the graphics being generated. A future release will add some basic statistical functions to the library. We hope you enjoy and welcome any feedback you may have!
GraphicSVG 7.1.0
This release adds viewCustom
to the Widgets, allowing the programmer control over how the Widgets are sized within their existing Html content.
GraphicSVG 7.0.1
Minor bug fixes and improvements:
- remove unused dependency on
elm/http
- remove explicit width and height on Widget sizes, to allow for full flexibility when GraphicSVG is used as part of
elm/html
apps
GraphicSVG 7.0.0
This release brings new improvements to the Widget
API to make it, well, much nicer. This will allow you to embed icons and interactive graphical apps into your existing Html projects, with much more sane types and increase type safety in your icons.
We can't wait to see what you do with this!
As always, report any bugs you find to our issue tracker.
GraphicSVG 6.1.0
Embed beautiful SVG graphics inside your existing elm/html
projects!
Use GraphicSVG Widget
s to embed interactive graphics and animations into any existing elm/html
project, each with their own unique co-ordinate system. Note: this feature is new and is subject to change.
This release also fixes some bugs with transparent shapes and taps. Thanks to @GordonBGood for those fixes.
GraphicSVG 6.0.1
Small fix to the order of clipping so it can be used as part of a pipe:
shape
|> clip region
GraphicSVG 6.0.0
The transformation update!
GraphicSVG
6.0.0 fundamentally changes the way that transformations are handled compared to older versions (as well as Elm's old Graphics
package on which GraphicSVG
is based). Transformations are now handled in the order that they appear, better matching your mathematical intuition as well as providing better performance and more power to transform shapes in new ways.
What does this mean for you? Some of your old code may break if you have places where you've chained together many transformations. For simple cases where you use one transformation, you should be unaffected. To fix your code, it should be sufficient to simply rearrange your transformations. In particular, move
s were essentially done after scale
s and rotate
s in the old system, so if you change your code such that moves happen last, that should help you make your code compatible with this release.
It also means you can more easily do fancy things like move a rectangle's end to the origin, then rotate it to make a pendulum! Here's a simple example that doesn't follow real physics:
pendulum t =
rect 2 30
|> filled brown
|> move(0,-15)
|> rotate (degrees <| 15 * sin t)
Other improvements / additions:
- New transformations! Use functions like
skewX
andskewY
to skew your shapes to your heart's content. - Custom transformations -- for advanced users, create your own transformations matrices and use them to transform your shapes
- Outlining of groups! You can now use
addOutline
on groups to get outlines. There are a few caveats and limitations outlined in the documentation. - Better handling of notifications with outlined shapes
- Miscellaneous other improvements
We thank all that helped to create and test this release, especially @GordonBGood for providing many of the features listed above.
Have fun! And as always, please post a GitHub issue if you find a bug.
Happy holidays!
GraphicSVG 5.1.0
Adding text alignment.
GraphicSVG 5.0.0
Exposing the Collage constructor.
GraphicSVG 4.1.0 Pre-Release
This released exposes GraphicSVG.EllieApp
properly.