Commit graph

310 commits

Author SHA1 Message Date
Jeff Parsons
a0a4d77272 Track IText instances per-canvas, not globally.
Previously instances of the IText shape were added to a globally-shared
array when they were created. There are two problems with this approach:

1) Interactions with one canvas affect others. I would never expect
   text in one canvas to exit edit mode just because I interacted with
   some otherwise-unrelated canvas.

2) Every IText instance leaks. There is no mechanism to clean up references
   to IText instances in the global array, so every such instance will
   hang around in memory forever, regardless of whether it is removed from
   the canvas or if the canvas itself is removed.

Discovered while profiling memory usage in Chrome.
2015-03-24 14:14:43 +11:00
Andrea Bogazzi
08a1c6b418 Fix path group toSvg method.
now respect current originX and originY
2015-03-01 23:27:17 +01:00
Juriy Zaytsev
55bc74bc4c Merge pull request #1958 from asturur/Fix-svg-tiny-test-suite
Fixes svg rendering rules
2015-02-05 10:53:41 +01:00
asturur
6a6b74aae1 Fixes svg rendering rules 2015-02-03 14:24:11 +01:00
Juriy Zaytsev
3b54fd031d Merge pull request #1951 from asturur/transformMatrix-for-pathgroup
Fixes for path-group transformMatrix in svg export
2015-01-28 13:41:15 +01:00
Andrea Bogazzi
0523352dfa Fix pathGroup TransformMatrix
solves missing transformMatrix
2015-01-28 12:41:09 +01:00
Juriy Zaytsev
5903c23634 Merge pull request #1872 from asturur/itext-rendering
text rendering changes
2015-01-27 16:10:09 +01:00
Andrea Bogazzi
0e09961c64 Update to text, rendering and optimization 2015-01-26 02:49:37 +01:00
Juriy Zaytsev
49d68723cb Merge pull request #1935 from asturur/shoadow2
Missing space was breaking path single shape export.
2015-01-20 01:51:41 +01:00
Andrea Bogazzi
79d9618352 Fix single path toSVG export. 2015-01-20 01:49:16 +01:00
Andrea Bogazzi
6605880f4b Update shadow.js 2015-01-18 17:29:37 +01:00
Juriy Zaytsev
f125941e21 Merge pull request #1825 from asturur/Line-tests
Line accuracy issue in pathgroup with high zoom level
2014-11-22 14:26:01 +01:00
Andrea Bogazzi
f4385b2de9 Fix line accuray issue, remove some duplicate code, do not force width = 1 on 0. Fix object render method to render 0-dimensions lines
Check how this version could behave in general rendering.
2014-11-20 22:34:47 +01:00
Juriy Zaytsev
efbb3e40b3 Merge pull request #1770 from asturur/fix-text-toSVG
Fix text top position in svg export
2014-11-05 18:53:38 +01:00
Juriy Zaytsev
8f0b9055b1 Merge pull request #1788 from asturur/Some-text-goodies
Some text goodies
2014-10-29 11:41:39 +01:00
Andrea Bogazzi
552c6a833c Update text.js 2014-10-28 17:12:10 +01:00
Andrea Bogazzi
7725227d44 Update text.class.js
fix text top position in svg export
2014-10-26 22:51:26 +01:00
Andrea Bogazzi
b9f37586b3 Update text.js 2014-10-26 22:42:55 +01:00
Andrea Bogazzi
4054b99fe5 Update group.js 2014-10-21 12:18:14 +02:00
Andrea Bogazzi
cf6030d9db Update group.js 2014-10-20 18:11:25 +02:00
Andrea Bogazzi
9ebd84bd39 Update group.js 2014-10-20 17:28:26 +02:00
Juriy Zaytsev
d1ba16f177 Merge pull request #1720 from asturur/Image-aspec
preserve Aspect Ratio for images support
2014-10-16 18:04:31 +02:00
Andrea Bogazzi
49f449ee4f Update image.class.js 2014-10-11 21:56:38 +02:00
Juriy Zaytsev
77183cb2d2 Merge pull request #1731 from asturur/fix-travis
Block qunit version to 0.7.2 to fix Travis hanging.
2014-10-07 11:21:04 +02:00
Andrea Bogazzi
e5e1aef378 Update parser.js
Fix parser test after change in skew matrix.
We should think about using  some toFixed with number of decimals ( 6 at least ? )
2014-10-07 10:58:44 +02:00
Juriy Zaytsev
c4df8b4689 Merge pull request #1714 from asturur/fix-lines
Fix for line toObject method.
2014-10-06 00:27:17 +02:00
Andrea Bogazzi
ebe4bd7286 Update line.class.js 2014-09-30 23:13:34 +02:00
Juriy Zaytsev
7f3f43c94b Merge pull request #1699 from asturur/Ellips-rx-ry
Update ellipse.class.js
2014-09-29 08:41:37 +02:00
Andrea Bogazzi
d0de45e11a Update ellipse.class.js
Mirrored from circle the way it updates width and height following rx and ry of ellipse.
2014-09-29 00:05:04 +02:00
Andrea Bogazzi
b2e2767053 Update getCssRule to exit on empty styles tag.
Test unit added.
2014-09-27 20:05:39 +02:00
Andrea Bogazzi
10666e9006 Update parser.js 2014-09-26 14:03:11 +02:00
Juriy Zaytsev
e524c13521 Merge pull request #1638 from joerozek/stacking
Support for preserving object stacking. Closes #1636.
2014-09-25 13:32:03 +02:00
Andrea Bogazzi
00a442b028 exit from getSvgTransform just for pathGroups.
Fix Svg Export for normal canvas group
2014-09-25 11:05:39 +02:00
Andrea Bogazzi
af1138a686 Divided FillRule from globalCompositeOperation 2014-09-23 08:53:56 +02:00
Andrea Bogazzi
18a23cf690 Update parser.js 2014-09-21 01:16:59 +02:00
Juriy Zaytsev
e9f310c2ce Merge pull request #1680 from asturur/Fix-Path-BoundingBox
Fix Path bounding box, improve rendering logic
2014-09-19 12:36:58 +02:00
Andrea Bogazzi
0a6600ecb7 Update path.js 2014-09-18 14:54:36 +02:00
Andrea Bogazzi
0a958de01e Update canvas_static.js 2014-09-18 14:54:16 +02:00
Andrea Bogazzi
8aae7dec4a Update canvas.js 2014-09-18 14:53:08 +02:00
Andrea Bogazzi
2f1b412f32 Update circle.js
Added start and end Angle to tests.
2014-09-18 01:34:32 +02:00
Joe Rozek
d2b146c21c support for preserving object stacking 2014-09-04 12:01:48 -07:00
Andrea Bogazzi
c1bd4ea4a3 Update polyline.js 2014-09-03 22:40:45 +02:00
Andrea Bogazzi
2e6fb2c411 Update polygon.js 2014-09-03 22:39:54 +02:00
Andrea Bogazzi
a9e2211780 Update gradient.js 2014-08-16 08:16:12 +02:00
Juriy Zaytsev
4c7ad6a82d Merge pull request #1567 from asturur/SVG-EXPORT
Better SVG export
2014-08-07 20:42:56 +02:00
Juriy Zaytsev
4bcfef6277 Merge pull request #1557 from asturur/gradient-transform-impor
attribute gradientTransform import
2014-08-06 16:49:06 +02:00
Andrea Bogazzi
3064d5e569 Updated test for text 2014-08-05 13:22:12 +02:00
Andrea Bogazzi
0538fe68c9 Fixes tests for rects 2014-08-05 13:19:53 +02:00
Andrea Bogazzi
78a5221143 Mirrored tests from polygons 2014-08-05 13:19:07 +02:00
Andrea Bogazzi
c5a5ce3ce9 fixed differences for new transforms 2014-08-05 13:16:12 +02:00