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

svg.js

Package Overview
Dependencies
Maintainers
1
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

134

2.5.2

Diff

Changelog

Source

[2.5.2] - 2017-04-11

Changed

  • SVG.js is now running in strict mode

Fixed

  • clear() does not remove the parser in svg documents anymore
  • len not declared in FX module, making it a global variable (9737e8a)
  • bbox not declared in SVG.Box.transform in the Box module (131df0f)
  • namespace not declared in the Event module (e89c97e)
fuzzyma
published 2.5.1 •

Changelog

Source

[2.5.1] - 2017-03-27

Changed

  • make svgjs ready to be used on the server

Fixed

  • fixed SVG.PathArray.parse that did not correctly parsed flat arrays
  • prevented unnecessary parsing of point or path strings
fuzzyma
published 2.5.0 •

Changelog

Source

[2.5.0] - 2017-03-10

Added

  • added a plot and array method to SVG.TextPath (#582)
  • added clone() method to SVG.Array/PointArray/PathArray (#590)
  • added font() method to SVG.Tspan
  • added SVG.Box()
  • added transform() method to boxes
  • added event() to SVG.Element to retrieve the event that was fired last on the element (#550)

Changed

  • changed CHANGELOG to follow the conventions described in “Keep a CHANGELOG” (#578)
  • make the method plot a getter when no parameter is passed for SVG.Polyline,SVG.Polygon, SVG.Line, SVG.Path (related #547)
  • allow SVG.PointArray to be passed flat array
  • change the regexp SVG.PointArray use to parse string to allow more flexibility in the way spaces and commas can be used
  • allow plot to be called with 4 parameters when animating an SVG.Line
  • relative value for SVG.Number are now calculated in its morph method (related #547)
  • clean up the implementation of the initAnimation method of the FX module (#547, #552, #584)
  • deprecated .tbox(). .tbox() now map to .rbox(). If you are using .tbox(), you can substitute it with .rbox() (#594, #602)
  • all boxes now accept 4 values or an object on creation
  • el.rbox() now always returns the right boxes in screen coordinates and has an additional paramater to transform the box into other coordinate systems
  • font() method can now be used like attr() method (#620)
  • events are now cancelable by default (#550)

Fixed

  • fixed a bug in the plain morphing part of SVG.MorphObj that is in the FX module
  • fixed bug which produces an error when removing an event from a node which was formerly removed with a global off() (#518)
  • fixed a bug in size() for poly elements when their height/width is zero (#505)
  • viewbox now also accepts strings and arrays as constructor arguments
  • SVG.Array now accepts a comma seperated string and returns array of numbers instead of strings
  • SVG.Matrix now accepts an array as input
  • SVG.Element.matrix() now accepts also 6 values
  • dx()/dy() now accepts percentage values, too but only if the value on the element is already percentage
  • flip() now flips on both axis when no parameter is passed
  • fixed bug with documentElement.contains() in IE
  • fixed offset produced by svg parser (#553)
  • fixed a bug with clone which didnt copy over dom data (#621)
dotnetcarpenter
published 2.4.0 •

Changelog

Source

[2.4.0] - 2017-01-14

Added

  • added support for basic path animations (#561)
dotnetcarpenter
published 2.3.7 •

Changelog

Source

[2.3.7] - 2017-01-14

Added

  • added code coverage https://coveralls.io/github/svgdotjs/svg.js (3e614d4)
  • added npm run test:quick which aim at being fast rather than correct - great for git hooks (981ce24)

Changed

  • moved project to svgdotjs
  • made matrixify work with transformation chain separated by commas (#543)
  • updated dev dependencies; request and gulp-chmod - npm run build now requires nodejs 4.x+

Fixed

  • fixed SVG.Matrix.skew() (#545)
  • fixed broken animations, if using polyfills for es6/7 proposals (#504)
  • fixed and improved SVG.FX.dequeue() (#546)
  • fixed an error in SVG.FX.step, if custom properties is added to Array.prototype (#549)
dotnetcarpenter
published 2.3.6 •

Changelog

Source

[2.3.6] - 2016-10-21

Changed

  • make SVG.FX.loop modify the last situation instead of the current one (#532)

Fixed

  • fixed leading and trailing space in SVG.PointArray would return NaN for some points (695f26a) (#529)
  • fixed test of SVG.FX.afterAll (#534)
  • fixed SVG.FX.speed() (#536)
fuzzyma
published 2.3.5 •

Changelog

Source

[2.3.5] - 2016-10-13

Added

  • added automated unit tests via Travis (#527)
  • added npm run build to build a new version of SVG.js without requiring gulp to be globally installed

Changed

  • calling fill(), stroke() without an argument is now a nop
  • Polygon now accepts comma less points to achieve parity with Adobe Illustrator (#529)
  • updated dependencies
fuzzyma
published 2.3.4 •

Changelog

Source

[2.3.4] - 2016-08-04

Changed

  • reworked parent module for speed improvemenents
  • reworked filterSVGElements utility to use a for loop instead of the native filter function
fuzzyma
published 2.3.2 •

Changelog

Source

[2.3.2] - 2016-06-21

Added

  • added specs for SVG.ViewBox
  • added parent parameter for clone()
  • added spec for mentioned issue

Fixed

  • fixed string parsing in viewbox (#483)
  • fixed bbox when element is not in the dom (#480)
  • fixed line constructor which doesn't work with Array as input (#487)
  • fixed problem in IE with document.contains (#490) related to (#480)
  • fixed undo when undoing transformations (#494)
fuzzyma
published 2.3.1 •

Changelog

Source

[2.3.1] - 2016-05-05

Added

  • added typings for svg.js (#470)

Fixed

  • fixed SVG.morph() (#473)
  • fixed parser error (#471)
  • fixed bug in SVG.Color with new fx
  • fixed radius() for circles when animating and other related code (#477)
  • fixed bug where stop(true) throws an error when element is not animated (#475)
  • fixed bug in add() when altering svgs with whitespaces
  • fixed bug in SVG.Doc().create where size was set to 100% even if size was already specified
  • fixed bug in parse() from SVG.PathArray which does not correctly handled S and T (#485)
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