Commit graph

24 commits

Author SHA1 Message Date
Jonathan Puckey
5a786c300b Implement Matrix#applyToContext. 2011-02-21 19:03:57 +01:00
Jürg Lehni
8cdd7fe2b2 Remove unnecessary call of new Point(). 2011-02-21 00:28:36 +01:00
Jürg Lehni
dc410b6894 Merge rotateAround() and rotate(). 2011-02-21 00:28:13 +01:00
Jürg Lehni
2ebe4a18da Add Point#isInside(). 2011-02-21 00:24:17 +01:00
Jürg Lehni
04d2ed29c6 Move private createPoint() to Point.create(). 2011-02-21 00:23:36 +01:00
Jürg Lehni
9aabf30800 Optimise Point code more by using an internal createPoint method that bypasses initialize completely. 2011-02-20 23:41:39 +01:00
Jürg Lehni
ed752ed744 Pass ctor.dont to all constructor calls that are followed with explicit initialize() calls afterwards, to make sure it is only called once. 2011-02-20 01:45:53 +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
99bde74a10 Improve Matrix constructor to read from arrays too. 2011-02-15 23:15:28 +00: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
f0d4374dc4 Improve translate() calls by directly calling Point objects and thus not relying on Point.read() internally. 2011-02-15 22:53:05 +00:00
Jürg Lehni
27f291ec80 Clean up comments. 2011-02-15 22:51:02 +00:00
Jürg Lehni
14bfb4c78e Make Matrix#toString() behave the same as in Scriptographer. 2011-02-15 22:35:25 +00:00
Jürg Lehni
1d0321bc69 Change Size constructor to reflect logic in Point constructor. 2011-02-14 10:32:42 +00:00
Jürg Lehni
12d82ece56 Define beans in Matrix. 2011-02-14 01:52:53 +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
6ef5183731 Fix Rectangle#center (use + instead of -). 2011-02-13 19:22:48 +00:00
Jürg Lehni
20746ad3a7 Clea up white spaces. 2011-02-13 19:21:56 +00:00
Jürg Lehni
7370326cb2 Add space after beans: true. 2011-02-13 18:52:17 +00:00
Jürg Lehni
eeb7d377e6 Add optional index argument to static read() functions, so points, rectangle, sizes and segments can be read from any index in the arguments array. 2011-02-13 18:15:55 +00:00
Jürg Lehni
08d4826441 Reformating code to follow Scriptotgrapher coding conventions. 2011-02-13 16:26:24 +00:00
Jürg Lehni
4f4261488e Fix issues with _angle caching in Point. 2011-02-13 16:24:39 +00:00
Jürg Lehni
0ac19a8e82 Optimise read() functions to only convert if argument is not of desired type already. 2011-02-13 16:05:19 +00:00
Jonathan Puckey
c0e2101c32 Clean up src directory and move Bootstrap.js into lib. 2011-02-12 17:59:39 +01:00