declare class mxCellState extends mxRectangle { constructor(view: mxGraphView, cell: mxCell, style: { [key: string]: any }); control: mxShape; /** * Variable: view * * Reference to the enclosing . */ view: mxGraphView; /** * Variable: cell * * Reference to the that is represented by this state. */ cell: mxCell; /** * Variable: style * * Contains an array of key, value pairs that represent the style of the * cell. */ style: { [key: string]: any }; /** * Variable: invalid * * Specifies if the state is invalid. Default is true. */ invalid: boolean; /** * Variable: origin * * that holds the origin for all child cells. Default is a new * empty . */ origin: mxPoint; /** * Variable: absolutePoints * * Holds an array of that represent the absolute points of an * edge. */ absolutePoints: mxPoint[]; /** * Variable: absoluteOffset * * that holds the absolute offset. For edges, this is the * absolute coordinates of the label position. For vertices, this is the * offset of the label relative to the top, left corner of the vertex. */ absoluteOffset: mxPoint; /** * Variable: visibleSourceState * * Caches the visible source terminal state. */ visibleSourceState: mxCellState; /** * Variable: visibleTargetState * * Caches the visible target terminal state. */ visibleTargetState: mxCellState; /** * Variable: terminalDistance * * Caches the distance between the end points for an edge. */ terminalDistance: number; /** * Variable: length * * Caches the length of an edge. */ length: number; /** * Variable: segments * * Array of numbers that represent the cached length of each segment of the * edge. */ segments: number[]; /** * Variable: shape * * Holds the that represents the cell graphically. */ shape: mxShape; /** * Variable: text * * Holds the that represents the label of the cell. Thi smay be * null if the cell has no label. */ text: mxText; /** * Variable: unscaledWidth * * Holds the unscaled width of the state. */ unscaledWidth: number; /** * Function: getPerimeterBounds * * Returns the that should be used as the perimeter of the * cell. * * Parameters: * * border - Optional border to be added around the perimeter bounds. * bounds - Optional to be used as the initial bounds. */ getPerimeterBounds(border?: number, bounds?: mxRectangle): mxRectangle; /** * Function: setAbsoluteTerminalPoint * * Sets the first or last point in depending on isSource. * * Parameters: * * point - that represents the terminal point. * isSource - Boolean that specifies if the first or last point should * be assigned. */ setAbsoluteTerminalPoint(point: mxPoint, isSource: boolean): void; /** * Function: setCursor * * Sets the given cursor on the shape and text shape. */ setCursor(cursor: string): void; /** * Function: getVisibleTerminal * * Returns the visible source or target terminal cell. * * Parameters: * * source - Boolean that specifies if the source or target cell should be * returned. */ getVisibleTerminal(source: boolean): mxCell; /** * Function: getVisibleTerminalState * * Returns the visible source or target terminal state. * * Parameters: * * source - Boolean that specifies if the source or target state should be * returned. */ getVisibleTerminalState(source?: boolean): mxCellState; /** * Function: setVisibleTerminalState * * Sets the visible source or target terminal state. * * Parameters: * * terminalState - that represents the terminal. * source - Boolean that specifies if the source or target state should be set. */ setVisibleTerminalState(terminalState: mxCellState, source: boolean): void; /** * Function: getCellBounds * * Returns the unscaled, untranslated bounds. */ getCellBounds(): mxRectangle; /** * Function: getPaintBounds * * Returns the unscaled, untranslated paint bounds. This is the same as * but with a 90 degree rotation if the shape's * isPaintBoundsInverted returns true. */ getPaintBounds(): mxRectangle; /** * Function: updateCachedBounds * * Updates the cellBounds and paintBounds. */ updateCachedBounds(): void; /** * Destructor: setState * * Copies all fields from the given state to this state. */ setState(state: mxCellState): void; /** * Function: clone * * Returns a clone of this . */ clone(): mxCellState; /** * Destructor: destroy * * Destroys the state and all associated resources. */ destroy(): void; }