libraries/EaselJS_docs/classes/Graphics.StrokeDash.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 : Graphics.StrokeDash</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>Graphics.StrokeDash Class</h1>
199<div class="box meta">
200
201
202
203
204
205 <div class="foundat">
206 Defined in: <a href="../files/easeljs_display_Graphics.js.html#l2106"><code>Graphics.StrokeDash:2106</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>Graphics command object. See <a href="../classes/Graphics.html#method_setStrokeDash" class="crosslink">setStrokeDash</a> and <a href="../classes/Graphics.html#method_append" class="crosslink">append</a> for more information.</p>
223
224</div>
225
226
227 <div class="constructor">
228 <h2>Constructor</h2>
229 <div id="method_Graphics.StrokeDash" class="method item">
230 <h3 class="name"><code>Graphics.StrokeDash</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">[segments]</code>
239
240 </li>
241
242 <li class="arg">
243
244 <code class="optional">[offset=0]</code>
245
246 </li>
247
248 </ul><span class="paren">)</span>
249 </div>
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266 <div class="meta">
267
268
269
270 <p>
271
272 Defined in
273
274
275
276
277 <a href="../files/easeljs_display_Graphics.js.html#l2106"><code>Graphics.StrokeDash:2106</code></a>
278
279 </p>
280
281
282
283
284
285 </div>
286
287 <div class="description">
288
289 </div>
290
291
292 <div class="params">
293 <h4>Parameters:</h4>
294
295 <ul class="params-list">
296
297 <li class="param">
298
299 <code class="param-name optional">[segments]</code>
300 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
301 <span class="flag optional" title="This parameter is optional.">optional</span>
302
303
304
305
306 <div class="param-description">
307
308 </div>
309
310
311 </li>
312
313 <li class="param">
314
315 <code class="param-name optional">[offset=0]</code>
316 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
317 <span class="flag optional" title="This parameter is optional.">optional</span>
318
319
320
321
322 <div class="param-description">
323
324 </div>
325
326
327 </li>
328
329 </ul>
330 </div>
331
332
333
334
335
336</div>
337
338 </div>
339
340
341<div id="classdocs" class="tabview">
342 <ul class="api-class-tabs">
343 <li class="api-class-tab index"><a href="#index">Index</a></li>
344
345
346 <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
347
348
349 <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
350
351
352
353 </ul>
354
355 <div>
356 <div id="index" class="api-class-tabpanel index">
357 <h2 class="off-left">Item Index</h2>
358
359
360 <div class="index-section methods">
361 <h3>Methods</h3>
362
363 <ul class="index-list methods">
364
365 <li class="index-item method">
366 <a href="#method_exec">exec</a>
367
368
369
370 </li>
371
372 </ul>
373 </div>
374
375
376
377 <div class="index-section properties">
378 <h3>Properties</h3>
379
380 <ul class="index-list properties">
381
382 <li class="index-item property protected">
383 <a href="#property_EMPTY_SEGMENTS">EMPTY_SEGMENTS</a>
384
385
386 <span class="flag static">static</span>
387
388
389 </li>
390
391 <li class="index-item property">
392 <a href="#property_offset">offset</a>
393
394
395
396 </li>
397
398 <li class="index-item property">
399 <a href="#property_segments">segments</a>
400
401
402
403 </li>
404
405 </ul>
406 </div>
407
408
409
410
411
412 </div>
413
414
415 <div id="methods" class="api-class-tabpanel">
416 <h2 class="off-left">Methods</h2>
417
418
419 <div id="method_exec" class="method item">
420 <h3 class="name"><code>exec</code></h3>
421
422
423 <div class="args">
424 <span class="paren">(</span><ul class="args-list inline commas">
425
426 <li class="arg">
427
428 <code>ctx</code>
429
430 </li>
431
432 </ul><span class="paren">)</span>
433 </div>
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450 <div class="meta">
451
452
453
454 <p>
455
456 Defined in
457
458
459
460
461 <a href="../files/easeljs_display_Graphics.js.html#l2121"><code>exec:2121</code></a>
462
463 </p>
464
465
466
467
468
469 </div>
470
471 <div class="description">
472 <p>Execute the Graphics command in the provided Canvas context.</p>
473
474 </div>
475
476
477 <div class="params">
478 <h4>Parameters:</h4>
479
480 <ul class="params-list">
481
482 <li class="param">
483
484 <code class="param-name">ctx</code>
485 <span class="type">CanvasRenderingContext2D</span>
486
487
488
489
490 <div class="param-description">
491 <p>The canvas rendering context</p>
492
493 </div>
494
495
496 </li>
497
498 </ul>
499 </div>
500
501
502
503
504
505</div>
506
507
508 </div>
509
510
511
512 <div id="properties" class="api-class-tabpanel">
513 <h2 class="off-left">Properties</h2>
514
515
516 <div id="property_EMPTY_SEGMENTS" class="property item protected">
517 <h3 class="name"><code>EMPTY_SEGMENTS</code></h3>
518 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
519
520
521
522
523 <span class="flag protected">protected</span>
524
525
526
527 <span class="flag final">final</span>
528
529
530
531 <span class="flag static">static</span>
532
533
534
535 <span class="flag readonly">readonly</span>
536
537
538 <div class="meta">
539
540
541
542 <p>
543
544 Defined in
545
546
547
548
549 <a href="../files/easeljs_display_Graphics.js.html#l2135"><code>EMPTY_SEGMENTS:2135</code></a>
550
551 </p>
552
553
554
555
556 </div>
557
558 <div class="description">
559 <p>The default value for segments (ie. no dash).</p>
560
561 </div>
562
563
564
565
566
567
568</div>
569
570
571 <div id="property_offset" class="property item">
572 <h3 class="name"><code>offset</code></h3>
573 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
574
575
576
577
578
579
580
581
582
583
584
585 <div class="meta">
586
587
588
589 <p>
590
591 Defined in
592
593
594
595
596 <a href="../files/easeljs_display_Graphics.js.html#l2117"><code>offset:2117</code></a>
597
598 </p>
599
600
601
602
603 </div>
604
605 <div class="description">
606
607 </div>
608
609
610
611
612
613
614</div>
615
616
617 <div id="property_segments" class="property item">
618 <h3 class="name"><code>segments</code></h3>
619 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
620
621
622
623
624
625
626
627
628
629
630
631 <div class="meta">
632
633
634
635 <p>
636
637 Defined in
638
639
640
641
642 <a href="../files/easeljs_display_Graphics.js.html#l2113"><code>segments:2113</code></a>
643
644 </p>
645
646
647
648
649 </div>
650
651 <div class="description">
652
653 </div>
654
655
656
657
658
659
660</div>
661
662
663 </div>
664
665
666
667
668
669 </div>
670</div>
671
672 </div>
673 </div>
674 </div>
675 </div>
676 </div>
677</div>
678<script src="../assets/vendor/prettify/prettify-min.js"></script>
679<script>prettyPrint();</script>
680<script src="../assets/js/yui-prettify.js"></script>
681<script src="../assets/../api.js"></script>
682<script src="../assets/js/api-filter.js"></script>
683<script src="../assets/js/api-list.js"></script>
684<script src="../assets/js/api-search.js"></script>
685<script src="../assets/js/apidocs.js"></script>
686</body>
687</html>