Commit graph

292 commits

Author SHA1 Message Date
kangax
cdc2d4156f Build distribution. Version 1.2.0 2013-06-14 11:14:01 +02:00
kangax
245f30abfc Add plato to dev dependencies 2013-06-10 15:30:17 +02:00
kangax
64317de0d0 Revert text box behavior back to previous (so that characters don't peak out of bounding box). Version 1.1.21 2013-06-05 14:53:35 +02:00
kangax
299aec6cdc Build distribution. Version 1.1.20 2013-06-05 13:53:15 +02:00
kangax
2f1383a713 Fix text rendering again. Version 1.1.19 2013-06-03 18:32:44 +02:00
kangax
221146997c Fix pattern initialization from function string. Closes #442. Version 1.1.18 2013-06-02 22:07:16 +02:00
kangax
8d84a5c551 Build distribution. Version 1.1.17 2013-06-01 13:18:33 +02:00
kangax
8f59af2e5e Add infrastructure for building module combination files 2013-05-29 01:05:58 +02:00
kangax
5e10c0011b Fix regression in adjustPosition. Version 1.1.16 2013-05-23 03:52:56 +02:00
kangax
743a103e8e Version 1.1.15 2013-05-18 15:32:03 +02:00
kangax
0be6a5d556 Fix node text rendering. Version 1.1.14 2013-05-12 20:30:24 -04:00
kangax
8c8f91a444 Build distribution. Version 1.1.13 2013-05-09 14:22:31 -04:00
kangax
d6e292e482 Fix text rendering. Closes #590. Version 1.1.12 2013-05-05 13:23:49 -04:00
kangax
fde521317e Store result of setLineDash support check. Build distribution. Version 1.1.11 2013-05-04 20:29:59 -04:00
kangax
f6da728aad Add support for parsing "compressed" path data in SVG path's. Version 1.1.10 2013-04-29 11:12:20 -04:00
kangax
c269b7010f Version 1.1.9 2013-04-24 13:00:02 -04:00
kangax
22de40dc54 Add support for pattern offsets (via fabric.Pattern#offsetX/offsetY). Version 1.1.8 2013-04-22 09:16:58 -04:00
kangax
94a4b7b8d6 Cap jsdom at 0.5.6 2013-04-20 12:00:16 -04:00
kangax
e56d37d9da Fix text and line rendering in path group. Add support for multiple declarations in "transform" attribute. Fix stroke color of line. Version 1.1.7 2013-04-18 21:42:46 -04:00
kangax
79a9d551c7 Build distribution. Version 1.1.6 2013-04-04 14:05:43 +02:00
kangax
0d0763cad0 Build distribution. Version 1.1.5. 2013-03-29 13:21:13 +01:00
kangax
83b7ef57e7 Build distribution. Version 1.1.4 2013-03-23 23:23:26 +01:00
kangax
24735e6e31 Fix removal of event listeners in fabric.Canvas#dispose on touch-based devices. Version 1.1.3 2013-03-20 23:38:22 +01:00
kangax
da9cda6c90 [BACK_INCOMPAT] Version 1.1.2.
canvas.freeDrawingColor -> canvas.freeDrawingBrush.color;
canvas.freeDrawingLineWidth -> canvas.freeDrawingBrush.width;
2013-03-19 16:05:13 +01:00
kangax
ecc97413da Version 1.1.1. Closes #447 2013-03-16 16:43:26 +01:00
kangax
8f0aee3ba1 Update dependencies 2013-03-14 13:24:45 +01:00
kangax
d881340120 Version 1.1.0 2013-03-10 21:06:29 +01:00
kangax
f0f5109951 Run jshint as part of npm test 2013-03-09 15:28:30 +01:00
kangax
43dd170f5b Add fabric.Object#visible property. Closes #342. Version 1.0.13. 2013-03-06 18:45:18 +01:00
kangax
9be89b2f2f drawCorners -> drawControls, for consistency. Remove unused hasCorners and use hasControls instead of hideCorners. Version 1.0.12 2013-02-20 13:19:22 +01:00
kangax
9df85553b9 [BACK_INCOMPAT] Add fabric.util.createAccessors. Add accessors for fabric.Text -specific properties (setTextDecoration, setFontWeight, setFontStyle, etc.). Make text object dimensions change when setting dimension-affecting properties. fabric.Text#setFontsize becomes setFontSize. Version 1.0.11. 2013-02-18 16:22:48 +01:00
kangax
39e2078fb6 Version 1.0.10 2013-02-17 13:39:58 +01:00
kangax
a77cbfe2be Text fixes for node-canvas. Version 1.0.9 2013-02-15 14:11:58 +01:00
kangax
cd93d7efd9 Build distribution. Version 1.0.7 2013-02-11 13:23:43 +01:00
kangax
18e6e4f353 Version 1.0.6 2013-02-04 20:49:05 +01:00
kangax
953f2a2d15 Version 1.0.5 2013-02-03 17:01:39 +01:00
kangax
69f1b20a8e Add fabric.Object#getBoundingRect. getBoundingRectWidth/getBoundingRectHeight are deprecated. 2013-01-29 18:06:44 +01:00
kangax
87a1bb31bf Amalgamate canvas creation + VML initialization into one place. Add new method fabric.util.createCanvasElement. Version 1.0.3. 2013-01-25 14:23:13 +01:00
kangax
e262606eee Update uglyfyjs, build distribution 2013-01-21 21:14:57 +01:00
kangax
60af92a9c3 Version 1.0.2 2013-01-17 19:04:02 +01:00
kangax
45f5acb95d Bump node-canvas version to 1.0.0 2013-01-17 19:00:20 +01:00
kangax
ec469b6419 Version 1.0.1 2013-01-17 19:00:20 +01:00
kangax
7121830ca6 Merge dynamic origin branch into master. Version 1.0.0 2012-12-29 20:04:24 +01:00
kangax
c11abb377f Fix tests. Build distribution. Version 0.9.35. 2012-12-23 15:28:08 +01:00
kangax
882d7085d8 Fix fabric.Object#cloneAsImage on node. Closes #336. Version 0.9.34 2012-12-20 19:49:51 +01:00
kangax
8c14478340 Add support for "text-align: justify". SVG representation is not yet working. 2012-12-18 18:01:30 +01:00
kangax
71dd5a9ec0 Pass original event to all fabric custom events (that are triggered via mouse/touch) 2012-12-18 11:52:18 +01:00
kangax
b5b901e99e Fix isMoving not set to false sometimes. Closes #350. Version 0.9.31. 2012-12-15 17:29:40 +01:00
kangax
7a5cfe46ac Build distribution. Version 0.9.30. 2012-12-10 15:45:33 +01:00
kangax
2b33b7f570 Locking properties (lockMovementX, lockMovementY, lockRotation, etc.) are now respected in groups. Closes #152. 2012-12-07 15:39:47 +01:00
kangax
352dd44b3c Implement smooth free drawing. Free drawing is now a separate module. Thanks @coulix! 2012-12-06 19:47:34 +01:00
kangax
b330c9d715 Build distribution. Fix unit tests. Version 0.9.27. 2012-12-03 20:23:45 +01:00
kangax
c105212c9c Doc fixes. Version 0.9.26 2012-12-02 11:53:38 +01:00
kangax
2329ef59fe Add support for specifying additional properties to return in toObject, toJSON. Fix #272. 2012-11-30 23:46:09 +01:00
kangax
63c5c02560 Add support for dashed selection. Thanks @coulix! Version 0.9.24. 2012-11-28 13:04:39 +01:00
kangax
d693130115 Add canvas reference to active group. Version 0.9.23. 2012-11-27 16:25:07 +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
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
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
aaee929373 Make overlay image part of canvas object/json representation. Some renderAll cleanup. Fix #265. 2012-10-28 12:21:44 +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
b9da2c4da2 Use "alphabetic" as textBaseline value. This normalizes vertical text position across browsers. Thanks Eric Lesch. 2012-10-23 22:58:44 +02: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
15b1dcc555 Remove redundant bordervisibility/cornervisibility properties from image objects. Version 0.9.15. 2012-10-17 01:25:01 +02:00
kangax
84a956c4b6 Lint everything with JSHint. Version 0.9.14. 2012-10-14 02:53:12 +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
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
b555245780 Add support for animating multiple properties. 2012-10-03 23:45:49 +02:00
kangax
20f9b9ed36 Build distribution. Version 0.9.8. 2012-09-10 19:47:12 -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
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
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
189b0efd34 Bump version to 0.9.0. 2012-08-20 18:34:37 +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
Juriy Zaytsev
1f69989bc9 Merge pull request #230 from davidjrice/node-canvas-0-13-0
Move to using node-canvas 0.13.0.
2012-08-14 06:35:25 -07: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
David Rice
2687aca8e1 Use node-canvas 0.13.0 2012-08-13 15:12:11 +01:00
kangax
99458c3f43 Build distribution. 2012-08-13 11:39:30 +02:00
kangax
69f446747d Specify node-canvas @ 0.12.0 2012-08-13 11:37:01 +02:00
kangax
3ce8507932 Implement fabric.Text.fromElement. Closes #182. 2012-08-11 18:59:53 +02:00
kangax
fe9d927d47 Move site into a different repository. 2012-08-10 17:20:04 +02:00
kangax
956d8708ed Add fabric.Group#toSVG. 2012-08-09 13:07:26 +02:00
David Rice
b108dedace Use git url for node-canvas, no released version builds under npm currently due to in progress change from node-waf to node-gyp 2012-08-08 21:03:15 +01:00
kangax
3f61013c31 Bump allowed node version to 0.6.8. 2012-08-08 00:52:38 +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
7aaba5c227 Make npm test work via node-qunit. Add .travis.yml. 2012-07-29 22:48:34 +02:00
kangax
0371d7ba7c Bump version to 0.8.4 (now with native text support). 2012-07-27 00:35:09 +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
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
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
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
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
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
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
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
787bb86198 Build distribution, bump version. 2012-06-07 16:24:44 +02:00
kangax
1ae8aa3a69 Update distribution, bump version to 0.8.15. 2012-06-07 12:32:58 +02:00
kangax
78eda278d1 Fix double tap issue in iOS. Closes #146. 2012-06-01 01:42:11 +04:00
kangax
505b1dba87 Bump version to 0.8.13. 2012-05-30 15:58:08 +04:00
kangax
e4dbab85f1 Fix xml parser initialization. 2012-05-29 12:29:20 +04:00
kangax
b929cbd7ed Bump allowed node to 0.6.18 2012-05-28 18:46:23 +04:00
kangax
ecdd0fb980 Try using "xmldom" instead of "o3-xml". 2012-05-28 17:22:37 +04:00
kangax
7030c3e582 Tweak package.json. 2012-05-25 15:40:13 +04:00
kangax
35afa0c9c1 Fix size of selection border of scaled circles. Closes #157. 2012-05-25 15:34:01 +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
bcde14c83f Update distribution files and version. 2012-05-15 18:02:16 +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
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
76ee6586c6 Fix version for npm. 2012-05-09 19:14:42 +04: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
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
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
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
4e940ea55a Allow node 0.6.8 2012-01-27 12:46:34 -05:00
kangax
a99c1cc9bb Update package.json to allow higher version canvas package. 2012-01-27 12:42:47 -05:00
kangax
3d6ae8442f Fix object controls not working in IE8. Closes #92. 2012-01-26 19:39:30 -05:00