declare class mxCellMarker extends mxEventSource { constructor(graph: mxGraph, validColor: string, invalidColor: string, hotspot: number); /** * Variable: graph * * Reference to the enclosing . */ graph: mxGraph; /** * Variable: enabled * * Specifies if the marker is enabled. Default is true. */ enabled: boolean; /** * Variable: hotspot * * Specifies the portion of the width and height that should trigger * a highlight. The area around the center of the cell to be marked is used * as the hotspot. Possible values are between 0 and 1. Default is * mxConstants.DEFAULT_HOTSPOT. */ hotspot: number; /** * Variable: hotspotEnabled * * Specifies if the hotspot is enabled. Default is false. */ hotspotEnabled: boolean; /** * Variable: validColor * * Holds the valid marker color. */ validColor: string; /** * Variable: invalidColor * * Holds the invalid marker color. */ invalidColor: string; /** * Variable: currentColor * * Holds the current marker color. */ currentColor: string; /** * Variable: validState * * Holds the marked if it is valid. */ validState: mxCellState; /** * Variable: markedState * * Holds the marked . */ markedState: mxCellState; /** * Function: setEnabled * * Enables or disables event handling. This implementation * updates . * * Parameters: * * enabled - Boolean that specifies the new enabled state. */ setEnabled(enabled: boolean): void; /** * Function: isEnabled * * Returns true if events are handled. This implementation * returns . */ isEnabled(): boolean; /** * Function: setHotspot * * Sets the . */ setHotspot(hotspot: number): void; /** * Function: getHotspot * * Returns the . */ getHotspot(): number; /** * Function: setHotspotEnabled * * Specifies whether the hotspot should be used in . */ setHotspotEnabled(enabled: boolean): void; /** * Function: isHotspotEnabled * * Returns true if hotspot is used in . */ isHotspotEnabled(): boolean; /** * Function: hasValidState * * Returns true if is not null. */ hasValidState(): boolean; /** * Function: getValidState * * Returns the . */ getValidState(): mxCellState; /** * Function: getMarkedState * * Returns the . */ getMarkedState(): mxCellState; /** * Function: reset * * Resets the state of the cell marker. */ reset(): void; /** * Function: process * * Processes the given event and cell and marks the state returned by * with the color returned by . If the * markerColor is not null, then the state is stored in . If * returns true, then the state is stored in * regardless of the marker color. The state is returned regardless of the * marker color and valid state. */ process(me: mxMouseEvent): mxCellState; /** * Function: setCurrentState * * Sets and marks the current valid state. */ setCurrentState(state: mxCellState, me: mxMouseEvent, color: string): void; /** * Function: markCell * * Marks the given cell using the given color, or if no color is specified. */ markCell(cell: mxCell, color: string): void; /** * Function: mark * * Marks the and fires a event. */ mark(): void; /** * Function: unmark * * Hides the marker and fires a event. */ unmark(): void; /** * Function: isValidState * * Returns true if the given is a valid state. If this * returns true, then the state is stored in . The return value * of this method is used as the argument for . */ isValidState(state: mxCellState): boolean; /** * Function: getMarkerColor * * Returns the valid- or invalidColor depending on the value of isValid. * The given is ignored by this implementation. */ getMarkerColor(evt: Event, state: mxCellState, isValid: boolean): string; /** * Function: getState * * Uses , and to return the * for the given . */ getState(me: mxMouseEvent): mxCellState; /** * Function: getCell * * Returns the for the given event and cell. This returns the * given cell. */ getCell(me: mxMouseEvent): mxCell; /** * Function: getStateToMark * * Returns the to be marked for the given under * the mouse. This returns the given state. */ getStateToMark(state: mxCellState): mxCellState; /** * Function: intersects * * Returns true if the given coordinate pair intersects the given state. * This returns true if the is 0 or the coordinates are inside * the hotspot for the given cell state. */ intersects(state: mxCellState, me: mxMouseEvent): boolean; /** * Function: destroy * * Destroys the handler and all its resources and DOM nodes. */ destroy(): void; }