Compatibilidad
GraphoJS implementa la superficie de compatibilidad de GoJS. A continuación el resumen de lo que está soportado.
Superficie implementada
Section titled “Superficie implementada”go.*namespace (import * as go from 'graphojs/go')go.GraphObject.makeconstrucción declarativago.Node/go.Link/go.Group/go.Panel/go.Shape/go.TextBlocktemplatesgo.Bindingcon converters, TwoWay y dot-pathsnodeTemplate/linkTemplate/groupTemplate/nodeTemplateMap/linkTemplateMapdiagram.modely transacciones (startTransaction/commitTransaction)model.nodeDataArray/linkDataArray- Diagram flags:
isReadOnly,isEnabled,allowMove,allowCopy,allowDelete,allowZoom,allowTextEdit,allowLink,allowRelink - Diagram eventos:
SelectionChanged,ObjectSingleClicked,LinkDrawn,PartResized, … go.Palette/go.Overview/go.ContextMenu/ tooltips- Undo/redo con transacciones y comandos
- Layouts:
Grid,Tree,Circular,ForceDirected,LayeredDigraph,Spot - Model:
mergeChanges, incremental JSON, validación - Export: PNG (
makeImage), SVG (makeSvg), print - Navegación de grafo:
findLinksInto/OutOf,findNodesInto/OutOf, tree helpers
Diferencias conocidas
Section titled “Diferencias conocidas”| GoJS | GraphoJS |
|---|---|
| Cientos de figuras Shape | ~70 figuras comunes + símbolos de flowchart |
Shape.geometryString completo |
Soporta M/L/H/V/C/S/Q/T/A/Z |
| Licensed (proprietary) | MIT |
Part IS a GraphObject |
Part tiene un panel (árbol visual) |
Templates de palette en go.* |
En el subpath lazy graphojs/templates |
Migración
Section titled “Migración”Ver Migración para la guía paso a paso de gojs → graphojs.