Commit graph

296 commits

Author SHA1 Message Date
kangax
0e3831ed6f Expose cursor style for hovered objects through fabric.Canvas#HOVER_CURSOR for customization purposes. 2011-07-02 01:33:43 -04:00
kangax
1bed43e3c4 Add unit tests for fabric.Observable. fabric.Canvas#observe can now accept object — canvas.observe({ event1: ..., event2: ... }). 2011-07-02 01:19:32 -04:00
kangax
dcb6ac67a5 "mouse:down" and "mouse:up" events are now being passed clicked target (when one exists). Add example with opacity and no boundaries (transparent boundaries) on an object. 2011-06-30 14:46:30 -04:00
kangax
a64f622e61 Bump version to 0.3. Experiment with using native canvas fillText for fabric.Text. Turns out multiline text is not supported natively. Will experiment more. 2011-06-30 14:37:39 -04:00
kangax
31e3ae7bb7 Fix menu links on couple of pages. 2011-06-29 11:11:53 -04:00
kangax
a7155ccbfb Reorganize project structure. Add "customization" demo (work in progress). 2011-06-29 11:10:08 -04:00
kangax
628efcdc70 fabric.Element is renamed to fabric.Canvas, which makes more sense. fabric.Element is kept for compatibility reasons (but is deprecated). Bump version to 0.3. 2011-06-28 19:14:40 -04:00
kangax
c6950d9be8 Build distribution file. 2011-06-28 10:19:23 -04:00
kangax
fbe3246e68 Merge remote-tracking branch 'cleercode/gh-pages' into gh-pages 2011-06-28 00:35:42 -04:00
kangax
6845db3670 Rework observable mechanism: All events are now scoped to canvas instances. fabric.util.observeEvent(...) becomes canvas.observe(...) and only observes events of that particular canvas instance. fabric.util.observeEvent becomes fabric.util.observe, fabric.util.stopObservingEventfabric.util.stopObserving, and fabric.util.fireEventfabric.util.fire. These could still serve as a generic pub-sub mechanism. Add "mouse:down" event (to be consistent with "mouse:up"). Add "Event inspector" demo page. 2011-06-27 18:25:45 -04:00
kangax
99919e7b94 Add object hovering example to demos. 2011-06-17 14:19:58 -04:00
kangax
e7aafae9e7 Add support for "opacity" attribute. 2011-06-14 17:28:54 -04:00
kangax
27c72bd634 Use set with object in tests (rather than chaining it). 2011-06-14 10:11:25 -04:00
Chris Lee
bef5e8310a Activate mousedown only on left clicks 2011-06-03 11:15:56 -07:00
Chris Lee
0bf40b8bef Fix for line width 2011-05-31 11:23:30 -07:00
Chris Lee
dce11e13ae Global selection enable/disable through canvas.selection option 2011-05-31 10:56:09 -07:00
kangax
0a9d835b12 Dynamically generate accessors based on state properties — width, height, fill, opacity, scaleX, scaleY, etc. For example, rect.set('fill', 'red') can now be replaced with rect.setFill('red'), and rect.get('opacity') with rect.getOpacity(). 2011-05-31 00:56:01 -04:00
kangax
d7fd8f0af3 fabric.Object#set can now be passed an object of property/value pairs rather than just property and value. E.g.: rect.set({ width: 100, height: 50, fill: 'red' }). 2011-05-29 21:59:48 -04:00
kangax
b15b319ed5 Add context.save + context.restore around canvas clipping to work around WebKit's performance loss (https://bugs.webkit.org/show_bug.cgi?id=61560) as suggested by @ohunt 2011-05-27 13:58:39 -04:00
kangax
4fef0a8291 Add link to Falsy Values presentation to README. 2011-05-26 09:05:08 -04:00
kangax
1d9247ab3a When cloning canvas (in toDataURL, for example) make sure to clone clipTo (clipping function) property as well. 2011-05-26 09:03:11 -04:00
kangax
dcaee8bf0c Add demo of an animating cross (demonstrating how to create a custom class). 2011-05-24 15:14:40 -04:00
kangax
f37b93e6c1 Add /demos with ladybug example. 2011-05-22 10:00:05 -04:00
kangax
c1150c714a fabric.Element now has forEachObject. Add header to /demos, /tests and /docs pages. 2011-05-22 09:57:37 -04:00
kangax
abaa87fbd0 Add fabric.Text#backgroundColor (can be used for text highlighting). Change default lineheight of text objects from 1 to 1.6. 2011-05-13 14:34:24 -04:00
kangax
0682243f12 Update readme. 2011-05-11 19:15:46 -04:00
kangax
fe37bc66a0 fabric.Element#loadImageFromURL no longer displays image that's being loaded. Fix getPointer unit test. 2011-05-11 18:58:51 -04:00
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