kangax
7e5e9e3ea6
Add demo of SVG rendering, comparing to browser SVG renderer.
2011-08-05 15:46:12 -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
1c4a755abc
Fix titles of demos. Make raphael and fabric "simple shape" benchmark more fair (e.g. do not render borders and corners, since raphael doesn't render them either).
2011-08-02 20:31:43 -04:00
kangax
c57d61b17a
Add examples of removing border and/or controls to customization demo.
2011-08-02 20:14:21 -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
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
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
48ec3060de
Add actual files.
2011-07-11 18:39:40 -04:00
kangax
da94e176af
Add bunch of SVG shapes to kitchensink demo. Text in demo is now only added on demand.
2011-07-11 18:36:36 -04:00
kangax
b89a797ccc
Add path with "transform" to kitchensink demo.
2011-07-09 11:11:14 -04:00
kangax
826f9c10a2
Few more demo tweaks.
2011-07-06 16:45:33 -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
81c4303295
Add few more shapes to kitchensink demo.
2011-07-05 12:50:37 -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
0524549750
Add polaroid demo.
2011-07-04 23:27:25 -04:00
kangax
d5c361a6a0
Add "overlay image" example to customization demo.
2011-07-02 02:15:33 -04:00
kangax
80b9f63a50
Add "modification on move" example to customization demo.
2011-07-02 02:05:00 -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
kangax
dcb6ac67a5
"mouse:down" and "mouse:up" events are now being passed clicked target (when one exists). Add example with opacity and no boundaries (transparent boundaries) on an object.
2011-06-30 14:46:30 -04:00
kangax
a7155ccbfb
Reorganize project structure. Add "customization" demo (work in progress).
2011-06-29 11:10:08 -04:00
kangax
628efcdc70
fabric.Element is renamed to fabric.Canvas, which makes more sense. fabric.Element is kept for compatibility reasons (but is deprecated). Bump version to 0.3.
2011-06-28 19:14:40 -04:00
kangax
6845db3670
Rework observable mechanism: All events are now scoped to canvas instances. fabric.util.observeEvent(...) becomes canvas.observe(...) and only observes events of that particular canvas instance. fabric.util.observeEvent becomes fabric.util.observe, fabric.util.stopObservingEvent — fabric.util.stopObserving, and fabric.util.fireEvent — fabric.util.fire. These could still serve as a generic pub-sub mechanism. Add "mouse:down" event (to be consistent with "mouse:up"). Add "Event inspector" demo page.
2011-06-27 18:25:45 -04:00
kangax
99919e7b94
Add object hovering example to demos.
2011-06-17 14:19:58 -04:00
kangax
1d9247ab3a
When cloning canvas (in toDataURL, for example) make sure to clone clipTo (clipping function) property as well.
2011-05-26 09:03:11 -04:00
kangax
dcaee8bf0c
Add demo of an animating cross (demonstrating how to create a custom class).
2011-05-24 15:14:40 -04:00
kangax
f37b93e6c1
Add /demos with ladybug example.
2011-05-22 10:00:05 -04:00