Releases: paperjs/paper.js
v0.12.3
Added
- Add documentation for
Item#internalBounds
.
Fixed
v0.12.2
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
inGroup#internalBounds
(#1427). - Correctly calculate bounds with nested empty items (#1467).
- Fix color change propagation on groups (#1152).
- Fix
Path#arcTo()
wherefrom
andto
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
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
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 onItem
, 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
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()
andPath#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
PaperScript
to export from executed code, supportingexport default
,
named exports, as well asmodule.exports
.
v0.11.5
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
v0.11.3
Fixed
-
Mouse Events: Fix item-based
doubleclick
events (#1316). -
Overhaul the caching of bounds and matrix decomposition, improving reliability
ofItem#rotation
and#scaling
and fixing situations caused by wrongly
cachingItem#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.