UNPKG

@maxgraph/core

Version:

maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.

37 lines (36 loc) 1.01 kB
import type GraphDataModel from '../view/GraphDataModel.js'; /** * Export options of {@link ModelXmlSerializer}. * * **WARN**: this is an experimental feature that is subject to change. * * @experimental * @since 0.6.0 * @category Serialization with Codecs */ export type ModelExportOptions = { /** * If `true`, prettify the exported xml. * @default true */ pretty?: boolean; }; /** * Convenient utility class using {@link Codec} to manage maxGraph model import and export. * * **WARN**: this is an experimental feature that is subject to change (class and method names). * * @experimental * @since 0.6.0 * @category Serialization with Codecs */ export declare class ModelXmlSerializer { private dataModel; constructor(dataModel: GraphDataModel); import(input: string | Element): void; export(options?: ModelExportOptions): string; /** * Hook for replacing codecs registered by default (model codecs). */ protected registerCodecs(): void; }