Commit graph

3403 commits

Author SHA1 Message Date
XhmikosR
d8b1eca014 Trim trailing spaces. 2014-02-23 20:16:20 +02:00
kangax
1d4356008a Revert scroll detection change. 2014-02-21 15:04:42 -05:00
kangax
52a60769ee Update docs, specifying ms. 2014-02-20 13:59:27 -05:00
kangax
6a456f39f0 Update README 2014-02-19 15:37:32 -05:00
kangax
bcc90f1120 Build distribution 2014-02-19 15:26:14 -05:00
kangax
8e75acf836 Expose cursorMap. Closes #1179 2014-02-19 15:26:07 -05:00
kangax
c85a33752b Fix iText stealing focus 2014-02-19 15:25:50 -05:00
kangax
0dbf03835d Fix typo, build dist 2014-02-19 14:59:50 -05:00
Juriy Zaytsev
8f2d29f5d6 Merge pull request #1172 from kreig/patch-1
fabric.Object.fillRule support using globalCompositeOperation
2014-02-19 14:44:05 -05:00
Juriy Zaytsev
b490476c8a Merge pull request #1178 from shanawho/patch-1
removed extraneous scripts property
2014-02-19 07:18:56 -05:00
shanawho
9b2e9136ef removed extraneous scripts property
removed scripts because it causes fabric to be loaded twice
2014-02-19 00:21:00 -08:00
kangax
0eed619d98 Make isContainedWithinObject check for equality as well. Closes #1177 2014-02-18 17:07:37 -05:00
kangax
6798111f03 Build distribution 2014-02-18 15:14:06 -05:00
kangax
32368ecbad Fix require typo 2014-02-18 14:53:59 -05:00
Juriy Zaytsev
7ded46ce7f Merge pull request #1168 from aspectit/css-scale-new
Fix mouse handling if the canvas has been scaled via CSS.
2014-02-18 11:58:29 -05:00
Juriy Zaytsev
44c279a154 Merge pull request #1136 from msievers/parser_race_condition
Fix race condition in fabric.parseElements by converting ElementsParser to a constructor function
2014-02-18 10:34:48 -05:00
Michael Sievers
3faf5f0bae Added missing semicolon 2014-02-18 13:44:02 +01:00
Michael Sievers
bd2a235b12 Move ElementsParser instance methods to prototype 2014-02-18 13:44:01 +01:00
Michael Sievers
d44bde4605 Added semicolon to satisfy jshint 2014-02-18 13:43:20 +01:00
Michael Sievers
179ad93dc5 Make ElementsParser a constructor function and create instances in fabric.parseElements 2014-02-18 13:43:19 +01:00
Michael Elsdörfer
50107b06d7 Handle missing canvas bounds information correctly.
Fixes test failure.
2014-02-18 00:17:31 +01:00
Michael Elsdörfer
dc6e53288c Also consider CSS transforms when handling mouse. 2014-02-18 00:17:31 +01:00
Michael Elsdörfer
d5f948877c Make mouse handling respect CSS scaling.
Also DRYs getPointer() calls in many places.

See #868.
2014-02-18 00:17:31 +01:00
kangax
631226d26b More JSCS fixes; down to 295 failures 2014-02-17 11:55:54 -05:00
kangax
9a3f8da675 Update package.json 2014-02-17 00:18:43 -05:00
kangax
73cdd76971 Add jscs as a dev dependency 2014-02-16 16:37:17 -05:00
kangax
d2f6a9033e Add JSCS validation & change bunch of things for conformance. Down to 333 failures from ~1000. 2014-02-16 16:36:14 -05:00
kangax
21f573d381 Speed up getElementStyle 2014-02-16 16:36:13 -05:00
kreig
e89c9c84bd fabric.Object.fillRule support using globalCompositeOperation
Full support for the fabric.Object.fillRule option for any visual objects.
_setupFillRule(ctx) is used to set CanvasRenderingContext2D.globalCompositeOperation (from fillRule property).
_restorFillRule(ctx) restores previously saved globalCompositeOperation.
Both methods are called form the render() method, so individual blending settings for each object can be specified.
2014-02-16 19:00:53 +02:00
Juriy Zaytsev
3564967010 Merge pull request #1171 from aspectit/eventjs
Stop Event.js from messing with global Event objects.
2014-02-15 18:37:54 -05:00
Juriy Zaytsev
1df4bfeb05 Merge pull request #1167 from aspectit/scrollTop-new
Fix mouse handling inside a scrollable div.
2014-02-15 18:34:01 -05:00
Michael Elsdörfer
8735f99aab Stop Event.js from messing with global Event objects.
Fix #1170.
2014-02-15 12:52:30 +01:00
Michael Elsdörfer
1be7b9fee8 Fix mouse handling inside a scrollable div.
See also #870, which was incorrectly merged.
2014-02-15 03:29:22 +01:00
kangax
0460e4e248 Fix recent group addition 2014-02-11 12:47:09 -05:00
kangax
7e5b0b8508 Add homepage to package.json 2014-02-11 12:46:56 -05:00
kangax
93ac070918 Make _calcBounds more flexible 2014-02-10 23:24:29 -05:00
kangax
3c656e9c95 Version 1.4.4 2014-02-10 21:39:23 -05:00
kangax
be96d93f6e Fix group origin after toJSON 2014-02-10 21:37:47 -05:00
Juriy Zaytsev
a80502f957 Merge pull request #1155 from shanawho/master
Used new bower.json format instead of deprecated component.json
2014-02-10 16:29:34 -05:00
shanawho
a538177703 added author and edited homepage 2014-02-10 13:10:32 -08:00
kangax
84eef2f12c Bump jsdom to 0.10.x 2014-02-10 12:17:55 -05:00
shanawho
dec5c83a83 removed deprecated component.json 2014-02-10 00:02:24 -08:00
shanawho
bc9744ffbd used new bower.json format 2014-02-10 00:00:34 -08:00
Juriy Zaytsev
31f3c7924c Merge pull request #1151 from RG72/patch-1
Options for node-canvas
2014-02-09 11:16:59 -05:00
RG72
107dd5735f Options for node-canvas
Allowing to write pdf via node-canvas
```var canvas = fabric.createCanvasForNode(200, 200,'pdf');
..
fs.writeFile('out.pdf', canvas.nodeCanvas.toBuffer());```
2014-02-09 12:42:15 +05:00
kangax
c664de7052 Build distribution 2014-02-06 15:49:54 -05:00
Juriy Zaytsev
de1296ec45 Merge pull request #1143 from maciej-filip-sz/bug/Line-coords-rebased
Line object coordinates are correct
2014-02-06 15:47:35 -05:00
Maciej Filip Szkodziński
7d72d0500f Removed Line._getCenterToCenter helpers
Pre-rendering context translation for lines in path-groups uses the
pre-existing getCenterPoint.

Removed tests for removed code.
2014-02-05 17:33:20 +01:00
Maciej Filip Szkodziński
df764728e0 Fix group mocks in Line tests
Added missing semicolons in tests.

Refactored Line centerToCenterGetter to improve readability.
2014-02-05 17:07:45 +01:00
Maciej Filip Szkodziński
6b1e144c44 Line coordinates are correct
fabric.Line._setWidthHeight was assigning left and top as if both
origins were 'center'.

It now uses private helper methods to calculate the distances from
left and top edges of canvas to the line origins.

The data for existing Line.toObject test is updated with origin-relative
coordinates.

Rendering of line inside a path-group was assuming a 'center' origin
for both coordinates.

Context translation done before rendering for lines inside path-groups
now uses private helper methods to calculate distances from the center
of path-group to center of line.
2014-02-05 15:42:52 +01:00