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 simpleText = stage.text();
4
simpleText.x(10);
5
simpleText.y(10);
6
simpleText.fontSize(14);
7
simpleText.text('Simple text');
8
simpleText.cursor('crosshair');
9
10
// Disables pointer events.
11
simpleText.disablePointerEvents(true);