declare class mxGuide { constructor(graph: mxGraph, states: Array); /** * Variable: graph * * Reference to the enclosing instance. */ graph: mxGraph; /** * Variable: states * * Contains the that are used for alignment. */ states: mxCellState[]; /** * Variable: horizontal * * Specifies if horizontal guides are enabled. Default is true. */ horizontal: boolean; /** * Variable: vertical * * Specifies if vertical guides are enabled. Default is true. */ vertical: boolean; /** * Variable: vertical * * Holds the for the horizontal guide. */ guideX: mxShape; /** * Variable: vertical * * Holds the for the vertical guide. */ guideY: mxShape; /** * Function: setStates * * Sets the that should be used for alignment. */ setStates(states: mxCellState[]): void; /** * Function: isEnabledForEvent * * Returns true if the guide should be enabled for the given native event. This * implementation always returns true. */ isEnabledForEvent(evt: Event): boolean; /** * Function: getGuideTolerance * * Returns the tolerance for the guides. Default value is gridSize / 2. */ getGuideTolerance(): number; /** * Function: createGuideShape * * Returns the mxShape to be used for painting the respective guide. This * implementation returns a new, dashed and crisp using * and as the format. * * Parameters: * * horizontal - Boolean that specifies which guide should be created. */ createGuideShape(horizontal: boolean): mxPolyline; /** * Function: move * * Moves the by the given and returnt the snapped point. */ move(bounds: mxRectangle, delta: mxPoint, gridEnabled: boolean, clone: boolean): mxPoint; /** * Function: hide * * Hides all current guides. */ getGuideColor(state: mxCellState, horizontal: any): string; /** * Function: hide * * Hides all current guides. */ hide(): void; /** * Function: setVisible * * Shows or hides the current guides. */ setVisible(visible: boolean): void; /** * Function: destroy * * Destroys all resources that this object uses. */ destroy(): void; /** * Returns true if the given state should be ignored. * @param state */ isStateIgnored(state: mxCellState): boolean; }