Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svg.js

Package Overview
Dependencies
Maintainers
2
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svg.js - npm Package Versions

123

2.0.3

Diff

fuzzyma
published 2.0.2 •

Changelog

Source

[2.0.2] - 2015-06-22

Fixed

  • Fixed zoom consideration in circle and ellipse
fuzzyma
published 2.0.1 •

Changelog

Source

[2.0.1] - 2015-06-21

Added

  • added possibility to remove all events from a certain namespace

Fixed

  • fixed bug with doc() which always should return root svg
  • fixed bug in SVG.FX when animating with plot()

Removed

  • removed target reference from use which caused bugs in dmove() and use() with external file
  • removed scale consideration in move() duo to incompatibilities with other move-functions e.g. in SVG.PointArray
fuzzyma
published 2.0.0 •

Changelog

Source

[2.0.0] - 2015-06-11

Added

  • implemented an SVG adoption system to be able to manipulate existing SVG's not created with svg.js
  • added polyfill for IE9 and IE10 custom events [thanks @Fuzzyma]
  • added DOM query selector with the select() method globally or on parent elements
  • added the intentionally neglected SVG.Circle element
  • added rx() and ry() to SVG.Rect, SVG.Circle, SVG.Ellispe and SVG.FX
  • added support to clone manually built text elements
  • added svg.wiml.js plugin to plugins list
  • added ctm() method to for matrix-centric transformations
  • added morph() method to SVG.Matrix
  • added support for new matrix system to SVG.FX
  • added native() method to elements and matrix to get to the native api
  • added untransform() method to remove all transformations
  • added raw svg import functionality with the svg() method
  • added coding style description to README
  • added reverse functionality for animations
  • documented the situation object in SVG.FX
  • added distinction between relative and absolute matrix transformations
  • implemented the element() method using the SVG.Bare class to create elements that are not described by SVG.js
  • added w and h properties as shorthand for width and height to SVG.BBox
  • added SVG.TBox to get a bounding box that is affected by transformation values
  • added event-based or complete detaching of event listeners in off() method

Changed

  • changed parent reference on elements to parent() method
  • using CustomEvent instead of Event to be able to fire events with a detail object [thanks @Fuzzyma]
  • renamed SVG.TSpan class to SVG.Tspan to play nice with the adoption system
  • completely reworked clone() method to use the adoption system
  • completely reworked transformations to be chainable and more true to their nature
  • changed lines reference to lines() on SVG.Text
  • changed track reference to track() on SVG.Text
  • changed textPath reference to textPath() on SVG.Text
  • changed array reference to array() method on SVG.Polyline, SVG.Polygon and SVG.Path
  • reworked sup-pixel offset implementation to be more compact
  • switched from Ruby's rake to Node's gulp for building [thanks to Alex Ewerlöf]
  • changed to() method to at() method in SVG.FX
  • renamed SVG.SetFX to SVG.FX.Set
  • reworked SVG.Number to return new instances with calculations rather than itself
  • reworked animatable matrix rotations
  • removed SVG.Symbol but kept the symbol() method using the new element() method

Fixed

  • fixed bug in radius() method when y value equals 0
  • fixed a bug where events are not detached properly
fuzzyma
published 1.1.0 •

wout
published 1.0.0 •

Changelog

Source

[1.0.0-rc.9] - 2014-06-17

Added

  • added SVG.Marker
  • added SVG.Symbol
  • added first() and last() methods to SVG.Set
  • added length() method to SVG.Text and SVG.TSpan to calculate total text length
  • added reference() method to get referenced elements from a given attribute value

Changed

  • SVG.get() will now also fetch elements with a xlink:href="#elementId" or url(#elementId) value given

Fixed

  • fixed infinite loop in viewbox when element has a percentage width / height [thanks @shabegger]
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc