Jürg Lehni
|
5593eb94d0
|
Simplify Item#_removeFromParent().
|
2011-05-14 18:11:31 +01:00 |
|
Jürg Lehni
|
4e059af684
|
Reassign Item#_index in #reverseChildren().
|
2011-05-14 18:07:45 +01:00 |
|
Jürg Lehni
|
0bab694a01
|
Rename Item#children to private Item#_children and add #getChildren getter.
|
2011-05-14 18:07:10 +01:00 |
|
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 |
|
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
|
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 |
|
Jürg Lehni
|
02bf012aa5
|
Simplify #appendTop / Bottom and #moveAbove / Bellow by using generator functions.
|
2011-03-05 01:50:56 +00:00 |
|
Jürg Lehni
|
ce74516228
|
Remove more beans access, this time related to various PathStyle getters / setters.
|
2011-03-05 01:36:27 +00:00 |
|
Jürg Lehni
|
c313e702c9
|
Clean up a whole lot of beans access, and in the process of the refactoring improve canvas, context, size and bounds handling in Raster and PlacedSymbol.
|
2011-03-05 01:26:12 +00:00 |
|
Jürg Lehni
|
1d858147ec
|
Stop using style beans internally.
|
2011-03-05 00:23:16 +00:00 |
|
Jürg Lehni
|
44ab8ed3a0
|
Refer to currentStyle through getters and setters, not through beans.
|
2011-03-05 00:03:28 +00:00 |
|
Jürg Lehni
|
be6d60102c
|
Make sure Item#children is always checked for != null and simplify many of the DOM methods.
|
2011-03-04 21:34:14 +00:00 |
|
Jürg Lehni
|
e66dd46b9c
|
Start improving Item#clone() / #copyTo().
|
2011-03-04 20:57:16 +00:00 |
|
Jürg Lehni
|
92bf51a7cc
|
Simplify the way the paper namespace is created and populated.
|
2011-03-04 13:34:31 +00:00 |
|
Jürg Lehni
|
2b6dede883
|
Clean up white-spaces and line lengths.
|
2011-03-03 22:45:17 +00:00 |
|
Jürg Lehni
|
e9881c02fc
|
Merge remote-tracking branch 'origin/master'
|
2011-03-03 16:33:01 +00:00 |
|
Jürg Lehni
|
5ed30d7089
|
Make sure all files end on empty line.
|
2011-03-03 16:32:55 +00:00 |
|
Jürg Lehni
|
d088dc629e
|
Rename Paper to paper, implement it as an object literal and add paper.populate() and paper.install() methods that do the bootstraping.
|
2011-03-03 16:21:17 +00:00 |
|
Jonathan Puckey
|
00bf9aa88c
|
Fall back to Item#bounds if the Item doesn't have Item#strokeBounds in Item#draw.
|
2011-03-03 17:05:12 +01:00 |
|
Jonathan Puckey
|
2f9531810c
|
Implement todos about using strokeBounds instead of bounds.
|
2011-03-03 14:43:37 +01:00 |
|
Jürg Lehni
|
941c3c7346
|
Declare all classes as local variables, so they can be scoped.
|
2011-03-03 13:33:41 +00:00 |
|
Jürg Lehni
|
53b091b871
|
Rename #transformContent() to #_transform(), to make sure it's supposed to be a private method.
|
2011-03-03 12:47:55 +00:00 |
|
Jürg Lehni
|
07fcc000cf
|
Move the new refactored CanvasDraw functionality to static Item.draw() and #draw() instance methods on each prototype.
|
2011-03-03 12:19:43 +00:00 |
|
Jonathan Puckey
|
74f797a9dd
|
Clean up whitespace.
|
2011-02-28 18:30:08 +01:00 |
|
Jonathan Puckey
|
12859d7a24
|
Item: pass on param object to Item#draw.
|
2011-02-28 16:41:24 +01:00 |
|
Jürg Lehni
|
506e7c036c
|
Merge remote-tracking branch 'origin/master'
|
2011-02-26 17:27:12 +01:00 |
|
Jürg Lehni
|
b1b923ab27
|
Add comment about problems with Base.clone().
|
2011-02-26 17:27:07 +01:00 |
|
Jonathan Puckey
|
71bf8dba88
|
Item: remove logging statement.
|
2011-02-26 02:04:18 +01:00 |
|
Jonathan Puckey
|
c9d04d33f8
|
Implement BlendMode class.
|
2011-02-25 12:47:52 +01:00 |
|
Jonathan Puckey
|
d9b75a7232
|
Implement Item#reverseChildren() and add tests for it.
|
2011-02-24 19:31:07 +01:00 |
|
Jonathan Puckey
|
d77741db4f
|
Implement item#rasterize(resolution).
|
2011-02-24 19:22:19 +01:00 |
|
Jonathan Puckey
|
014d1053a7
|
Fix Item#isDescendant / Item#isAncestor, implement Item#isGroupedWith and add tests.
|
2011-02-24 18:09:48 +01:00 |
|
Jonathan Puckey
|
6cea290dd8
|
Item: add todo's for missing functionalities.
|
2011-02-24 17:42:32 +01:00 |
|
Jonathan Puckey
|
3ae20c8a4b
|
Item: undo mistaken changes to transform comments.
|
2011-02-16 22:35:53 +01:00 |
|
Jonathan Puckey
|
4000853c2f
|
Implement PathStyle and Document#currentStyle.
|
2011-02-16 22:09:51 +01:00 |
|
Jürg Lehni
|
b0b9594f1e
|
Add support for single-parameter calls to scale() and shear(), both in Matrix and Item (supporting optional center parameter too).
|
2011-02-15 23:23:40 +00:00 |
|
Jürg Lehni
|
9a9005a604
|
Correct comments about transform flags.
|
2011-02-15 22:57:12 +00:00 |
|
Jonathan Puckey
|
2b626be502
|
Item: use internal _clipMask variable, so we don't collide with getters/setters.
|
2011-02-15 12:05:39 +01:00 |
|
Jürg Lehni
|
87f146fb44
|
Have Item#setPosition use Point.read() for point conversion.
|
2011-02-14 01:17:43 +00:00 |
|
Jürg Lehni
|
50f285798c
|
Fix Item#setPosition and Item#setBounds to actually work (unfinished porting work).
|
2011-02-14 01:14:43 +00:00 |
|
Jürg Lehni
|
ee8c30b518
|
Implement Matrix, Item#position, Item#bounds (setter too), Item#transform(), Item#scale(), Item#rotate(), Item#transalte() and Item#shear(). Some of it work in progress.
|
2011-02-14 01:05:16 +00:00 |
|
Jürg Lehni
|
604ff7824c
|
Add comment about ideally not relying on parent.children.indexOf for getIndex().
|
2011-02-13 18:51:49 +00:00 |
|
Jürg Lehni
|
08d4826441
|
Reformating code to follow Scriptotgrapher coding conventions.
|
2011-02-13 16:26:24 +00:00 |
|
Jonathan Puckey
|
e2c77a866d
|
Nullify path parent when removed.
|
2011-02-12 19:45:11 +01:00 |
|
Jonathan Puckey
|
c0e2101c32
|
Clean up src directory and move Bootstrap.js into lib.
|
2011-02-12 17:59:39 +01:00 |
|