Kienz
ddaf8ba796
Fix touch events if canvas is inside a scrolled container (see issue #123 ).
...
Fix bug if mouse moves over absolute scrolled element while object scaling (see issue #385 ). Also if mouse is moved over documentElement (fabric.document) while scaling object is fixed (same issue like #385 ).
Tested with Safari 5.1.7, 6.1, Firefox 18, 3.6.28, Chrome 24/25beta, Opera 12.12 and iPhone iOS 6.1, iPad iOS 6.1 in non-scrolled and scrolled containers.
2013-02-01 18:27:20 +01:00
kangax
69f1b20a8e
Add fabric.Object#getBoundingRect. getBoundingRectWidth/getBoundingRectHeight are deprecated.
2013-01-29 18:06:44 +01:00
kangax
42c857c18c
Pass event to "object:rotating" callback
2013-01-29 18:06:43 +01:00
Kienz
64bdb13836
Clear contextTop before call renderAll() in _finalizeAndAddPath
2013-01-26 15:08:53 +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
Fabian Hickert
18b7e05eb2
Fixed event handling for touch-supported devices.
2013-01-24 11:32:58 +00: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
kangax
6da2ed6d65
More canvas refactoring
2013-01-20 20:40:26 +01:00
kangax
70119f7095
Refactor some logic from canvas and object classes into mixins
2013-01-20 20:40:26 +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
Cedric Wienold
958f37d8fb
Add createJPEGStream support for fabric canvas
...
Node Canvas already has support for createJPEGStream. Create a route to
take advantage of that through fabric.js canvas.
2013-01-17 12:48:41 -08:00
kangax
b721667b7b
Discard active group when clearing canvas
2013-01-17 19:00:20 +01:00
kangax
7a527437c9
Avoid expensive regex when modifying data url string
2013-01-17 19:00:20 +01:00
Kienz
2715ef306c
Bugfix for controlsAboveOverlay (issue #380 )
...
Only if pointer is over targetCorner lastRenderedObjectWithControlsAboveOverlay is used as targetObject.
See issue #380 .
2013-01-14 17:09:50 +01:00
kangax
1f206d039e
Move gesture-based logic into a separate module
2013-01-10 18:23:23 +01:00
kangax
84270a47b2
Merge remote-tracking branch 'jaffer/master'
2013-01-10 14:31:59 +01:00
kangax
082bee8279
Add fabric.Canvas.prototype.freeDrawingCursor
2013-01-10 14:22:02 +01:00
kangax
157ff19d47
Fix overlayImage not being applied in loadFromJSON under Node
2013-01-10 14:21:21 +01:00
kangax
4a84bf92a7
Clone options object of animate (to avoid conflicts)
2013-01-10 14:20:52 +01:00
kangax
d47ed61d49
Remove unnecessary e
2013-01-10 14:20:36 +01:00
kangax
3194c1903a
Do not show corners in groups
2013-01-10 14:20:25 +01:00
kangax
dffe675eb2
Fix toDataURL doc
2013-01-10 14:20:13 +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
kangax
a870e11a57
Fix fabric.util.loadImage in node
2013-01-04 19:15:18 +01:00
Josh Pearce
d56bf59137
Add image load onerror handler
...
Make sure, when loading from json, that
a bad image path doesn't fail the desserialization
Signed-off-by: kangax <kangax@gmail.com>
2013-01-04 19:14:24 +01:00
kangax
dc2e5210ae
Work around VML's clearRect bug
2013-01-03 01:18:29 +01:00
kangax
c4bec70455
Performance optimizations
2013-01-02 23:25:13 +01:00
kangax
fb915851db
Fix lost event in IE7/8. Closes #364 .
2012-12-29 20:00:24 +01:00
kangax
2735d543e2
Merge master. Enable hasRotatingPoint by default (now that objects are not rotated via corners)
2012-12-26 11:18:17 +01:00
kangax
c11abb377f
Fix tests. Build distribution. Version 0.9.35.
2012-12-23 15:28:08 +01:00
kangax
06e6365068
Fix unnecessary JS error when calling require
2012-12-23 15:19:21 +01:00
kangax
a7a6c38384
Fix incorrect parsing of fontSize which made text not appear when loaded from SVG. Closes #331 .
2012-12-23 15:18:46 +01:00
kangax
a37fcc92d4
Fix incorrect rendering of text + path SVG. Closes #355 .
2012-12-23 15:17:45 +01:00
kangax
4ae8b9d725
Simplify object straightening logic. Thanks @woutercommandeur. Closes #362 .
2012-12-22 20:20:54 +01:00
kangax
299273d7bd
[BACK_INCOMPAT] fabric.Object#cornersize -> fabric.Object.cornerSize
2012-12-22 16:37:43 +01:00
kangax
882d7085d8
Fix fabric.Object#cloneAsImage on node. Closes #336 . Version 0.9.34
2012-12-20 19:49:51 +01:00
kangax
f0d2235053
Fix group loading in dateless json. Closes #322
2012-12-20 16:23:31 +01:00
Andrey Kravtsov
216b3234aa
Changed approach for relative animations.
...
Issue #356
2012-12-19 19:36:42 +04:00
kangax
e12b6598cd
Merge master
2012-12-18 18:12:08 +01:00
kangax
8c14478340
Add support for "text-align: justify". SVG representation is not yet working.
2012-12-18 18:01:30 +01:00
kangax
71dd5a9ec0
Pass original event to all fabric custom events (that are triggered via mouse/touch)
2012-12-18 11:52:18 +01:00
kangax
203ea6b51f
Doc fixes
2012-12-18 11:46:51 +01:00
kangax
c8172be31d
Final doc additions. Every public method is now documented!
2012-12-16 20:44:26 +01:00
kangax
b5b901e99e
Fix isMoving not set to false sometimes. Closes #350 . Version 0.9.31.
2012-12-15 17:29:40 +01:00
kangax
7eae38db57
Doc additions.
2012-12-15 17:29:40 +01:00
kangax
6ed3dda6f5
Merge master
2012-12-15 17:16:39 +01:00
kangax
4bcc0bd80f
Add uniScaleTransform and centerTransform parameters to canvas, which control how objects are transformed
2012-12-15 17:13:40 +01:00