Jürg Lehni
db82f41151
Update year, author email addresses and links
2020-05-23 22:24:42 +02:00
Jürg Lehni
c82e5d41f7
Improve fix for nested group matrix reset
...
Closes #1711
2019-12-14 19:40:00 +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
Jürg Lehni
4ba406bfe3
Streamline code for #1427
2019-06-09 23:35:33 +02:00
sasensi
e3c298d3f4
Fix ignoring of clip item matrix in group internal bounds
...
Closes #1427
2019-06-09 23:28:30 +02:00
sasensi
eeb26436b0
Fix bounds error with nested empty items
...
Closes #1467
2019-06-09 16:10:54 +02:00
Jürg Lehni
da137fa8e4
Use comparePixels() instead of compareCanvas()
2019-06-05 18:16:56 +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
sasensi
2e75467fb4
Fix group selected bounds and position color
...
Group selected color was applied differently to its bounds and position
depending on whether it had children or not when selected color was set.
This resulted in an unpredictable behaviour from a user point of view.
To change that:
- When `item.setSelectedColor()` is called, value is now always stored
in `item._style._values`, independently from the fact that item has
children or not.
- An helper method `compareCanvas()` is added to the test suite to allow
comparing selection rendering of a known working case to a failing one.
Two provided callbacks are executed in a dedicated `<canvas>`/`Project`
context and both results are compared with `resemble.js`.
2018-11-06 11:26:12 +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
3f76bd99ef
Implement an efficient mechanism to prioritize key in Item#set()
...
Closes #1096
2016-07-25 23:17:45 +02:00
Jürg Lehni
742401a0e1
Fix Item#insertChildren() error when passing null for some children.
...
Relates to #1036
2016-06-13 14:16:25 +02: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
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
b8674a3bc1
Implement unit test comparators for Point, Size and Rectangle.
2014-12-28 14:59:48 +01:00
Jürg Lehni
48cb05a181
Replace tabs with 4 white-spaces.
2014-08-16 19:24:54 +02:00
Jürg Lehni
f002c633a7
Remove trailing white spaces and ensure newlines at the end.
2014-04-06 13:48:03 +02:00
Jürg Lehni
e22fa3a664
Update copyright notice.
2014-01-04 01:47:16 +01:00
Jürg Lehni
e6fa0085b6
Update all tests that depend on old Adobe Illustrator data to either use better data or more tolerance.
2013-04-08 19:51:14 -07:00
Jonathan Puckey
c6602d4fcf
Add named arguments tests for Group & Rectangle.
2013-03-03 14:20:45 +01:00
Jürg Lehni
6c9c16ad3d
Update copyright information comments, and year.
2013-01-28 18:03:27 -08:00
Jonathan Puckey
bda7c71fcb
Fix problem when calling new Group([]).
2012-11-06 18:07:51 +01:00
Jonathan Puckey
e3518c29b1
Fix issue where adding the children of one group to another using Item#insertChildren / Item#addChildren does not work.
...
This fixes #119 . To avoid duplication I chose to call
Item#insertChildren from Item#addChildren.
2012-10-06 13:08:07 +02:00
Jonathan Puckey
9604e2bd4f
Add failing test of issue with Group#addChildren as reported in #119
2012-10-06 11:15:52 +02:00
Jürg Lehni
5655981f6d
Clean up white spaces.
2011-07-07 16:09:02 +02:00
Jürg Lehni
0eb2546fff
Improve Group bounds tests.
2011-07-04 19:46:56 +02:00
Jürg Lehni
79c0ad8cc5
Update copyright notices.
2011-07-01 12:17:45 +02:00
Jürg Lehni
00b5f6a6bb
Improve Group tests.
2011-05-16 19:21:44 +01:00
Jürg Lehni
cfe968d30e
Rename Document -> Project, DocumentView -> ProjectView, paper.document -> paper.project and paper.documents -> paper.projects, to avoid name clashing with window.document.
2011-05-16 13:33:15 +01:00
Jürg Lehni
2a24ec66ac
Have test() method automatically create and remove a Document for reach test.
2011-05-14 18:59:04 +01:00
Jürg Lehni
520f5054e5
Update tests to use new function() {} notation for automatic rendering of messages.
2011-05-07 17:46:06 +01:00
Jonathan Puckey
c67128ca76
Add tests for strokeBounds of groups.
2011-04-28 12:56:30 +02:00
Jürg Lehni
7e52355f93
Rename Doc -> Document since paper code is namespaced now and does not clash with global Document prototype.
2011-03-03 17:23:27 +00:00
Jonathan Puckey
f9ccd1d1a5
Tests: add tests for group bounds after rotation.
2011-02-26 18:17:44 +01:00
Jonathan Puckey
c0884473b5
Add a test for Group#getBounds().
2011-02-17 00:34:16 +01:00
Jonathan Puckey
7fdf439ef2
Group: allow passing of array of items to constructor and pass on ctx in draw function. Add tests for Group.
2011-02-12 19:12:23 +01:00