You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Minimal GoJS Sample</title>
|
|
<meta name="description" content="An almost minimal diagram using a very simple node template and the default link template." />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<!-- Copyright 1998-2019 by Northwoods Software Corporation. -->
|
|
|
|
<script src="../assets/js/goSamples.js"></script>
|
|
|
|
<!-- requires minimalModule.js, built from minimalModule.ts -->
|
|
<script type="module">
|
|
import { init } from "./minimalModule.js";
|
|
// lib needs: export const go = self.go;
|
|
window.onload = function() {
|
|
init();
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="sample">
|
|
<!-- The DIV for the Diagram needs an explicit size or else we won't see anything.
|
|
This also adds a border to help see the edges of the viewport. -->
|
|
<div id="myDiagramDiv" style="border: solid 1px black; width:400px; height:400px"></div>
|
|
<p>
|
|
This sample uses <code><script type="module"></script></code>
|
|
to import from <code>minimalModule.js</code>, which imports GoJS from <code>go-module.js</code>
|
|
</p>
|
|
|
|
<p>
|
|
In some browsers, you may need to serve this file from localhost to allow ES6 imports.
|
|
</p>
|
|
|
|
</body>
|
|
</html> |