kangax
315a2c9bf3
Move callSuper out of fabric.Object.prototype and create it dynamically in createClass.
2012-11-23 13:39:50 +01:00
kangax
2e1d02148b
Get rid of _theta and update "angle" property dynamically. Version 0.9.22. Fix #283 .
2012-11-15 14:20:45 +01:00
kangax
01982a446c
Do not use uniqueID in IE as it's not always unique. Fix #311 .
2012-11-15 12:49:10 +01:00
kangax
e3700484ea
Fix minor issues found by JSHint.
2012-11-13 18:06:53 +01:00
kangax
a83b97a4e4
Add Convolute and Pixelate filters. Fix bug with consecutive "m"/"M" commands and "s" command. Version 0.9.21.
2012-11-03 16:14:05 +01:00
Steve Pemberton
eba9a8b66a
Removed style alteration for cache canvas resize
2012-10-30 23:39:43 +00:00
Steve Pemberton
3b3c439b00
Added code to resize cache canvas.
...
_setDimensions will now correctly alter the cache canvas size when the
other canvases are resized. This ensures per pixel hit testing will
still function.
2012-10-30 23:34:52 +00:00
kangax
dbe5ad2149
Adjust positioning of text objects created via fromElement. Fix #303 . Version 0.9.20.
2012-10-31 00:19:13 +01:00
kangax
3541f4a45d
More robust drawControls.
2012-10-30 18:43:55 +01:00
kangax
002cdb4eb5
Add contribution note. Fix #302 .
2012-10-29 22:32:20 +01:00
kangax
a816fb9740
Fix object controls detection when controlsAboveOverlay=true. Fix #256 .
2012-10-28 13:56:07 +01:00
kangax
aaee929373
Make overlay image part of canvas object/json representation. Some renderAll cleanup. Fix #265 .
2012-10-28 12:21:44 +01:00
kangax
48443c193b
Fix sendBackwards/bringForward methods to work with larger objects covering smaller ones. Fix #241 .
2012-10-28 11:21:47 +01:00
kangax
5998dfc1a5
toSVG now displays flipped objects correctly. Fix #297 . Version 0.9.18.
2012-10-26 15:26:44 +02:00
kangax
17fe1a2929
Allow to change number precision in sag transform values. Thanks Will McNeilly.
2012-10-24 22:05:19 +02:00
Steve Pemberton
e8a696c4b1
fix for retreiving scrolled & Fixed Descendants, Mouse Position
2012-10-24 19:56:48 +01:00
kangax
b9da2c4da2
Use "alphabetic" as textBaseline value. This normalizes vertical text position across browsers. Thanks Eric Lesch.
2012-10-23 22:58:44 +02:00
Steve Pemberton
e8cdf8e2fe
Fixes for shift selecting/unselecting groups
...
Shift selecting/deselecting no longer causes the group to have its
transform re-applied.
You can no longer drag a shift added object separately from the group.
This also fixes the issue of the object jumping on addition to a group.
Objects in a group are now rendered to the upper-canvas in the order
they are in on the lower canvas.
2012-10-21 15:31:11 +01:00
kangax
d3ee764bc9
Build distribution. Version 0.9.16.
2012-10-20 20:13:21 +02:00
kangax
79f1b47063
Add uglifyjs as dev dependency. Fix compressing script.
2012-10-17 11:19:41 +02:00
kangax
1cc4a5c799
Merge origin/master.
2012-10-17 01:27:47 +02:00
kangax
15b1dcc555
Remove redundant bordervisibility/cornervisibility properties from image objects. Version 0.9.15.
2012-10-17 01:25:01 +02:00
kangax
1f10671202
Fix comment. Fix #286 .
2012-10-17 01:18:54 +02:00
kangax
514f064710
Normalize option setting in all classes. Fix #287 .
2012-10-17 01:17:51 +02:00
Steve Pemberton
f11f83b0db
Fix for negative width on objects
2012-10-14 18:30:08 +01:00
Steve Pemberton
da28b363e4
Revert "Fix for negative width on objects preventing selection"
...
This reverts commit 55853039cd .
2012-10-14 18:23:39 +01:00
Steve Pemberton
55853039cd
Fix for negative width on objects preventing selection
2012-10-14 13:27:41 +01:00
kangax
84a956c4b6
Lint everything with JSHint. Version 0.9.14.
2012-10-14 02:53:12 +02:00
kangax
33c8a34399
Fix gradient setting in loadFromJSON. Fix #246 again.
2012-10-13 19:56:54 +02:00
kangax
07698a22ae
Add support for finding target per-pixel (ignoring transparent ones). This allows to drag shapes by non-transparent pixels only. Thanks Steve Pemberton for initial work. Version 0.9.13.
2012-10-11 00:40:03 +02:00
kangax
307c9503d4
Fix fabric.Group#toObject not serializing children image objects. Fix #260 .
2012-10-08 21:01:29 +02:00
kangax
999f7f5231
Account for bounding box in scaleToWidth/scaleToHeight. Fix #271 . Version 0.9.12.
2012-10-08 19:35:37 +02:00
kangax
4ac8b68d78
Show rotating point handle only if hasControls=true. Remove "hideCorners" since there's already "hasControls" property (consistent with "hasBorders" one). Version 0.9.11.
2012-10-07 16:12:37 +02:00
kangax
2b3994f4c7
Fix corner detection. Thanks Josh Pearce. Fix #275 . Fix #269 .
2012-10-03 23:45:49 +02:00
kangax
b555245780
Add support for animating multiple properties.
2012-10-03 23:45:49 +02:00
kangax
0ead6db114
Path groups now have empty fill by default.
2012-09-10 19:54:47 -04:00
kangax
20f9b9ed36
Build distribution. Version 0.9.8.
2012-09-10 19:47:12 -04:00
kangax
e8278236d6
Do not show middle controls when lockUniScaling is on. Closes #228 .
2012-09-08 23:27:05 -04:00
kangax
44dc5f7fe7
Update text dimensions after changing text. Closes #257 . Version 0.9.7.
2012-09-07 13:30:32 -04:00
kangax
7cf01772a4
Fix fabric.Text#set.
2012-09-07 13:15:42 -04:00
kangax
0171b665be
Fix SVG rendering of lines and images in groups.
2012-09-06 16:41:31 -04:00
kangax
06b0746258
Fix transform matrix bug. Closes #33 .
2012-09-06 12:00:36 -04:00
kangax
77c7bd134f
Fix object padding.
2012-09-05 17:25:37 -04:00
kangax
762cfb7b8a
Fix unit tests. Add loadFromJSON test for previous fix. Version 0.9.5.
2012-09-02 12:28:52 -04:00
kangax
1d3de62a9c
Add "controlsAboveOverlay" option to canvas.
2012-09-01 23:22:16 -04:00
kangax
204923e86c
Object boundaries now take "strokeWidth" into consideration. Closes #166 .
2012-08-26 23:25:16 +02:00
kangax
eb4ac004aa
Gradients now render properly in IE9 (thanks Kienz).
...
Closes #110 , #247 . Version 0.9.3.
2012-08-26 21:14:34 +02:00
kangax
deb33940a2
Avoid rendering dot in FF on click in free drawing mode.
2012-08-23 15:15:11 +02:00
kangax
dc8224138d
Fix gradient rendering in path objects.
2012-08-21 19:31:39 +02:00
kangax
9cde32897a
Clear dummy DOM element used for Cufon rendering.
2012-08-21 16:00:09 +02:00
kangax
0bbaddf859
Fix _initGradient with non-empty non-gradient values.
2012-08-20 18:39:04 +02:00
kangax
189b0efd34
Bump version to 0.9.0.
2012-08-20 18:34:37 +02:00
kangax
e3a179f84f
Update distribution.
2012-08-20 18:23:53 +02:00
kangax
90d7f7acf3
Fix native text rendering under node-canvas.
2012-08-16 18:08:24 +02:00
kangax
8e429ceaf9
Fix loadFromDatalessJSON when native text is present in data. Bump allowed node version to 0.8.6.
2012-08-15 15:30:59 +02:00
kangax
dc6d262b01
User renderOnAddition in canvas#insertAt. Closes #233 .
2012-08-14 15:39:21 +02:00
kangax
9d2f3d261b
Fix rendering bug with objects in group that also have transform attribute.
2012-08-14 14:37:27 +02:00
kangax
a0d05624ed
Remove incorrect offsets in polygon rendering and fix <rect> position when part of a group. Closes #113 . Closes #229 .
2012-08-14 14:03:20 +02:00
kangax
99458c3f43
Build distribution.
2012-08-13 11:39:30 +02:00
kangax
3ce8507932
Implement fabric.Text.fromElement. Closes #182 .
2012-08-11 18:59:53 +02:00
kangax
956d8708ed
Add fabric.Group#toSVG.
2012-08-09 13:07:26 +02:00
kangax
daa6b4cbbf
Fix fabric.Line#set method to call _setWidthHeight after coordinates update.
2012-08-09 12:24:22 +02:00
kangax
f99ee7e2e7
Build distribution, bump version.
2012-08-08 00:04:44 +02:00
kangax
04d770aa35
No longer allow to resize inactive objects (this also means cursor doesn't appear when hovering over resizing controls of inactive (non-selected) objects).
2012-08-02 21:19:06 +02:00
kangax
581d5a54b9
Fix compatibility with Node (including loadSVGFromString).
2012-07-31 20:55:49 +02:00
kangax
2ec3266655
Add fabric.isLikelyNode. Bump version to 0.8.41.
2012-07-29 12:38:01 +02:00
kangax
38ffacfbec
Fix bug with text shadows parsed incorrectly when using native text rendering. Thanks @Kienz. Closes #211 .
2012-07-28 17:59:04 +02:00
kangax
82ba3169f7
Make sure text objects have dimensions before they're added to canvas. Closes #158 .
2012-07-27 02:56:52 +02:00
kangax
0371d7ba7c
Bump version to 0.8.4 (now with native text support).
2012-07-27 00:35:09 +02:00
kangax
9d82685431
Merge native-text branch
2012-07-27 00:33:49 +02:00
kangax
884d02881b
Fix SVG export failures when rendering text via native methods.
2012-07-27 00:26:54 +02:00
kangax
02a13062ee
Fix bug when exponent notation (e.g. "q 10.47e-3") would trip up path parsing mechanism.
2012-07-26 00:17:04 +02:00
kangax
af7679cee1
Implement most of the remaining text rendering functionality when using native methods. This includes background, text decoration (underline/strike-through/overline), multiline text support, text alignment (left/center/right) in multiline text, text shadow, line height. SVG export is still partially broken when using native rendering methods.
2012-07-24 11:21:32 +02:00
kangax
d9a64e4529
Replace element in applyFilters directly, to avoid messing up image instance dimensions.
2012-07-20 21:16:14 +02:00
kangax
971f82fb7d
Merge ollym/text-fixes.
2012-07-20 19:13:36 +02:00
kangax
92a8a3d34c
Add support for specifying which modules to exclude during build.
...
For example:
`node build.js modules=ALL exclude=easing`
or:
`node build.js modules=serialization,easing exclude=image_filters,text`
Add support for stripping "use strict" directives during build (for compatibility with Rails 3).
2012-07-19 13:34:32 +02:00
kangax
ea699a776a
Width/height passed to fabric.Image during initialization now take precedence over actual image width/height.
2012-07-19 11:45:04 +02:00
kangax
57484274ba
Fabric events related to objects can now be observed on objects themselves.
...
For example, instead of:
canvas.observe('object:selected', function(o) {
console.log('selected', o.target);
})
you can now do:
object.on('selected', function() {
console.log('selected', object);
});
Events that are fired on objects are:
- mouseup
- mousedown
- mousemove
- rotating
- scaling
- moving
- modified
- selected
- added
2012-07-18 18:29:27 +02:00
kangax
fc7ce11cd3
Mark fabric.Text as synchronous. Closes #198 .
2012-07-18 17:03:28 +02:00
Oliver Morgan
b4abf1d96f
Removed Cufon dependency
...
Fixes #194
2012-07-14 21:35:45 +01:00
kangax
5ce8df3c67
Remove invisible rotating point and fix few other bugs with it. Add fabric.Object#rotatingPointOffset offset. Closes #190 .
2012-07-11 16:29:10 +02:00
kangax
66247a7b1c
Fix text shadow messing up size of bounding box.
...
Fix text shadow appearing under text background.
2012-07-11 01:52:52 +02:00
kangax
ae45281d18
Fix setBackgroundImage option setting.
2012-07-09 19:02:24 +02:00
kangax
aab5adcd11
Fix rendering artifact with rounded rectangles. Thanks Anne Poveda.
2012-07-09 18:11:18 +02:00
kangax
c988e5a8c3
Fix fabric.Line regression.
2012-06-28 21:14:19 +02:00
kangax
8581f94341
Fix polyline/polygon rendering in IE8. Closes #124 .
2012-06-28 21:12:30 +02:00
kangax
f1cd5ebe1d
Fix lines not respecting left/top when loaded from object. Closes #151 .
2012-06-28 20:36:55 +02:00
kangax
0cb73481dd
Build dist, bump version.
2012-06-26 16:44:14 +02:00
kangax
30f24f7f35
Fix loadFromJSON not invoking callback. Closes #184 .
2012-06-25 15:27:10 +02:00
kangax
4dcf268d67
Prevent error in initFilters when filter is null (filters array is with holes).
2012-06-24 11:52:00 +02:00
kangax
249c330ed6
Add fabric.util.groupSVGElements for creating fabric.<Element> or fabric.PathGroup out of a group of elements.
2012-06-23 19:28:53 +02:00
kangax
411c027cf5
Bump version and built distribution files, now that group_rewrite is merged.
2012-06-23 18:51:58 +02:00
kangax
83582467d6
Merge master
2012-06-23 18:18:02 +02:00
kangax
9926d8389a
[BACK_INCOMPAT] Remove CANVAS_WIDTH, CANVAS_HEIGHT properties from fabric.Canvas.prototype (as they're no longer used anywhere). Lowercase some of the fabric.Canvas.prototype properties, for consistency: CURSOR -> defaultCursor, ROTATION_CURSOR -> rotationCursor, HOVER_CURSOR -> hoverCursor, CONTAINER_CLASS -> containerClass.
2012-06-23 00:18:41 +02:00
kangax
9d36e26d71
Fix "mouse:down", "mouse:move", "mouse:up" events not firing during free drawing mode.
2012-06-22 17:25:15 +02:00
kangax
5d803c9778
Fire "mouse:down", "mouse:move", "mouse:up" events during free drawing mode.
2012-06-22 17:05:07 +02:00
kangax
dd43c23e86
Check for callback presence in fabric.Group.fromObject.
2012-06-21 09:59:48 +02:00
kangax
126c2aa507
Merge master
2012-06-20 17:43:39 +02:00
kangax
d6f7c9effb
fabric.Canvas#setOverlayImage now correctly returns a reference to a canvas instance.
2012-06-19 20:33:46 +02:00
kangax
1706361616
Fix bug with rendering of subsequent "S" commands, where reflection of control point would be considering 1st control point of previous command, not 2nd one. Closes #177 .
2012-06-17 13:25:17 +02:00
kangax
da2ed018d8
Fix fabric.util.requestAnimFrame erroring out due to wrong "context".
2012-06-15 17:35:05 +02:00
kangax
cd59885370
Fix port recognition from URL when loading SVG's via node.
2012-06-14 14:12:42 +02:00
kangax
5e29a2b319
Fix bugs in fabric.Object#animate (thanks Anton Ignatov).
2012-06-13 13:30:53 +02:00
kangax
b5d76f752d
Add more image filters (Sepia, Sepia2, Brightness, Noise, GradientTransparency) based on Stoyan's demo — http://www.phpied.com/pixel-manipulation-in-canvas/ Fix bug with fabric.Image and filters.
2012-06-11 19:17:24 +02:00
kangax
b701627f42
Fix "stroke-width" being ignored in style attribute.
2012-06-10 12:13:12 +02:00
kangax
1da65cbead
Build distribution.
2012-06-10 11:35:24 +02:00
kangax
787bb86198
Build distribution, bump version.
2012-06-07 16:24:44 +02:00
kangax
bb389e4723
Removing active object now fires "selection:cleared" events. Closes #121 .
2012-06-07 12:47:15 +02:00
kangax
1ae8aa3a69
Update distribution, bump version to 0.8.15.
2012-06-07 12:32:58 +02:00
kangax
1bfa25acf4
Render canvas after setting background image.
2012-06-07 12:32:57 +02:00
Juriy Zaytsev
a239bdd2a8
Merge pull request #168 from garg/master
...
Fix `fabric.Object#toDataURL` to take bounding rectangle dimensions into consideration. Add `fabric.Object#getBoundingRectWidth`, `fabric.Object#getBoundingRectHeight`.
2012-05-31 14:50:06 -07:00
kangax
78eda278d1
Fix double tap issue in iOS. Closes #146 .
2012-06-01 01:42:11 +04:00
garg
218b76bc23
Update dist/all.js
2012-05-30 20:14:59 -03:00
garg
d7cf6a576b
Edited to use fabric.util.array.min and fabric.util.array.max
2012-05-30 20:12:56 -03:00
kangax
505b1dba87
Bump version to 0.8.13.
2012-05-30 15:58:08 +04:00
kangax
1204b14e3c
Remove extraneous easing module include.
2012-05-30 11:59:46 +04:00
garg
ca933e0cba
Added returnMinFromArray and returnMaxFromArray. Removed extended array functions. Renamed getBoundingRectangleWidth to getBoundingRectWidth. Renamed getBoundingRectangleHeight to getBoundingRectHeight.
2012-05-29 23:00:18 -03:00
kangax
e4dbab85f1
Fix xml parser initialization.
2012-05-29 12:29:20 +04:00
garg
1bf382659e
Fixed typo
2012-05-28 20:22:14 -03:00
garg
9c9fdc21e2
Removed console.log lines from getBoundingRectangleHeight and getBoundingRectangleWidth
2012-05-28 20:05:22 -03:00
garg
f66dbc41dc
Update dist/all.js
2012-05-28 19:52:55 -03:00
garg
1c0deef679
Update dist/all.js
2012-05-28 19:52:00 -03:00
garg
f99e4eb282
Update dist/all.js
2012-05-28 19:51:03 -03:00
garg
4e790bf8cf
Update dist/all.js
2012-05-28 19:46:24 -03:00
garg
91e71633d6
Update dist/all.js
2012-05-28 19:44:57 -03:00
garg
6b043568d8
Update dist/all.js
2012-05-28 19:40:19 -03:00
garg
04164267b9
Update dist/all.js
2012-05-28 19:38:20 -03:00
garg
5a10ff63b5
Update dist/all.js
2012-05-28 19:37:01 -03:00
garg
c6c79a09cc
Update dist/all.js
2012-05-28 19:28:36 -03:00
garg
038119b1e0
Update dist/all.js
2012-05-28 19:23:38 -03:00
garg
e25776b3c1
Update dist/all.js
2012-05-28 19:21:36 -03:00
garg
bee869cbd2
Updated getBoundingRectangleWidth and Height to use fabric.util.min
2012-05-28 19:18:13 -03:00
garg
5ccc83e424
Update dist/all.js
2012-05-28 18:29:11 -03:00
garg
4bf5d8ce7e
Added getBoundingRectangleHeight and getBoundingRectangleWidth. Also changed Object#toDataURL to use getBoundingRectangleHeight and getBoundingRectangleWidth.
2012-05-28 18:26:04 -03:00
kangax
ecdd0fb980
Try using "xmldom" instead of "o3-xml".
2012-05-28 17:22:37 +04:00
kangax
af67423df9
fabric.Image now renders image according to current width/height (not width/height of original image).
2012-05-27 23:48:00 +04:00
kangax
35afa0c9c1
Fix size of selection border of scaled circles. Closes #157 .
2012-05-25 15:34:01 +04:00
kangax
0e79544c12
Preserve hasControls, hasBorders, hasRotatingPoint values during serialization. Closes #163 .
2012-05-21 14:24:33 +04:00
kangax
c7f31d9d0e
Export backgroundImage, backgroundImageOpacity, backgroundImageStretch in SVG. Closes #125 .
2012-05-16 15:25:18 +04:00
kangax
9584ae2759
"backgroundImage", "backgroundImageOpacity", and "backgroundImageStretch" are now preserved correctly (when saving canvas to JSON/loading from JSON). Closes #139 .
2012-05-16 14:51:10 +04:00
kangax
09d6a6451d
Revert circle as rotating control for now (will need to figure out why scaling occurs there).
2012-05-15 18:36:34 +04:00
kangax
bcde14c83f
Update distribution files and version.
2012-05-15 18:02:16 +04:00
kangax
64a9c5da6e
Update distribution files.
2012-05-15 15:07:51 +04:00
kangax
76495a3874
Remove garbage from build.js. Build distribution.
2012-05-13 18:47:45 +04:00
kangax
7c95155c2e
Add fabric.Canvas#getSelectionElement for retrieval of canvas element on which object selection is drawn.
2012-05-13 18:37:28 +04:00
kangax
5a2eb2e3df
[BACK_INCOMPAT] fabric.Canvas#getContext now returns context of canvas element on which all objects are drawn. fabric.Canvas#getSelectionContext returns context of canvas element on which object selection is drawn.
2012-05-13 18:30:12 +04:00
kangax
35fcc980da
Output rx/ry in object, JSON, and SVG representations of fabric.Rect.
2012-05-12 14:30:23 +04:00
kangax
8a84affd6c
[BACK_INCOMPAT] Remove "memo" from event objects. e.memo.xxx is now e.xxx.
2012-05-12 13:44:26 +04:00
kangax
cba1d4ca21
[BACK_INCOMPAT] Move object straightening methods into its own, optional module (fabric.Object#straighten, fabric.Object.fxStraighten, fabric.Canvas#straightenObject).
2012-05-11 15:31:30 +04:00
kangax
5e4811ea20
Fix bug in SVG rendering.
2012-05-09 19:14:42 +04:00
kangax
6aef8a009d
Fix bug where static canvas couldn't render overlay image.
2012-04-20 13:37:47 +02:00
kangax
0a0ab70f68
Add fabric.Canvas#cloneWithoutData. Fix broken unit tests. Bump version to 0.8.
2012-04-20 13:37:46 +02:00
kangax
b3768bcdd3
Check event.touches[0] exists before accessing a property. Thanks @zj831007. Closes #149 .
2012-04-08 18:20:19 +02:00
kangax
83e3c8bd9e
Initial implementation of generic groups. See https://github.com/kangax/fabric.js/wiki/Working-with-groups for more info.
2012-04-08 15:15:31 +02:00
kangax
6cdee94cc6
Fix typo in docs.
2012-03-29 15:35:58 +02:00
kangax
8411165bcd
Revert "Fix rendering of lines where x1,y1 are less than x2,y2."
...
This reverts commit c7006df133 .
2012-03-26 00:30:29 +02:00
kangax
c7006df133
Fix rendering of lines where x1,y1 are less than x2,y2.
2012-03-19 13:17:03 +01:00
kangax
feaddda1c0
Ditch o3-xml-fork for now (it fails even on node 0.4.x) when parsing SVG.
2012-02-15 16:26:58 -05:00
kangax
2ab05fdeb3
Add bunch of stuff to .npmignore
2012-02-14 12:50:11 -05:00
kangax
93565f135d
Fix text offset issue when exporting to SVG.
2012-02-10 00:37:06 -05:00
kangax
21de5fdbd2
Build distribution; bump version.
2012-02-10 00:15:01 -05:00
kangax
e5d92f71d5
Check that allOnTop is true not just any truthy value (so that we can pass it as callback to methods like "onChange"). See https://github.com/kangax/fabric.js/pull/104#issuecomment-3493677
2012-02-05 13:54:58 -05:00
kangax
b6179a6f64
Build distribution and bump version for previous change (removal of empty tspans).
2012-02-05 13:31:17 -05:00
kangax
13049361b0
Preserve image src for use in node.js. Add support for overriding src of images when exporting to SVG.
2012-02-03 23:27:45 -05:00
kangax
19dbb74307
Fix trailing commas. Closes #118 .
2012-02-03 09:18:35 -05:00
kangax
e9dee5a37d
Make SVG export of text more reliable (rgba()-based colors now work in Illustrator). Cut off decimal parts of values in SVG output, which slims down the size.
2012-02-01 18:43:52 -05:00
kangax
6ce924b38d
Use a fork of "o3-xml" package that allows to run under latest Node.js 0.6.8. Note that SVG parsing doesn't work when running under latest Node. Here's why — https://github.com/ajaxorg/node-o3-xml/issues/23#issuecomment-3705238
2012-01-29 12:30:39 -05:00
kangax
3d6ae8442f
Fix object controls not working in IE8. Closes #92 .
2012-01-26 19:39:30 -05:00
kangax
0bb80dddf0
Fix fabric.Canvas#setOverlayImage('') not removing overlay image.
2012-01-21 23:07:16 -05:00
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
771ee6f89d
Update year in header.
2012-01-20 14:29:51 -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
c39053456c
Fix fabric.Text#textShadow to actually use specified color.
2012-01-05 22:39:30 -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
b84cf9f496
Update version to 0.7.5.
2012-01-02 16:19:39 -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
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
kangax
37f6e9d9b0
Build fabric distribution with modules=ALL.
2011-12-03 11:11:11 -05: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
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
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