libraries/EaselJS_docs/classes/Graphics.StrokeStyle.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.StrokeStyle</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.StrokeStyle 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#l2057"><code>Graphics.StrokeStyle:2057</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_setStrokeStyle" class="crosslink">setStrokeStyle</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.StrokeStyle" class="method item">
230 <h3 class="name"><code>Graphics.StrokeStyle</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>width</code>
239
240 </li>
241
242 <li class="arg">
243
244 <code class="optional">[caps=butt]</code>
245
246 </li>
247
248 <li class="arg">
249
250 <code class="optional">[joints=miter]</code>
251
252 </li>
253
254 <li class="arg">
255
256 <code class="optional">[miterLimit=10]</code>
257
258 </li>
259
260 <li class="arg">
261
262 <code class="optional">[ignoreScale=false]</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_display_Graphics.js.html#l2057"><code>Graphics.StrokeStyle:2057</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">width</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
320
321
322
323 <div class="param-description">
324
325 </div>
326
327
328 </li>
329
330 <li class="param">
331
332 <code class="param-name optional">[caps=butt]</code>
333 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
334 <span class="flag optional" title="This parameter is optional.">optional</span>
335
336
337
338
339 <div class="param-description">
340
341 </div>
342
343
344 </li>
345
346 <li class="param">
347
348 <code class="param-name optional">[joints=miter]</code>
349 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
350 <span class="flag optional" title="This parameter is optional.">optional</span>
351
352
353
354
355 <div class="param-description">
356
357 </div>
358
359
360 </li>
361
362 <li class="param">
363
364 <code class="param-name optional">[miterLimit=10]</code>
365 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
366 <span class="flag optional" title="This parameter is optional.">optional</span>
367
368
369
370
371 <div class="param-description">
372
373 </div>
374
375
376 </li>
377
378 <li class="param">
379
380 <code class="param-name optional">[ignoreScale=false]</code>
381 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
382 <span class="flag optional" title="This parameter is optional.">optional</span>
383
384
385
386
387 <div class="param-description">
388
389 </div>
390
391
392 </li>
393
394 </ul>
395 </div>
396
397
398
399
400
401</div>
402
403 </div>
404
405
406<div id="classdocs" class="tabview">
407 <ul class="api-class-tabs">
408 <li class="api-class-tab index"><a href="#index">Index</a></li>
409
410
411 <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
412
413
414 <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
415
416
417
418 </ul>
419
420 <div>
421 <div id="index" class="api-class-tabpanel index">
422 <h2 class="off-left">Item Index</h2>
423
424
425 <div class="index-section methods">
426 <h3>Methods</h3>
427
428 <ul class="index-list methods">
429
430 <li class="index-item method">
431 <a href="#method_exec">exec</a>
432
433
434
435 </li>
436
437 </ul>
438 </div>
439
440
441
442 <div class="index-section properties">
443 <h3>Properties</h3>
444
445 <ul class="index-list properties">
446
447 <li class="index-item property">
448 <a href="#property_caps">caps</a>
449
450
451
452 </li>
453
454 <li class="index-item property">
455 <a href="#property_joints">joints</a>
456
457
458
459 </li>
460
461 <li class="index-item property">
462 <a href="#property_miterLimit">miterLimit</a>
463
464
465
466 </li>
467
468 <li class="index-item property">
469 <a href="#property_width">width</a>
470
471
472
473 </li>
474
475 </ul>
476 </div>
477
478
479
480
481
482 </div>
483
484
485 <div id="methods" class="api-class-tabpanel">
486 <h2 class="off-left">Methods</h2>
487
488
489 <div id="method_exec" class="method item">
490 <h3 class="name"><code>exec</code></h3>
491
492
493 <div class="args">
494 <span class="paren">(</span><ul class="args-list inline commas">
495
496 <li class="arg">
497
498 <code>ctx</code>
499
500 </li>
501
502 </ul><span class="paren">)</span>
503 </div>
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520 <div class="meta">
521
522
523
524 <p>
525
526 Defined in
527
528
529
530
531 <a href="../files/easeljs_display_Graphics.js.html#l2085"><code>exec:2085</code></a>
532
533 </p>
534
535
536
537
538
539 </div>
540
541 <div class="description">
542 <p>Execute the Graphics command in the provided Canvas context.</p>
543
544 </div>
545
546
547 <div class="params">
548 <h4>Parameters:</h4>
549
550 <ul class="params-list">
551
552 <li class="param">
553
554 <code class="param-name">ctx</code>
555 <span class="type">CanvasRenderingContext2D</span>
556
557
558
559
560 <div class="param-description">
561 <p>The canvas rendering context</p>
562
563 </div>
564
565
566 </li>
567
568 </ul>
569 </div>
570
571
572
573
574
575</div>
576
577
578 </div>
579
580
581
582 <div id="properties" class="api-class-tabpanel">
583 <h2 class="off-left">Properties</h2>
584
585
586 <div id="property_caps" class="property item">
587 <h3 class="name"><code>caps</code></h3>
588 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
589
590
591
592
593
594
595
596
597
598
599
600 <div class="meta">
601
602
603
604 <p>
605
606 Defined in
607
608
609
610
611 <a href="../files/easeljs_display_Graphics.js.html#l2071"><code>caps:2071</code></a>
612
613 </p>
614
615
616
617
618 </div>
619
620 <div class="description">
621 <p>One of: butt, round, square</p>
622
623 </div>
624
625
626
627
628
629
630</div>
631
632
633 <div id="property_joints" class="property item">
634 <h3 class="name"><code>joints</code></h3>
635 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
636
637
638
639
640
641
642
643
644
645
646
647 <div class="meta">
648
649
650
651 <p>
652
653 Defined in
654
655
656
657
658 <a href="../files/easeljs_display_Graphics.js.html#l2076"><code>joints:2076</code></a>
659
660 </p>
661
662
663
664
665 </div>
666
667 <div class="description">
668 <p>One of: round, bevel, miter</p>
669
670 </div>
671
672
673
674
675
676
677</div>
678
679
680 <div id="property_miterLimit" class="property item">
681 <h3 class="name"><code>miterLimit</code></h3>
682 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
683
684
685
686
687
688
689
690
691
692
693
694 <div class="meta">
695
696
697
698 <p>
699
700 Defined in
701
702
703
704
705 <a href="../files/easeljs_display_Graphics.js.html#l2081"><code>miterLimit:2081</code></a>
706
707 </p>
708
709
710
711
712 </div>
713
714 <div class="description">
715
716 </div>
717
718
719
720
721
722
723</div>
724
725
726 <div id="property_width" class="property item">
727 <h3 class="name"><code>width</code></h3>
728 <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
729
730
731
732
733
734
735
736
737
738
739
740 <div class="meta">
741
742
743
744 <p>
745
746 Defined in
747
748
749
750
751 <a href="../files/easeljs_display_Graphics.js.html#l2067"><code>width:2067</code></a>
752
753 </p>
754
755
756
757
758 </div>
759
760 <div class="description">
761
762 </div>
763
764
765
766
767
768
769</div>
770
771
772 </div>
773
774
775
776
777
778 </div>
779</div>
780
781 </div>
782 </div>
783 </div>
784 </div>
785 </div>
786</div>
787<script src="../assets/vendor/prettify/prettify-min.js"></script>
788<script>prettyPrint();</script>
789<script src="../assets/js/yui-prettify.js"></script>
790<script src="../assets/../api.js"></script>
791<script src="../assets/js/api-filter.js"></script>
792<script src="../assets/js/api-list.js"></script>
793<script src="../assets/js/api-search.js"></script>
794<script src="../assets/js/apidocs.js"></script>
795</body>
796</html>