UNPKG

gojs

Version:

Interactive diagrams, charts, and graphs, such as trees, flowcharts, orgcharts, UML, BPMN, or business diagrams

44 lines (42 loc) 1.75 kB
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>GoJS Arrowheads</title> <meta name="description" content="Show all of the predefined kinds of arrowheads for links." /> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Copyright 1998-2020 by Northwoods Software Corporation. --> <script src="../samples/assets/require.js"></script> <script src="../assets/js/goSamples.js"></script> <script> function init() { require(["arrowheadsScript"], function(app) { app.init(); }); } </script> </head> <body onload="init()"> <div id="sample"> <!-- The DIV for the Diagram needs an explicit size or else we won't see anything. Also add a border to help see the edges. --> <div id="myDiagramDiv" style="border: solid 1px black; width:600px; height:500px"></div> <div id="myArrowheadInfo" style="color:red"></div> <p> This sample displays all predefined GoJS arrowheads. Select or hover over a Node or its Link to see the names of the arrowheads on the Link. </p> <p> Each Link shows two arrowheads. The Link template has a Shape whose <a>Shape.toArrow</a> property is bound to an arrowhead name. A different Shape in the template has its <a>Shape.fromArrow</a> property bound to a different arrowhead name. Each arrowhead has been scaled up to make it more easily visible. </p> <p> See the definitions of all these arrowheads in the file: <a href="../extensionsTS/Arrowheads.ts" target="_blank">Arrowheads.ts</a>. </p> <p> For predefined shape geometries, see the <a href="shapes.html">Shapes</a> sample. </p> </div> </body> </html>