
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1157335 13f79535-47bb-0310-9956-ffa450edef68
22 lines
No EOL
861 B
HTML
Executable file
22 lines
No EOL
861 B
HTML
Executable file
<html>
|
|
<head>
|
|
<h1 align='center'>Apache Tuscany - Composite Diagram Generator</h1>
|
|
<h2 align='center'>Calculator</h2>
|
|
</br>
|
|
<script type="text/javascript" src="/media/798D-18B1/GSoC-2011/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/resources/rgbcolor.js"></script>
|
|
<script type="text/javascript" src="/media/798D-18B1/GSoC-2011/GSoC-2011-Nirmal/CompositeDiagramGeneratorUsingBatik/resources/canvg-1.0.js"></script>
|
|
<script type="text/javascript">
|
|
window.onload = function() {
|
|
//load '../path/to/your.svg' in the canvas with id = 'canvas'
|
|
canvg('canvas', 'Calculator_diagram.svg')
|
|
//load a svg snippet in the canvas with id = 'drawingArea'
|
|
canvg(document.getElementById('drawingArea'), '<svg>...</svg>')
|
|
canvg('canvas', 'Calculator_diagram.svg', {})
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<canvas id="canvas" width="1400px" height="1340px">
|
|
</canvas>
|
|
</body>
|
|
</html> |