Jürg Lehni
db82f41151
Update year, author email addresses and links
2020-05-23 22:24:42 +02:00
Jürg Lehni
af509f6431
Clamp opacity values to [0, 1]
...
Closes #1814
2020-05-23 15:41:18 +02:00
Jürg Lehni
b5c753f23d
Improve test for #1651
...
Move to the right place and simplify to only test against a non-invertible matrix.
2019-06-19 22:05:26 +02:00
Dan Stucky
32aff8e895
Handle non-invertible matrices in Item#contains() ( #1651 )
2019-06-19 21:59:41 +02:00
sasensi
25f2a0e779
Fix drawing with compound-paths as clip-items
...
Closes #1361
2019-06-09 16:37:38 +02:00
sapics
be4199b6eb
Update copyright year to 2019
2018-12-27 16:13:01 +09:00
sapics
cfc5a912da
Replace url to avoid redirection
...
Replace http://jonathanpuckey.com to https://puckey.studio
2018-11-14 11:24:32 +01:00
Samuel Asensi
2968faad51
Fix empty image drawing ( #1605 )
...
Empty raster (for example coming from path with empty bound
rasterization, ...) drawing threw error.
This change prevent raster drawing in that case.
Closes #1320
2018-11-14 11:21:40 +01: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
Jürg Lehni
6a278c040a
Minor clean-ups for the past few PRs
2018-10-03 18:21:26 +02:00
sasensi
704d37be2f
Fix #1503 Item#position caching issue
2018-10-01 19:25:04 +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
3f76bd99ef
Implement an efficient mechanism to prioritize key in Item#set()
...
Closes #1096
2016-07-25 23:17:45 +02:00
Jürg Lehni
eab0b9db5e
Correctly handle path.replaceWith(path) calls.
...
Closes #1118
2016-07-22 23:29:33 +02:00
Jürg Lehni
1cb291690d
Implement unit tests for #991
...
Tests for item.addChildren()/removeChildren(), some currently failing.
2016-02-23 11:55:03 +01:00
Jürg Lehni
01fade8c08
Implement more unit tests for PaperScope#settings.insertItems
2016-02-14 22:04:40 +01:00
Jürg Lehni
4e7fa2f04e
Implement PaperScope#settings.insertItems
...
Controlling whether newly created items are automatically inserted into the scene graph.
2016-02-14 21:34:35 +01:00
Jürg Lehni
bc2729683c
Core: Renamed Symbol and PlacedSymbol classes and properties.
...
- Symbol -> SymbolDefinition
- PlacedSymbol -> SymbolItem
- Symbol#definition -> SymbolDefinition#item
- PlacedSymbol#symbol -> SymbolItem#definition
- Deprecate Project#symbols
Closes #770
2016-01-31 16:52:51 +01:00
Jürg Lehni
4c84c3dad5
Tests: Start getting QUnit tests to work on Node.js
...
Work in progress…
2016-01-31 12:43:20 +01:00
Jürg Lehni
c064cb6c43
Implement additional unit tests for dealing with sibling items with the same name.
2016-01-08 16:41:33 +01:00
Jürg Lehni
a7a07fb6d5
Update JSDoc and do some documentation spring-cleaning.
...
- Convert from {@code ...} to shorter `...`
- Reformat some documentation comment blocks
- Update copyright notices
2015-12-30 21:55:19 +01:00
Jürg Lehni
be603c7da8
Fix Item#pivot test.
2015-08-18 17:23:33 +02:00
Jürg Lehni
c5a2a51f3e
Implement unit test comparator for Color and improve new comparator code.
2014-12-28 15:21:38 +01:00
Jürg Lehni
b8674a3bc1
Implement unit test comparators for Point, Size and Rectangle.
2014-12-28 14:59:48 +01:00
Jürg Lehni
c87ce4de4c
Implement Item#replaceWith(item)
...
Closes #454
2014-09-27 22:52:37 +02:00
Jürg Lehni
0eb96898a3
Clean up Item tests.
2014-09-27 22:50:22 +02:00
Jürg Lehni
8414607cee
Define tests for Item#remove()
2014-09-27 22:49:32 +02:00
Jürg Lehni
48cb05a181
Replace tabs with 4 white-spaces.
2014-08-16 19:24:54 +02:00
Jürg Lehni
1f7cb30fa5
Correctly transform Item#pivot when #matrix is applied to an item's contents.
...
Closes #452 and defines unit tests to cover this bug.
2014-04-11 13:18:27 +02:00
Jürg Lehni
833d71f7ea
Remove Item#type and replace it with Item#className, the non-hyphenated version of #type.
2014-03-18 11:42:38 +01:00
Jürg Lehni
a1c74b8fd3
Explicitly state raster resolution in unit tests.
...
Since #rasterize() uses the HiDPI resolution if present now.
2014-03-18 11:20:50 +01:00
Jürg Lehni
e22fa3a664
Update copyright notice.
2014-01-04 01:47:16 +01:00
Jürg Lehni
3a043e0023
Fix empty tests.
2013-06-11 13:40:50 -07:00
Jürg Lehni
8292112ecd
More work on Color and testing.
2013-04-08 07:07:41 -07:00
Jürg Lehni
0aa6c66681
Start refactoring Color tests.
2013-04-08 00:19:47 -07:00
Jürg Lehni
37566694da
Fix Item#type tests.
2013-04-07 22:45:30 -07:00
Jürg Lehni
232ea221b4
First batch of large Color refactoring and simplification.
...
Work in progress.
2013-04-07 10:03:51 -07:00
Jürg Lehni
9d2fd2f675
Improve test description.
2013-03-23 17:08:17 -07:00
Jonathan Puckey
7eda782cfe
Clean up item tests.
2013-03-16 16:27:28 +01:00
Jonathan Puckey
a3cb9862a3
Improve expected outcome description of failing test.
2013-03-16 15:46:10 +01:00
Jonathan Puckey
3f2fdbc710
Add failing test for setting a blend mode on an item in a transformed group.
2013-03-16 15:44:04 +01:00
Jonathan Puckey
b63d468bf2
Fix Item#parent test.
2013-03-10 17:25:25 +01:00
Jonathan Puckey
fd3fc7f2d7
Implement Item#setParent, making Item#parent writeable. Closes #186 .
2013-03-10 15:35:33 +01:00
Jonathan Puckey
25d34be59b
Implement Item#data. Closes #188 .
2013-03-10 14:59:53 +01:00
Jürg Lehni
3856302282
Fix Item#type tests, by adapting to new camel-cased version.
2013-03-03 14:22:31 -08:00
Jonathan Puckey
ace98d689f
Fix Item#type test.
2013-03-03 20:14:13 +01:00
Jonathan Puckey
343dac35b1
Add tests for Item#sendToBack & Item#bringToFront.
2013-03-03 20:08:49 +01:00
Jonathan Puckey
1170c14a9a
Add tests for Item#isInserted.
2013-03-03 16:59:27 +01:00
Jonathan Puckey
2c9846bf09
Add failing tests for Item#type.
2013-03-03 14:40:37 +01:00
Jürg Lehni
881f624575
Add failing test when inserting multiple children into the same parent.
2013-03-01 22:41:58 -08:00