HTMLcopy
1
<div id="container"></div>
CSScopy
6
1
html, body, #container {
2
width: 100%;
3
height: 100%;
4
margin: 0;
5
padding: 0;
6
}
JavaScriptcopy
x
1
var stage = acgraph.create('container');
2
3
var element = stage.rect(10, 10, 100, 40);
4
element.fill('#2196F3');
5
element.stroke('1px #F44336');
6
element.scale(2, 2);
7
8
// Sets vector effect.
9
element.disableStrokeScaling(true);