libraries/EaselJS_docs/classes/Text.html (view raw)
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <meta charset="utf-8">
5 <link rel="stylesheet" href="../assets/css/yui-cssgrids-min.css">
6 <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
7 <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
8 <link rel="shortcut icon" type="image/x-icon" href="../assets/favicon.ico">
9 <script src="../assets/js/yui-source.js"></script>
10 <title>EaselJS v1.0.0 API Documentation : Text</title>
11</head>
12<body class="yui3-skin-sam">
13
14<div id="doc">
15 <div id="hd" class="yui3-g header">
16 <div class="yui3-u-3-4">
17
18 <h1><a href="http://www.createjs.com/easeljs"><img src="../assets/docs-icon-EaselJS.png" title="EaselJS"></a></h1>
19
20 </div>
21 <div class="version">
22 <em>API Documentation for: 1.0.0</em>
23 </div>
24 </div>
25 <div id="bd" class="yui3-g">
26
27 <div class="yui3-u-1-4">
28 <div id="docs-sidebar" class="sidebar apidocs">
29 <div id="api-list">
30 <h2 class="off-left">APIs</h2>
31 <div id="api-tabview" class="tabview">
32 <ul class="tabs">
33 <li><a href="#api-classes">Classes</a></li>
34 </ul>
35
36 <div id="api-tabview-filter">
37 <input type="search" id="api-filter" placeholder="Type to filter APIs">
38 </div>
39
40 <div id="api-tabview-panel">
41 <ul id="api-classes" class="apis classes">
42
43 <li><a href="../classes/AlphaMapFilter.html">AlphaMapFilter</a></li>
44
45 <li><a href="../classes/AlphaMaskFilter.html">AlphaMaskFilter</a></li>
46
47 <li><a href="../classes/Bitmap.html">Bitmap</a></li>
48
49 <li><a href="../classes/BitmapCache.html">BitmapCache</a></li>
50
51 <li><a href="../classes/BitmapText.html">BitmapText</a></li>
52
53 <li><a href="../classes/BlurFilter.html">BlurFilter</a></li>
54
55 <li><a href="../classes/ButtonHelper.html">ButtonHelper</a></li>
56
57 <li><a href="../classes/ColorFilter.html">ColorFilter</a></li>
58
59 <li><a href="../classes/ColorMatrix.html">ColorMatrix</a></li>
60
61 <li><a href="../classes/ColorMatrixFilter.html">ColorMatrixFilter</a></li>
62
63 <li><a href="../classes/Container.html">Container</a></li>
64
65 <li><a href="../classes/DisplayObject.html">DisplayObject</a></li>
66
67 <li><a href="../classes/DisplayProps.html">DisplayProps</a></li>
68
69 <li><a href="../classes/DOMElement.html">DOMElement</a></li>
70
71 <li><a href="../classes/EaselJS.html">EaselJS</a></li>
72
73 <li><a href="../classes/Event.html">Event</a></li>
74
75 <li><a href="../classes/EventDispatcher.html">EventDispatcher</a></li>
76
77 <li><a href="../classes/Filter.html">Filter</a></li>
78
79 <li><a href="../classes/Graphics.html">Graphics</a></li>
80
81 <li><a href="../classes/Graphics.Arc.html">Graphics.Arc</a></li>
82
83 <li><a href="../classes/Graphics.ArcTo.html">Graphics.ArcTo</a></li>
84
85 <li><a href="../classes/Graphics.BeginPath.html">Graphics.BeginPath</a></li>
86
87 <li><a href="../classes/Graphics.BezierCurveTo.html">Graphics.BezierCurveTo</a></li>
88
89 <li><a href="../classes/Graphics.Circle.html">Graphics.Circle</a></li>
90
91 <li><a href="../classes/Graphics.ClosePath.html">Graphics.ClosePath</a></li>
92
93 <li><a href="../classes/Graphics.Ellipse.html">Graphics.Ellipse</a></li>
94
95 <li><a href="../classes/Graphics.Fill.html">Graphics.Fill</a></li>
96
97 <li><a href="../classes/Graphics.LineTo.html">Graphics.LineTo</a></li>
98
99 <li><a href="../classes/Graphics.MoveTo.html">Graphics.MoveTo</a></li>
100
101 <li><a href="../classes/Graphics.PolyStar.html">Graphics.PolyStar</a></li>
102
103 <li><a href="../classes/Graphics.QuadraticCurveTo.html">Graphics.QuadraticCurveTo</a></li>
104
105 <li><a href="../classes/Graphics.Rect.html">Graphics.Rect</a></li>
106
107 <li><a href="../classes/Graphics.RoundRect.html">Graphics.RoundRect</a></li>
108
109 <li><a href="../classes/Graphics.Stroke.html">Graphics.Stroke</a></li>
110
111 <li><a href="../classes/Graphics.StrokeDash.html">Graphics.StrokeDash</a></li>
112
113 <li><a href="../classes/Graphics.StrokeStyle.html">Graphics.StrokeStyle</a></li>
114
115 <li><a href="../classes/Matrix2D.html">Matrix2D</a></li>
116
117 <li><a href="../classes/MouseEvent.html">MouseEvent</a></li>
118
119 <li><a href="../classes/MovieClip.html">MovieClip</a></li>
120
121 <li><a href="../classes/MovieClipPlugin.html">MovieClipPlugin</a></li>
122
123 <li><a href="../classes/Point.html">Point</a></li>
124
125 <li><a href="../classes/Rectangle.html">Rectangle</a></li>
126
127 <li><a href="../classes/Shadow.html">Shadow</a></li>
128
129 <li><a href="../classes/Shape.html">Shape</a></li>
130
131 <li><a href="../classes/Sprite.html">Sprite</a></li>
132
133 <li><a href="../classes/SpriteSheet.html">SpriteSheet</a></li>
134
135 <li><a href="../classes/SpriteSheetBuilder.html">SpriteSheetBuilder</a></li>
136
137 <li><a href="../classes/SpriteSheetUtils.html">SpriteSheetUtils</a></li>
138
139 <li><a href="../classes/Stage.html">Stage</a></li>
140
141 <li><a href="../classes/StageGL.html">StageGL</a></li>
142
143 <li><a href="../classes/Text.html">Text</a></li>
144
145 <li><a href="../classes/Ticker.html">Ticker</a></li>
146
147 <li><a href="../classes/Touch.html">Touch</a></li>
148
149 <li><a href="../classes/UID.html">UID</a></li>
150
151 <li><a href="../classes/Utility Methods.html">Utility Methods</a></li>
152
153 <li><a href="../classes/VideoBuffer.html">VideoBuffer</a></li>
154
155 <li><a href="../classes/WebGLInspector.html">WebGLInspector</a></li>
156
157 </ul>
158
159 <ul id="api-modules" class="apis modules">
160
161 <li><a href="../modules/CreateJS.html">CreateJS</a></li>
162
163 <li><a href="../modules/EaselJS.html">EaselJS</a></li>
164
165 </ul>
166 </div>
167 </div>
168</div>
169
170 </div>
171 </div>
172 <div class="yui3-u-3-4">
173 <div id="api-options">
174 Show:
175 <label for="api-show-inherited">
176 <input type="checkbox" id="api-show-inherited" checked>
177 Inherited
178 </label>
179
180 <label for="api-show-protected">
181 <input type="checkbox" id="api-show-protected">
182 Protected
183 </label>
184
185 <label for="api-show-private">
186 <input type="checkbox" id="api-show-private">
187 Private
188 </label>
189 <label for="api-show-deprecated">
190 <input type="checkbox" id="api-show-deprecated">
191 Deprecated
192 </label>
193
194 </div>
195 <div class="apidocs">
196 <div id="docs-main">
197 <div class="content">
198 <h1>Text Class</h1>
199<div class="box meta">
200
201
202
203 <div class="extends">
204 Extends <a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a>
205 </div>
206
207
208
209 <div class="foundat">
210 Defined in: <a href="../files/easeljs_display_Text.js.html#l41"><code>Text:41</code></a>
211 </div>
212
213
214
215
216 Module: <a href="../modules/EaselJS.html">EaselJS</a>
217
218
219
220
221</div>
222
223
224
225<div class="box intro">
226 <p>Display one or more lines of dynamic text (not user editable) in the display list. Line wrapping support (using the
227lineWidth) is very basic, wrapping on spaces and tabs only. Note that as an alternative to Text, you can position HTML
228text above or below the canvas relative to items in the display list using the <a href="../classes/DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a>
229method, or using <a href="../classes/DOMElement.html" class="crosslink">DOMElement</a>.</p>
230<p><b>Please note that Text does not support HTML text, and can only display one font style at a time.</b> To use
231multiple font styles, you will need to create multiple text instances, and position them manually.</p>
232<h4>Example</h4>
233
234<pre class="code prettyprint"><code> var text = new createjs.Text("Hello World", "20px Arial", "#ff7700");
235 text.x = 100;
236 text.textBaseline = "alphabetic";</code></pre>
237<p>CreateJS Text supports web fonts (the same rules as Canvas). The font must be loaded and supported by the browser
238before it can be displayed.</p>
239<p><strong>Note:</strong> Text can be expensive to generate, so cache instances where possible. Be aware that not all
240browsers will render Text exactly the same.</p>
241
242</div>
243
244
245 <div class="constructor">
246 <h2>Constructor</h2>
247 <div id="method_Text" class="method item">
248 <h3 class="name"><code>Text</code></h3>
249
250
251 <div class="args">
252 <span class="paren">(</span><ul class="args-list inline commas">
253
254 <li class="arg">
255
256 <code class="optional">[text]</code>
257
258 </li>
259
260 <li class="arg">
261
262 <code class="optional">[font]</code>
263
264 </li>
265
266 <li class="arg">
267
268 <code class="optional">[color]</code>
269
270 </li>
271
272 </ul><span class="paren">)</span>
273 </div>
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290 <div class="meta">
291
292
293
294 <p>
295
296 Defined in
297
298
299
300
301 <a href="../files/easeljs_display_Text.js.html#l41"><code>Text:41</code></a>
302
303 </p>
304
305
306
307
308
309 </div>
310
311 <div class="description">
312
313 </div>
314
315
316 <div class="params">
317 <h4>Parameters:</h4>
318
319 <ul class="params-list">
320
321 <li class="param">
322
323 <code class="param-name optional">[text]</code>
324 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
325 <span class="flag optional" title="This parameter is optional.">optional</span>
326
327
328
329
330 <div class="param-description">
331 <p>The text to display.</p>
332
333 </div>
334
335
336 </li>
337
338 <li class="param">
339
340 <code class="param-name optional">[font]</code>
341 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
342 <span class="flag optional" title="This parameter is optional.">optional</span>
343
344
345
346
347 <div class="param-description">
348 <p>The font style to use. Any valid value for the CSS font attribute is acceptable (ex. "bold
34936px Arial").</p>
350
351 </div>
352
353
354 </li>
355
356 <li class="param">
357
358 <code class="param-name optional">[color]</code>
359 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
360 <span class="flag optional" title="This parameter is optional.">optional</span>
361
362
363
364
365 <div class="param-description">
366 <p>The color to draw the text in. Any valid value for the CSS color attribute is acceptable (ex.
367"#F00", "red", or "#FF0000").</p>
368
369 </div>
370
371
372 </li>
373
374 </ul>
375 </div>
376
377
378
379
380
381</div>
382
383 </div>
384
385
386<div id="classdocs" class="tabview">
387 <ul class="api-class-tabs">
388 <li class="api-class-tab index"><a href="#index">Index</a></li>
389
390
391 <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
392
393
394 <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
395
396
397
398 <li class="api-class-tab events"><a href="#events">Events</a></li>
399
400 </ul>
401
402 <div>
403 <div id="index" class="api-class-tabpanel index">
404 <h2 class="off-left">Item Index</h2>
405
406
407 <div class="index-section methods">
408 <h3>Methods</h3>
409
410 <ul class="index-list methods extends">
411
412 <li class="index-item method protected inherited">
413 <a href="#method__applyShadow">_applyShadow</a>
414
415
416
417 </li>
418
419 <li class="index-item method protected inherited">
420 <a href="#method__cloneProps">_cloneProps</a>
421
422
423
424 </li>
425
426 <li class="index-item method protected inherited">
427 <a href="#method__dispatchEvent">_dispatchEvent</a>
428
429
430
431 </li>
432
433 <li class="index-item method protected">
434 <a href="#method__drawText">_drawText</a>
435
436
437
438 </li>
439
440 <li class="index-item method protected">
441 <a href="#method__drawTextLine">_drawTextLine</a>
442
443
444
445 </li>
446
447 <li class="index-item method protected inherited">
448 <a href="#method__getBounds">_getBounds</a>
449
450
451
452 </li>
453
454 <li class="index-item method protected">
455 <a href="#method__getMeasuredWidth">_getMeasuredWidth</a>
456
457
458
459 </li>
460
461 <li class="index-item method protected inherited">
462 <a href="#method__getStage">_getStage</a>
463
464
465
466 </li>
467
468 <li class="index-item method protected">
469 <a href="#method__getWorkingContext">_getWorkingContext</a>
470
471
472
473 </li>
474
475 <li class="index-item method protected inherited">
476 <a href="#method__isMouseOpaque">_isMouseOpaque</a>
477
478
479
480 </li>
481
482 <li class="index-item method protected inherited">
483 <a href="#method__testHit">_testHit</a>
484
485
486
487 </li>
488
489 <li class="index-item method protected inherited">
490 <a href="#method__tick">_tick</a>
491
492
493
494 </li>
495
496 <li class="index-item method protected inherited">
497 <a href="#method__transformBounds">_transformBounds</a>
498
499
500
501 </li>
502
503 <li class="index-item method inherited">
504 <a href="#method__updateState">_updateState</a>
505
506
507
508 </li>
509
510 <li class="index-item method inherited">
511 <a href="#method_addEventListener">addEventListener</a>
512
513
514
515 </li>
516
517 <li class="index-item method inherited">
518 <a href="#method_cache">cache</a>
519
520
521
522 </li>
523
524 <li class="index-item method inherited">
525 <a href="#method_clone">clone</a>
526
527
528
529 </li>
530
531 <li class="index-item method inherited">
532 <a href="#method_dispatchEvent">dispatchEvent</a>
533
534
535
536 </li>
537
538 <li class="index-item method inherited">
539 <a href="#method_draw">draw</a>
540
541
542
543 </li>
544
545 <li class="index-item method inherited">
546 <a href="#method_getBounds">getBounds</a>
547
548
549
550 </li>
551
552 <li class="index-item method inherited">
553 <a href="#method_getCacheDataURL">getCacheDataURL</a>
554
555
556
557 </li>
558
559 <li class="index-item method inherited">
560 <a href="#method_getConcatenatedDisplayProps">getConcatenatedDisplayProps</a>
561
562
563
564 </li>
565
566 <li class="index-item method inherited">
567 <a href="#method_getConcatenatedMatrix">getConcatenatedMatrix</a>
568
569
570
571 </li>
572
573 <li class="index-item method inherited">
574 <a href="#method_getMatrix">getMatrix</a>
575
576
577
578 </li>
579
580 <li class="index-item method">
581 <a href="#method_getMeasuredHeight">getMeasuredHeight</a>
582
583
584
585 </li>
586
587 <li class="index-item method">
588 <a href="#method_getMeasuredLineHeight">getMeasuredLineHeight</a>
589
590
591
592 </li>
593
594 <li class="index-item method">
595 <a href="#method_getMeasuredWidth">getMeasuredWidth</a>
596
597
598
599 </li>
600
601 <li class="index-item method">
602 <a href="#method_getMetrics">getMetrics</a>
603
604
605
606 </li>
607
608 <li class="index-item method inherited">
609 <a href="#method_getTransformedBounds">getTransformedBounds</a>
610
611
612
613 </li>
614
615 <li class="index-item method inherited">
616 <a href="#method_globalToLocal">globalToLocal</a>
617
618
619
620 </li>
621
622 <li class="index-item method inherited">
623 <a href="#method_hasEventListener">hasEventListener</a>
624
625
626
627 </li>
628
629 <li class="index-item method inherited">
630 <a href="#method_hitTest">hitTest</a>
631
632
633
634 </li>
635
636 <li class="index-item method inherited">
637 <a href="#method_isVisible">isVisible</a>
638
639
640
641 </li>
642
643 <li class="index-item method inherited">
644 <a href="#method_localToGlobal">localToGlobal</a>
645
646
647
648 </li>
649
650 <li class="index-item method inherited">
651 <a href="#method_localToLocal">localToLocal</a>
652
653
654
655 </li>
656
657 <li class="index-item method inherited">
658 <a href="#method_off">off</a>
659
660
661
662 </li>
663
664 <li class="index-item method inherited">
665 <a href="#method_on">on</a>
666
667
668
669 </li>
670
671 <li class="index-item method inherited">
672 <a href="#method_removeAllEventListeners">removeAllEventListeners</a>
673
674
675
676 </li>
677
678 <li class="index-item method inherited">
679 <a href="#method_removeEventListener">removeEventListener</a>
680
681
682
683 </li>
684
685 <li class="index-item method inherited">
686 <a href="#method_set">set</a>
687
688
689
690 </li>
691
692 <li class="index-item method inherited">
693 <a href="#method_setBounds">setBounds</a>
694
695
696
697 </li>
698
699 <li class="index-item method inherited">
700 <a href="#method_setTransform">setTransform</a>
701
702
703
704 </li>
705
706 <li class="index-item method inherited">
707 <a href="#method_toString">toString</a>
708
709
710
711 </li>
712
713 <li class="index-item method inherited">
714 <a href="#method_uncache">uncache</a>
715
716
717
718 </li>
719
720 <li class="index-item method inherited">
721 <a href="#method_updateCache">updateCache</a>
722
723
724
725 </li>
726
727 <li class="index-item method inherited">
728 <a href="#method_updateContext">updateContext</a>
729
730
731
732 </li>
733
734 <li class="index-item method inherited">
735 <a href="#method_willTrigger">willTrigger</a>
736
737
738
739 </li>
740
741 </ul>
742 </div>
743
744
745
746 <div class="index-section properties">
747 <h3>Properties</h3>
748
749 <ul class="index-list properties extends">
750
751 <li class="index-item property protected inherited">
752 <a href="#property__bounds">_bounds</a>
753
754
755
756 </li>
757
758 <li class="index-item property protected deprecated inherited">
759 <a href="#property__cacheDataURL">_cacheDataURL</a>
760
761
762
763 <span class="flag deprecated">deprecated</span>
764
765 </li>
766
767 <li class="index-item property protected deprecated inherited">
768 <a href="#property__cacheDataURLID">_cacheDataURLID</a>
769
770
771
772 <span class="flag deprecated">deprecated</span>
773
774 </li>
775
776 <li class="index-item property protected deprecated inherited">
777 <a href="#property__cacheScale">_cacheScale</a>
778
779
780
781 <span class="flag deprecated">deprecated</span>
782
783 </li>
784
785 <li class="index-item property protected inherited">
786 <a href="#property__captureListeners">_captureListeners</a>
787
788
789
790 </li>
791
792 <li class="index-item property protected inherited">
793 <a href="#property__listeners">_listeners</a>
794
795
796
797 </li>
798
799 <li class="index-item property protected inherited">
800 <a href="#property__props">_props</a>
801
802
803
804 </li>
805
806 <li class="index-item property protected inherited">
807 <a href="#property__rectangle">_rectangle</a>
808
809
810
811 </li>
812
813 <li class="index-item property protected inherited">
814 <a href="#property__webGLRenderStyle">_webGLRenderStyle</a>
815
816
817
818 </li>
819
820 <li class="index-item property private">
821 <a href="#property__workingContext">_workingContext</a>
822
823
824
825 </li>
826
827 <li class="index-item property inherited">
828 <a href="#property_alpha">alpha</a>
829
830
831
832 </li>
833
834 <li class="index-item property inherited">
835 <a href="#property_bitmapCache">bitmapCache</a>
836
837
838
839 </li>
840
841 <li class="index-item property inherited">
842 <a href="#property_cacheCanvas">cacheCanvas</a>
843
844
845
846 </li>
847
848 <li class="index-item property deprecated inherited">
849 <a href="#property_cacheID">cacheID</a>
850
851
852
853 <span class="flag deprecated">deprecated</span>
854
855 </li>
856
857 <li class="index-item property">
858 <a href="#property_color">color</a>
859
860
861
862 </li>
863
864 <li class="index-item property inherited">
865 <a href="#property_compositeOperation">compositeOperation</a>
866
867
868
869 </li>
870
871 <li class="index-item property inherited">
872 <a href="#property_cursor">cursor</a>
873
874
875
876 </li>
877
878 <li class="index-item property inherited">
879 <a href="#property_filters">filters</a>
880
881
882
883 </li>
884
885 <li class="index-item property">
886 <a href="#property_font">font</a>
887
888
889
890 </li>
891
892 <li class="index-item property protected">
893 <a href="#property_H_OFFSETS">H_OFFSETS</a>
894
895
896 <span class="flag static">static</span>
897
898
899 </li>
900
901 <li class="index-item property protected">
902 <a href="#property_H_OFFSETS">H_OFFSETS</a>
903
904
905 <span class="flag static">static</span>
906
907
908 </li>
909
910 <li class="index-item property inherited">
911 <a href="#property_hitArea">hitArea</a>
912
913
914
915 </li>
916
917 <li class="index-item property inherited">
918 <a href="#property_id">id</a>
919
920
921
922 </li>
923
924 <li class="index-item property">
925 <a href="#property_lineHeight">lineHeight</a>
926
927
928
929 </li>
930
931 <li class="index-item property">
932 <a href="#property_lineWidth">lineWidth</a>
933
934
935
936 </li>
937
938 <li class="index-item property inherited">
939 <a href="#property_mask">mask</a>
940
941
942
943 </li>
944
945 <li class="index-item property">
946 <a href="#property_maxWidth">maxWidth</a>
947
948
949
950 </li>
951
952 <li class="index-item property inherited">
953 <a href="#property_mouseEnabled">mouseEnabled</a>
954
955
956
957 </li>
958
959 <li class="index-item property inherited">
960 <a href="#property_name">name</a>
961
962
963
964 </li>
965
966 <li class="index-item property">
967 <a href="#property_outline">outline</a>
968
969
970
971 </li>
972
973 <li class="index-item property inherited">
974 <a href="#property_parent">parent</a>
975
976
977
978 </li>
979
980 <li class="index-item property inherited">
981 <a href="#property_regX">regX</a>
982
983
984
985 </li>
986
987 <li class="index-item property inherited">
988 <a href="#property_regY">regY</a>
989
990
991
992 </li>
993
994 <li class="index-item property inherited">
995 <a href="#property_rotation">rotation</a>
996
997
998
999 </li>
1000
1001 <li class="index-item property inherited inherited">
1002 <a href="#property_scaleX">scaleX</a>
1003
1004
1005
1006 </li>
1007
1008 <li class="index-item property inherited">
1009 <a href="#property_scaleY">scaleY</a>
1010
1011
1012
1013 </li>
1014
1015 <li class="index-item property inherited">
1016 <a href="#property_shadow">shadow</a>
1017
1018
1019
1020 </li>
1021
1022 <li class="index-item property inherited">
1023 <a href="#property_skewX">skewX</a>
1024
1025
1026
1027 </li>
1028
1029 <li class="index-item property inherited">
1030 <a href="#property_skewY">skewY</a>
1031
1032
1033
1034 </li>
1035
1036 <li class="index-item property inherited">
1037 <a href="#property_snapToPixel">snapToPixel</a>
1038
1039
1040
1041 </li>
1042
1043 <li class="index-item property inherited">
1044 <a href="#property_stage">stage</a>
1045
1046
1047
1048 </li>
1049
1050 <li class="index-item property">
1051 <a href="#property_text">text</a>
1052
1053
1054
1055 </li>
1056
1057 <li class="index-item property">
1058 <a href="#property_textAlign">textAlign</a>
1059
1060
1061
1062 </li>
1063
1064 <li class="index-item property">
1065 <a href="#property_textBaseline">textBaseline</a>
1066
1067
1068
1069 </li>
1070
1071 <li class="index-item property inherited">
1072 <a href="#property_tickEnabled">tickEnabled</a>
1073
1074
1075
1076 </li>
1077
1078 <li class="index-item property inherited">
1079 <a href="#property_transformMatrix">transformMatrix</a>
1080
1081
1082
1083 </li>
1084
1085 <li class="index-item property inherited">
1086 <a href="#property_visible">visible</a>
1087
1088
1089
1090 </li>
1091
1092 <li class="index-item property inherited">
1093 <a href="#property_x">x</a>
1094
1095
1096
1097 </li>
1098
1099 <li class="index-item property inherited">
1100 <a href="#property_y">y</a>
1101
1102
1103
1104 </li>
1105
1106 </ul>
1107 </div>
1108
1109
1110
1111
1112
1113 <div class="index-section events">
1114 <h3>Events</h3>
1115
1116 <ul class="index-list events extends">
1117
1118 <li class="index-item event inherited">
1119 <a href="#event_added">added</a>
1120
1121
1122
1123 </li>
1124
1125 <li class="index-item event inherited">
1126 <a href="#event_click">click</a>
1127
1128
1129
1130 </li>
1131
1132 <li class="index-item event inherited">
1133 <a href="#event_dblclick">dblclick</a>
1134
1135
1136
1137 </li>
1138
1139 <li class="index-item event inherited">
1140 <a href="#event_mousedown">mousedown</a>
1141
1142
1143
1144 </li>
1145
1146 <li class="index-item event inherited">
1147 <a href="#event_mouseout">mouseout</a>
1148
1149
1150
1151 </li>
1152
1153 <li class="index-item event inherited">
1154 <a href="#event_mouseover">mouseover</a>
1155
1156
1157
1158 </li>
1159
1160 <li class="index-item event inherited">
1161 <a href="#event_pressmove">pressmove</a>
1162
1163
1164
1165 </li>
1166
1167 <li class="index-item event inherited">
1168 <a href="#event_pressup">pressup</a>
1169
1170
1171
1172 </li>
1173
1174 <li class="index-item event inherited">
1175 <a href="#event_removed">removed</a>
1176
1177
1178
1179 </li>
1180
1181 <li class="index-item event inherited">
1182 <a href="#event_rollout">rollout</a>
1183
1184
1185
1186 </li>
1187
1188 <li class="index-item event inherited">
1189 <a href="#event_rollover">rollover</a>
1190
1191
1192
1193 </li>
1194
1195 <li class="index-item event inherited">
1196 <a href="#event_tick">tick</a>
1197
1198
1199
1200 </li>
1201
1202 </ul>
1203 </div>
1204
1205 </div>
1206
1207
1208 <div id="methods" class="api-class-tabpanel">
1209 <h2 class="off-left">Methods</h2>
1210
1211
1212 <div id="method__applyShadow" class="method item protected inherited">
1213 <h3 class="name"><code>_applyShadow</code></h3>
1214
1215
1216 <div class="args">
1217 <span class="paren">(</span><ul class="args-list inline commas">
1218
1219 <li class="arg">
1220
1221 <code>ctx</code>
1222
1223 </li>
1224
1225 <li class="arg">
1226
1227 <code>shadow</code>
1228
1229 </li>
1230
1231 </ul><span class="paren">)</span>
1232 </div>
1233
1234
1235
1236
1237
1238
1239
1240 <span class="flag protected">protected</span>
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251 <div class="meta">
1252
1253
1254 <p>Inherited from
1255 <a href="../classes/DisplayObject.html#method__applyShadow">DisplayObject</a>:
1256
1257
1258
1259 <a href="../files/easeljs_display_DisplayObject.js.html#l1261"><code>_applyShadow:1261</code></a>
1260
1261 </p>
1262
1263
1264
1265
1266
1267 </div>
1268
1269 <div class="description">
1270
1271 </div>
1272
1273
1274 <div class="params">
1275 <h4>Parameters:</h4>
1276
1277 <ul class="params-list">
1278
1279 <li class="param">
1280
1281 <code class="param-name">ctx</code>
1282 <span class="type">CanvasRenderingContext2D</span>
1283
1284
1285
1286
1287 <div class="param-description">
1288
1289 </div>
1290
1291
1292 </li>
1293
1294 <li class="param">
1295
1296 <code class="param-name">shadow</code>
1297 <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
1298
1299
1300
1301
1302 <div class="param-description">
1303
1304 </div>
1305
1306
1307 </li>
1308
1309 </ul>
1310 </div>
1311
1312
1313
1314
1315
1316</div>
1317
1318
1319 <div id="method__cloneProps" class="method item protected">
1320 <h3 class="name"><code>_cloneProps</code></h3>
1321
1322
1323 <div class="args">
1324 <span class="paren">(</span><ul class="args-list inline commas">
1325
1326 <li class="arg">
1327
1328 <code>o</code>
1329
1330 </li>
1331
1332 </ul><span class="paren">)</span>
1333 </div>
1334
1335
1336
1337 <span class="returns-inline">
1338 <span class="type"><a href="../classes/Text.html" class="crosslink">Text</a></span>
1339 </span>
1340
1341
1342
1343
1344
1345 <span class="flag protected">protected</span>
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356 <div class="meta">
1357
1358 <p>Inherited from
1359 <a href="../classes/DisplayObject.html#method__cloneProps">
1360 DisplayObject
1361 </a>
1362
1363 but overwritten in
1364
1365
1366
1367 <a href="../files/easeljs_display_Text.js.html#l300"><code>_cloneProps:300</code></a>
1368
1369 </p>
1370
1371
1372
1373
1374
1375 </div>
1376
1377 <div class="description">
1378
1379 </div>
1380
1381
1382 <div class="params">
1383 <h4>Parameters:</h4>
1384
1385 <ul class="params-list">
1386
1387 <li class="param">
1388
1389 <code class="param-name">o</code>
1390 <span class="type"><a href="../classes/Text.html" class="crosslink">Text</a></span>
1391
1392
1393
1394
1395 <div class="param-description">
1396
1397 </div>
1398
1399
1400 </li>
1401
1402 </ul>
1403 </div>
1404
1405
1406
1407 <div class="returns">
1408 <h4>Returns:</h4>
1409
1410 <div class="returns-description">
1411
1412
1413 <span class="type"><a href="../classes/Text.html" class="crosslink">Text</a></span>:
1414
1415 <p>o</p>
1416
1417
1418 </div>
1419 </div>
1420
1421
1422
1423</div>
1424
1425
1426 <div id="method__dispatchEvent" class="method item protected inherited">
1427 <h3 class="name"><code>_dispatchEvent</code></h3>
1428
1429
1430 <div class="args">
1431 <span class="paren">(</span><ul class="args-list inline commas">
1432
1433 <li class="arg">
1434
1435 <code>eventObj</code>
1436
1437 </li>
1438
1439 <li class="arg">
1440
1441 <code>eventPhase</code>
1442
1443 </li>
1444
1445 </ul><span class="paren">)</span>
1446 </div>
1447
1448
1449
1450
1451
1452
1453
1454 <span class="flag protected">protected</span>
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465 <div class="meta">
1466
1467
1468 <p>Inherited from
1469 <a href="../classes/EventDispatcher.html#method__dispatchEvent">EventDispatcher</a>:
1470
1471
1472
1473 <a href="../files/createjs_events_EventDispatcher.js.html#l380"><code>_dispatchEvent:380</code></a>
1474
1475 </p>
1476
1477
1478
1479
1480
1481 </div>
1482
1483 <div class="description">
1484
1485 </div>
1486
1487
1488 <div class="params">
1489 <h4>Parameters:</h4>
1490
1491 <ul class="params-list">
1492
1493 <li class="param">
1494
1495 <code class="param-name">eventObj</code>
1496 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="../classes/Event.html" class="crosslink">Event</a></span>
1497
1498
1499
1500
1501 <div class="param-description">
1502
1503 </div>
1504
1505
1506 </li>
1507
1508 <li class="param">
1509
1510 <code class="param-name">eventPhase</code>
1511 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
1512
1513
1514
1515
1516 <div class="param-description">
1517
1518 </div>
1519
1520
1521 </li>
1522
1523 </ul>
1524 </div>
1525
1526
1527
1528
1529
1530</div>
1531
1532
1533 <div id="method__drawText" class="method item protected">
1534 <h3 class="name"><code>_drawText</code></h3>
1535
1536
1537 <div class="args">
1538 <span class="paren">(</span><ul class="args-list inline commas">
1539
1540 <li class="arg">
1541
1542 <code>ctx</code>
1543
1544 </li>
1545
1546 <li class="arg">
1547
1548 <code>o</code>
1549
1550 </li>
1551
1552 <li class="arg">
1553
1554 <code>lines</code>
1555
1556 </li>
1557
1558 </ul><span class="paren">)</span>
1559 </div>
1560
1561
1562
1563 <span class="returns-inline">
1564 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
1565 </span>
1566
1567
1568
1569
1570
1571 <span class="flag protected">protected</span>
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582 <div class="meta">
1583
1584
1585
1586 <p>
1587
1588 Defined in
1589
1590
1591
1592
1593 <a href="../files/easeljs_display_Text.js.html#l332"><code>_drawText:332</code></a>
1594
1595 </p>
1596
1597
1598
1599
1600
1601 </div>
1602
1603 <div class="description">
1604 <p>Draws multiline text.</p>
1605
1606 </div>
1607
1608
1609 <div class="params">
1610 <h4>Parameters:</h4>
1611
1612 <ul class="params-list">
1613
1614 <li class="param">
1615
1616 <code class="param-name">ctx</code>
1617 <span class="type">CanvasRenderingContext2D</span>
1618
1619
1620
1621
1622 <div class="param-description">
1623
1624 </div>
1625
1626
1627 </li>
1628
1629 <li class="param">
1630
1631 <code class="param-name">o</code>
1632 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
1633
1634
1635
1636
1637 <div class="param-description">
1638
1639 </div>
1640
1641
1642 </li>
1643
1644 <li class="param">
1645
1646 <code class="param-name">lines</code>
1647 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
1648
1649
1650
1651
1652 <div class="param-description">
1653
1654 </div>
1655
1656
1657 </li>
1658
1659 </ul>
1660 </div>
1661
1662
1663
1664 <div class="returns">
1665 <h4>Returns:</h4>
1666
1667 <div class="returns-description">
1668
1669
1670 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
1671
1672
1673 </div>
1674 </div>
1675
1676
1677
1678</div>
1679
1680
1681 <div id="method__drawTextLine" class="method item protected">
1682 <h3 class="name"><code>_drawTextLine</code></h3>
1683
1684
1685 <div class="args">
1686 <span class="paren">(</span><ul class="args-list inline commas">
1687
1688 <li class="arg">
1689
1690 <code>ctx</code>
1691
1692 </li>
1693
1694 <li class="arg">
1695
1696 <code>text</code>
1697
1698 </li>
1699
1700 <li class="arg">
1701
1702 <code>y</code>
1703
1704 </li>
1705
1706 </ul><span class="paren">)</span>
1707 </div>
1708
1709
1710
1711
1712
1713
1714
1715 <span class="flag protected">protected</span>
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726 <div class="meta">
1727
1728
1729
1730 <p>
1731
1732 Defined in
1733
1734
1735
1736
1737 <a href="../files/easeljs_display_Text.js.html#l394"><code>_drawTextLine:394</code></a>
1738
1739 </p>
1740
1741
1742
1743
1744
1745 </div>
1746
1747 <div class="description">
1748
1749 </div>
1750
1751
1752 <div class="params">
1753 <h4>Parameters:</h4>
1754
1755 <ul class="params-list">
1756
1757 <li class="param">
1758
1759 <code class="param-name">ctx</code>
1760 <span class="type">CanvasRenderingContext2D</span>
1761
1762
1763
1764
1765 <div class="param-description">
1766
1767 </div>
1768
1769
1770 </li>
1771
1772 <li class="param">
1773
1774 <code class="param-name">text</code>
1775 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
1776
1777
1778
1779
1780 <div class="param-description">
1781
1782 </div>
1783
1784
1785 </li>
1786
1787 <li class="param">
1788
1789 <code class="param-name">y</code>
1790 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1791
1792
1793
1794
1795 <div class="param-description">
1796
1797 </div>
1798
1799
1800 </li>
1801
1802 </ul>
1803 </div>
1804
1805
1806
1807
1808
1809</div>
1810
1811
1812 <div id="method__getBounds" class="method item protected inherited">
1813 <h3 class="name"><code>_getBounds</code></h3>
1814
1815
1816 <div class="args">
1817 <span class="paren">(</span><ul class="args-list inline commas">
1818
1819 <li class="arg">
1820
1821 <code>matrix</code>
1822
1823 </li>
1824
1825 <li class="arg">
1826
1827 <code>ignoreTransform</code>
1828
1829 </li>
1830
1831 </ul><span class="paren">)</span>
1832 </div>
1833
1834
1835
1836 <span class="returns-inline">
1837 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
1838 </span>
1839
1840
1841
1842
1843
1844 <span class="flag protected">protected</span>
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855 <div class="meta">
1856
1857
1858 <p>Inherited from
1859 <a href="../classes/DisplayObject.html#method__getBounds">DisplayObject</a>:
1860
1861
1862
1863 <a href="../files/easeljs_display_DisplayObject.js.html#l1308"><code>_getBounds:1308</code></a>
1864
1865 </p>
1866
1867
1868
1869
1870
1871 </div>
1872
1873 <div class="description">
1874
1875 </div>
1876
1877
1878 <div class="params">
1879 <h4>Parameters:</h4>
1880
1881 <ul class="params-list">
1882
1883 <li class="param">
1884
1885 <code class="param-name">matrix</code>
1886 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1887
1888
1889
1890
1891 <div class="param-description">
1892
1893 </div>
1894
1895
1896 </li>
1897
1898 <li class="param">
1899
1900 <code class="param-name">ignoreTransform</code>
1901 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1902
1903
1904
1905
1906 <div class="param-description">
1907 <p>If true, does not apply this object's transform.</p>
1908
1909 </div>
1910
1911
1912 </li>
1913
1914 </ul>
1915 </div>
1916
1917
1918
1919 <div class="returns">
1920 <h4>Returns:</h4>
1921
1922 <div class="returns-description">
1923
1924
1925 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
1926
1927
1928 </div>
1929 </div>
1930
1931
1932
1933</div>
1934
1935
1936 <div id="method__getMeasuredWidth" class="method item protected">
1937 <h3 class="name"><code>_getMeasuredWidth</code></h3>
1938
1939
1940 <div class="args">
1941 <span class="paren">(</span><ul class="args-list inline commas">
1942
1943 <li class="arg">
1944
1945 <code>text</code>
1946
1947 </li>
1948
1949 </ul><span class="paren">)</span>
1950 </div>
1951
1952
1953
1954
1955
1956
1957
1958 <span class="flag protected">protected</span>
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969 <div class="meta">
1970
1971
1972
1973 <p>
1974
1975 Defined in
1976
1977
1978
1979
1980 <a href="../files/easeljs_display_Text.js.html#l408"><code>_getMeasuredWidth:408</code></a>
1981
1982 </p>
1983
1984
1985
1986
1987
1988 </div>
1989
1990 <div class="description">
1991
1992 </div>
1993
1994
1995 <div class="params">
1996 <h4>Parameters:</h4>
1997
1998 <ul class="params-list">
1999
2000 <li class="param">
2001
2002 <code class="param-name">text</code>
2003 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
2004
2005
2006
2007
2008 <div class="param-description">
2009
2010 </div>
2011
2012
2013 </li>
2014
2015 </ul>
2016 </div>
2017
2018
2019
2020
2021
2022</div>
2023
2024
2025 <div id="method__getStage" class="method item protected inherited">
2026 <h3 class="name"><code>_getStage</code></h3>
2027
2028
2029 <span class="paren">()</span>
2030
2031
2032
2033 <span class="returns-inline">
2034 <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
2035 </span>
2036
2037
2038
2039
2040
2041 <span class="flag protected">protected</span>
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052 <div class="meta">
2053
2054
2055 <p>Inherited from
2056 <a href="../classes/DisplayObject.html#method__getStage">DisplayObject</a>:
2057
2058
2059
2060 <a href="../files/easeljs_display_DisplayObject.js.html#l672"><code>_getStage:672</code></a>
2061
2062 </p>
2063
2064
2065
2066
2067
2068 </div>
2069
2070 <div class="description">
2071 <p>Use the <a href="../classes/DisplayObject.html#property_stage" class="crosslink">stage</a> property instead.</p>
2072
2073 </div>
2074
2075
2076
2077
2078 <div class="returns">
2079 <h4>Returns:</h4>
2080
2081 <div class="returns-description">
2082
2083
2084 <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>:
2085
2086
2087 </div>
2088 </div>
2089
2090
2091
2092</div>
2093
2094
2095 <div id="method__getWorkingContext" class="method item protected">
2096 <h3 class="name"><code>_getWorkingContext</code></h3>
2097
2098
2099 <div class="args">
2100 <span class="paren">(</span><ul class="args-list inline commas">
2101
2102 <li class="arg">
2103
2104 <code>ctx</code>
2105
2106 </li>
2107
2108 </ul><span class="paren">)</span>
2109 </div>
2110
2111
2112
2113 <span class="returns-inline">
2114 <span class="type">CanvasRenderingContext2D</span>
2115 </span>
2116
2117
2118
2119
2120
2121 <span class="flag protected">protected</span>
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132 <div class="meta">
2133
2134
2135
2136 <p>
2137
2138 Defined in
2139
2140
2141
2142
2143 <a href="../files/easeljs_display_Text.js.html#l317"><code>_getWorkingContext:317</code></a>
2144
2145 </p>
2146
2147
2148
2149
2150
2151 </div>
2152
2153 <div class="description">
2154
2155 </div>
2156
2157
2158 <div class="params">
2159 <h4>Parameters:</h4>
2160
2161 <ul class="params-list">
2162
2163 <li class="param">
2164
2165 <code class="param-name">ctx</code>
2166 <span class="type">CanvasRenderingContext2D</span>
2167
2168
2169
2170
2171 <div class="param-description">
2172
2173 </div>
2174
2175
2176 </li>
2177
2178 </ul>
2179 </div>
2180
2181
2182
2183 <div class="returns">
2184 <h4>Returns:</h4>
2185
2186 <div class="returns-description">
2187
2188
2189 <span class="type">CanvasRenderingContext2D</span>:
2190
2191
2192 </div>
2193 </div>
2194
2195
2196
2197</div>
2198
2199
2200 <div id="method__isMouseOpaque" class="method item protected inherited">
2201 <h3 class="name"><code>_isMouseOpaque</code></h3>
2202
2203
2204 <span class="paren">()</span>
2205
2206
2207
2208 <span class="returns-inline">
2209 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2210 </span>
2211
2212
2213
2214
2215
2216 <span class="flag protected">protected</span>
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227 <div class="meta">
2228
2229
2230 <p>Inherited from
2231 <a href="../classes/DisplayObject.html#method__isMouseOpaque">DisplayObject</a>:
2232
2233
2234
2235 <a href="../files/easeljs_display_DisplayObject.js.html#l1352"><code>_isMouseOpaque:1352</code></a>
2236
2237 </p>
2238
2239
2240
2241
2242
2243 </div>
2244
2245 <div class="description">
2246 <p>Indicates whether the display object has any mouse event listeners or a cursor.</p>
2247
2248 </div>
2249
2250
2251
2252
2253 <div class="returns">
2254 <h4>Returns:</h4>
2255
2256 <div class="returns-description">
2257
2258
2259 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
2260
2261
2262 </div>
2263 </div>
2264
2265
2266
2267</div>
2268
2269
2270 <div id="method__testHit" class="method item protected inherited">
2271 <h3 class="name"><code>_testHit</code></h3>
2272
2273
2274 <div class="args">
2275 <span class="paren">(</span><ul class="args-list inline commas">
2276
2277 <li class="arg">
2278
2279 <code>ctx</code>
2280
2281 </li>
2282
2283 </ul><span class="paren">)</span>
2284 </div>
2285
2286
2287
2288 <span class="returns-inline">
2289 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2290 </span>
2291
2292
2293
2294
2295
2296 <span class="flag protected">protected</span>
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307 <div class="meta">
2308
2309
2310 <p>Inherited from
2311 <a href="../classes/DisplayObject.html#method__testHit">DisplayObject</a>:
2312
2313
2314
2315 <a href="../files/easeljs_display_DisplayObject.js.html#l1291"><code>_testHit:1291</code></a>
2316
2317 </p>
2318
2319
2320
2321
2322
2323 </div>
2324
2325 <div class="description">
2326
2327 </div>
2328
2329
2330 <div class="params">
2331 <h4>Parameters:</h4>
2332
2333 <ul class="params-list">
2334
2335 <li class="param">
2336
2337 <code class="param-name">ctx</code>
2338 <span class="type">CanvasRenderingContext2D</span>
2339
2340
2341
2342
2343 <div class="param-description">
2344
2345 </div>
2346
2347
2348 </li>
2349
2350 </ul>
2351 </div>
2352
2353
2354
2355 <div class="returns">
2356 <h4>Returns:</h4>
2357
2358 <div class="returns-description">
2359
2360
2361 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
2362
2363
2364 </div>
2365 </div>
2366
2367
2368
2369</div>
2370
2371
2372 <div id="method__tick" class="method item protected inherited">
2373 <h3 class="name"><code>_tick</code></h3>
2374
2375
2376 <div class="args">
2377 <span class="paren">(</span><ul class="args-list inline commas">
2378
2379 <li class="arg">
2380
2381 <code>evtObj</code>
2382
2383 </li>
2384
2385 </ul><span class="paren">)</span>
2386 </div>
2387
2388
2389
2390
2391
2392
2393
2394 <span class="flag protected">protected</span>
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405 <div class="meta">
2406
2407
2408 <p>Inherited from
2409 <a href="../classes/DisplayObject.html#method__tick">DisplayObject</a>:
2410
2411
2412
2413 <a href="../files/easeljs_display_DisplayObject.js.html#l1275"><code>_tick:1275</code></a>
2414
2415 </p>
2416
2417
2418
2419
2420
2421 </div>
2422
2423 <div class="description">
2424
2425 </div>
2426
2427
2428 <div class="params">
2429 <h4>Parameters:</h4>
2430
2431 <ul class="params-list">
2432
2433 <li class="param">
2434
2435 <code class="param-name">evtObj</code>
2436 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
2437
2438
2439
2440
2441 <div class="param-description">
2442 <p>An event object that will be dispatched to all tick listeners. This object is reused between dispatchers to reduce construction & GC costs.</p>
2443
2444 </div>
2445
2446
2447 </li>
2448
2449 </ul>
2450 </div>
2451
2452
2453
2454
2455
2456</div>
2457
2458
2459 <div id="method__transformBounds" class="method item protected inherited">
2460 <h3 class="name"><code>_transformBounds</code></h3>
2461
2462
2463 <div class="args">
2464 <span class="paren">(</span><ul class="args-list inline commas">
2465
2466 <li class="arg">
2467
2468 <code>bounds</code>
2469
2470 </li>
2471
2472 <li class="arg">
2473
2474 <code>matrix</code>
2475
2476 </li>
2477
2478 <li class="arg">
2479
2480 <code>ignoreTransform</code>
2481
2482 </li>
2483
2484 </ul><span class="paren">)</span>
2485 </div>
2486
2487
2488
2489 <span class="returns-inline">
2490 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
2491 </span>
2492
2493
2494
2495
2496
2497 <span class="flag protected">protected</span>
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508 <div class="meta">
2509
2510
2511 <p>Inherited from
2512 <a href="../classes/DisplayObject.html#method__transformBounds">DisplayObject</a>:
2513
2514
2515
2516 <a href="../files/easeljs_display_DisplayObject.js.html#l1319"><code>_transformBounds:1319</code></a>
2517
2518 </p>
2519
2520
2521
2522
2523
2524 </div>
2525
2526 <div class="description">
2527
2528 </div>
2529
2530
2531 <div class="params">
2532 <h4>Parameters:</h4>
2533
2534 <ul class="params-list">
2535
2536 <li class="param">
2537
2538 <code class="param-name">bounds</code>
2539 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
2540
2541
2542
2543
2544 <div class="param-description">
2545
2546 </div>
2547
2548
2549 </li>
2550
2551 <li class="param">
2552
2553 <code class="param-name">matrix</code>
2554 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
2555
2556
2557
2558
2559 <div class="param-description">
2560
2561 </div>
2562
2563
2564 </li>
2565
2566 <li class="param">
2567
2568 <code class="param-name">ignoreTransform</code>
2569 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2570
2571
2572
2573
2574 <div class="param-description">
2575
2576 </div>
2577
2578
2579 </li>
2580
2581 </ul>
2582 </div>
2583
2584
2585
2586 <div class="returns">
2587 <h4>Returns:</h4>
2588
2589 <div class="returns-description">
2590
2591
2592 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
2593
2594
2595 </div>
2596 </div>
2597
2598
2599
2600</div>
2601
2602
2603 <div id="method__updateState" class="method item inherited">
2604 <h3 class="name"><code>_updateState</code></h3>
2605
2606
2607 <span class="paren">()</span>
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624 <div class="meta">
2625
2626
2627 <p>Inherited from
2628 <a href="../classes/DisplayObject.html#method__updateState">DisplayObject</a>:
2629
2630
2631
2632 <a href="../files/easeljs_display_DisplayObject.js.html#l1214"><code>_updateState:1214</code></a>
2633
2634 </p>
2635
2636
2637
2638
2639
2640 </div>
2641
2642 <div class="description">
2643 <p>Called before the object gets drawn and is a chance to ensure the display state of the object is correct.
2644Mostly used by <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> and <a href="../classes/BitmapText.html" class="crosslink">BitmapText</a> to
2645correct their internal state and children prior to being drawn.</p>
2646<p>Is manually called via draw in a <a href="../classes/Stage.html" class="crosslink">Stage</a> but is automatically called when
2647present in a <a href="../classes/StageGL.html" class="crosslink">StageGL</a> instance.</p>
2648
2649 </div>
2650
2651
2652
2653
2654
2655
2656</div>
2657
2658
2659 <div id="method_addEventListener" class="method item inherited">
2660 <h3 class="name"><code>addEventListener</code></h3>
2661
2662
2663 <div class="args">
2664 <span class="paren">(</span><ul class="args-list inline commas">
2665
2666 <li class="arg">
2667
2668 <code>type</code>
2669
2670 </li>
2671
2672 <li class="arg">
2673
2674 <code>listener</code>
2675
2676 </li>
2677
2678 <li class="arg">
2679
2680 <code class="optional">[useCapture]</code>
2681
2682 </li>
2683
2684 </ul><span class="paren">)</span>
2685 </div>
2686
2687
2688
2689 <span class="returns-inline">
2690 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
2691 </span>
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706 <div class="meta">
2707
2708
2709 <p>Inherited from
2710 <a href="../classes/EventDispatcher.html#method_addEventListener">EventDispatcher</a>:
2711
2712
2713
2714 <a href="../files/createjs_events_EventDispatcher.js.html#l140"><code>addEventListener:140</code></a>
2715
2716 </p>
2717
2718
2719
2720
2721
2722 </div>
2723
2724 <div class="description">
2725 <p><p>Adds the specified event listener. Note that adding multiple listeners to the same function will result in
2726multiple callbacks getting fired.</p></p>
2727<h4>Example</h4>
2728
2729<pre class="code prettyprint"><code> displayObject.addEventListener("click", handleClick);
2730 function handleClick(event) {
2731 // Click happened.
2732 }</code></pre>
2733
2734 </div>
2735
2736
2737 <div class="params">
2738 <h4>Parameters:</h4>
2739
2740 <ul class="params-list">
2741
2742 <li class="param">
2743
2744 <code class="param-name">type</code>
2745 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
2746
2747
2748
2749
2750 <div class="param-description">
2751 <p>The string type of the event.</p>
2752
2753 </div>
2754
2755
2756 </li>
2757
2758 <li class="param">
2759
2760 <code class="param-name">listener</code>
2761 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
2762
2763
2764
2765
2766 <div class="param-description">
2767 <p>An object with a handleEvent method, or a function that will be called when
2768the event is dispatched.</p>
2769
2770 </div>
2771
2772
2773 </li>
2774
2775 <li class="param">
2776
2777 <code class="param-name optional">[useCapture]</code>
2778 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
2779 <span class="flag optional" title="This parameter is optional.">optional</span>
2780
2781
2782
2783
2784 <div class="param-description">
2785 <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
2786
2787 </div>
2788
2789
2790 </li>
2791
2792 </ul>
2793 </div>
2794
2795
2796
2797 <div class="returns">
2798 <h4>Returns:</h4>
2799
2800 <div class="returns-description">
2801
2802
2803 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
2804
2805 <p>Returns the listener for chaining or assignment.</p>
2806
2807
2808 </div>
2809 </div>
2810
2811
2812
2813</div>
2814
2815
2816 <div id="method_cache" class="method item inherited">
2817 <h3 class="name"><code>cache</code></h3>
2818
2819
2820 <div class="args">
2821 <span class="paren">(</span><ul class="args-list inline commas">
2822
2823 <li class="arg">
2824
2825 <code>x</code>
2826
2827 </li>
2828
2829 <li class="arg">
2830
2831 <code>y</code>
2832
2833 </li>
2834
2835 <li class="arg">
2836
2837 <code>width</code>
2838
2839 </li>
2840
2841 <li class="arg">
2842
2843 <code>height</code>
2844
2845 </li>
2846
2847 <li class="arg">
2848
2849 <code class="optional">[scale=1]</code>
2850
2851 </li>
2852
2853 <li class="arg">
2854
2855 <code class="optional">[options=undefined]</code>
2856
2857 </li>
2858
2859 </ul><span class="paren">)</span>
2860 </div>
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877 <div class="meta">
2878
2879
2880 <p>Inherited from
2881 <a href="../classes/DisplayObject.html#method_cache">DisplayObject</a>:
2882
2883
2884
2885 <a href="../files/easeljs_display_DisplayObject.js.html#l792"><code>cache:792</code></a>
2886
2887 </p>
2888
2889
2890
2891
2892
2893 </div>
2894
2895 <div class="description">
2896 <p>Draws the display object into a new element, which is then used for subsequent draws. Intended for complex content
2897that does not change frequently (ex. a Container with many children that do not move, or a complex vector Shape),
2898this can provide for much faster rendering because the content does not need to be re-rendered each tick. The
2899cached display object can be moved, rotated, faded, etc freely, however if its content changes, you must manually
2900update the cache by calling <code>updateCache()</code> again. You must specify the cached area via the x, y, w,
2901and h parameters. This defines the rectangle that will be rendered and cached using this display object's coordinates.</p>
2902<p><h4>Example</h4>
2903For example if you defined a Shape that drew a circle at 0, 0 with a radius of 25:</p>
2904<pre class="code prettyprint"><code> var shape = new createjs.Shape();
2905 shape.graphics.beginFill("#ff0000").drawCircle(0, 0, 25);
2906 shape.cache(-25, -25, 50, 50);</code></pre>
2907<p>Note that filters need to be defined <em>before</em> the cache is applied or you will have to call updateCache after
2908application. Check out the <a href="../classes/Filter.html" class="crosslink">Filter</a> class for more information. Some filters
2909(ex. BlurFilter) may not work as expected in conjunction with the scale param.</p>
2910<p>Usually, the resulting cacheCanvas will have the dimensions width <em> scale, height </em> scale, however some filters (ex. BlurFilter)
2911will add padding to the canvas dimensions.</p>
2912<p>In previous versions caching was handled on DisplayObject but has since been moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a>.
2913This allows for easier interaction and alternate cache methods like WebGL with <a href="../classes/StageGL.html" class="crosslink">StageGL</a>.
2914For more information on the options object, see the BitmapCache BitmapCache/define.</p>
2915
2916 </div>
2917
2918
2919 <div class="params">
2920 <h4>Parameters:</h4>
2921
2922 <ul class="params-list">
2923
2924 <li class="param">
2925
2926 <code class="param-name">x</code>
2927 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2928
2929
2930
2931
2932 <div class="param-description">
2933 <p>The x coordinate origin for the cache region.</p>
2934
2935 </div>
2936
2937
2938 </li>
2939
2940 <li class="param">
2941
2942 <code class="param-name">y</code>
2943 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2944
2945
2946
2947
2948 <div class="param-description">
2949 <p>The y coordinate origin for the cache region.</p>
2950
2951 </div>
2952
2953
2954 </li>
2955
2956 <li class="param">
2957
2958 <code class="param-name">width</code>
2959 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2960
2961
2962
2963
2964 <div class="param-description">
2965 <p>The width of the cache region.</p>
2966
2967 </div>
2968
2969
2970 </li>
2971
2972 <li class="param">
2973
2974 <code class="param-name">height</code>
2975 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2976
2977
2978
2979
2980 <div class="param-description">
2981 <p>The height of the cache region.</p>
2982
2983 </div>
2984
2985
2986 </li>
2987
2988 <li class="param">
2989
2990 <code class="param-name optional">[scale=1]</code>
2991 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
2992 <span class="flag optional" title="This parameter is optional.">optional</span>
2993
2994
2995
2996
2997 <div class="param-description">
2998 <p>The scale at which the cache will be created. For example, if you cache a vector shape using
2999 myShape.cache(0,0,100,100,2) then the resulting cacheCanvas will be 200x200 px. This lets you scale and rotate
3000 cached elements with greater fidelity. Default is 1.</p>
3001
3002 </div>
3003
3004
3005 </li>
3006
3007 <li class="param">
3008
3009 <code class="param-name optional">[options=undefined]</code>
3010 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
3011 <span class="flag optional" title="This parameter is optional.">optional</span>
3012
3013
3014
3015
3016 <div class="param-description">
3017 <p>Specify additional parameters for the cache logic</p>
3018
3019 </div>
3020
3021
3022 </li>
3023
3024 </ul>
3025 </div>
3026
3027
3028
3029
3030
3031</div>
3032
3033
3034 <div id="method_clone" class="method item">
3035 <h3 class="name"><code>clone</code></h3>
3036
3037
3038 <span class="paren">()</span>
3039
3040
3041
3042 <span class="returns-inline">
3043 <span class="type"><a href="../classes/Text.html" class="crosslink">Text</a></span>
3044 </span>
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059 <div class="meta">
3060
3061 <p>Inherited from
3062 <a href="../classes/DisplayObject.html#method_clone">
3063 DisplayObject
3064 </a>
3065
3066 but overwritten in
3067
3068
3069
3070 <a href="../files/easeljs_display_Text.js.html#l280"><code>clone:280</code></a>
3071
3072 </p>
3073
3074
3075
3076
3077
3078 </div>
3079
3080 <div class="description">
3081 <p>Returns a clone of the Text instance.</p>
3082
3083 </div>
3084
3085
3086
3087
3088 <div class="returns">
3089 <h4>Returns:</h4>
3090
3091 <div class="returns-description">
3092
3093
3094 <span class="type"><a href="../classes/Text.html" class="crosslink">Text</a></span>:
3095
3096 <p>a clone of the Text instance.</p>
3097
3098
3099 </div>
3100 </div>
3101
3102
3103
3104</div>
3105
3106
3107 <div id="method_dispatchEvent" class="method item inherited">
3108 <h3 class="name"><code>dispatchEvent</code></h3>
3109
3110
3111 <div class="args">
3112 <span class="paren">(</span><ul class="args-list inline commas">
3113
3114 <li class="arg">
3115
3116 <code>eventObj</code>
3117
3118 </li>
3119
3120 <li class="arg">
3121
3122 <code class="optional">[bubbles]</code>
3123
3124 </li>
3125
3126 <li class="arg">
3127
3128 <code class="optional">[cancelable]</code>
3129
3130 </li>
3131
3132 </ul><span class="paren">)</span>
3133 </div>
3134
3135
3136
3137 <span class="returns-inline">
3138 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
3139 </span>
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154 <div class="meta">
3155
3156
3157 <p>Inherited from
3158 <a href="../classes/EventDispatcher.html#method_dispatchEvent">EventDispatcher</a>:
3159
3160
3161
3162 <a href="../files/createjs_events_EventDispatcher.js.html#l285"><code>dispatchEvent:285</code></a>
3163
3164 </p>
3165
3166
3167
3168
3169
3170 </div>
3171
3172 <div class="description">
3173 <p><p>Dispatches the specified event to all listeners.</p></p>
3174<h4>Example</h4>
3175
3176<pre class="code prettyprint"><code> // Use a string event
3177 this.dispatchEvent("complete");
3178
3179 // Use an Event instance
3180 var event = new createjs.Event("progress");
3181 this.dispatchEvent(event);</code></pre>
3182
3183 </div>
3184
3185
3186 <div class="params">
3187 <h4>Parameters:</h4>
3188
3189 <ul class="params-list">
3190
3191 <li class="param">
3192
3193 <code class="param-name">eventObj</code>
3194 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="../classes/Event.html" class="crosslink">Event</a></span>
3195
3196
3197
3198
3199 <div class="param-description">
3200 <p>An object with a "type" property, or a string type.
3201While a generic object will work, it is recommended to use a CreateJS Event instance. If a string is used,
3202dispatchEvent will construct an Event instance if necessary with the specified type. This latter approach can
3203be used to avoid event object instantiation for non-bubbling events that may not have any listeners.</p>
3204
3205 </div>
3206
3207
3208 </li>
3209
3210 <li class="param">
3211
3212 <code class="param-name optional">[bubbles]</code>
3213 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
3214 <span class="flag optional" title="This parameter is optional.">optional</span>
3215
3216
3217
3218
3219 <div class="param-description">
3220 <p>Specifies the <code>bubbles</code> value when a string was passed to eventObj.</p>
3221
3222 </div>
3223
3224
3225 </li>
3226
3227 <li class="param">
3228
3229 <code class="param-name optional">[cancelable]</code>
3230 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
3231 <span class="flag optional" title="This parameter is optional.">optional</span>
3232
3233
3234
3235
3236 <div class="param-description">
3237 <p>Specifies the <code>cancelable</code> value when a string was passed to eventObj.</p>
3238
3239 </div>
3240
3241
3242 </li>
3243
3244 </ul>
3245 </div>
3246
3247
3248
3249 <div class="returns">
3250 <h4>Returns:</h4>
3251
3252 <div class="returns-description">
3253
3254
3255 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
3256
3257 <p>Returns false if <code>preventDefault()</code> was called on a cancelable event, true otherwise.</p>
3258
3259
3260 </div>
3261 </div>
3262
3263
3264
3265</div>
3266
3267
3268 <div id="method_draw" class="method item">
3269 <h3 class="name"><code>draw</code></h3>
3270
3271
3272 <div class="args">
3273 <span class="paren">(</span><ul class="args-list inline commas">
3274
3275 <li class="arg">
3276
3277 <code>ctx</code>
3278
3279 </li>
3280
3281 <li class="arg">
3282
3283 <code>ignoreCache</code>
3284
3285 </li>
3286
3287 </ul><span class="paren">)</span>
3288 </div>
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305 <div class="meta">
3306
3307 <p>Inherited from
3308 <a href="../classes/DisplayObject.html#method_draw">
3309 DisplayObject
3310 </a>
3311
3312 but overwritten in
3313
3314
3315
3316 <a href="../files/easeljs_display_Text.js.html#l198"><code>draw:198</code></a>
3317
3318 </p>
3319
3320
3321
3322
3323
3324 </div>
3325
3326 <div class="description">
3327 <p>Draws the Text into the specified context ignoring its visible, alpha, shadow, and transform.
3328Returns true if the draw was handled (useful for overriding functionality).
3329NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
3330
3331 </div>
3332
3333
3334 <div class="params">
3335 <h4>Parameters:</h4>
3336
3337 <ul class="params-list">
3338
3339 <li class="param">
3340
3341 <code class="param-name">ctx</code>
3342 <span class="type">CanvasRenderingContext2D</span>
3343
3344
3345
3346
3347 <div class="param-description">
3348 <p>The canvas 2D context object to draw into.</p>
3349
3350 </div>
3351
3352
3353 </li>
3354
3355 <li class="param">
3356
3357 <code class="param-name">ignoreCache</code>
3358 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
3359
3360
3361
3362
3363 <div class="param-description">
3364 <p>Indicates whether the draw operation should ignore any current cache.
3365For example, used for drawing the cache (to prevent it from simply drawing an existing cache back
3366into itself).</p>
3367
3368 </div>
3369
3370
3371 </li>
3372
3373 </ul>
3374 </div>
3375
3376
3377
3378
3379
3380</div>
3381
3382
3383 <div id="method_getBounds" class="method item inherited">
3384 <h3 class="name"><code>getBounds</code></h3>
3385
3386
3387 <span class="paren">()</span>
3388
3389
3390
3391 <span class="returns-inline">
3392 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
3393 </span>
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408 <div class="meta">
3409
3410
3411 <p>Inherited from
3412 <a href="../classes/DisplayObject.html#method_getBounds">DisplayObject</a>:
3413
3414
3415
3416 <a href="../files/easeljs_display_DisplayObject.js.html#l1089"><code>getBounds:1089</code></a>
3417
3418 </p>
3419
3420
3421
3422
3423
3424 </div>
3425
3426 <div class="description">
3427 <p><p>Returns a rectangle representing this object's bounds in its local coordinate system (ie. with no transformation).
3428Objects that have been cached will return the bounds of the cache.</p></p>
3429<p><p>Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use
3430<a href="../classes/DisplayObject.html#method_setBounds" class="crosslink">setBounds</a> so that they are included when calculating Container
3431bounds.</p></p>
3432<table>
3433 <tr><td><b>All</b></td><td>
3434 All display objects support setting bounds manually using setBounds(). Likewise, display objects that
3435 have been cached using cache() will return the bounds of their cache. Manual and cache bounds will override
3436 the automatic calculations listed below.
3437 </td></tr>
3438 <tr><td><b>Bitmap</b></td><td>
3439 Returns the width and height of the sourceRect (if specified) or image, extending from (x=0,y=0).
3440 </td></tr>
3441 <tr><td><b>Sprite</b></td><td>
3442 Returns the bounds of the current frame. May have non-zero x/y if a frame registration point was specified
3443 in the spritesheet data. See also <a href="../classes/SpriteSheet.html#method_getFrameBounds" class="crosslink">getFrameBounds</a>
3444 </td></tr>
3445 <tr><td><b>Container</b></td><td>
3446 Returns the aggregate (combined) bounds of all children that return a non-null value from getBounds().
3447 </td></tr>
3448 <tr><td><b>Shape</b></td><td>
3449 Does not currently support automatic bounds calculations. Use setBounds() to manually define bounds.
3450 </td></tr>
3451 <tr><td><b>Text</b></td><td>
3452 Returns approximate bounds. Horizontal values (x/width) are quite accurate, but vertical values (y/height) are
3453 not, especially when using textBaseline values other than "top".
3454 </td></tr>
3455 <tr><td><b>BitmapText</b></td><td>
3456 Returns approximate bounds. Values will be more accurate if spritesheet frame registration points are close
3457 to (x=0,y=0).
3458 </td></tr>
3459</table>
3460
3461<p><p>Bounds can be expensive to calculate for some objects (ex. text, or containers with many children), and
3462are recalculated each time you call getBounds(). You can prevent recalculation on static objects by setting the
3463bounds explicitly:</p></p>
3464<pre class="code prettyprint"><code>var bounds = obj.getBounds();
3465obj.setBounds(bounds.x, bounds.y, bounds.width, bounds.height);
3466// getBounds will now use the set values, instead of recalculating</code></pre>
3467<p>To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its
3468values if you need to retain it.</p>
3469<pre class="code prettyprint"><code>var myBounds = obj.getBounds().clone();
3470// OR:
3471myRect.copy(obj.getBounds());</code></pre>
3472
3473 </div>
3474
3475
3476
3477
3478 <div class="returns">
3479 <h4>Returns:</h4>
3480
3481 <div class="returns-description">
3482
3483
3484 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
3485
3486 <p>A Rectangle instance representing the bounds, or null if bounds are not available for this
3487object.</p>
3488
3489
3490 </div>
3491 </div>
3492
3493
3494
3495</div>
3496
3497
3498 <div id="method_getCacheDataURL" class="method item inherited">
3499 <h3 class="name"><code>getCacheDataURL</code></h3>
3500
3501
3502 <span class="paren">()</span>
3503
3504
3505
3506 <span class="returns-inline">
3507 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
3508 </span>
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523 <div class="meta">
3524
3525
3526 <p>Inherited from
3527 <a href="../classes/DisplayObject.html#method_getCacheDataURL">DisplayObject</a>:
3528
3529
3530
3531 <a href="../files/easeljs_display_DisplayObject.js.html#l875"><code>getCacheDataURL:875</code></a>
3532
3533 </p>
3534
3535
3536
3537
3538
3539 </div>
3540
3541 <div class="description">
3542 <p>Returns a data URL for the cache, or null if this display object is not cached.
3543Only generated if the cache has changed, otherwise returns last result.</p>
3544
3545 </div>
3546
3547
3548
3549
3550 <div class="returns">
3551 <h4>Returns:</h4>
3552
3553 <div class="returns-description">
3554
3555
3556 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
3557
3558 <p>The image data url for the cache.</p>
3559
3560
3561 </div>
3562 </div>
3563
3564
3565
3566</div>
3567
3568
3569 <div id="method_getConcatenatedDisplayProps" class="method item inherited">
3570 <h3 class="name"><code>getConcatenatedDisplayProps</code></h3>
3571
3572
3573 <div class="args">
3574 <span class="paren">(</span><ul class="args-list inline commas">
3575
3576 <li class="arg">
3577
3578 <code class="optional">[props]</code>
3579
3580 </li>
3581
3582 </ul><span class="paren">)</span>
3583 </div>
3584
3585
3586
3587 <span class="returns-inline">
3588 <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
3589 </span>
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604 <div class="meta">
3605
3606
3607 <p>Inherited from
3608 <a href="../classes/DisplayObject.html#method_getConcatenatedDisplayProps">DisplayObject</a>:
3609
3610
3611
3612 <a href="../files/easeljs_display_DisplayObject.js.html#l1021"><code>getConcatenatedDisplayProps:1021</code></a>
3613
3614 </p>
3615
3616
3617
3618
3619
3620 </div>
3621
3622 <div class="description">
3623 <p>Generates a DisplayProps object representing the combined display properties of the object and all of its
3624parent Containers up to the highest level ancestor (usually the <a href="../classes/Stage.html" class="crosslink">Stage</a>).</p>
3625
3626 </div>
3627
3628
3629 <div class="params">
3630 <h4>Parameters:</h4>
3631
3632 <ul class="params-list">
3633
3634 <li class="param">
3635
3636 <code class="param-name optional">[props]</code>
3637 <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
3638 <span class="flag optional" title="This parameter is optional.">optional</span>
3639
3640
3641
3642
3643 <div class="param-description">
3644 <p>A <a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a> object to populate with the calculated values.
3645If null, a new DisplayProps object is returned.</p>
3646
3647 </div>
3648
3649
3650 </li>
3651
3652 </ul>
3653 </div>
3654
3655
3656
3657 <div class="returns">
3658 <h4>Returns:</h4>
3659
3660 <div class="returns-description">
3661
3662
3663 <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>:
3664
3665 <p>The combined display properties.</p>
3666
3667
3668 </div>
3669 </div>
3670
3671
3672
3673</div>
3674
3675
3676 <div id="method_getConcatenatedMatrix" class="method item inherited">
3677 <h3 class="name"><code>getConcatenatedMatrix</code></h3>
3678
3679
3680 <div class="args">
3681 <span class="paren">(</span><ul class="args-list inline commas">
3682
3683 <li class="arg">
3684
3685 <code class="optional">[matrix]</code>
3686
3687 </li>
3688
3689 </ul><span class="paren">)</span>
3690 </div>
3691
3692
3693
3694 <span class="returns-inline">
3695 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
3696 </span>
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711 <div class="meta">
3712
3713
3714 <p>Inherited from
3715 <a href="../classes/DisplayObject.html#method_getConcatenatedMatrix">DisplayObject</a>:
3716
3717
3718
3719 <a href="../files/easeljs_display_DisplayObject.js.html#l1003"><code>getConcatenatedMatrix:1003</code></a>
3720
3721 </p>
3722
3723
3724
3725
3726
3727 </div>
3728
3729 <div class="description">
3730 <p>Generates a Matrix2D object representing the combined transform of the display object and all of its
3731parent Containers up to the highest level ancestor (usually the <a href="../classes/Stage.html" class="crosslink">Stage</a>). This can
3732be used to transform positions between coordinate spaces, such as with <a href="../classes/DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a>
3733and <a href="../classes/DisplayObject.html#method_globalToLocal" class="crosslink">globalToLocal</a>.</p>
3734
3735 </div>
3736
3737
3738 <div class="params">
3739 <h4>Parameters:</h4>
3740
3741 <ul class="params-list">
3742
3743 <li class="param">
3744
3745 <code class="param-name optional">[matrix]</code>
3746 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
3747 <span class="flag optional" title="This parameter is optional.">optional</span>
3748
3749
3750
3751
3752 <div class="param-description">
3753 <p>A <a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a> object to populate with the calculated values.
3754If null, a new Matrix2D object is returned.</p>
3755
3756 </div>
3757
3758
3759 </li>
3760
3761 </ul>
3762 </div>
3763
3764
3765
3766 <div class="returns">
3767 <h4>Returns:</h4>
3768
3769 <div class="returns-description">
3770
3771
3772 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
3773
3774 <p>The combined matrix.</p>
3775
3776
3777 </div>
3778 </div>
3779
3780
3781
3782</div>
3783
3784
3785 <div id="method_getMatrix" class="method item inherited">
3786 <h3 class="name"><code>getMatrix</code></h3>
3787
3788
3789 <div class="args">
3790 <span class="paren">(</span><ul class="args-list inline commas">
3791
3792 <li class="arg">
3793
3794 <code>matrix</code>
3795
3796 </li>
3797
3798 </ul><span class="paren">)</span>
3799 </div>
3800
3801
3802
3803 <span class="returns-inline">
3804 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
3805 </span>
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820 <div class="meta">
3821
3822
3823 <p>Inherited from
3824 <a href="../classes/DisplayObject.html#method_getMatrix">DisplayObject</a>:
3825
3826
3827
3828 <a href="../files/easeljs_display_DisplayObject.js.html#l991"><code>getMatrix:991</code></a>
3829
3830 </p>
3831
3832
3833
3834
3835
3836 </div>
3837
3838 <div class="description">
3839 <p>Returns a matrix based on this object's current transform.</p>
3840
3841 </div>
3842
3843
3844 <div class="params">
3845 <h4>Parameters:</h4>
3846
3847 <ul class="params-list">
3848
3849 <li class="param">
3850
3851 <code class="param-name">matrix</code>
3852 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
3853
3854
3855
3856
3857 <div class="param-description">
3858 <p>Optional. A Matrix2D object to populate with the calculated values. If null, a new
3859Matrix object is returned.</p>
3860
3861 </div>
3862
3863
3864 </li>
3865
3866 </ul>
3867 </div>
3868
3869
3870
3871 <div class="returns">
3872 <h4>Returns:</h4>
3873
3874 <div class="returns-description">
3875
3876
3877 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>:
3878
3879 <p>A matrix representing this display object's transform.</p>
3880
3881
3882 </div>
3883 </div>
3884
3885
3886
3887</div>
3888
3889
3890 <div id="method_getMeasuredHeight" class="method item">
3891 <h3 class="name"><code>getMeasuredHeight</code></h3>
3892
3893
3894 <span class="paren">()</span>
3895
3896
3897
3898 <span class="returns-inline">
3899 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3900 </span>
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915 <div class="meta">
3916
3917
3918
3919 <p>
3920
3921 Defined in
3922
3923
3924
3925
3926 <a href="../files/easeljs_display_Text.js.html#l239"><code>getMeasuredHeight:239</code></a>
3927
3928 </p>
3929
3930
3931
3932
3933
3934 </div>
3935
3936 <div class="description">
3937 <p>Returns the approximate height of multi-line text by multiplying the number of lines against either the
3938<code>lineHeight</code> (if specified) or <a href="../classes/Text.html#method_getMeasuredLineHeight" class="crosslink">getMeasuredLineHeight</a>. Note that
3939this operation requires the text flowing logic to run, which has an associated CPU cost.</p>
3940
3941 </div>
3942
3943
3944
3945
3946 <div class="returns">
3947 <h4>Returns:</h4>
3948
3949 <div class="returns-description">
3950
3951
3952 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
3953
3954 <p>The approximate height of the untransformed multi-line text.</p>
3955
3956
3957 </div>
3958 </div>
3959
3960
3961
3962</div>
3963
3964
3965 <div id="method_getMeasuredLineHeight" class="method item">
3966 <h3 class="name"><code>getMeasuredLineHeight</code></h3>
3967
3968
3969 <span class="paren">()</span>
3970
3971
3972
3973 <span class="returns-inline">
3974 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
3975 </span>
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990 <div class="meta">
3991
3992
3993
3994 <p>
3995
3996 Defined in
3997
3998
3999
4000
4001 <a href="../files/easeljs_display_Text.js.html#l228"><code>getMeasuredLineHeight:228</code></a>
4002
4003 </p>
4004
4005
4006
4007
4008
4009 </div>
4010
4011 <div class="description">
4012 <p>Returns an approximate line height of the text, ignoring the lineHeight property. This is based on the measured
4013width of a "M" character multiplied by 1.2, which provides an approximate line height for most fonts.</p>
4014
4015 </div>
4016
4017
4018
4019
4020 <div class="returns">
4021 <h4>Returns:</h4>
4022
4023 <div class="returns-description">
4024
4025
4026 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
4027
4028 <p>an approximate line height of the text, ignoring the lineHeight property. This is
4029based on the measured width of a "M" character multiplied by 1.2, which approximates em for most fonts.</p>
4030
4031
4032 </div>
4033 </div>
4034
4035
4036
4037</div>
4038
4039
4040 <div id="method_getMeasuredWidth" class="method item">
4041 <h3 class="name"><code>getMeasuredWidth</code></h3>
4042
4043
4044 <span class="paren">()</span>
4045
4046
4047
4048 <span class="returns-inline">
4049 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4050 </span>
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065 <div class="meta">
4066
4067
4068
4069 <p>
4070
4071 Defined in
4072
4073
4074
4075
4076 <a href="../files/easeljs_display_Text.js.html#l219"><code>getMeasuredWidth:219</code></a>
4077
4078 </p>
4079
4080
4081
4082
4083
4084 </div>
4085
4086 <div class="description">
4087 <p>Returns the measured, untransformed width of the text without wrapping. Use getBounds for a more robust value.</p>
4088
4089 </div>
4090
4091
4092
4093
4094 <div class="returns">
4095 <h4>Returns:</h4>
4096
4097 <div class="returns-description">
4098
4099
4100 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>:
4101
4102 <p>The measured, untransformed width of the text.</p>
4103
4104
4105 </div>
4106 </div>
4107
4108
4109
4110</div>
4111
4112
4113 <div id="method_getMetrics" class="method item">
4114 <h3 class="name"><code>getMetrics</code></h3>
4115
4116
4117 <span class="paren">()</span>
4118
4119
4120
4121 <span class="returns-inline">
4122 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
4123 </span>
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138 <div class="meta">
4139
4140
4141
4142 <p>
4143
4144 Defined in
4145
4146
4147
4148
4149 <a href="../files/easeljs_display_Text.js.html#l265"><code>getMetrics:265</code></a>
4150
4151 </p>
4152
4153
4154
4155
4156
4157 </div>
4158
4159 <div class="description">
4160 <p>Returns an object with width, height, and lines properties. The width and height are the visual width and height
4161of the drawn text. The lines property contains an array of strings, one for
4162each line of text that will be drawn, accounting for line breaks and wrapping. These strings have trailing
4163whitespace removed.</p>
4164
4165 </div>
4166
4167
4168
4169
4170 <div class="returns">
4171 <h4>Returns:</h4>
4172
4173 <div class="returns-description">
4174
4175
4176 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>:
4177
4178 <p>An object with width, height, and lines properties.</p>
4179
4180
4181 </div>
4182 </div>
4183
4184
4185
4186</div>
4187
4188
4189 <div id="method_getTransformedBounds" class="method item inherited">
4190 <h3 class="name"><code>getTransformedBounds</code></h3>
4191
4192
4193 <span class="paren">()</span>
4194
4195
4196
4197 <span class="returns-inline">
4198 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
4199 </span>
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214 <div class="meta">
4215
4216
4217 <p>Inherited from
4218 <a href="../classes/DisplayObject.html#method_getTransformedBounds">DisplayObject</a>:
4219
4220
4221
4222 <a href="../files/easeljs_display_DisplayObject.js.html#l1155"><code>getTransformedBounds:1155</code></a>
4223
4224 </p>
4225
4226
4227
4228
4229
4230 </div>
4231
4232 <div class="description">
4233 <p>Returns a rectangle representing this object's bounds in its parent's coordinate system (ie. with transformations applied).
4234Objects that have been cached will return the transformed bounds of the cache.</p>
4235<p>Not all display objects can calculate their own bounds (ex. Shape). For these objects, you can use
4236<a href="../classes/DisplayObject.html#method_setBounds" class="crosslink">setBounds</a> so that they are included when calculating Container
4237bounds.</p>
4238<p>To reduce memory impact, the returned Rectangle instance may be reused internally; clone the instance or copy its
4239values if you need to retain it.</p>
4240<p>Container instances calculate aggregate bounds for all children that return bounds via getBounds.</p>
4241
4242 </div>
4243
4244
4245
4246
4247 <div class="returns">
4248 <h4>Returns:</h4>
4249
4250 <div class="returns-description">
4251
4252
4253 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>:
4254
4255 <p>A Rectangle instance representing the bounds, or null if bounds are not available for this object.</p>
4256
4257
4258 </div>
4259 </div>
4260
4261
4262
4263</div>
4264
4265
4266 <div id="method_globalToLocal" class="method item inherited">
4267 <h3 class="name"><code>globalToLocal</code></h3>
4268
4269
4270 <div class="args">
4271 <span class="paren">(</span><ul class="args-list inline commas">
4272
4273 <li class="arg">
4274
4275 <code>x</code>
4276
4277 </li>
4278
4279 <li class="arg">
4280
4281 <code>y</code>
4282
4283 </li>
4284
4285 <li class="arg">
4286
4287 <code class="optional">[pt]</code>
4288
4289 </li>
4290
4291 </ul><span class="paren">)</span>
4292 </div>
4293
4294
4295
4296 <span class="returns-inline">
4297 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
4298 </span>
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313 <div class="meta">
4314
4315
4316 <p>Inherited from
4317 <a href="../classes/DisplayObject.html#method_globalToLocal">DisplayObject</a>:
4318
4319
4320
4321 <a href="../files/easeljs_display_DisplayObject.js.html#l910"><code>globalToLocal:910</code></a>
4322
4323 </p>
4324
4325
4326
4327
4328
4329 </div>
4330
4331 <div class="description">
4332 <p><p>Transforms the specified x and y position from the global (stage) coordinate space to the
4333coordinate space of the display object. For example, this could be used to determine
4334the current mouse position within the display object. Returns a Point instance with x and y properties
4335correlating to the transformed position in the display object's coordinate space.</p></p>
4336<h4>Example</h4>
4337
4338<pre class="code prettyprint"><code> displayObject.x = 300;
4339 displayObject.y = 200;
4340 stage.addChild(displayObject);
4341 var point = displayObject.globalToLocal(100, 100);
4342 // Results in x=-200, y=-100</code></pre>
4343
4344 </div>
4345
4346
4347 <div class="params">
4348 <h4>Parameters:</h4>
4349
4350 <ul class="params-list">
4351
4352 <li class="param">
4353
4354 <code class="param-name">x</code>
4355 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4356
4357
4358
4359
4360 <div class="param-description">
4361 <p>The x position on the stage to transform.</p>
4362
4363 </div>
4364
4365
4366 </li>
4367
4368 <li class="param">
4369
4370 <code class="param-name">y</code>
4371 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4372
4373
4374
4375
4376 <div class="param-description">
4377 <p>The y position on the stage to transform.</p>
4378
4379 </div>
4380
4381
4382 </li>
4383
4384 <li class="param">
4385
4386 <code class="param-name optional">[pt]</code>
4387 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
4388 <span class="flag optional" title="This parameter is optional.">optional</span>
4389
4390
4391
4392
4393 <div class="param-description">
4394 <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
4395
4396 </div>
4397
4398
4399 </li>
4400
4401 </ul>
4402 </div>
4403
4404
4405
4406 <div class="returns">
4407 <h4>Returns:</h4>
4408
4409 <div class="returns-description">
4410
4411
4412 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
4413
4414 <p>A Point instance with x and y properties correlating to the transformed position in the
4415display object's coordinate space.</p>
4416
4417
4418 </div>
4419 </div>
4420
4421
4422
4423</div>
4424
4425
4426 <div id="method_hasEventListener" class="method item inherited">
4427 <h3 class="name"><code>hasEventListener</code></h3>
4428
4429
4430 <div class="args">
4431 <span class="paren">(</span><ul class="args-list inline commas">
4432
4433 <li class="arg">
4434
4435 <code>type</code>
4436
4437 </li>
4438
4439 </ul><span class="paren">)</span>
4440 </div>
4441
4442
4443
4444 <span class="returns-inline">
4445 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
4446 </span>
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461 <div class="meta">
4462
4463
4464 <p>Inherited from
4465 <a href="../classes/EventDispatcher.html#method_hasEventListener">EventDispatcher</a>:
4466
4467
4468
4469 <a href="../files/createjs_events_EventDispatcher.js.html#l339"><code>hasEventListener:339</code></a>
4470
4471 </p>
4472
4473
4474
4475
4476
4477 </div>
4478
4479 <div class="description">
4480 <p>Indicates whether there is at least one listener for the specified event type.</p>
4481
4482 </div>
4483
4484
4485 <div class="params">
4486 <h4>Parameters:</h4>
4487
4488 <ul class="params-list">
4489
4490 <li class="param">
4491
4492 <code class="param-name">type</code>
4493 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
4494
4495
4496
4497
4498 <div class="param-description">
4499 <p>The string type of the event.</p>
4500
4501 </div>
4502
4503
4504 </li>
4505
4506 </ul>
4507 </div>
4508
4509
4510
4511 <div class="returns">
4512 <h4>Returns:</h4>
4513
4514 <div class="returns-description">
4515
4516
4517 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
4518
4519 <p>Returns true if there is at least one listener for the specified event.</p>
4520
4521
4522 </div>
4523 </div>
4524
4525
4526
4527</div>
4528
4529
4530 <div id="method_hitTest" class="method item inherited">
4531 <h3 class="name"><code>hitTest</code></h3>
4532
4533
4534 <div class="args">
4535 <span class="paren">(</span><ul class="args-list inline commas">
4536
4537 <li class="arg">
4538
4539 <code>x</code>
4540
4541 </li>
4542
4543 <li class="arg">
4544
4545 <code>y</code>
4546
4547 </li>
4548
4549 </ul><span class="paren">)</span>
4550 </div>
4551
4552
4553
4554 <span class="returns-inline">
4555 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
4556 </span>
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571 <div class="meta">
4572
4573
4574 <p>Inherited from
4575 <a href="../classes/DisplayObject.html#method_hitTest">DisplayObject</a>:
4576
4577
4578
4579 <a href="../files/easeljs_display_DisplayObject.js.html#l1042"><code>hitTest:1042</code></a>
4580
4581 </p>
4582
4583
4584
4585
4586
4587 </div>
4588
4589 <div class="description">
4590 <p>Tests whether the display object intersects the specified point in local coordinates (ie. draws a pixel with alpha > 0 at
4591the specified position). This ignores the alpha, shadow, hitArea, mask, and compositeOperation of the display object.</p>
4592<h4>Example</h4>
4593
4594<pre class="code prettyprint"><code> stage.addEventListener("stagemousedown", handleMouseDown);
4595 function handleMouseDown(event) {
4596 var hit = myShape.hitTest(event.stageX, event.stageY);
4597 }</code></pre>
4598<p>Please note that shape-to-shape collision is not currently supported by EaselJS.</p>
4599
4600 </div>
4601
4602
4603 <div class="params">
4604 <h4>Parameters:</h4>
4605
4606 <ul class="params-list">
4607
4608 <li class="param">
4609
4610 <code class="param-name">x</code>
4611 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4612
4613
4614
4615
4616 <div class="param-description">
4617 <p>The x position to check in the display object's local coordinates.</p>
4618
4619 </div>
4620
4621
4622 </li>
4623
4624 <li class="param">
4625
4626 <code class="param-name">y</code>
4627 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4628
4629
4630
4631
4632 <div class="param-description">
4633 <p>The y position to check in the display object's local coordinates.</p>
4634
4635 </div>
4636
4637
4638 </li>
4639
4640 </ul>
4641 </div>
4642
4643
4644
4645 <div class="returns">
4646 <h4>Returns:</h4>
4647
4648 <div class="returns-description">
4649
4650
4651 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
4652
4653 <p>A Boolean indicating whether a visible portion of the DisplayObject intersect the specified
4654local Point.</p>
4655
4656
4657 </div>
4658 </div>
4659
4660
4661
4662</div>
4663
4664
4665 <div id="method_isVisible" class="method item">
4666 <h3 class="name"><code>isVisible</code></h3>
4667
4668
4669 <span class="paren">()</span>
4670
4671
4672
4673 <span class="returns-inline">
4674 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
4675 </span>
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690 <div class="meta">
4691
4692 <p>Inherited from
4693 <a href="../classes/DisplayObject.html#method_isVisible">
4694 DisplayObject
4695 </a>
4696
4697 but overwritten in
4698
4699
4700
4701 <a href="../files/easeljs_display_Text.js.html#l186"><code>isVisible:186</code></a>
4702
4703 </p>
4704
4705
4706
4707
4708
4709 </div>
4710
4711 <div class="description">
4712 <p>Returns true or false indicating whether the display object would be visible if drawn to a canvas.
4713This does not account for whether it would be visible within the boundaries of the stage.
4714NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
4715
4716 </div>
4717
4718
4719
4720
4721 <div class="returns">
4722 <h4>Returns:</h4>
4723
4724 <div class="returns-description">
4725
4726
4727 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
4728
4729 <p>Whether the display object would be visible if drawn to a canvas</p>
4730
4731
4732 </div>
4733 </div>
4734
4735
4736
4737</div>
4738
4739
4740 <div id="method_localToGlobal" class="method item inherited">
4741 <h3 class="name"><code>localToGlobal</code></h3>
4742
4743
4744 <div class="args">
4745 <span class="paren">(</span><ul class="args-list inline commas">
4746
4747 <li class="arg">
4748
4749 <code>x</code>
4750
4751 </li>
4752
4753 <li class="arg">
4754
4755 <code>y</code>
4756
4757 </li>
4758
4759 <li class="arg">
4760
4761 <code class="optional">[pt]</code>
4762
4763 </li>
4764
4765 </ul><span class="paren">)</span>
4766 </div>
4767
4768
4769
4770 <span class="returns-inline">
4771 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
4772 </span>
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787 <div class="meta">
4788
4789
4790 <p>Inherited from
4791 <a href="../classes/DisplayObject.html#method_localToGlobal">DisplayObject</a>:
4792
4793
4794
4795 <a href="../files/easeljs_display_DisplayObject.js.html#l885"><code>localToGlobal:885</code></a>
4796
4797 </p>
4798
4799
4800
4801
4802
4803 </div>
4804
4805 <div class="description">
4806 <p><p>Transforms the specified x and y position from the coordinate space of the display object
4807to the global (stage) coordinate space. For example, this could be used to position an HTML label
4808over a specific point on a nested display object. Returns a Point instance with x and y properties
4809correlating to the transformed coordinates on the stage.</p></p>
4810<h4>Example</h4>
4811
4812<pre class="code prettyprint"><code> displayObject.x = 300;
4813 displayObject.y = 200;
4814 stage.addChild(displayObject);
4815 var point = displayObject.localToGlobal(100, 100);
4816 // Results in x=400, y=300</code></pre>
4817
4818 </div>
4819
4820
4821 <div class="params">
4822 <h4>Parameters:</h4>
4823
4824 <ul class="params-list">
4825
4826 <li class="param">
4827
4828 <code class="param-name">x</code>
4829 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4830
4831
4832
4833
4834 <div class="param-description">
4835 <p>The x position in the source display object to transform.</p>
4836
4837 </div>
4838
4839
4840 </li>
4841
4842 <li class="param">
4843
4844 <code class="param-name">y</code>
4845 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4846
4847
4848
4849
4850 <div class="param-description">
4851 <p>The y position in the source display object to transform.</p>
4852
4853 </div>
4854
4855
4856 </li>
4857
4858 <li class="param">
4859
4860 <code class="param-name optional">[pt]</code>
4861 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
4862 <span class="flag optional" title="This parameter is optional.">optional</span>
4863
4864
4865
4866
4867 <div class="param-description">
4868 <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
4869
4870 </div>
4871
4872
4873 </li>
4874
4875 </ul>
4876 </div>
4877
4878
4879
4880 <div class="returns">
4881 <h4>Returns:</h4>
4882
4883 <div class="returns-description">
4884
4885
4886 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
4887
4888 <p>A Point instance with x and y properties correlating to the transformed coordinates
4889on the stage.</p>
4890
4891
4892 </div>
4893 </div>
4894
4895
4896
4897</div>
4898
4899
4900 <div id="method_localToLocal" class="method item inherited">
4901 <h3 class="name"><code>localToLocal</code></h3>
4902
4903
4904 <div class="args">
4905 <span class="paren">(</span><ul class="args-list inline commas">
4906
4907 <li class="arg">
4908
4909 <code>x</code>
4910
4911 </li>
4912
4913 <li class="arg">
4914
4915 <code>y</code>
4916
4917 </li>
4918
4919 <li class="arg">
4920
4921 <code>target</code>
4922
4923 </li>
4924
4925 <li class="arg">
4926
4927 <code class="optional">[pt]</code>
4928
4929 </li>
4930
4931 </ul><span class="paren">)</span>
4932 </div>
4933
4934
4935
4936 <span class="returns-inline">
4937 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>
4938 </span>
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953 <div class="meta">
4954
4955
4956 <p>Inherited from
4957 <a href="../classes/DisplayObject.html#method_localToLocal">DisplayObject</a>:
4958
4959
4960
4961 <a href="../files/easeljs_display_DisplayObject.js.html#l935"><code>localToLocal:935</code></a>
4962
4963 </p>
4964
4965
4966
4967
4968
4969 </div>
4970
4971 <div class="description">
4972 <p><p>Transforms the specified x and y position from the coordinate space of this display object to the coordinate
4973space of the target display object. Returns a Point instance with x and y properties correlating to the
4974transformed position in the target's coordinate space. Effectively the same as using the following code with
4975<a href="../classes/DisplayObject.html#method_localToGlobal" class="crosslink">localToGlobal</a> and <a href="../classes/DisplayObject.html#method_globalToLocal" class="crosslink">globalToLocal</a>.</p></p>
4976<pre class="code prettyprint"><code> var pt = this.localToGlobal(x, y);
4977 pt = target.globalToLocal(pt.x, pt.y);</code></pre>
4978
4979 </div>
4980
4981
4982 <div class="params">
4983 <h4>Parameters:</h4>
4984
4985 <ul class="params-list">
4986
4987 <li class="param">
4988
4989 <code class="param-name">x</code>
4990 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
4991
4992
4993
4994
4995 <div class="param-description">
4996 <p>The x position in the source display object to transform.</p>
4997
4998 </div>
4999
5000
5001 </li>
5002
5003 <li class="param">
5004
5005 <code class="param-name">y</code>
5006 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
5007
5008
5009
5010
5011 <div class="param-description">
5012 <p>The y position on the source display object to transform.</p>
5013
5014 </div>
5015
5016
5017 </li>
5018
5019 <li class="param">
5020
5021 <code class="param-name">target</code>
5022 <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
5023
5024
5025
5026
5027 <div class="param-description">
5028 <p>The target display object to which the coordinates will be transformed.</p>
5029
5030 </div>
5031
5032
5033 </li>
5034
5035 <li class="param">
5036
5037 <code class="param-name optional">[pt]</code>
5038 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
5039 <span class="flag optional" title="This parameter is optional.">optional</span>
5040
5041
5042
5043
5044 <div class="param-description">
5045 <p>An object to copy the result into. If omitted a new Point object with x/y properties will be returned.</p>
5046
5047 </div>
5048
5049
5050 </li>
5051
5052 </ul>
5053 </div>
5054
5055
5056
5057 <div class="returns">
5058 <h4>Returns:</h4>
5059
5060 <div class="returns-description">
5061
5062
5063 <span class="type"><a href="../classes/Point.html" class="crosslink">Point</a></span>:
5064
5065 <p>Returns a Point instance with x and y properties correlating to the transformed position
5066in the target's coordinate space.</p>
5067
5068
5069 </div>
5070 </div>
5071
5072
5073
5074</div>
5075
5076
5077 <div id="method_off" class="method item inherited">
5078 <h3 class="name"><code>off</code></h3>
5079
5080
5081 <div class="args">
5082 <span class="paren">(</span><ul class="args-list inline commas">
5083
5084 <li class="arg">
5085
5086 <code>type</code>
5087
5088 </li>
5089
5090 <li class="arg">
5091
5092 <code>listener</code>
5093
5094 </li>
5095
5096 <li class="arg">
5097
5098 <code class="optional">[useCapture]</code>
5099
5100 </li>
5101
5102 </ul><span class="paren">)</span>
5103 </div>
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120 <div class="meta">
5121
5122
5123 <p>Inherited from
5124 <a href="../classes/EventDispatcher.html#method_off">EventDispatcher</a>:
5125
5126
5127
5128 <a href="../files/createjs_events_EventDispatcher.js.html#l249"><code>off:249</code></a>
5129
5130 </p>
5131
5132
5133
5134
5135
5136 </div>
5137
5138 <div class="description">
5139 <p>A shortcut to the removeEventListener method, with the same parameters and return value. This is a companion to the
5140.on method.</p>
5141<p><b>IMPORTANT:</b> To remove a listener added with <code>on</code>, you must pass in the returned wrapper function as the listener. See
5142<a href="../classes/EventDispatcher.html#method_on" class="crosslink">on</a> for an example.</p>
5143
5144 </div>
5145
5146
5147 <div class="params">
5148 <h4>Parameters:</h4>
5149
5150 <ul class="params-list">
5151
5152 <li class="param">
5153
5154 <code class="param-name">type</code>
5155 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
5156
5157
5158
5159
5160 <div class="param-description">
5161 <p>The string type of the event.</p>
5162
5163 </div>
5164
5165
5166 </li>
5167
5168 <li class="param">
5169
5170 <code class="param-name">listener</code>
5171 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
5172
5173
5174
5175
5176 <div class="param-description">
5177 <p>The listener function or object.</p>
5178
5179 </div>
5180
5181
5182 </li>
5183
5184 <li class="param">
5185
5186 <code class="param-name optional">[useCapture]</code>
5187 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
5188 <span class="flag optional" title="This parameter is optional.">optional</span>
5189
5190
5191
5192
5193 <div class="param-description">
5194 <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
5195
5196 </div>
5197
5198
5199 </li>
5200
5201 </ul>
5202 </div>
5203
5204
5205
5206
5207
5208</div>
5209
5210
5211 <div id="method_on" class="method item inherited">
5212 <h3 class="name"><code>on</code></h3>
5213
5214
5215 <div class="args">
5216 <span class="paren">(</span><ul class="args-list inline commas">
5217
5218 <li class="arg">
5219
5220 <code>type</code>
5221
5222 </li>
5223
5224 <li class="arg">
5225
5226 <code>listener</code>
5227
5228 </li>
5229
5230 <li class="arg">
5231
5232 <code class="optional">[scope]</code>
5233
5234 </li>
5235
5236 <li class="arg">
5237
5238 <code class="optional">[once=false]</code>
5239
5240 </li>
5241
5242 <li class="arg">
5243
5244 <code class="optional">[data]</code>
5245
5246 </li>
5247
5248 <li class="arg">
5249
5250 <code class="optional">[useCapture=false]</code>
5251
5252 </li>
5253
5254 </ul><span class="paren">)</span>
5255 </div>
5256
5257
5258
5259 <span class="returns-inline">
5260 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>
5261 </span>
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276 <div class="meta">
5277
5278
5279 <p>Inherited from
5280 <a href="../classes/EventDispatcher.html#method_on">EventDispatcher</a>:
5281
5282
5283
5284 <a href="../files/createjs_events_EventDispatcher.js.html#l173"><code>on:173</code></a>
5285
5286 </p>
5287
5288
5289
5290
5291
5292 </div>
5293
5294 <div class="description">
5295 <p><p>A shortcut method for using addEventListener that makes it easier to specify an execution scope, have a listener
5296only run once, associate arbitrary data with the listener, and remove the listener.</p></p>
5297<p><p>This method works by creating an anonymous wrapper function and subscribing it with addEventListener.
5298The wrapper function is returned for use with <code>removeEventListener</code> (or <code>off</code>).</p></p>
5299<p><p><b>IMPORTANT:</b> To remove a listener added with <code>on</code>, you must pass in the returned wrapper function as the listener, or use
5300<a href="../classes/Event.html#method_remove" class="crosslink">remove</a>. Likewise, each time you call <code>on</code> a NEW wrapper function is subscribed, so multiple calls
5301to <code>on</code> with the same params will create multiple listeners.</p></p>
5302<h4>Example</h4>
5303
5304<pre class="code prettyprint"><code> var listener = myBtn.on("click", handleClick, null, false, {count:3});
5305 function handleClick(evt, data) {
5306 data.count -= 1;
5307 console.log(this == myBtn); // true - scope defaults to the dispatcher
5308 if (data.count == 0) {
5309 alert("clicked 3 times!");
5310 myBtn.off("click", listener);
5311 // alternately: evt.remove();
5312 }
5313 }</code></pre>
5314
5315 </div>
5316
5317
5318 <div class="params">
5319 <h4>Parameters:</h4>
5320
5321 <ul class="params-list">
5322
5323 <li class="param">
5324
5325 <code class="param-name">type</code>
5326 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
5327
5328
5329
5330
5331 <div class="param-description">
5332 <p>The string type of the event.</p>
5333
5334 </div>
5335
5336
5337 </li>
5338
5339 <li class="param">
5340
5341 <code class="param-name">listener</code>
5342 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
5343
5344
5345
5346
5347 <div class="param-description">
5348 <p>An object with a handleEvent method, or a function that will be called when
5349the event is dispatched.</p>
5350
5351 </div>
5352
5353
5354 </li>
5355
5356 <li class="param">
5357
5358 <code class="param-name optional">[scope]</code>
5359 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
5360 <span class="flag optional" title="This parameter is optional.">optional</span>
5361
5362
5363
5364
5365 <div class="param-description">
5366 <p>The scope to execute the listener in. Defaults to the dispatcher/currentTarget for function listeners, and to the listener itself for object listeners (ie. using handleEvent).</p>
5367
5368 </div>
5369
5370
5371 </li>
5372
5373 <li class="param">
5374
5375 <code class="param-name optional">[once=false]</code>
5376 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
5377 <span class="flag optional" title="This parameter is optional.">optional</span>
5378
5379
5380
5381
5382 <div class="param-description">
5383 <p>If true, the listener will remove itself after the first time it is triggered.</p>
5384
5385 </div>
5386
5387
5388 </li>
5389
5390 <li class="param">
5391
5392 <code class="param-name optional">[data]</code>
5393 <span class="type"></span>
5394 <span class="flag optional" title="This parameter is optional.">optional</span>
5395
5396
5397
5398
5399 <div class="param-description">
5400 <p>Arbitrary data that will be included as the second parameter when the listener is called.</p>
5401
5402 </div>
5403
5404
5405 </li>
5406
5407 <li class="param">
5408
5409 <code class="param-name optional">[useCapture=false]</code>
5410 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
5411 <span class="flag optional" title="This parameter is optional.">optional</span>
5412
5413
5414
5415
5416 <div class="param-description">
5417 <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
5418
5419 </div>
5420
5421
5422 </li>
5423
5424 </ul>
5425 </div>
5426
5427
5428
5429 <div class="returns">
5430 <h4>Returns:</h4>
5431
5432 <div class="returns-description">
5433
5434
5435 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a></span>:
5436
5437 <p>Returns the anonymous function that was created and assigned as the listener. This is needed to remove the listener later using .removeEventListener.</p>
5438
5439
5440 </div>
5441 </div>
5442
5443
5444
5445</div>
5446
5447
5448 <div id="method_removeAllEventListeners" class="method item inherited">
5449 <h3 class="name"><code>removeAllEventListeners</code></h3>
5450
5451
5452 <div class="args">
5453 <span class="paren">(</span><ul class="args-list inline commas">
5454
5455 <li class="arg">
5456
5457 <code class="optional">[type]</code>
5458
5459 </li>
5460
5461 </ul><span class="paren">)</span>
5462 </div>
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479 <div class="meta">
5480
5481
5482 <p>Inherited from
5483 <a href="../classes/EventDispatcher.html#method_removeAllEventListeners">EventDispatcher</a>:
5484
5485
5486
5487 <a href="../files/createjs_events_EventDispatcher.js.html#l263"><code>removeAllEventListeners:263</code></a>
5488
5489 </p>
5490
5491
5492
5493
5494
5495 </div>
5496
5497 <div class="description">
5498 <p><p>Removes all listeners for the specified type, or all listeners of all types.</p></p>
5499<h4>Example</h4>
5500
5501<pre class="code prettyprint"><code> // Remove all listeners
5502 displayObject.removeAllEventListeners();
5503
5504 // Remove all click listeners
5505 displayObject.removeAllEventListeners("click");</code></pre>
5506
5507 </div>
5508
5509
5510 <div class="params">
5511 <h4>Parameters:</h4>
5512
5513 <ul class="params-list">
5514
5515 <li class="param">
5516
5517 <code class="param-name optional">[type]</code>
5518 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
5519 <span class="flag optional" title="This parameter is optional.">optional</span>
5520
5521
5522
5523
5524 <div class="param-description">
5525 <p>The string type of the event. If omitted, all listeners for all types will be removed.</p>
5526
5527 </div>
5528
5529
5530 </li>
5531
5532 </ul>
5533 </div>
5534
5535
5536
5537
5538
5539</div>
5540
5541
5542 <div id="method_removeEventListener" class="method item inherited">
5543 <h3 class="name"><code>removeEventListener</code></h3>
5544
5545
5546 <div class="args">
5547 <span class="paren">(</span><ul class="args-list inline commas">
5548
5549 <li class="arg">
5550
5551 <code>type</code>
5552
5553 </li>
5554
5555 <li class="arg">
5556
5557 <code>listener</code>
5558
5559 </li>
5560
5561 <li class="arg">
5562
5563 <code class="optional">[useCapture]</code>
5564
5565 </li>
5566
5567 </ul><span class="paren">)</span>
5568 </div>
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585 <div class="meta">
5586
5587
5588 <p>Inherited from
5589 <a href="../classes/EventDispatcher.html#method_removeEventListener">EventDispatcher</a>:
5590
5591
5592
5593 <a href="../files/createjs_events_EventDispatcher.js.html#l219"><code>removeEventListener:219</code></a>
5594
5595 </p>
5596
5597
5598
5599
5600
5601 </div>
5602
5603 <div class="description">
5604 <p><p>Removes the specified event listener.</p></p>
5605<p><p><b>Important Note:</b> that you must pass the exact function reference used when the event was added. If a proxy
5606function, or function closure is used as the callback, the proxy/closure reference must be used - a new proxy or
5607closure will not work.</p></p>
5608<h4>Example</h4>
5609
5610<pre class="code prettyprint"><code> displayObject.removeEventListener("click", handleClick);</code></pre>
5611
5612 </div>
5613
5614
5615 <div class="params">
5616 <h4>Parameters:</h4>
5617
5618 <ul class="params-list">
5619
5620 <li class="param">
5621
5622 <code class="param-name">type</code>
5623 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
5624
5625
5626
5627
5628 <div class="param-description">
5629 <p>The string type of the event.</p>
5630
5631 </div>
5632
5633
5634 </li>
5635
5636 <li class="param">
5637
5638 <code class="param-name">listener</code>
5639 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function" class="crosslink external" target="_blank">Function</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
5640
5641
5642
5643
5644 <div class="param-description">
5645 <p>The listener function or object.</p>
5646
5647 </div>
5648
5649
5650 </li>
5651
5652 <li class="param">
5653
5654 <code class="param-name optional">[useCapture]</code>
5655 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
5656 <span class="flag optional" title="This parameter is optional.">optional</span>
5657
5658
5659
5660
5661 <div class="param-description">
5662 <p>For events that bubble, indicates whether to listen for the event in the capture or bubbling/target phase.</p>
5663
5664 </div>
5665
5666
5667 </li>
5668
5669 </ul>
5670 </div>
5671
5672
5673
5674
5675
5676</div>
5677
5678
5679 <div id="method_set" class="method item inherited">
5680 <h3 class="name"><code>set</code></h3>
5681
5682
5683 <div class="args">
5684 <span class="paren">(</span><ul class="args-list inline commas">
5685
5686 <li class="arg">
5687
5688 <code>props</code>
5689
5690 </li>
5691
5692 </ul><span class="paren">)</span>
5693 </div>
5694
5695
5696
5697 <span class="returns-inline">
5698 <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
5699 </span>
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711 <span class="flag chainable">chainable</span>
5712
5713
5714
5715
5716 <div class="meta">
5717
5718
5719 <p>Inherited from
5720 <a href="../classes/DisplayObject.html#method_set">DisplayObject</a>:
5721
5722
5723
5724 <a href="../files/easeljs_display_DisplayObject.js.html#l1071"><code>set:1071</code></a>
5725
5726 </p>
5727
5728
5729
5730
5731
5732 </div>
5733
5734 <div class="description">
5735 <p><p>Provides a chainable shortcut method for setting a number of properties on the instance.</p></p>
5736<h4>Example</h4>
5737
5738<pre class="code prettyprint"><code> var myGraphics = new createjs.Graphics().beginFill("#ff0000").drawCircle(0, 0, 25);
5739 var shape = stage.addChild(new Shape()).set({graphics:myGraphics, x:100, y:100, alpha:0.5});</code></pre>
5740
5741 </div>
5742
5743
5744 <div class="params">
5745 <h4>Parameters:</h4>
5746
5747 <ul class="params-list">
5748
5749 <li class="param">
5750
5751 <code class="param-name">props</code>
5752 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
5753
5754
5755
5756
5757 <div class="param-description">
5758 <p>A generic object containing properties to copy to the DisplayObject instance.</p>
5759
5760 </div>
5761
5762
5763 </li>
5764
5765 </ul>
5766 </div>
5767
5768
5769
5770 <div class="returns">
5771 <h4>Returns:</h4>
5772
5773 <div class="returns-description">
5774
5775
5776 <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
5777
5778 <p>Returns the instance the method is called on (useful for chaining calls.)</p>
5779
5780
5781 </div>
5782 </div>
5783
5784
5785
5786</div>
5787
5788
5789 <div id="method_setBounds" class="method item inherited">
5790 <h3 class="name"><code>setBounds</code></h3>
5791
5792
5793 <div class="args">
5794 <span class="paren">(</span><ul class="args-list inline commas">
5795
5796 <li class="arg">
5797
5798 <code>x</code>
5799
5800 </li>
5801
5802 <li class="arg">
5803
5804 <code>y</code>
5805
5806 </li>
5807
5808 <li class="arg">
5809
5810 <code>width</code>
5811
5812 </li>
5813
5814 <li class="arg">
5815
5816 <code>height</code>
5817
5818 </li>
5819
5820 </ul><span class="paren">)</span>
5821 </div>
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838 <div class="meta">
5839
5840
5841 <p>Inherited from
5842 <a href="../classes/DisplayObject.html#method_setBounds">DisplayObject</a>:
5843
5844
5845
5846 <a href="../files/easeljs_display_DisplayObject.js.html#l1174"><code>setBounds:1174</code></a>
5847
5848 </p>
5849
5850
5851
5852
5853
5854 </div>
5855
5856 <div class="description">
5857 <p>Allows you to manually specify the bounds of an object that either cannot calculate their own bounds (ex. Shape &
5858Text) for future reference, or so the object can be included in Container bounds. Manually set bounds will always
5859override calculated bounds.</p>
5860<p>The bounds should be specified in the object's local (untransformed) coordinates. For example, a Shape instance
5861with a 25px radius circle centered at 0,0 would have bounds of (-25, -25, 50, 50).</p>
5862
5863 </div>
5864
5865
5866 <div class="params">
5867 <h4>Parameters:</h4>
5868
5869 <ul class="params-list">
5870
5871 <li class="param">
5872
5873 <code class="param-name">x</code>
5874 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
5875
5876
5877
5878
5879 <div class="param-description">
5880 <p>The x origin of the bounds. Pass null to remove the manual bounds.</p>
5881
5882 </div>
5883
5884
5885 </li>
5886
5887 <li class="param">
5888
5889 <code class="param-name">y</code>
5890 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
5891
5892
5893
5894
5895 <div class="param-description">
5896 <p>The y origin of the bounds.</p>
5897
5898 </div>
5899
5900
5901 </li>
5902
5903 <li class="param">
5904
5905 <code class="param-name">width</code>
5906 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
5907
5908
5909
5910
5911 <div class="param-description">
5912 <p>The width of the bounds.</p>
5913
5914 </div>
5915
5916
5917 </li>
5918
5919 <li class="param">
5920
5921 <code class="param-name">height</code>
5922 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
5923
5924
5925
5926
5927 <div class="param-description">
5928 <p>The height of the bounds.</p>
5929
5930 </div>
5931
5932
5933 </li>
5934
5935 </ul>
5936 </div>
5937
5938
5939
5940
5941
5942</div>
5943
5944
5945 <div id="method_setTransform" class="method item inherited">
5946 <h3 class="name"><code>setTransform</code></h3>
5947
5948
5949 <div class="args">
5950 <span class="paren">(</span><ul class="args-list inline commas">
5951
5952 <li class="arg">
5953
5954 <code class="optional">[x=0]</code>
5955
5956 </li>
5957
5958 <li class="arg">
5959
5960 <code class="optional">[y=0]</code>
5961
5962 </li>
5963
5964 <li class="arg">
5965
5966 <code class="optional">[scaleX=1]</code>
5967
5968 </li>
5969
5970 <li class="arg">
5971
5972 <code class="optional">[scaleY=1]</code>
5973
5974 </li>
5975
5976 <li class="arg">
5977
5978 <code class="optional">[rotation=0]</code>
5979
5980 </li>
5981
5982 <li class="arg">
5983
5984 <code class="optional">[skewX=0]</code>
5985
5986 </li>
5987
5988 <li class="arg">
5989
5990 <code class="optional">[skewY=0]</code>
5991
5992 </li>
5993
5994 <li class="arg">
5995
5996 <code class="optional">[regX=0]</code>
5997
5998 </li>
5999
6000 <li class="arg">
6001
6002 <code class="optional">[regY=0]</code>
6003
6004 </li>
6005
6006 </ul><span class="paren">)</span>
6007 </div>
6008
6009
6010
6011 <span class="returns-inline">
6012 <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
6013 </span>
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025 <span class="flag chainable">chainable</span>
6026
6027
6028
6029
6030 <div class="meta">
6031
6032
6033 <p>Inherited from
6034 <a href="../classes/DisplayObject.html#method_setTransform">DisplayObject</a>:
6035
6036
6037
6038 <a href="../files/easeljs_display_DisplayObject.js.html#l957"><code>setTransform:957</code></a>
6039
6040 </p>
6041
6042
6043
6044
6045
6046 </div>
6047
6048 <div class="description">
6049 <p><p>Shortcut method to quickly set the transform properties on the display object. All parameters are optional.
6050Omitted parameters will have the default value set.</p></p>
6051<h4>Example</h4>
6052
6053<pre class="code prettyprint"><code> displayObject.setTransform(100, 100, 2, 2);</code></pre>
6054
6055 </div>
6056
6057
6058 <div class="params">
6059 <h4>Parameters:</h4>
6060
6061 <ul class="params-list">
6062
6063 <li class="param">
6064
6065 <code class="param-name optional">[x=0]</code>
6066 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6067 <span class="flag optional" title="This parameter is optional.">optional</span>
6068
6069
6070
6071
6072 <div class="param-description">
6073 <p>The horizontal translation (x position) in pixels</p>
6074
6075 </div>
6076
6077
6078 </li>
6079
6080 <li class="param">
6081
6082 <code class="param-name optional">[y=0]</code>
6083 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6084 <span class="flag optional" title="This parameter is optional.">optional</span>
6085
6086
6087
6088
6089 <div class="param-description">
6090 <p>The vertical translation (y position) in pixels</p>
6091
6092 </div>
6093
6094
6095 </li>
6096
6097 <li class="param">
6098
6099 <code class="param-name optional">[scaleX=1]</code>
6100 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6101 <span class="flag optional" title="This parameter is optional.">optional</span>
6102
6103
6104
6105
6106 <div class="param-description">
6107 <p>The horizontal scale, as a percentage of 1</p>
6108
6109 </div>
6110
6111
6112 </li>
6113
6114 <li class="param">
6115
6116 <code class="param-name optional">[scaleY=1]</code>
6117 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6118 <span class="flag optional" title="This parameter is optional.">optional</span>
6119
6120
6121
6122
6123 <div class="param-description">
6124 <p>the vertical scale, as a percentage of 1</p>
6125
6126 </div>
6127
6128
6129 </li>
6130
6131 <li class="param">
6132
6133 <code class="param-name optional">[rotation=0]</code>
6134 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6135 <span class="flag optional" title="This parameter is optional.">optional</span>
6136
6137
6138
6139
6140 <div class="param-description">
6141 <p>The rotation, in degrees</p>
6142
6143 </div>
6144
6145
6146 </li>
6147
6148 <li class="param">
6149
6150 <code class="param-name optional">[skewX=0]</code>
6151 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6152 <span class="flag optional" title="This parameter is optional.">optional</span>
6153
6154
6155
6156
6157 <div class="param-description">
6158 <p>The horizontal skew factor</p>
6159
6160 </div>
6161
6162
6163 </li>
6164
6165 <li class="param">
6166
6167 <code class="param-name optional">[skewY=0]</code>
6168 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6169 <span class="flag optional" title="This parameter is optional.">optional</span>
6170
6171
6172
6173
6174 <div class="param-description">
6175 <p>The vertical skew factor</p>
6176
6177 </div>
6178
6179
6180 </li>
6181
6182 <li class="param">
6183
6184 <code class="param-name optional">[regX=0]</code>
6185 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6186 <span class="flag optional" title="This parameter is optional.">optional</span>
6187
6188
6189
6190
6191 <div class="param-description">
6192 <p>The horizontal registration point in pixels</p>
6193
6194 </div>
6195
6196
6197 </li>
6198
6199 <li class="param">
6200
6201 <code class="param-name optional">[regY=0]</code>
6202 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6203 <span class="flag optional" title="This parameter is optional.">optional</span>
6204
6205
6206
6207
6208 <div class="param-description">
6209 <p>The vertical registration point in pixels</p>
6210
6211 </div>
6212
6213
6214 </li>
6215
6216 </ul>
6217 </div>
6218
6219
6220
6221 <div class="returns">
6222 <h4>Returns:</h4>
6223
6224 <div class="returns-description">
6225
6226
6227 <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>:
6228
6229 <p>Returns this instance. Useful for chaining commands.</p>
6230
6231
6232 </div>
6233 </div>
6234
6235
6236
6237</div>
6238
6239
6240 <div id="method_toString" class="method item">
6241 <h3 class="name"><code>toString</code></h3>
6242
6243
6244 <span class="paren">()</span>
6245
6246
6247
6248 <span class="returns-inline">
6249 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
6250 </span>
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265 <div class="meta">
6266
6267 <p>Inherited from
6268 <a href="../classes/EventDispatcher.html#method_toString">
6269 EventDispatcher
6270 </a>
6271
6272 but overwritten in
6273
6274
6275
6276 <a href="../files/easeljs_display_Text.js.html#l289"><code>toString:289</code></a>
6277
6278 </p>
6279
6280
6281
6282
6283
6284 </div>
6285
6286 <div class="description">
6287 <p>Returns a string representation of this object.</p>
6288
6289 </div>
6290
6291
6292
6293
6294 <div class="returns">
6295 <h4>Returns:</h4>
6296
6297 <div class="returns-description">
6298
6299
6300 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
6301
6302 <p>a string representation of the instance.</p>
6303
6304
6305 </div>
6306 </div>
6307
6308
6309
6310</div>
6311
6312
6313 <div id="method_uncache" class="method item inherited">
6314 <h3 class="name"><code>uncache</code></h3>
6315
6316
6317 <span class="paren">()</span>
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334 <div class="meta">
6335
6336
6337 <p>Inherited from
6338 <a href="../classes/DisplayObject.html#method_uncache">DisplayObject</a>:
6339
6340
6341
6342 <a href="../files/easeljs_display_DisplayObject.js.html#l864"><code>uncache:864</code></a>
6343
6344 </p>
6345
6346
6347
6348
6349
6350 </div>
6351
6352 <div class="description">
6353 <p>Clears the current cache. See <a href="../classes/DisplayObject.html#method_cache" class="crosslink">cache</a> for more information.</p>
6354
6355 </div>
6356
6357
6358
6359
6360
6361
6362</div>
6363
6364
6365 <div id="method_updateCache" class="method item inherited">
6366 <h3 class="name"><code>updateCache</code></h3>
6367
6368
6369 <div class="args">
6370 <span class="paren">(</span><ul class="args-list inline commas">
6371
6372 <li class="arg">
6373
6374 <code>compositeOperation</code>
6375
6376 </li>
6377
6378 </ul><span class="paren">)</span>
6379 </div>
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393
6394
6395
6396 <div class="meta">
6397
6398
6399 <p>Inherited from
6400 <a href="../classes/DisplayObject.html#method_updateCache">DisplayObject</a>:
6401
6402
6403
6404 <a href="../files/easeljs_display_DisplayObject.js.html#l835"><code>updateCache:835</code></a>
6405
6406 </p>
6407
6408
6409
6410
6411
6412 </div>
6413
6414 <div class="description">
6415 <p>Redraws the display object to its cache. Calling updateCache without an active cache will throw an error.
6416If compositeOperation is null the current cache will be cleared prior to drawing. Otherwise the display object
6417will be drawn over the existing cache using the specified compositeOperation.</p>
6418<p><h4>Example</h4>
6419Clear the current graphics of a cached shape, draw some new instructions, and then update the cache. The new line
6420will be drawn on top of the old one.</p>
6421<pre class="code prettyprint"><code> // Not shown: Creating the shape, and caching it.
6422 shapeInstance.clear();
6423 shapeInstance.setStrokeStyle(3).beginStroke("#ff0000").moveTo(100, 100).lineTo(200,200);
6424 shapeInstance.updateCache();</code></pre>
6425<p>In previous versions caching was handled on DisplayObject but has since been moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a>.
6426This allows for easier interaction and alternate cache methods like WebGL and <a href="../classes/StageGL.html" class="crosslink">StageGL</a>.</p>
6427
6428 </div>
6429
6430
6431 <div class="params">
6432 <h4>Parameters:</h4>
6433
6434 <ul class="params-list">
6435
6436 <li class="param">
6437
6438 <code class="param-name">compositeOperation</code>
6439 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
6440
6441
6442
6443
6444 <div class="param-description">
6445 <p>The compositeOperation to use, or null to clear the cache and redraw it.
6446<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
6447whatwg spec on compositing</a>.</p>
6448
6449 </div>
6450
6451
6452 </li>
6453
6454 </ul>
6455 </div>
6456
6457
6458
6459
6460
6461</div>
6462
6463
6464 <div id="method_updateContext" class="method item inherited">
6465 <h3 class="name"><code>updateContext</code></h3>
6466
6467
6468 <div class="args">
6469 <span class="paren">(</span><ul class="args-list inline commas">
6470
6471 <li class="arg">
6472
6473 <code>ctx</code>
6474
6475 </li>
6476
6477 </ul><span class="paren">)</span>
6478 </div>
6479
6480
6481
6482
6483
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495 <div class="meta">
6496
6497
6498 <p>Inherited from
6499 <a href="../classes/DisplayObject.html#method_updateContext">DisplayObject</a>:
6500
6501
6502
6503 <a href="../files/easeljs_display_DisplayObject.js.html#l760"><code>updateContext:760</code></a>
6504
6505 </p>
6506
6507
6508
6509
6510
6511 </div>
6512
6513 <div class="description">
6514 <p>Applies this display object's transformation, alpha, globalCompositeOperation, clipping path (mask), and shadow
6515to the specified context. This is typically called prior to <a href="../classes/DisplayObject.html#method_draw" class="crosslink">draw</a>.</p>
6516
6517 </div>
6518
6519
6520 <div class="params">
6521 <h4>Parameters:</h4>
6522
6523 <ul class="params-list">
6524
6525 <li class="param">
6526
6527 <code class="param-name">ctx</code>
6528 <span class="type">CanvasRenderingContext2D</span>
6529
6530
6531
6532
6533 <div class="param-description">
6534 <p>The canvas 2D to update.</p>
6535
6536 </div>
6537
6538
6539 </li>
6540
6541 </ul>
6542 </div>
6543
6544
6545
6546
6547
6548</div>
6549
6550
6551 <div id="method_willTrigger" class="method item inherited">
6552 <h3 class="name"><code>willTrigger</code></h3>
6553
6554
6555 <div class="args">
6556 <span class="paren">(</span><ul class="args-list inline commas">
6557
6558 <li class="arg">
6559
6560 <code>type</code>
6561
6562 </li>
6563
6564 </ul><span class="paren">)</span>
6565 </div>
6566
6567
6568
6569 <span class="returns-inline">
6570 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
6571 </span>
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586 <div class="meta">
6587
6588
6589 <p>Inherited from
6590 <a href="../classes/EventDispatcher.html#method_willTrigger">EventDispatcher</a>:
6591
6592
6593
6594 <a href="../files/createjs_events_EventDispatcher.js.html#l350"><code>willTrigger:350</code></a>
6595
6596 </p>
6597
6598
6599
6600
6601
6602 </div>
6603
6604 <div class="description">
6605 <p>Indicates whether there is at least one listener for the specified event type on this object or any of its
6606ancestors (parent, parent's parent, etc). A return value of true indicates that if a bubbling event of the
6607specified type is dispatched from this object, it will trigger at least one listener.</p>
6608<p>This is similar to <a href="../classes/EventDispatcher.html#method_hasEventListener" class="crosslink">hasEventListener</a>, but it searches the entire
6609event flow for a listener, not just this object.</p>
6610
6611 </div>
6612
6613
6614 <div class="params">
6615 <h4>Parameters:</h4>
6616
6617 <ul class="params-list">
6618
6619 <li class="param">
6620
6621 <code class="param-name">type</code>
6622 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
6623
6624
6625
6626
6627 <div class="param-description">
6628 <p>The string type of the event.</p>
6629
6630 </div>
6631
6632
6633 </li>
6634
6635 </ul>
6636 </div>
6637
6638
6639
6640 <div class="returns">
6641 <h4>Returns:</h4>
6642
6643 <div class="returns-description">
6644
6645
6646 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
6647
6648 <p>Returns <code>true</code> if there is at least one listener for the specified event.</p>
6649
6650
6651 </div>
6652 </div>
6653
6654
6655
6656</div>
6657
6658
6659 </div>
6660
6661
6662
6663 <div id="properties" class="api-class-tabpanel">
6664 <h2 class="off-left">Properties</h2>
6665
6666
6667 <div id="property__bounds" class="property item protected inherited">
6668 <h3 class="name"><code>_bounds</code></h3>
6669 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
6670
6671
6672
6673
6674 <span class="flag protected">protected</span>
6675
6676
6677
6678
6679
6680
6681
6682
6683 <div class="meta">
6684
6685
6686 <p>Inherited from
6687 <a href="../classes/DisplayObject.html#property__bounds">DisplayObject</a>:
6688
6689
6690
6691 <a href="../files/easeljs_display_DisplayObject.js.html#l443"><code>_bounds:443</code></a>
6692
6693 </p>
6694
6695
6696
6697
6698 </div>
6699
6700 <div class="description">
6701
6702 </div>
6703
6704
6705 <p><strong>Default:</strong> null</p>
6706
6707
6708
6709
6710
6711</div>
6712
6713
6714 <div id="property__cacheDataURL" class="property item protected deprecated inherited">
6715 <h3 class="name"><code>_cacheDataURL</code></h3>
6716 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
6717
6718
6719 <span class="flag deprecated">deprecated</span>
6720
6721
6722
6723 <span class="flag protected">protected</span>
6724
6725
6726
6727
6728
6729
6730
6731
6732 <div class="meta">
6733
6734
6735 <p>Inherited from
6736 <a href="../classes/DisplayObject.html#property__cacheDataURL">DisplayObject</a>:
6737
6738
6739
6740 <a href="../files/easeljs_display_DisplayObject.js.html#l418"><code>_cacheDataURL:418</code></a>
6741
6742 </p>
6743
6744
6745
6746
6747 </div>
6748
6749 <div class="description">
6750 <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
6751
6752 </div>
6753
6754
6755 <p><strong>Default:</strong> null</p>
6756
6757
6758
6759
6760
6761</div>
6762
6763
6764 <div id="property__cacheDataURLID" class="property item protected deprecated inherited">
6765 <h3 class="name"><code>_cacheDataURLID</code></h3>
6766 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6767
6768
6769 <span class="flag deprecated">deprecated</span>
6770
6771
6772
6773 <span class="flag protected">protected</span>
6774
6775
6776
6777
6778
6779
6780
6781
6782 <div class="meta">
6783
6784
6785 <p>Inherited from
6786 <a href="../classes/DisplayObject.html#property__cacheDataURLID">DisplayObject</a>:
6787
6788
6789
6790 <a href="../files/easeljs_display_DisplayObject.js.html#l409"><code>_cacheDataURLID:409</code></a>
6791
6792 </p>
6793
6794
6795
6796
6797 </div>
6798
6799 <div class="description">
6800 <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
6801
6802 </div>
6803
6804
6805 <p><strong>Default:</strong> 0</p>
6806
6807
6808
6809
6810
6811</div>
6812
6813
6814 <div id="property__cacheScale" class="property item protected deprecated inherited">
6815 <h3 class="name"><code>_cacheScale</code></h3>
6816 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
6817
6818
6819 <span class="flag deprecated">deprecated</span>
6820
6821
6822
6823 <span class="flag protected">protected</span>
6824
6825
6826
6827
6828
6829
6830
6831
6832 <div class="meta">
6833
6834
6835 <p>Inherited from
6836 <a href="../classes/DisplayObject.html#property__cacheScale">DisplayObject</a>:
6837
6838
6839
6840 <a href="../files/easeljs_display_DisplayObject.js.html#l400"><code>_cacheScale:400</code></a>
6841
6842 </p>
6843
6844
6845
6846
6847 </div>
6848
6849 <div class="description">
6850 <p>Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
6851
6852 </div>
6853
6854
6855 <p><strong>Default:</strong> 1</p>
6856
6857
6858
6859
6860
6861</div>
6862
6863
6864 <div id="property__captureListeners" class="property item protected inherited">
6865 <h3 class="name"><code>_captureListeners</code></h3>
6866 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
6867
6868
6869
6870
6871 <span class="flag protected">protected</span>
6872
6873
6874
6875
6876
6877
6878
6879
6880 <div class="meta">
6881
6882
6883 <p>Inherited from
6884 <a href="../classes/EventDispatcher.html#property__captureListeners">EventDispatcher</a>:
6885
6886
6887
6888 <a href="../files/createjs_events_EventDispatcher.js.html#l106"><code>_captureListeners:106</code></a>
6889
6890 </p>
6891
6892
6893
6894
6895 </div>
6896
6897 <div class="description">
6898
6899 </div>
6900
6901
6902
6903
6904
6905
6906</div>
6907
6908
6909 <div id="property__listeners" class="property item protected inherited">
6910 <h3 class="name"><code>_listeners</code></h3>
6911 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
6912
6913
6914
6915
6916 <span class="flag protected">protected</span>
6917
6918
6919
6920
6921
6922
6923
6924
6925 <div class="meta">
6926
6927
6928 <p>Inherited from
6929 <a href="../classes/EventDispatcher.html#property__listeners">EventDispatcher</a>:
6930
6931
6932
6933 <a href="../files/createjs_events_EventDispatcher.js.html#l99"><code>_listeners:99</code></a>
6934
6935 </p>
6936
6937
6938
6939
6940 </div>
6941
6942 <div class="description">
6943
6944 </div>
6945
6946
6947
6948
6949
6950
6951</div>
6952
6953
6954 <div id="property__props" class="property item protected inherited">
6955 <h3 class="name"><code>_props</code></h3>
6956 <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
6957
6958
6959
6960
6961 <span class="flag protected">protected</span>
6962
6963
6964
6965
6966
6967
6968
6969
6970 <div class="meta">
6971
6972
6973 <p>Inherited from
6974 <a href="../classes/DisplayObject.html#property__props">DisplayObject</a>:
6975
6976
6977
6978 <a href="../files/easeljs_display_DisplayObject.js.html#l427"><code>_props:427</code></a>
6979
6980 </p>
6981
6982
6983
6984
6985 </div>
6986
6987 <div class="description">
6988
6989 </div>
6990
6991
6992 <p><strong>Default:</strong> null</p>
6993
6994
6995
6996
6997
6998</div>
6999
7000
7001 <div id="property__rectangle" class="property item protected inherited">
7002 <h3 class="name"><code>_rectangle</code></h3>
7003 <span class="type"><a href="../classes/Rectangle.html" class="crosslink">Rectangle</a></span>
7004
7005
7006
7007
7008 <span class="flag protected">protected</span>
7009
7010
7011
7012
7013
7014
7015
7016
7017 <div class="meta">
7018
7019
7020 <p>Inherited from
7021 <a href="../classes/DisplayObject.html#property__rectangle">DisplayObject</a>:
7022
7023
7024
7025 <a href="../files/easeljs_display_DisplayObject.js.html#l435"><code>_rectangle:435</code></a>
7026
7027 </p>
7028
7029
7030
7031
7032 </div>
7033
7034 <div class="description">
7035
7036 </div>
7037
7038
7039 <p><strong>Default:</strong> null</p>
7040
7041
7042
7043
7044
7045</div>
7046
7047
7048 <div id="property__webGLRenderStyle" class="property item protected inherited">
7049 <h3 class="name"><code>_webGLRenderStyle</code></h3>
7050 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
7051
7052
7053
7054
7055 <span class="flag protected">protected</span>
7056
7057
7058
7059
7060
7061
7062
7063
7064 <div class="meta">
7065
7066
7067 <p>Inherited from
7068 <a href="../classes/DisplayObject.html#property__webGLRenderStyle">DisplayObject</a>:
7069
7070
7071
7072 <a href="../files/easeljs_display_DisplayObject.js.html#l451"><code>_webGLRenderStyle:451</code></a>
7073
7074 </p>
7075
7076
7077
7078
7079 </div>
7080
7081 <div class="description">
7082 <p>Where StageGL should look for required display properties, matters only for leaf display objects. Containers
7083or cached objects won't use this property, it's for native display of terminal elements.</p>
7084
7085 </div>
7086
7087
7088 <p><strong>Default:</strong> 0</p>
7089
7090
7091
7092
7093
7094</div>
7095
7096
7097 <div id="property__workingContext" class="property item private">
7098 <h3 class="name"><code>_workingContext</code></h3>
7099 <span class="type">CanvasRenderingContext2D</span>
7100
7101
7102
7103
7104 <span class="flag private">private</span>
7105
7106
7107
7108
7109
7110
7111
7112
7113 <div class="meta">
7114
7115
7116
7117 <p>
7118
7119 Defined in
7120
7121
7122
7123
7124 <a href="../files/easeljs_display_Text.js.html#l156"><code>_workingContext:156</code></a>
7125
7126 </p>
7127
7128
7129
7130
7131 </div>
7132
7133 <div class="description">
7134
7135 </div>
7136
7137
7138
7139
7140
7141
7142</div>
7143
7144
7145 <div id="property_alpha" class="property item inherited">
7146 <h3 class="name"><code>alpha</code></h3>
7147 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159 <div class="meta">
7160
7161
7162 <p>Inherited from
7163 <a href="../classes/DisplayObject.html#property_alpha">DisplayObject</a>:
7164
7165
7166
7167 <a href="../files/easeljs_display_DisplayObject.js.html#l144"><code>alpha:144</code></a>
7168
7169 </p>
7170
7171
7172
7173
7174 </div>
7175
7176 <div class="description">
7177 <p>The alpha (transparency) for this display object. 0 is fully transparent, 1 is fully opaque.</p>
7178
7179 </div>
7180
7181
7182 <p><strong>Default:</strong> 1</p>
7183
7184
7185
7186
7187
7188</div>
7189
7190
7191 <div id="property_bitmapCache" class="property item inherited">
7192 <h3 class="name"><code>bitmapCache</code></h3>
7193 <span class="type"><a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></span>
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 <span class="flag readonly">readonly</span>
7205
7206
7207 <div class="meta">
7208
7209
7210 <p>Inherited from
7211 <a href="../classes/DisplayObject.html#property_bitmapCache">DisplayObject</a>:
7212
7213
7214
7215 <a href="../files/easeljs_display_DisplayObject.js.html#l162"><code>bitmapCache:162</code></a>
7216
7217 </p>
7218
7219
7220
7221
7222 </div>
7223
7224 <div class="description">
7225 <p>If a cache has been made, this returns the class that is managing the cacheCanvas and its properties. See <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a>
7226for more information. Use this to control, inspect, and change the cache. In special circumstances this may be a modified or subclassed BitmapCache.</p>
7227
7228 </div>
7229
7230
7231 <p><strong>Default:</strong> null</p>
7232
7233
7234
7235
7236
7237</div>
7238
7239
7240 <div id="property_cacheCanvas" class="property item inherited">
7241 <h3 class="name"><code>cacheCanvas</code></h3>
7242 <span class="type">HTMLCanvasElement | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253 <span class="flag readonly">readonly</span>
7254
7255
7256 <div class="meta">
7257
7258
7259 <p>Inherited from
7260 <a href="../classes/DisplayObject.html#property_cacheCanvas">DisplayObject</a>:
7261
7262
7263
7264 <a href="../files/easeljs_display_DisplayObject.js.html#l152"><code>cacheCanvas:152</code></a>
7265
7266 </p>
7267
7268
7269
7270
7271 </div>
7272
7273 <div class="description">
7274 <p>If a cache is active, this returns the canvas that holds the image of this display object. See <a href="../classes/DisplayObject.html#method_cache" class="crosslink">cache</a>
7275for more information. Use this to display the result of a cache. This will be a HTMLCanvasElement unless special cache rules have been deliberately enabled for this cache.</p>
7276
7277 </div>
7278
7279
7280 <p><strong>Default:</strong> null</p>
7281
7282
7283
7284
7285
7286</div>
7287
7288
7289 <div id="property_cacheID" class="property item deprecated inherited">
7290 <h3 class="name"><code>cacheID</code></h3>
7291 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
7292
7293
7294 <span class="flag deprecated">deprecated</span>
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305 <div class="meta">
7306
7307
7308 <p>Inherited from
7309 <a href="../classes/DisplayObject.html#property_cacheID">DisplayObject</a>:
7310
7311
7312
7313 <a href="../files/easeljs_display_DisplayObject.js.html#l695"><code>cacheID:695</code></a>
7314
7315 </p>
7316
7317
7318
7319
7320 </div>
7321
7322 <div class="description">
7323 <p>Returns an ID number that uniquely identifies the current cache for this display object. This can be used to
7324determine if the cache has changed since a previous check.
7325Moved to <a href="../classes/BitmapCache.html" class="crosslink">BitmapCache</a></p>
7326
7327 </div>
7328
7329
7330 <p><strong>Default:</strong> 0</p>
7331
7332
7333
7334
7335
7336</div>
7337
7338
7339 <div id="property_color" class="property item">
7340 <h3 class="name"><code>color</code></h3>
7341 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353 <div class="meta">
7354
7355
7356
7357 <p>
7358
7359 Defined in
7360
7361
7362
7363
7364 <a href="../files/easeljs_display_Text.js.html#l89"><code>color:89</code></a>
7365
7366 </p>
7367
7368
7369
7370
7371 </div>
7372
7373 <div class="description">
7374 <p>The color to draw the text in. Any valid value for the CSS color attribute is acceptable (ex. "#F00"). Default is "#000".
7375It will also accept valid canvas fillStyle values.</p>
7376
7377 </div>
7378
7379
7380
7381
7382
7383
7384</div>
7385
7386
7387 <div id="property_compositeOperation" class="property item inherited">
7388 <h3 class="name"><code>compositeOperation</code></h3>
7389 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399
7400
7401 <div class="meta">
7402
7403
7404 <p>Inherited from
7405 <a href="../classes/DisplayObject.html#property_compositeOperation">DisplayObject</a>:
7406
7407
7408
7409 <a href="../files/easeljs_display_DisplayObject.js.html#l330"><code>compositeOperation:330</code></a>
7410
7411 </p>
7412
7413
7414
7415
7416 </div>
7417
7418 <div class="description">
7419 <p>The composite operation indicates how the pixels of this display object will be composited with the elements
7420behind it. If <code>null</code>, this property is inherited from the parent container. For more information, read the
7421<a href="https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation">
7422whatwg spec on compositing</a>. For a list of supported compositeOperation value, visit
7423<a href="https://drafts.fxtf.org/compositing/">the W3C draft on Compositing and Blending</a>.</p>
7424
7425 </div>
7426
7427
7428 <p><strong>Default:</strong> null</p>
7429
7430
7431
7432
7433
7434</div>
7435
7436
7437 <div id="property_cursor" class="property item inherited">
7438 <h3 class="name"><code>cursor</code></h3>
7439 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451 <div class="meta">
7452
7453
7454 <p>Inherited from
7455 <a href="../classes/DisplayObject.html#property_cursor">DisplayObject</a>:
7456
7457
7458
7459 <a href="../files/easeljs_display_DisplayObject.js.html#l388"><code>cursor:388</code></a>
7460
7461 </p>
7462
7463
7464
7465
7466 </div>
7467
7468 <div class="description">
7469 <p>A CSS cursor (ex. "pointer", "help", "text", etc) that will be displayed when the user hovers over this display
7470object. You must enable mouseover events using the <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a> method to
7471use this property. Setting a non-null cursor on a Container will override the cursor set on its descendants.</p>
7472
7473 </div>
7474
7475
7476 <p><strong>Default:</strong> null</p>
7477
7478
7479
7480
7481
7482</div>
7483
7484
7485 <div id="property_filters" class="property item inherited">
7486 <h3 class="name"><code>filters</code></h3>
7487 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499 <div class="meta">
7500
7501
7502 <p>Inherited from
7503 <a href="../classes/DisplayObject.html#property_filters">DisplayObject</a>:
7504
7505
7506
7507 <a href="../files/easeljs_display_DisplayObject.js.html#l352"><code>filters:352</code></a>
7508
7509 </p>
7510
7511
7512
7513
7514 </div>
7515
7516 <div class="description">
7517 <p>An array of Filter objects to apply to this display object. Filters are only applied / updated when Cache
7518or UpdateCache is called on the display object, and only apply to the area that is
7519cached.</p>
7520
7521 </div>
7522
7523
7524 <p><strong>Default:</strong> null</p>
7525
7526
7527
7528
7529
7530</div>
7531
7532
7533 <div id="property_font" class="property item">
7534 <h3 class="name"><code>font</code></h3>
7535 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547 <div class="meta">
7548
7549
7550
7551 <p>
7552
7553 Defined in
7554
7555
7556
7557
7558 <a href="../files/easeljs_display_Text.js.html#l82"><code>font:82</code></a>
7559
7560 </p>
7561
7562
7563
7564
7565 </div>
7566
7567 <div class="description">
7568 <p>The font style to use. Any valid value for the CSS font attribute is acceptable (ex. "bold 36px Arial").</p>
7569
7570 </div>
7571
7572
7573
7574
7575
7576
7577</div>
7578
7579
7580 <div id="property_H_OFFSETS" class="property item protected">
7581 <h3 class="name"><code>H_OFFSETS</code></h3>
7582 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
7583
7584
7585
7586
7587 <span class="flag protected">protected</span>
7588
7589
7590
7591
7592
7593 <span class="flag static">static</span>
7594
7595
7596
7597
7598 <div class="meta">
7599
7600
7601
7602 <p>
7603
7604 Defined in
7605
7606
7607
7608
7609 <a href="../files/easeljs_display_Text.js.html#l175"><code>H_OFFSETS:175</code></a>
7610
7611 </p>
7612
7613
7614
7615
7616 </div>
7617
7618 <div class="description">
7619 <p>Lookup table for the ratio to offset bounds y calculations based on the textBaseline property.</p>
7620
7621 </div>
7622
7623
7624
7625
7626
7627
7628</div>
7629
7630
7631 <div id="property_H_OFFSETS" class="property item protected">
7632 <h3 class="name"><code>H_OFFSETS</code></h3>
7633 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
7634
7635
7636
7637
7638 <span class="flag protected">protected</span>
7639
7640
7641
7642
7643
7644 <span class="flag static">static</span>
7645
7646
7647
7648
7649 <div class="meta">
7650
7651
7652
7653 <p>
7654
7655 Defined in
7656
7657
7658
7659
7660 <a href="../files/easeljs_display_Text.js.html#l166"><code>H_OFFSETS:166</code></a>
7661
7662 </p>
7663
7664
7665
7666
7667 </div>
7668
7669 <div class="description">
7670 <p>Lookup table for the ratio to offset bounds x calculations based on the textAlign property.</p>
7671
7672 </div>
7673
7674
7675
7676
7677
7678
7679</div>
7680
7681
7682 <div id="property_hitArea" class="property item inherited">
7683 <h3 class="name"><code>hitArea</code></h3>
7684 <span class="type"><a href="../classes/DisplayObject.html" class="crosslink">DisplayObject</a></span>
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696 <div class="meta">
7697
7698
7699 <p>Inherited from
7700 <a href="../classes/DisplayObject.html#property_hitArea">DisplayObject</a>:
7701
7702
7703
7704 <a href="../files/easeljs_display_DisplayObject.js.html#l371"><code>hitArea:371</code></a>
7705
7706 </p>
7707
7708
7709
7710
7711 </div>
7712
7713 <div class="description">
7714 <p>A display object that will be tested when checking mouse interactions or testing <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>.
7715The hit area will have its transformation applied relative to this display object's coordinate space (as though
7716the hit test object were a child of this display object and relative to its regX/Y). The hitArea will be tested
7717using only its own <code>alpha</code> value regardless of the alpha value on the target display object, or the target's
7718ancestors (parents).</p>
7719<p>If set on a <a href="../classes/Container.html" class="crosslink">Container</a>, children of the Container will not receive mouse events.
7720This is similar to setting MouseChildren to false.</p>
7721<p>Note that hitArea is NOT currently used by the <code>hitTest()</code> method, nor is it supported for <a href="../classes/Stage.html" class="crosslink">Stage</a>.</p>
7722
7723 </div>
7724
7725
7726 <p><strong>Default:</strong> null</p>
7727
7728
7729
7730
7731
7732</div>
7733
7734
7735 <div id="property_id" class="property item inherited">
7736 <h3 class="name"><code>id</code></h3>
7737 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749 <div class="meta">
7750
7751
7752 <p>Inherited from
7753 <a href="../classes/DisplayObject.html#property_id">DisplayObject</a>:
7754
7755
7756
7757 <a href="../files/easeljs_display_DisplayObject.js.html#l172"><code>id:172</code></a>
7758
7759 </p>
7760
7761
7762
7763
7764 </div>
7765
7766 <div class="description">
7767 <p>Unique ID for this display object. Makes display objects easier for some uses.</p>
7768
7769 </div>
7770
7771
7772 <p><strong>Default:</strong> -1</p>
7773
7774
7775
7776
7777
7778</div>
7779
7780
7781 <div id="property_lineHeight" class="property item">
7782 <h3 class="name"><code>lineHeight</code></h3>
7783 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
7795 <div class="meta">
7796
7797
7798
7799 <p>
7800
7801 Defined in
7802
7803
7804
7805
7806 <a href="../files/easeljs_display_Text.js.html#l133"><code>lineHeight:133</code></a>
7807
7808 </p>
7809
7810
7811
7812
7813 </div>
7814
7815 <div class="description">
7816 <p>Indicates the line height (vertical distance between baselines) for multi-line text. If null or 0,
7817the value of getMeasuredLineHeight is used.</p>
7818
7819 </div>
7820
7821
7822
7823
7824
7825
7826</div>
7827
7828
7829 <div id="property_lineWidth" class="property item">
7830 <h3 class="name"><code>lineWidth</code></h3>
7831 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
7832
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843 <div class="meta">
7844
7845
7846
7847 <p>
7848
7849 Defined in
7850
7851
7852
7853
7854 <a href="../files/easeljs_display_Text.js.html#l141"><code>lineWidth:141</code></a>
7855
7856 </p>
7857
7858
7859
7860
7861 </div>
7862
7863 <div class="description">
7864 <p>Indicates the maximum width for a line of text before it is wrapped to multiple lines. If null,
7865the text will not be wrapped.</p>
7866
7867 </div>
7868
7869
7870
7871
7872
7873
7874</div>
7875
7876
7877 <div id="property_mask" class="property item inherited">
7878 <h3 class="name"><code>mask</code></h3>
7879 <span class="type"><a href="../classes/Shape.html" class="crosslink">Shape</a></span>
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890
7891 <div class="meta">
7892
7893
7894 <p>Inherited from
7895 <a href="../classes/DisplayObject.html#property_mask">DisplayObject</a>:
7896
7897
7898
7899 <a href="../files/easeljs_display_DisplayObject.js.html#l362"><code>mask:362</code></a>
7900
7901 </p>
7902
7903
7904
7905
7906 </div>
7907
7908 <div class="description">
7909 <p>A Shape instance that defines a vector mask (clipping path) for this display object. The shape's transformation
7910will be applied relative to the display object's parent coordinates (as if it were a child of the parent).</p>
7911
7912 </div>
7913
7914
7915 <p><strong>Default:</strong> null</p>
7916
7917
7918
7919
7920
7921</div>
7922
7923
7924 <div id="property_maxWidth" class="property item">
7925 <h3 class="name"><code>maxWidth</code></h3>
7926 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938 <div class="meta">
7939
7940
7941
7942 <p>
7943
7944 Defined in
7945
7946
7947
7948
7949 <a href="../files/easeljs_display_Text.js.html#l116"><code>maxWidth:116</code></a>
7950
7951 </p>
7952
7953
7954
7955
7956 </div>
7957
7958 <div class="description">
7959 <p>The maximum width to draw the text. If maxWidth is specified (not null), the text will be condensed or
7960shrunk to make it fit in this width. For detailed information view the
7961<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#text-styles">
7962whatwg spec</a>.</p>
7963
7964 </div>
7965
7966
7967
7968
7969
7970
7971</div>
7972
7973
7974 <div id="property_mouseEnabled" class="property item inherited">
7975 <h3 class="name"><code>mouseEnabled</code></h3>
7976 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988 <div class="meta">
7989
7990
7991 <p>Inherited from
7992 <a href="../classes/DisplayObject.html#property_mouseEnabled">DisplayObject</a>:
7993
7994
7995
7996 <a href="../files/easeljs_display_DisplayObject.js.html#l180"><code>mouseEnabled:180</code></a>
7997
7998 </p>
7999
8000
8001
8002
8003 </div>
8004
8005 <div class="description">
8006 <p>Indicates whether to include this object when running mouse interactions. Setting this to <code>false</code> for children
8007of a <a href="../classes/Container.html" class="crosslink">Container</a> will cause events on the Container to not fire when that child is
8008clicked. Setting this property to <code>false</code> does not prevent the <a href="../classes/Container.html#method_getObjectsUnderPoint" class="crosslink">getObjectsUnderPoint</a>
8009method from returning the child.</p>
8010<p><strong>Note:</strong> In EaselJS 0.7.0, the mouseEnabled property will not work properly with nested Containers. Please
8011check out the latest NEXT version in <a href="https://github.com/CreateJS/EaselJS/tree/master/lib">GitHub</a> for an updated version with this issue resolved. The fix will be
8012provided in the next release of EaselJS.</p>
8013
8014 </div>
8015
8016
8017 <p><strong>Default:</strong> true</p>
8018
8019
8020
8021
8022
8023</div>
8024
8025
8026 <div id="property_name" class="property item inherited">
8027 <h3 class="name"><code>name</code></h3>
8028 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040 <div class="meta">
8041
8042
8043 <p>Inherited from
8044 <a href="../classes/DisplayObject.html#property_name">DisplayObject</a>:
8045
8046
8047
8048 <a href="../files/easeljs_display_DisplayObject.js.html#l205"><code>name:205</code></a>
8049
8050 </p>
8051
8052
8053
8054
8055 </div>
8056
8057 <div class="description">
8058 <p>An optional name for this display object. Included in <a href="../classes/DisplayObject.html#method_toString" class="crosslink">toString</a> . Useful for
8059debugging.</p>
8060
8061 </div>
8062
8063
8064 <p><strong>Default:</strong> null</p>
8065
8066
8067
8068
8069
8070</div>
8071
8072
8073 <div id="property_outline" class="property item">
8074 <h3 class="name"><code>outline</code></h3>
8075 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087 <div class="meta">
8088
8089
8090
8091 <p>
8092
8093 Defined in
8094
8095
8096
8097
8098 <a href="../files/easeljs_display_Text.js.html#l126"><code>outline:126</code></a>
8099
8100 </p>
8101
8102
8103
8104
8105 </div>
8106
8107 <div class="description">
8108 <p>If greater than 0, the text will be drawn as a stroke (outline) of the specified width.</p>
8109
8110 </div>
8111
8112
8113
8114
8115
8116
8117</div>
8118
8119
8120 <div id="property_parent" class="property item inherited">
8121 <h3 class="name"><code>parent</code></h3>
8122 <span class="type"><a href="../classes/Container.html" class="crosslink">Container</a></span>
8123
8124
8125
8126
8127
8128
8129 <span class="flag final">final</span>
8130
8131
8132
8133
8134
8135 <span class="flag readonly">readonly</span>
8136
8137
8138 <div class="meta">
8139
8140
8141 <p>Inherited from
8142 <a href="../classes/DisplayObject.html#property_parent">DisplayObject</a>:
8143
8144
8145
8146 <a href="../files/easeljs_display_DisplayObject.js.html#l214"><code>parent:214</code></a>
8147
8148 </p>
8149
8150
8151
8152
8153 </div>
8154
8155 <div class="description">
8156 <p>A reference to the <a href="../classes/Container.html" class="crosslink">Container</a> or <a href="../classes/Stage.html" class="crosslink">Stage</a> object that
8157contains this display object, or null if it has not been added
8158to one.</p>
8159
8160 </div>
8161
8162
8163 <p><strong>Default:</strong> null</p>
8164
8165
8166
8167
8168
8169</div>
8170
8171
8172 <div id="property_regX" class="property item inherited">
8173 <h3 class="name"><code>regX</code></h3>
8174 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186 <div class="meta">
8187
8188
8189 <p>Inherited from
8190 <a href="../classes/DisplayObject.html#property_regX">DisplayObject</a>:
8191
8192
8193
8194 <a href="../files/easeljs_display_DisplayObject.js.html#l226"><code>regX:226</code></a>
8195
8196 </p>
8197
8198
8199
8200
8201 </div>
8202
8203 <div class="description">
8204 <p>The left offset for this display object's registration point. For example, to make a 100x100px Bitmap rotate
8205around its center, you would set regX and <a href="../classes/DisplayObject.html#property_regY" class="crosslink">regY</a> to 50.
8206Cached object's registration points should be set based on pre-cache conditions, not cached size.</p>
8207
8208 </div>
8209
8210
8211 <p><strong>Default:</strong> 0</p>
8212
8213
8214
8215
8216
8217</div>
8218
8219
8220 <div id="property_regY" class="property item inherited">
8221 <h3 class="name"><code>regY</code></h3>
8222 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234 <div class="meta">
8235
8236
8237 <p>Inherited from
8238 <a href="../classes/DisplayObject.html#property_regY">DisplayObject</a>:
8239
8240
8241
8242 <a href="../files/easeljs_display_DisplayObject.js.html#l236"><code>regY:236</code></a>
8243
8244 </p>
8245
8246
8247
8248
8249 </div>
8250
8251 <div class="description">
8252 <p>The y offset for this display object's registration point. For example, to make a 100x100px Bitmap rotate around
8253its center, you would set <a href="../classes/DisplayObject.html#property_regX" class="crosslink">regX</a> and regY to 50.
8254Cached object's registration points should be set based on pre-cache conditions, not cached size.</p>
8255
8256 </div>
8257
8258
8259 <p><strong>Default:</strong> 0</p>
8260
8261
8262
8263
8264
8265</div>
8266
8267
8268 <div id="property_rotation" class="property item inherited">
8269 <h3 class="name"><code>rotation</code></h3>
8270 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282 <div class="meta">
8283
8284
8285 <p>Inherited from
8286 <a href="../classes/DisplayObject.html#property_rotation">DisplayObject</a>:
8287
8288
8289
8290 <a href="../files/easeljs_display_DisplayObject.js.html#l246"><code>rotation:246</code></a>
8291
8292 </p>
8293
8294
8295
8296
8297 </div>
8298
8299 <div class="description">
8300 <p>The rotation in degrees for this display object.</p>
8301
8302 </div>
8303
8304
8305 <p><strong>Default:</strong> 0</p>
8306
8307
8308
8309
8310
8311</div>
8312
8313
8314 <div id="property_scaleX" class="property item inherited">
8315 <h3 class="name"><code>scaleX</code></h3>
8316 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
8317
8318
8319
8320
8321
8322
8323
8324
8325
8326
8327
8328 <div class="meta">
8329
8330 <p>Inherited from
8331 <a href="../classes/DisplayObject.html#property_scaleX">
8332 DisplayObject
8333 </a>
8334
8335 but overwritten in
8336
8337
8338
8339 <a href="../files/easeljs_display_DisplayObject.js.html#l254"><code>scaleX:254</code></a>
8340
8341 </p>
8342
8343
8344
8345
8346 </div>
8347
8348 <div class="description">
8349 <p>The factor to stretch this display object horizontally. For example, setting scaleX to 2 will stretch the display
8350object to twice its nominal width. To horizontally flip an object, set the scale to a negative number.</p>
8351
8352 </div>
8353
8354
8355 <p><strong>Default:</strong> 1</p>
8356
8357
8358
8359
8360
8361</div>
8362
8363
8364 <div id="property_scaleY" class="property item inherited">
8365 <h3 class="name"><code>scaleY</code></h3>
8366 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
8367
8368
8369
8370
8371
8372
8373
8374
8375
8376
8377
8378 <div class="meta">
8379
8380
8381 <p>Inherited from
8382 <a href="../classes/DisplayObject.html#property_scaleY">DisplayObject</a>:
8383
8384
8385
8386 <a href="../files/easeljs_display_DisplayObject.js.html#l263"><code>scaleY:263</code></a>
8387
8388 </p>
8389
8390
8391
8392
8393 </div>
8394
8395 <div class="description">
8396 <p>The factor to stretch this display object vertically. For example, setting scaleY to 0.5 will stretch the display
8397object to half its nominal height. To vertically flip an object, set the scale to a negative number.</p>
8398
8399 </div>
8400
8401
8402 <p><strong>Default:</strong> 1</p>
8403
8404
8405
8406
8407
8408</div>
8409
8410
8411 <div id="property_shadow" class="property item inherited">
8412 <h3 class="name"><code>shadow</code></h3>
8413 <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425 <div class="meta">
8426
8427
8428 <p>Inherited from
8429 <a href="../classes/DisplayObject.html#property_shadow">DisplayObject</a>:
8430
8431
8432
8433 <a href="../files/easeljs_display_DisplayObject.js.html#l288"><code>shadow:288</code></a>
8434
8435 </p>
8436
8437
8438
8439
8440 </div>
8441
8442 <div class="description">
8443 <p>A shadow object that defines the shadow to render on this display object. Set to <code>null</code> to remove a shadow. If
8444null, this property is inherited from the parent container.</p>
8445
8446 </div>
8447
8448
8449 <p><strong>Default:</strong> null</p>
8450
8451
8452
8453
8454
8455</div>
8456
8457
8458 <div id="property_skewX" class="property item inherited">
8459 <h3 class="name"><code>skewX</code></h3>
8460 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472 <div class="meta">
8473
8474
8475 <p>Inherited from
8476 <a href="../classes/DisplayObject.html#property_skewX">DisplayObject</a>:
8477
8478
8479
8480 <a href="../files/easeljs_display_DisplayObject.js.html#l272"><code>skewX:272</code></a>
8481
8482 </p>
8483
8484
8485
8486
8487 </div>
8488
8489 <div class="description">
8490 <p>The factor to skew this display object horizontally.</p>
8491
8492 </div>
8493
8494
8495 <p><strong>Default:</strong> 0</p>
8496
8497
8498
8499
8500
8501</div>
8502
8503
8504 <div id="property_skewY" class="property item inherited">
8505 <h3 class="name"><code>skewY</code></h3>
8506 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516
8517
8518 <div class="meta">
8519
8520
8521 <p>Inherited from
8522 <a href="../classes/DisplayObject.html#property_skewY">DisplayObject</a>:
8523
8524
8525
8526 <a href="../files/easeljs_display_DisplayObject.js.html#l280"><code>skewY:280</code></a>
8527
8528 </p>
8529
8530
8531
8532
8533 </div>
8534
8535 <div class="description">
8536 <p>The factor to skew this display object vertically.</p>
8537
8538 </div>
8539
8540
8541 <p><strong>Default:</strong> 0</p>
8542
8543
8544
8545
8546
8547</div>
8548
8549
8550 <div id="property_snapToPixel" class="property item inherited">
8551 <h3 class="name"><code>snapToPixel</code></h3>
8552 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564 <div class="meta">
8565
8566
8567 <p>Inherited from
8568 <a href="../classes/DisplayObject.html#property_snapToPixel">DisplayObject</a>:
8569
8570
8571
8572 <a href="../files/easeljs_display_DisplayObject.js.html#l342"><code>snapToPixel:342</code></a>
8573
8574 </p>
8575
8576
8577
8578
8579 </div>
8580
8581 <div class="description">
8582 <p>Indicates whether the display object should be drawn to a whole pixel when
8583Stage/snapToPixelEnabled is true. To enable/disable snapping on whole
8584categories of display objects, set this value on the prototype (Ex. Text.prototype.snapToPixel = true).</p>
8585
8586 </div>
8587
8588
8589 <p><strong>Default:</strong> true</p>
8590
8591
8592
8593
8594
8595</div>
8596
8597
8598 <div id="property_stage" class="property item inherited">
8599 <h3 class="name"><code>stage</code></h3>
8600 <span class="type"><a href="../classes/Stage.html" class="crosslink">Stage</a></span>
8601
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611 <span class="flag readonly">readonly</span>
8612
8613
8614 <div class="meta">
8615
8616
8617 <p>Inherited from
8618 <a href="../classes/DisplayObject.html#property_stage">DisplayObject</a>:
8619
8620
8621
8622 <a href="../files/easeljs_display_DisplayObject.js.html#l688"><code>stage:688</code></a>
8623
8624 </p>
8625
8626
8627
8628
8629 </div>
8630
8631 <div class="description">
8632 <p>Returns the Stage instance that this display object will be rendered on, or null if it has not been added to one.</p>
8633
8634 </div>
8635
8636
8637
8638
8639
8640
8641</div>
8642
8643
8644 <div id="property_text" class="property item">
8645 <h3 class="name"><code>text</code></h3>
8646 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
8647
8648
8649
8650
8651
8652
8653
8654
8655
8656
8657
8658 <div class="meta">
8659
8660
8661
8662 <p>
8663
8664 Defined in
8665
8666
8667
8668
8669 <a href="../files/easeljs_display_Text.js.html#l75"><code>text:75</code></a>
8670
8671 </p>
8672
8673
8674
8675
8676 </div>
8677
8678 <div class="description">
8679 <p>The text to display.</p>
8680
8681 </div>
8682
8683
8684
8685
8686
8687
8688</div>
8689
8690
8691 <div id="property_textAlign" class="property item">
8692 <h3 class="name"><code>textAlign</code></h3>
8693 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705 <div class="meta">
8706
8707
8708
8709 <p>
8710
8711 Defined in
8712
8713
8714
8715
8716 <a href="../files/easeljs_display_Text.js.html#l97"><code>textAlign:97</code></a>
8717
8718 </p>
8719
8720
8721
8722
8723 </div>
8724
8725 <div class="description">
8726 <p>The horizontal text alignment. Any of "start", "end", "left", "right", and "center". For detailed
8727information view the
8728<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#text-styles">
8729whatwg spec</a>. Default is "left".</p>
8730
8731 </div>
8732
8733
8734
8735
8736
8737
8738</div>
8739
8740
8741 <div id="property_textBaseline" class="property item">
8742 <h3 class="name"><code>textBaseline</code></h3>
8743 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755 <div class="meta">
8756
8757
8758
8759 <p>
8760
8761 Defined in
8762
8763
8764
8765
8766 <a href="../files/easeljs_display_Text.js.html#l107"><code>textBaseline:107</code></a>
8767
8768 </p>
8769
8770
8771
8772
8773 </div>
8774
8775 <div class="description">
8776 <p>The vertical alignment point on the font. Any of "top", "hanging", "middle", "alphabetic", "ideographic", or
8777"bottom". For detailed information view the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#text-styles">
8778whatwg spec</a>. Default is "top".</p>
8779
8780 </div>
8781
8782
8783
8784
8785
8786
8787</div>
8788
8789
8790 <div id="property_tickEnabled" class="property item inherited">
8791 <h3 class="name"><code>tickEnabled</code></h3>
8792 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803
8804 <div class="meta">
8805
8806
8807 <p>Inherited from
8808 <a href="../classes/DisplayObject.html#property_tickEnabled">DisplayObject</a>:
8809
8810
8811
8812 <a href="../files/easeljs_display_DisplayObject.js.html#l195"><code>tickEnabled:195</code></a>
8813
8814 </p>
8815
8816
8817
8818
8819 </div>
8820
8821 <div class="description">
8822 <p>If false, the tick will not run on this display object (or its children). This can provide some performance benefits.
8823In addition to preventing the "tick" event from being dispatched, it will also prevent tick related updates
8824on some display objects (ex. Sprite & MovieClip frame advancing, and DOMElement display properties).</p>
8825
8826 </div>
8827
8828
8829 <p><strong>Default:</strong> true</p>
8830
8831
8832
8833
8834
8835</div>
8836
8837
8838 <div id="property_transformMatrix" class="property item inherited">
8839 <h3 class="name"><code>transformMatrix</code></h3>
8840 <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
8841
8842
8843
8844
8845
8846
8847
8848
8849
8850
8851
8852 <div class="meta">
8853
8854
8855 <p>Inherited from
8856 <a href="../classes/DisplayObject.html#property_transformMatrix">DisplayObject</a>:
8857
8858
8859
8860 <a href="../files/easeljs_display_DisplayObject.js.html#l321"><code>transformMatrix:321</code></a>
8861
8862 </p>
8863
8864
8865
8866
8867 </div>
8868
8869 <div class="description">
8870 <p>If set, defines the transformation for this display object, overriding all other transformation properties
8871(x, y, rotation, scale, skew).</p>
8872
8873 </div>
8874
8875
8876 <p><strong>Default:</strong> null</p>
8877
8878
8879
8880
8881
8882</div>
8883
8884
8885 <div id="property_visible" class="property item inherited">
8886 <h3 class="name"><code>visible</code></h3>
8887 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899 <div class="meta">
8900
8901
8902 <p>Inherited from
8903 <a href="../classes/DisplayObject.html#property_visible">DisplayObject</a>:
8904
8905
8906
8907 <a href="../files/easeljs_display_DisplayObject.js.html#l297"><code>visible:297</code></a>
8908
8909 </p>
8910
8911
8912
8913
8914 </div>
8915
8916 <div class="description">
8917 <p>Indicates whether this display object should be rendered to the canvas and included when running the Stage
8918Stage/getObjectsUnderPoint method.</p>
8919
8920 </div>
8921
8922
8923 <p><strong>Default:</strong> true</p>
8924
8925
8926
8927
8928
8929</div>
8930
8931
8932 <div id="property_x" class="property item inherited">
8933 <h3 class="name"><code>x</code></h3>
8934 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946 <div class="meta">
8947
8948
8949 <p>Inherited from
8950 <a href="../classes/DisplayObject.html#property_x">DisplayObject</a>:
8951
8952
8953
8954 <a href="../files/easeljs_display_DisplayObject.js.html#l306"><code>x:306</code></a>
8955
8956 </p>
8957
8958
8959
8960
8961 </div>
8962
8963 <div class="description">
8964 <p>The x (horizontal) position of the display object, relative to its parent.</p>
8965
8966 </div>
8967
8968
8969 <p><strong>Default:</strong> 0</p>
8970
8971
8972
8973
8974
8975</div>
8976
8977
8978 <div id="property_y" class="property item inherited">
8979 <h3 class="name"><code>y</code></h3>
8980 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992 <div class="meta">
8993
8994
8995 <p>Inherited from
8996 <a href="../classes/DisplayObject.html#property_y">DisplayObject</a>:
8997
8998
8999
9000 <a href="../files/easeljs_display_DisplayObject.js.html#l314"><code>y:314</code></a>
9001
9002 </p>
9003
9004
9005
9006
9007 </div>
9008
9009 <div class="description">
9010
9011 </div>
9012
9013
9014 <p><strong>Default:</strong> 0</p>
9015
9016
9017
9018
9019
9020</div>
9021
9022
9023 </div>
9024
9025
9026
9027
9028
9029 <div id="events" class="api-class-tabpanel">
9030 <h2 class="off-left">Events</h2>
9031
9032
9033 <div id="event_added" class="events item inherited">
9034 <h3 class="name"><code>added</code></h3>
9035 <span class="type"></span>
9036
9037
9038
9039
9040
9041
9042
9043
9044
9045 <div class="meta">
9046
9047
9048 <p>Inherited from
9049 <a href="../classes/DisplayObject.html#event_added">DisplayObject</a>:
9050
9051
9052
9053 <a href="../files/easeljs_display_DisplayObject.js.html#l646"><code>added:646</code></a>
9054
9055 </p>
9056
9057
9058
9059
9060 </div>
9061
9062 <div class="description">
9063 <p>Dispatched when the display object is added to a parent container.</p>
9064
9065 </div>
9066
9067
9068
9069
9070
9071</div>
9072
9073
9074 <div id="event_click" class="events item inherited">
9075 <h3 class="name"><code>click</code></h3>
9076 <span class="type"></span>
9077
9078
9079
9080
9081
9082
9083
9084
9085
9086 <div class="meta">
9087
9088
9089 <p>Inherited from
9090 <a href="../classes/DisplayObject.html#event_click">DisplayObject</a>:
9091
9092
9093
9094 <a href="../files/easeljs_display_DisplayObject.js.html#l546"><code>click:546</code></a>
9095
9096 </p>
9097
9098
9099
9100
9101 <p>Available since 0.6.0</p>
9102
9103 </div>
9104
9105 <div class="description">
9106 <p>Dispatched when the user presses their left mouse button and then releases it while over the display object.
9107See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
9108
9109 </div>
9110
9111
9112
9113
9114
9115</div>
9116
9117
9118 <div id="event_dblclick" class="events item inherited">
9119 <h3 class="name"><code>dblclick</code></h3>
9120 <span class="type"></span>
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130 <div class="meta">
9131
9132
9133 <p>Inherited from
9134 <a href="../classes/DisplayObject.html#event_dblclick">DisplayObject</a>:
9135
9136
9137
9138 <a href="../files/easeljs_display_DisplayObject.js.html#l553"><code>dblclick:553</code></a>
9139
9140 </p>
9141
9142
9143
9144
9145 <p>Available since 0.6.0</p>
9146
9147 </div>
9148
9149 <div class="description">
9150 <p>Dispatched when the user double clicks their left mouse button over this display object.
9151See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
9152
9153 </div>
9154
9155
9156
9157
9158
9159</div>
9160
9161
9162 <div id="event_mousedown" class="events item inherited">
9163 <h3 class="name"><code>mousedown</code></h3>
9164 <span class="type"></span>
9165
9166
9167
9168
9169
9170
9171
9172
9173
9174 <div class="meta">
9175
9176
9177 <p>Inherited from
9178 <a href="../classes/DisplayObject.html#event_mousedown">DisplayObject</a>:
9179
9180
9181
9182 <a href="../files/easeljs_display_DisplayObject.js.html#l539"><code>mousedown:539</code></a>
9183
9184 </p>
9185
9186
9187
9188
9189 <p>Available since 0.6.0</p>
9190
9191 </div>
9192
9193 <div class="description">
9194 <p>Dispatched when the user presses their left mouse button over the display object. See the
9195<a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
9196
9197 </div>
9198
9199
9200
9201
9202
9203</div>
9204
9205
9206 <div id="event_mouseout" class="events item inherited">
9207 <h3 class="name"><code>mouseout</code></h3>
9208 <span class="type"></span>
9209
9210
9211
9212
9213
9214
9215
9216
9217
9218 <div class="meta">
9219
9220
9221 <p>Inherited from
9222 <a href="../classes/DisplayObject.html#event_mouseout">DisplayObject</a>:
9223
9224
9225
9226 <a href="../files/easeljs_display_DisplayObject.js.html#l568"><code>mouseout:568</code></a>
9227
9228 </p>
9229
9230
9231
9232
9233 <p>Available since 0.6.0</p>
9234
9235 </div>
9236
9237 <div class="description">
9238 <p>Dispatched when the user's mouse leaves this display object. This event must be enabled using
9239<a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="../classes/DisplayObject.html#event_rollout" class="crosslink">rollout</a>.
9240See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
9241
9242 </div>
9243
9244
9245
9246
9247
9248</div>
9249
9250
9251 <div id="event_mouseover" class="events item inherited">
9252 <h3 class="name"><code>mouseover</code></h3>
9253 <span class="type"></span>
9254
9255
9256
9257
9258
9259
9260
9261
9262
9263 <div class="meta">
9264
9265
9266 <p>Inherited from
9267 <a href="../classes/DisplayObject.html#event_mouseover">DisplayObject</a>:
9268
9269
9270
9271 <a href="../files/easeljs_display_DisplayObject.js.html#l560"><code>mouseover:560</code></a>
9272
9273 </p>
9274
9275
9276
9277
9278 <p>Available since 0.6.0</p>
9279
9280 </div>
9281
9282 <div class="description">
9283 <p>Dispatched when the user's mouse enters this display object. This event must be enabled using
9284<a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>. See also <a href="../classes/DisplayObject.html#event_rollover" class="crosslink">rollover</a>.
9285See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
9286
9287 </div>
9288
9289
9290
9291
9292
9293</div>
9294
9295
9296 <div id="event_pressmove" class="events item inherited">
9297 <h3 class="name"><code>pressmove</code></h3>
9298 <span class="type"></span>
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308 <div class="meta">
9309
9310
9311 <p>Inherited from
9312 <a href="../classes/DisplayObject.html#event_pressmove">DisplayObject</a>:
9313
9314
9315
9316 <a href="../files/easeljs_display_DisplayObject.js.html#l616"><code>pressmove:616</code></a>
9317
9318 </p>
9319
9320
9321
9322
9323 <p>Available since 0.7.0</p>
9324
9325 </div>
9326
9327 <div class="description">
9328 <p>After a <a href="../classes/DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressmove
9329event will be generated on that object whenever the mouse moves until the mouse press is released. This can be
9330useful for dragging and similar operations.</p>
9331<p><strong>Please note</strong> that if the initial mouse target from a <code>mousedown</code> event is removed from the stage after being pressed
9332(e.g. during a <code>pressmove</code> event), a <code>pressmove</code> event is still generated. However since it is no longer in the
9333display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
9334the event, and therefore can not re-dispatch it. If you intend to listen for <code><a href="../classes/DisplayObject.html#event_pressup" class="crosslink">pressup</a></code>
9335or <code>pressmove</code> on a dynamic object (such as a <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> or <a href="../classes/Container.html" class="crosslink">Container</a>),
9336then ensure you set <a href="../classes/Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>
9337
9338 </div>
9339
9340
9341
9342
9343
9344</div>
9345
9346
9347 <div id="event_pressup" class="events item inherited">
9348 <h3 class="name"><code>pressup</code></h3>
9349 <span class="type"></span>
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359 <div class="meta">
9360
9361
9362 <p>Inherited from
9363 <a href="../classes/DisplayObject.html#event_pressup">DisplayObject</a>:
9364
9365
9366
9367 <a href="../files/easeljs_display_DisplayObject.js.html#l631"><code>pressup:631</code></a>
9368
9369 </p>
9370
9371
9372
9373
9374 <p>Available since 0.7.0</p>
9375
9376 </div>
9377
9378 <div class="description">
9379 <p>After a <a href="../classes/DisplayObject.html#event_mousedown" class="crosslink">mousedown</a> occurs on a display object, a pressup event
9380will be generated on that object when that mouse press is released. This can be useful for dragging and similar
9381operations.</p>
9382<p><strong>Please note</strong> that if the initial mouse target from a <code>mousedown</code> event is removed from the stage after being pressed
9383(e.g. during a <code>pressmove</code> event), a <code>pressup</code> event is still generated. However since it is no longer in the
9384display list, the event can not bubble. This means that previous ancestors (parent containers) will not receive
9385the event, and therefore can not re-dispatch it. If you intend to listen for <code><a href="../classes/DisplayObject.html#event_pressmove" class="crosslink">pressmove</a></code>
9386or <code>pressup</code> on a dynamic object (such as a <a href="../classes/MovieClip.html" class="crosslink">MovieClip</a> or <a href="../classes/Container.html" class="crosslink">Container</a>),
9387then ensure you set <a href="../classes/Container.html#property_mouseChildren" class="crosslink">mouseChildren</a> to <code>false</code>.</p>
9388
9389 </div>
9390
9391
9392
9393
9394
9395</div>
9396
9397
9398 <div id="event_removed" class="events item inherited">
9399 <h3 class="name"><code>removed</code></h3>
9400 <span class="type"></span>
9401
9402
9403
9404
9405
9406
9407
9408
9409
9410 <div class="meta">
9411
9412
9413 <p>Inherited from
9414 <a href="../classes/DisplayObject.html#event_removed">DisplayObject</a>:
9415
9416
9417
9418 <a href="../files/easeljs_display_DisplayObject.js.html#l651"><code>removed:651</code></a>
9419
9420 </p>
9421
9422
9423
9424
9425 </div>
9426
9427 <div class="description">
9428 <p>Dispatched when the display object is removed from its parent container.</p>
9429
9430 </div>
9431
9432
9433
9434
9435
9436</div>
9437
9438
9439 <div id="event_rollout" class="events item inherited">
9440 <h3 class="name"><code>rollout</code></h3>
9441 <span class="type"></span>
9442
9443
9444
9445
9446
9447
9448
9449
9450
9451 <div class="meta">
9452
9453
9454 <p>Inherited from
9455 <a href="../classes/DisplayObject.html#event_rollout">DisplayObject</a>:
9456
9457
9458
9459 <a href="../files/easeljs_display_DisplayObject.js.html#l596"><code>rollout:596</code></a>
9460
9461 </p>
9462
9463
9464
9465
9466 <p>Available since 0.7.0</p>
9467
9468 </div>
9469
9470 <div class="description">
9471 <p>This event is similar to <a href="../classes/DisplayObject.html#event_mouseout" class="crosslink">mouseout</a>, with the following
9472differences: it does not bubble, and it considers <a href="../classes/Container.html" class="crosslink">Container</a> instances as an
9473aggregate of their content.</p>
9474<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
9475shapeA, then directly on to shapeB, then off both. With a listener for Mouseout:event
9476on myContainer, two events would be received, each targeting a child element:<OL></p>
9477<p><LI>when the mouse leaves shapeA (target=shapeA)</LI></p>
9478<p><LI>when the mouse leaves shapeB (target=shapeB)</LI>
9479</OL>
9480However, with a listener for "rollout" instead, only a single event is received when the mouse leaves
9481the aggregate myContainer content (target=myContainer).</p>
9482<p>This event must be enabled using <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
9483See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
9484
9485 </div>
9486
9487
9488
9489
9490
9491</div>
9492
9493
9494 <div id="event_rollover" class="events item inherited">
9495 <h3 class="name"><code>rollover</code></h3>
9496 <span class="type"></span>
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506 <div class="meta">
9507
9508
9509 <p>Inherited from
9510 <a href="../classes/DisplayObject.html#event_rollover">DisplayObject</a>:
9511
9512
9513
9514 <a href="../files/easeljs_display_DisplayObject.js.html#l576"><code>rollover:576</code></a>
9515
9516 </p>
9517
9518
9519
9520
9521 <p>Available since 0.7.0</p>
9522
9523 </div>
9524
9525 <div class="description">
9526 <p>This event is similar to <a href="../classes/DisplayObject.html#event_mouseover" class="crosslink">mouseover</a>, with the following
9527differences: it does not bubble, and it considers <a href="../classes/Container.html" class="crosslink">Container</a> instances as an
9528aggregate of their content.</p>
9529<p>For example, myContainer contains two overlapping children: shapeA and shapeB. The user moves their mouse over
9530shapeA and then directly on to shapeB. With a listener for Mouseover:event on
9531myContainer, two events would be received, each targeting a child element:<OL></p>
9532<p><LI>when the mouse enters shapeA (target=shapeA)</LI></p>
9533<p><LI>when the mouse enters shapeB (target=shapeB)</LI>
9534</OL>
9535However, with a listener for "rollover" instead, only a single event is received when the mouse first enters
9536the aggregate myContainer content (target=myContainer).</p>
9537<p>This event must be enabled using <a href="../classes/Stage.html#method_enableMouseOver" class="crosslink">enableMouseOver</a>.
9538See the <a href="../classes/MouseEvent.html" class="crosslink">MouseEvent</a> class for a listing of event properties.</p>
9539
9540 </div>
9541
9542
9543
9544
9545
9546</div>
9547
9548
9549 <div id="event_tick" class="events item inherited">
9550 <h3 class="name"><code>tick</code></h3>
9551 <span class="type"></span>
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561 <div class="meta">
9562
9563
9564 <p>Inherited from
9565 <a href="../classes/DisplayObject.html#event_tick">DisplayObject</a>:
9566
9567
9568
9569 <a href="../files/easeljs_display_DisplayObject.js.html#l656"><code>tick:656</code></a>
9570
9571 </p>
9572
9573
9574
9575
9576 <p>Available since 0.6.0</p>
9577
9578 </div>
9579
9580 <div class="description">
9581 <p>Dispatched on each display object on a stage whenever the stage updates. This occurs immediately before the
9582rendering (draw) pass. When <a href="../classes/Stage.html#method_update" class="crosslink">update</a> is called, first all display objects on
9583the stage dispatch the tick event, then all of the display objects are drawn to stage. Children will have their
9584Tick:event event dispatched in order of their depth prior to the event being
9585dispatched on their parent.</p>
9586
9587 </div>
9588
9589
9590 <div class="params">
9591 <h4>Event Payload:</h4>
9592
9593 <ul class="params-list">
9594
9595 <li class="param">
9596
9597 <code class="param-name">target</code>
9598 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
9599
9600
9601
9602
9603 <div class="param-description">
9604 <p>The object that dispatched the event.</p>
9605
9606 </div>
9607
9608
9609 </li>
9610
9611 <li class="param">
9612
9613 <code class="param-name">type</code>
9614 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
9615
9616
9617
9618
9619 <div class="param-description">
9620 <p>The event type.</p>
9621
9622 </div>
9623
9624
9625 </li>
9626
9627 <li class="param">
9628
9629 <code class="param-name">params</code>
9630 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
9631
9632
9633
9634
9635 <div class="param-description">
9636 <p>An array containing any arguments that were passed to the Stage.update() method. For
9637 example if you called stage.update("hello"), then the params would be ["hello"].</p>
9638
9639 </div>
9640
9641
9642 </li>
9643
9644 </ul>
9645 </div>
9646
9647
9648
9649
9650</div>
9651
9652
9653 </div>
9654
9655 </div>
9656</div>
9657
9658 </div>
9659 </div>
9660 </div>
9661 </div>
9662 </div>
9663</div>
9664<script src="../assets/vendor/prettify/prettify-min.js"></script>
9665<script>prettyPrint();</script>
9666<script src="../assets/js/yui-prettify.js"></script>
9667<script src="../assets/../api.js"></script>
9668<script src="../assets/js/api-filter.js"></script>
9669<script src="../assets/js/api-list.js"></script>
9670<script src="../assets/js/api-search.js"></script>
9671<script src="../assets/js/apidocs.js"></script>
9672</body>
9673</html>