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
|
15b7cfec0b
|
Shorten Item#translate().
|
2011-05-07 13:09:04 +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
|
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
|
14549a383b
|
Improve Item#_getBounds().
|
2011-05-05 00:16:28 +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 |
|
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
|
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 |
|
Jürg Lehni
|
bdfe35d93a
|
Consistently name local context variables 'ctx', to save line size and acknowledge the fact that Canvas contexts have a funny API design.
|
2011-04-26 15:39:16 +01:00 |
|
Jonathan Puckey
|
be8ee90f75
|
Document: use a hash for Document#_selectedItems to speed up adding to and removing from it.
|
2011-04-21 20:43:42 +02:00 |
|
Jonathan Puckey
|
cf541901dd
|
Rename getSelected methods to isSelected.
|
2011-04-21 19:51:49 +02:00 |
|
Jonathan Puckey
|
73b97dbfba
|
Implement segment point selection.
|
2011-04-21 18:06:06 +02:00 |
|
Jonathan Puckey
|
517793c48a
|
Implement Item#get/setDocument and Document#selectedItems.
|
2011-04-21 15:47:00 +02:00 |
|
Jonathan Puckey
|
1d92aea8e2
|
Fix Item#setSelected.
|
2011-04-20 16:00:08 +02:00 |
|
Jonathan Puckey
|
3fcfe3adbb
|
Implement drawing of selection of PlacedSymbol & Raster items.
|
2011-04-18 18:46:39 +02:00 |
|
Jonathan Puckey
|
be9f312110
|
Implement a first version of drawing path selection.
|
2011-04-17 18:46:35 +02:00 |
|
Jonathan Puckey
|
8a113a1c84
|
Item: clean up white space.
|
2011-04-12 14:37:52 +02:00 |
|
Jonathan Puckey
|
d02885cba7
|
Implement Item#isParent and add tests for it.
|
2011-04-11 19:42:03 +02:00 |
|
Jürg Lehni
|
7ae504e51f
|
Add support for Item#removeOnMove().
|
2011-03-20 00:11:02 +00:00 |
|
Jürg Lehni
|
d5fa3d7ae6
|
Merge remote-tracking branch 'origin/master'
Conflicts:
src/item/Raster.js
|
2011-03-13 18:34:05 +01:00 |
|
Jürg Lehni
|
9d4af0ce9e
|
Clean up recently caused Base.read() mess by introducing _readNull property,m setting it to true on Color and reverting to previous behavior for Point, Size and Rectangle, where dimensions of 0 are read by default if nothing is provided.
|
2011-03-13 18:31:00 +01:00 |
|
Jonathan Puckey
|
b643fdfc1f
|
Implement Item#removeOn and Item#getId.
|
2011-03-09 19:35:03 +01:00 |
|
Jürg Lehni
|
6a67052090
|
Update copyright / licensing comments.
|
2011-03-08 01:41:50 +00:00 |
|
Jürg Lehni
|
e1a7aff2f0
|
Add copyright notice and license file.
|
2011-03-07 00:50:44 +00:00 |
|
Jürg Lehni
|
2d4cf2cc72
|
Replace beans access to Item#position with getter calls.
|
2011-03-06 21:12:11 +00:00 |
|
Jonathan Puckey
|
336c9e1441
|
Fix bug in setHidden where Item#visible was being interpreted as a bean.
|
2011-03-06 14:50:57 +01:00 |
|
Jürg Lehni
|
0a690788ef
|
Allow chaining of Item transform functions.
|
2011-03-06 11:42:08 +00:00 |
|
Jürg Lehni
|
cc134de058
|
Remove trailing collon.
|
2011-03-05 13:51:23 +00:00 |
|
Jürg Lehni
|
836ee492ae
|
More beans related refactoring.
|
2011-03-05 02:40:38 +00:00 |
|