Kienz
142a7a9779
Fire event 'removed' on object level
...
There is ```obj.fire('added')``` but not ```obj.fire('removed')```.
2013-04-02 16:05:51 +03:00
Kienz
dfec3dd2f0
fabric.StaticCanvas.clear() delete _activeObject
...
If canvas is cleared ```canvas._activeObject``` should be removed.
2013-03-28 09:06:36 +01:00
kangax
40bda07140
Fix fabric.Canvas#clipTo. Thanks @sn3p
2013-03-24 18:09:55 +01:00
Juriy Zaytsev
81993d21fb
Merge pull request #494 from Kienz/moveTo
...
Implement fabric.StaticCanvas#moveTo(object, index)
2013-03-23 14:55:14 -07:00
Kienz
3a0a2c7fd2
Implement fabric.StaticCanvas#moveTo to move object to specified level in stack of drawn objects
...
You can also move fabric.Group objects in the grub objects stack to a specified level.
Add unit tests for moveTo.
2013-03-22 15:10:44 +01:00
Kienz
9e79c487be
Add viewBox attribute to toSVG(options) to define the viewBox of sag output.
2013-03-22 12:57:33 +01:00
kangax
24735e6e31
Fix removal of event listeners in fabric.Canvas#dispose on touch-based devices. Version 1.1.3
2013-03-20 23:38:22 +01:00
kangax
919f95a0a0
Move collection-related methods to fabric.Collection, shared by fabric.Canvas and fabric.Group.
2013-03-20 10:28:35 +01:00
kangax
9bb38c144c
Fix toDataURL not honoring format. Thanks ebirbal.
2013-03-18 13:03:54 +01:00
kangax
2622a380bf
[BACK_INCOMPAT] fabric.Group#objects -> fabric.Group._objects (making it consistent with canvas._objects). Objects in group always have group reference to a group they're in. bringToFront, sendToBack, etc. now work in relation to group when called on objects within group.
2013-03-16 16:41:19 +01:00
kangax
85fd7ee852
Add support for clipping objects. Closes #64
2013-03-10 21:06:17 +01:00
kangax
506125bbe6
[BACK_INCOMPAT] fabric.Canvas.toDataURL now accepts options object instead linear arguments. fabric.Canvas.toDataURLWithMultiplier is deprecated; use toDataURL({ multiplier: … }) instead.
2013-03-06 18:47:50 +01:00
kangax
17a88e93e1
Doc fixes
2013-02-24 12:40:16 +01:00
Juriy Zaytsev
a0c31a2628
Merge pull request #437 from Kienz/svgOutputValidation
...
Ensure valid SVG output (http://validator.w3.org/ )
2013-02-20 04:28:32 -08:00
kangax
9be89b2f2f
drawCorners -> drawControls, for consistency. Remove unused hasCorners and use hasControls instead of hideCorners. Version 1.0.12
2013-02-20 13:19:22 +01:00
Kienz
686b926955
Valid svg output ( http://validator.w3.org/ ):
...
- delete width/height attributes from g (http://www.w3.org/TR/SVG/struct.html#GElement ) and path element (http://www.w3.org/TR/SVG/paths.html#PathElement )
- update DOCTYPE for svg version 1.1
2013-02-19 19:48:07 +01:00
Kienz
b172a47ebe
Fixed svg output for backgroundColorPattern with repeat: 'no-repeat'
2013-02-16 18:55:00 +01:00
Kienz
5e81f7ab09
Add backgroundColor to svg output
...
Add backgroundColorPattern to svg output
Bugfix backgroundImage in sag output - width/height are depend on backgroundImageStretch
Bugfix in setBackgroundColor - rename pattern to repeat
2013-02-14 22:06:01 +01:00
Arthaey
48ab4607b9
Add option to suppress XML preamble in toSVG method.
2013-02-05 22:20:56 -08:00
kangax
6777c50012
Add support for patterns
2013-02-03 02:15:29 +01:00
kangax
87a1bb31bf
Amalgamate canvas creation + VML initialization into one place. Add new method fabric.util.createCanvasElement. Version 1.0.3.
2013-01-25 14:23:13 +01:00
kangax
268dbb2114
Clear top context in toDataURL* methods. Closes #399
2013-01-25 14:20:53 +01:00
Juriy Zaytsev
74855f6fd1
Merge pull request #388 from FremyCompany/patch-1
...
Add 'object:removed' and 'canvas:cleared' events
2013-01-23 14:02:44 -08: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
FremyCompany
7f2e8030c7
Added: 'canvas:cleared' event
...
When the canvas is cleared, it doesn't fire any 'object:removed' event, on purpose
2013-01-18 17:27:21 +01:00
FremyCompany
fd4a9733d4
Added: 'object:removed' event
...
Inlined removeFromArray call (because it didn't return whether indexOf returned -1 or not so I couldn't know if 'object:removed' had to be fired or not
2013-01-18 16:16:40 +01:00
kangax
b721667b7b
Discard active group when clearing canvas
2013-01-17 19:00:20 +01:00
kangax
c4bec70455
Performance optimizations
2013-01-02 23:25:13 +01:00
kangax
c8172be31d
Final doc additions. Every public method is now documented!
2012-12-16 20:44:26 +01:00
kangax
3416d8a090
Documentation additions.
2012-12-13 15:46:06 +01:00
kangax
352dd44b3c
Implement smooth free drawing. Free drawing is now a separate module. Thanks @coulix!
2012-12-06 19:47:34 +01:00
kangax
c105212c9c
Doc fixes. Version 0.9.26
2012-12-02 11:53:38 +01:00
kangax
1633bce401
Add most of the unit tests for fabric.util methods. Fix #35 .
2012-12-01 17:52:03 +01:00
Kienz
f85e7a0335
Bugfixes for new parameter propertiesToInclude
...
Doc additions, fixes.
fabric.Group.toObject() now passes object propertiesToInclude also to objects inside the group
fabric.Image.clone() has now parameter propertiesToInclude
fabric.Object.clone() has now parameter propertiesToInclude
2012-12-01 13:57:27 +01:00
kangax
2329ef59fe
Add support for specifying additional properties to return in toObject, toJSON. Fix #272 .
2012-11-30 23:46:09 +01:00
coulix
8f8322fb46
Merge master
2012-11-30 18:57:49 +01:00
kangax
f75934ec7c
Fix error in fabric.StaticCanvas#toDataURLWithMultiplier. Closes #327 .
2012-11-29 13:53:13 +01:00
coulix
61db93d5ec
Smooth live free drawing on contextTop canvas
2012-11-28 11:55:30 +01:00
kangax
b763330289
Make active group respect clipping/overlay.
2012-11-03 16:11:00 +01:00
Steve Pemberton
3b3c439b00
Added code to resize cache canvas.
...
_setDimensions will now correctly alter the cache canvas size when the
other canvases are resized. This ensures per pixel hit testing will
still function.
2012-10-30 23:34:52 +00:00
kangax
3541f4a45d
More robust drawControls.
2012-10-30 18:43:55 +01:00
kangax
a816fb9740
Fix object controls detection when controlsAboveOverlay=true. Fix #256 .
2012-10-28 13:56:07 +01:00
kangax
aaee929373
Make overlay image part of canvas object/json representation. Some renderAll cleanup. Fix #265 .
2012-10-28 12:21:44 +01:00
kangax
48443c193b
Fix sendBackwards/bringForward methods to work with larger objects covering smaller ones. Fix #241 .
2012-10-28 11:21:47 +01:00
Steve Pemberton
e8cdf8e2fe
Fixes for shift selecting/unselecting groups
...
Shift selecting/deselecting no longer causes the group to have its
transform re-applied.
You can no longer drag a shift added object separately from the group.
This also fixes the issue of the object jumping on addition to a group.
Objects in a group are now rendered to the upper-canvas in the order
they are in on the lower canvas.
2012-10-21 15:31:11 +01:00
kangax
39efd11c4c
Add overlayImageLeft, overlayImageTop properties to control position of canvas overlayImage. Add "before:render" event.
2012-10-20 20:11:55 +02:00
kangax
8494350baf
Remove onFpsUpdate as it's such a rarely used functionality (and could be accomplished on application level).
2012-10-20 20:10:32 +02:00
kangax
0243009218
Doc fixes.
2012-10-17 11:02:53 +02:00
kangax
84a956c4b6
Lint everything with JSHint. Version 0.9.14.
2012-10-14 02:53:12 +02:00
Kienz
0595577c6e
support check for toDataURL with quality parameter
2012-09-29 09:51:47 +02:00