Commit graph

143 commits

Author SHA1 Message Date
Jürg Lehni
69a7d0bfd4 Implement a first version of Item#hitTest(), so far working only for Path items. Work in progress. 2011-07-07 22:14:58 +02:00
Jürg Lehni
9499125b22 Link Item <-> Symbol#definition <-> PlacedItem and make sure changed events get sent across the whole chain. 2011-07-04 21:27:42 +02:00
Jürg Lehni
79c0ad8cc5 Update copyright notices. 2011-07-01 12:17:45 +02:00
Richard D. Worth
ac39873693 Whitespace. Removed all trailing whitespace from .js files 2011-06-30 06:01:51 -04:00
Jürg Lehni
4c09514a8f Document Project. 2011-06-27 14:43:39 +02:00
Jürg Lehni
bd5329c537 Undo previous change again and document Project#remove(). 2011-06-27 14:43:28 +02:00
Jürg Lehni
d1305ff91c Remove the associated PaperScope when a Project is removed. 2011-06-27 14:35:30 +02:00
Jürg Lehni
7cd749e63d Change all documentation to new convention of defining @class outside injection scope, fix some comments and a few errors with examples. 2011-06-22 23:56:05 +01:00
Jürg Lehni
a7e57ada88 Big refactoring of the way Style objects are linked to their owning classes, implemented in a way that works across all sub classes. 2011-06-20 14:58:48 +01:00
Jürg Lehni
596cc8f83b Implement #_needsRedraw() mechanism in PaperScope and Project, to notify Views of redraws required by changes in appearance. 2011-06-19 23:03:18 +01:00
Jürg Lehni
25b31b6b7d Remove deprecated Project#redraw(). 2011-06-19 23:02:25 +01:00
Jürg Lehni
0df909dd71 Rename ChangeFlags -> ChangeFlag. 2011-06-19 22:21:14 +01:00
Jürg Lehni
cb61e8d452 Implement rest of ChangeFlags.HIERARCHY notifications. 2011-06-19 21:49:26 +01:00
Jürg Lehni
eb73c55736 Use Item#remove() instead of calling #setSelected(false) and #_removeFromParent(). 2011-06-19 16:13:38 +01:00
Jürg Lehni
2fe274741a Assume that _index is always correct and do not check for Base.splice() result in remove functions. 2011-06-19 16:08:51 +01:00
Jürg Lehni
3226147e00 Use a version of Bootstrap that always produces beans and remove all beans: true instructions. 2011-06-17 18:42:29 +01:00
Jürg Lehni
ffa79f4fd1 Clean up white spaces in comments. 2011-06-14 22:59:45 +01:00
Jürg Lehni
a32b687bfd Bigger refactoring of handling of segment selection: Have Path#_selectedSegmentState be the summed up value of all Segment's states, and compare it to segments.length * SelectionState.POINT in #fullySelected. 2011-06-14 15:37:25 +01:00
Jonathan Puckey
7591ccf285 Improve Project#currentStyle documentation. 2011-06-10 13:44:30 +02:00
Jonathan Puckey
7abdce4f9c Implement Symbol#place(position) 2011-06-03 22:25:37 +02:00
Jürg Lehni
29967153c3 Clean up TODO comments... 2011-06-01 10:49:43 +01:00
Jürg Lehni
2a5f885f50 "for var in" is good practise in such a case, as we don't need additional functionality of Base.each(). 2011-06-01 09:57:18 +01:00
Jürg Lehni
90631b9dd0 Merge remote-tracking branch 'origin/master' 2011-05-31 22:16:27 +01:00
Jonathan Puckey
17fcb923ff Documentation: rearrange @example tags, improve examples, rename boolean -> Boolean and misc smaller edits. 2011-05-30 19:42:17 +02:00
Jürg Lehni
6effdcd450 Move comment. 2011-05-30 17:04:15 +01:00
Jürg Lehni
78f43b52b9 Set default styles for Project#currentStyle. 2011-05-29 21:35:46 +01:00
Jonathan Puckey
8e84c79aa6 Documentation: capitalize 'string' and 'number' types. 2011-05-27 20:15:15 +02:00
Jonathan Puckey
ca3230c1ad Documentation: reorder functions, add group titles and todos. 2011-05-27 13:28:13 +02:00
Jonathan Puckey
b52421c282 Project documentation: use Type[] for 'typed' arrays. 2011-05-26 16:49:19 +02:00
Jonathan Puckey
8ab56a7ebd Some edits to Project documentation. 2011-05-26 00:57:58 +02:00
Jonathan Puckey
7910d134a7 Documentation: add Project Hierarchy properties. 2011-05-26 00:54:25 +02:00
Jonathan Puckey
5bd935be75 Symbol documentation & move Symbol#clone below Symbol#setDefinition. 2011-05-23 18:29:44 +02:00
Jonathan Puckey
14c693aa7c Add Project documentation. 2011-05-23 18:13:03 +02:00
Jonathan Puckey
1a8e81bc22 Project#selectAll: remove todo. 2011-05-21 21:41:10 +02:00
Jonathan Puckey
08f3ac197b Symbol#setDefinition: fix accidental beans access and add comment. 2011-05-21 21:33:43 +02:00
Jonathan Puckey
2f7a98f7d6 Have Symbol#setDefinition deselect the passed item. 2011-05-21 21:32:26 +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
ec0484e798 Define Symbol#clone(), needs testing. 2011-05-20 08:55:44 +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
Jürg Lehni
26269d394a Rename project/ProjectView -> ui/View. 2011-05-17 13:29:07 +01:00
Jürg Lehni
7b4dd222ac Completely decouple ProjectView from Project. 2011-05-17 13:25:46 +01:00
Jürg Lehni
c4203fe174 Change the way associated PathStyles are created and updated. 2011-05-16 19:21:36 +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