Migración
Migrar una aplicación GoJS a GraphoJS es en la mayoría de los casos cambiar solo la línea de import.
import * as go from "gojs";import * as go from "graphojs/go";Qué funciona sin cambios
Section titled “Qué funciona sin cambios”go.GraphObject.make($) y los templatesdiagram.model, transacciones y undo/redogo.Node/go.Link/go.Group/go.Panel/go.Shape/go.TextBlock- Bindings, eventos, layouts, Palette, Overview, ContextMenu
- Export PNG/SVG/print
Diferencias conocidas
Section titled “Diferencias conocidas”| GoJS | GraphoJS |
|---|---|
| Cientos de figuras Shape | ~70 figuras + símbolos de flowchart |
Part IS a GraphObject |
Part tiene un panel |
Templates de palette en go.* |
En el subpath graphojs/templates |
| Licensed | MIT |
Si usabas los templates de palette
Section titled “Si usabas los templates de palette”go.getAllTemplates()import { getAllTemplates } from "graphojs/templates";Verificación
Section titled “Verificación”GraphoJS incluye tests e2e que ejecutan el tutorial “Getting Started” de GoJS verbatim (solo cambiando el import) en un browser real.