Update snap-svg-tests.ts

This commit is contained in:
lhk
2014-11-25 18:22:02 +01:00
parent 78ecf54c90
commit 7ea9394dd4
+1 -1
View File
@@ -61,7 +61,7 @@ discs.attr({ fill: "R(150, 150, 100)#fff-#000" });
// Of course we could animate color as well
p.select("path").animate({ stroke: "#f00" }, 1000);
// Now lets load external SVG file:
Snap.load("mascot.svg", function (f:Snap.Element) {
Snap.load("mascot.svg", function (f:Snap.Fragment) {
// Note that we traversre and change attr before SVG
// is even added to the page
f.selectAll("polygon[fill='#09B39C']").attr({ fill: "#bada55" });