Wouter Commandeur
b55bfd5326
fix scaling with large strokeWidth, this fixes #687
2013-06-09 21:28:08 +02:00
Wouter Commandeur
e503c36170
fix objects jumping around when scaling one side of a group and then rotating
2013-06-07 16:42:26 +02:00
kangax
51b7c09314
Move Cufon methods to text.cufon. Move drawControls to Canvas (from StaticCanvas). Move dataURL-exporting methods to dataurl_exporter mixin.
2013-06-06 12:31:32 +02:00
kangax
e1f93a3668
Move dimensionAffectingProps to fabric.Text.prototype. Simplify and speed up Intersection class. Build distribution.
2013-06-06 03:06:17 +02:00
kangax
55eeed181b
Move drawArc to utils. Simplify and speed up fabric.Point
2013-06-06 02:49:42 +02:00
kangax
64317de0d0
Revert text box behavior back to previous (so that characters don't peak out of bounding box). Version 1.1.21
2013-06-05 14:53:35 +02:00
kangax
1b1e0ecc72
Fix node text rendering again
2013-06-05 13:51:26 +02:00
Wouter Commandeur
3c9f7ba5ab
and fix bug.
2013-06-04 21:57:00 +02:00
Wouter Commandeur
54aad583cd
no need for extra local var
2013-06-04 21:55:54 +02:00
Wouter Commandeur
823ea5ecc5
local var for strokeWidth
2013-06-04 21:52:30 +02:00
Wouter Commandeur
b8e3e6d83f
proper fix for strokeWidth causing problems with controls on large scaling
2013-06-04 21:51:23 +02:00
Wouter Commandeur
af31d2abc9
fix object controls being incorrectly rendered at large scaling. Fixes #680 .
2013-06-04 21:20:03 +02:00
Wouter Commandeur
e377e681c3
adjust mouse cursor depending on rotation. fixes #644
2013-06-03 19:10:33 +02:00
kangax
2f1383a713
Fix text rendering again. Version 1.1.19
2013-06-03 18:32:44 +02:00
Wouter Commandeur
2dadf7b06a
fix transparentCorners beheaviour. When transparentCorners is specified we nolonger clearRect. See issue #405 .
2013-06-03 10:51:20 +02:00
kangax
044f5ed483
Fix rect positioning when loading from JSON. Closes #522
2013-06-03 02:24:41 +02:00
kangax
5a28acb032
Fix toJSON/toSVG serialization when there's active group on canvas. Closes #645
2013-06-03 01:55:51 +02:00
kangax
2407dbba49
Implement clipTo serialization, deserialization, and initialization. Closes #583 . Closes #677 . Closes #676
2013-06-02 23:04:54 +02:00
kangax
221146997c
Fix pattern initialization from function string. Closes #442 . Version 1.1.18
2013-06-02 22:07:16 +02:00
kangax
e65a7bfee8
Fix text rendering on Node when originY !== top
2013-06-02 21:17:26 +02:00
kangax
1c1b7e4b95
Fix function body matching regex. Add fabric.util.getFunctionBody
2013-06-01 18:08:36 +02:00
kangax
46183d8a85
Fix function body regex to match in IE. Closes #658
2013-06-01 17:48:46 +02:00
kangax
9b09a957f4
Better docs
2013-06-01 16:27:10 +02:00
kangax
6e41088614
Fix getElementOffset in IE<9
2013-06-01 13:14:52 +02:00
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
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
Kienz
86211daa9a
Fix indentation (2 whitespaces)
...
Add opaque to fabric.Image.filters.Convolute.toJSON
Update docs
2013-05-28 21:44:10 +02:00
Wouter Commandeur
d06b6e130e
Split image filters into separate files
2013-05-26 15:42:29 +02: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
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
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
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
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
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