Commit graph

7309 commits

Author SHA1 Message Date
Jürg Lehni
db82f41151 Update year, author email addresses and links 2020-05-23 22:24:42 +02:00
Jürg Lehni
e4a0d2d665 Avoid publishing paperjs.zip to NPM 2020-05-23 22:06:29 +02:00
Jürg Lehni
c20ead17c8 Make moduleExports work independently from operatorOverloading 2020-05-23 22:01:12 +02:00
Jürg Lehni
b6d01e55e5 Finally fix weird issues with publish tasks
See b65527e360
2020-05-23 21:42:04 +02:00
Jürg Lehni
357e028e42 Switch back to load.js versions on develop branch. 2020-05-23 21:31:49 +02:00
Jürg Lehni
65886449e1 Release version 0.12.6 2020-05-23 21:30:44 +02:00
Jürg Lehni
ab481a497b Add option to control module exports conversion 2020-05-23 20:53:04 +02:00
Jürg Lehni
58dd180def Switch back to load.js versions on develop branch. 2020-05-23 16:24:30 +02:00
Jürg Lehni
c7684bb406 Release version 0.12.5 2020-05-23 16:23:20 +02:00
Jürg Lehni
7fcee5a911 Update CHANGELOG 2020-05-23 15:51:37 +02:00
Jürg Lehni
af509f6431 Clamp opacity values to [0, 1]
Closes #1814
2020-05-23 15:41:18 +02:00
Samuel Asensi
8d67d14e98
Fix: closed Path with blend mode throw error (#1763)
Closes #1755
2020-05-23 14:54:51 +02:00
Samuel Asensi
9f249101f0
Update Raster#drawImage documentation (#1784)
Closes #1781
2020-05-23 14:48:39 +02:00
Takahiro Nishino
e43f7a8735
Fix travis build configuration warnings (#1800)
Warnings are reported in
https://travis-ci.org/github/paperjs/paper.js/builds/674265980/config
2020-05-23 14:43:21 +02:00
Jürg Lehni
d2f723a0fd Add option to control operator overloading 2020-05-23 14:10:18 +02:00
Jürg Lehni
5631279f99 Support SVG strings with leading line-breaks
Closes #1813
2020-05-23 13:40:27 +02:00
Jürg Lehni
ccd92acee7 Use paper- prefix in generated view ids 2020-05-23 13:40:24 +02:00
Tim Gates
9de1d4a2f3 docs: Fix simple typo, horziontal -> horizontal
There is a small typo in src/item/Item.js, src/view/View.js.

Should read `horizontal` rather than `horziontal`.
2020-04-13 14:04:42 +09:00
Jürg Lehni
c044b698c6 Fix comment 2020-02-13 17:07:06 +01:00
Jürg Lehni
18956805ef Fix typo in getCrossingSegments()
Closes #1773
2020-02-11 22:51:33 +01:00
waruyama
1efa0edb50
Fix #1769 and add additional test case (#1772) 2020-02-10 23:49:50 +01:00
Jürg Lehni
efcdd7bda8 Handle CurveLocation on path with only one segment 2020-01-15 09:40:49 +01:00
Jürg Lehni
a2069fc73d Revert "Improve docs for isBelow() and isAbove()"
Reverts commit f00fe1cfd2, which was factually wrong
2019-12-18 14:13:15 +01:00
Filprots
c73e08a481 Fix new Raster(HTMLCanvasElement) (#1745)
Fix a typo in object.getContext (was object.getContent) accessor to properly identify a canvas
2019-12-18 11:44:45 +01:00
Jürg Lehni
2d1856322c Adjust authors list 2019-12-18 11:24:28 +01:00
Jürg Lehni
f00fe1cfd2 Improve docs for isBelow() and isAbove()
Closes #1747
2019-12-18 11:23:15 +01:00
Jürg Lehni
00bd25d662 Switch back to load.js versions on develop branch. 2019-12-15 22:01:14 +01:00
Jürg Lehni
4bc92ce132 Release version 0.12.4 2019-12-15 21:46:29 +01:00
Jürg Lehni
64eb5ac1c4 Update CHANGELOG with latest changes 2019-12-15 21:25:00 +01:00
Jürg Lehni
c7d85b663e Use minifiable reference to arguments for repeated use 2019-12-15 19:40:40 +01:00
Jürg Lehni
dacfce0498 Implement Base.readSupported() and improve argument reading in Shape 2019-12-15 14:34:46 +01:00
Samuel Asensi
2b62eb5cfa Fix shape bounds when passing position in constructor (#1708)
In some special circumstances, when position was passed in constructor
and when position key was before size key, bounds were wrongly
calculated.
This ensure that when size is set, even the first time, bounds are
properly recalculated.
Closes #1686
2019-12-15 14:31:31 +01:00
Jürg Lehni
0dc51c2239 Include BooleanOperations example from website 2019-12-14 20:32:00 +01:00
Jürg Lehni
a9ebe475e0 Some more optimizations for #1740 2019-12-14 20:29:35 +01:00
Jürg Lehni
c82e5d41f7 Improve fix for nested group matrix reset
Closes #1711
2019-12-14 19:40:00 +01:00
Jürg Lehni
d63647eb06 More refactoring for #1740 2019-12-13 18:36:07 +01:00
Jürg Lehni
46f1aaeca1 Some code refactoring for #1740 2019-12-13 16:47:49 +01:00
Jürg Lehni
a183dc0c0d Fix various issues introduced in #1740 2019-12-13 16:13:56 +01:00
waruyama
1f39b1df98 First implementation of sweep and prune (#1740) 2019-12-13 14:32:31 +01:00
sapics
871531b46a Fix parsing of rgb color string with percentages 2019-12-06 13:22:56 +01:00
adroitwhiz
7dad1a495d Fix handling of negative Shape sizes (#1733) 2019-11-09 18:17:26 +01:00
Samuel Asensi
43bbb249ab Allow paper core import in TypeScript (#1716)
* Allow paper core import in TypeScript

Typings were missing when importing paper core version with:
`import * as paper from 'paper/dist/paper-core'` syntax.
This changes the generated TypeScript definition so that it exports two
modules: `paper` and `paper/dist/paper-core`. In the same logic,
`paper-core.d.ts` file is added to make sure that the corresponding
definition is automatically loaded.
This also takes care of the fact that `PaperScript` class is not
available in paper core version, by removing it from the corresponding
TypeScript definition.
Finally, this also simplifies existing definition by directly exporting
a `PaperScope` instance as the module instead of duplicating all
`PaperScope` properties and methods on the module itself.
Closes #1713
2019-11-07 12:12:14 +01:00
Aditya
f0b8799c95 fix: raster extend
The extend function was not working properly (_serializeFields were affected).
2019-11-06 10:28:22 +01:00
sasensi
f84199c83d Fix: nested group matrix should not be reset
When a group had `applyMatrix` set to `false`, when its parent's matrix
was applied, its matrix was applied to its children then it was reset.
This makes sure that in this case, parent matrix is only added to child
matrix but not applied to child's children and that child's matrix is
not reset.
Closes #1711
2019-11-05 23:11:13 +01:00
Samuel Asensi
aa9dc86e7b Fix issue template typo (#1704) 2019-08-12 16:24:29 +02:00
Jürg Lehni
3e5d4fa1c6 Remove Bower instructions and clean up README 2019-07-12 12:41:15 +02:00
Jürg Lehni
0bb04fffff Simplify fix for #1685
Create `Base` objects for options, so `extend()` can be used to override properties in a fast and nondestructive manner.
2019-07-12 12:14:22 +02:00
Samuel Asensi
aec1c2c138 Fix SymbolItem#hitTestAll()
Closes #1680
2019-07-12 12:06:26 +02:00
Jürg Lehni
c9a8d54623 Update JSDoc for #1677 2019-07-12 11:57:33 +02:00
Samuel Asensi
0c885964d3 Add support for nullable in documentation 2019-07-12 11:52:53 +02:00