Fixes for Raphael declarations and tests

This commit is contained in:
Boris Yankov committed 2012-10-22 03:39:12 +03:00
1 parent 83319ba26f
commit 4a655cd2d4
2 files changed
+172 -171

No files matched your search

+4 -3
View File
@@ -26,9 +26,10 @@ butt1.push(R.circle(24.833, 26.917, 26.667).attr({ stroke: "#ccc", fill: "#fff",
butt2.push(R.circle(24.833, 26.917, 26.667).attr({ stroke: "#ccc", fill: "#fff", "fill-opacity": .4, "stroke-width": 2 }),
R.path("M37.566,9.551c9.331,6.686,11.661,19.471,5.502,29.014l2.36,1.689l-4.893,2.262l-4.893,2.262l0.568-5.36l0.567-5.359l2.365,1.694c4.657-7.375,2.83-17.185-4.352-22.33c-7.451-5.338-17.817-3.625-23.156,3.824C6.3,24.695,8.012,35.06,15.458,40.398l-2.857,3.988C2.983,37.494,0.773,24.109,7.666,14.49C14.558,4.87,27.944,2.658,37.566,9.551z").attr({ stroke: "none", fill: "#000" }),
R.circle(24.833, 26.917, 26.667).attr({ fill: "#fff", opacity: 0 }));
butt1.translate(10, 181);
butt2.translate(10, 245);
butt1[2].click(function () {
var butt3: RaphaelMatrix, butt4: RaphaelMatrix, angle: number;
butt3.translate(10, 181);
butt4.translate(10, 245);
butt3[2].click(function () {
angle -= 90;
img.stop().animate({ transform: "r" + angle }, 1000, "<>");
}).mouseover(function () {