Commit graph

219 commits

Author SHA1 Message Date
kangax
2be834d582 Make sure tests continue running even if image is not loaded. 2011-05-11 18:42:19 -04:00
kangax
f47a4eff0b Bump timeout interval for large images to load. 2011-05-11 18:38:54 -04:00
kangax
6af48ed1c7 Fix couple more unit tests. 2011-05-11 18:34:52 -04:00
kangax
3ea4a4ad95 Fix majority of failing unit tests. 2011-05-11 18:17:21 -04:00
kangax
1f0b1280d4 Add unit tests for fabric.Object#selectable; make sure "selectable" is part of toJSON/toObject output. Fix failing fabric.Object unit tests. 2011-05-11 17:48:43 -04:00
kangax
79e37bbf30 Add fabric.Object#selectable Boolean property (true by default), which can be used to control object selection. 2011-05-11 15:56:49 -04:00
kangax
7041b64ad6 Update minified file. 2011-05-10 19:02:31 -04:00
kangax
a7f7bdaf80 Make _removeDefaultValues more flexible. 2011-05-10 16:41:51 -04:00
kangax
39184f5ac4 Version 0.2 --> 0.2.1 2011-05-10 16:27:00 -04:00
kangax
5a981e51c2 Version 0.2 --> 0.2.1 2011-05-10 16:23:26 -04:00
kangax
14e988aa9f lockScaling constrain is now broken into lockScalingX and lockScalingY ones. Add lockUniScaling to be able to prevent non-proportional scaling of an object. lockHorizontally is now lockMovementX and lockVertically is now lockMovementY for consistency. Change demo accordingly. 2011-05-05 17:02:46 -04:00
kangax
b96c91a56f Try using requestAnimationFrame for animation test. 2011-05-03 19:03:10 -04:00
kangax
5c7440cc13 Fix leaking of one element's attribute values onto another (following) element during SVG parsing. 2011-04-29 16:44:49 -04:00
kangax
7a28d275a3 Add test for issue #25 about parseSVGDocument and rect element. 2011-04-28 16:37:21 -04:00
kangax
74dcd851dd Animation benchmark now allows to dynamically change scale of animated objects, load different shapes, and change canvas size. This allows us to see how all these aspects (e.g. canvas size or shape size) influence canvas rendering performance. 2011-04-23 17:39:56 -04:00
kangax
e61f46b44c Add "lineHeight" to fabric.Text options. Add slider to control line height of selected text to demo. 2011-04-20 16:36:31 -04:00
kangax
db2c4ff9ce Update README with links to twitter, google group and presentation. 2011-04-20 15:28:52 -04:00
kangax
cf1c1b2808 Disable clipping in demo. 2011-04-11 15:21:07 -04:00
kangax
a29aa82518 Add experimental clipping support. 2011-04-11 02:41:55 -04:00
kangax
cc0c5085d7 Add fabric.Circle#getRadiusX, fabric.Circle#getRadiusY methods. 2011-04-09 17:37:35 -04:00
kangax
752eff298d Few small IE fixes. 2011-03-29 13:27:28 -04:00
kangax
9853b4a18f Add rudimentary support for stroke style. Fix IE errors on a demo page. 2011-03-28 18:57:40 -04:00
kangax
91205b4bb6 More text enhancements and fixes. Demo page now has italic/underline/overline/line-through and shadow buttons for text manipulations. 2011-03-21 17:24:36 -04:00
kangax
b60edcc379 Much more usable multiline text. 2011-03-21 03:53:23 -04:00
kangax
ae4f038c85 Minor README updates. 2011-03-17 18:05:37 -04:00
kangax
4046084994 Revamp canvas initialization (now simpler, more maintainable, and makes more sense after removing old cruft). Bump version to 0.2. Back. compat warning: wrapping canvas container now has a "canvas-container" class instead of "canvas_container" (the actual class name can also be changed via fabric.Element#CONTAINER_CLASS); canvas background element is no longer created (as it wasn't really used). 2011-03-17 17:59:52 -04:00
kangax
7770e2a09c Build distribution. 2011-03-01 19:27:48 -05:00
kangax
9bf3e71ced When free-drawing, do not create paths with 0 width/height, as they are rendered inconsistently across different browsers. 2011-03-01 19:27:40 -05:00
kangax
dd4f178389 Allow options with falsy values (e.g. 0 or "") 2011-03-01 19:26:24 -05:00
kangax
3340173e60 Simplify _initStateProperties in fabric.Text 2011-03-01 19:08:38 -05:00
kangax
e7e19c2247 Add fabric.util.stopObservingEvent. Needs tests. 2011-03-01 19:06:56 -05:00
kangax
03561f762f Add "rx", "ry" to the stateProperties of fabric.Rect. Fixes issue #16. 2011-03-01 19:06:27 -05:00
kangax
77ed374671 Fix deltaY undeclared variable. 2011-03-01 19:05:46 -05:00
kangax
d9828321ca Fix text rendering in IE9. Now fully works! Fix fabric.Element#insertAt not calling setCoords and setupState on added object. This was affecting fabric.Element#loadFromJSON. Thanks vepkenez for bringing it up. 2011-02-17 16:41:16 -05:00
kangax
0180de0a70 Update README to mention getting rid of Cufon. 2011-02-15 19:08:46 -05:00
kangax
2a9f645752 Fix Cufon to use canvas renderer in IE9 (it was overwriting it with VML-based one). 2011-02-15 19:06:51 -05:00
kangax
bc2384c8c3 Update TODO in README. 2011-02-13 15:54:22 -05:00
kangax
dc83c95e7d Rebuild distribution file. 2011-02-13 15:30:44 -05:00
kangax
849f2e226f Use non-minified distribution in suite runner. Will need to create a switch later. 2011-02-13 15:30:03 -05:00
kangax
34e2fbafc9 Prevent errors in parser.js unit tests. 2011-02-13 15:29:03 -05:00
kangax
95cfa88c77 Fix most of the fabric.Object unit tests. 2011-02-13 15:28:38 -05:00
kangax
bf9ffb4768 Add more shapes to the demo. 2011-02-13 15:28:18 -05:00
kangax
a7301741cf Make sure canvas complexity is re-calculated after async. adding shapes and images. Disable text for now as we can't tell its complexity just yet. 2011-02-13 15:27:54 -05:00
kangax
ff1bfece6d Fix strike-though bug, when line would be drawn at the wrong position. 2011-02-13 15:27:04 -05:00
kangax
ef425d18c5 Fix some of the parser.js unit tests by making resolveGradients more lenient. 2011-02-11 01:44:08 -05:00
kangax
143c251010 Disable profiling on test page which seems to throw IE9 off. 2011-02-11 01:08:28 -05:00
kangax
7e6b615601 Fix simple shapes test. Make sure objects' coords are set even when fabric.Element#stateful is false. 2011-02-09 18:40:38 -05:00
kangax
240fbf0c13 Uncomment raphael test in complex_shape benchmark. 2011-02-09 18:25:16 -05:00
kangax
df76f5d688 Change the way options are set for an object (don't use options property — which makes for quite expensive iteration during initialization — and instead take advantage of prototypal inheritance). 2011-02-09 18:21:45 -05:00
kangax
2ade9dc0f8 More optimizations: setCoords doesn't need to be invoked on an object before it's added to canvas. This makes most sense when creating path groups, since each of the paths in a path group doesn't really need to have coords. Coords are used to determine object boundaries when moving/scaling/rotating objects, and paths in pathgroup never participate in it (instead, pathgroup does). 2011-02-09 17:30:35 -05:00