Commit b95d7324 by Tomas Alabes

Small mods, nothing new

parent eb43ba14
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
// Initialize container when document is loaded // Initialize container when document is loaded
window.onload = function () { window.onload = function () {
require(['../raphael'], function(Raphael) { require(['../raphael'], function(Raphael) {
var paper = Raphael(0, 0, 640, 720, "container"); var paper = Raphael("container", 640, 720);
paper.circle(100, 100, 100).attr({'fill':'270-#FAE56B:0-#E56B6B:100'}); //example paper.circle(100, 100, 100).attr({'fill':'270-#FAE56B:0-#E56B6B:100'}); //example
}); });
}; };
......
...@@ -292,4 +292,26 @@ test('toBack: when wrapped in <a>', function() { ...@@ -292,4 +292,26 @@ test('toBack: when wrapped in <a>', function() {
equalNodePosition(x.node, paper.canvas, paper.defs, null); equalNodePosition(x.node, paper.canvas, paper.defs, null);
}); });
// Element#attrs
// -------------
// #x
// #y
// #rx
// #ry
// #transform
// #title
// #href
//keep adding and testing!
})(); })();
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment