Listing du fichier raphaeldemo.js
00001var paper = Raphael("page",300,300)
00002
00003 var nodeA = paper.circle(150,050,25).attr({fill: "yellow"});
00004 var nodeB = paper.circle(050,200,25).attr({fill: "yellow"});
00005 var nodeC = paper.circle(250,200,25).attr({fill: "yellow"});
00006
00007 var textA = paper.text(150,050,"A").attr({"font-size": "32px", "font-weight": "800", fill: "black"});
00008 var textB = paper.text(050,200,"B").attr({"font-size": "32px", "font-weight": "800", fill: "black"});
00009 var textC = paper.text(250,200,"C").attr({"font-size": "32px", "font-weight": "800", fill: "black"});
00010
00011 var nodeAB = paper.path("M130,070 L050,160").attr({"stroke-width": 3, fill: "black"});
00012 var nodeBC = paper.path("M070,200 L220,200").attr({"stroke-width": 3, fill: "black"});
00013 var nodeCA = paper.path("M230,160 L170,070").attr({"stroke-width": 3, fill: "black"});
Pour ne pas voir les numéros de ligne, ajoutez &nl=non à la suite du nom du fichier.
Retour à la page principale de (gH)