forked from ericabouaf/wireit
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Layer.js.html
568 lines (483 loc) · 101 KB
/
Layer.js.html
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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>API: WireIt Layer.js (YUI Library)</title>
<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
<link rel="stylesheet" type="text/css" href="assets/api.css" />
<script type="text/javascript" src="assets/api-js"></script>
<script type="text/javascript" src="assets/ac-js"></script>
</head>
<body id="yahoo-com">
<div id="doc3" class="yui-t2">
<div id="hd">
<h1><a href="http://javascript.neyric.com/wireit" title="WireItLibrary">WireItLibrary</a></h1>
<h3>WireIt <span class="subtitle">0.6.0</span></h3>
<a href="./index.html" title="WireItLibrary">WireItLibrary</a>
> <a href="./module_wireit.html" title="WireIt">WireIt</a>
> Layer.js (source view)
<form onsubmit="return false">
<div id="propertysearch">
Search: <input autocomplete="off" id="searchinput" />
<div id="searchresults">
</div>
</div>
</form>
</div>
<div id="bd">
<div id="yui-main">
<div class="yui-b">
<form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
<fieldset>
<legend>Filters</legend>
<span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
<span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
<span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
</fieldset>
</form>
<div id="srcout">
<style>
#doc3 .classopts { display:none; }
</style>
<div class="highlight"><pre><span class="c">/**</span>
<span class="c"> * A layer encapsulate a bunch of containers and wires</span>
<span class="c"> * @class Layer</span>
<span class="c"> * @namespace WireIt</span>
<span class="c"> * @constructor</span>
<span class="c"> * @param {Object} options Configuration object (see the properties)</span>
<span class="c"> */</span>
<span class="nx">WireIt</span><span class="p">.</span><span class="nx">Layer</span> <span class="o">=</span> <span class="kd">function</span><span class="p">(</span><span class="nx">options</span><span class="p">)</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">setOptions</span><span class="p">(</span><span class="nx">options</span><span class="p">);</span>
<span class="c">/**</span>
<span class="c"> * List of all the WireIt.Container (or subclass) instances in this layer</span>
<span class="c"> * @property containers</span>
<span class="c"> * @type {Array}</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">containers</span> <span class="o">=</span> <span class="p">[];</span>
<span class="c">/**</span>
<span class="c"> * List of all the WireIt.Wire (or subclass) instances in this layer</span>
<span class="c"> * @property wires</span>
<span class="c"> * @type {Array}</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">wires</span> <span class="o">=</span> <span class="p">[];</span>
<span class="c">/**</span>
<span class="c"> * Layer DOM element</span>
<span class="c"> * @property el</span>
<span class="c"> * @type {HTMLElement}</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">el</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
<span class="c">/**</span>
<span class="c"> * Event that is fired when the layer has been changed</span>
<span class="c"> * You can register this event with myTerminal.eventChanged.subscribe(function(e,params) { }, scope);</span>
<span class="c"> * @event eventChanged</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventChanged</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">CustomEvent</span><span class="p">(</span><span class="s2">"eventChanged"</span><span class="p">);</span>
<span class="c">/**</span>
<span class="c"> * Event that is fired when a wire is added</span>
<span class="c"> * You can register this event with myTerminal.eventAddWire.subscribe(function(e,params) { var wire=params[0];}, scope);</span>
<span class="c"> * @event eventAddWire</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventAddWire</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">CustomEvent</span><span class="p">(</span><span class="s2">"eventAddWire"</span><span class="p">);</span>
<span class="c">/**</span>
<span class="c"> * Event that is fired when a wire is removed</span>
<span class="c"> * You can register this event with myTerminal.eventRemoveWire.subscribe(function(e,params) { var wire=params[0];}, scope);</span>
<span class="c"> * @event eventRemoveWire</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventRemoveWire</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">CustomEvent</span><span class="p">(</span><span class="s2">"eventRemoveWire"</span><span class="p">);</span>
<span class="c">/**</span>
<span class="c"> * Event that is fired when a container is added</span>
<span class="c"> * You can register this event with myTerminal.eventAddContainer.subscribe(function(e,params) { var container=params[0];}, scope);</span>
<span class="c"> * @event eventAddContainer</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventAddContainer</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">CustomEvent</span><span class="p">(</span><span class="s2">"eventAddContainer"</span><span class="p">);</span>
<span class="c">/**</span>
<span class="c"> * Event that is fired when a container is removed</span>
<span class="c"> * You can register this event with myTerminal.eventRemoveContainer.subscribe(function(e,params) { var container=params[0];}, scope);</span>
<span class="c"> * @event eventRemoveContainer</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventRemoveContainer</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">CustomEvent</span><span class="p">(</span><span class="s2">"eventRemoveContainer"</span><span class="p">);</span>
<span class="c">/**</span>
<span class="c"> * Event that is fired when a container has been moved</span>
<span class="c"> * You can register this event with myTerminal.eventContainerDragged.subscribe(function(e,params) { var container=params[0];}, scope);</span>
<span class="c"> * @event eventContainerDragged</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventContainerDragged</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">CustomEvent</span><span class="p">(</span><span class="s2">"eventContainerDragged"</span><span class="p">);</span>
<span class="c">/**</span>
<span class="c"> * Event that is fired when a container has been resized</span>
<span class="c"> * You can register this event with myTerminal.eventContainerResized.subscribe(function(e,params) { var container=params[0];}, scope);</span>
<span class="c"> * @event eventContainerResized</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventContainerResized</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">CustomEvent</span><span class="p">(</span><span class="s2">"eventContainerResized"</span><span class="p">);</span>
<span class="k">this</span><span class="p">.</span><span class="nx">render</span><span class="p">();</span>
<span class="k">this</span><span class="p">.</span><span class="nx">initContainers</span><span class="p">();</span>
<span class="k">this</span><span class="p">.</span><span class="nx">initWires</span><span class="p">();</span>
<span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layerMap</span><span class="p">)</span> <span class="p">{</span>
<span class="k">new</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">LayerMap</span><span class="p">(</span><span class="k">this</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layerMapOptions</span><span class="p">);</span>
<span class="p">}</span>
<span class="p">};</span>
<span class="nx">WireIt</span><span class="p">.</span><span class="nx">Layer</span><span class="p">.</span><span class="nx">prototype</span> <span class="o">=</span> <span class="p">{</span>
<span class="c">/**</span>
<span class="c"> * @method setOptions</span>
<span class="c"> */</span>
<span class="nx">setOptions</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">options</span><span class="p">)</span> <span class="p">{</span>
<span class="c">/**</span>
<span class="c"> * Configuration object of the layer</span>
<span class="c"> * <ul></span>
<span class="c"> * <li>className: CSS class name for the layer element (default 'WireIt-Layer')</li></span>
<span class="c"> * <li>parentEl: DOM element that schould contain the layer (default document.body)</li></span>
<span class="c"> * <li>containers: array of container configuration objects</li> </span>
<span class="c"> * <li>wires: array of wire configuration objects</li></span>
<span class="c"> * <li>layerMap: boolean</li></span>
<span class="c"> * <li>layerMapOptions: layer map options</li></span>
<span class="c"> * </ul></span>
<span class="c"> * @property options</span>
<span class="c"> */</span>
<span class="k">this</span><span class="p">.</span><span class="nx">options</span> <span class="o">=</span> <span class="p">{};</span>
<span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">className</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">className</span> <span class="o">||</span> <span class="s1">'WireIt-Layer'</span><span class="o">;</span>
<span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">parentEl</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">parentEl</span> <span class="o">||</span> <span class="nb">document</span><span class="p">.</span><span class="nx">body</span><span class="o">;</span>
<span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">containers</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">containers</span> <span class="o">||</span> <span class="p">[];</span>
<span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">wires</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">wires</span> <span class="o">||</span> <span class="p">[];</span>
<span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layerMap</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isUndefined</span><span class="p">(</span><span class="nx">options</span><span class="p">.</span><span class="nx">layerMap</span><span class="p">)</span> <span class="o">?</span> <span class="kc">false</span> <span class="o">:</span> <span class="nx">options</span><span class="p">.</span><span class="nx">layerMap</span><span class="o">;</span>
<span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">layerMapOptions</span> <span class="o">=</span> <span class="nx">options</span><span class="p">.</span><span class="nx">layerMapOptions</span><span class="o">;</span>
<span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">enableMouseEvents</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isUndefined</span><span class="p">(</span><span class="nx">options</span><span class="p">.</span><span class="nx">enableMouseEvents</span><span class="p">)</span> <span class="o">?</span> <span class="kc">true</span> <span class="o">:</span> <span class="nx">options</span><span class="p">.</span><span class="nx">enableMouseEvents</span><span class="o">;</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Create the dom of the layer and insert it into the parent element</span>
<span class="c"> * @method render</span>
<span class="c"> */</span>
<span class="nx">render</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">el</span> <span class="o">=</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">cn</span><span class="p">(</span><span class="s1">'div'</span><span class="o">,</span> <span class="p">{</span><span class="nx">className</span><span class="o">:</span> <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">className</span><span class="p">}</span> <span class="p">);</span>
<span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">parentEl</span><span class="p">.</span><span class="nx">appendChild</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="p">);</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Create all the containers passed as options</span>
<span class="c"> * @method initContainers</span>
<span class="c"> */</span>
<span class="nx">initContainers</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">containers</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">addContainer</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
<span class="p">}</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Create all the wires passed in the config</span>
<span class="c"> * @method initWires</span>
<span class="c"> */</span>
<span class="nx">initWires</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">wires</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">addWire</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">wires</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
<span class="p">}</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Instanciate a wire given its "xtype" (default to WireIt.Wire)</span>
<span class="c"> * @method addWire</span>
<span class="c"> * @param {Object} wireConfig Wire configuration object (see WireIt.Wire class for details)</span>
<span class="c"> * @return {WireIt.Wire} Wire instance build from the xtype</span>
<span class="c"> */</span>
<span class="nx">addWire</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">wireConfig</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">type</span> <span class="o">=</span> <span class="nb">eval</span><span class="p">(</span><span class="nx">wireConfig</span><span class="p">.</span><span class="nx">xtype</span> <span class="o">||</span> <span class="s2">"WireIt.Wire"</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">src</span> <span class="o">=</span> <span class="nx">wireConfig</span><span class="p">.</span><span class="nx">src</span><span class="o">;</span>
<span class="kd">var</span> <span class="nx">tgt</span> <span class="o">=</span> <span class="nx">wireConfig</span><span class="p">.</span><span class="nx">tgt</span><span class="o">;</span>
<span class="kd">var</span> <span class="nx">terminal1</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">src</span><span class="p">.</span><span class="nx">moduleId</span><span class="p">].</span><span class="nx">getTerminal</span><span class="p">(</span><span class="nx">src</span><span class="p">.</span><span class="nx">terminal</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">terminal2</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">tgt</span><span class="p">.</span><span class="nx">moduleId</span><span class="p">].</span><span class="nx">getTerminal</span><span class="p">(</span><span class="nx">tgt</span><span class="p">.</span><span class="nx">terminal</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">wire</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">type</span><span class="p">(</span> <span class="nx">terminal1</span><span class="o">,</span> <span class="nx">terminal2</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">el</span><span class="o">,</span> <span class="nx">wireConfig</span><span class="p">);</span>
<span class="nx">wire</span><span class="p">.</span><span class="nx">redraw</span><span class="p">();</span>
<span class="k">return</span> <span class="nx">wire</span><span class="o">;</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Instanciate a container given its "xtype": WireIt.Container (default) or a subclass of it.</span>
<span class="c"> * @method addContainer</span>
<span class="c"> * @param {Object} containerConfig Container configuration object (see WireIt.Container class for details)</span>
<span class="c"> * @return {WireIt.Container} Container instance build from the xtype</span>
<span class="c"> */</span>
<span class="nx">addContainer</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">containerConfig</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">type</span> <span class="o">=</span> <span class="nb">eval</span><span class="p">(</span><span class="s1">'('</span><span class="o">+</span><span class="p">(</span><span class="nx">containerConfig</span><span class="p">.</span><span class="nx">xtype</span> <span class="o">||</span> <span class="s2">"WireIt.Container"</span><span class="p">)</span><span class="o">+</span><span class="s1">')'</span><span class="p">);</span>
<span class="k">if</span><span class="p">(</span><span class="o">!</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isFunction</span><span class="p">(</span><span class="nx">type</span><span class="p">))</span> <span class="p">{</span>
<span class="k">throw</span> <span class="k">new</span> <span class="nb">Error</span><span class="p">(</span><span class="s2">"WireIt layer unable to add container: xtype '"</span><span class="o">+</span><span class="nx">containerConfig</span><span class="p">.</span><span class="nx">xtype</span><span class="o">+</span><span class="s2">"' not found"</span><span class="p">);</span>
<span class="p">}</span>
<span class="kd">var</span> <span class="nx">container</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">type</span><span class="p">(</span><span class="nx">containerConfig</span><span class="o">,</span> <span class="k">this</span><span class="p">);</span>
<span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span> <span class="nx">container</span> <span class="p">);</span>
<span class="c">// Event listeners</span>
<span class="nx">container</span><span class="p">.</span><span class="nx">eventAddWire</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">onAddWire</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
<span class="nx">container</span><span class="p">.</span><span class="nx">eventRemoveWire</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">onRemoveWire</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
<span class="k">if</span><span class="p">(</span><span class="nx">container</span><span class="p">.</span><span class="nx">ddResize</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">container</span><span class="p">.</span><span class="nx">ddResize</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">'endDragEvent'</span><span class="o">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventContainerResized</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="nx">container</span><span class="p">);</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventChanged</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="k">this</span><span class="p">);</span>
<span class="p">}</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
<span class="p">}</span>
<span class="k">if</span><span class="p">(</span><span class="nx">container</span><span class="p">.</span><span class="nx">dd</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">container</span><span class="p">.</span><span class="nx">dd</span><span class="p">.</span><span class="nx">on</span><span class="p">(</span><span class="s1">'endDragEvent'</span><span class="o">,</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventContainerDragged</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="nx">container</span><span class="p">);</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventChanged</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="k">this</span><span class="p">);</span>
<span class="p">}</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
<span class="p">}</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventAddContainer</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="nx">container</span><span class="p">);</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventChanged</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="k">this</span><span class="p">);</span>
<span class="k">return</span> <span class="nx">container</span><span class="o">;</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Remove a container</span>
<span class="c"> * @method removeContainer</span>
<span class="c"> * @param {WireIt.Container} container Container instance to remove</span>
<span class="c"> */</span>
<span class="nx">removeContainer</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">container</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">index</span> <span class="o">=</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="nx">container</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">);</span>
<span class="k">if</span><span class="p">(</span> <span class="nx">index</span> <span class="o">!=</span> <span class="o">-</span><span class="mi">1</span> <span class="p">)</span> <span class="p">{</span>
<span class="nx">container</span><span class="p">.</span><span class="nx">remove</span><span class="p">();</span>
<span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">index</span><span class="p">]</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
<span class="k">this</span><span class="p">.</span><span class="nx">containers</span> <span class="o">=</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">compact</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">);</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventRemoveContainer</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="nx">container</span><span class="p">);</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventChanged</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="k">this</span><span class="p">);</span>
<span class="p">}</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Update the wire list when any of the containers fired the eventAddWire</span>
<span class="c"> * @method onAddWire</span>
<span class="c"> * @param {Event} event The eventAddWire event fired by the container</span>
<span class="c"> * @param {Array} args This array contains a single element args[0] which is the added Wire instance</span>
<span class="c"> */</span>
<span class="nx">onAddWire</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="o">,</span> <span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">wire</span> <span class="o">=</span> <span class="nx">args</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
<span class="c">// add the wire to the list if it isn't in</span>
<span class="k">if</span><span class="p">(</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="nx">wire</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">)</span> <span class="o">==</span> <span class="o">-</span><span class="mi">1</span> <span class="p">)</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">wire</span><span class="p">);</span>
<span class="k">if</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">options</span><span class="p">.</span><span class="nx">enableMouseEvents</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">addListener</span><span class="p">(</span><span class="nx">wire</span><span class="p">.</span><span class="nx">element</span><span class="o">,</span> <span class="s2">"mousemove"</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">onWireMouseMove</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
<span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">addListener</span><span class="p">(</span><span class="nx">wire</span><span class="p">.</span><span class="nx">element</span><span class="o">,</span> <span class="s2">"click"</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">onWireClick</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
<span class="p">}</span>
<span class="c">// Re-Fire an event at the layer level</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventAddWire</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="nx">wire</span><span class="p">);</span>
<span class="c">// Fire the layer changed event</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventChanged</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="k">this</span><span class="p">);</span>
<span class="p">}</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Update the wire list when a wire is removed</span>
<span class="c"> * @method onRemoveWire</span>
<span class="c"> * @param {Event} event The eventRemoveWire event fired by the container</span>
<span class="c"> * @param {Array} args This array contains a single element args[0] which is the removed Wire instance</span>
<span class="c"> */</span>
<span class="nx">onRemoveWire</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">event</span><span class="o">,</span> <span class="nx">args</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">wire</span> <span class="o">=</span> <span class="nx">args</span><span class="p">[</span><span class="mi">0</span><span class="p">];</span>
<span class="kd">var</span> <span class="nx">index</span> <span class="o">=</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="nx">wire</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">);</span>
<span class="k">if</span><span class="p">(</span> <span class="nx">index</span> <span class="o">!=</span> <span class="o">-</span><span class="mi">1</span> <span class="p">)</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">[</span><span class="nx">index</span><span class="p">]</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
<span class="k">this</span><span class="p">.</span><span class="nx">wires</span> <span class="o">=</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">compact</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">);</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventRemoveWire</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="nx">wire</span><span class="p">);</span>
<span class="k">this</span><span class="p">.</span><span class="nx">eventChanged</span><span class="p">.</span><span class="nx">fire</span><span class="p">(</span><span class="k">this</span><span class="p">);</span>
<span class="p">}</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Remove all the containers in this layer (and the associated terminals and wires)</span>
<span class="c"> * @method clear</span>
<span class="c"> */</span>
<span class="nx">clear</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="k">while</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">.</span><span class="nx">length</span> <span class="o">></span> <span class="mi">0</span><span class="p">)</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">removeContainer</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="mi">0</span><span class="p">]);</span>
<span class="p">}</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * @deprecated Alias for clear</span>
<span class="c"> * @method removeAllContainers</span>
<span class="c"> */</span>
<span class="nx">removeAllContainers</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">clear</span><span class="p">();</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Return an object that represent the state of the layer including the containers and the wires</span>
<span class="c"> * @method getWiring</span>
<span class="c"> * @return {Obj} layer configuration</span>
<span class="c"> */</span>
<span class="nx">getWiring</span><span class="o">:</span> <span class="kd">function</span><span class="p">()</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">i</span><span class="o">;</span>
<span class="kd">var</span> <span class="nx">obj</span> <span class="o">=</span> <span class="p">{</span><span class="nx">containers</span><span class="o">:</span> <span class="p">[]</span><span class="o">,</span> <span class="nx">wires</span><span class="o">:</span> <span class="p">[]};</span>
<span class="k">for</span><span class="p">(</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">obj</span><span class="p">.</span><span class="nx">containers</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span> <span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">getConfig</span><span class="p">()</span> <span class="p">);</span>
<span class="p">}</span>
<span class="k">for</span><span class="p">(</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">wire</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
<span class="kd">var</span> <span class="nx">wireObj</span> <span class="o">=</span> <span class="p">{</span>
<span class="nx">src</span><span class="o">:</span> <span class="p">{</span><span class="nx">moduleId</span><span class="o">:</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="nx">wire</span><span class="p">.</span><span class="nx">terminal1</span><span class="p">.</span><span class="nx">container</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">)</span><span class="o">,</span> <span class="nx">terminal</span><span class="o">:</span> <span class="nx">wire</span><span class="p">.</span><span class="nx">terminal1</span><span class="p">.</span><span class="nx">name</span> <span class="p">}</span><span class="o">,</span>
<span class="nx">tgt</span><span class="o">:</span> <span class="p">{</span><span class="nx">moduleId</span><span class="o">:</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">indexOf</span><span class="p">(</span><span class="nx">wire</span><span class="p">.</span><span class="nx">terminal2</span><span class="p">.</span><span class="nx">container</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">)</span><span class="o">,</span> <span class="nx">terminal</span><span class="o">:</span> <span class="nx">wire</span><span class="p">.</span><span class="nx">terminal2</span><span class="p">.</span><span class="nx">name</span> <span class="p">}</span>
<span class="p">};</span>
<span class="nx">obj</span><span class="p">.</span><span class="nx">wires</span><span class="p">.</span><span class="nx">push</span><span class="p">(</span><span class="nx">wireObj</span><span class="p">);</span>
<span class="p">}</span>
<span class="k">return</span> <span class="nx">obj</span><span class="o">;</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Load a layer configuration object</span>
<span class="c"> * @method setWiring</span>
<span class="c"> * @param {Object} wiring layer configuration</span>
<span class="c"> */</span>
<span class="nx">setWiring</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">wiring</span><span class="p">)</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">clear</span><span class="p">();</span>
<span class="k">if</span><span class="p">(</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="nx">wiring</span><span class="p">.</span><span class="nx">containers</span><span class="p">))</span> <span class="p">{</span>
<span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="nx">wiring</span><span class="p">.</span><span class="nx">containers</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">addContainer</span><span class="p">(</span><span class="nx">wiring</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="k">if</span><span class="p">(</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">lang</span><span class="p">.</span><span class="nx">isArray</span><span class="p">(</span><span class="nx">wiring</span><span class="p">.</span><span class="nx">wires</span><span class="p">))</span> <span class="p">{</span>
<span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="nx">wiring</span><span class="p">.</span><span class="nx">wires</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
<span class="k">this</span><span class="p">.</span><span class="nx">addWire</span><span class="p">(</span><span class="nx">wiring</span><span class="p">.</span><span class="nx">wires</span><span class="p">[</span><span class="nx">i</span><span class="p">]);</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Returns a position relative to the layer from a mouse event</span>
<span class="c"> * @method _getMouseEvtPos</span>
<span class="c"> * @param {Event} e Mouse event</span>
<span class="c"> * @return {Array} position</span>
<span class="c"> */</span>
<span class="nx">_getMouseEvtPos</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">tgt</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Event</span><span class="p">.</span><span class="nx">getTarget</span><span class="p">(</span><span class="nx">e</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">tgtPos</span> <span class="o">=</span> <span class="p">[</span><span class="nx">tgt</span><span class="p">.</span><span class="nx">offsetLeft</span><span class="o">,</span> <span class="nx">tgt</span><span class="p">.</span><span class="nx">offsetTop</span><span class="p">];</span>
<span class="k">return</span> <span class="p">[</span><span class="nx">tgtPos</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">+</span><span class="nx">e</span><span class="p">.</span><span class="nx">layerX</span><span class="o">,</span> <span class="nx">tgtPos</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">+</span><span class="nx">e</span><span class="p">.</span><span class="nx">layerY</span><span class="p">];</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Handles click on any wire canvas</span>
<span class="c"> * Note: we treat mouse events globally so that wires behind others can still receive the events</span>
<span class="c"> * @method onWireClick</span>
<span class="c"> * @param {Event} e Mouse click event</span>
<span class="c"> */</span>
<span class="nx">onWireClick</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">p</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getMouseEvtPos</span><span class="p">(</span><span class="nx">e</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">lx</span> <span class="o">=</span> <span class="nx">p</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">,</span> <span class="nx">ly</span> <span class="o">=</span> <span class="nx">p</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">,</span> <span class="nx">n</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">.</span><span class="nx">length</span><span class="o">,</span> <span class="nx">w</span><span class="o">;</span>
<span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="nx">n</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">w</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
<span class="kd">var</span> <span class="nx">elx</span> <span class="o">=</span> <span class="nx">w</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">offsetLeft</span><span class="o">,</span> <span class="nx">ely</span> <span class="o">=</span> <span class="nx">w</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">offsetTop</span><span class="o">;</span>
<span class="c">// Check if the mouse is within the canvas boundaries</span>
<span class="k">if</span><span class="p">(</span> <span class="nx">lx</span> <span class="o">>=</span> <span class="nx">elx</span> <span class="o">&&</span> <span class="nx">lx</span> <span class="o"><</span> <span class="nx">elx</span><span class="o">+</span><span class="nx">w</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">width</span> <span class="o">&&</span> <span class="nx">ly</span> <span class="o">>=</span> <span class="nx">ely</span> <span class="o">&&</span> <span class="nx">ly</span> <span class="o"><</span> <span class="nx">ely</span><span class="o">+</span><span class="nx">w</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">height</span> <span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">rx</span> <span class="o">=</span> <span class="nx">lx</span><span class="o">-</span><span class="nx">elx</span><span class="o">,</span> <span class="nx">ry</span> <span class="o">=</span> <span class="nx">ly</span><span class="o">-</span><span class="nx">ely</span><span class="o">;</span> <span class="c">// relative to the canvas</span>
<span class="nx">w</span><span class="p">.</span><span class="nx">onClick</span><span class="p">(</span><span class="nx">rx</span><span class="o">,</span><span class="nx">ry</span><span class="p">);</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Handles mousemove events on any wire canvas</span>
<span class="c"> * Note: we treat mouse events globally so that wires behind others can still receive the events</span>
<span class="c"> * @method onWireMouseMove</span>
<span class="c"> * @param {Event} e Mouse click event</span>
<span class="c"> */</span>
<span class="nx">onWireMouseMove</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">e</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">p</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">_getMouseEvtPos</span><span class="p">(</span><span class="nx">e</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">lx</span> <span class="o">=</span> <span class="nx">p</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">,</span> <span class="nx">ly</span> <span class="o">=</span> <span class="nx">p</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">,</span> <span class="nx">n</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">.</span><span class="nx">length</span><span class="o">,</span> <span class="nx">w</span><span class="o">;</span>
<span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="nx">n</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">w</span> <span class="o">=</span> <span class="k">this</span><span class="p">.</span><span class="nx">wires</span><span class="p">[</span><span class="nx">i</span><span class="p">];</span>
<span class="kd">var</span> <span class="nx">elx</span> <span class="o">=</span> <span class="nx">w</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">offsetLeft</span><span class="o">,</span> <span class="nx">ely</span> <span class="o">=</span> <span class="nx">w</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">offsetTop</span><span class="o">;</span>
<span class="c">// Check if the mouse is within the canvas boundaries</span>
<span class="k">if</span><span class="p">(</span> <span class="nx">lx</span> <span class="o">>=</span> <span class="nx">elx</span> <span class="o">&&</span> <span class="nx">lx</span> <span class="o"><</span> <span class="nx">elx</span><span class="o">+</span><span class="nx">w</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">width</span> <span class="o">&&</span> <span class="nx">ly</span> <span class="o">>=</span> <span class="nx">ely</span> <span class="o">&&</span> <span class="nx">ly</span> <span class="o"><</span> <span class="nx">ely</span><span class="o">+</span><span class="nx">w</span><span class="p">.</span><span class="nx">element</span><span class="p">.</span><span class="nx">height</span> <span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">rx</span> <span class="o">=</span> <span class="nx">lx</span><span class="o">-</span><span class="nx">elx</span><span class="o">,</span> <span class="nx">ry</span> <span class="o">=</span> <span class="nx">ly</span><span class="o">-</span><span class="nx">ely</span><span class="o">;</span> <span class="c">// relative to the canvas</span>
<span class="nx">w</span><span class="p">.</span><span class="nx">onMouseMove</span><span class="p">(</span><span class="nx">rx</span><span class="o">,</span><span class="nx">ry</span><span class="p">);</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">}</span><span class="o">,</span>
<span class="c">/**</span>
<span class="c"> * Layer explosing animation</span>
<span class="c"> * @method clearExplode</span>
<span class="c"> */</span>
<span class="nx">clearExplode</span><span class="o">:</span> <span class="kd">function</span><span class="p">(</span><span class="nx">callback</span><span class="o">,</span> <span class="nx">bind</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">center</span> <span class="o">=</span> <span class="p">[</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">floor</span><span class="p">(</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">getViewportWidth</span><span class="p">()</span><span class="o">/</span><span class="mi">2</span><span class="p">)</span><span class="o">,</span>
<span class="nb">Math</span><span class="p">.</span><span class="nx">floor</span><span class="p">(</span><span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">getViewportHeight</span><span class="p">()</span><span class="o">/</span><span class="mi">2</span><span class="p">)];</span>
<span class="kd">var</span> <span class="nx">R</span> <span class="o">=</span> <span class="mf">1.2</span><span class="o">*</span><span class="nb">Math</span><span class="p">.</span><span class="nx">sqrt</span><span class="p">(</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">pow</span><span class="p">(</span><span class="nx">center</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">,</span><span class="mi">2</span><span class="p">)</span><span class="o">+</span><span class="nb">Math</span><span class="p">.</span><span class="nx">pow</span><span class="p">(</span><span class="nx">center</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">,</span><span class="mi">2</span><span class="p">));</span>
<span class="k">for</span><span class="p">(</span><span class="kd">var</span> <span class="nx">i</span> <span class="o">=</span> <span class="mi">0</span> <span class="o">;</span> <span class="nx">i</span> <span class="o"><</span> <span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">.</span><span class="nx">length</span> <span class="o">;</span> <span class="nx">i</span><span class="o">++</span><span class="p">)</span> <span class="p">{</span>
<span class="kd">var</span> <span class="nx">left</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">dbWire</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">left</span><span class="p">.</span><span class="nx">substr</span><span class="p">(</span><span class="mi">0</span><span class="o">,</span><span class="nx">dbWire</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">left</span><span class="p">.</span><span class="nx">length</span><span class="o">-</span><span class="mi">2</span><span class="p">)</span><span class="o">,</span><span class="mi">10</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">top</span> <span class="o">=</span> <span class="nb">parseInt</span><span class="p">(</span><span class="nx">dbWire</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">top</span><span class="p">.</span><span class="nx">substr</span><span class="p">(</span><span class="mi">0</span><span class="o">,</span><span class="nx">dbWire</span><span class="p">.</span><span class="nx">layer</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">el</span><span class="p">.</span><span class="nx">style</span><span class="p">.</span><span class="nx">top</span><span class="p">.</span><span class="nx">length</span><span class="o">-</span><span class="mi">2</span><span class="p">)</span><span class="o">,</span><span class="mi">10</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">d</span> <span class="o">=</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">sqrt</span><span class="p">(</span> <span class="nb">Math</span><span class="p">.</span><span class="nx">pow</span><span class="p">(</span><span class="nx">left</span><span class="o">-</span><span class="nx">center</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">,</span><span class="mi">2</span><span class="p">)</span><span class="o">+</span><span class="nb">Math</span><span class="p">.</span><span class="nx">pow</span><span class="p">(</span><span class="nx">top</span><span class="o">-</span><span class="nx">center</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">,</span><span class="mi">2</span><span class="p">)</span> <span class="p">);</span>
<span class="kd">var</span> <span class="nx">u</span> <span class="o">=</span> <span class="p">[</span> <span class="p">(</span><span class="nx">left</span><span class="o">-</span><span class="nx">center</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span><span class="o">/</span><span class="nx">d</span><span class="o">,</span> <span class="p">(</span><span class="nx">top</span><span class="o">-</span><span class="nx">center</span><span class="p">[</span><span class="mi">1</span><span class="p">])</span><span class="o">/</span><span class="nx">d</span><span class="p">];</span>
<span class="nx">YAHOO</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Dom</span><span class="p">.</span><span class="nx">setStyle</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">el</span><span class="o">,</span> <span class="s2">"opacity"</span><span class="o">,</span> <span class="s2">"0.8"</span><span class="p">);</span>
<span class="kd">var</span> <span class="nx">myAnim</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">WireIt</span><span class="p">.</span><span class="nx">util</span><span class="p">.</span><span class="nx">Anim</span><span class="p">(</span><span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">terminals</span><span class="o">,</span> <span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">[</span><span class="nx">i</span><span class="p">].</span><span class="nx">el</span><span class="o">,</span> <span class="p">{</span>
<span class="nx">left</span><span class="o">:</span> <span class="p">{</span> <span class="nx">to</span><span class="o">:</span> <span class="nx">center</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span><span class="o">+</span><span class="nx">R</span><span class="o">*</span><span class="nx">u</span><span class="p">[</span><span class="mi">0</span><span class="p">]</span> <span class="p">}</span><span class="o">,</span>
<span class="nx">top</span><span class="o">:</span> <span class="p">{</span> <span class="nx">to</span><span class="o">:</span> <span class="nx">center</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span><span class="o">+</span><span class="nx">R</span><span class="o">*</span><span class="nx">u</span><span class="p">[</span><span class="mi">1</span><span class="p">]</span> <span class="p">}</span><span class="o">,</span>
<span class="nx">opacity</span><span class="o">:</span> <span class="p">{</span> <span class="nx">to</span><span class="o">:</span> <span class="mi">0</span><span class="o">,</span> <span class="nx">by</span><span class="o">:</span> <span class="mf">0.05</span><span class="p">}</span><span class="o">,</span>
<span class="nx">duration</span><span class="o">:</span> <span class="mi">3</span>
<span class="p">});</span>
<span class="k">if</span><span class="p">(</span><span class="nx">i</span> <span class="o">==</span> <span class="k">this</span><span class="p">.</span><span class="nx">containers</span><span class="p">.</span><span class="nx">length</span><span class="o">-</span><span class="mi">1</span><span class="p">)</span> <span class="p">{</span>
<span class="nx">myAnim</span><span class="p">.</span><span class="nx">onComplete</span><span class="p">.</span><span class="nx">subscribe</span><span class="p">(</span><span class="kd">function</span><span class="p">()</span> <span class="p">{</span> <span class="k">this</span><span class="p">.</span><span class="nx">clear</span><span class="p">();</span> <span class="nx">callback</span><span class="p">.</span><span class="nx">call</span><span class="p">(</span><span class="nx">bind</span><span class="p">);}</span><span class="o">,</span> <span class="k">this</span><span class="o">,</span> <span class="kc">true</span><span class="p">);</span>
<span class="p">}</span>
<span class="nx">myAnim</span><span class="p">.</span><span class="nx">animate</span><span class="p">();</span>
<span class="p">}</span>
<span class="p">}</span>
<span class="p">};</span>
</pre></div>
</div>
</div>
</div>
<div class="yui-b">
<div class="nav">
<div id="moduleList" class="module">
<h4>Modules</h4>
<ul class="content">
<li class="selected"><a href="module_wireit.html" title="WireIt">WireIt</a></li>
</ul>
</div>
<div id="classList" class="module">
<h4>Classes</h4>
<ul class="content">
<li class=""><a href="inputEx.BaseField.html" title="inputEx.BaseField">inputEx.BaseField</a></li>
<li class=""><a href="inputEx.Field.html" title="inputEx.Field">inputEx.Field</a></li>
<li class=""><a href="WireIt.BaseEditor.html" title="WireIt.BaseEditor">WireIt.BaseEditor</a></li>
<li class=""><a href="WireIt.CanvasElement.html" title="WireIt.CanvasElement">WireIt.CanvasElement</a></li>
<li class=""><a href="WireIt.Container.html" title="WireIt.Container">WireIt.Container</a></li>
<li class=""><a href="WireIt.FormContainer.html" title="WireIt.FormContainer">WireIt.FormContainer</a></li>
<li class=""><a href="WireIt.ImageContainer.html" title="WireIt.ImageContainer">WireIt.ImageContainer</a></li>
<li class=""><a href="WireIt.InOutContainer.html" title="WireIt.InOutContainer">WireIt.InOutContainer</a></li>
<li class=""><a href="WireIt.Layer.html" title="WireIt.Layer">WireIt.Layer</a></li>
<li class=""><a href="WireIt.LayerMap.html" title="WireIt.LayerMap">WireIt.LayerMap</a></li>
<li class=""><a href="WireIt.ModuleProxy.html" title="WireIt.ModuleProxy">WireIt.ModuleProxy</a></li>
<li class=""><a href="WireIt.Scissors.html" title="WireIt.Scissors">WireIt.Scissors</a></li>
<li class=""><a href="WireIt.Terminal.html" title="WireIt.Terminal">WireIt.Terminal</a></li>
<li class=""><a href="WireIt.TerminalProxy.html" title="WireIt.TerminalProxy">WireIt.TerminalProxy</a></li>
<li class=""><a href="WireIt.util.Anim.html" title="WireIt.util.Anim">WireIt.util.Anim</a></li>
<li class=""><a href="WireIt.util.DD.html" title="WireIt.util.DD">WireIt.util.DD</a></li>
<li class=""><a href="WireIt.util.DDResize.html" title="WireIt.util.DDResize">WireIt.util.DDResize</a></li>
<li class=""><a href="WireIt.util.TerminalInput.html" title="WireIt.util.TerminalInput">WireIt.util.TerminalInput</a></li>
<li class=""><a href="WireIt.util.TerminalOutput.html" title="WireIt.util.TerminalOutput">WireIt.util.TerminalOutput</a></li>
<li class=""><a href="WireIt.Wire.html" title="WireIt.Wire">WireIt.Wire</a></li>
<li class=""><a href="WireIt.WireIt.html" title="WireIt.WireIt">WireIt.WireIt</a></li>
<li class=""><a href="WireIt.WiringEditor.html" title="WireIt.WiringEditor">WireIt.WiringEditor</a></li>
<li class=""><a href="WireIt.WiringEditor.adapters.Ajax.html" title="WireIt.WiringEditor.adapters.Ajax">WireIt.WiringEditor.adapters.Ajax</a></li>
<li class=""><a href="WireIt.WiringEditor.adapters.Gears.html" title="WireIt.WiringEditor.adapters.Gears">WireIt.WiringEditor.adapters.Gears</a></li>
<li class=""><a href="WireIt.WiringEditor.adapters.JsonRpc.html" title="WireIt.WiringEditor.adapters.JsonRpc">WireIt.WiringEditor.adapters.JsonRpc</a></li>
</ul>
</div>
<div id="fileList" class="module">
<h4>Files</h4>
<ul class="content">
<li class=""><a href="ajax.js.html" title="ajax.js">ajax.js</a></li>
<li class=""><a href="Anim.js.html" title="Anim.js">Anim.js</a></li>
<li class=""><a href="BaseEditor.js.html" title="BaseEditor.js">BaseEditor.js</a></li>
<li class=""><a href="CanvasElement.js.html" title="CanvasElement.js">CanvasElement.js</a></li>
<li class=""><a href="Container.js.html" title="Container.js">Container.js</a></li>
<li class=""><a href="DD.js.html" title="DD.js">DD.js</a></li>
<li class=""><a href="DDResize.js.html" title="DDResize.js">DDResize.js</a></li>
<li class=""><a href="FormContainer-beta.js.html" title="FormContainer-beta.js">FormContainer-beta.js</a></li>
<li class=""><a href="gears.js.html" title="gears.js">gears.js</a></li>
<li class=""><a href="ImageContainer.js.html" title="ImageContainer.js">ImageContainer.js</a></li>
<li class=""><a href="InOutContainer.js.html" title="InOutContainer.js">InOutContainer.js</a></li>
<li class=""><a href="json-rpc.js.html" title="json-rpc.js">json-rpc.js</a></li>
<li class="selected"><a href="Layer.js.html" title="Layer.js">Layer.js</a></li>
<li class=""><a href="LayerMap.js.html" title="LayerMap.js">LayerMap.js</a></li>
<li class=""><a href="Layout.js.html" title="Layout.js">Layout.js</a></li>
<li class=""><a href="ModuleProxy.js.html" title="ModuleProxy.js">ModuleProxy.js</a></li>
<li class=""><a href="Terminal.js.html" title="Terminal.js">Terminal.js</a></li>
<li class=""><a href="WirableField-beta.js.html" title="WirableField-beta.js">WirableField-beta.js</a></li>
<li class=""><a href="Wire.js.html" title="Wire.js">Wire.js</a></li>
<li class=""><a href="WireIt.js.html" title="WireIt.js">WireIt.js</a></li>
<li class=""><a href="WiringEditor.js.html" title="WiringEditor.js">WiringEditor.js</a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="ft">
<hr />
Copyright © 2010 Eric Abouaf All rights reserved.
</div>
</div>
<script type="text/javascript">
var ALL_YUI_PROPS = [{"url": "WireIt.WiringEditor.html#property_adapters", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "adapters"}, {"url": "WireIt.Layer.html#method_addContainer", "access": "", "host": "WireIt.Layer", "type": "method", "name": "addContainer"}, {"url": "WireIt.WiringEditor.html#method_addModule", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "addModule"}, {"url": "WireIt.WiringEditor.html#method_addModuleToList", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "addModuleToList"}, {"url": "WireIt.Container.html#method_addTerminal", "access": "", "host": "WireIt.Container", "type": "method", "name": "addTerminal"}, {"url": "WireIt.Layer.html#method_addWire", "access": "", "host": "WireIt.Layer", "type": "method", "name": "addWire"}, {"url": "WireIt.Terminal.html#method_addWire", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "addWire"}, {"url": "WireIt.BaseEditor.html#method_alert", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "alert"}, {"url": "WireIt.BaseEditor.html#property_alertPanel", "access": "", "host": "WireIt.BaseEditor", "type": "property", "name": "alertPanel"}, {"url": "WireIt.Container.html#property_bodyEl", "access": "", "host": "WireIt.Container", "type": "property", "name": "bodyEl"}, {"url": "WireIt.WiringEditor.html#method_buildModulesList", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "buildModulesList"}, {"url": "WireIt.Layer.html#method_clear", "access": "", "host": "WireIt.Layer", "type": "method", "name": "clear"}, {"url": "WireIt.Layer.html#method_clearExplode", "access": "", "host": "WireIt.Layer", "type": "method", "name": "clearExplode"}, {"url": "WireIt.WireIt.html#method_cn", "access": "", "host": "WireIt.WireIt", "type": "method", "name": "cn"}, {"url": "WireIt.WireIt.html#method_compact", "access": "", "host": "WireIt.WireIt", "type": "method", "name": "compact"}, {"url": "WireIt.WiringEditor.adapters.Ajax.html#property_config", "access": "", "host": "WireIt.WiringEditor.adapters.Ajax", "type": "property", "name": "config"}, {"url": "WireIt.Terminal.html#property_container", "access": "", "host": "WireIt.Terminal", "type": "property", "name": "container"}, {"url": "WireIt.Layer.html#property_containers", "access": "", "host": "WireIt.Layer", "type": "property", "name": "containers"}, {"url": "WireIt.TerminalProxy.html#method_createFrame", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "createFrame"}, {"url": "WireIt.BaseEditor.html#property_defaultOptions", "access": "", "host": "WireIt.BaseEditor", "type": "property", "name": "defaultOptions"}, {"url": "WireIt.WiringEditor.adapters.Ajax.html#method_deleteWiring", "access": "", "host": "WireIt.WiringEditor.adapters.Ajax", "type": "method", "name": "deleteWiring"}, {"url": "WireIt.CanvasElement.html#method_destroy", "access": "", "host": "WireIt.CanvasElement", "type": "method", "name": "destroy"}, {"url": "WireIt.LayerMap.html#method_draw", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "draw"}, {"url": "WireIt.Wire.html#method_drawArrows", "access": "", "host": "WireIt.Wire", "type": "method", "name": "drawArrows"}, {"url": "WireIt.Wire.html#method_drawBezierArrows", "access": "", "host": "WireIt.Wire", "type": "method", "name": "drawBezierArrows"}, {"url": "WireIt.Wire.html#method_drawBezierCurve", "access": "", "host": "WireIt.Wire", "type": "method", "name": "drawBezierCurve"}, {"url": "WireIt.LayerMap.html#method_drawContainers", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "drawContainers"}, {"url": "WireIt.Wire.html#method_drawStraight", "access": "", "host": "WireIt.Wire", "type": "method", "name": "drawStraight"}, {"url": "WireIt.LayerMap.html#method_drawWires", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "drawWires"}, {"url": "WireIt.BaseEditor.html#property_el", "access": "", "host": "WireIt.BaseEditor", "type": "property", "name": "el"}, {"url": "WireIt.Container.html#property_el", "access": "", "host": "WireIt.Container", "type": "property", "name": "el"}, {"url": "WireIt.Layer.html#property_el", "access": "", "host": "WireIt.Layer", "type": "property", "name": "el"}, {"url": "WireIt.Terminal.html#property_el", "access": "", "host": "WireIt.Terminal", "type": "property", "name": "el"}, {"url": "WireIt.CanvasElement.html#property_element", "access": "", "host": "WireIt.CanvasElement", "type": "property", "name": "element"}, {"url": "WireIt.ModuleProxy.html#method_endDrag", "access": "", "host": "WireIt.ModuleProxy", "type": "method", "name": "endDrag"}, {"url": "WireIt.TerminalProxy.html#method_endDrag", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "endDrag"}, {"url": "WireIt.Layer.html#event_eventAddContainer", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventAddContainer"}, {"url": "WireIt.Container.html#event_eventAddWire", "access": "", "host": "WireIt.Container", "type": "event", "name": "eventAddWire"}, {"url": "WireIt.Layer.html#event_eventAddWire", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventAddWire"}, {"url": "WireIt.Terminal.html#event_eventAddWire", "access": "", "host": "WireIt.Terminal", "type": "event", "name": "eventAddWire"}, {"url": "WireIt.Layer.html#event_eventChanged", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventChanged"}, {"url": "WireIt.Layer.html#event_eventContainerDragged", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventContainerDragged"}, {"url": "WireIt.Layer.html#event_eventContainerResized", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventContainerResized"}, {"url": "WireIt.Wire.html#event_eventMouseClick", "access": "", "host": "WireIt.Wire", "type": "event", "name": "eventMouseClick"}, {"url": "WireIt.Wire.html#event_eventMouseIn", "access": "", "host": "WireIt.Wire", "type": "event", "name": "eventMouseIn"}, {"url": "WireIt.Wire.html#event_eventMouseMove", "access": "", "host": "WireIt.Wire", "type": "event", "name": "eventMouseMove"}, {"url": "WireIt.Wire.html#event_eventMouseOut", "access": "", "host": "WireIt.Wire", "type": "event", "name": "eventMouseOut"}, {"url": "WireIt.Layer.html#event_eventRemoveContainer", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventRemoveContainer"}, {"url": "WireIt.Container.html#event_eventRemoveWire", "access": "", "host": "WireIt.Container", "type": "event", "name": "eventRemoveWire"}, {"url": "WireIt.Layer.html#event_eventRemoveWire", "access": "", "host": "WireIt.Layer", "type": "event", "name": "eventRemoveWire"}, {"url": "WireIt.Terminal.html#event_eventRemoveWire", "access": "", "host": "WireIt.Terminal", "type": "event", "name": "eventRemoveWire"}, {"url": "WireIt.util.DDResize.html#event_eventResize", "access": "", "host": "WireIt.util.DDResize", "type": "event", "name": "eventResize"}, {"url": "WireIt.TerminalProxy.html#property_fakeTerminal", "access": "", "host": "WireIt.TerminalProxy", "type": "property", "name": "fakeTerminal"}, {"url": "WireIt.Container.html#method_getConfig", "access": "", "host": "WireIt.Container", "type": "method", "name": "getConfig"}, {"url": "WireIt.Terminal.html#method_getConnectedTerminals", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "getConnectedTerminals"}, {"url": "WireIt.CanvasElement.html#method_getContext", "access": "", "host": "WireIt.CanvasElement", "type": "method", "name": "getContext"}, {"url": "WireIt.WireIt.html#method_getIntStyle", "access": "", "host": "WireIt.WireIt", "type": "method", "name": "getIntStyle"}, {"url": "WireIt.Layer.html#method__getMouseEvtPos", "access": "", "host": "WireIt.Layer", "type": "method", "name": "_getMouseEvtPos"}, {"url": "WireIt.Wire.html#method_getOtherTerminal", "access": "", "host": "WireIt.Wire", "type": "method", "name": "getOtherTerminal"}, {"url": "WireIt.WiringEditor.html#method_getPipeByName", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "getPipeByName"}, {"url": "WireIt.Container.html#method_getTerminal", "access": "", "host": "WireIt.Container", "type": "method", "name": "getTerminal"}, {"url": "WireIt.Container.html#method_getValue", "access": "", "host": "WireIt.Container", "type": "method", "name": "getValue"}, {"url": "WireIt.WiringEditor.html#method_getValue", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "getValue"}, {"url": "WireIt.FormContainer.html#method_getValue", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "getValue"}, {"url": "WireIt.Layer.html#method_getWiring", "access": "", "host": "WireIt.Layer", "type": "method", "name": "getWiring"}, {"url": "WireIt.Terminal.html#method_getXY", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "getXY"}, {"url": "WireIt.BaseEditor.html#property_helpPanel", "access": "", "host": "WireIt.BaseEditor", "type": "property", "name": "helpPanel"}, {"url": "WireIt.Scissors.html#method_hide", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "hide"}, {"url": "WireIt.Scissors.html#method_hideNow", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "hideNow"}, {"url": "WireIt.WireIt.html#method_indexOf", "access": "", "host": "WireIt.WireIt", "type": "method", "name": "indexOf"}, {"url": "WireIt.WiringEditor.adapters.Ajax.html#method_init", "access": "", "host": "WireIt.WiringEditor.adapters.Ajax", "type": "method", "name": "init"}, {"url": "WireIt.Layer.html#method_initContainers", "access": "", "host": "WireIt.Layer", "type": "method", "name": "initContainers"}, {"url": "WireIt.LayerMap.html#method_initEvents", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "initEvents"}, {"url": "WireIt.Scissors.html#method_initScissors", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "initScissors"}, {"url": "WireIt.Container.html#method_initTerminals", "access": "", "host": "WireIt.Container", "type": "method", "name": "initTerminals"}, {"url": "WireIt.Layer.html#method_initWires", "access": "", "host": "WireIt.Layer", "type": "method", "name": "initWires"}, {"url": "WireIt.WiringEditor.html#method_inputFilterTimer", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "inputFilterTimer"}, {"url": "WireIt.BaseEditor.html#method_isSaved", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "isSaved"}, {"url": "WireIt.TerminalProxy.html#method_isValidWireTerminal", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "isValidWireTerminal"}, {"url": "WireIt.Container.html#property_layer", "access": "", "host": "WireIt.Container", "type": "property", "name": "layer"}, {"url": "WireIt.LayerMap.html#property_layer", "access": "", "host": "WireIt.LayerMap", "type": "property", "name": "layer"}, {"url": "WireIt.WiringEditor.html#property_layer", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "layer"}, {"url": "WireIt.BaseEditor.html#property_layout", "access": "", "host": "WireIt.BaseEditor", "type": "property", "name": "layout"}, {"url": "WireIt.LayerMap.html#method_layoutAnim", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "layoutAnim"}, {"url": "WireIt.WiringEditor.adapters.Ajax.html#method_listWirings", "access": "", "host": "WireIt.WiringEditor.adapters.Ajax", "type": "method", "name": "listWirings"}, {"url": "WireIt.WiringEditor.html#method_load", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "load"}, {"url": "WireIt.WiringEditor.html#method_loadPipe", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "loadPipe"}, {"url": "WireIt.BaseEditor.html#method_markSaved", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "markSaved"}, {"url": "WireIt.BaseEditor.html#method_markUnsaved", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "markUnsaved"}, {"url": "WireIt.WiringEditor.html#property_modulesByName", "access": "", "host": "WireIt.WiringEditor", "type": "property", "name": "modulesByName"}, {"url": "WireIt.Scissors.html#method_mouseOver", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "mouseOver"}, {"url": "WireIt.util.Anim.html#method_moveWireItWires", "access": "", "host": "WireIt.util.Anim", "type": "method", "name": "moveWireItWires"}, {"url": "WireIt.util.DDResize.html#property_myConf", "access": "", "host": "WireIt.util.DDResize", "type": "property", "name": "myConf"}, {"url": "WireIt.Container.html#method_onAddWire", "access": "", "host": "WireIt.Container", "type": "method", "name": "onAddWire"}, {"url": "WireIt.Layer.html#method_onAddWire", "access": "", "host": "WireIt.Layer", "type": "method", "name": "onAddWire"}, {"url": "inputEx.Field.html#method_onAddWire", "access": "", "host": "inputEx.Field", "type": "method", "name": "onAddWire"}, {"url": "WireIt.Wire.html#method_onClick", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onClick"}, {"url": "WireIt.Container.html#method_onCloseButton", "access": "", "host": "WireIt.Container", "type": "method", "name": "onCloseButton"}, {"url": "WireIt.WiringEditor.html#method_onDelete", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "onDelete"}, {"url": "WireIt.TerminalProxy.html#method_onDrag", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "onDrag"}, {"url": "WireIt.util.DD.html#method_onDrag", "access": "", "host": "WireIt.util.DD", "type": "method", "name": "onDrag"}, {"url": "WireIt.util.DDResize.html#method_onDrag", "access": "", "host": "WireIt.util.DDResize", "type": "method", "name": "onDrag"}, {"url": "WireIt.ModuleProxy.html#method_onDragDrop", "access": "", "host": "WireIt.ModuleProxy", "type": "method", "name": "onDragDrop"}, {"url": "WireIt.TerminalProxy.html#method_onDragDrop", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "onDragDrop"}, {"url": "WireIt.TerminalProxy.html#method_onDragEnter", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "onDragEnter"}, {"url": "WireIt.TerminalProxy.html#method_onDragOut", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "onDragOut"}, {"url": "WireIt.BaseEditor.html#method_onHelp", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "onHelp"}, {"url": "WireIt.LayerMap.html#method_onLayerScroll", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "onLayerScroll"}, {"url": "WireIt.WiringEditor.html#method_onLoadSuccess", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "onLoadSuccess"}, {"url": "WireIt.Container.html#method_onMouseDown", "access": "", "host": "WireIt.Container", "type": "method", "name": "onMouseDown"}, {"url": "WireIt.LayerMap.html#method_onMouseDown", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "onMouseDown"}, {"url": "WireIt.util.DDResize.html#method_onMouseDown", "access": "", "host": "WireIt.util.DDResize", "type": "method", "name": "onMouseDown"}, {"url": "WireIt.LayerMap.html#method_onMouseMove", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "onMouseMove"}, {"url": "WireIt.Wire.html#method_onMouseMove", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onMouseMove"}, {"url": "WireIt.LayerMap.html#method_onMouseUp", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "onMouseUp"}, {"url": "WireIt.WiringEditor.html#method_onNew", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "onNew"}, {"url": "WireIt.Container.html#method_onRemoveWire", "access": "", "host": "WireIt.Container", "type": "method", "name": "onRemoveWire"}, {"url": "WireIt.Layer.html#method_onRemoveWire", "access": "", "host": "WireIt.Layer", "type": "method", "name": "onRemoveWire"}, {"url": "inputEx.Field.html#method_onRemoveWire", "access": "", "host": "inputEx.Field", "type": "method", "name": "onRemoveWire"}, {"url": "WireIt.Container.html#method_onResize", "access": "", "host": "WireIt.Container", "type": "method", "name": "onResize"}, {"url": "WireIt.BaseEditor.html#method_onSave", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "onSave"}, {"url": "WireIt.Layer.html#method_onWireClick", "access": "", "host": "WireIt.Layer", "type": "method", "name": "onWireClick"}, {"url": "WireIt.Wire.html#method_onWireClick", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onWireClick"}, {"url": "WireIt.Wire.html#method_onWireIn", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onWireIn"}, {"url": "WireIt.Layer.html#method_onWireMouseMove", "access": "", "host": "WireIt.Layer", "type": "method", "name": "onWireMouseMove"}, {"url": "WireIt.Wire.html#method_onWireMove", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onWireMove"}, {"url": "WireIt.Wire.html#method_onWireOut", "access": "", "host": "WireIt.Wire", "type": "method", "name": "onWireOut"}, {"url": "WireIt.BaseEditor.html#property_options", "access": "", "host": "WireIt.BaseEditor", "type": "property", "name": "options"}, {"url": "WireIt.Container.html#property_options", "access": "", "host": "WireIt.Container", "type": "property", "name": "options"}, {"url": "WireIt.Layer.html#property_options", "access": "", "host": "WireIt.Layer", "type": "property", "name": "options"}, {"url": "WireIt.LayerMap.html#property_options", "access": "", "host": "WireIt.LayerMap", "type": "property", "name": "options"}, {"url": "WireIt.Terminal.html#property_options", "access": "", "host": "WireIt.Terminal", "type": "property", "name": "options"}, {"url": "WireIt.Wire.html#property_options", "access": "", "host": "WireIt.Wire", "type": "property", "name": "options"}, {"url": "WireIt.Terminal.html#property_parentEl", "access": "", "host": "WireIt.Terminal", "type": "property", "name": "parentEl"}, {"url": "WireIt.Wire.html#property_parentEl", "access": "", "host": "WireIt.Wire", "type": "property", "name": "parentEl"}, {"url": "WireIt.Wire.html#method_redraw", "access": "", "host": "WireIt.Wire", "type": "method", "name": "redraw"}, {"url": "WireIt.Container.html#method_redrawAllTerminals", "access": "", "host": "WireIt.Container", "type": "method", "name": "redrawAllTerminals"}, {"url": "WireIt.Terminal.html#method_redrawAllWires", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "redrawAllWires"}, {"url": "WireIt.Container.html#method_remove", "access": "", "host": "WireIt.Container", "type": "method", "name": "remove"}, {"url": "WireIt.Terminal.html#method_remove", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "remove"}, {"url": "WireIt.Wire.html#method_remove", "access": "", "host": "WireIt.Wire", "type": "method", "name": "remove"}, {"url": "WireIt.Layer.html#method_removeAllContainers", "access": "", "host": "WireIt.Layer", "type": "method", "name": "removeAllContainers"}, {"url": "WireIt.Container.html#method_removeAllTerminals", "access": "", "host": "WireIt.Container", "type": "method", "name": "removeAllTerminals"}, {"url": "WireIt.Terminal.html#method_removeAllWires", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "removeAllWires"}, {"url": "WireIt.Layer.html#method_removeContainer", "access": "", "host": "WireIt.Layer", "type": "method", "name": "removeContainer"}, {"url": "WireIt.Container.html#method_removeFocus", "access": "", "host": "WireIt.Container", "type": "method", "name": "removeFocus"}, {"url": "WireIt.Terminal.html#method_removeWire", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "removeWire"}, {"url": "WireIt.BaseEditor.html#method_render", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "render"}, {"url": "WireIt.Container.html#method_render", "access": "", "host": "WireIt.Container", "type": "method", "name": "render"}, {"url": "WireIt.ImageContainer.html#method_render", "access": "", "host": "WireIt.ImageContainer", "type": "method", "name": "render"}, {"url": "WireIt.Layer.html#method_render", "access": "", "host": "WireIt.Layer", "type": "method", "name": "render"}, {"url": "WireIt.Terminal.html#method_render", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "render"}, {"url": "WireIt.WiringEditor.html#method_render", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "render"}, {"url": "WireIt.FormContainer.html#method_render", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "render"}, {"url": "inputEx.Field.html#method_render", "access": "", "host": "inputEx.Field", "type": "method", "name": "render"}, {"url": "WireIt.BaseEditor.html#method_renderAlertPanel", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "renderAlertPanel"}, {"url": "WireIt.BaseEditor.html#method_renderButtons", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "renderButtons"}, {"url": "WireIt.FormContainer.html#method_renderForm", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "renderForm"}, {"url": "WireIt.BaseEditor.html#method_renderHelpPanel", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "renderHelpPanel"}, {"url": "WireIt.WiringEditor.html#method_renderLoadPanel", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "renderLoadPanel"}, {"url": "WireIt.WiringEditor.html#method_renderModulesAccordion", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "renderModulesAccordion"}, {"url": "WireIt.BaseEditor.html#method_renderPropertiesAccordion", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "renderPropertiesAccordion"}, {"url": "WireIt.BaseEditor.html#method_renderPropertiesForm", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "renderPropertiesForm"}, {"url": "WireIt.BaseEditor.html#method_renderSavedStatus", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "renderSavedStatus"}, {"url": "inputEx.Field.html#method_renderTerminal", "access": "", "host": "inputEx.Field", "type": "method", "name": "renderTerminal"}, {"url": "WireIt.BaseEditor.html#method_save", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "save"}, {"url": "WireIt.WiringEditor.html#method_save", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "save"}, {"url": "WireIt.WiringEditor.html#method_saveModuleFailure", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "saveModuleFailure"}, {"url": "WireIt.WiringEditor.html#method_saveModuleSuccess", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "saveModuleSuccess"}, {"url": "WireIt.WiringEditor.adapters.Ajax.html#method_saveWiring", "access": "", "host": "WireIt.WiringEditor.adapters.Ajax", "type": "method", "name": "saveWiring"}, {"url": "WireIt.Scissors.html#method_scissorClick", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "scissorClick"}, {"url": "WireIt.LayerMap.html#method_scrollLayer", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "scrollLayer"}, {"url": "WireIt.WiringEditor.adapters.Ajax.html#method__sendRequest", "access": "", "host": "WireIt.WiringEditor.adapters.Ajax", "type": "method", "name": "_sendRequest"}, {"url": "WireIt.FormContainer.html#method_setBackReferenceOnFieldOptionsRecursively", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "setBackReferenceOnFieldOptionsRecursively"}, {"url": "WireIt.Container.html#method_setBody", "access": "", "host": "WireIt.Container", "type": "method", "name": "setBody"}, {"url": "WireIt.CanvasElement.html#method_SetCanvasRegion", "access": "", "host": "WireIt.CanvasElement", "type": "method", "name": "SetCanvasRegion"}, {"url": "WireIt.Terminal.html#method_setDropInvitation", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "setDropInvitation"}, {"url": "WireIt.Container.html#method_setFocus", "access": "", "host": "WireIt.Container", "type": "method", "name": "setFocus"}, {"url": "WireIt.BaseEditor.html#method_setOptions", "access": "", "host": "WireIt.BaseEditor", "type": "method", "name": "setOptions"}, {"url": "WireIt.Container.html#method_setOptions", "access": "", "host": "WireIt.Container", "type": "method", "name": "setOptions"}, {"url": "WireIt.ImageContainer.html#method_setOptions", "access": "", "host": "WireIt.ImageContainer", "type": "method", "name": "setOptions"}, {"url": "WireIt.InOutContainer.html#method_setOptions", "access": "", "host": "WireIt.InOutContainer", "type": "method", "name": "setOptions"}, {"url": "WireIt.Layer.html#method_setOptions", "access": "", "host": "WireIt.Layer", "type": "method", "name": "setOptions"}, {"url": "WireIt.LayerMap.html#method_setOptions", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "setOptions"}, {"url": "WireIt.Terminal.html#method_setOptions", "access": "", "host": "WireIt.Terminal", "type": "method", "name": "setOptions"}, {"url": "WireIt.util.TerminalInput.html#method_setOptions", "access": "", "host": "WireIt.util.TerminalInput", "type": "method", "name": "setOptions"}, {"url": "WireIt.util.TerminalOutput.html#method_setOptions", "access": "", "host": "WireIt.util.TerminalOutput", "type": "method", "name": "setOptions"}, {"url": "WireIt.Wire.html#method_setOptions", "access": "", "host": "WireIt.Wire", "type": "method", "name": "setOptions"}, {"url": "WireIt.WiringEditor.html#method_setOptions", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "setOptions"}, {"url": "WireIt.FormContainer.html#method_setOptions", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "setOptions"}, {"url": "inputEx.Field.html#method_setOptions", "access": "", "host": "inputEx.Field", "type": "method", "name": "setOptions"}, {"url": "WireIt.Scissors.html#method_setPosition", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "setPosition"}, {"url": "WireIt.util.Anim.html#method_setTerminals", "access": "", "host": "WireIt.util.Anim", "type": "method", "name": "setTerminals"}, {"url": "WireIt.util.DD.html#method_setTerminals", "access": "", "host": "WireIt.util.DD", "type": "method", "name": "setTerminals"}, {"url": "WireIt.Container.html#method_setValue", "access": "", "host": "WireIt.Container", "type": "method", "name": "setValue"}, {"url": "WireIt.FormContainer.html#method_setValue", "access": "", "host": "WireIt.FormContainer", "type": "method", "name": "setValue"}, {"url": "WireIt.Layer.html#method_setWiring", "access": "", "host": "WireIt.Layer", "type": "method", "name": "setWiring"}, {"url": "WireIt.Scissors.html#method_show", "access": "", "host": "WireIt.Scissors", "type": "method", "name": "show"}, {"url": "WireIt.WireIt.html#method_sn", "access": "", "host": "WireIt.WireIt", "type": "method", "name": "sn"}, {"url": "WireIt.LayerMap.html#method_Spring", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "Spring"}, {"url": "WireIt.ModuleProxy.html#method_startDrag", "access": "", "host": "WireIt.ModuleProxy", "type": "method", "name": "startDrag"}, {"url": "WireIt.TerminalProxy.html#method_startDrag", "access": "", "host": "WireIt.TerminalProxy", "type": "method", "name": "startDrag"}, {"url": "WireIt.LayerMap.html#method_startDynamicLayout", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "startDynamicLayout"}, {"url": "WireIt.LayerMap.html#method_stopDynamicLayout", "access": "", "host": "WireIt.LayerMap", "type": "method", "name": "stopDynamicLayout"}, {"url": "WireIt.TerminalProxy.html#property_termConfig", "access": "", "host": "WireIt.TerminalProxy", "type": "property", "name": "termConfig"}, {"url": "WireIt.Scissors.html#property__terminal", "access": "", "host": "WireIt.Scissors", "type": "property", "name": "_terminal"}, {"url": "WireIt.TerminalProxy.html#property_terminal", "access": "", "host": "WireIt.TerminalProxy", "type": "property", "name": "terminal"}, {"url": "WireIt.Wire.html#property_terminal1", "access": "", "host": "WireIt.Wire", "type": "property", "name": "terminal1"}, {"url": "WireIt.Wire.html#property_terminal2", "access": "", "host": "WireIt.Wire", "type": "property", "name": "terminal2"}, {"url": "WireIt.Container.html#property_terminals", "access": "", "host": "WireIt.Container", "type": "property", "name": "terminals"}, {"url": "WireIt.WiringEditor.html#method_updateLoadPanelList", "access": "", "host": "WireIt.WiringEditor", "type": "method", "name": "updateLoadPanelList"}, {"url": "WireIt.WireIt.html#property_util", "access": "", "host": "WireIt.WireIt", "type": "property", "name": "util"}, {"url": "WireIt.Wire.html#method_wireDrawnAt", "access": "", "host": "WireIt.Wire", "type": "method", "name": "wireDrawnAt"}, {"url": "WireIt.util.Anim.html#property__WireItTerminals", "access": "", "host": "WireIt.util.Anim", "type": "property", "name": "_WireItTerminals"}, {"url": "WireIt.util.DD.html#property__WireItTerminals", "access": "", "host": "WireIt.util.DD", "type": "property", "name": "_WireItTerminals"}, {"url": "WireIt.Container.html#property_wires", "access": "", "host": "WireIt.Container", "type": "property", "name": "wires"}, {"url": "WireIt.Layer.html#property_wires", "access": "", "host": "WireIt.Layer", "type": "property", "name": "wires"}, {"url": "WireIt.Terminal.html#property_wires", "access": "", "host": "WireIt.Terminal", "type": "property", "name": "wires"}];
YAHOO.yuidoc.init();
</script>
</body>
</html>