clientIO / joint

A proven SVG-based JavaScript diagramming library powering exceptional UIs
https://jointjs.com
Mozilla Public License 2.0
4.72k stars 853 forks source link

feat(layout.DirectedGraph): add `graph` option to fromGraphLib() #2783

Closed kumilingus closed 3 weeks ago

kumilingus commented 3 weeks ago

Description

The fromGraphLib() utility can now be used without providing the graph reference through context (this was an oversight during the conversion of DirectedGraph into a standalone package).

For backward compatibility, passing graph through context is still supported but is now deprecated. Instead, the graph should be provided via the graph option.

Replaces #2599