Commit graph

1154 commits

Author SHA1 Message Date
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
kangax
0be6a5d556 Fix node text rendering. Version 1.1.14 2013-05-12 20:30:24 -04:00
kangax
c65b1f5e7d Add support for parsing shorthand font declaration in styles, such as "font: italic 12px Arial,Helvetica,sans-serif" 2013-05-12 13:01:23 -04:00
Juriy Zaytsev
0229df4a78 Merge pull request #627 from aleph1/master
Optimize Grayscale Filter performance and footprint
2013-05-11 10:53:11 -07:00
Juriy Zaytsev
cfcf8adb9c Merge pull request #626 from Kienz/objectModifiedFix
Don't fire object:modified on group selection (with shiftKey) - Closes #625
2013-05-11 10:20:48 -07:00
Daniel Barber
17c83dcd67 Optimized Grayscale Filter performance and footprint.
Changed from "for" to "while" loop and reduced number of variables.

It is possible to get even better performance by assigning the average
amount in a single line, or by dropping the average variable and doing
a direct assignment (See:
http://jsperf.com/fabric-js-grayscale-benchmark/5), however I wasn't
sure if this is against the project's coding guidelines.
2013-05-11 12:29:29 -04:00
Kienz
efc4d8f486 Don't fire object:modified on group selection (with shiftKey)
Fixing tags for jsdoc
2013-05-11 11:27:31 +02:00
Juriy Zaytsev
74a7bfd4bb Update README.md 2013-05-10 13:43:11 -03:00
Nathan Muir
8e8597cb7b Updated fabric.util.getElementOffset(). Returns correct offset when using requestFullscreen(parentElement) 2013-05-10 14:14:38 +10:00
kangax
8c8f91a444 Build distribution. Version 1.1.13 2013-05-09 14:22:31 -04:00
kangax
2b6b64dd02 Add support for removing SVG export functionality during build (via no-svg-export flag) 2013-05-09 14:21:10 -04:00
Juriy Zaytsev
792d40a482 Merge pull request #621 from Kienz/selectionFix
Fix isContainedWithinRect and isContainedWithinObject - Closes #610
2013-05-09 11:18:20 -07:00
Kienz
6e612facc6 Fix isContainedWithinRect and isContainedWithinObject, Add fabric.Object.containsPoint 2013-05-09 19:41:04 +02:00
kangax
70cf7a6963 Tweak docs 2013-05-09 12:14:30 -04:00
Juriy Zaytsev
5c1bf08dce Merge pull request #620 from Kienz/patch-1
Check infinity in setCoords() if object has zero width
2013-05-09 08:56:22 -07:00
Kienz
d2d1c50872 Check infinity in setCoords() if object has zero width 2013-05-09 12:14:00 +02:00
kangax
6c3bfa5c92 Build distribution 2013-05-09 00:16:10 -04:00
Juriy Zaytsev
9843d6642b Merge pull request #611 from xxorax/nodeOnloadFilter
Fix callback called 2 times on Node
2013-05-08 21:05:35 -07:00
kangax
5f8ca2cbc9 Make background white when generating data url jpeg image. Closes #613 2013-05-07 11:37:00 -04:00
xxorax
dcfeb9c8ff Fix callback called 2 times, recent versions of Node call onload on the
elements
2013-05-06 18:35:42 +02:00
kangax
a47128afa4 Add support for same options in fabric.Object#toDataURL as there are in fabric.Canvas#toDataURL. Closes #609 2013-05-06 11:52:16 -04:00
Stefan Kienzle
662b322cd1 Call setCoords() only on target object
Only update target's cornerCoords.
2013-05-06 18:11:42 +03:00
kangax
d6e292e482 Fix text rendering. Closes #590. Version 1.1.12 2013-05-05 13:23:49 -04:00
kangax
fde521317e Store result of setLineDash support check. Build distribution. Version 1.1.11 2013-05-04 20:29:59 -04:00
Juriy Zaytsev
f297127c46 Merge pull request #607 from Kienz/dashedStroke
Implement dashed stroke + some fixes with stroke, fill, removeShadow and clipTo + fixes in brushes. Closes #603
2013-05-04 16:44:54 -07:00
Kienz
e4287accb6 Fix typo 2013-05-04 18:32:22 +02:00