Commit graph

996 commits

Author SHA1 Message Date
Travis Paul
3fcdc4d712 Fixed unit test link, removed build doc instruction (appear to only be in fabricjs.com repo) 2013-03-23 11:53:23 -04:00
Juriy Zaytsev
e8de627f98 Merge pull request #493 from Kienz/viewBoxSVG
Add option to define viewBox in fabric.Canvas#toSVG
2013-03-22 11:18:01 -07:00
Juriy Zaytsev
dbbd0c5095 Merge pull request #492 from Kienz/visiblePropFix
Bugfix for visible property / doc additions
2013-03-22 11:06:27 -07:00
Kienz
9e79c487be Add viewBox attribute to toSVG(options) to define the viewBox of sag output. 2013-03-22 12:57:33 +01:00
Kienz
4b1939e5d3 Add check if object is visible to fabric.Image and fabric.Path. Now all fabric instances with own render method should check for visible property.
Some doc updates - add noTransform to doc and set it optional
2013-03-22 12:10:34 +01:00
Juriy Zaytsev
97fdc215a8 Merge pull request #488 from Kienz/patch-2
Bugfixes for fabric.Object#visible
2013-03-20 16:13:41 -07: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
Kienz
6379278384 fabric.Text#visible not working
Bugfix for text objects - only render visible objects
2013-03-20 19:20:05 +01:00
Kienz
292178474d fabric.Object#visible bugfixes and improvements
Bugfixes if perPixelTargetFind = false => object are found if they are invisible with mouse hover.
Only consider visible objects in findTarget (improvement).
2013-03-20 19:17:39 +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
da9cda6c90 [BACK_INCOMPAT] Version 1.1.2.
canvas.freeDrawingColor -> canvas.freeDrawingBrush.color;
canvas.freeDrawingLineWidth -> canvas.freeDrawingBrush.width;
2013-03-19 16:05:13 +01:00
kangax
8bea909a54 Merge master 2013-03-19 15:52:14 +01:00
kangax
2a5645fcd5 Fix scaling event not firing sometimes. Thanks @rcyrus. 2013-03-19 15:36:25 +01:00
kangax
030da0d36c Build distribution 2013-03-19 13:31:57 +01:00
kangax
7f19110967 Update docs on left/top being relative to object center 2013-03-19 13:20:21 +01:00
kangax
d89bbf0d8d Temporarily comment out unit tests that fail due to Node 0.10 bug (https://github.com/joyent/node/issues/5011) 2013-03-19 13:10:33 +01:00
Juriy Zaytsev
826fe8a714 Merge pull request #481 from Kienz/patch-1
Fix fabric.Group#visible
2013-03-19 05:04:33 -07:00
kangax
ebfe7adf0f Add node 0.10 to travis config 2013-03-19 12:46:29 +01:00
Kienz
4800b0729b fabric.Group#visible = false did not work
The fabric.Object#visible attribute has no affect to fabric.Goup and its objects.
2013-03-18 14:32:05 +01:00
kangax
e8e32e80de Fix gradient colorStops initialization. Thanks @Kienz 2013-03-18 13:11:31 +01:00
kangax
9bb38c144c Fix toDataURL not honoring format. Thanks ebirbal. 2013-03-18 13:03:54 +01:00
kangax
ecc97413da Version 1.1.1. Closes #447 2013-03-16 16:43:26 +01:00
kangax
7123ea357f Fix JSHint warnings 2013-03-16 16:41:36 +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
8f0aee3ba1 Update dependencies 2013-03-14 13:24:45 +01:00
kangax
2cfc62169d Remove no longer needed lib/fonts 2013-03-11 18:57:59 +01:00
kangax
d881340120 Version 1.1.0 2013-03-10 21:06:29 +01:00
kangax
85fd7ee852 Add support for clipping objects. Closes #64 2013-03-10 21:06:17 +01:00
kangax
012c333bbb Fix gradient initialization 2013-03-10 21:05:24 +01:00
kangax
e886fee63d Add docs for ellipse rx/ry 2013-03-10 21:04:44 +01:00
kangax
9fb9b1ca34 Fix unit tests 2013-03-10 20:58:48 +01:00
Juriy Zaytsev
c366e1d184 Merge pull request #470 from Kienz/visiblePropFix
Bugfix fabric.PathGroup if object is not visible
2013-03-09 15:04:58 -08:00
Juriy Zaytsev
5e177b2944 Merge pull request #469 from Kienz/GradientsSVGOutput
[BACK_INCOMPAT] Implement fabric.Gradient#toSVG() and radialGradient
2013-03-09 15:02:55 -08:00
Kienz
5fec23e7c1 JSHint - remove extra comma at the end of the fabric.Color.colorNameMap object 2013-03-09 22:38:42 +01:00
Kienz
df46e3af26 Bugfix fabric.PathGroup if object is not visible
- if object is not visible and of type 'path-group' the object was still drawn
2013-03-09 22:15:31 +01:00
Kienz
e35e1a0191 [BACK_INCOMPAT] Implement fabric.Gradient#toSVG() and radialGradient
- Implement radial gradient and expand linear gradient (stop-opacity should now take into account)
- Gradients should now be included in the SVG output for the following fabric objects: circle, ellipse, line, path, polygon, polyline, rect and triangle (text is not yet implemented)
- Gradients (linear / radial) can be applied to stroke or fill property => change setGradientFill(options) to setGradient(type, options)
- Change toObject() that linear and radial gradients can be serialized
- Expand fabric.Color by 16 basic colors fabric.Color.colorNameMap => gradients with e.g. stop-color="blue" and stop-opacity="0.5 can be converted to RGBA color
- RGBA colors in svg has no affect (convert to RGB color), only stop-opacity has affect to color opacity
- Attached some test svg files http://kienzle.geschaeft.s3.amazonaws.com/projects/fabricjs/gradients/gradients.rarUpdate setGradient and addColorStop interface

Update setGradient and addColorStop interface
- setGradient('fill', {x1: 50, y2: 10, colorStops: {'0.7', 'rgba(0,153,153,0.5)'}});
- addColorStop({'0.4', 'blue'});
2013-03-09 21:00:54 +01:00
kangax
ece75b6065 Remove unused maxY variable 2013-03-09 15:28:30 +01:00
kangax
f0f5109951 Run jshint as part of npm test 2013-03-09 15:28:30 +01:00
Juriy Zaytsev
79575b9dc7 Merge pull request #467 from xxorax/master
Fix backgroundColor render on nodejs
2013-03-08 15:59:02 -08:00
root
b6a178d8a1 Fix backgroundColor render on nodejs 2013-03-09 00:34:54 +01:00
root
246c45d57c Merge branch 'master' of github.com:xxorax/fabric.js
Conflicts:
	src/node.js
2013-03-09 00:32:11 +01:00
Juriy Zaytsev
2edba75d13 Merge pull request #465 from atis--/master
Prevent Closure Compiler dying on divide by zero
2013-03-08 14:42:31 -08:00
Atis
70d3c702b1 fix infinity check so that Closure Compiler does not choke on it 2013-03-08 19:41:33 +02:00
Martin Panel
dfb1e2a230 Fix backgroundColor render on nodejs 2013-03-07 22:14:30 +01:00
Martin Panel
f84a8628c3 Fix backgroundColor render on nodejs 2013-03-07 22:11:30 +01:00
kangax
e917b144aa Remove unnecessary space in SVG output 2013-03-06 18:55:26 +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
43dd170f5b Add fabric.Object#visible property. Closes #342. Version 1.0.13. 2013-03-06 18:45:18 +01:00
kangax
9f934d4dad Minor style change 2013-03-05 19:33:16 +01:00
kangax
39fc445c07 Add fontStyle to delegated properties 2013-03-05 19:33:16 +01:00