Commit graph

184 commits

Author SHA1 Message Date
Jhonny Everson
40edcb8e8b fontSize not being used from options in fabric.Text 2011-09-30 07:46:41 -03:00
kangax
2b08618742 Fire "object:scaling" and "object:rotating" events. 2011-09-29 09:31:57 -04:00
kangax
36aeed700a [BACK_INCOMPAT] fabric.Canvas#selection boolean property now only affects _group_ selection (i.e. blue area that allows to select multiple objects no longer appears). Objects can still be selected by clicking on them. To make _everything unselectable_ — set "selectable" property of each object to false AND fabric.Canvas#selection to false. 2011-09-26 14:43:00 -04:00
kangax
5627b5b06c Fix reference error. 2011-09-26 14:40:27 -04:00
kangax
19f7736658 Update documentation and fix JSDoc templates. 2011-09-22 12:40:31 -04:00
kangax
5fa051ccb9 Do not add/remove touch listeners in non-supporting environments. 2011-09-22 11:56:19 -04:00
kangax
efd2aba325 Add basic touch event support. 2011-09-21 19:29:00 -04:00
kangax
36fe5e3a6f Fix bug w. fabric.Text not accounting for fontSize. 2011-09-21 11:18:58 -04:00
kangax
99e64c30ee Closes #52. Fix initialization of fabric.Group with undefined "paths". 2011-09-20 14:25:25 -04:00
kangax
db456d2b68 Closes #49. Fix z-index issues with JSON loading.
`fabric.Canvas#insertAt` now accepts third (boolean) argument, indicating whether splicing can be used of insertion or not.
2011-09-19 20:23:00 -04:00
kangax
475578276e Fix fabric.Line to update width/height when changing x1,y1,x2,y2 coordinates. 2011-09-19 17:48:16 -04:00
kangax
5dc7220425 Closes #51 again. Fix background scaling in toDataURLWithMultiplier. 2011-09-07 16:30:25 -04:00
kangax
952a31262e Closes #51. Fix canvas background becoming smaller when "rasterizing" canvas via toDataURLWithMultiplier. 2011-09-06 14:03:28 -04:00
kangax
8ea5f0d52c Closes #47. More conforming Function.prototype.bind. 2011-08-29 12:09:32 -04:00
kangax
709348f96f More compliant Array.prototype.indexOf. 2011-08-28 21:28:46 -04:00
kangax
a3d693302c Closes #38. Add support for fabric.Canvas#backgroundImage. 2011-08-28 14:55:33 -04:00
kangax
09fd6210b1 "mousemove" event listener on document is now only attached after "mousedown" on canvas. This avoids unnecessary work when moving mouse outside of canvas (especially with multiple canvas instances on a page). 2011-08-26 12:58:01 -04:00
kangax
2deedd02dd Fix regression in rendering with some of the path groups. 2011-08-26 12:54:49 -04:00
kangax
48da79220f Fix fabric parser to workaround o3-xml bug with gEBTN("*") 2011-08-16 19:05:17 -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
a41fd5dffd Closes #43. fabric.Text#set can now accept object with property/values. 2011-08-12 13:46:17 -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
a5b22895e7 canvas.fx --> canvas.animation 2011-08-04 21:00:44 -04:00
kangax
27999a327c Add unit tests for fabric.loadSVGFromString. 2011-08-04 20:48:25 -04:00
kangax
044866cf44 Document fabric.loadSVGFromString. Replace canvas.loadSVGFromURL with fabric.loadSVGFromURL. 2011-08-04 11:05:40 -04:00
kangax
ace016c694 [BACK_INCOMPAT] fabric.Canvas#loadSVGFromURL --> fabric.loadSVGFromURL. Add fabric.loadSVGFromString. 2011-08-04 10:59:32 -04:00
kangax
04bb0aad66 Add "hasControls" and "hasBorders" options to fabric.Object. "hasControls", when set to false allows to fully disable controls rendering (and mouse detection); hasBorders does the same for object borders. Fix failing unit tests. Update QUnit. 2011-08-02 19:35:02 -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
9690f0849e Fix bug with fabric.Text which would make text objects render with "drag handles" when part of the selection. 2011-08-02 17:50:13 -04:00
kangax
b33b722a3b Fix missing references in canvas.serialization module. 2011-07-27 18:09:43 -04:00
kangax
73004e388f Fix loadImageFromURL not invoking callback for cached images in Chrome. 2011-07-26 15:40:29 -04:00
kangax
6e8d9da003 Pass original event to "mouse:down" and "mouse:up" ones. Pass target to "mouse:move". This normalizes what's passed to events — target and event. 2011-07-26 14:06:04 -04:00
kangax
29ae6b8f0f Closes #40. Objects, boundaries of which are fully contained within boundaries of other objects are now sent to back/forward properly (via canvas.sendBackwards/canvas.bringForward). 2011-07-26 00:20:57 -04:00
kangax
aa885ee458 Change default font family of fabric.Text objects to "Times New Roman". 2011-07-26 00:19:47 -04:00
kangax
76b67aa34c [BACK_INCOMPAT] More consistent option names in fabric.Text: fontfamily --> fontFamily, fontsize --> fontSize, fontweight --> fontWeight (similarly to other options, like textShadow, textDecoration, fontStyle, etc.) 2011-07-21 20:32:02 -04:00
kangax
7c03c115ac Fix bug with extend not being defined. 2011-07-21 16:49:43 -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
3bd5d8c1a3 Add grayscale example to customization demo. Add "mouse:move" event to fabric.Canvas and a corresponding demo. 2011-07-18 14:36:17 -04:00
kangax
b99a456989 Build files are now organized in such way that it's possible to build fabric w/o support for text and/or serialization. 2011-07-15 18:16:14 -04:00
kangax
89c030ebdf Closes #18. Less confusing method names: removeActiveObject --> discardActiveObject, removeActiveGroup --> discardActiveGroup (since both of those methods don't actually _remove_ objects). [BACK_INCOMPAT] 2011-07-15 11:39:48 -04:00
kangax
c046bbd5f1 Closes #34 — Support multiple sequences of command arguments in SVG paths. 2011-07-09 15:50:44 -04:00
kangax
15aef846e3 Move fx-related methods from canvas.class.js to a separate canvas.fx.js "module". 2011-07-09 12:18:51 -04:00
kangax
48a02e5ecb Path objects that are part of the group now have 'group' property that references their parent group. Path that are part of the group are now positioned in better accordance with spec. 2011-07-09 11:10:40 -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
2b3a166d2f fabric.util.animate is now defined in util/misc.js rather than util/dom_misc.js as it has nothing to do with DOM. 2011-07-06 14:38:56 -04:00
kangax
e3c311dfb5 Add support for elliptical arc commands (a, A) in SVG paths. Thanks @devongovett for initial code (and algorithm). Add 4 different arc test files (can be loaded in kitchensink demo). 2011-07-05 01:28:03 -04:00
kangax
5fc29b1dbb Add fabric.Object#animate. Tests to come. 2011-07-04 23:28:32 -04:00
kangax
0e3831ed6f Expose cursor style for hovered objects through fabric.Canvas#HOVER_CURSOR for customization purposes. 2011-07-02 01:33:43 -04:00
kangax
1bed43e3c4 Add unit tests for fabric.Observable. fabric.Canvas#observe can now accept object — canvas.observe({ event1: ..., event2: ... }). 2011-07-02 01:19:32 -04:00