-
Notifications
You must be signed in to change notification settings - Fork 2
/
mxSelectionCellsHandler.d.ts
144 lines (127 loc) · 3.26 KB
/
mxSelectionCellsHandler.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/**
* Copyright (c) 2006-2015, JGraph Ltd
* Copyright (c) 2006-2015, Gaudenz Alder
*/
/**
* Class: mxSelectionCellsHandler
*
* An event handler that manages cell handlers and invokes their mouse event
* processing functions.
*
* Group: Events
*
* Event: mxEvent.ADD
*
* Fires if a cell has been added to the selection. The <code>state</code>
* property contains the <mxCellState> that has been added.
*
* Event: mxEvent.REMOVE
*
* Fires if a cell has been remove from the selection. The <code>state</code>
* property contains the <mxCellState> that has been removed.
*
* Parameters:
*
* graph - Reference to the enclosing <mxGraph>.
*/
declare namespace mxgraph {
export class mxSelectionCellsHandler extends mxEventSource {
constructor(graph: mxGraph);
/**
* Variable: graph
*
* Reference to the enclosing <mxGraph>.
*/
graph: mxGraph;
/**
* Variable: enabled
*
* Specifies if events are handled. Default is true.
*/
enabled: boolean;
/**
* Variable: refreshHandler
*
* Keeps a reference to an event listener for later removal.
*/
refreshHandler: any;
/**
* Variable: maxHandlers
*
* Defines the maximum number of handlers to paint individually. Default is 100.
*/
maxHandlers: number;
/**
* Variable: handlers
*
* <mxDictionary> that maps from cells to handlers.
*/
handlers: mxDictionary<any>;
/**
* Function: isEnabled
*
* Returns <enabled>.
*/
isEnabled(): boolean;
/**
* Function: setEnabled
*
* Sets <enabled>.
*/
setEnabled(value: boolean): void;
/**
* Function: getHandler
*
* Returns the handler for the given cell.
*/
getHandler(cell: mxCell): any;
/**
* Function: reset
*
* Resets all handlers.
*/
reset(): void;
/**
* Function: refresh
*
* Reloads or updates all handlers.
*/
refresh(): void;
/**
* Function: isHandlerActive
*
* Returns true if the given handler is active and should not be redrawn.
*/
isHandlerActive(handler: any): boolean;
/**
* Function: updateHandler
*
* Updates the handler for the given shape if one exists.
*/
updateHandler(state: mxCellState): void;
/**
* Function: mouseDown
*
* Redirects the given event to the handlers.
*/
mouseDown(sender: Event, me: Event): void;
/**
* Function: mouseMove
*
* Redirects the given event to the handlers.
*/
mouseMove(sender: Event, me: Event): void;
/**
* Function: mouseUp
*
* Redirects the given event to the handlers.
*/
mouseUp(sender: Event, me: Event): void;
/**
* Function: destroy
*
* Destroys the handler and all its resources and DOM nodes.
*/
destroy(): void;
}
}