mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
PathStyle: document #dashOffset & #dashArray.
This commit is contained in:
parent
fe416e294d
commit
6f41aaf217
1 changed files with 24 additions and 25 deletions
|
@ -258,32 +258,31 @@ var PathStyle = this.PathStyle = Base.extend(new function() {
|
||||||
* path3.strokeJoin = 'bevel';
|
* path3.strokeJoin = 'bevel';
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * The dash offset of the stroke.
|
* The dash offset of the stroke.
|
||||||
// *
|
*
|
||||||
// * @property
|
* @property
|
||||||
// * @name PathStyle#dashOffset
|
* @name PathStyle#dashOffset
|
||||||
// * @default 0
|
* @default 0
|
||||||
// * @type Number
|
* @type Number
|
||||||
// */
|
*/
|
||||||
|
|
||||||
// /**
|
/**
|
||||||
// * Specifies an array containing the dash and gap lengths of the stroke.
|
* Specifies an array containing the dash and gap lengths of the stroke.
|
||||||
// *
|
*
|
||||||
// * @example
|
* @example {@paperscript}
|
||||||
// * // Create a line from { x: 0, y: 50 } to { x: 50, y: 50 };
|
* var path = new Path.Circle(new Point(80, 50), 40);
|
||||||
// * var line = new Path.Line(new Point(0, 50), new Point(50, 50));
|
* path.strokeWidth = 2;
|
||||||
// *
|
* path.strokeColor = 'black';
|
||||||
// * line.strokeWidth = 3;
|
*
|
||||||
// *
|
* // Set the dashed stroke to [10pt dash, 4pt gap]:
|
||||||
// * // Set the dashed stroke to [10pt dash, 5pt gap, 8pt dash, 10pt gap]:
|
* path.dashArray = [10, 4];
|
||||||
// * line.dashArray = [10, 5, 8, 10];
|
*
|
||||||
// *
|
* @property
|
||||||
// * @property
|
* @name PathStyle#dashArray
|
||||||
// * @name PathStyle#dashArray
|
* @default []
|
||||||
// * @default []
|
* @type Array
|
||||||
// * @type Array
|
*/
|
||||||
// */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The miter limit of the stroke.
|
* The miter limit of the stroke.
|
||||||
|
|
Loading…
Reference in a new issue