Commit graph

24 commits

Author SHA1 Message Date
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
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
92bf51a7cc Simplify the way the paper namespace is created and populated. 2011-03-04 13:34:31 +00:00
Jürg Lehni
941c3c7346 Declare all classes as local variables, so they can be scoped. 2011-03-03 13:33:41 +00:00
Jonathan Puckey
0c1f29ce29 Implement CompoundPath and move most of PathItem into Path. 2011-02-17 13:36:40 +01:00
Jürg Lehni
9d1458e6ae Rely on new Array.isArray() now for array checks. 2011-02-15 23:15:13 +00:00
Jürg Lehni
91e8a3b652 Update Bootstrap to fix issues with beans (requiring definition of setter when getter is redefined in sub-class), and remove setBounds in PathItem that was introduced for that reason. 2011-02-14 10:28:27 +00:00
Jürg Lehni
ed55dc39fb Fix PathItem constructor by no redefining arguments variable that results in arguments array changing as well on some browsers. 2011-02-14 01:47:56 +00:00
Jürg Lehni
38f4dd353d Make Item#bounds setter work for PathItem, and add two TODO comments about Bootstrap shortcommings that cause it to break. 2011-02-14 01:24:22 +00:00
Jürg Lehni
3af5d549f6 Add comments about possible optimisations in PathItem#transformContent(). 2011-02-14 01:14:03 +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
420ffaa7ea No need to check for existance of handleIn/Out, as they are always defined. 2011-02-13 18:56:06 +00:00
Jürg Lehni
08d4826441 Reformating code to follow Scriptotgrapher coding conventions. 2011-02-13 16:26:24 +00:00
Jürg Lehni
d67055b09b Add documentation to PathItem#bounds. 2011-02-13 15:59:22 +00:00
Jürg Lehni
515439c4df Optimize PathItem#bounds by using less coordinate lookups. 2011-02-13 15:55:43 +00:00
Jürg Lehni
71d1ff3cb3 Make PathItem#getBounds() work for closed paths too. 2011-02-13 15:51:54 +00:00
Jürg Lehni
d59d514a55 Fix bug in PathItem#bounds (wrongly used variable name twice), now works properly for open paths. 2011-02-13 15:49:36 +00:00
Jürg Lehni
e08359f49d Beginning of PathItem#bounds and tests to go along with it, not functional yet. 2011-02-13 15:40:30 +00:00
Jürg Lehni
a30e4057e3 Fix PathItem constructor to support passing of segments both as array and arguments. 2011-02-13 15:39:24 +00:00
Jürg Lehni
771d9d0efe Fix a couple of bugs in shape drawing code, and switch to consistently use this.currentSegment rather than this._segments[this._segments.length - 1], to use the internal check for a starting point. 2011-02-13 15:12:25 +00:00
Jürg Lehni
4b2341b3c2 Add gettter/setters for Path#segments, and fix bug in Segment#previous. 2011-02-13 13:52:51 +00:00
Jonathan Puckey
9b5e18c795 PathItem: replace this.segments.push(segment) to this.addSegment(segment) 2011-02-12 19:08:34 +01:00
Jonathan Puckey
c0e2101c32 Clean up src directory and move Bootstrap.js into lib. 2011-02-12 17:59:39 +01:00
Renamed from src/PathItem.js (Browse further)