kangax
3645c9ce6e
Apply sencha patch to excanvas ( http://dev.sencha.com/playpen/tm/excanvas-patch/ )
2013-03-31 15:01:29 +02:00
kangax
2cfc62169d
Remove no longer needed lib/fonts
2013-03-11 18:57:59 +01:00
Kienz
870322ee24
Fixes for aligning_guidelines and centering_guidelines
...
aligning_guidelines:
- Bugfix for rotated objects - rotated objects should be aligned correctly
centering_guidelines:
- Fix for objects with different origin (originX or originY != 'center')
- Fix for clear lines
2013-01-22 23:35:22 +01:00
Kienz
33bacb0cd6
Bugfix for canvas.toDataURL() - canvas.clearContext(canvas.contextTop) in after:render clears context if canvas.toDataURL() is called.
...
Observe before:render and clear contextTop.
2013-01-21 22:15:28 +01:00
kangax
c2c1324a37
Remove old yui compressor file
2013-01-21 21:14:57 +01:00
Kienz
b555e56241
Fix for dynamic_origin + Remove lines correctly on object moving
...
Fix if objects have different origins (originX != 'center' and/or originY != 'center')
Lines now removed correctly on object:moving (bug since commit c4bec7045532886a338ef7ae91c80bfd8fb28851)
[BACK_INCOMPAT] for fabric.js versions < 1.0.0
2013-01-21 14:22:10 +01:00
kangax
c14c7a329e
Prevent event.js from erroring out in Node
2013-01-17 19:00:20 +01:00
Jaffer Haider
20a87c6609
Support for pinch gesture to scale and rotate objects using Event.js.
2013-01-08 16:04:38 +05:00
Kienz
8e45dd8046
[BACK_INCOMPAT] Cufon rendered fabric.Text now has two properties: backgroundColor (whole bounding-box) and textBackgroundColor (textlines, same behavior as "old" fabric.Text#backgroundColor)
2012-12-03 19:38:35 +01:00
kangax
f0b5329157
Doc additions, fixes.
2012-11-23 13:38:26 +01:00
kangax
f8f5e0bae1
Move build_docs.js and jsdoc toolkit into the fabricjs.com repo.
2012-11-23 13:37:40 +01:00
kangax
3ce8507932
Implement fabric.Text.fromElement. Closes #182 .
2012-08-11 18:59:53 +02:00
kangax
54d112e42d
Update json2.js to a newer version.
2012-07-28 17:57:00 +02:00
kangax
884d02881b
Fix SVG export failures when rendering text via native methods.
2012-07-27 00:26:54 +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
9590fe597c
In fabric.Observable, observe is now on, stopObserving — off. observe and stopObserving are deprecated.
2012-07-18 18:25:51 +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
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
8a84affd6c
[BACK_INCOMPAT] Remove "memo" from event objects. e.memo.xxx is now e.xxx.
2012-05-12 13:44:26 +04:00
Tim de Koning
c34bc926ed
Fir fox IE7 and IE8 multiline strings
...
IE7 and IE8 are the only browsers to strip newlines and spaces in the DOM tree. This is an ugly fix to work around this issue and make mulitline strings possible in IE.
2012-01-18 15:36:17 +01:00
Tim de Koning
2fab0b1ed7
Font rendering fix for < IE9
...
Fabric expects text to be rendered as Canvas elements. Cufon however falls back to VML rendering when canvas is not available in the browser. This mod of the Cufon library ALWAYS enabled the canvas rendering engine for Cufon. This way font-rendering is available on IE7 and IE8 when excanvas is available.
2012-01-18 12:00:59 +01: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
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
ebab02dc02
Better docs layout.
2011-12-08 09:44:05 -05:00
kangax
d72fceb14b
Documentation tweaks.
2011-12-08 09:44:05 -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
d6ea561d1a
Move font_definitions.js to "site" module.
2011-11-14 15:09:42 -05:00
kangax
ae9025ce5c
Fix image filter initialization in node.
2011-10-29 14:36:09 -04:00
kangax
fe03bf19d5
Fix broken fabric.Text#textDecoration.
2011-10-16 12:53:37 -04:00
kangax
19f7736658
Update documentation and fix JSDoc templates.
2011-09-22 12:40:31 -04:00
kangax
6415c573fe
Intercept error in node requests to avoid process failing on connection refused or other errors.
2011-09-08 15:56:59 -04:00
kangax
3a7d2f0bc3
Make fabric.util.getScript work under Node.js, by using "request + eval" rather than "script element + load event".
2011-09-05 20:52:20 -04:00
kangax
6e9543cb69
Preparing fabric for publishing through npm. Make fabric.createCanvasForNode accept width/height rather than reference to node-canvas, to prevent user from having to instantiate node-canvas instance. Add fabric.Canvas.prototype.createPNGStream which is a simple proxy for node-canvas createPNGStream.
2011-08-16 15:57:07 -04:00
kangax
b53d794af6
[BACK_INCOMPAT] Custom fabric build is now created with node.js and is much more flexible. Sprockets is no longer required to build fabric. Parser and node are now optional modules, which means that parseSVGDocument is no longer included in default fabric build.
2011-08-14 17:35:36 -04:00
kangax
07d4f7de72
Fix dependency url of node-canvas. Add "times new roman" font.
2011-08-11 15:40:46 -04:00
kangax
4742fd12b0
Update README to mention support for node.js. Add fabric_node.js "module" (which augments some of the fabric methods to use node-specific implementation).
2011-08-11 15:20:06 -04:00
kangax
8f819bb760
Fabric can now run under node.js
2011-08-11 15:18:18 -04:00
kangax
35ad4bf6e3
Preparing fabric to run on node.js
2011-08-05 19:00:26 -04:00
kangax
b9dcfcf2c8
Fix bug when text objects were rendered with blue background when part of the selection.
2011-08-02 18:15:20 -04:00
kangax
e6be74571e
Fix text background not respecting text alignment.
2011-07-26 14:57:01 -04:00
kangax
e3dd685f1b
Add support for "textAlign" in fabric.Text. Could be any of "left", "center", or "right" values. Works with multiline text.
2011-07-21 14:53:48 -04:00
kangax
10f2ce1258
Add screenshot.
2011-07-14 15:52:30 -04:00
kangax
85a256a8e7
Make events more consistent.
...
"object:moved" --> "object:moving" (since it's a continuously fired event).
"object:scaled" is gone (since this case can be solved with "object:modified").
"group:modified" is gone (since this case can be solved with "object:modified").
"group:selected" --> "selection:created".
"before:group:destroyed" --> "before:selection:cleared" (only fires when there is active object or group).
"after:group:destroyed" --> "selection:cleared" (only fires when there is active object or group).
2011-07-06 15:12:44 -04:00
kangax
e48e341105
Few code tweaks in demos.
2011-07-06 10:58:10 -04:00
kangax
a7155ccbfb
Reorganize project structure. Add "customization" demo (work in progress).
2011-06-29 11:10:08 -04:00