Commit graph

885 commits

Author SHA1 Message Date
kangax
d645c4e7dc Add ability to specify pattern repeat via options 2013-02-04 20:49:05 +01:00
Juriy Zaytsev
72fb3e8d32 Merge pull request #409 from Kienz/backgroundColorFix
Fix backgroundColor (backgroundPattern) in loadFromJSON / loadFromDatalessJSON
2013-02-04 07:28:01 -08:00
Kienz
cfb97f3f83 Fix backgroundColor (backgroundPattern) in loadFromJSON / loadFromDatalessJSON 2013-02-04 15:40:18 +01:00
kangax
953f2a2d15 Version 1.0.5 2013-02-03 17:01:39 +01:00
kangax
107dcfcbd6 Add fabric.Pattern tests 2013-02-03 17:01:01 +01:00
kangax
7fd1a09174 Fix typo in serialization module 2013-02-03 02:17:46 +01:00
kangax
5f8bff50a7 Some free drawing refactoring 2013-02-03 02:15:29 +01:00
kangax
6777c50012 Add support for patterns 2013-02-03 02:15:29 +01:00
Juriy Zaytsev
ac78df5c67 Merge pull request #407 from Kienz/getPointerFix
Fix for getPointer on touchDevices + Fix for absolute postioned scrolled elements
2013-02-02 16:30:25 -08:00
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
Juriy Zaytsev
3b10cb0db9 Merge pull request #400 from Kienz/freedraw_fix
fabric.FreeDrawing: Clear contextTop before call renderAll() in _finalizeAndAddPath
2013-01-26 14:39:20 -08:00
Kienz
64bdb13836 Clear contextTop before call renderAll() in _finalizeAndAddPath 2013-01-26 15:08:53 +01:00
kangax
de01cfc636 Update README 2013-01-25 14:31:38 +01:00
kangax
7adb624f0b 2012 -> 2013 2013-01-25 14:31:31 +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
90b383246f Merge pull request #397 from hickert/master
Update event registration for touch devices
2013-01-24 11:28:23 -08: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
Juriy Zaytsev
c581369c49 Merge pull request #395 from Kienz/aligning_centering_guidelines
Fixes for aligning_guidelines and centering_guidelines
2013-01-23 01:31:02 -08:00
Kienz
870322ee24 Fixes for aligning_guidelines and centering_guidelines
aligning_guidelines:
- Bugfix for rotated objects - rotated objects should be aligned correctly

centering_guidelines:
- Fix for objects with different origin (originX or originY != 'center')
- Fix for clear lines
2013-01-22 23:35:22 +01:00
Juriy Zaytsev
845c3547b0 Merge pull request #392 from Kienz/aligning_bugfix
Bugfix align_guidelines for canvas.toDataURL()
2013-01-22 03:31:43 -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
e262606eee Update uglyfyjs, build distribution 2013-01-21 21:14:57 +01:00
kangax
c2c1324a37 Remove old yui compressor file 2013-01-21 21:14:57 +01:00
Juriy Zaytsev
5794bd96a7 Merge pull request #391 from Kienz/patch-1
Fix for dynamic_origin + Remove lines correctly on object moving
2013-01-21 12:01:53 -08:00
Kienz
b555e56241 Fix for dynamic_origin + Remove lines correctly on object moving
Fix if objects have different origins (originX != 'center' and/or originY != 'center')
Lines now removed correctly on object:moving (bug since commit c4bec7045532886a338ef7ae91c80bfd8fb28851)

[BACK_INCOMPAT] for fabric.js versions < 1.0.0
2013-01-21 14:22:10 +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
Juriy Zaytsev
bf61e2a2b0 Merge pull request #387 from iFixit/master
Add createJPEGStream method for fabric canvas
2013-01-17 13:22:08 -08: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
60af92a9c3 Version 1.0.2 2013-01-17 19:04:02 +01:00
kangax
45f5acb95d Bump node-canvas version to 1.0.0 2013-01-17 19:00:20 +01:00
kangax
51eebaf882 Make travis test in node 0.9 2013-01-17 19:00:20 +01:00
kangax
ec469b6419 Version 1.0.1 2013-01-17 19:00:20 +01:00
kangax
c14c7a329e Prevent event.js from erroring out in Node 2013-01-17 19:00:20 +01: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
Juriy Zaytsev
3269e83628 Merge pull request #381 from Kienz/patch-1
Bugfix for controlsAboveOverlay (issue #380)
2013-01-15 06:40:58 -08: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