Skip to content

Releases: paperjs/paper.js

v0.12.3

22 Jun 12:46
Compare
Choose a tag to compare

Added

  • Add documentation for Item#internalBounds.

Fixed

  • Fix regression in Color change propagation (#1672, #1674).
  • SVG Export: Fix viewport size of exported Symbol (#1668).
  • Handle non-invertible matrices in Item#contains() (#1651).
  • Improve documentation for Item#clipMask (#1673).
  • Improve TypeScript definitions (#1659, #1663, #1664, #1667).

v0.12.2

13 Jun 21:45
Compare
Choose a tag to compare

Fixed

  • Fix drawing with compound-paths as clip-items (#1361).
  • Fix drawing of path selection with small handle size (#1327).
  • Do not ignore Group#clipItem.matrix in Group#internalBounds (#1427).
  • Correctly calculate bounds with nested empty items (#1467).
  • Fix color change propagation on groups (#1152).
  • Fix Path#arcTo() where from and to points are equal (#1613).
  • Improve new Raster(size[, position]) constructor (#1621).
  • SVG Export: Fix error when Item#matrix is not invertible (#1580).
  • SVG Export: Include missing viewBox attribute (#1576).
  • SVG Import: Use correct default values for gradients (#1632, #1660).
  • SVG Import: Add basic <switch/> support (#1597).
  • JSON Import: Prevent Item#insert() method from being overridden (#1392).
  • PaperScript: Fix issues with increment/decrement operators (#1450, #1611).

v0.12.1

05 Jun 22:18
Compare
Choose a tag to compare

Added

  • Add TypesScript definition, automatically generated from JSDoc comments
    (#1612).
  • Support new Raster(size) constructor.
  • Expose Raster#context accessor.
  • Implement Raster#clear() method to clear associated canvas context.
  • Node.js: Add support for Node.js v11 and v12.

Fixed

  • Fix parsing of CSS colors with spaces in parentheses (#1629).
  • Improve Color.random() documentation.
  • Fix Tween#then() documentation.

Removed

  • Node.js: Remove support for Node.js v6.

v0.12.0

03 Dec 13:43
Compare
Choose a tag to compare

News

Another release, another new member on the team: Please welcome @arnoson, who has
worked hard on the all new animation support, exposed through the Tween class
and its various methods on the Item class, see below for details:

Added

  • Add new Tween class and related methods on Item, to animate and
    interpolate their various properties, including colors, sub-properties, etc.:
    Item#tween(from, to, options), Item#tween(to, options),
    Item#tween(options), Item#tweenFrom(from, options),
    Item#tweenTo(to, options)

Fixed

  • Only draw Raster if image is not empty (#1320).
  • Emit mousedrag events on correct items when covered by other items (#1465).
  • Fix drawing issues of bounds and position with Group#selectedColor (#1571).
  • Fix Item.once() to actually only emit event once.
  • Various documentation fixes and improvements (#1399).

v0.11.8

17 Oct 15:08
Compare
Choose a tag to compare

News

This is the first release in quite a while, and it was made possible thanks to
two new people on the team:

A warm welcome to @sasensi and
@sapics, the two new and very active maintainers /
contributors! 🎉

Their efforts mean that many issues are finally getting proper attention and
solid fixes, as we are paving the way for the upcoming release of 1.0.0. Here
the fixes and additions from the past two weeks:

Fixed

  • Prevent paper object from polluting the global scope (#1544).
  • Make sure Path#arcTo() always passes through the provide through point
    (#1477).
  • Draw shadows on Raster images (#1437).
  • Fix boolean operation edge case (#1506, #1513, #1515).
  • Handle closed paths with only one segment in Path#flatten() (#1338).
  • Remove memory leak on gradient colors (#1499).
  • Support alpha channel in CSS colors (#1468, #1539, #1565).
  • Improve color CSS string parsing and documentation.
  • Improve caching of item positions (#1503).
  • Always draw selected position in global coordinates system (#1545).
  • Prevent empty Symbol items from causing issues with transformations (#1561).
  • Better detect when a cached global matrix is not valid anymore (#1448).
  • Correctly draw selected position when item is in a group with matrix not
    applied (#1535).
  • Improve handling of huge amounts of segments in paths (#1493).
  • Do not trigger error messages about passive event listeners on Chrome (#1501).
  • Fix errors with event listeners on mobile (#1533).
  • Prevent first mouse drag event from being emitted twice (#1553).
  • Support optional arguments in translate and rotate statements in SVG Import
    (#1487).
  • Make sure SVG import always applies imported attributes (#1416).
  • Correctly handle Raster images positions in SVG import (#1328).
  • Improve documentation for Shape#toPath() (#1374).
  • Improve documentation of hit test coordinate system (#1430).
  • Add documentation for Item#locked (#1436).
  • Support Webpack bundling in Node.js server (#1482).
  • Travis CI: Get unit tests to run correctly again.
  • Travis CI: Remove Node 4 and add Node 9.

Added

  • Curve#getTimesWithTangent() and Path#getOffsetsWithTangent() as a way to
    get the curve-times / offsets where the path is tangential to a given vector.
  • Raster#smoothing to control if pixels should be blurred or repeated when a
    raster is scaled up (#1521).
  • Allow PaperScriptto export from executed code, supporting export default,
    named exports, as well as module.exports.

v0.11.5

08 Oct 15:54
Compare
Choose a tag to compare

Fixed

  • Fix Curve#isSelected() to correctly reflect the state of #handle1 (#1378).
  • Key Events: Fix auto-filling issue on Chrome (#1358, #1365).
  • Boolean: Check that overlaps are on the right path (#1321).
  • Boolean: Add better filtering for invalid segments (#1385).

Added

  • Node.js: Add JPEG support to exportFrames() (#1166).

v0.11.4

08 Oct 15:51
Compare
Choose a tag to compare

Changed

  • Node.js: Add support for v8, and keep testing v4, v6, v7 in Travis CI.

v0.11.3

23 Apr 15:22
Compare
Choose a tag to compare

Fixed

  • Mouse Events: Fix item-based doubleclick events (#1316).

  • Overhaul the caching of bounds and matrix decomposition, improving reliability
    of Item#rotation and #scaling and fixing situations caused by wrongly
    caching Item#position and #bounds values.

  • Prevent consumed properties in object literal constructors from being set on
    the instance.

Changed

  • Make all functions and accessors enumerable on all Paper.js classes.

v0.11.2

20 Apr 17:46
Compare
Choose a tag to compare

Fixed

  • PaperScript: Fix a parsing error in math operations without white-space
    (#1314).

v0.11.1

20 Apr 16:50
Compare
Choose a tag to compare

Fixed

  • Bring back deactivation of Node.js modules on browsers. This has most probably
    broken Webpack bundling in 0.11.0.