kangax
7e7a7ff719
Math.floor --> ~~ for slight perf. increase (only do this for positive numbers).
2010-07-31 14:06:10 -04:00
kangax
9a9605fecd
Alias Math.* methods for slight perf. increase.
...
Remove `fastestClearingMethod` test, as webkit has rendering bugs with `canvas.width = canvas.width` type of clearing.
Rename some properties/methods in `fabric.Element` from `_oXxxxx` & `_aXxxxx` to `_xxxxx`.
Add test for `fabric.Element::onFpsUpdate`.
2010-07-31 13:55:10 -04:00
kangax
89e61ed6d0
Add onFpsUpdate callback to fabric.Element. Display FPS in demo.
2010-07-30 19:39:12 -04:00
kangax
3adc592778
Make loadFromDatalessJSON set design background. Make sure its callback is invoked even if there are no objects in json.
2010-07-30 09:50:23 -04:00
kangax
a2bb25043c
toJSON now returns object instead of a string (fixes bug with JSON.stringify returning incorrect — double — serialization of an object).
2010-07-29 13:50:09 -04:00
kangax
2c8540f3b4
Forgot to pass callbacks to fxCenterObjectH and fxCenterObjectV.
2010-07-28 16:35:01 -04:00
kangax
536d532d41
Various compatibility fixes. Add fabric.util.falseFunction.
2010-07-27 17:58:23 -04:00
kangax
313cffa57f
Remove try/catch from around event handlers (for perf. reasons). Remove APE.anim references from fxCenterObjectH and fxCenterObjectV.
2010-07-27 14:07:59 -04:00
kangax
0583d7718d
Some more aliasing. Build + minify.
2010-07-26 19:24:16 -04:00
kangax
ad679a6f87
Create local aliases of some of the "long" methods.
2010-07-26 19:20:19 -04:00
kangax
04ec1688e9
Remove some unused "stub" code.
2010-07-26 18:49:51 -04:00
kangax
a535b004e6
Fix few Prototype dependencies.
2010-07-26 18:00:02 -04:00
kangax
e5fa742aff
Alias some methods in fabric.Element for perf. reasons. Few improvements to demo.
2010-07-26 14:58:49 -04:00
kangax
9f77d3a0a5
Add google closure compiler and explain how to minify fabric.js with it. Fix few omissions in jsdoc comments.
2010-07-26 00:48:26 -04:00
Juriy Zaytsev
5f04e2d495
Add fabric.Triangle class (untested for now). Start beefing up demo.
2010-07-24 01:03:28 -04:00
Juriy Zaytsev
a0221539e7
Make sure line color can be set via "fill" property.
2010-07-23 23:42:06 -04:00
Juriy Zaytsev
492eda82a6
Fix loading order of objects in loadFromDatalessJSON. Fix few unit tests.
2010-07-13 16:17:33 -04:00
Juriy Zaytsev
2340a98526
Rename canvas_*.class.js files to just *.class.js
2010-07-09 21:50:13 -04:00
Juriy Zaytsev
2004756f65
Add copyright comment. Update minified version.
2010-07-09 21:25:28 -04:00
Juriy Zaytsev
2e72a4d8c5
Rename Canvas.* to fabric.* (lowercased name makes more sense since Canvas is not a constructor).
2010-07-09 19:43:50 -04:00
Juriy Zaytsev
4b5ac284e8
Fix remaining failing tests.
2010-07-09 18:58:33 -04:00
Juriy Zaytsev
f96efe8e3d
Replace APE animation with Canvas.base.animate in Canvas.Element::fxStraighten.
2010-07-09 14:26:49 -04:00
Juriy Zaytsev
90d8545644
Add Canvas.base.animate (still needs tests!).
2010-07-09 14:22:35 -04:00
Juriy Zaytsev
7242ea93de
Change Prototype unit testing framework to QUnit; change all tests accordingly.
2010-07-09 10:21:40 -04:00
Juriy Zaytsev
be20251d85
Remove few more prototype-isms, start transitioning to QUnit (it's not ideal, but should do for now).
2010-06-26 22:57:02 -04:00
Juriy Zaytsev
8ee515e647
Add Canvas.base.request and finally make demo page work. Remove remnants of Prototype.js from fabric.js.
2010-06-24 03:37:02 -04:00
Juriy Zaytsev
9e1bf5b322
Replace Event.stopObserving with Canvas.base.removeEventListener.
2010-06-24 02:16:52 -04:00
Juriy Zaytsev
61fbfae2d8
Start experimenting with scout.js (on-demand code fetching based on feature test). Remove some redundant code from Canvas.Element. Add demo folder to /test.
2010-06-17 13:15:51 -04:00
Juriy Zaytsev
05a6aa4d42
Prototype.js and APE.js are no longer dependencies (shrinking overall size of fabric.js by ~150KB). Add json2.js and a simple base library (still needs tests).
2010-06-17 10:00:47 -04:00
Juriy Zaytsev
fa4224649c
Building dist file is now done via sprockets.
2010-06-11 19:37:06 -04:00
Juriy Zaytsev
fcb2877557
Replace $w with split(' ') (to remove dependency on global, non-descriptive variable and Prototype in general). Add few missing console.warn statements when double initialization is attempted.
2010-06-11 10:29:12 -04:00
Juriy Zaytsev
0394fb94ad
Small tweaks: normalize whitespace and brackets, make initialization of "classes" consistent.
2010-06-10 13:57:59 -04:00
Juriy Zaytsev
ca0df1bd15
"Collapse" few var statements.
2010-06-10 11:49:13 -04:00
Juriy Zaytsev
36416e65a3
Split 2D.js into canvas_point.class.js and canvas_intersection.class.js
2010-06-10 11:37:51 -04:00
Juriy Zaytsev
ea4e1e3a9c
Add W3C SVG 1.2 Tiny test suite
2010-06-10 11:14:53 -04:00
Juriy Zaytsev
1893b691c5
Delete bezier.js
2010-06-09 23:58:41 -04:00
Juriy Zaytsev
3df6dadf08
Fix inconsistent whitespace in 2D.js
2010-06-09 23:32:12 -04:00
Juriy Zaytsev
770e47b115
Add a couple more dependencies to /lib. Remove unneeded code from 2D.js and unminify it.
2010-06-09 23:30:25 -04:00
Juriy Zaytsev
c519c147aa
Initial import of source files.
2010-06-09 18:34:55 -04:00