Refactoring and performance improvements for getStrokedBBox.

canvas.getStrokedBBox internals refactored to svgutils.
getStrokedBBox/getCheckedBBox renamed to
svgedit.utilities.getBBoxWithTransform
Removed duplicate calls to native getBBox.
Refactored slow transformed BBox from temporary DOM append/remove to
matrix calculations.
Lots of tests. Added qunit/qunit-assert-close.js.
This commit is contained in:
Flint O'Brien
2016-04-24 16:43:20 -04:00
parent 0c9ff4d1ac
commit 12a393505d
6 changed files with 1022 additions and 143 deletions

View File

@@ -12,6 +12,7 @@
<iframe src='contextmenu_test.html' width='100%' height='70' scrolling='no'></iframe>
<iframe src='math_test.html' width='100%' height='70' scrolling='no'></iframe>
<iframe src='svgutils_test.html' width='100%' height='70' scrolling='no'></iframe>
<iframe src='svgutils_bbox_test.html' width='100%' height='70' scrolling='no'></iframe>
<iframe src='history_test.html' width='100%' height='70' scrolling='no'></iframe>
<iframe src='select_test.html' width='100%' height='70' scrolling='no'></iframe>
<iframe src='draw_test.html' width='100%' height='70' scrolling='no'></iframe>