<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title></title>
|
|
<meta charset="utf-8">
|
|
<meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
|
|
<script src="../../dist/kitygraph.all.min.js"></script>
|
|
<script>
|
|
|
|
window.onload = function () {
|
|
|
|
var paper = new kity.Paper( document.body ),
|
|
operand = new kity.Text( 'hij'),
|
|
up = new kity.Line( 100, 60, 140, 60 );
|
|
|
|
|
|
operand.setX( 100 ).setY( 100 );
|
|
operand.setStyle( "font-size", 40 );
|
|
up.stroke( "black", 1 );
|
|
|
|
paper.addShape( up );
|
|
paper.addShape( operand );
|
|
|
|
};
|
|
|
|
</script>
|
|
<style>
|
|
html, body {
|
|
overflow: hidden;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|