Commit graph

96 commits

Author SHA1 Message Date
kangax
eba95c6ee7 Loading data from json (via loadFromJSON rather than loadFromDatalessJSON) should preserve z-index order of objects
(but ideally, we need to get rid of duplication in `loadFromJSON` and `loadFromDatalessJSON`).
2010-08-30 19:11:14 -04:00
kangax
fea32f32a0 Add note about IE9 problem with images. 2010-08-30 19:08:18 -04:00
kangax
53b1a90516 Fix paths of demo .js files. 2010-08-27 15:01:29 -04:00
kangax
43d11b6914 In demo, notify about inability to serialize canvas to an image when toDataURL is not supported. 2010-08-27 13:25:10 -04:00
kangax
13d87dd060 Extend canvas element through excanvas' initElement in fabric.Element.supports. 2010-08-27 13:19:36 -04:00
kangax
b07fcb52a0 IE9PP3 -> IE9PP4; Add links to demos. 2010-08-27 13:10:23 -04:00
kangax
c6f4f3f61d Build distribution files 2010-08-27 12:30:13 -04:00
kangax
2d7d61d82a Do not set background color value to "transparent", as that results in IE8 painting black. Use "rgba(0,0,0,0)" instead. 2010-08-27 12:29:06 -04:00
kangax
7d2c7a35f2 Various IE fixes (most of the demo pages now function). 2010-08-27 12:27:49 -04:00
kangax
b7d7b9fbc8 Slightly shorter console fallback declaration. 2010-08-27 12:26:39 -04:00
kangax
9d7254d86e Add distribution versions minified via uglify.js 2010-08-27 12:26:12 -04:00
kangax
bd5d670cbc Add another benchmark (this time with continuous animation and fps indicator). Start experimenting with free drawing via brush. 2010-08-11 22:25:58 -04:00
kangax
b04d187a04 Make free drawing path round and make sure something it's drawn immediately, on mousedown, not just on mousemove. 2010-08-10 23:26:41 -04:00
kangax
5f18c43e91 More free-drawing tweaks. Paths can now be created with different stroke width and color. Add these options to demo. 2010-08-10 19:25:14 -04:00
kangax
9d018caf40 First draft of support for free drawing. 2010-08-10 18:29:33 -04:00
kangax
81cf81b34d Add support for locking of movement (horizontal or vertical), rotation and scaling of objects. 2010-08-04 23:23:16 -04:00
kangax
1b824736bd Add another shape and an opacity slider (when input[type=range] is supported). 2010-08-03 01:27:41 -04:00
kangax
d869eac11f Add another (more complex) shape to demo page. 2010-08-02 20:15:23 -04:00
kangax
8afe03eb67 More demo page improvements and fixes. 2010-08-02 16:33:27 -04:00
kangax
36a50ab3e8 Rendering fixes. 2010-08-02 14:50:07 -04:00
kangax
ef73b46f7c Fix simple shapes (triangle, circle, etc.) being drawn with corners while in selection. Minor perf. improvements. 2010-08-02 14:13:07 -04:00
kangax
37abb1b8d8 Load demo images locally (to prevent SOP errors when serializing an image). 2010-08-02 11:00:38 -04:00
kangax
7e7a7ff719 Math.floor --> ~~ for slight perf. increase (only do this for positive numbers). 2010-07-31 14:06:10 -04:00
kangax
4ca51a5f81 Add demo.css 2010-07-31 13:58:05 -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
194d71d628 Start experimenting with "free drawing". 2010-07-30 19:41:17 -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
ef93d70c52 Update distribution and minified files. 2010-07-27 14:11:38 -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
6593983196 Change copyright to include development start date. Remove old, unused files from /test/lib. 2010-07-26 16:35:58 -04:00
kangax
9cc06090b9 Update distribution and minified files. 2010-07-26 16:33:21 -04:00
kangax
69d83c6484 Add information about test suite results in IE 6 & 7. Few tweaks to make test suite run in IE6. 2010-07-26 15:39:00 -04:00
kangax
6a5cf9b0d4 Add fabric.Triangle to the API outline section of README. 2010-07-26 15:10:39 -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
8388559b42 Add alternative minified version of fabric (via google closure compiler) and corresponding gzipped versions (for comparison). Do not set angle of circles in benchmark. 2010-07-26 01:43:25 -04:00
kangax
34777a0fae Change benchmark to populate not only squares but circles and triangles as well (+ better opacity and positioning randomization). 2010-07-26 01:33:01 -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
fa757b1717 Whoops, fix switch fallthrough bug. 2010-07-24 01:10:47 -04:00
Juriy Zaytsev
8a69756297 Make it possible to add images on canvas in demo. 2010-07-24 01:09:05 -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
1264f05aa4 Some more renaming. 2010-07-24 00:34:18 -04:00
Juriy Zaytsev
33ad430a62 Rename test files: canvas_* --> * 2010-07-24 00:15:13 -04:00