sasensi
bd70511b70
Add documentation for PaperScope#setup(size)
...
Documentation did not mention that a size can be passed as argument to
PaperScope#setup() and Project#initialize() for usage of paper.js in
web workers.
Closes #1412
2018-10-17 17:43:06 +02:00
sapics
3e15cf09c2
Trim space in jsdoc comment
2018-10-15 10:19:45 +02:00
Jürg Lehni
348886365a
Revert "Improve use of global matrix in selected position"
...
This reverts commit 91d3499191
.
2018-10-15 10:12:15 +02:00
Jürg Lehni
91d3499191
Improve use of global matrix in selected position
...
Relates to #1545
2018-10-14 23:12:03 +02:00
Samuel Asensi
54b20c0268
Improve global matrix cache invalidation performance ( #1563 )
2018-10-13 19:53:45 +02:00
Jürg Lehni
c41509479f
Use separate ChangeFlag for matrix changes
...
See https://github.com/paperjs/paper.js/pull/1552#issuecomment-429547010
2018-10-13 16:44:35 +02:00
Jürg Lehni
c5b822da79
Improve validity check for cached global matrix
...
Relates to #1552 , #1448
2018-10-13 16:32:53 +02:00
Samuel Asensi
8bef865892
Fix children global matrices are not cleared ( #1552 )
...
Between a parent transformation and next view update, children global
matrix was invalid, leading to wrong global coordinates calculation.
Closes #1448
2018-10-13 16:28:20 +02:00
Samuel Asensi
5cd1ca13c5
Fix item global matrix error ( #1562 )
...
Bug happen when item is drawn after an empty symbol that should be drawn
in a separate canvas context (partial opacity or special blend mode).
As bounds are empty, symbol drawing process is interrupted but its
global matrix is not removed from the stack.
Closes #1561
2018-10-13 14:41:38 +02:00
Samuel Asensi
76d07892d1
Add Item#locked to documentation ( #1556 )
...
Closes #1436
2018-10-09 22:05:22 +02:00
Samuel Asensi
dfe4397a96
Improve hit test point documentation ( #1559 )
...
Specifies that hit test point should be provided in global coordinates
system.
Closes #1430
2018-10-09 21:44:04 +02:00
Samuel Asensi
c0abbe1459
Fix raster shadow is not drawn ( #1555 )
...
Closes #1437
2018-10-09 11:38:52 +02:00
sasensi
f7ce43a9e9
Fix item selected position with matrix not applied
...
Make sure selected position is drawn in global coordinates system
whether item is in a group or not and whether matrix is applied or not.
Correct a bug introduced in 34679614c0
.
2018-10-06 13:15:27 +02:00
Jürg Lehni
28dec90a88
Wrap up Raster#smoothing feature
2018-10-03 19:01:02 +02:00
Jürg Lehni
144370169e
Merge pull request #1529 from sasensi/Fix_#1521_adding_raster.smoothing_property
...
Fix #1521 adding Raster.smoothing property
2018-10-03 18:38:01 +02:00
Jürg Lehni
6a278c040a
Minor clean-ups for the past few PRs
2018-10-03 18:21:26 +02:00
Jürg Lehni
959ccc83c2
Merge pull request #1531 from sasensi/Fix_#1503_Item#position_caching_issue
...
Fix #1503 Item#position caching issue
2018-10-03 17:33:24 +02:00
Jürg Lehni
f032dcbf06
Merge pull request #1535 from sasensi/Fix_selected_position_is_wrongly_placed_when_item_is_in_a_group_with_matrix_not_applied
...
Fix: selected position is wrongly placed when item is in a group with matrix not applied
2018-10-03 10:16:59 +02:00
sasensi
34679614c0
Fix: selected position is wrongly placed when item is in a group with matrix not applied
2018-10-03 09:43:40 +02:00
sasensi
704d37be2f
Fix #1503 Item#position caching issue
2018-10-01 19:25:04 +02:00
sasensi
07ae09a76a
Fix #1521 adding raster.smoothing property
2018-09-30 18:46:02 +02:00
sapics
e9c4e8cf3b
Release memory on Color
2018-09-27 18:39:39 +09:00
Alex Lockwood
d51bb3fa31
Fix documentation for Shape#toPath()
2017-09-04 11:13:15 -04:00
Jürg Lehni
5d00c30ece
Some internal refactoring.
2017-06-07 16:56:44 +02:00
Jürg Lehni
188c006197
Update to straps.js v3.0.1 and make all functions and accessors enumerable.
2017-04-22 18:50:53 +02:00
Jürg Lehni
e46c8ec340
Overhaul the caching of bounds and matrix decomposition.
...
Improves reliability of Item#rotation and #scaling and fixes situations caused by wrongly cached #position and #bounds values.
2017-04-22 12:55:42 +02:00
Jürg Lehni
7dea96c6f2
Docs: Fix wrong @link references to bean properties.
2017-04-13 12:24:56 +02:00
Jürg Lehni
d436d07fee
Intersections: Correctly handle item#applyMatrix = false
...
Closes #1289
2017-03-23 13:13:32 +01:00
Jürg Lehni
ffa7e16f48
Use == false
instead of === false
for all options that default to true.
...
These expression are true:
- false == false
- false == 0
While these are false:
- false == null
- false == undefined
2017-03-22 14:42:11 +01:00
Jürg Lehni
7e8e04351f
Boolean: small optimization in computeStrokeBoolean()
2017-03-22 14:24:11 +01:00
Jürg Lehni
89d0536783
Scene Graphs: Do not allow inserting same item as child multiple times.
2017-03-21 11:55:42 +01:00
Jürg Lehni
89a953dde0
Docs: Add documentation for options.bound and options.matrix in #exportSVG()
...
Closes #1254
2017-03-19 14:50:59 +01:00
Jürg Lehni
e354bccf69
Include note about compiling for Electron.
...
And some smaller forgotten changes.
Closes #1276
2017-03-19 14:38:24 +01:00
Jürg Lehni
f2e9fab264
Split Item#copyTo() into #addTo() and #copyTo()
2017-03-10 11:43:55 +01:00
Jürg Lehni
5291043a5f
Fix how gradient matrices are handled when Item#applyMatrix = false
...
Closes #1238
2017-03-09 14:31:41 +01:00
Jürg Lehni
083a09604d
Hit-Tests: Fix issue with non-invertible matrices.
...
Closes #1271
2017-03-09 12:42:11 +01:00
Jürg Lehni
f9d06d8ae4
Hit Tests: Implement options.position.
...
Closes #1249
2017-03-08 23:01:12 +01:00
Jürg Lehni
db4deb244f
Fix calculation of internal bounds with children and applyMatrix = false
...
Closes #1250
2017-03-08 17:14:42 +01:00
Jürg Lehni
65da4fe3ed
Clear parent's bounds cache when item's visibility changes.
...
Closes #1248
2017-03-08 16:21:34 +01:00
Jürg Lehni
e3c6245979
Docs: Improve description of option.class value in #hitTest()
...
See #632
2017-02-15 16:11:33 +01:00
Jürg Lehni
13f4773985
Fix documentation of Project#hitTestAll()
...
Relates to #536
2017-02-06 18:36:00 +01:00
Jürg Lehni
da52f1f685
Remove Numerical.TOLERANCE
2017-01-16 17:48:26 +01:00
Jürg Lehni
0ae2ded9cc
Fix handling of hit-test tolerance on scaled items with #applyMatrix = false
...
Closes #1195
2017-01-08 14:34:58 +01:00
Jürg Lehni
ed38634a80
Improve comments.
2017-01-03 13:41:26 +01:00
Jürg Lehni
4d81a292a2
Return correct values for #rotation and #scaling on items with #applyMatrix = true
...
While preserving caching for #applyMatrix = false
Relates to #1004 , #1177
2017-01-03 13:39:35 +01:00
Jürg Lehni
aa75374406
Bring back caching of Item#rotation and #scaling
...
But only allow matrix decomposition based properties on items with #applyMatrix = false
Closes #1177 , relates to #1004
2017-01-03 13:23:44 +01:00
Jürg Lehni
e24402542a
Improve handling of SymbolItem in#hitTestAll()
...
Closes #1199
2017-01-01 18:32:45 +01:00
Jürg Lehni
771bb61038
Fix matrix cloning for groups with #applyMatrix = false
...
Closes #1225
2016-12-30 13:25:08 +01:00
Jürg Lehni
b59baeb9aa
Fix stroke hit-testing for rounded shape items.
...
Closes #1207
2016-12-23 23:11:17 +01:00
sapics
3f909da253
Fix example in jsdoc
2016-12-10 12:58:56 +09:00