NorthwoodsSoftware/GoJS
Fork: 2859 Star: 7822 (更新于 2024-11-21 14:01:05)
license: NOASSERTION
Language: HTML .
JavaScript diagramming library for interactive flowcharts, org charts, design tools, planning tools, visual languages.
最后发布版本: v3.0.11 ( 2024-08-30 08:12:32)
GoJS, a JavaScript Library for HTML Diagrams
GoJS is a JavaScript and TypeScript library for creating and manipulating diagrams, charts, and graphs.
GoJS is a flexible library that can be used to create a number of different kinds of interactive diagrams, including data visualizations, drawing tools, and graph editors. There are samples for flowchart, org chart, business process BPMN, swimlanes, timelines, state charts, kanban, network, mindmap, sankey, family trees and genogram charts, fishbone diagrams, floor plans, UML, decision trees, PERT charts, Gantt, and hundreds more. GoJS includes a number of built in layouts including tree layout, force directed, circular, and layered digraph layout, and many custom layout extensions and examples.
GoJS is renders either to an HTML Canvas element (with export to SVG or image formats) or directly as SVG DOM. GoJS can run in a web browser, or server side in Node or Puppeteer. GoJS Diagrams are backed by Models, with saving and loading typically via JSON-formatted text.
Read more about GoJS at gojs.net
This repository contains only the library. The sources for all samples, extensions, and documentation can be installed by running:
$ npm create gojs-kit@latest
You can use the GitHub repository to quickly search through all of the sources.
Minimal Sample
Graphs are constructed by creating one or more templates, with desired properties data-bound, and adding model data.
<div id="myDiagramDiv" style="width:400px; height:150px;"></div>
<script src="https://cdn.jsdelivr.net/npm/gojs/release/go.js"></script>
<script>
const myDiagram = new go.Diagram(
'myDiagramDiv', // create a Diagram for the HTML Div element
{ 'undoManager.isEnabled': true }
); // enable undo & redo
// define a simple Node template
myDiagram.nodeTemplate = new go.Node('Auto') // the Shape will automatically surround the TextBlock
// add a Shape and a TextBlock to this "Auto" Panel
.add(
new go.Shape('RoundedRectangle', { strokeWidth: 0, fill: 'white' }) // no border; default fill is white
.bind('fill', 'color')
) // Shape.fill is bound to Node.data.color
.add(
new go.TextBlock({ margin: 8, stroke: '#333' }) // some room around the text
.bind('text', 'key')
); // TextBlock.text is bound to Node.data.key
// but use the default Link template, by not setting Diagram.linkTemplate
// create the model data that will be represented by Nodes and Links
myDiagram.model = new go.GraphLinksModel(
[
{ key: 'Alpha', color: 'lightblue' },
{ key: 'Beta', color: 'orange' },
{ key: 'Gamma', color: 'lightgreen' },
{ key: 'Delta', color: 'pink' },
],
[
{ from: 'Alpha', to: 'Beta' },
{ from: 'Alpha', to: 'Gamma' },
{ from: 'Beta', to: 'Beta' },
{ from: 'Gamma', to: 'Delta' },
{ from: 'Delta', to: 'Alpha' },
]
);
</script>
The above diagram and model code creates the following graph. The user can now click on nodes or links to select them, copy-and-paste them, drag them, delete them, scroll, pan, and zoom, with a mouse or with fingers.
Click the image to see the interactive GoJS Diagram
Support
Northwoods Software offers a month of free developer-to-developer support for GoJS to prospective customers so you can finish your project faster.
Read and search the official GoJS forum for any topics related to your questions.
Posting in the forum is the fastest and most effective way of obtaining support for any GoJS related inquiries. Please register for support at Northwoods Software's registration form before posting in the forum.
For any nontechnical questions about GoJS, such as about sales or licensing, please visit Northwoods Software's contact form.
License
The GoJS software license.
The GoJS evaluation license.
Copyright (c) Northwoods Software Corporation
最近版本更新:(数据更新于 2024-09-18 23:15:48)
2024-08-30 08:12:32 v3.0.11
2024-08-16 00:57:15 v3.0.10
2024-08-03 00:26:15 v3.0.9
2024-07-19 01:11:20 v3.0.8
2024-07-04 00:05:14 v3.0.7
2024-07-02 23:47:49 v3.0.6
2024-06-25 02:20:25 v3.0.5
2024-06-06 03:29:19 v3.0.4
2024-05-30 09:53:09 v3.0.3
2024-05-10 00:21:30 v3.0.2
主题(topics):
canvas, chart, charts, data-visualization, diagram, es6, es6-modules, flowchart, gojs, graph, html, interactive-diagrams, javascript, javascript-library, layout, orgchart, svg, typescript, typescript-library, visualization
NorthwoodsSoftware/GoJS同语言 HTML最近更新仓库
2024-11-21 05:18:22 nova-video-player/aos-AVP
2024-11-20 17:13:16 windmill-labs/windmill
2024-11-20 16:16:27 squidfunk/mkdocs-material
2024-11-13 21:10:48 Tencent/tdesign-miniprogram
2024-11-03 15:58:18 adityatelange/hugo-PaperMod
2024-09-30 10:57:08 mlick/libcimbar-web