all repos — simplyrpg @ 12669c61e2eec0d84ef981688888e4986778c0b8

Fork of https://github.com/harperd1/simplyRPG — multi-map VTT, token visibility, dark theme, stream HUD

libraries/EaselJS_docs/classes/DisplayProps.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 : DisplayProps</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>DisplayProps Class</h1>
 199<div class="box meta">
 200    
 201
 202    
 203
 204    
 205        <div class="foundat">
 206            Defined in: <a href="../files/easeljs_geom_DisplayProps.js.html#l39"><code>DisplayProps:39</code></a>
 207        </div>
 208    
 209
 210    
 211        
 212            Module: <a href="../modules/EaselJS.html">EaselJS</a>
 213        
 214    
 215
 216    
 217</div>
 218
 219
 220
 221<div class="box intro">
 222    <p>Used for calculating and encapsulating display related properties.</p>
 223
 224</div>
 225
 226
 227    <div class="constructor">
 228        <h2>Constructor</h2>
 229        <div id="method_DisplayProps" class="method item">
 230    <h3 class="name"><code>DisplayProps</code></h3>
 231
 232    
 233        <div class="args">
 234            <span class="paren">(</span><ul class="args-list inline commas">
 235            
 236                <li class="arg">
 237                    
 238                        <code class="optional">[visible=true]</code>
 239                    
 240                </li>
 241            
 242                <li class="arg">
 243                    
 244                        <code class="optional">[alpha=1]</code>
 245                    
 246                </li>
 247            
 248                <li class="arg">
 249                    
 250                        <code class="optional">[shadow=null]</code>
 251                    
 252                </li>
 253            
 254                <li class="arg">
 255                    
 256                        <code class="optional">[compositeOperation=null]</code>
 257                    
 258                </li>
 259            
 260                <li class="arg">
 261                    
 262                        <code class="optional">[matrix]</code>
 263                    
 264                </li>
 265            
 266            </ul><span class="paren">)</span>
 267        </div>
 268    
 269
 270    
 271
 272    
 273
 274    
 275
 276    
 277
 278    
 279
 280    
 281
 282    
 283
 284    <div class="meta">
 285        
 286            
 287                
 288                <p>
 289                
 290                Defined in
 291                
 292            
 293        
 294        
 295        <a href="../files/easeljs_geom_DisplayProps.js.html#l39"><code>DisplayProps:39</code></a>
 296        
 297        </p>
 298
 299
 300        
 301
 302        
 303    </div>
 304
 305    <div class="description">
 306        
 307    </div>
 308
 309    
 310        <div class="params">
 311            <h4>Parameters:</h4>
 312
 313            <ul class="params-list">
 314            
 315                <li class="param">
 316                    
 317                        <code class="param-name optional">[visible=true]</code>
 318                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 319                        <span class="flag optional" title="This parameter is optional.">optional</span>
 320                    
 321
 322                    
 323
 324                    <div class="param-description">
 325                        <p>Visible value.</p>
 326
 327                    </div>
 328
 329                    
 330                </li>
 331            
 332                <li class="param">
 333                    
 334                        <code class="param-name optional">[alpha=1]</code>
 335                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 336                        <span class="flag optional" title="This parameter is optional.">optional</span>
 337                    
 338
 339                    
 340
 341                    <div class="param-description">
 342                        <p>Alpha value.</p>
 343
 344                    </div>
 345
 346                    
 347                </li>
 348            
 349                <li class="param">
 350                    
 351                        <code class="param-name optional">[shadow=null]</code>
 352                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 353                        <span class="flag optional" title="This parameter is optional.">optional</span>
 354                    
 355
 356                    
 357
 358                    <div class="param-description">
 359                        <p>A Shadow instance or null.</p>
 360
 361                    </div>
 362
 363                    
 364                </li>
 365            
 366                <li class="param">
 367                    
 368                        <code class="param-name optional">[compositeOperation=null]</code>
 369                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 370                        <span class="flag optional" title="This parameter is optional.">optional</span>
 371                    
 372
 373                    
 374
 375                    <div class="param-description">
 376                        <p>A compositeOperation value or null.</p>
 377
 378                    </div>
 379
 380                    
 381                </li>
 382            
 383                <li class="param">
 384                    
 385                        <code class="param-name optional">[matrix]</code>
 386                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 387                        <span class="flag optional" title="This parameter is optional.">optional</span>
 388                    
 389
 390                    
 391
 392                    <div class="param-description">
 393                        <p>A transformation matrix. Defaults to a new identity matrix.</p>
 394
 395                    </div>
 396
 397                    
 398                </li>
 399            
 400            </ul>
 401        </div>
 402    
 403
 404    
 405
 406    
 407</div>
 408
 409    </div>
 410
 411
 412<div id="classdocs" class="tabview">
 413    <ul class="api-class-tabs">
 414        <li class="api-class-tab index"><a href="#index">Index</a></li>
 415
 416        
 417            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
 418        
 419        
 420            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
 421        
 422        
 423        
 424    </ul>
 425
 426    <div>
 427        <div id="index" class="api-class-tabpanel index">
 428            <h2 class="off-left">Item Index</h2>
 429
 430            
 431                <div class="index-section methods">
 432                    <h3>Methods</h3>
 433
 434                    <ul class="index-list methods">
 435                        
 436                            <li class="index-item method">
 437                                <a href="#method_append">append</a>
 438
 439                                
 440                                
 441                            </li>
 442                        
 443                            <li class="index-item method">
 444                                <a href="#method_clone">clone</a>
 445
 446                                
 447                                
 448                            </li>
 449                        
 450                            <li class="index-item method">
 451                                <a href="#method_identity">identity</a>
 452
 453                                
 454                                
 455                            </li>
 456                        
 457                            <li class="index-item method">
 458                                <a href="#method_prepend">prepend</a>
 459
 460                                
 461                                
 462                            </li>
 463                        
 464                            <li class="index-item method">
 465                                <a href="#method_setValues">setValues</a>
 466
 467                                
 468                                
 469                            </li>
 470                        
 471                    </ul>
 472                </div>
 473            
 474
 475            
 476                <div class="index-section properties">
 477                    <h3>Properties</h3>
 478
 479                    <ul class="index-list properties">
 480                        
 481                            <li class="index-item property">
 482                                <a href="#property_alpha">alpha</a>
 483
 484                                
 485                                
 486                            </li>
 487                        
 488                            <li class="index-item property">
 489                                <a href="#property_compositeOperation">compositeOperation</a>
 490
 491                                
 492                                
 493                            </li>
 494                        
 495                            <li class="index-item property">
 496                                <a href="#property_matrix">matrix</a>
 497
 498                                
 499                                
 500                            </li>
 501                        
 502                            <li class="index-item property">
 503                                <a href="#property_shadow">shadow</a>
 504
 505                                
 506                                
 507                            </li>
 508                        
 509                            <li class="index-item property">
 510                                <a href="#property_visible">visible</a>
 511
 512                                
 513                                
 514                            </li>
 515                        
 516                    </ul>
 517                </div>
 518            
 519
 520            
 521
 522            
 523        </div>
 524
 525        
 526            <div id="methods" class="api-class-tabpanel">
 527                <h2 class="off-left">Methods</h2>
 528
 529                
 530                    <div id="method_append" class="method item">
 531    <h3 class="name"><code>append</code></h3>
 532
 533    
 534        <div class="args">
 535            <span class="paren">(</span><ul class="args-list inline commas">
 536            
 537                <li class="arg">
 538                    
 539                        <code>visible</code>
 540                    
 541                </li>
 542            
 543                <li class="arg">
 544                    
 545                        <code>alpha</code>
 546                    
 547                </li>
 548            
 549                <li class="arg">
 550                    
 551                        <code>shadow</code>
 552                    
 553                </li>
 554            
 555                <li class="arg">
 556                    
 557                        <code>compositeOperation</code>
 558                    
 559                </li>
 560            
 561                <li class="arg">
 562                    
 563                        <code class="optional">[matrix]</code>
 564                    
 565                </li>
 566            
 567            </ul><span class="paren">)</span>
 568        </div>
 569    
 570
 571    
 572        <span class="returns-inline">
 573            <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
 574        </span>
 575    
 576
 577    
 578
 579    
 580
 581    
 582
 583    
 584
 585    
 586        <span class="flag chainable">chainable</span>
 587    
 588
 589    
 590
 591    <div class="meta">
 592        
 593            
 594                
 595                <p>
 596                
 597                Defined in
 598                
 599            
 600        
 601        
 602        <a href="../files/easeljs_geom_DisplayProps.js.html#l110"><code>append:110</code></a>
 603        
 604        </p>
 605
 606
 607        
 608
 609        
 610    </div>
 611
 612    <div class="description">
 613        <p>Appends the specified display properties. This is generally used to apply a child&#39;s properties its parent&#39;s.</p>
 614
 615    </div>
 616
 617    
 618        <div class="params">
 619            <h4>Parameters:</h4>
 620
 621            <ul class="params-list">
 622            
 623                <li class="param">
 624                    
 625                        <code class="param-name">visible</code>
 626                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 627                    
 628
 629                    
 630
 631                    <div class="param-description">
 632                        <p>desired visible value</p>
 633
 634                    </div>
 635
 636                    
 637                </li>
 638            
 639                <li class="param">
 640                    
 641                        <code class="param-name">alpha</code>
 642                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 643                    
 644
 645                    
 646
 647                    <div class="param-description">
 648                        <p>desired alpha value</p>
 649
 650                    </div>
 651
 652                    
 653                </li>
 654            
 655                <li class="param">
 656                    
 657                        <code class="param-name">shadow</code>
 658                        <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
 659                    
 660
 661                    
 662
 663                    <div class="param-description">
 664                        <p>desired shadow value</p>
 665
 666                    </div>
 667
 668                    
 669                </li>
 670            
 671                <li class="param">
 672                    
 673                        <code class="param-name">compositeOperation</code>
 674                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 675                    
 676
 677                    
 678
 679                    <div class="param-description">
 680                        <p>desired composite operation value</p>
 681
 682                    </div>
 683
 684                    
 685                </li>
 686            
 687                <li class="param">
 688                    
 689                        <code class="param-name optional">[matrix]</code>
 690                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 691                        <span class="flag optional" title="This parameter is optional.">optional</span>
 692                    
 693
 694                    
 695
 696                    <div class="param-description">
 697                        <p>a Matrix2D instance</p>
 698
 699                    </div>
 700
 701                    
 702                </li>
 703            
 704            </ul>
 705        </div>
 706    
 707
 708    
 709        <div class="returns">
 710            <h4>Returns:</h4>
 711
 712            <div class="returns-description">
 713                
 714                    
 715                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>:
 716                    
 717                    <p>This instance. Useful for chaining method calls.</p>
 718
 719                
 720            </div>
 721        </div>
 722    
 723
 724    
 725</div>
 726
 727                
 728                    <div id="method_clone" class="method item">
 729    <h3 class="name"><code>clone</code></h3>
 730
 731    
 732        <span class="paren">()</span>
 733    
 734
 735    
 736        <span class="returns-inline">
 737            <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
 738        </span>
 739    
 740
 741    
 742
 743    
 744
 745    
 746
 747    
 748
 749    
 750
 751    
 752
 753    <div class="meta">
 754        
 755            
 756                
 757                <p>
 758                
 759                Defined in
 760                
 761            
 762        
 763        
 764        <a href="../files/easeljs_geom_DisplayProps.js.html#l173"><code>clone:173</code></a>
 765        
 766        </p>
 767
 768
 769        
 770
 771        
 772    </div>
 773
 774    <div class="description">
 775        <p>Returns a clone of the DisplayProps instance. Clones the associated matrix.</p>
 776
 777    </div>
 778
 779    
 780
 781    
 782        <div class="returns">
 783            <h4>Returns:</h4>
 784
 785            <div class="returns-description">
 786                
 787                    
 788                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>:
 789                    
 790                    <p>a clone of the DisplayProps instance.</p>
 791
 792                
 793            </div>
 794        </div>
 795    
 796
 797    
 798</div>
 799
 800                
 801                    <div id="method_identity" class="method item">
 802    <h3 class="name"><code>identity</code></h3>
 803
 804    
 805        <span class="paren">()</span>
 806    
 807
 808    
 809        <span class="returns-inline">
 810            <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
 811        </span>
 812    
 813
 814    
 815
 816    
 817
 818    
 819
 820    
 821
 822    
 823        <span class="flag chainable">chainable</span>
 824    
 825
 826    
 827
 828    <div class="meta">
 829        
 830            
 831                
 832                <p>
 833                
 834                Defined in
 835                
 836            
 837        
 838        
 839        <a href="../files/easeljs_geom_DisplayProps.js.html#l159"><code>identity:159</code></a>
 840        
 841        </p>
 842
 843
 844        
 845
 846        
 847    </div>
 848
 849    <div class="description">
 850        <p>Resets this instance and its matrix to default values.</p>
 851
 852    </div>
 853
 854    
 855
 856    
 857        <div class="returns">
 858            <h4>Returns:</h4>
 859
 860            <div class="returns-description">
 861                
 862                    
 863                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>:
 864                    
 865                    <p>This instance. Useful for chaining method calls.</p>
 866
 867                
 868            </div>
 869        </div>
 870    
 871
 872    
 873</div>
 874
 875                
 876                    <div id="method_prepend" class="method item">
 877    <h3 class="name"><code>prepend</code></h3>
 878
 879    
 880        <div class="args">
 881            <span class="paren">(</span><ul class="args-list inline commas">
 882            
 883                <li class="arg">
 884                    
 885                        <code>visible</code>
 886                    
 887                </li>
 888            
 889                <li class="arg">
 890                    
 891                        <code>alpha</code>
 892                    
 893                </li>
 894            
 895                <li class="arg">
 896                    
 897                        <code>shadow</code>
 898                    
 899                </li>
 900            
 901                <li class="arg">
 902                    
 903                        <code>compositeOperation</code>
 904                    
 905                </li>
 906            
 907                <li class="arg">
 908                    
 909                        <code class="optional">[matrix]</code>
 910                    
 911                </li>
 912            
 913            </ul><span class="paren">)</span>
 914        </div>
 915    
 916
 917    
 918        <span class="returns-inline">
 919            <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
 920        </span>
 921    
 922
 923    
 924
 925    
 926
 927    
 928
 929    
 930
 931    
 932        <span class="flag chainable">chainable</span>
 933    
 934
 935    
 936
 937    <div class="meta">
 938        
 939            
 940                
 941                <p>
 942                
 943                Defined in
 944                
 945            
 946        
 947        
 948        <a href="../files/easeljs_geom_DisplayProps.js.html#l130"><code>prepend:130</code></a>
 949        
 950        </p>
 951
 952
 953        
 954
 955        
 956    </div>
 957
 958    <div class="description">
 959        <p>Prepends the specified display properties. This is generally used to apply a parent&#39;s properties to a child&#39;s.
 960For example, to get the combined display properties that would be applied to a child, you could use:</p>
 961<pre class="code prettyprint"><code>var o = myDisplayObject;
 962var props = new createjs.DisplayProps();
 963do {
 964    // prepend each parent&#39;s props in turn:
 965    props.prepend(o.visible, o.alpha, o.shadow, o.compositeOperation, o.getMatrix());
 966} while (o = o.parent);</code></pre>
 967
 968    </div>
 969
 970    
 971        <div class="params">
 972            <h4>Parameters:</h4>
 973
 974            <ul class="params-list">
 975            
 976                <li class="param">
 977                    
 978                        <code class="param-name">visible</code>
 979                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 980                    
 981
 982                    
 983
 984                    <div class="param-description">
 985                        <p>desired visible value</p>
 986
 987                    </div>
 988
 989                    
 990                </li>
 991            
 992                <li class="param">
 993                    
 994                        <code class="param-name">alpha</code>
 995                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 996                    
 997
 998                    
 999
1000                    <div class="param-description">
1001                        <p>desired alpha value</p>
1002
1003                    </div>
1004
1005                    
1006                </li>
1007            
1008                <li class="param">
1009                    
1010                        <code class="param-name">shadow</code>
1011                        <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
1012                    
1013
1014                    
1015
1016                    <div class="param-description">
1017                        <p>desired shadow value</p>
1018
1019                    </div>
1020
1021                    
1022                </li>
1023            
1024                <li class="param">
1025                    
1026                        <code class="param-name">compositeOperation</code>
1027                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
1028                    
1029
1030                    
1031
1032                    <div class="param-description">
1033                        <p>desired composite operation value</p>
1034
1035                    </div>
1036
1037                    
1038                </li>
1039            
1040                <li class="param">
1041                    
1042                        <code class="param-name optional">[matrix]</code>
1043                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1044                        <span class="flag optional" title="This parameter is optional.">optional</span>
1045                    
1046
1047                    
1048
1049                    <div class="param-description">
1050                        <p>a Matrix2D instance</p>
1051
1052                    </div>
1053
1054                    
1055                </li>
1056            
1057            </ul>
1058        </div>
1059    
1060
1061    
1062        <div class="returns">
1063            <h4>Returns:</h4>
1064
1065            <div class="returns-description">
1066                
1067                    
1068                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>:
1069                    
1070                    <p>This instance. Useful for chaining method calls.</p>
1071
1072                
1073            </div>
1074        </div>
1075    
1076
1077    
1078</div>
1079
1080                
1081                    <div id="method_setValues" class="method item">
1082    <h3 class="name"><code>setValues</code></h3>
1083
1084    
1085        <div class="args">
1086            <span class="paren">(</span><ul class="args-list inline commas">
1087            
1088                <li class="arg">
1089                    
1090                        <code class="optional">[visible=true]</code>
1091                    
1092                </li>
1093            
1094                <li class="arg">
1095                    
1096                        <code class="optional">[alpha=1]</code>
1097                    
1098                </li>
1099            
1100                <li class="arg">
1101                    
1102                        <code class="optional">[shadow=null]</code>
1103                    
1104                </li>
1105            
1106                <li class="arg">
1107                    
1108                        <code class="optional">[compositeOperation=null]</code>
1109                    
1110                </li>
1111            
1112                <li class="arg">
1113                    
1114                        <code class="optional">[matrix]</code>
1115                    
1116                </li>
1117            
1118            </ul><span class="paren">)</span>
1119        </div>
1120    
1121
1122    
1123        <span class="returns-inline">
1124            <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>
1125        </span>
1126    
1127
1128    
1129
1130    
1131
1132    
1133
1134    
1135
1136    
1137        <span class="flag chainable">chainable</span>
1138    
1139
1140    
1141
1142    <div class="meta">
1143        
1144            
1145                
1146                <p>
1147                
1148                Defined in
1149                
1150            
1151        
1152        
1153        <a href="../files/easeljs_geom_DisplayProps.js.html#l89"><code>setValues:89</code></a>
1154        
1155        </p>
1156
1157
1158        
1159
1160        
1161    </div>
1162
1163    <div class="description">
1164        <p>Reinitializes the instance with the specified values.</p>
1165
1166    </div>
1167
1168    
1169        <div class="params">
1170            <h4>Parameters:</h4>
1171
1172            <ul class="params-list">
1173            
1174                <li class="param">
1175                    
1176                        <code class="param-name optional">[visible=true]</code>
1177                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1178                        <span class="flag optional" title="This parameter is optional.">optional</span>
1179                    
1180
1181                    
1182
1183                    <div class="param-description">
1184                        <p>Visible value.</p>
1185
1186                    </div>
1187
1188                    
1189                </li>
1190            
1191                <li class="param">
1192                    
1193                        <code class="param-name optional">[alpha=1]</code>
1194                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1195                        <span class="flag optional" title="This parameter is optional.">optional</span>
1196                    
1197
1198                    
1199
1200                    <div class="param-description">
1201                        <p>Alpha value.</p>
1202
1203                    </div>
1204
1205                    
1206                </li>
1207            
1208                <li class="param">
1209                    
1210                        <code class="param-name optional">[shadow=null]</code>
1211                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1212                        <span class="flag optional" title="This parameter is optional.">optional</span>
1213                    
1214
1215                    
1216
1217                    <div class="param-description">
1218                        <p>A Shadow instance or null.</p>
1219
1220                    </div>
1221
1222                    
1223                </li>
1224            
1225                <li class="param">
1226                    
1227                        <code class="param-name optional">[compositeOperation=null]</code>
1228                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1229                        <span class="flag optional" title="This parameter is optional.">optional</span>
1230                    
1231
1232                    
1233
1234                    <div class="param-description">
1235                        <p>A compositeOperation value or null.</p>
1236
1237                    </div>
1238
1239                    
1240                </li>
1241            
1242                <li class="param">
1243                    
1244                        <code class="param-name optional">[matrix]</code>
1245                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1246                        <span class="flag optional" title="This parameter is optional.">optional</span>
1247                    
1248
1249                    
1250
1251                    <div class="param-description">
1252                        <p>A transformation matrix. Defaults to an identity matrix.</p>
1253
1254                    </div>
1255
1256                    
1257                </li>
1258            
1259            </ul>
1260        </div>
1261    
1262
1263    
1264        <div class="returns">
1265            <h4>Returns:</h4>
1266
1267            <div class="returns-description">
1268                
1269                    
1270                        <span class="type"><a href="../classes/DisplayProps.html" class="crosslink">DisplayProps</a></span>:
1271                    
1272                    <p>This instance. Useful for chaining method calls.</p>
1273
1274                
1275            </div>
1276        </div>
1277    
1278
1279    
1280</div>
1281
1282                
1283            </div>
1284        
1285
1286        
1287            <div id="properties" class="api-class-tabpanel">
1288                <h2 class="off-left">Properties</h2>
1289
1290                
1291                    <div id="property_alpha" class="property item">
1292    <h3 class="name"><code>alpha</code></h3>
1293    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
1294
1295    
1296
1297    
1298
1299    
1300
1301    
1302
1303    
1304
1305    <div class="meta">
1306        
1307            
1308                
1309                <p>
1310                
1311                Defined in
1312                
1313            
1314        
1315        
1316        <a href="../files/easeljs_geom_DisplayProps.js.html#l54"><code>alpha:54</code></a>
1317        
1318        </p>
1319
1320        
1321
1322        
1323    </div>
1324
1325    <div class="description">
1326        <p>Property representing the alpha that will be applied to a display object.</p>
1327
1328    </div>
1329
1330    
1331
1332    
1333
1334    
1335</div>
1336
1337                
1338                    <div id="property_compositeOperation" class="property item">
1339    <h3 class="name"><code>compositeOperation</code></h3>
1340    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
1341
1342    
1343
1344    
1345
1346    
1347
1348    
1349
1350    
1351
1352    <div class="meta">
1353        
1354            
1355                
1356                <p>
1357                
1358                Defined in
1359                
1360            
1361        
1362        
1363        <a href="../files/easeljs_geom_DisplayProps.js.html#l66"><code>compositeOperation:66</code></a>
1364        
1365        </p>
1366
1367        
1368
1369        
1370    </div>
1371
1372    <div class="description">
1373        <p>Property representing the compositeOperation that will be applied to a display object.
1374You can find a list of valid composite operations at:
1375<a href="https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Compositing"><a href="https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Compositing">https://developer.mozilla.org/en-US/docs/Web/API/Canvas_API/Tutorial/Compositing</a></a></p>
1376
1377    </div>
1378
1379    
1380
1381    
1382
1383    
1384</div>
1385
1386                
1387                    <div id="property_matrix" class="property item">
1388    <h3 class="name"><code>matrix</code></h3>
1389    <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
1390
1391    
1392
1393    
1394
1395    
1396
1397    
1398
1399    
1400
1401    <div class="meta">
1402        
1403            
1404                
1405                <p>
1406                
1407                Defined in
1408                
1409            
1410        
1411        
1412        <a href="../files/easeljs_geom_DisplayProps.js.html#l80"><code>matrix:80</code></a>
1413        
1414        </p>
1415
1416        
1417
1418        
1419    </div>
1420
1421    <div class="description">
1422        <p>The transformation matrix that will be applied to a display object.</p>
1423
1424    </div>
1425
1426    
1427
1428    
1429
1430    
1431</div>
1432
1433                
1434                    <div id="property_shadow" class="property item">
1435    <h3 class="name"><code>shadow</code></h3>
1436    <span class="type"><a href="../classes/Shadow.html" class="crosslink">Shadow</a></span>
1437
1438    
1439
1440    
1441
1442    
1443
1444    
1445
1446    
1447
1448    <div class="meta">
1449        
1450            
1451                
1452                <p>
1453                
1454                Defined in
1455                
1456            
1457        
1458        
1459        <a href="../files/easeljs_geom_DisplayProps.js.html#l60"><code>shadow:60</code></a>
1460        
1461        </p>
1462
1463        
1464
1465        
1466    </div>
1467
1468    <div class="description">
1469        <p>Property representing the shadow that will be applied to a display object.</p>
1470
1471    </div>
1472
1473    
1474
1475    
1476
1477    
1478</div>
1479
1480                
1481                    <div id="property_visible" class="property item">
1482    <h3 class="name"><code>visible</code></h3>
1483    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
1484
1485    
1486
1487    
1488
1489    
1490
1491    
1492
1493    
1494
1495    <div class="meta">
1496        
1497            
1498                
1499                <p>
1500                
1501                Defined in
1502                
1503            
1504        
1505        
1506        <a href="../files/easeljs_geom_DisplayProps.js.html#l74"><code>visible:74</code></a>
1507        
1508        </p>
1509
1510        
1511
1512        
1513    </div>
1514
1515    <div class="description">
1516        <p>Property representing the value for visible that will be applied to a display object.</p>
1517
1518    </div>
1519
1520    
1521
1522    
1523
1524    
1525</div>
1526
1527                
1528            </div>
1529        
1530
1531        
1532
1533        
1534    </div>
1535</div>
1536
1537                    </div>
1538                </div>
1539            </div>
1540        </div>
1541    </div>
1542</div>
1543<script src="../assets/vendor/prettify/prettify-min.js"></script>
1544<script>prettyPrint();</script>
1545<script src="../assets/js/yui-prettify.js"></script>
1546<script src="../assets/../api.js"></script>
1547<script src="../assets/js/api-filter.js"></script>
1548<script src="../assets/js/api-list.js"></script>
1549<script src="../assets/js/api-search.js"></script>
1550<script src="../assets/js/apidocs.js"></script>
1551</body>
1552</html>