Jürg Lehni
|
df51b25fec
|
Add comment about plain properties that need to send _changed() notifications.
|
2011-05-14 17:57:23 +01:00 |
|
Jürg Lehni
|
de34f8c157
|
Clear Item#_index when removing item and simplify #getIndex().
|
2011-05-14 17:56:56 +01:00 |
|
Jürg Lehni
|
25c2d68f37
|
Switch to Item#_parent / #getParent() as property is read-only.
|
2011-05-14 17:56:14 +01:00 |
|
Jürg Lehni
|
a775e66632
|
Do not use #splice() for the initial push to the documents / children list.
|
2011-05-14 12:42:52 +03:00 |
|
Jonathan Puckey
|
34077dc901
|
Item#_getBounds: don't include bounds of hidden items.
|
2011-05-08 17:17:54 +01:00 |
|
Jürg Lehni
|
af8fd22ae2
|
Remove hyphen from event types, to go with the naming of the browser world more.
|
2011-05-08 15:35:10 +01:00 |
|
Jürg Lehni
|
20409f3084
|
Use Base.splice() for Layers too.
|
2011-05-07 17:27:19 +01:00 |
|
Jürg Lehni
|
566f52201c
|
Fix typo.
|
2011-05-07 17:11:12 +01:00 |
|
Jürg Lehni
|
d254d9542d
|
Add ChangeFlags.HIERARCHY, for future change notifications when children get rearranged.
|
2011-05-07 16:52:54 +01:00 |
|
Jürg Lehni
|
8c7b253bc2
|
Add Base.splice() to handle lists of items with _index referneces and use it for paper.documents and Item#children.
|
2011-05-07 16:11:05 +01:00 |
|
Jürg Lehni
|
79f55aa908
|
Fix recently introduce error in append().
|
2011-05-07 15:41:07 +01:00 |
|
Jürg Lehni
|
999fb129cc
|
Some code clean ups.
|
2011-05-07 15:40:02 +01:00 |
|
Jürg Lehni
|
9ef542ff9a
|
Add comment to #_canged().
|
2011-05-07 14:57:20 +01:00 |
|
Jürg Lehni
|
3ff2880ca8
|
Make Item#setDocument() and #removeFromParent() private.
|
2011-05-07 14:50:48 +01:00 |
|
Jürg Lehni
|
2f6fbcba74
|
Check result from removeFromParent().
|
2011-05-07 14:34:57 +01:00 |
|
Jürg Lehni
|
4e6e855461
|
Change '// TODO: Port' comments to '// PORT:'.
|
2011-05-07 14:18:27 +01:00 |
|
Jürg Lehni
|
dabc2b97ed
|
Implement change-notification in a proper way, using ChangeFlags that tell it what exactly has changed, and clearing caches accordingly.
|
2011-05-07 13:39:17 +01:00 |
|
Jürg Lehni
|
53cc1cd908
|
Apply #position optimisation through caching to all items, not just PlacedSymbol.
|
2011-05-07 13:13:19 +01:00 |
|
Jürg Lehni
|
1413094be2
|
Shorten PlacedSymbol#initialize().
|
2011-05-07 13:12:46 +01:00 |
|
Jürg Lehni
|
15b7cfec0b
|
Shorten Item#translate().
|
2011-05-07 13:09:04 +01:00 |
|
Jürg Lehni
|
72976f4191
|
Use internal _position in PlacedItem and transform it along when a matrix is applied.
|
2011-05-07 11:36:16 +01:00 |
|
Jürg Lehni
|
34785534e0
|
Use getPosition() rather than getBounds().getCenter().
|
2011-05-07 11:25:46 +01:00 |
|
Jürg Lehni
|
3a5aa466de
|
Add comments about things to change.
|
2011-05-07 10:07:21 +01:00 |
|
Jürg Lehni
|
6083faaf80
|
Use getter instead of beans property.
|
2011-05-07 09:56:27 +01:00 |
|
Jürg Lehni
|
5e4369d800
|
No need to call setter, we can set internal property directly here.
|
2011-05-07 09:55:56 +01:00 |
|
Jürg Lehni
|
c36db3a55c
|
Introduce private faster Matrix#_transform* methods that lack arguments checks, and use them internally.
|
2011-05-06 13:28:35 +01:00 |
|
Jürg Lehni
|
478002ea1c
|
Add comment about return undefined rather than null for unclear styles, and fix test.
|
2011-05-05 13:11:40 +01:00 |
|
Jürg Lehni
|
32ed418bdf
|
Remove unused parameter.
|
2011-05-05 11:20:37 +01:00 |
|
Jürg Lehni
|
a59fab0409
|
Only change style and notify item of change if it differs from current one.
|
2011-05-05 11:16:26 +01:00 |
|
Jürg Lehni
|
14549a383b
|
Improve Item#_getBounds().
|
2011-05-05 00:16:28 +01:00 |
|
Jürg Lehni
|
7334e824f5
|
Further optimise PathStyle code.
|
2011-05-05 00:08:55 +01:00 |
|
Jürg Lehni
|
23a29ced98
|
Optimise and comment PathStyle code.
|
2011-05-05 00:05:36 +01:00 |
|
Jürg Lehni
|
cc0f4a3f7e
|
Add PathStyle#clone().
|
2011-05-05 00:01:17 +01:00 |
|
Jürg Lehni
|
ab9cce137c
|
Separate PathStyle constructor into internal PathStyle.create(item, style) and public PathStyle(style).
|
2011-05-05 00:00:41 +01:00 |
|
Jürg Lehni
|
bdbbca487f
|
Remove rounding in drawSelectedBounds().
|
2011-05-04 17:44:08 +01:00 |
|
Jürg Lehni
|
49645f8a0d
|
Do not use short-forms and syntax magic in core API.
|
2011-05-03 09:34:07 +01:00 |
|
Jürg Lehni
|
52a73e86ce
|
Clean up code (for() -> for ()).
|
2011-05-03 08:54:13 +01:00 |
|
Jonathan Puckey
|
41120cf4d9
|
Various small code cleanups.
|
2011-05-02 12:23:42 +02:00 |
|
Jürg Lehni
|
cd58351864
|
Add comment about porting chainable calls back to Sg.
|
2011-04-30 22:30:54 +01:00 |
|
Jürg Lehni
|
4d999d57e2
|
Replace all type converting string compares with ===, !==.
|
2011-04-28 13:23:17 +01:00 |
|
Jonathan Puckey
|
ad8dfe91c7
|
Implement Raster#getStrokeBounds().
|
2011-04-28 12:56:08 +02:00 |
|
Jonathan Puckey
|
e1f5d4952d
|
Minor cleanups and fixes in Item.
|
2011-04-28 12:50:53 +02:00 |
|
Jonathan Puckey
|
861812f3ad
|
Fix bug in previous commit.
|
2011-04-28 12:39:55 +02:00 |
|
Jonathan Puckey
|
1666a36210
|
Have Item#_getBounds return a normal rectangle when called with includeStroke flag, since Item#getStrokeBounds is read only.
|
2011-04-28 12:38:57 +02:00 |
|
Jonathan Puckey
|
eed054af17
|
Item: implement getStrokeBounds, move getBounds functionality into _getBounds with an includeStroke flag. Also simplify the _getBounds code.
|
2011-04-28 12:33:03 +02:00 |
|
Jürg Lehni
|
d71450c0b1
|
Make sure selected argument is always a boolean.
|
2011-04-28 10:05:43 +01:00 |
|
Jürg Lehni
|
a9ea10ca7f
|
Move version of #getBounds() that handles children to Item, to eliminate duplicated code.
|
2011-04-28 10:04:36 +01:00 |
|
Jürg Lehni
|
6b6f27cb6e
|
Add TODOs about not returning -1 for undefined.
|
2011-04-27 17:53:59 +01:00 |
|
Jonathan Puckey
|
0700c51a85
|
Simplifications in Item#isDescendant & Item#isAncestor.
|
2011-04-27 16:16:05 +02:00 |
|
Jonathan Puckey
|
55fc2bc99c
|
Some minor changes to Item.
|
2011-04-27 16:10:23 +02:00 |
|