Commit graph

1179 commits

Author SHA1 Message Date
Kienz
cd49e7d90e Update README
Move getKlass into seperate function (fabric.util.getKlass)
2013-05-31 20:52:04 +02:00
Stefan Kienzle
2698597c74 Fix vertical gradients (x1 = x2 = 0)
I think `ctx.canvas.width` is not needed.
If gradient coords are e.g. `{x1: 0, y1: -50, x2: 0, y2: -50}` the vertical gradient doesn't work.
Fixes issue #660
2013-05-31 13:30:44 +02:00
kangax
5d61456c8d Fix build.js 2013-05-31 12:46:46 +02:00
kangax
b3f76c7e09 Fix build.js 2013-05-30 22:09:55 +02:00
kangax
77013208de Fix build.js, build distribution 2013-05-30 21:59:58 +02:00
kangax
2223b1b61f Remove more functions in distribution when SVG import (parser) is not included. Always include stateful mixin. Closes #662 2013-05-30 21:55:26 +02:00
kangax
b53209437f Move shape classes (circle, line, rect, path, etc.) to /shapes dir 2013-05-30 21:53:49 +02:00
kangax
a2c48ca712 Add cufon to list of modules in build script 2013-05-30 00:46:05 +02:00
Maxim Chernyak aka hakunin
a030d18fad Fix comment in build_all 2013-05-29 15:27:10 -03:00
kangax
8f59af2e5e Add infrastructure for building module combination files 2013-05-29 01:05:58 +02:00
Juriy Zaytsev
9027d1d22a Merge pull request #657 from Kienz/filterPatch
Fix indentation of fabric.Image.filters
2013-05-28 14:52:49 -07:00
Kienz
86211daa9a Fix indentation (2 whitespaces)
Add opaque to fabric.Image.filters.Convolute.toJSON
Update docs
2013-05-28 21:44:10 +02:00
Juriy Zaytsev
1d2ae9bcc0 Merge pull request #650 from woutercommandeur/master
Split image filters into separate files
2013-05-26 07:11:40 -07:00
Wouter Commandeur
d06b6e130e Split image filters into separate files 2013-05-26 15:42:29 +02:00
Juriy Zaytsev
9c1642ac0f Merge pull request #649 from Kienz/patch-1
Fix `fabric.util.getElementOffset` for Firefox
2013-05-25 16:29:32 -07:00
Kienz
7bb8cc63c6 Fix fabric.util.getElementOffset for Firefox 2013-05-26 01:19:54 +02:00
Juriy Zaytsev
13326cde52 Merge pull request #646 from Kienz/parseSVGOpacity
Parse SVG stroke-opacity and fill-opacity. Add hsl/hsla support.
2013-05-25 15:08:17 -07:00
kangax
0a44d30347 Fix fabric.Line to render properly when x2/y2 is smaller than x1/y1. Thanks @LimeyTX. Closes #648 2013-05-26 00:06:06 +02:00
Kienz
2c29c0cfab Fix typo, add hsl/hsla (with whitespaces) unit tests and move stuff outside of functions 2013-05-25 19:42:31 +02:00
Juriy Zaytsev
e8c3b8f4fe Merge pull request #647 from Kienz/canvasOffset
Fix wrong canvas offset
2013-05-25 09:42:03 -07:00
Kienz
46256f2eeb Reverse checks currentStyle & getComputedStyle => first check getComputedStyle and then currentStyle 2013-05-25 18:38:38 +02:00
Kienz
a6eab8d4e2 Fix wrong canvas offset
- Copy inline style attributes from lowerCanvasEl to upperCanvasEl
- Copy classes from lowerCanvasEl to upperCanvasEl
- Add borderTopWidth, borderLeftWidth, paddingTopWidth and paddingLeftWidth (offsetAttributes) to canvas offset (fabric.util.getElementOffset) - these properties are not considered from getBoundingClientRect()
- JSfiddle's for tests - new: http://jsfiddle.net/Kienz/KRcsY/, old: http://jsfiddle.net/Kienz/xrMDr/
2013-05-25 17:32:42 +02:00
Kienz
1ba6d1345e Merge remote-tracking branch 'origins/master' into parseSVGOpacity 2013-05-25 11:32:59 +02:00
Kienz
c96bc217c2 Add link to github page from that the hsl code is adapted 2013-05-25 11:23:30 +02:00
Kienz
66fc8f4d4b Parse SVG stroke-opacity and fill-opacity
- SVG attribute opacity is now used for object's opacity
- fill-opacity and stroke-opacity are added to stroke and fill color value
- Add hsl/hsla support (e.g. hsl(270, 80%, 10%), hsla(320, 10%, 66%, 0.5))
- Add support for rgb/rgba values with whitespaces around values (e.g. rgba( 255 , 100 , 50 , 0.1 )) and percentage values (e.g. rgb(100%, 67%, 15%, 0.8))
- Delete stroke and strokeWidth from fabric.Text (defined in fabric.Object)
- New unit test for parse stroke-opacity and fill-opacity
- Update unit tests (new tests for hsl/hsla and rgb/rgba (whitespaces and percentage values))
- Change equal and deepEqual parameter order (e.g. equal(actualValue, expectedValue, message))
- Doc additions
2013-05-25 11:03:09 +02:00
kangax
6830985236 Build distribution 2013-05-23 20:21:04 +02:00
kangax
d23cbcbb3a Fix unit tests 2013-05-23 20:16:08 +02:00
Juriy Zaytsev
02994ae576 Merge pull request #643 from Kienz/patch-1
Fix wrong positioned bounding box of `fabric.Polygon` and `fabric.Polyline` objects
2013-05-23 11:13:07 -07:00
Kienz
c03c556177 Fix wrong positioned bounding box of fabric.Polygon and fabric.Polyline objects
- Substract minX and minY from points.x/points.y (_calcDimensions)
- Same in fromElement - but only if minX or minY is negative
2013-05-23 20:02:44 +02:00
kangax
5e10c0011b Fix regression in adjustPosition. Version 1.1.16 2013-05-23 03:52:56 +02:00
kangax
8a52f99292 Fix line rendering when points make height become negative. Closes #589 2013-05-21 18:38:32 +02:00
kangax
f3f1db63b3 Fix fabric.Line rendering 2013-05-21 17:47:44 +02:00
kangax
257d629575 Remove space at the bottom of containing box on text objects (with high line height). Fix underline/strike-through to work with line height correctly. Closes #608 2013-05-21 13:16:26 +02:00
kangax
05c0aed92f Make travis build distribution before running tests 2013-05-21 11:54:22 +02:00
kangax
7df7e41225 Build distribution 2013-05-20 19:45:38 +02:00
Juriy Zaytsev
4cb7819c32 Merge pull request #640 from Kienz/groupFix
Remove `fabric.Group.containsPoint`; it now uses `fabric.Object.containsPoint`
2013-05-20 10:44:18 -07:00
Kienz
f0ca6b7b8f Remove fabric.Group.containsPoint => uses now fabric.Object.containsPoint
Update group unit test - containsPoint checks now scaled group and group with padding
Fix text unit test (complexity, toString)
2013-05-20 18:41:16 +02:00
Juriy Zaytsev
4aa656c549 Merge pull request #637 from Kienz/patch-1
Add `complexity` method to fabric.Text (returns 1)
2013-05-20 02:44:51 -07:00
Kienz
727c075235 Add method complexity() to fabric.Text (returns 1) 2013-05-20 10:17:39 +02:00
kangax
d2bcfc922d Build distribution 2013-05-19 16:26:23 +02:00
Juriy Zaytsev
21bfba0d42 Merge pull request #622 from nathan-muir/master
Fix issue with `getElementOffset` when using canvas in fullscreen mode
2013-05-19 04:10:43 -07:00
kangax
1ed4e40bdf Move brushes to /brushes and mixins to /mixins. Organize ATTRIBUTE_NAMES to use fabric.SHARED_ATTRIBUTES. 2013-05-18 16:43:49 +02:00
kangax
743a103e8e Version 1.1.15 2013-05-18 15:32:03 +02:00
Juriy Zaytsev
cb638503d7 Merge pull request #636 from Kienz/strokeDashArray
Better strokeDashArray support + Fixes
2013-05-18 06:23:21 -07:00
Kienz
d80fec5df1 Better strokeDashArray support + Fixes
- fabric.Text has now strokeDashArray support (only native support)
- fabric.Text.fill = null should now work
- Fix save/restore context in render methods => setLineDash affected drawBorder/drawControls
- Add strokeLineCap (default "butt"), strokeLineJoin (default "miter") and strokeMiterLimit (default 10)
- Add support for fabric.Object#fromElement for strokeDashArray (and other stroke properties)
- Add @default tag to properties (JSDoc 3)
- strokeDashArray now only works if stroke property is defined
- Add trokeLineCap (default "round"), strokeLineJoin (default "round") to fabric.BaseBrush
- Updated unit tests
2013-05-18 13:01:34 +02:00
Nathan Muir
fd22edb289 Merge pull request #1 from kangax/master
Merged master branch
2013-05-15 20:52:10 -07:00
kangax
4491b24a75 Build distribution 2013-05-14 12:35:07 -04:00
kangax
f1c8670102 Remove unnecessary script attributes 2013-05-14 12:34:59 -04:00
kangax
6f306a6436 Add no-es5-compat option during build. Add option to include/exclude stateful module during build. 2013-05-14 12:34:45 -04:00
kangax
b2bcb3aff5 Fix adjustPosition and _getLeftTopCoords 2013-05-14 11:25:52 -04:00