@maxgraph/core
Version:
maxGraph is a fully client side JavaScript diagramming library that uses SVG and HTML for rendering.
31 lines (30 loc) • 851 B
TypeScript
import ObjectCodec from '../ObjectCodec.js';
import type Codec from '../Codec.js';
/**
* Codec for {@link RootChange}s.
*
* This class is created and registered dynamically at load time and used implicitly via {@link Codec} and the {@link CodecRegistry}.
*
* Transient Fields:
*
* - model
* - previous
* - root
*
* @category Serialization with Codecs
*/
export declare class RootChangeCodec extends ObjectCodec {
constructor();
/**
* Encodes the child recursively.
*/
afterEncode(enc: Codec, obj: any, node: Element): Element;
/**
* Decodes the optional children as cells using the respective decoder.
*/
beforeDecode(dec: Codec, node: Element, obj: any): any;
/**
* Restores the state by assigning the previous value.
*/
afterDecode(_dec: Codec, _node: Element, obj: any): any;
}