Skip to main content
Version: 4.3

ExportToJSONOptions

Options for GraphApi's exportToJSON.

Properties​

includeDefaults?​

readonly optional includeDefaults?: boolean;

When true, every attribute is kept (defaults included) and no empty-attribute pruning is applied. The default minimal output strips attributes that match each cell's defaults and prunes empty {} (except inside attrs at depth 3, e.g. attrs.text.textWrap: {}, which JointJS treats as a meaningful reset marker).

Default​

false

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub