Cross Reference: graphics-simple-source.mustache
xref
: /
yui3
/
src
/
graphics
/
docs
/
partials
/
graphics-simple-source.mustache
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
graphics-simple-source.mustache revision 5e878519d1a8afcc3b0c5d9aa68d4751ed294c86
0
N/A
<div id="mygraphiccontainer"></div>
698
N/A
<script>
0
N/A
YUI().use('graphics', function (Y)
0
N/A
{
0
N/A
//create a graphic instance
0
N/A
var mygraphic = new
Y.Graphic
({autoSize:true, render:"#mygraphiccontainer"});
0
N/A
0
N/A
//create an ellipse with getShape
0
N/A
var myellipse =
mygraphic.getShape
({
0
N/A
type: "ellipse",
0
N/A
fill: {
0
N/A
color: "#9aa"
0
N/A
},
0
N/A
stroke: {
0
N/A
weight: 2,
0
N/A
color: "#000"
0
N/A
},
0
N/A
width: 150,
553
N/A
height: 100,
553
N/A
x: 35,
553
N/A
y: 35
0
N/A
});
0
N/A
});
0
N/A
</script>
0
N/A