Commit graph

7481 commits

Author SHA1 Message Date
Jonathan Puckey
38ada4abc1 Improve Item#isDescendant(item) and introduce Item#isAncestor(item). 2011-02-12 16:41:57 +01:00
Jonathan Puckey
e9e987f304 Fix Item#isDescendant(item). 2011-02-12 16:36:48 +01:00
Jonathan Puckey
d7fc9cf481 Introduce Paper object that keeps track of documents and which documenti is active. Newly created items are automatically appended to the children list of the active document's activeLayer. 2011-02-12 16:20:10 +01:00
Jonathan Puckey
be4681fecd Remove temp.html 2011-02-12 16:16:15 +01:00
Jonathan Puckey
72c3ac4016 Add Item tests 2011-02-11 18:50:26 +01:00
Jonathan Puckey
538bda6a09 Add Layer & Group script tags to Examples 2011-02-11 18:50:08 +01:00
Jonathan Puckey
62409a18d4 Layer.js: pass on ctx in draw function 2011-02-11 18:49:04 +01:00
Jonathan Puckey
d85217c40d Fix small error in Doc.js 2011-02-11 18:46:49 +01:00
Jonathan Puckey
31c51ea9eb Add a layer to the document's children list when created and support activeLayer. 2011-02-11 18:38:44 +01:00
Jonathan Puckey
c9c27f7be2 Initial support for Layer and Group 2011-02-11 18:37:36 +01:00
Jonathan Puckey
d63cac7561 Implement more of Item 2011-02-11 18:36:03 +01:00
Jonathan Puckey
34b9258e8e Have PathItem constructor call this.base() and don't draw item when it is hidden 2011-02-11 18:30:48 +01:00
Jonathan Puckey
b47e896389 Implement Bootstrap.js changes:
Fix Firefox support for beans through __defineGetter/Setter__.
Fix redefinition of properties on Safari through call to delete first.
2011-02-11 18:08:35 +01:00
Jonathan Puckey
53d61cceb5 Use properties instead of calling get[Property] and set[Property] in tests. Also add path.currentSegment test. 2011-02-11 15:02:35 +01:00
Jonathan Puckey
17f7caf0b7 Use properties instead of get[Property] and set[Property] in examples 2011-02-11 14:58:53 +01:00
Jonathan Puckey
0221dd7fb7 Have predefined shape constructors use bean properties 2011-02-11 14:41:32 +01:00
Jonathan Puckey
0f21520800 Implement getters and setters 2011-02-11 14:40:36 +01:00
Jonathan Puckey
59a4c1183b Switch Bootstrap.js version to one with beans support 2011-02-11 14:20:34 +01:00
Jonathan Puckey
e234b3735c Have the predefined shape constructors return a path instead of inheriting from it 2011-02-11 11:49:24 +01:00
Jonathan Puckey
0d1f0bf5a1 Add insert function for PathItem 2011-02-09 01:12:03 +01:00
Jonathan Puckey
0c53c8b29e Add a few more examples. 2011-02-09 01:10:55 +01:00
Jonathan Puckey
440db1c1e3 Remove try/catch clauses and add missing check for existance of onMouseUp 2011-02-09 01:07:29 +01:00
Jonathan Puckey
0cefc146bb Add a few mouse tool examples. 2011-02-08 13:16:43 +01:00
Jonathan Puckey
cac4bea955 Move examples into subfolders. 2011-02-08 13:16:26 +01:00
Jonathan Puckey
7e285abe7a Add initial support for mouse events. 2011-02-08 13:15:55 +01:00
Jonathan Puckey
cb5a8aa2fc Rename Doc#draw to Doc#redraw 2011-02-08 13:15:27 +01:00
Jonathan Puckey
cbb10922c5 Include the full Bootstrap library for now to support mouse events. 2011-02-08 13:14:52 +01:00
Jonathan Puckey
3bb44f89a3 Add round rectangle example 2011-02-07 20:16:51 +01:00
Jonathan Puckey
fff138d968 Remove SegmentList.js dependencies 2011-02-07 20:16:29 +01:00
Jonathan Puckey
5a309f67dc Remove SegmentList.js for now. 2011-02-07 19:53:27 +01:00
Jonathan Puckey
b19ba2014c Initial commit 2011-02-07 19:28:09 +01:00