Commit graph

1179 commits

Author SHA1 Message Date
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
Juriy Zaytsev
fabe98a015 Merge pull request #462 from llocust/patch-3
Update dom_event.js
2013-03-04 16:55:23 -08:00
llocust
ff8b09fb35 Update dom_event.js
Sorry.. Copy+Past from .min version...
e->event
2013-03-05 04:54:41 +04:00
Juriy Zaytsev
249d1103fa Merge pull request #461 from llocust/patch-2
Update dom_event.js
2013-03-04 16:43:59 -08:00
llocust
5662472f81 Update dom_event.js
On a mobile (touchbased) platform at an event 'touchend' data are stored in the changedTouches array.
2013-03-05 04:14:43 +04:00
kangax
b260845af9 Fix hasControls value being lost after object is part of a group. Closes #445. 2013-03-02 01:39:32 +01:00
kangax
af5a0ac74f Make group getter respect delegated properties 2013-03-02 01:25:34 +01:00
kangax
638876f3f8 Add support for passing additional state properties into saveState 2013-03-02 01:25:08 +01:00
kangax
293227811f Doc additions 2013-02-27 00:48:27 +01:00
Kienz
ae67d83216 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-02-25 18:26:20 +01:00
kangax
17a88e93e1 Doc fixes 2013-02-24 12:40:16 +01:00
Kienz
4c4f845bfe [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.rar
2013-02-23 17:02:52 +01:00
kangax
7d9c91de70 res -> response and remove unnecessary semicolon 2013-02-22 17:24:22 +01:00
Juriy Zaytsev
4651d6ecd9 Merge pull request #413 from uruz/feature/fix-failing-test
Fix failing test: fabric.util.loadImage
2013-02-22 08:22:09 -08:00
kangax
be4db2f409 Fix doc. Thanks @rodrigopandini 2013-02-20 23:42:38 +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