Commit graph

908 commits

Author SHA1 Message Date
kangax
a77cbfe2be Text fixes for node-canvas. Version 1.0.9 2013-02-15 14:11:58 +01:00
Juriy Zaytsev
24e9bb8513 Merge pull request #425 from Kienz/patch-1
Change order of fabric.Group objects toSVG()
2013-02-15 04:40:48 -08:00
Kienz
d9f88d061d fabric.Group objects toSVG() order changed
Changed the sort order in toSVG() from "first..last" to "last..first".
If they rendern on canvas the same order is used https://github.com/kangax/fabric.js/blob/master/src/group.class.js#L243
2013-02-15 13:17:12 +01:00
Juriy Zaytsev
6aa9bf691b Merge pull request #424 from Kienz/svgoutput
fabric.StaticCanvas.toSVG() + fabric.StaticCanvas.setBackgroundColor
2013-02-14 17:54:12 -08: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
Juriy Zaytsev
1d15556321 Merge pull request #421 from Kienz/offsetProblem
Bugfix for wrong offset for cloned objects (polygon & polyline)
2013-02-13 11:08:08 -08:00
Kienz
2cd3525147 Bugfix for wrong offset if object is cloned. Same bug as issue #416 2013-02-13 19:22:19 +01:00
kangax
cd93d7efd9 Build distribution. Version 1.0.7 2013-02-11 13:23:43 +01:00
kangax
160e7e5ded Alias fabric.Observable.fire to trigger, similar to jQuery, Backbone, etc. Closes #401 2013-02-11 13:22:30 +01:00
kangax
97fa81aa77 Fix polygon boundaries. Closes #416 2013-02-11 13:21:33 +01:00
kangax
a0dcad78a1 Specify that fontSize is in pixels 2013-02-06 22:36:39 +01:00
kangax
776d966bdb Remove polygon offsetting fix which broke some SVG shapes 2013-02-06 21:04:14 +01:00
kangax
ed0716718a Fix build minification. Closes #417 2013-02-06 20:42:39 +01:00
kangax
4995fd9ed1 Fix free drawing path initialization 2013-02-06 20:41:58 +01:00
kangax
a4340fda45 Doc fixes 2013-02-06 16:20:53 +01:00
kangax
f140e2159e Build distribution 2013-02-06 16:20:53 +01:00
kangax
c49cbd33bc Fix bug in loadFromJSON 2013-02-06 16:20:53 +01:00
kangax
e4719d4300 Add support for animating 2nd level object properties 2013-02-06 16:20:53 +01:00
Juriy Zaytsev
a174387292 Merge pull request #415 from Arthaey/master
Add option to suppress XML preamble in toSVG method
2013-02-06 06:17:38 -08:00
Arthaey
48ab4607b9 Add option to suppress XML preamble in toSVG method. 2013-02-05 22:20:56 -08:00
kangax
18e6e4f353 Version 1.0.6 2013-02-04 20:49:05 +01:00
kangax
5ee9b13a92 Add support for shadows (via fabric.Shadow) 2013-02-04 20:49:05 +01:00
kangax
8b04e286a8 Log full errors instead of just its messages 2013-02-04 20:49:05 +01:00
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