Commit graph

595 commits

Author SHA1 Message Date
kangax
f99ee7e2e7 Build distribution, bump version. 2012-08-08 00:04:44 +02:00
kangax
0fcd356bf6 Initial support for "strokeDashArray" (WIP; works for rectangles only for now). 2012-08-08 00:04:01 +02:00
kangax
3e6b880086 Fix set({ key1: value1, key2: value2 }) not working with groups. 2012-08-08 00:04:01 +02:00
Juriy Zaytsev
4b5816ae79 Merge pull request #218 from Catsync/polygon-box
Fix polygon bounding box being offset (issue #147).
2012-08-06 03:00:15 -07:00
Cat Sync
2cfe384d57 Fix for polygon bounding box being offset (issue #147) 2012-08-05 16:58:27 -04: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
Juriy Zaytsev
6bf298d59c Merge pull request #205 from aggrosoft/master
Fix `applyFilter` dimensions and add new Tint Filter.
2012-07-31 13:16:55 -07:00
kangax
581d5a54b9 Fix compatibility with Node (including loadSVGFromString). 2012-07-31 20:55:49 +02:00
kangax
e85045d86a Rename fabric_node.js to node.js 2012-07-31 20:50:06 +02:00
kangax
e47db188aa Remove Node 0.4 from travis config 2012-07-29 23:18:36 +02:00
kangax
2818347f46 Fix another typo 2012-07-29 23:15:13 +02:00
kangax
8e95e6f164 Fix stupid typo in .gitmodules 2012-07-29 23:13:16 +02:00
kangax
7f4bfe2f25 Update .gitmodules 2012-07-29 23:04:50 +02:00
kangax
e62f10151b Update travis.yml to init submodules 2012-07-29 22:58:57 +02:00
kangax
7aaba5c227 Make npm test work via node-qunit. Add .travis.yml. 2012-07-29 22:48:34 +02:00
kangax
2ec3266655 Add fabric.isLikelyNode. Bump version to 0.8.41. 2012-07-29 12:38:01 +02:00
Juriy Zaytsev
c51c10b3ec Merge pull request #214 from Kienz/cursor
Add moveCursor and fix "defaultCursor" typo.
2012-07-29 03:09:25 -07:00
Juriy Zaytsev
7a95f99dcf Merge pull request #213 from Kienz/master
Fix textShadow bug with offsetX, offsetY und blur, when using native text rendering.
2012-07-29 03:06:53 -07:00
Kienz
35e8addd88 moveCursor and typing error defaultCursor
Property moveCursor, _setCursor(this.moveCursor) when moving object,
typing error defaultCursor
2012-07-29 11:05:07 +02:00
Kienz
e4f9e405c2 defaultCursor typing error 2012-07-29 10:14:05 +02:00
Kienz
6feafb4a91 Native textShadow bug - offsetX, offsetY und blur are wrong
The definition of offsetX, offsetY and blur are wrong.
You can see this in this jsfiddle:
http://jsfiddle.net/TeBdn/2/
2012-07-29 09:53:40 +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
54d112e42d Update json2.js to a newer version. 2012-07-28 17:57:00 +02:00
kangax
3436ece988 Missed ";" 2012-07-28 17:56:52 +02:00
kangax
96475d2621 Update README 2012-07-27 14:40:23 +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
aggrosoft
ce86c0470c Fixing broken size of scaled images
Size of original image will be taken into account where the scaled size should be used when calling applyFilter.
This fixes this.
2012-07-25 13:24:45 +03:00
aggrosoft
89402af132 New Tint filter
Added new Tint filter that will recolor a semi transparent image
2012-07-25 13:22:07 +03: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
edbce2b32a Documentation fixes. 2012-07-19 11:43:46 +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
9590fe597c In fabric.Observable, observe is now on, stopObservingoff. observe and stopObserving are deprecated. 2012-07-18 18:25:51 +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