Added test for commit d2299c54, 059f0bc2, 2c70be46.

This commit is contained in:
FlashSystems
2018-03-14 20:03:28 +01:00
parent 2c70be4600
commit 2d5f11b72c

View File

@@ -125,6 +125,19 @@ function tester6() {
console.log(!path.isPointInsideBBox(b3, 50, 50));
}
function tester7() {
var paper = Snap(600, 800);
Snap.load("http://snapsvg.io/assets/images/logo.svg", (fragment: Snap.Fragment) => {
// viewBox retrieveal
let fragmentViewBox = fragment.select("svg").attr("viewBox");
let symbol = paper.symbol(fragmentViewBox.x, fragmentViewBox.y, fragmentViewBox.width, fragmentViewBox.height);
symbol.add(fragment.selectAll("svg *"));
symbol.toDefs();
});
}
//$(function () {
// tester1();
//});
@@ -134,3 +147,4 @@ function tester6() {
//tester4();
//tester5();
//tester6();
//tester7();