mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Documentation: use inline code tags for boolean and number values,
This commit is contained in:
parent
31bf3ffa70
commit
2b8f1b71ec
6 changed files with 14 additions and 13 deletions
|
@ -308,8 +308,8 @@ var Color = this.Color = Base.extend(new function() {
|
|||
},
|
||||
|
||||
/**
|
||||
* A value between 0 and 1 that specifies the color's alpha value.
|
||||
* All colors of the different subclasses support alpha values.
|
||||
* A value between {@code 0} and {@code 1} that specifies the color's alpha
|
||||
* value. All colors of the different subclasses support alpha values.
|
||||
*
|
||||
* @type Number
|
||||
* @bean
|
||||
|
|
|
@ -54,7 +54,8 @@ var GradientStop = this.GradientStop = Base.extend({
|
|||
},
|
||||
|
||||
/**
|
||||
* The ramp-point of the gradient stop as a value between 0 and 1.
|
||||
* The ramp-point of the gradient stop as a value between {@code 0} and
|
||||
* {@code 1}.
|
||||
*
|
||||
* @type Number
|
||||
* @bean
|
||||
|
|
|
@ -73,8 +73,8 @@ var Group = this.Group = Item.extend({
|
|||
|
||||
/**
|
||||
* Specifies whether the group item is to be clipped.
|
||||
* When setting to true, the first child in the group is automatically
|
||||
* defined as the clipping mask.
|
||||
* When setting to {@code true}, the first child in the group is
|
||||
* automatically defined as the clipping mask.
|
||||
*
|
||||
* @type Boolean
|
||||
* @bean
|
||||
|
|
|
@ -279,7 +279,7 @@ var Item = this.Item = Base.extend({
|
|||
blendMode: 'normal',
|
||||
|
||||
/**
|
||||
* The opacity of the item as a value between 0 and 1.
|
||||
* The opacity of the item as a value between {@code 0} and {@code 1}.
|
||||
*
|
||||
* @example
|
||||
* // Making an item 50% transparent:
|
||||
|
@ -470,7 +470,7 @@ var Item = this.Item = Base.extend({
|
|||
},
|
||||
|
||||
/**
|
||||
* Removes all of the item's children (if any).
|
||||
* Removes all of the item's {@link #children} (if any).
|
||||
*
|
||||
* @return {Boolean} {@true removing was successful}
|
||||
*/
|
||||
|
|
|
@ -417,7 +417,7 @@ var Curve = this.Curve = Base.extend({
|
|||
* Returns the point on the curve at the specified position.
|
||||
*
|
||||
* @param {Number} parameter the position at which to find the point as
|
||||
* a value between 0 and 1.
|
||||
* a value between {@code 0} and {@code 1}.
|
||||
* @return {Point}
|
||||
*/
|
||||
getPoint: function(parameter) {
|
||||
|
@ -428,7 +428,7 @@ var Curve = this.Curve = Base.extend({
|
|||
* Returns the tangent point on the curve at the specified position.
|
||||
*
|
||||
* @param {Number} parameter the position at which to find the tangent
|
||||
* point as a value between 0 and 1.
|
||||
* point as a value between {@code 0} and {@code 1}.
|
||||
*/
|
||||
getTangent: function(parameter) {
|
||||
return evaluate(this, parameter, 1);
|
||||
|
@ -438,7 +438,7 @@ var Curve = this.Curve = Base.extend({
|
|||
* Returns the normal point on the curve at the specified position.
|
||||
*
|
||||
* @param {Number} parameter the position at which to find the normal
|
||||
* point as a value between 0 and 1.
|
||||
* point as a value between {@code 0} and {@code 1}.
|
||||
*/
|
||||
getNormal: function(parameter) {
|
||||
return evaluate(this, parameter, 2);
|
||||
|
|
|
@ -157,10 +157,10 @@ Path.inject({ statics: new function() {
|
|||
* Creates an oval shaped Path Item.
|
||||
*
|
||||
* @param {Rectangle} rect
|
||||
* @param {Boolean} [circumscribed=false] if this is set to true the
|
||||
* @param {Boolean} [circumscribed=false] when set to {@code true} the
|
||||
* oval shaped path will be created so the rectangle fits into
|
||||
* it. If it's set to false the oval path will fit within the
|
||||
* rectangle.
|
||||
* it. When set to {@code false} the oval path will fit within
|
||||
* the rectangle.
|
||||
* @return {Path} the newly created path
|
||||
*
|
||||
* @example
|
||||
|
|
Loading…
Reference in a new issue