Commit graph

64 commits

Author SHA1 Message Date
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, stopObservingoff. 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
kangax
f37b93e6c1 Add /demos with ladybug example. 2011-05-22 10:00:05 -04:00
kangax
c1150c714a fabric.Element now has forEachObject. Add header to /demos, /tests and /docs pages. 2011-05-22 09:57:37 -04:00
kangax
abaa87fbd0 Add fabric.Text#backgroundColor (can be used for text highlighting). Change default lineheight of text objects from 1 to 1.6. 2011-05-13 14:34:24 -04:00
kangax
74dcd851dd Animation benchmark now allows to dynamically change scale of animated objects, load different shapes, and change canvas size. This allows us to see how all these aspects (e.g. canvas size or shape size) influence canvas rendering performance. 2011-04-23 17:39:56 -04:00
kangax
e61f46b44c Add "lineHeight" to fabric.Text options. Add slider to control line height of selected text to demo. 2011-04-20 16:36:31 -04:00
kangax
9853b4a18f Add rudimentary support for stroke style. Fix IE errors on a demo page. 2011-03-28 18:57:40 -04:00
kangax
91205b4bb6 More text enhancements and fixes. Demo page now has italic/underline/overline/line-through and shadow buttons for text manipulations. 2011-03-21 17:24:36 -04:00
kangax
b60edcc379 Much more usable multiline text. 2011-03-21 03:53:23 -04:00