Commit graph

218 commits

Author SHA1 Message Date
kangax
4565e0dd6a Fix parsing of gradients with stops that have absolute values (rather than percents). 2012-01-21 13:33:49 -05:00
kangax
c057b8b6d5 Fix vertical gradient rendering. Closes #108. Thanks aarr0n. 2012-01-21 12:59:30 -05:00
kangax
1c8b5c122d Avoid sub-pixel antialiasing when drawing straight vertical or horizontal lines. 2012-01-15 12:46:52 -05:00
kangax
23c4ec2068 [BACK_INCOMPAT] Remove fabric.Object#getCenter as it doesn't make sense (getLeft/getTop already return object center coordinates). 2012-01-10 14:16:16 -05:00
kangax
de8684cfda Fix text shadow rendering in exported SVG. 2012-01-06 19:58:21 -05:00
kangax
e20a37ba6a Add fabric.Image.filters.Invert (thanks Travis Paul). 2012-01-05 17:38:35 -05:00
kangax
c451f32c9f Fix text alignment in SVG export. Center- and right-aligned text now displays properly. Add more tests to SVG export test suite. 2012-01-04 17:18:42 -05:00
kangax
9814cf12b5 Add support for text background color in SVG representation. 2012-01-04 12:31:37 -05:00
kangax
d870410a7d First (and almost complete) implementation of fabric.Canvas#toSVG. 2012-01-02 16:14:20 -05:00
kangax
3544410689 Fix bug in canvas initialization in node. Thanks Urs. 2011-12-10 13:26:52 -05:00
kangax
cb7a4bdf86 Remove reference to window in util/misc.js for node compat. 2011-12-09 16:24:37 -05:00
kangax
326d662eec Fix JS error in older browsers (e.g. FF4) when fabric.Rect's x/y are undefined. Closes #84. Thanks Kienz. 2011-12-08 10:31:30 -05:00
kangax
d72fceb14b Documentation tweaks. 2011-12-08 09:44:05 -05:00
kangax
a8758ffbe1 Use requestAnimFrame polyfill instead of setInterval in fabric.util.animate. Add fabric.util.requestAnimFrame. 2011-12-08 09:44:05 -05:00
kangax
ea99a1fc7c Pass actual event when firing synthetic "object:selected" one. 2011-12-05 12:55:31 -05:00
jarek
f4a9a7719e Merge remote-tracking branch 'upstream/master' 2011-12-02 09:53:33 +01:00
kangax
eb9d64f89a Fix Opera <12 bug with canvas not getting correct prototype. 2011-11-28 19:47:41 -05:00
kangax
b8ea6b7cec [BACK_INCOMPAT] Add support for static canvases — fabric.StaticCanvas. fabric.Canvas#loadImageFromURL -> fabric.util.loadImage. Add fabric.Canvas#centerObject. 2011-11-27 23:57:28 -05:00
jarek
f8045a84b9 fixed problem with drawing text object with non default fontWeight 2011-11-24 12:44:00 +01:00
kangax
6d376dd588 Fix gradient positioning in fabric.Gradient.forObject. 2011-11-20 12:34:36 -05:00
kangax
f3a3e81ea2 [BACK_INCOMPAT] Fix JS error when calling fabric.Image#toDataURL. toDataURL is now asynchronous, and passes data url to callback (first argument) instead of returning it. Closes #79. 2011-11-18 10:44:53 -05:00
kangax
aff78a0d1d Fix wrong opacity setting in fabric.Color. (thanks Javier Valero) 2011-11-14 15:10:35 -05:00
kangax
7adb4309de Add support for customizing canvas default cursor. 2011-11-11 15:01:20 -05:00
kangax
343a5a2605 Add fabric.util.makeElementSelectable (the opposite of makeElementUnselectable). 2011-11-08 12:35:20 -05:00
kangax
2e42f9bd9d fabric.Image#setElement now updates instance' width/height properly. 2011-11-03 18:12:53 -04:00
kangax
d16e166e54 Fix element replacement in applyFilters (when no filters are present). 2011-11-02 17:25:20 -04:00
Diogo Campos
a8166b355b Remove unnecessary test in fabric.util.animate 2011-10-29 17:04:20 -02:00
kangax
ae9025ce5c Fix image filter initialization in node. 2011-10-29 14:36:09 -04:00
kangax
d226102fbb Make fabric.Image#applyFilters work in node. 2011-10-29 14:11:44 -04:00
kangax
6c463afda5 Fix fabric.Canvas#backgroundImage bug. 2011-10-28 17:10:01 -04:00
kangax
94db7bfc8f fabric.Image.GrayscaleFilter --> fabric.Image.filters.Grayscale as per users request; Make image filters serializable. 2011-10-27 20:06:19 -04:00
kangax
ea0da5a987 Make sure fabric.Image#filters can be a sparse array. 2011-10-26 20:03:51 -04:00
kangax
1a8b82b8e3 [BACK_INCOMPAT] Add support for image filters. Add fabric.Image.GrayscaleFilter and fabric.Image.RemoveWhiteFilter "classes". Filters should be used by adding them to filters array of image instances. For example, myImage.filters = [ new fabric.Image.GrayscaleFilter(), new fabric.Image.RemoveWhiteFilter({ threshold: 30, distance: 50 }) ]. 2011-10-26 01:34:54 -04:00
kangax
fe03bf19d5 Fix broken fabric.Text#textDecoration. 2011-10-16 12:53:37 -04:00
Jhonny Everson
40edcb8e8b fontSize not being used from options in fabric.Text 2011-09-30 07:46:41 -03:00
kangax
2b08618742 Fire "object:scaling" and "object:rotating" events. 2011-09-29 09:31:57 -04:00
kangax
36aeed700a [BACK_INCOMPAT] fabric.Canvas#selection boolean property now only affects _group_ selection (i.e. blue area that allows to select multiple objects no longer appears). Objects can still be selected by clicking on them. To make _everything unselectable_ — set "selectable" property of each object to false AND fabric.Canvas#selection to false. 2011-09-26 14:43:00 -04:00
kangax
5627b5b06c Fix reference error. 2011-09-26 14:40:27 -04:00
kangax
19f7736658 Update documentation and fix JSDoc templates. 2011-09-22 12:40:31 -04:00
kangax
5fa051ccb9 Do not add/remove touch listeners in non-supporting environments. 2011-09-22 11:56:19 -04:00
kangax
efd2aba325 Add basic touch event support. 2011-09-21 19:29:00 -04:00
kangax
36fe5e3a6f Fix bug w. fabric.Text not accounting for fontSize. 2011-09-21 11:18:58 -04:00
kangax
99e64c30ee Closes #52. Fix initialization of fabric.Group with undefined "paths". 2011-09-20 14:25:25 -04:00
kangax
db456d2b68 Closes #49. Fix z-index issues with JSON loading.
`fabric.Canvas#insertAt` now accepts third (boolean) argument, indicating whether splicing can be used of insertion or not.
2011-09-19 20:23:00 -04:00
kangax
475578276e Fix fabric.Line to update width/height when changing x1,y1,x2,y2 coordinates. 2011-09-19 17:48:16 -04:00
kangax
5dc7220425 Closes #51 again. Fix background scaling in toDataURLWithMultiplier. 2011-09-07 16:30:25 -04:00
kangax
952a31262e Closes #51. Fix canvas background becoming smaller when "rasterizing" canvas via toDataURLWithMultiplier. 2011-09-06 14:03:28 -04:00
kangax
8ea5f0d52c Closes #47. More conforming Function.prototype.bind. 2011-08-29 12:09:32 -04:00
kangax
709348f96f More compliant Array.prototype.indexOf. 2011-08-28 21:28:46 -04:00
kangax
a3d693302c Closes #38. Add support for fabric.Canvas#backgroundImage. 2011-08-28 14:55:33 -04:00