Commit graph

2018 commits

Author SHA1 Message Date
Jim Rodovich
6a478e6791 Use a cubic bezier approximation for rounded rectangle corners.
According to the SVG spec these corners are supposed to be elliptical arcs.  HTML canvas does not have methods for elliptical arcs, but a cubic approximation can get within 0.02%.

Using the "magic number" from http://itc.ktu.lt/itc354/Riskus354.pdf.
2014-05-08 14:20:13 -05:00
Juriy Zaytsev
5dd7032aad Merge pull request #1312 from rodovich/round-rect-radii
Constrain rounded rect radii to half the width & height.
2014-05-08 02:09:38 +02:00
Jim Rodovich
76314abd95 Optimize for common case of radius 0. 2014-05-07 19:02:18 -05:00
Jim Rodovich
7b4455f29a Constrain rounded rect radii to half the width & height. 2014-05-07 10:25:34 -05:00
kangax
4d3f0a73b4 Update dev dependencies 2014-05-04 14:46:01 +02:00
Juriy Zaytsev
2778649924 Merge pull request #1299 from ggodlewski/master
Transform matrix and isInPathGroup fix for images
2014-04-28 17:40:30 -04:00
Grzegorz Godlewski
ce786cc3ad Transform matrix and isInPathGroup fix for images 2014-04-28 21:37:52 +02:00
kangax
d8c944e593 Build dist 2014-04-24 10:33:42 -04:00
kangax
9113b27e77 Revert _searchPossibleTargets optimization. Closes #1188 2014-04-24 10:33:33 -04:00
Juriy Zaytsev
c7b4b52981 Merge pull request #1282 from wilsonwc/master
Fix for #1237
2014-04-22 14:28:02 -04:00
Juriy Zaytsev
4b298e147c Merge pull request #1288 from Kureev/bower
Improvement for bower.json
2014-04-21 23:40:46 -04:00
Ross Wilson
2c8641ff6d test build 2014-04-21 11:29:18 -06:00
Ross Wilson
89f784d27f Update test for fix of #1237 2014-04-21 11:13:26 -06:00
Kureev Alexey
670fc89ca0 Improvment for bower.json
Add `ignore` section in the `bower.json` file to prevent full repository downloading with `bower install fabric`
2014-04-21 14:57:14 +04:00
kangax
e361bac652 Add node 0.11 to travis 2014-04-18 16:11:37 -04:00
kangax
ab1d4fec82 Build distribution 2014-04-18 16:08:06 -04:00
kangax
314e06db6d Fix fontWeight parsing 2014-04-18 16:07:59 -04:00
kangax
b3600e62a4 Add support for text-anchor's 2014-04-18 16:07:49 -04:00
Ross Wilson
14338a9559 Fix for #1237
Only set crossorigin on the element if something is specified
2014-04-16 13:03:02 -06:00
kangax
c8164959c8 Add support for SVG "visibility: hidden" 2014-04-16 14:05:34 -04:00
kangax
5e385e5ed0 Fix text offsets and size in SVG 2014-04-16 13:39:32 -04:00
kangax
f3b7884827 Add support for "evenodd" fill rule. Closes #1021 2014-04-15 20:09:01 -04:00
kangax
c53089a60a Version 1.4.5 2014-04-14 13:02:15 -04:00
kangax
d6a73aa7f5 Make isSameColor cave-insensitive. Closes #1272 2014-04-14 12:17:06 -04:00
kangax
a48ed5b31b Add support for display=none. Closes #1256 2014-04-10 17:47:36 -04:00
kangax
cfd71e9550 Fix viewBox parsing 2014-04-10 13:57:24 -04:00
kangax
64a09c6f7d Build distribution again 2014-04-09 18:02:47 -04:00
kangax
1335cf6932 Build distribution 2014-04-09 18:02:20 -04:00
kangax
3e06f4127d Fix typo. Closes #1265 2014-04-09 18:02:20 -04:00
Juriy Zaytsev
63ea7b0c34 Merge pull request #1260 from Webbgaraget/toJSON-currentTransform-bugfix
Moves the resetting of _currentTransform.target inside `if (activeGroup)`-block
2014-04-08 17:03:50 -04:00
Juriy Zaytsev
99d7b1ec2e Merge pull request #1258 from KTastrophy/fix-1245
added "_this" reference for setTimeout
2014-04-03 11:31:55 -04:00
Anders Lisspers
46100b24bd Moves the resetting of _currentTransform.target inside if (activeGroup)
This solves a problem that occurred if you were transforming (moving, scaling, rotating) a single object
when toJSON()/toObject() was run.
2014-04-03 16:20:05 +02:00
Ken Thompson
fa8bd1f40b added "_this" reference for setTimeout 2014-03-27 20:49:43 -05:00
kangax
3f14a96c5a Fix multiplier<1 export 2014-03-13 20:27:42 -04:00
Juriy Zaytsev
0c05d0f21b Merge pull request #1220 from denniseijpe/fix_multi_input_devices
Fix event listeners for multi-input devices
2014-03-12 17:44:51 -04:00
Dennis Eijpe
b8dec2ddf0 Fix event listeners for multi-input devices 2014-03-09 17:14:06 +01:00
kangax
b415fbf763 Update qunit 2014-03-08 18:36:21 -05:00
kangax
20567e6123 2013 -> 2014 2014-03-08 18:36:14 -05:00
kangax
7f4dff00a5 Add istanbul as dev dependency 2014-03-08 18:32:27 -05:00
kangax
a2878d4663 Build distribution 2014-03-08 14:49:11 -05:00
kangax
12c43d6e4c Enable coverage 2014-03-08 14:41:06 -05:00
Juriy Zaytsev
858b050ba2 Merge pull request #1212 from CapCap/master
Fix loadFromJSON 404s breaking fabric #1079
2014-03-08 00:29:17 -05:00
Max Kaplan
54f9c0428f add spaces before { 2014-03-07 17:32:09 -05:00
Max Kaplan
fd38b8f4a4 formatting for fixes 2014-03-07 01:15:56 -05:00
Max Kaplan
6f3f1ff7c9 Fix loadFromJSON 404s breaking fabric (Image)
Prevent image 404s in Images from loadFromJSON from breaking everything
trying to get attributes of a source which is null, while passing it
upwards to allow dealing with images which failed to load outside of
Fabric.JS Issue #1079
2014-03-07 01:12:50 -05:00
Max Kaplan
f2943ef2bb Fix loadFromJSON 404s breaking fabric (Pattern)
Prevent image 404s in patterns from loadFromJSON from breaking
everything trying to get attributes of a source which is null, while
passing it upwards to allow dealing with images which failed to load
outside of Fabric.JS
2014-03-07 00:19:35 -05:00
kangax
eb919f9a04 Fix ellipse borders. Closes #1099 Thanks @xnramx 2014-03-06 19:47:55 -05:00
kangax
0e7ac02c73 Update README 2014-02-28 15:32:36 -05:00
kangax
086fee13f9 Update README 2014-02-28 15:29:31 -05:00
kangax
42e263b3f2 Update README 2014-02-28 15:29:01 -05:00