Commit graph

7480 commits

Author SHA1 Message Date
Jonathan Puckey
d0c2c5dd1d Add todo about speeding up canvas clearing. 2011-02-21 03:52:28 +01:00
Jonathan Puckey
b9d37e1b9b Only draw a CompoundPath if it is visible. 2011-02-21 03:52:03 +01:00
Jonathan Puckey
e898f0482c Revert previous commit of BouncingBalls example. 2011-02-21 03:37:35 +01:00
Jonathan Puckey
357a8af6ec Clean up white spaces. 2011-02-21 03:32:39 +01:00
Jonathan Puckey
4c84379b5b Remove unused variable. 2011-02-21 03:26:46 +01:00
Jonathan Puckey
514fe1f0e6 Implement group opacity by drawing onto a second canvas first. 2011-02-21 03:22:42 +01:00
Jonathan Puckey
6fcdb86e1c Implement CanvasProvider that provides reusable canvas elements. 2011-02-21 03:17:09 +01:00
Jonathan Puckey
3cd680c5f0 Merge remote branch 'origin/master' 2011-02-21 01:17:26 +01:00
Jonathan Puckey
5e271359b9 Add todo. 2011-02-21 01:16:53 +01:00
Jürg Lehni
77f1e22727 Merge remote-tracking branch 'origin/master' 2011-02-21 00:28:48 +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
Jonathan Puckey
14943f428f Remove logging statement. 2011-02-21 00:27:02 +01:00
Jonathan Puckey
5dcf416a7a Merge remote branch 'origin/master' 2011-02-21 00:26:03 +01:00
Jonathan Puckey
0458e3d916 Check for null in Color#read. 2011-02-21 00:25:45 +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
Jonathan Puckey
245c1e9b90 Merge remote branch 'origin/master' 2011-02-20 23:51:56 +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
Jonathan Puckey
4c4b8246ee Make sure the whole canvas is cleared. 2011-02-20 23:31:33 +01:00
Jonathan Puckey
e772038727 Update examples. 2011-02-20 23:28:38 +01:00
Jonathan Puckey
51ab66b0f8 Remove trailing comma in ToolEvent. 2011-02-20 21:22:31 +01:00
Jonathan Puckey
f83309d6b7 Optimize Path#draw. 2011-02-20 20:47:13 +01:00
Jonathan Puckey
cb40d3f6f4 Implement Symbol and PlacedSymbol. Add Document#symbols array. 2011-02-20 18:34:38 +01:00
Jürg Lehni
3374e50def Yet another optimisation in Path#transformContent(): Only transform handles if they are not [0, 0]. 2011-02-20 11:20:23 +01:00
Jürg Lehni
98837cbe98 Further optimise Path#transformContent() by reusing arrays and thus reducing memory footprint. 2011-02-20 11:15:40 +01:00
Jürg Lehni
c89d04dca6 Optimise Path#getBounds() by not relying on Point#add() but instead doing the calculations in direct math in the per-coordinate loop. 2011-02-20 02:05:40 +01:00
Jürg Lehni
6c4121db4b Optimise Path#transformContent() by using Matrix#transform() version that handles arrays of multiple point values for much improved performance. 2011-02-20 01:55:43 +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
Jonathan Puckey
a41a762237 Add example of radial gradients. 2011-02-19 22:52:27 +01:00
Jonathan Puckey
c0a93a8b66 Setters already handle point conversion. 2011-02-19 22:52:00 +01:00
Jonathan Puckey
10623ddb62 Implement Gradient, GradientColor, GradientStop. 2011-02-19 22:50:37 +01:00
Jonathan Puckey
95fa61f1ba Group: remove unneeded ctx commands. 2011-02-19 18:10:26 +01:00
Jonathan Puckey
a1bec86333 Have Layer extend Group. 2011-02-19 18:09:14 +01:00
Jonathan Puckey
57b7b364bc Nullify cssString cache when color/alpha values change. 2011-02-19 18:01:08 +01:00
Jonathan Puckey
8d570d0834 Fix script paths in examples. 2011-02-19 17:56:15 +01:00
Jonathan Puckey
2e5a84b9ba Update examples to include Color dependencies. 2011-02-19 17:54:10 +01:00
Jonathan Puckey
60c2d74c89 Adapt PathStyle tests to work with new Color classes. 2011-02-19 17:51:00 +01:00
Jonathan Puckey
2b1dee1bd4 Add opacity support in Path#draw. 2011-02-19 17:33:23 +01:00
Jonathan Puckey
c2849b3692 Change PathStyle, CompoundPath and Path to work with new Color classes. 2011-02-19 17:25:16 +01:00
Jonathan Puckey
c386f38b86 GrayColor: fix comment. 2011-02-19 17:22:20 +01:00
Jonathan Puckey
afceb19641 Add Color tests. 2011-02-19 17:11:17 +01:00
Jonathan Puckey
068c4dc1ca Add missing Color.js. 2011-02-19 17:10:26 +01:00
Jonathan Puckey
b944b82abe GrayColor: fix comments. 2011-02-19 17:08:08 +01:00
Jonathan Puckey
66105dd4ac Implement Color, RGBColor & GrayColor. 2011-02-19 17:05:39 +01:00
Jonathan Puckey
bd5c906047 Fix error in CompoundPath. 2011-02-19 14:12:05 +01:00
Jonathan Puckey
8af671bb41 Merge remote branch 'origin/master' 2011-02-19 14:07:26 +01:00
Jürg Lehni
451eaaa3c6 Add a TODO comment. 2011-02-19 13:07:24 +01:00
Jürg Lehni
6093151a3b Make sure that setting styles explicitely to null works. 2011-02-18 08:04:20 +00:00
Jürg Lehni
d02b5cd56a Yet another optimisation, by using the Base.each() sidecar (bind object) to fill Item fields, and inject it straight away upon returning from it. 2011-02-18 07:58:59 +00:00