UNPKG

@syncfusion/ej2-diagrams

Version:

Feature-rich diagram control to create diagrams like flow charts, organizational charts, mind maps, and BPMN diagrams. Its rich feature set includes built-in shapes, editing, serializing, exporting, printing, overview, data binding, and automatic layouts.

77 lines (76 loc) 1.96 kB
import { ChildProperty } from '@syncfusion/ej2-base'; import { MarginModel } from '../core/appearance-model'; import { DiagramTooltipModel } from './tooltip-model'; import { FlipDirection, FlipMode } from '../enum/enum'; import { SymbolPaletteInfoModel } from './preview-model'; /** * Defines the common behavior of nodes, connectors and groups */ export declare abstract class NodeBase extends ChildProperty<NodeBase> { /** * Represents the unique id of nodes/connectors * * @default '' */ id: string; /** * Defines the visual order of the node/connector in DOM * * @aspDefaultValue 5e-324 * @default Number.MIN_VALUE */ zIndex: number; /** * Defines the space to be left between the node and its immediate parent * * @default {} */ margin: MarginModel; /** * Sets the visibility of the node/connector * * @default true */ visible: boolean; /** * defines the tooltip for the node * * @default {} */ tooltip: DiagramTooltipModel; /** * Defines whether the node should be automatically positioned or not. Applicable, if layout option is enabled. * * @default false */ excludeFromLayout: boolean; /** * Allows the user to save custom information/data about a node/connector * * @aspDefaultValueIgnore * @default undefined */ addInfo: Object; /** * Flip the element in Horizontal/Vertical directions * * @aspDefaultValueIgnore * @default None */ flip: FlipDirection; /** * Allows you to flip only the node or along with port and label * * @aspDefaultValueIgnore * @default All */ flipMode: FlipMode; /** * Defines the symbol info of a connector * * @aspDefaultValueIgnore * @default undefined * @ignoreapilink */ symbolInfo: SymbolPaletteInfoModel; }