Skip to content

Releases: MacCASOutreach/graphicsvg

GraphicSVG 8.1.0

17 Feb 01:18
845e045
Compare
Choose a tag to compare

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

08 Apr 23:06
Compare
Choose a tag to compare

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

07 Apr 18:14
Compare
Choose a tag to compare

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

19 Mar 22:20
Compare
Choose a tag to compare

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

28 Jan 18:48
Compare
Choose a tag to compare
GraphicSVG 6.1.0 Pre-release
Pre-release

Embed beautiful SVG graphics inside your existing elm/html projects!

Use GraphicSVG Widgets 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

08 Dec 00:11
Compare
Choose a tag to compare

Small fix to the order of clipping so it can be used as part of a pipe:

shape 
    |> clip region

GraphicSVG 6.0.0

07 Dec 22:34
Compare
Choose a tag to compare

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, moves were essentially done after scales and rotates 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 and skewY 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

10 Nov 18:36
Compare
Choose a tag to compare

Adding text alignment.

GraphicSVG 5.0.0

08 Nov 01:45
Compare
Choose a tag to compare
GraphicSVG 5.0.0 Pre-release
Pre-release

Exposing the Collage constructor.

GraphicSVG 4.1.0 Pre-Release

06 Nov 19:14
Compare
Choose a tag to compare
Pre-release

This released exposes GraphicSVG.EllieApp properly.