Jonathan Puckey
|
1cdaa3a86b
|
Add failing Color cloning tests.
|
2011-05-21 13:34:27 +02:00 |
|
Jonathan Puckey
|
888a5cf348
|
Tests: add Raster#clone() test.
|
2011-05-21 12:50:36 +02:00 |
|
Jonathan Puckey
|
73a2f0f256
|
Implement Raster#clone.
|
2011-05-21 12:50:02 +02:00 |
|
Jonathan Puckey
|
fd810e9804
|
Tests: clean up whitespace in compareItems.
|
2011-05-21 12:49:15 +02:00 |
|
Jonathan Puckey
|
d03dd05195
|
Tests: compareItems: compare item#matrix if present.
|
2011-05-21 12:48:43 +02:00 |
|
Jonathan Puckey
|
c3092db208
|
Add Raster specific tests to compareItems helper function.
|
2011-05-21 12:47:58 +02:00 |
|
Jonathan Puckey
|
b579b9c96c
|
Tests: cloneAndCompare: compare item._parent and item.nextSibling.
|
2011-05-21 12:46:21 +02:00 |
|
Jonathan Puckey
|
6bfec35a2e
|
Close 'appendTop / appendBottom / nesting' layer test function.
|
2011-05-21 12:21:27 +02:00 |
|
Jonathan Puckey
|
7fe21754f5
|
Add test to compare cloning of item with a GradientColor.
|
2011-05-21 12:11:44 +02:00 |
|
Jonathan Puckey
|
e3ba43ce3b
|
Tests: support comparing of GradientColor in compareItems helper function.
|
2011-05-21 12:10:05 +02:00 |
|
Jonathan Puckey
|
5d48a7383a
|
Tests: add compareGradientColors helper function.
|
2011-05-21 12:09:00 +02:00 |
|
Jonathan Puckey
|
46b1311260
|
Gradient#equals: also check gradient type.
|
2011-05-21 12:06:37 +02:00 |
|
Jonathan Puckey
|
d8b73f3671
|
Fix GradientColor#clone().
|
2011-05-21 12:06:01 +02:00 |
|
Jürg Lehni
|
b461368b18
|
Found a clean way for Layer#initialize() to call this.base() too, without implicitely calling paper.project.activeLayer.appendTop.
|
2011-05-21 01:05:22 +01:00 |
|
Jürg Lehni
|
9f1172f24a
|
Merge remote-tracking branch 'origin/master'
|
2011-05-21 00:59:19 +01:00 |
|
Jürg Lehni
|
f50e28cd4a
|
Add more Layer tests.
|
2011-05-21 00:42:33 +01:00 |
|
Jürg Lehni
|
f6e827cfd1
|
Allow Color#alpha to be set to null.
|
2011-05-21 00:41:04 +01:00 |
|
Jürg Lehni
|
7e7944e6f4
|
Fix recently introduced error in Color, by setting internal properties directly.
|
2011-05-21 00:40:20 +01:00 |
|
Jonathan Puckey
|
6829233013
|
Tests: Fix bug in compareItems helper function.
|
2011-05-20 22:03:46 +02:00 |
|
Jonathan Puckey
|
8a1b1041cd
|
Make PointText#matrix 'private' by renaming to _matrix.
|
2011-05-20 22:03:16 +02:00 |
|
Jonathan Puckey
|
f676cc026f
|
Add TextItem#_clone to copy over characterStyle and paragraphStyle.
|
2011-05-20 21:33:25 +02:00 |
|
Jonathan Puckey
|
2c94b4270a
|
Fix ParagraphStyle.create(item).
|
2011-05-20 21:29:47 +02:00 |
|
Jonathan Puckey
|
fc3833f150
|
Fix PlacedSymbol#clone().
|
2011-05-20 19:41:53 +02:00 |
|
Jonathan Puckey
|
64a142436b
|
Tests: add item cloning tests.
|
2011-05-20 19:40:07 +02:00 |
|
Jonathan Puckey
|
8f5f5ee43c
|
Tests: add cloneAndCompare and compareItems helper functions.
|
2011-05-20 19:39:12 +02:00 |
|
Jonathan Puckey
|
013fe56ea4
|
Item#_clone: check if the item has a _pathStyle property before copying it.
|
2011-05-20 19:35:26 +02:00 |
|
Jürg Lehni
|
777cc95dc3
|
Rename proj -> project in all tests.
|
2011-05-20 14:08:17 +01:00 |
|
Jürg Lehni
|
84b1d865c1
|
Remove unused variable.
|
2011-05-20 14:08:04 +01:00 |
|
Jürg Lehni
|
be63d2cf07
|
Remove empty line.
|
2011-05-20 14:04:35 +01:00 |
|
Jürg Lehni
|
631923669a
|
Eliminate some of the TODOs.
|
2011-05-20 14:00:27 +01:00 |
|
Jürg Lehni
|
0a87eef244
|
Add comment about PointText#matrix and #point being exposed.
|
2011-05-20 08:56:14 +01:00 |
|
Jürg Lehni
|
ec0484e798
|
Define Symbol#clone(), needs testing.
|
2011-05-20 08:55:44 +01:00 |
|
Jürg Lehni
|
5713bc07f2
|
Define PlacedSymbol#clone(), needs testing.
|
2011-05-20 08:55:35 +01:00 |
|
Jürg Lehni
|
b15eecc34d
|
Use new internal Item#_clone() to improve Path#clone() and PointText#clone().
|
2011-05-20 08:54:44 +01:00 |
|
Jürg Lehni
|
87d340e525
|
Introduce private Item#_clone(copy), so subclasses can override the way the copy is actually produced, e.g. providing parameters to the constructor.
|
2011-05-20 08:50:09 +01:00 |
|
Jürg Lehni
|
fd8ceb9641
|
Implement PointText#clone(), untested.
|
2011-05-20 08:47:13 +01:00 |
|
Jürg Lehni
|
4ceaca00f4
|
Initialise content to empty string, so content += 'something' would not produce odd results.
|
2011-05-20 08:46:58 +01:00 |
|
Jürg Lehni
|
e7cad9b134
|
Use local point in translate, as it is not a LinkedPoint and won't require beans access.
|
2011-05-20 08:46:17 +01:00 |
|
Jürg Lehni
|
01f26c4be0
|
Restructure line break.
|
2011-05-20 08:40:35 +01:00 |
|
Jürg Lehni
|
131425a12f
|
Rely on #_transform() in #setPoint() as it already handles updating of #_point for us and all.
|
2011-05-20 08:33:19 +01:00 |
|
Jürg Lehni
|
2e82ac97d8
|
Convert PointText#point to a LinkedPoint so direct changes to it get noticed too.
|
2011-05-20 08:32:36 +01:00 |
|
Jürg Lehni
|
d6a49e2eb4
|
No need to check result of Point.read(), as it will always be a Point (_readNull is only defined for Color).
|
2011-05-20 08:28:49 +01:00 |
|
Jürg Lehni
|
4153bc0fbf
|
Fix bug in PointText#_transform(), where wrong version of matrix._transformPoint() was applied to _point, resulting in no transformation.
|
2011-05-20 08:27:11 +01:00 |
|
Jürg Lehni
|
eb2dc011f4
|
Merge with conflicting commit which addressed same optimisation.
|
2011-05-20 08:12:40 +01:00 |
|
Jürg Lehni
|
10dadb80f2
|
Move isHue check outside of setter.
|
2011-05-20 08:08:26 +01:00 |
|
Jonathan Puckey
|
d25ca35b37
|
Optimize comparison, by precalculating string comparison.
|
2011-05-19 23:56:29 +02:00 |
|
Jürg Lehni
|
1c479f315e
|
Add some comments to Item#clone().
|
2011-05-19 22:09:51 +01:00 |
|
Jürg Lehni
|
8a8c68b3d6
|
Define #clone() for various Gradient classes. Needs testing.
|
2011-05-19 22:02:26 +01:00 |
|
Jürg Lehni
|
38ddd34589
|
Replace beans access with internal property.
|
2011-05-19 22:00:03 +01:00 |
|
Jürg Lehni
|
276eb3301e
|
Define scafold #clone() function for the classes that still required a proper definition.
|
2011-05-19 21:56:49 +01:00 |
|