mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Prebuilt module for commit e7b53c8a22
This commit is contained in:
parent
9629d63fab
commit
e3c07bb501
38 changed files with 4050 additions and 249 deletions
140
dist/docs/assets/js/paper.js
vendored
140
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue Jan 10 13:34:50 2017 +0100
|
||||
* Date: Wed Jan 11 15:01:10 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -5937,6 +5937,10 @@ var Curve = Base.extend({
|
|||
return '{ ' + parts.join(', ') + ' }';
|
||||
},
|
||||
|
||||
classify: function() {
|
||||
return Curve.classify(this.getValues());
|
||||
},
|
||||
|
||||
remove: function() {
|
||||
var removed = false;
|
||||
if (this._path) {
|
||||
|
@ -6635,6 +6639,61 @@ new function() {
|
|||
|
||||
return { statics: {
|
||||
|
||||
classify: function(v) {
|
||||
|
||||
var x1 = v[0], y1 = v[1],
|
||||
x2 = v[2], y2 = v[3],
|
||||
x3 = v[4], y3 = v[5],
|
||||
x4 = v[6], y4 = v[7],
|
||||
a1 = x1 * (y4 - y3) + y1 * (x3 - x4) + x4 * y3 - y4 * x3,
|
||||
a2 = x2 * (y1 - y4) + y2 * (x4 - x1) + x1 * y4 - y1 * x4,
|
||||
a3 = x3 * (y2 - y1) + y3 * (x1 - x2) + x2 * y1 - y2 * x1,
|
||||
d3 = 3 * a3,
|
||||
d2 = d3 - a2,
|
||||
d1 = d2 - a2 + a1,
|
||||
l = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3),
|
||||
s = l !== 0 ? 1 / l : 0,
|
||||
isZero = Numerical.isZero,
|
||||
serpentine = 'serpentine';
|
||||
d1 *= s;
|
||||
d2 *= s;
|
||||
d3 *= s;
|
||||
|
||||
function type(type, t1, t2) {
|
||||
var hasRoots = t1 !== undefined,
|
||||
t1Ok = hasRoots && t1 > 0 && t1 < 1,
|
||||
t2Ok = hasRoots && t2 > 0 && t2 < 1;
|
||||
if (hasRoots && (!(t1Ok || t2Ok)
|
||||
|| type === 'loop' && !(t1Ok && t2Ok))) {
|
||||
type = 'arch';
|
||||
t1Ok = t2Ok = false;
|
||||
}
|
||||
return {
|
||||
type: type,
|
||||
roots: t1Ok || t2Ok
|
||||
? t1Ok && t2Ok
|
||||
? t1 < t2 ? [t1, t2] : [t2, t1]
|
||||
: [t1Ok ? t1 : t2]
|
||||
: null
|
||||
};
|
||||
}
|
||||
|
||||
if (isZero(d1)) {
|
||||
return isZero(d2)
|
||||
? type(isZero(d3) ? 'line' : 'quadratic')
|
||||
: type(serpentine, d3 / (3 * d2));
|
||||
}
|
||||
var d = 3 * d2 * d2 - 4 * d1 * d3;
|
||||
if (isZero(d)) {
|
||||
return type('cusp', d2 / (2 * d1));
|
||||
}
|
||||
var f1 = d > 0 ? Math.sqrt(d / 3) : Math.sqrt(-d),
|
||||
f2 = 2 * d1;
|
||||
return type(d > 0 ? serpentine : 'loop',
|
||||
(d2 + f1) / f2,
|
||||
(d2 - f1) / f2);
|
||||
},
|
||||
|
||||
getLength: function(v, a, b, ds) {
|
||||
if (a === undefined)
|
||||
a = 0;
|
||||
|
@ -6728,12 +6787,6 @@ new function() {
|
|||
t2 = Curve.getTimeOf(v2, p2);
|
||||
if (t2 !== null && t2 >= (excludeEnd ? tMin : 0) &&
|
||||
t2 <= (excludeStart ? tMax : 1)) {
|
||||
var renormalize = param.renormalize;
|
||||
if (renormalize) {
|
||||
var res = renormalize(t1, t2);
|
||||
t1 = res[0];
|
||||
t2 = res[1];
|
||||
}
|
||||
var loc1 = new CurveLocation(c1, t1,
|
||||
p1 || Curve.getPoint(v1, t1), overlap),
|
||||
loc2 = new CurveLocation(c2, t2,
|
||||
|
@ -6923,7 +6976,7 @@ new function() {
|
|||
return { statics: {
|
||||
_getIntersections: function(v1, v2, c1, c2, locations, param) {
|
||||
if (!v2) {
|
||||
return Curve._getSelfIntersection(v1, c1, locations, param);
|
||||
return Curve._getLoopIntersection(v1, c1, locations, param);
|
||||
}
|
||||
var epsilon = 1e-12,
|
||||
c1p1x = v1[0], c1p1y = v1[1],
|
||||
|
@ -6984,57 +7037,15 @@ new function() {
|
|||
return locations;
|
||||
},
|
||||
|
||||
_getSelfIntersection: function(v1, c1, locations, param) {
|
||||
var p1x = v1[0], p1y = v1[1],
|
||||
h1x = v1[2], h1y = v1[3],
|
||||
h2x = v1[4], h2y = v1[5],
|
||||
p2x = v1[6], p2y = v1[7];
|
||||
var line = new Line(p1x, p1y, p2x, p2y, false),
|
||||
side1 = line.getSide(new Point(h1x, h1y), true),
|
||||
side2 = line.getSide(new Point(h2x, h2y), true);
|
||||
if (side1 === side2) {
|
||||
var edgeSum = (p1x - h2x) * (h1y - p2y)
|
||||
+ (h1x - p2x) * (h2y - p1y);
|
||||
if (edgeSum * side1 > 0)
|
||||
return locations;
|
||||
_getLoopIntersection: function(v1, c1, locations, param) {
|
||||
var info = Curve.classify(v1);
|
||||
if (info.type === 'loop') {
|
||||
var roots = info.roots;
|
||||
addLocation(locations, param,
|
||||
v1, c1, roots[0], null,
|
||||
v1, c1, roots[1], null);
|
||||
}
|
||||
var ax = p2x - 3 * h2x + 3 * h1x - p1x,
|
||||
bx = h2x - 2 * h1x + p1x,
|
||||
cx = h1x - p1x,
|
||||
ay = p2y - 3 * h2y + 3 * h1y - p1y,
|
||||
by = h2y - 2 * h1y + p1y,
|
||||
cy = h1y - p1y,
|
||||
ac = ay * cx - ax * cy,
|
||||
ab = ay * bx - ax * by,
|
||||
bc = by * cx - bx * cy;
|
||||
if (ac * ac - 4 * ab * bc < 0) {
|
||||
var roots = [],
|
||||
tSplit,
|
||||
count = Numerical.solveCubic(
|
||||
ax * ax + ay * ay,
|
||||
3 * (ax * bx + ay * by),
|
||||
2 * (bx * bx + by * by) + ax * cx + ay * cy,
|
||||
bx * cx + by * cy,
|
||||
roots, 0, 1);
|
||||
if (count > 0) {
|
||||
for (var i = 0, maxCurvature = 0; i < count; i++) {
|
||||
var curvature = Math.abs(
|
||||
c1.getCurvatureAtTime(roots[i]));
|
||||
if (curvature > maxCurvature) {
|
||||
maxCurvature = curvature;
|
||||
tSplit = roots[i];
|
||||
}
|
||||
}
|
||||
var parts = Curve.subdivide(v1, tSplit);
|
||||
param.excludeEnd = true;
|
||||
param.renormalize = function(t1, t2) {
|
||||
return [t1 * tSplit, t2 * (1 - tSplit) + tSplit];
|
||||
};
|
||||
Curve._getIntersections(parts[0], parts[1], c1, c1,
|
||||
locations, param);
|
||||
}
|
||||
}
|
||||
return locations;
|
||||
return locations;
|
||||
},
|
||||
|
||||
getOverlaps: function(v1, v2) {
|
||||
|
@ -7444,7 +7455,6 @@ var PathItem = Item.extend({
|
|||
},
|
||||
|
||||
statics: {
|
||||
|
||||
create: function(arg) {
|
||||
var data,
|
||||
segments,
|
||||
|
@ -7633,7 +7643,7 @@ var PathItem = Item.extend({
|
|||
arrays.push(locations);
|
||||
}
|
||||
if (self) {
|
||||
Curve._getSelfIntersection(values1, curve1, locations, {
|
||||
Curve._getLoopIntersection(values1, curve1, locations, {
|
||||
include: include,
|
||||
excludeStart: length1 === 1 &&
|
||||
curve1.getPoint1().equals(curve1.getPoint2())
|
||||
|
@ -9838,7 +9848,7 @@ PathItem.inject(new function() {
|
|||
clearHandles = false,
|
||||
clearCurves = clearLater || [],
|
||||
clearLookup = clearLater && {},
|
||||
rescaleLocs,
|
||||
renormalizeLocs,
|
||||
prevCurve,
|
||||
prevTime;
|
||||
|
||||
|
@ -9862,7 +9872,7 @@ PathItem.inject(new function() {
|
|||
if (curve !== prevCurve) {
|
||||
clearHandles = !curve.hasHandles()
|
||||
|| clearLookup && clearLookup[getId(curve)];
|
||||
rescaleLocs = [];
|
||||
renormalizeLocs = [];
|
||||
prevTime = null;
|
||||
} else if (prevTime > tMin) {
|
||||
loc._time /= prevTime;
|
||||
|
@ -9870,7 +9880,7 @@ PathItem.inject(new function() {
|
|||
prevCurve = curve;
|
||||
}
|
||||
if (exclude) {
|
||||
rescaleLocs.push(loc);
|
||||
renormalizeLocs.push(loc);
|
||||
continue;
|
||||
} else if (include) {
|
||||
results.unshift(loc);
|
||||
|
@ -9886,8 +9896,8 @@ PathItem.inject(new function() {
|
|||
if (clearHandles)
|
||||
clearCurves.push(curve, newCurve);
|
||||
segment = newCurve._segment1;
|
||||
for (var j = rescaleLocs.length - 1; j >= 0; j--) {
|
||||
var l = rescaleLocs[j];
|
||||
for (var j = renormalizeLocs.length - 1; j >= 0; j--) {
|
||||
var l = renormalizeLocs[j];
|
||||
l._time = (l._time - time) / (1 - time);
|
||||
}
|
||||
}
|
||||
|
|
86
dist/docs/classes/Color.html
vendored
86
dist/docs/classes/Color.html
vendored
|
@ -114,9 +114,12 @@ circle.fillColor = '#ff0000';
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Creating a RGB Color:</span></h4>
|
||||
|
||||
|
@ -178,9 +181,12 @@ circle.fillColor = new Color(1, 0, 0.5);
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Creating a gray Color:</span></h4>
|
||||
|
||||
|
@ -227,7 +233,7 @@ circle.fillColor = new Color(0.5);
|
|||
<li><tt>gradient.gradient: <a href="../classes/Gradient.html"><tt>Gradient</tt></a></tt> — the gradient object that describes the color stops and type of gradient to be used</li>
|
||||
<li><tt>gradient.origin: <a href="../classes/Point.html"><tt>Point</tt></a></tt> — the origin point of the gradient</li>
|
||||
<li><tt>gradient.destination: <a href="../classes/Point.html"><tt>Point</tt></a></tt> — the destination point of the gradient</li>
|
||||
<li><tt>gradient.stops: undefined</tt> — {GradientStop[]} the gradient stops describing the gradient, as an alternative to providing a gradient object</li>
|
||||
<li><tt>gradient.stops: Array of <a href="../classes/GradientStop.html"><tt>GradientStop</tt></a> objects</tt> — the gradient stops describing the gradient, as an alternative to providing a gradient object</li>
|
||||
<li><tt>gradient.radial: <tt>Boolean</tt></tt> — controls whether the gradient is radial, as an alternative to providing a gradient object</li>
|
||||
</ul>
|
||||
|
||||
|
@ -250,9 +256,12 @@ circle.fillColor = new Color(0.5);
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Creating a HSB Color:</span></h4>
|
||||
|
||||
|
@ -380,9 +389,12 @@ var path = new Path.Rectangle({
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Applying a linear gradient color containing evenly distributed color stops:</span></h4>
|
||||
|
||||
|
@ -504,9 +516,12 @@ path.fillColor = gradientColor;
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the addition of the color and the value as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -541,9 +556,12 @@ console.log(result); // { red: 1, blue: 1, green: 1 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the addition of the two colors as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -589,9 +607,12 @@ console.log(result); // { red: 1, blue: 1, green: 1 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the subtraction of the color and the value as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -626,9 +647,12 @@ console.log(result); // { red: 0, blue: 0, green: 0 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the subtraction of the two colors as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -674,9 +698,12 @@ console.log(result); // { red: 0, blue: 1, green: 1 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the multiplication of the color and the value as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -711,9 +738,12 @@ console.log(result); // { red: 0.25, blue: 0.5, green: 0.5 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the multiplication of the two colors as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -759,9 +789,12 @@ console.log(result); // { red: 0, blue: 0, green: 0.5 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the division of the color and the value as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -796,9 +829,12 @@ console.log(result); // { red: 0.25, blue: 0.5, green: 0.5 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the division of the two colors as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -871,7 +907,7 @@ console.log(color.type); // 'rgb'</code></pre>
|
|||
<ul class="member-list">
|
||||
<h4>Type:</h4>
|
||||
<li>
|
||||
<tt>Number</tt>
|
||||
Array of <tt>Number</tt>s
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
@ -1352,6 +1388,8 @@ function onMouseMove(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1387,9 +1425,12 @@ function onMouseMove(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the converted color as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1413,9 +1454,12 @@ function onMouseMove(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the color has an alpha value, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1451,9 +1495,12 @@ function onMouseMove(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the colors are the same, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1477,9 +1524,12 @@ function onMouseMove(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — a copy of the color object
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1505,9 +1555,12 @@ function onMouseMove(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of the color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1543,9 +1596,12 @@ function onMouseMove(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a CSS string representation of the color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1575,6 +1631,8 @@ function onMouseMove(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1615,9 +1673,12 @@ function onMouseMove(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the addition of the color and the value as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1659,9 +1720,12 @@ console.log(result); // { red: 1, blue: 1, green: 1 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the addition of the two colors as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1707,9 +1771,12 @@ console.log(result); // { red: 1, blue: 1, green: 1 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the subtraction of the color and the value as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1751,9 +1818,12 @@ console.log(result); // { red: 0, blue: 0, green: 0 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the subtraction of the two colors as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1799,9 +1869,12 @@ console.log(result); // { red: 0, blue: 1, green: 1 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the multiplication of the color and the value as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1843,9 +1916,12 @@ console.log(result); // { red: 0.25, blue: 0.5, green: 0.5 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the multiplication of the two colors as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1891,9 +1967,12 @@ console.log(result); // { red: 0, blue: 0, green: 0.5 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the division of the color and the value as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1935,9 +2014,12 @@ console.log(result); // { red: 0.25, blue: 0.5, green: 0.5 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the division of the two colors as a new color
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
|
289
dist/docs/classes/CompoundPath.html
vendored
289
dist/docs/classes/CompoundPath.html
vendored
File diff suppressed because it is too large
Load diff
171
dist/docs/classes/Curve.html
vendored
171
dist/docs/classes/Curve.html
vendored
|
@ -60,9 +60,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Curve.html"><tt>Curve</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -119,9 +122,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Curve.html"><tt>Curve</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -454,7 +460,7 @@
|
|||
<ul class="member-list">
|
||||
<h4>Type:</h4>
|
||||
<li>
|
||||
<tt>Number</tt>
|
||||
Array of <tt>Number</tt>s
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
@ -657,9 +663,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Curve.html"><tt>Curve</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -683,9 +692,44 @@
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of the curve
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="classify" class="member">
|
||||
<div class="member-link">
|
||||
<a name="classify" href="#classify"><tt><b>classify</b>()</tt></a>
|
||||
</div>
|
||||
<div class="member-description hidden">
|
||||
<div class="member-text">
|
||||
<p>Determines the type of cubic Bézier curve via discriminant classification, as well as the curve-time parameters of the associated points of inflection, loops, cusps, etc.</p>
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>Returns:</h4>
|
||||
|
||||
<li>
|
||||
<tt><tt>Object</tt></tt> — the curve classification information as an object, see options
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
<ul class="member-list">
|
||||
<li><tt>info.type: <tt>String</tt></tt> — the type of Bézier curve, possible values are: <tt>‘line’</tt>, <tt>‘quadratic’</tt>, <tt>‘serpentine’</tt>, <tt>‘cusp’</tt>, <tt>‘loop’</tt></li>
|
||||
<li><tt>info.roots: Array of <tt>Number</tt>s</tt> — the curve-time parameters of the associated points of inflection for serpentine curves, loops, cusps, etc</li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -709,9 +753,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the curve was removed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -735,9 +782,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if this is the first curve, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -761,9 +811,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if this is the last curve, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -806,9 +859,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Curve.html"><tt>Curve</tt></a></tt> — the newly create sub-curve
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -844,9 +900,12 @@
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/CurveLocation.html"><tt>CurveLocation</tt></a> objects</tt> — the locations of all intersections between the curves
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -882,9 +941,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Curve.html"><tt>Curve</tt></a></tt> — the second part of the divided curve if the location is valid, {code null} otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -927,9 +989,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Curve.html"><tt>Curve</tt></a></tt> — the second part of the divided curve, if the offset is within the valid range, {code null} otherwise.
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -972,9 +1037,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Path.html"><tt>Path</tt></a></tt> — the newly created path after splitting, if any
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -1017,9 +1085,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Path.html"><tt>Path</tt></a></tt> — the newly created path after splitting, if any
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -1050,9 +1121,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Curve.html"><tt>Curve</tt></a></tt> — a reversed version of the curve
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1070,6 +1144,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1095,9 +1171,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the curve has handles set, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -1146,9 +1225,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the curve is longer than the given epsilon, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1172,9 +1254,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the curve is straight, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1198,9 +1283,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the curve is parametrically linear, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1236,9 +1324,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the two lines are collinear, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1262,9 +1353,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the line is horizontal, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1288,9 +1382,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the line is vertical, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1328,9 +1425,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/CurveLocation.html"><tt>CurveLocation</tt></a></tt> — the curve location at the specified the offset
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1366,9 +1466,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/CurveLocation.html"><tt>CurveLocation</tt></a></tt> — the curve location at the specified the location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1411,9 +1514,12 @@
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the curve-time parameter at the specified location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1449,9 +1555,12 @@
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the curve offset at the specified the location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1487,9 +1596,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/CurveLocation.html"><tt>CurveLocation</tt></a></tt> — the curve location of the specified point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1525,9 +1637,12 @@
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the length of the path up to the specified point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1563,9 +1678,12 @@
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the curve-time parameter of the specified point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1601,9 +1719,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/CurveLocation.html"><tt>CurveLocation</tt></a></tt> — the location on the curve that’s the closest to the specified point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1639,9 +1760,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the point on the curve that’s the closest to the specified point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1677,9 +1801,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the point on the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1715,9 +1842,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the normalized tangent of the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1753,9 +1883,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the normal of the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1791,9 +1924,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the weighted tangent of the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1829,9 +1965,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the weighted normal of the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1867,9 +2006,12 @@
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the curvature of the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1905,9 +2047,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the point on the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1943,9 +2088,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the normalized tangent of the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1981,9 +2129,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the normal of the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2019,9 +2170,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the weighted tangent of the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2057,9 +2211,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the weighted normal of the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2095,9 +2252,12 @@
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the curvature of the curve at the given location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2127,7 +2287,7 @@
|
|||
|
||||
<li>
|
||||
<tt>v:</tt>
|
||||
<tt>Number</tt>
|
||||
Array of <tt>Number</tt>s
|
||||
— the curve values, as returned by <tt>Curve#getValues</tt>()
|
||||
|
||||
</li>
|
||||
|
@ -2146,11 +2306,14 @@
|
|||
<h4>Returns:</h4>
|
||||
|
||||
<li>
|
||||
<tt><tt>Number[]</tt>[]</tt> — an array of curve value arrays of the resulting monotone curve. If the original curve was already monotone, an array only containing its values are returned.
|
||||
<tt>Array of <tt>Number[]</tt> objects[]</tt> — an array of curve value arrays of the resulting monotone curve. If the original curve was already monotone, an array only containing its values are returned.
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2187,6 +2350,8 @@
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
18
dist/docs/classes/CurveLocation.html
vendored
18
dist/docs/classes/CurveLocation.html
vendored
|
@ -67,9 +67,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/CurveLocation.html"><tt>CurveLocation</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -498,9 +501,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the locations are equal, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -524,9 +530,12 @@
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of the curve location
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -552,9 +561,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the location is an intersection that is merely touching another curve, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -585,9 +597,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the location is an intersection that is crossing another curve, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -618,9 +633,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the location is an intersection that is part of an overlap between the two involved paths, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
|
6
dist/docs/classes/Event.html
vendored
6
dist/docs/classes/Event.html
vendored
|
@ -111,6 +111,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -128,6 +130,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -146,6 +150,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
6
dist/docs/classes/Gradient.html
vendored
6
dist/docs/classes/Gradient.html
vendored
|
@ -169,9 +169,12 @@ path.fillColor = {
|
|||
<li>
|
||||
<tt><a href="../classes/Gradient.html"><tt>Gradient</tt></a></tt> — a copy of the gradient
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -207,9 +210,12 @@ path.fillColor = {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if they are equal, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
6
dist/docs/classes/GradientStop.html
vendored
6
dist/docs/classes/GradientStop.html
vendored
|
@ -59,9 +59,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/GradientStop.html"><tt>GradientStop</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -240,9 +243,12 @@ function onFrame(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/GradientStop.html"><tt>GradientStop</tt></a></tt> — a copy of the gradient-stop
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
216
dist/docs/classes/Group.html
vendored
216
dist/docs/classes/Group.html
vendored
|
@ -54,9 +54,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Group.html"><tt>Group</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Create a group containing two paths:</span></h4>
|
||||
|
||||
|
@ -147,9 +150,12 @@ function onFrame(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Group.html"><tt>Group</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2848,9 +2854,12 @@ path.onMouseLeave = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the item itself
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Setting properties through an object literal</span></h4>
|
||||
|
||||
|
@ -2914,9 +2923,12 @@ circle.set({
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly cloned item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Cloning items:</span></h4>
|
||||
|
||||
|
@ -2972,6 +2984,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3008,6 +3022,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3050,9 +3066,12 @@ for (var i = 0; i < 20; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Raster.html"><tt>Raster</tt></a></tt> — the newly created raster item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Rasterizing an item:</span></h4>
|
||||
|
||||
|
@ -3112,6 +3131,8 @@ raster.scale(5);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click within and outside the star below Create a star shaped path:</span></h4>
|
||||
|
||||
|
@ -3179,9 +3200,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3217,9 +3241,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3280,9 +3307,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/HitResult.html"><tt>HitResult</tt></a></tt> — a hit result object describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3326,9 +3356,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3372,9 +3405,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches all the criteria, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3425,9 +3461,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches the state, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3479,9 +3518,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the list of matching descendant items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3524,9 +3566,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the first descendant item matching the given criteria
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3575,9 +3620,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — the exported JSON data
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3607,6 +3655,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3648,9 +3698,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>SVGElement</tt></tt> — the item converted to an SVG node
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3700,9 +3753,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3745,9 +3801,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3785,9 +3844,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the added item, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3830,9 +3892,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3868,9 +3933,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the added items, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3913,9 +3981,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the inserted items, or <code>null</code> if inserted was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3951,9 +4022,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3989,9 +4063,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4009,6 +4086,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4026,6 +4105,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4055,6 +4136,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4084,6 +4167,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4119,9 +4204,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4157,9 +4245,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4195,9 +4286,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the new copy of the item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4233,9 +4327,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the reduced item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4259,9 +4356,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was removed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4297,9 +4397,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was replaced, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4323,9 +4426,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4368,9 +4474,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4388,6 +4497,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4413,9 +4524,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt></tt> — Boolean
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4441,9 +4555,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4467,9 +4584,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a stroke, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4493,9 +4613,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a shadow, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4521,9 +4644,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it has one or more children, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4547,9 +4673,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is inserted into the scene graph, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4585,9 +4714,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is above the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4623,9 +4755,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is below the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4661,9 +4796,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is the parent of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4699,9 +4837,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it is a child of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4737,9 +4878,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is inside the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4775,9 +4919,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is an ancestor of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4813,9 +4960,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is aa sibling of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4851,9 +5001,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the items are grouped together, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4885,6 +5038,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4922,6 +5077,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5019,6 +5176,8 @@ function onFrame(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item from its center point:</span></h4>
|
||||
|
||||
|
@ -5109,6 +5268,8 @@ circle.scale(1.5, circle.bounds.bottomLeft);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item horizontally by 300%:</span></h4>
|
||||
|
||||
|
@ -5168,6 +5329,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5218,6 +5381,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5261,6 +5426,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5311,6 +5478,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5347,6 +5516,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5382,9 +5553,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5420,9 +5594,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5458,9 +5635,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5496,9 +5676,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5535,6 +5718,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Fitting an item to the bounding rectangle of another item's bounding rectangle:</span></h4>
|
||||
|
||||
|
@ -5666,9 +5851,12 @@ path.fitBounds(view.bounds);
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5733,9 +5921,12 @@ path.on('mouseleave', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5842,9 +6033,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5880,9 +6074,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5925,9 +6122,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the event had listeners, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5963,9 +6163,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has one or more event handlers of the specified type, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6003,6 +6206,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6048,6 +6253,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Move your mouse below:</span></h4>
|
||||
|
||||
|
@ -6090,6 +6297,8 @@ function onMouseMove(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6132,6 +6341,8 @@ function onMouseDown(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6174,6 +6385,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6242,9 +6455,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
|
200
dist/docs/classes/Item.html
vendored
200
dist/docs/classes/Item.html
vendored
|
@ -2605,9 +2605,12 @@ path.onMouseLeave = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the item itself
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Setting properties through an object literal</span></h4>
|
||||
|
||||
|
@ -2671,9 +2674,12 @@ circle.set({
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly cloned item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Cloning items:</span></h4>
|
||||
|
||||
|
@ -2729,6 +2735,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2765,6 +2773,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2807,9 +2817,12 @@ for (var i = 0; i < 20; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Raster.html"><tt>Raster</tt></a></tt> — the newly created raster item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Rasterizing an item:</span></h4>
|
||||
|
||||
|
@ -2869,6 +2882,8 @@ raster.scale(5);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click within and outside the star below Create a star shaped path:</span></h4>
|
||||
|
||||
|
@ -2936,9 +2951,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2974,9 +2992,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3037,9 +3058,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/HitResult.html"><tt>HitResult</tt></a></tt> — a hit result object describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3083,9 +3107,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3129,9 +3156,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches all the criteria, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3182,9 +3212,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches the state, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3236,9 +3269,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the list of matching descendant items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3281,9 +3317,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the first descendant item matching the given criteria
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3332,9 +3371,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — the exported JSON data
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3364,6 +3406,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3405,9 +3449,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>SVGElement</tt></tt> — the item converted to an SVG node
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3457,9 +3504,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3502,9 +3552,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3542,9 +3595,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the added item, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3587,9 +3643,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3625,9 +3684,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the added items, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3670,9 +3732,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the inserted items, or <code>null</code> if inserted was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3708,9 +3773,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3746,9 +3814,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3766,6 +3837,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3783,6 +3856,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3818,9 +3893,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the new copy of the item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3856,9 +3934,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the reduced item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3882,9 +3963,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was removed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3920,9 +4004,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was replaced, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3946,9 +4033,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3991,9 +4081,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4011,6 +4104,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4036,9 +4131,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt></tt> — Boolean
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4064,9 +4162,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4090,9 +4191,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a stroke, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4116,9 +4220,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a shadow, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4144,9 +4251,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it has one or more children, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4170,9 +4280,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is inserted into the scene graph, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4208,9 +4321,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is above the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4246,9 +4362,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is below the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4284,9 +4403,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is the parent of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4322,9 +4444,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it is a child of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4360,9 +4485,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is inside the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4398,9 +4526,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is an ancestor of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4436,9 +4567,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is aa sibling of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4474,9 +4608,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the items are grouped together, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4508,6 +4645,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4545,6 +4684,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4642,6 +4783,8 @@ function onFrame(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item from its center point:</span></h4>
|
||||
|
||||
|
@ -4732,6 +4875,8 @@ circle.scale(1.5, circle.bounds.bottomLeft);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item horizontally by 300%:</span></h4>
|
||||
|
||||
|
@ -4791,6 +4936,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4841,6 +4988,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4884,6 +5033,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4934,6 +5085,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4970,6 +5123,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5005,9 +5160,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5043,9 +5201,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5081,9 +5242,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5119,9 +5283,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5158,6 +5325,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Fitting an item to the bounding rectangle of another item's bounding rectangle:</span></h4>
|
||||
|
||||
|
@ -5289,9 +5458,12 @@ path.fitBounds(view.bounds);
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5356,9 +5528,12 @@ path.on('mouseleave', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5465,9 +5640,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5503,9 +5681,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5548,9 +5729,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the event had listeners, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5586,9 +5770,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has one or more event handlers of the specified type, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5626,6 +5813,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -5671,6 +5860,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Move your mouse below:</span></h4>
|
||||
|
||||
|
@ -5713,6 +5904,8 @@ function onMouseMove(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -5755,6 +5948,8 @@ function onMouseDown(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -5797,6 +5992,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -5865,9 +6062,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
|
3
dist/docs/classes/Key.html
vendored
3
dist/docs/classes/Key.html
vendored
|
@ -101,9 +101,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the key is pressed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Whenever the user clicks, create a circle shaped path. If the 'a' key is pressed, fill it with red, otherwise fill it with blue:</span></h4>
|
||||
|
||||
|
|
9
dist/docs/classes/KeyEvent.html
vendored
9
dist/docs/classes/KeyEvent.html
vendored
|
@ -144,9 +144,12 @@
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of the key event
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -243,6 +246,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -260,6 +265,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -278,6 +285,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
218
dist/docs/classes/Layer.html
vendored
218
dist/docs/classes/Layer.html
vendored
|
@ -55,9 +55,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Layer.html"><tt>Layer</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -97,9 +100,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Layer.html"><tt>Layer</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -154,6 +160,8 @@ var layer = new Layer({
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2762,9 +2770,12 @@ path.onMouseLeave = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the item itself
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Setting properties through an object literal</span></h4>
|
||||
|
||||
|
@ -2828,9 +2839,12 @@ circle.set({
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly cloned item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Cloning items:</span></h4>
|
||||
|
||||
|
@ -2886,6 +2900,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2922,6 +2938,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2964,9 +2982,12 @@ for (var i = 0; i < 20; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Raster.html"><tt>Raster</tt></a></tt> — the newly created raster item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Rasterizing an item:</span></h4>
|
||||
|
||||
|
@ -3026,6 +3047,8 @@ raster.scale(5);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click within and outside the star below Create a star shaped path:</span></h4>
|
||||
|
||||
|
@ -3093,9 +3116,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3131,9 +3157,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3194,9 +3223,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/HitResult.html"><tt>HitResult</tt></a></tt> — a hit result object describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3240,9 +3272,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3286,9 +3321,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches all the criteria, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3339,9 +3377,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches the state, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3393,9 +3434,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the list of matching descendant items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3438,9 +3482,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the first descendant item matching the given criteria
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3489,9 +3536,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — the exported JSON data
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3521,6 +3571,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3562,9 +3614,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>SVGElement</tt></tt> — the item converted to an SVG node
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3614,9 +3669,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3659,9 +3717,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3699,9 +3760,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the added item, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3744,9 +3808,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3782,9 +3849,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the added items, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3827,9 +3897,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the inserted items, or <code>null</code> if inserted was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3865,9 +3938,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3903,9 +3979,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3923,6 +4002,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3940,6 +4021,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3969,6 +4052,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3998,6 +4083,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4033,9 +4120,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4071,9 +4161,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4109,9 +4202,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the new copy of the item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4147,9 +4243,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the reduced item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4173,9 +4272,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was removed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4211,9 +4313,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was replaced, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4237,9 +4342,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4282,9 +4390,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4302,6 +4413,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4327,9 +4440,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt></tt> — Boolean
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4355,9 +4471,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4381,9 +4500,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a stroke, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4407,9 +4529,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a shadow, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4435,9 +4560,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it has one or more children, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4461,9 +4589,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is inserted into the scene graph, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4499,9 +4630,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is above the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4537,9 +4671,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is below the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4575,9 +4712,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is the parent of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4613,9 +4753,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it is a child of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4651,9 +4794,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is inside the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4689,9 +4835,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is an ancestor of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4727,9 +4876,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is aa sibling of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4765,9 +4917,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the items are grouped together, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4799,6 +4954,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4836,6 +4993,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4933,6 +5092,8 @@ function onFrame(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item from its center point:</span></h4>
|
||||
|
||||
|
@ -5023,6 +5184,8 @@ circle.scale(1.5, circle.bounds.bottomLeft);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item horizontally by 300%:</span></h4>
|
||||
|
||||
|
@ -5082,6 +5245,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5132,6 +5297,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5175,6 +5342,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5225,6 +5394,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5261,6 +5432,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5296,9 +5469,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5334,9 +5510,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5372,9 +5551,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5410,9 +5592,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5449,6 +5634,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Fitting an item to the bounding rectangle of another item's bounding rectangle:</span></h4>
|
||||
|
||||
|
@ -5580,9 +5767,12 @@ path.fitBounds(view.bounds);
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5647,9 +5837,12 @@ path.on('mouseleave', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5756,9 +5949,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5794,9 +5990,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5839,9 +6038,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the event had listeners, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5877,9 +6079,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has one or more event handlers of the specified type, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5917,6 +6122,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -5962,6 +6169,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Move your mouse below:</span></h4>
|
||||
|
||||
|
@ -6004,6 +6213,8 @@ function onMouseMove(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6046,6 +6257,8 @@ function onMouseDown(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6088,6 +6301,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6156,9 +6371,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
|
12
dist/docs/classes/Line.html
vendored
12
dist/docs/classes/Line.html
vendored
|
@ -80,9 +80,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Line.html"><tt>Line</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -229,9 +232,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the intersection point of the lines, <code>undefined</code> if the two lines are collinear, or <code>null</code> if they don’t intersect.
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -274,9 +280,12 @@
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -312,9 +321,12 @@
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
108
dist/docs/classes/Matrix.html
vendored
108
dist/docs/classes/Matrix.html
vendored
|
@ -47,9 +47,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -120,9 +123,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -144,7 +150,7 @@
|
|||
|
||||
<li>
|
||||
<tt>values:</tt>
|
||||
<tt>Number</tt>
|
||||
Array of <tt>Number</tt>s
|
||||
— the matrix values to initialize this matrix with
|
||||
|
||||
</li>
|
||||
|
@ -158,9 +164,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -196,9 +205,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -388,7 +400,7 @@
|
|||
<ul class="member-list">
|
||||
<h4>Type:</h4>
|
||||
<li>
|
||||
<tt>Number</tt>
|
||||
Array of <tt>Number</tt>s
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
@ -518,6 +530,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -541,9 +555,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — a copy of this transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -579,9 +596,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the matrices are equal, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -605,9 +625,12 @@
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of this transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -625,6 +648,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -660,9 +685,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the matrix was applied, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -698,9 +726,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this affine transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -743,9 +774,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this affine transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -788,9 +822,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this affine transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -840,9 +877,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this affine transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -885,9 +925,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this affine transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -937,9 +980,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this affine transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -982,9 +1028,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this affine transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1034,9 +1083,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this affine transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1079,9 +1131,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this affine transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1131,9 +1186,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this affine transform
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1169,9 +1227,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this matrix, modified
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1207,9 +1268,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this matrix, modified
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1245,9 +1309,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — the newly created matrix
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1283,9 +1350,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — the newly created matrix
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1309,9 +1379,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this matrix, or <code>null</code>, if the matrix is singular.
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1335,9 +1408,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Matrix.html"><tt>Matrix</tt></a></tt> — this matrix, or <code>null</code>, if the matrix is singular.
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1361,9 +1437,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — whether this matrix is the identity matrix
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1387,9 +1466,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — whether the matrix is invertible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1413,9 +1495,12 @@
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — whether the matrix is singular
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1451,9 +1536,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1475,14 +1563,14 @@
|
|||
|
||||
<li>
|
||||
<tt>src:</tt>
|
||||
<tt>Number</tt>
|
||||
Array of <tt>Number</tt>s
|
||||
— the array containing the source points as x, y value pairs
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<tt>dst:</tt>
|
||||
<tt>Number</tt>
|
||||
Array of <tt>Number</tt>s
|
||||
— the array into which to store the transformed point pairs
|
||||
|
||||
</li>
|
||||
|
@ -1501,11 +1589,14 @@
|
|||
<h4>Returns:</h4>
|
||||
|
||||
<li>
|
||||
<tt><tt>Number</tt></tt> — the dst array, containing the transformed coordinates
|
||||
<tt>Array of <tt>Number</tt>s</tt> — the dst array, containing the transformed coordinates
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1535,6 +1626,8 @@
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1558,9 +1651,12 @@
|
|||
<li>
|
||||
<tt><tt>Object</tt></tt> — the decomposed matrix, or <code>null</code> if decomposition is not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1590,6 +1686,8 @@
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
9
dist/docs/classes/MouseEvent.html
vendored
9
dist/docs/classes/MouseEvent.html
vendored
|
@ -191,9 +191,12 @@
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of the mouse event
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -290,6 +293,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -307,6 +312,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -325,6 +332,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
13
dist/docs/classes/PaperScope.html
vendored
13
dist/docs/classes/PaperScope.html
vendored
|
@ -43,9 +43,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/PaperScope.html"><tt>PaperScope</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -296,6 +299,8 @@
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -326,6 +331,8 @@
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -359,6 +366,8 @@
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -376,6 +385,8 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -413,6 +424,8 @@
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
9
dist/docs/classes/PaperScript.html
vendored
9
dist/docs/classes/PaperScript.html
vendored
|
@ -71,9 +71,12 @@
|
|||
<li>
|
||||
<tt><tt>Object</tt></tt> — an object holding the compiled PaperScript translated into JavaScript code along with source-maps and other information.
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -127,9 +130,12 @@
|
|||
<li>
|
||||
<tt><tt>Object</tt></tt> — an object holding the compiled PaperScript translated into JavaScript code along with source-maps and other information.
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -165,9 +171,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/PaperScope.html"><tt>PaperScope</tt></a></tt> — the scope produced for the passed <code>script</code>, or <code>undefined</code> of multiple scripts area loaded
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
403
dist/docs/classes/Path.html
vendored
403
dist/docs/classes/Path.html
vendored
File diff suppressed because it is too large
Load diff
442
dist/docs/classes/PathItem.html
vendored
442
dist/docs/classes/PathItem.html
vendored
File diff suppressed because it is too large
Load diff
158
dist/docs/classes/Point.html
vendored
158
dist/docs/classes/Point.html
vendored
|
@ -65,9 +65,12 @@ console.log(point.y); // 5</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Create a point at x: 10, y: 5</span></h4>
|
||||
|
||||
|
@ -109,9 +112,12 @@ console.log(point.y); // 5</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Creating a point at x: 10, y: 5 using an array of numbers:</span></h4>
|
||||
|
||||
|
@ -166,9 +172,12 @@ path.fillColor = 'red';</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Creating a point using an object literal with length and angle properties:</span></h4>
|
||||
|
||||
|
@ -236,9 +245,12 @@ path.fillColor = 'red';</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Creating a point using a size object.</span></h4>
|
||||
|
||||
|
@ -282,9 +294,12 @@ console.log(point); // { x: 100, y: 50 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -328,9 +343,12 @@ console.log(point); // { x: 100, y: 50 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the addition of the point and the value as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -365,9 +383,12 @@ console.log(result); // {x: 25, y: 30}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the addition of the two points as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -413,9 +434,12 @@ console.log(result); // {x: 15, y: 30}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the subtraction of the point and the value as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -450,9 +474,12 @@ console.log(result); // {x: 5, y: 15}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the subtraction of the two points as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -498,9 +525,12 @@ console.log(result); // {x: 5, y: 15}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the multiplication of the point and the value as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -535,9 +565,12 @@ console.log(result); // {x: 20, y: 40}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the multiplication of the two points as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -583,9 +616,12 @@ console.log(result); // {x: 20, y: 20}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the division of the point and the value as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -620,9 +656,12 @@ console.log(result); // {x: 5, y: 10}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the division of the two points as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -668,9 +707,12 @@ console.log(result); // {x: 4, y: 2}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the integer remainders of dividing the point by the value as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -704,9 +746,12 @@ console.log(point % 5); // {x: 2, y: 1}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the integer remainders of dividing the points by each other as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -984,6 +1029,8 @@ path.position.selected = true;
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1019,9 +1066,12 @@ path.position.selected = true;
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the points are equal, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1052,9 +1102,12 @@ console.log(point != new Point(1, 1)); // true</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the cloned point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1087,9 +1140,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of the point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1125,9 +1181,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the angle in degrees
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1163,9 +1222,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the angle in radians
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1202,9 +1264,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the angle between the two vectors
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1247,9 +1312,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1285,9 +1353,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the normalized vector of the vector that is represented by this point’s coordinates
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1331,9 +1402,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the rotated point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1369,9 +1443,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1409,9 +1486,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the point is inside the rectangle, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1454,9 +1534,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is within the given distance, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1492,9 +1575,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it is collinear, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1530,9 +1616,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it is orthogonal, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1556,9 +1645,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if both x and y are 0, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1582,9 +1674,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if either x or y are not a number, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1620,9 +1715,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if either x or y are not a number, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -1667,9 +1765,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the dot product of the two points
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1705,9 +1806,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><tt>Number</tt></tt> — the cross product of the two points
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1743,9 +1847,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the projection of the point onto another point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1771,9 +1878,12 @@ point2.x = 1; // doesn't change point1.x</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1803,9 +1913,12 @@ console.log(roundPoint); // {x: 10, y: 11}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1835,9 +1948,12 @@ console.log(ceilPoint); // {x: 11, y: 11}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1867,9 +1983,12 @@ console.log(floorPoint); // {x: 10, y: 10}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1916,9 +2035,12 @@ console.log(absPoint); // {x: 5, y: 10}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the addition of the point and the value as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1960,9 +2082,12 @@ console.log(result); // {x: 25, y: 30}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the addition of the two points as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2008,9 +2133,12 @@ console.log(result); // {x: 15, y: 30}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the subtraction of the point and the value as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2052,9 +2180,12 @@ console.log(result); // {x: 5, y: 15}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the subtraction of the two points as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2100,9 +2231,12 @@ console.log(result); // {x: 5, y: 15}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the multiplication of the point and the value as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2144,9 +2278,12 @@ console.log(result); // {x: 20, y: 40}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the multiplication of the two points as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2192,9 +2329,12 @@ console.log(result); // {x: 20, y: 20}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the division of the point and the value as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2236,9 +2376,12 @@ console.log(result); // {x: 5, y: 10}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the division of the two points as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2284,9 +2427,12 @@ console.log(result); // {x: 4, y: 2}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the integer remainders of dividing the point by the value as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2327,9 +2473,12 @@ console.log(point % 5); // {x: 2, y: 1}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the integer remainders of dividing the points by each other as a new point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2386,9 +2535,12 @@ console.log(point % new Point(5, 2)); // {x: 2, y: 0}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the newly created point object
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2446,9 +2598,12 @@ var point3 = new Point(250, 35);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the newly created point object
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2487,9 +2642,12 @@ var point3 = new Point(250, 35);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the newly created point object
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
|
216
dist/docs/classes/PointText.html
vendored
216
dist/docs/classes/PointText.html
vendored
|
@ -54,9 +54,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/PointText.html"><tt>PointText</tt></a></tt> — the newly created point text
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -109,9 +112,12 @@ text.content = 'The contents of the point text';
|
|||
<li>
|
||||
<tt><a href="../classes/PointText.html"><tt>PointText</tt></a></tt> — the newly created point text
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -2771,9 +2777,12 @@ path.onMouseLeave = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the item itself
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Setting properties through an object literal</span></h4>
|
||||
|
||||
|
@ -2837,9 +2846,12 @@ circle.set({
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly cloned item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Cloning items:</span></h4>
|
||||
|
||||
|
@ -2895,6 +2907,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2931,6 +2945,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2973,9 +2989,12 @@ for (var i = 0; i < 20; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Raster.html"><tt>Raster</tt></a></tt> — the newly created raster item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Rasterizing an item:</span></h4>
|
||||
|
||||
|
@ -3035,6 +3054,8 @@ raster.scale(5);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click within and outside the star below Create a star shaped path:</span></h4>
|
||||
|
||||
|
@ -3102,9 +3123,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3140,9 +3164,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3203,9 +3230,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/HitResult.html"><tt>HitResult</tt></a></tt> — a hit result object describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3249,9 +3279,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3295,9 +3328,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches all the criteria, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3348,9 +3384,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches the state, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3402,9 +3441,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the list of matching descendant items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3447,9 +3489,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the first descendant item matching the given criteria
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3498,9 +3543,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — the exported JSON data
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3530,6 +3578,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3571,9 +3621,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>SVGElement</tt></tt> — the item converted to an SVG node
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3623,9 +3676,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3668,9 +3724,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3708,9 +3767,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the added item, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3753,9 +3815,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3791,9 +3856,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the added items, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3836,9 +3904,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the inserted items, or <code>null</code> if inserted was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3874,9 +3945,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3912,9 +3986,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3932,6 +4009,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3949,6 +4028,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3978,6 +4059,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4007,6 +4090,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4042,9 +4127,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4080,9 +4168,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4118,9 +4209,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the new copy of the item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4156,9 +4250,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the reduced item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4182,9 +4279,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was removed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4220,9 +4320,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was replaced, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4246,9 +4349,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4291,9 +4397,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4311,6 +4420,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4336,9 +4447,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt></tt> — Boolean
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4364,9 +4478,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4390,9 +4507,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a stroke, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4416,9 +4536,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a shadow, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4444,9 +4567,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it has one or more children, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4470,9 +4596,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is inserted into the scene graph, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4508,9 +4637,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is above the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4546,9 +4678,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is below the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4584,9 +4719,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is the parent of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4622,9 +4760,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it is a child of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4660,9 +4801,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is inside the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4698,9 +4842,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is an ancestor of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4736,9 +4883,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is aa sibling of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4774,9 +4924,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the items are grouped together, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4808,6 +4961,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4845,6 +5000,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4942,6 +5099,8 @@ function onFrame(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item from its center point:</span></h4>
|
||||
|
||||
|
@ -5032,6 +5191,8 @@ circle.scale(1.5, circle.bounds.bottomLeft);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item horizontally by 300%:</span></h4>
|
||||
|
||||
|
@ -5091,6 +5252,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5141,6 +5304,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5184,6 +5349,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5234,6 +5401,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5270,6 +5439,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5305,9 +5476,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5343,9 +5517,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5381,9 +5558,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5419,9 +5599,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5458,6 +5641,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Fitting an item to the bounding rectangle of another item's bounding rectangle:</span></h4>
|
||||
|
||||
|
@ -5589,9 +5774,12 @@ path.fitBounds(view.bounds);
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5656,9 +5844,12 @@ path.on('mouseleave', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5765,9 +5956,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5803,9 +5997,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5848,9 +6045,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the event had listeners, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5886,9 +6086,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has one or more event handlers of the specified type, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5926,6 +6129,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -5971,6 +6176,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Move your mouse below:</span></h4>
|
||||
|
||||
|
@ -6013,6 +6220,8 @@ function onMouseMove(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6055,6 +6264,8 @@ function onMouseDown(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6097,6 +6308,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6165,9 +6378,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
|
45
dist/docs/classes/Project.html
vendored
45
dist/docs/classes/Project.html
vendored
|
@ -56,9 +56,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Project.html"><tt>Project</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -334,6 +337,8 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -351,6 +356,8 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -374,9 +381,12 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|||
<li>
|
||||
<tt></tt> — Boolean
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -394,6 +404,8 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -411,6 +423,8 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -428,6 +442,8 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -465,9 +481,12 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|||
<li>
|
||||
<tt><a href="../classes/Layer.html"><tt>Layer</tt></a></tt> — the added layer, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -510,9 +529,12 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|||
<li>
|
||||
<tt><a href="../classes/Layer.html"><tt>Layer</tt></a></tt> — the added layer, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -573,9 +595,12 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|||
<li>
|
||||
<tt><a href="../classes/HitResult.html"><tt>HitResult</tt></a></tt> — a hit result object that contains more information about what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -620,9 +645,12 @@ var path2 = new Path.Circle(new Point(175, 50), 20);
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the list of matching items contained in the project
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -950,9 +978,12 @@ for (var i = 0; i < items.length; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the first item in the project matching the given criteria
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -994,9 +1025,12 @@ for (var i = 0; i < items.length; i++) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — the exported JSON data
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1026,6 +1060,8 @@ for (var i = 0; i < items.length; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1067,9 +1103,12 @@ for (var i = 0; i < items.length; i++) {
|
|||
<li>
|
||||
<tt><tt>SVGElement</tt></tt> — the project converted to an SVG node
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1119,9 +1158,12 @@ for (var i = 0; i < items.length; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1164,9 +1206,12 @@ for (var i = 0; i < items.length; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
245
dist/docs/classes/Raster.html
vendored
245
dist/docs/classes/Raster.html
vendored
|
@ -61,9 +61,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Raster.html"><tt>Raster</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Creating a raster using a url</span></h4>
|
||||
|
||||
|
@ -565,9 +568,12 @@ raster.on('load', function() {
|
|||
<li>
|
||||
<tt><tt>HTMLCanvasELement</tt></tt> — the sub image as a Canvas object
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -603,9 +609,12 @@ raster.on('load', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Raster.html"><tt>Raster</tt></a></tt> — the sub raster as a newly created raster item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -629,9 +638,12 @@ raster.on('load', function() {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -668,6 +680,8 @@ raster.on('load', function() {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -703,9 +717,12 @@ raster.on('load', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the average color contained in the area covered by the specified path, rectangle or point
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -750,9 +767,12 @@ raster.on('load', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the color of the pixel
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -788,9 +808,12 @@ raster.on('load', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Color.html"><tt>Color</tt></a></tt> — the color of the pixel
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -834,6 +857,8 @@ raster.on('load', function() {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -870,6 +895,8 @@ raster.on('load', function() {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -907,9 +934,12 @@ raster.on('load', function() {
|
|||
<li>
|
||||
<tt><tt>ImageData</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -945,9 +975,12 @@ raster.on('load', function() {
|
|||
<li>
|
||||
<tt><tt>ImageData</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -984,6 +1017,8 @@ raster.on('load', function() {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3584,9 +3619,12 @@ path.onMouseLeave = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the item itself
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Setting properties through an object literal</span></h4>
|
||||
|
||||
|
@ -3650,9 +3688,12 @@ circle.set({
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly cloned item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Cloning items:</span></h4>
|
||||
|
||||
|
@ -3708,6 +3749,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3744,6 +3787,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3786,9 +3831,12 @@ for (var i = 0; i < 20; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Raster.html"><tt>Raster</tt></a></tt> — the newly created raster item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Rasterizing an item:</span></h4>
|
||||
|
||||
|
@ -3848,6 +3896,8 @@ raster.scale(5);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click within and outside the star below Create a star shaped path:</span></h4>
|
||||
|
||||
|
@ -3915,9 +3965,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3953,9 +4006,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4016,9 +4072,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/HitResult.html"><tt>HitResult</tt></a></tt> — a hit result object describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4062,9 +4121,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4108,9 +4170,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches all the criteria, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4161,9 +4226,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches the state, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4215,9 +4283,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the list of matching descendant items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4260,9 +4331,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the first descendant item matching the given criteria
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4311,9 +4385,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — the exported JSON data
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4343,6 +4420,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4384,9 +4463,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>SVGElement</tt></tt> — the item converted to an SVG node
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4436,9 +4518,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4481,9 +4566,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4521,9 +4609,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the added item, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4566,9 +4657,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4604,9 +4698,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the added items, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4649,9 +4746,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the inserted items, or <code>null</code> if inserted was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4687,9 +4787,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4725,9 +4828,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4745,6 +4851,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4762,6 +4870,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4791,6 +4901,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4820,6 +4932,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4855,9 +4969,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4893,9 +5010,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4931,9 +5051,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the new copy of the item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4969,9 +5092,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the reduced item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4995,9 +5121,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was removed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5033,9 +5162,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was replaced, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5059,9 +5191,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5104,9 +5239,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5124,6 +5262,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5149,9 +5289,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt></tt> — Boolean
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5177,9 +5320,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5203,9 +5349,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a stroke, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5229,9 +5378,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a shadow, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5257,9 +5409,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it has one or more children, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5283,9 +5438,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is inserted into the scene graph, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5321,9 +5479,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is above the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5359,9 +5520,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is below the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5397,9 +5561,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is the parent of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5435,9 +5602,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it is a child of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5473,9 +5643,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is inside the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5511,9 +5684,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is an ancestor of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5549,9 +5725,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is aa sibling of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5587,9 +5766,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the items are grouped together, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5621,6 +5803,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5658,6 +5842,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5755,6 +5941,8 @@ function onFrame(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item from its center point:</span></h4>
|
||||
|
||||
|
@ -5845,6 +6033,8 @@ circle.scale(1.5, circle.bounds.bottomLeft);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item horizontally by 300%:</span></h4>
|
||||
|
||||
|
@ -5904,6 +6094,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5954,6 +6146,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5997,6 +6191,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -6047,6 +6243,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -6083,6 +6281,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6118,9 +6318,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6156,9 +6359,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6194,9 +6400,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6232,9 +6441,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6271,6 +6483,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Fitting an item to the bounding rectangle of another item's bounding rectangle:</span></h4>
|
||||
|
||||
|
@ -6402,9 +6616,12 @@ path.fitBounds(view.bounds);
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -6469,9 +6686,12 @@ path.on('mouseleave', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -6578,9 +6798,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6616,9 +6839,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6661,9 +6887,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the event had listeners, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6699,9 +6928,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has one or more event handlers of the specified type, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6739,6 +6971,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6784,6 +7018,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Move your mouse below:</span></h4>
|
||||
|
||||
|
@ -6826,6 +7062,8 @@ function onMouseMove(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6868,6 +7106,8 @@ function onMouseDown(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6910,6 +7150,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6978,9 +7220,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
|
53
dist/docs/classes/Rectangle.html
vendored
53
dist/docs/classes/Rectangle.html
vendored
|
@ -59,9 +59,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Rectangle.html"><tt>Rectangle</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -97,9 +100,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Rectangle.html"><tt>Rectangle</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Create a rectangle between {x: 20, y: 20} and {x: 80, y:80}</span></h4>
|
||||
|
||||
|
@ -171,9 +177,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Rectangle.html"><tt>Rectangle</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -216,9 +225,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Rectangle.html"><tt>Rectangle</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -254,9 +266,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Rectangle.html"><tt>Rectangle</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -869,6 +884,8 @@ path.bounds.selected = true;
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -886,6 +903,8 @@ path.bounds.selected = true;
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -921,9 +940,12 @@ path.bounds.selected = true;
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the rectangles are equal, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -947,9 +969,12 @@ path.bounds.selected = true;
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of this rectangle
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -973,9 +998,12 @@ path.bounds.selected = true;
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the rectangle is empty, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1013,9 +1041,12 @@ path.bounds.selected = true;
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the point is inside the rectangle’s boundary, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Checking whether the mouse position falls within the bounding rectangle of an item:</span></h4>
|
||||
|
||||
|
@ -1080,9 +1111,12 @@ function onMouseMove(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the rectangle entirely contains the specified rectangle, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Checking whether the bounding box of one item is contained within that of another item:</span></h4>
|
||||
|
||||
|
@ -1161,9 +1195,12 @@ function onMouseMove(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the rectangle and the specified rectangle intersect each other, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Checking whether the bounding box of one item intersects with that of another item:</span></h4>
|
||||
|
||||
|
@ -1244,9 +1281,12 @@ function onMouseMove(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Rectangle.html"><tt>Rectangle</tt></a></tt> — the largest rectangle contained in both the specified rectangle and in this rectangle
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Intersecting two rectangles and visualizing the result using rectangle shaped paths:</span></h4>
|
||||
|
||||
|
@ -1320,9 +1360,12 @@ intersectionPath.fillColor = 'red';
|
|||
<li>
|
||||
<tt><a href="../classes/Rectangle.html"><tt>Rectangle</tt></a></tt> — the smallest rectangle containing both the specified rectangle and this rectangle
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1353,6 +1396,8 @@ intersectionPath.fillColor = 'red';
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1382,6 +1427,8 @@ intersectionPath.fillColor = 'red';
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1418,6 +1465,8 @@ intersectionPath.fillColor = 'red';
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1447,6 +1496,8 @@ intersectionPath.fillColor = 'red';
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1483,6 +1534,8 @@ intersectionPath.fillColor = 'red';
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
35
dist/docs/classes/Segment.html
vendored
35
dist/docs/classes/Segment.html
vendored
|
@ -67,9 +67,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Segment.html"><tt>Segment</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -129,9 +132,12 @@ path.strokeColor = 'black';
|
|||
<li>
|
||||
<tt><a href="../classes/Segment.html"><tt>Segment</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Creating segments using object notation:</span></h4>
|
||||
|
||||
|
@ -498,9 +504,12 @@ path.segments[2].selected = true;
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the segment has handles set, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -531,6 +540,8 @@ path.segments[2].selected = true;
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -580,6 +591,8 @@ path.segments[2].selected = true;
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -610,9 +623,12 @@ path.segments[2].selected = true;
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if this is the first segment, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -636,9 +652,12 @@ path.segments[2].selected = true;
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if this is the last segment, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -662,9 +681,12 @@ path.segments[2].selected = true;
|
|||
<li>
|
||||
<tt><a href="../classes/Segment.html"><tt>Segment</tt></a></tt> — the reversed segment
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -688,9 +710,12 @@ path.segments[2].selected = true;
|
|||
<li>
|
||||
<tt><a href="../classes/Segment.html"><tt>Segment</tt></a></tt> — the reversed segment
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -714,9 +739,12 @@ path.segments[2].selected = true;
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the segment was removed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -740,9 +768,12 @@ path.segments[2].selected = true;
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of the segment
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -772,6 +803,8 @@ path.segments[2].selected = true;
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -815,6 +848,8 @@ path.segments[2].selected = true;
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
237
dist/docs/classes/Shape.html
vendored
237
dist/docs/classes/Shape.html
vendored
|
@ -61,9 +61,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/Shape.html"><tt>Shape</tt></a></tt> — the newly created shape
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -114,9 +117,12 @@ shape.strokeColor = 'black';
|
|||
<li>
|
||||
<tt><a href="../classes/Shape.html"><tt>Shape</tt></a></tt> — the newly created shape
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -177,9 +183,12 @@ var shape = new Shape.Circle({
|
|||
<li>
|
||||
<tt><a href="../classes/Shape.html"><tt>Shape</tt></a></tt> — the newly created shape
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -256,9 +265,12 @@ shape.strokeColor = 'black';
|
|||
<li>
|
||||
<tt><a href="../classes/Shape.html"><tt>Shape</tt></a></tt> — the newly created shape
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -318,9 +330,12 @@ shape.strokeColor = 'black';
|
|||
<li>
|
||||
<tt><a href="../classes/Shape.html"><tt>Shape</tt></a></tt> — the newly created shape
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -373,9 +388,12 @@ shape.strokeColor = 'black';
|
|||
<li>
|
||||
<tt><a href="../classes/Shape.html"><tt>Shape</tt></a></tt> — the newly created shape
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -489,9 +507,12 @@ var shape = new Shape.Rectangle({
|
|||
<li>
|
||||
<tt><a href="../classes/Shape.html"><tt>Shape</tt></a></tt> — the newly created shape
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -543,9 +564,12 @@ shape.fillColor = 'black';
|
|||
<li>
|
||||
<tt><a href="../classes/Shape.html"><tt>Shape</tt></a></tt> — the newly created shape
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -716,9 +740,12 @@ var shape = new Shape.Ellipse({
|
|||
<li>
|
||||
<tt><a href="../classes/Shape.html"><tt>Shape</tt></a></tt> — the newly created path item with the same geometry as this shape item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3326,9 +3353,12 @@ path.onMouseLeave = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the item itself
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Setting properties through an object literal</span></h4>
|
||||
|
||||
|
@ -3392,9 +3422,12 @@ circle.set({
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly cloned item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Cloning items:</span></h4>
|
||||
|
||||
|
@ -3450,6 +3483,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3486,6 +3521,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3528,9 +3565,12 @@ for (var i = 0; i < 20; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Raster.html"><tt>Raster</tt></a></tt> — the newly created raster item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Rasterizing an item:</span></h4>
|
||||
|
||||
|
@ -3590,6 +3630,8 @@ raster.scale(5);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click within and outside the star below Create a star shaped path:</span></h4>
|
||||
|
||||
|
@ -3657,9 +3699,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3695,9 +3740,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3758,9 +3806,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/HitResult.html"><tt>HitResult</tt></a></tt> — a hit result object describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3804,9 +3855,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3850,9 +3904,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches all the criteria, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3903,9 +3960,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches the state, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3957,9 +4017,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the list of matching descendant items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4002,9 +4065,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the first descendant item matching the given criteria
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4053,9 +4119,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — the exported JSON data
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4085,6 +4154,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4126,9 +4197,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>SVGElement</tt></tt> — the item converted to an SVG node
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4178,9 +4252,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4223,9 +4300,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4263,9 +4343,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the added item, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4308,9 +4391,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4346,9 +4432,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the added items, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4391,9 +4480,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the inserted items, or <code>null</code> if inserted was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4429,9 +4521,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4467,9 +4562,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4487,6 +4585,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4504,6 +4604,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4533,6 +4635,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4562,6 +4666,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4597,9 +4703,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4635,9 +4744,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4673,9 +4785,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the new copy of the item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4711,9 +4826,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the reduced item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4737,9 +4855,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was removed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4775,9 +4896,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was replaced, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4801,9 +4925,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4846,9 +4973,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4866,6 +4996,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4891,9 +5023,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt></tt> — Boolean
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4919,9 +5054,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4945,9 +5083,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a stroke, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4971,9 +5112,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a shadow, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4999,9 +5143,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it has one or more children, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5025,9 +5172,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is inserted into the scene graph, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5063,9 +5213,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is above the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5101,9 +5254,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is below the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5139,9 +5295,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is the parent of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5177,9 +5336,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it is a child of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5215,9 +5377,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is inside the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5253,9 +5418,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is an ancestor of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5291,9 +5459,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is aa sibling of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5329,9 +5500,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the items are grouped together, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5363,6 +5537,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5400,6 +5576,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5497,6 +5675,8 @@ function onFrame(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item from its center point:</span></h4>
|
||||
|
||||
|
@ -5587,6 +5767,8 @@ circle.scale(1.5, circle.bounds.bottomLeft);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item horizontally by 300%:</span></h4>
|
||||
|
||||
|
@ -5646,6 +5828,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5696,6 +5880,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5739,6 +5925,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5789,6 +5977,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5825,6 +6015,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5860,9 +6052,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5898,9 +6093,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5936,9 +6134,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5974,9 +6175,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6013,6 +6217,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Fitting an item to the bounding rectangle of another item's bounding rectangle:</span></h4>
|
||||
|
||||
|
@ -6144,9 +6350,12 @@ path.fitBounds(view.bounds);
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -6211,9 +6420,12 @@ path.on('mouseleave', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -6320,9 +6532,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6358,9 +6573,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6403,9 +6621,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the event had listeners, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6441,9 +6662,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has one or more event handlers of the specified type, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6481,6 +6705,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6526,6 +6752,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Move your mouse below:</span></h4>
|
||||
|
||||
|
@ -6568,6 +6796,8 @@ function onMouseMove(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6610,6 +6840,8 @@ function onMouseDown(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6652,6 +6884,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6720,9 +6954,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
|
112
dist/docs/classes/Size.html
vendored
112
dist/docs/classes/Size.html
vendored
|
@ -67,9 +67,12 @@ console.log(rect); // { x: 20, y: 15, width: 10, height: 5 }</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Create a size that is 10pt wide and 5pt high</span></h4>
|
||||
|
||||
|
@ -111,9 +114,12 @@ console.log(size.height); // 5</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Creating a size of width: 320, height: 240 using an array of numbers:</span></h4>
|
||||
|
||||
|
@ -156,9 +162,12 @@ console.log(size.height); // 240</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Creating a size of width: 10, height: 20 using an object literal:</span></h4>
|
||||
|
||||
|
@ -203,9 +212,12 @@ console.log(size.height); // 20</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -241,9 +253,12 @@ console.log(size.height); // 20</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -294,9 +309,12 @@ console.log(size.height); // 50</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the addition of the size and the value as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -331,9 +349,12 @@ console.log(result); // {width: 25, height: 30}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the addition of the two sizes as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -379,9 +400,12 @@ console.log(result); // {width: 15, height: 30}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the subtraction of the size and the value as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -416,9 +440,12 @@ console.log(result); // {width: 5, height: 15}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the subtraction of the two sizes as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -464,9 +491,12 @@ console.log(result); // {width: 5, height: 15}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the multiplication of the size and the value as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -501,9 +531,12 @@ console.log(result); // {width: 20, height: 40}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the multiplication of the two sizes as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -549,9 +582,12 @@ console.log(result); // {width: 20, height: 20}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the division of the size and the value as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -586,9 +622,12 @@ console.log(result); // {width: 5, height: 10}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the division of the two sizes as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -634,9 +673,12 @@ console.log(result); // {width: 4, height: 2}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the integer remainders of dividing the size by the value as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -670,9 +712,12 @@ console.log(size % 5); // {width: 2, height: 1}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the integer remainders of dividing the sizes by each other as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -768,6 +813,8 @@ console.log(size % new Size(5, 2)); // {width: 2, height: 0}</code></pre>
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -803,9 +850,12 @@ console.log(size % new Size(5, 2)); // {width: 2, height: 0}</code></pre>
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -830,6 +880,8 @@ console.log(size != new Size(1, 1)); // true</code></pre>
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -853,9 +905,12 @@ console.log(size != new Size(1, 1)); // true</code></pre>
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of the size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -881,9 +936,12 @@ console.log(size != new Size(1, 1)); // true</code></pre>
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if both width and height are 0, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -907,9 +965,12 @@ console.log(size != new Size(1, 1)); // true</code></pre>
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the width or height of the size are NaN, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -935,9 +996,12 @@ console.log(size != new Size(1, 1)); // true</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -967,9 +1031,12 @@ console.log(roundSize); // {x: 10, y: 11}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -999,9 +1066,12 @@ console.log(ceilSize); // {x: 11, y: 11}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1031,9 +1101,12 @@ console.log(floorSize); // {x: 10, y: 10}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1080,9 +1153,12 @@ console.log(absSize); // {x: 5, y: 10}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the addition of the size and the value as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1124,9 +1200,12 @@ console.log(result); // {width: 25, height: 30}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the addition of the two sizes as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1172,9 +1251,12 @@ console.log(result); // {width: 15, height: 30}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the subtraction of the size and the value as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1216,9 +1298,12 @@ console.log(result); // {width: 5, height: 15}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the subtraction of the two sizes as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1264,9 +1349,12 @@ console.log(result); // {width: 5, height: 15}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the multiplication of the size and the value as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1308,9 +1396,12 @@ console.log(result); // {width: 20, height: 40}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the multiplication of the two sizes as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1356,9 +1447,12 @@ console.log(result); // {width: 20, height: 20}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the division of the size and the value as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1400,9 +1494,12 @@ console.log(result); // {width: 5, height: 10}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the division of the two sizes as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1448,9 +1545,12 @@ console.log(result); // {width: 4, height: 2}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the integer remainders of dividing the size by the value as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1491,9 +1591,12 @@ console.log(size % 5); // {width: 2, height: 1}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the integer remainders of dividing the sizes by each other as a new size
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1550,9 +1653,12 @@ console.log(size % new Size(5, 2)); // {width: 2, height: 0}</code></pre>
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the newly created size object
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1610,9 +1716,12 @@ var size3 = new Size(250, 35);
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the newly created size object
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
@ -1651,9 +1760,12 @@ var size3 = new Size(250, 35);
|
|||
<li>
|
||||
<tt><a href="../classes/Size.html"><tt>Size</tt></a></tt> — the newly created size object
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:</h4>
|
||||
|
||||
|
|
12
dist/docs/classes/SymbolDefinition.html
vendored
12
dist/docs/classes/SymbolDefinition.html
vendored
|
@ -59,9 +59,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/SymbolDefinition.html"><tt>SymbolDefinition</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Placing 100 instances of a symbol:</span></h4>
|
||||
|
||||
|
@ -208,9 +211,12 @@ for (var i = 0; i < 100; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/SymbolItem.html"><tt>SymbolItem</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -234,9 +240,12 @@ for (var i = 0; i < 100; i++) {
|
|||
<li>
|
||||
<tt><tt>Symbol</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -272,9 +281,12 @@ for (var i = 0; i < 100; i++) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if they are equal, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
213
dist/docs/classes/SymbolItem.html
vendored
213
dist/docs/classes/SymbolItem.html
vendored
|
@ -61,9 +61,12 @@
|
|||
<li>
|
||||
<tt><a href="../classes/SymbolItem.html"><tt>SymbolItem</tt></a></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Placing 100 instances of a symbol: Create a star shaped path at {x: 0, y: 0}:</span></h4>
|
||||
|
||||
|
@ -2742,9 +2745,12 @@ path.onMouseLeave = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the item itself
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Setting properties through an object literal</span></h4>
|
||||
|
||||
|
@ -2808,9 +2814,12 @@ circle.set({
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly cloned item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Cloning items:</span></h4>
|
||||
|
||||
|
@ -2866,6 +2875,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2902,6 +2913,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -2944,9 +2957,12 @@ for (var i = 0; i < 20; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Raster.html"><tt>Raster</tt></a></tt> — the newly created raster item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Rasterizing an item:</span></h4>
|
||||
|
||||
|
@ -3006,6 +3022,8 @@ raster.scale(5);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click within and outside the star below Create a star shaped path:</span></h4>
|
||||
|
||||
|
@ -3073,9 +3091,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3111,9 +3132,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3174,9 +3198,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/HitResult.html"><tt>HitResult</tt></a></tt> — a hit result object describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3220,9 +3247,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3266,9 +3296,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches all the criteria, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3319,9 +3352,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches the state, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3373,9 +3409,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the list of matching descendant items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3418,9 +3457,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the first descendant item matching the given criteria
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3469,9 +3511,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — the exported JSON data
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3501,6 +3546,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3542,9 +3589,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>SVGElement</tt></tt> — the item converted to an SVG node
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3594,9 +3644,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3639,9 +3692,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3679,9 +3735,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the added item, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3724,9 +3783,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3762,9 +3824,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the added items, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3807,9 +3872,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the inserted items, or <code>null</code> if inserted was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3845,9 +3913,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3883,9 +3954,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3903,6 +3977,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3920,6 +3996,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3949,6 +4027,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3978,6 +4058,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4013,9 +4095,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4051,9 +4136,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4089,9 +4177,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the new copy of the item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4127,9 +4218,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the reduced item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4153,9 +4247,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was removed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4191,9 +4288,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was replaced, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4217,9 +4317,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4262,9 +4365,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4282,6 +4388,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4307,9 +4415,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt></tt> — Boolean
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4335,9 +4446,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4361,9 +4475,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a stroke, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4387,9 +4504,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a shadow, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4415,9 +4535,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it has one or more children, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4441,9 +4564,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is inserted into the scene graph, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4479,9 +4605,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is above the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4517,9 +4646,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is below the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4555,9 +4687,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is the parent of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4593,9 +4728,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it is a child of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4631,9 +4769,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is inside the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4669,9 +4810,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is an ancestor of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4707,9 +4851,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is aa sibling of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4745,9 +4892,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the items are grouped together, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4779,6 +4929,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4816,6 +4968,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -4913,6 +5067,8 @@ function onFrame(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item from its center point:</span></h4>
|
||||
|
||||
|
@ -5003,6 +5159,8 @@ circle.scale(1.5, circle.bounds.bottomLeft);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item horizontally by 300%:</span></h4>
|
||||
|
||||
|
@ -5062,6 +5220,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5112,6 +5272,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5155,6 +5317,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5205,6 +5369,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5241,6 +5407,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5276,9 +5444,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5314,9 +5485,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5352,9 +5526,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5390,9 +5567,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5429,6 +5609,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Fitting an item to the bounding rectangle of another item's bounding rectangle:</span></h4>
|
||||
|
||||
|
@ -5560,9 +5742,12 @@ path.fitBounds(view.bounds);
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5627,9 +5812,12 @@ path.on('mouseleave', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5736,9 +5924,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5774,9 +5965,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5819,9 +6013,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the event had listeners, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5857,9 +6054,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has one or more event handlers of the specified type, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5897,6 +6097,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -5942,6 +6144,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Move your mouse below:</span></h4>
|
||||
|
||||
|
@ -5984,6 +6188,8 @@ function onMouseMove(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6026,6 +6232,8 @@ function onMouseDown(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6068,6 +6276,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6136,9 +6346,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
|
210
dist/docs/classes/TextItem.html
vendored
210
dist/docs/classes/TextItem.html
vendored
|
@ -2859,9 +2859,12 @@ path.onMouseLeave = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the item itself
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Setting properties through an object literal</span></h4>
|
||||
|
||||
|
@ -2925,9 +2928,12 @@ circle.set({
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly cloned item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Cloning items:</span></h4>
|
||||
|
||||
|
@ -2983,6 +2989,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3019,6 +3027,8 @@ for (var i = 0; i < 20; i++) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3061,9 +3071,12 @@ for (var i = 0; i < 20; i++) {
|
|||
<li>
|
||||
<tt><a href="../classes/Raster.html"><tt>Raster</tt></a></tt> — the newly created raster item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Rasterizing an item:</span></h4>
|
||||
|
||||
|
@ -3123,6 +3136,8 @@ raster.scale(5);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click within and outside the star below Create a star shaped path:</span></h4>
|
||||
|
||||
|
@ -3190,9 +3205,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3228,9 +3246,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt>
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3291,9 +3312,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/HitResult.html"><tt>HitResult</tt></a></tt> — a hit result object describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3337,9 +3361,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3383,9 +3410,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches all the criteria, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3436,9 +3466,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item matches the state, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3490,9 +3523,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the list of matching descendant items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3535,9 +3571,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the first descendant item matching the given criteria
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -3586,9 +3625,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — the exported JSON data
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3618,6 +3660,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3659,9 +3703,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>SVGElement</tt></tt> — the item converted to an SVG node
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3711,9 +3758,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3756,9 +3806,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the newly created Paper.js item containing the converted SVG content
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3796,9 +3849,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the added item, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3841,9 +3897,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3879,9 +3938,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the added items, or <code>null</code> if adding was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3924,9 +3986,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — the inserted items, or <code>null</code> if inserted was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -3962,9 +4027,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4000,9 +4068,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the inserted item, or <code>null</code> if inserting was not possible
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4020,6 +4091,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4037,6 +4110,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4066,6 +4141,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4095,6 +4172,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4130,9 +4209,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4168,9 +4250,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it was moved, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4206,9 +4291,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the new copy of the item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4244,9 +4332,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — the reduced item
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4270,9 +4361,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was removed, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4308,9 +4402,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item was replaced, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4334,9 +4431,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4379,9 +4479,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects</tt> — an array containing the removed items
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4399,6 +4502,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4424,9 +4529,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt></tt> — Boolean
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4452,9 +4560,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a fill, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4478,9 +4589,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a stroke, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4504,9 +4618,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has a shadow, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4532,9 +4649,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it has one or more children, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4558,9 +4678,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is inserted into the scene graph, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4596,9 +4719,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is above the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4634,9 +4760,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is below the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4672,9 +4801,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is the parent of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4710,9 +4842,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> it is a child of the item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4748,9 +4883,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if it is inside the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4786,9 +4924,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is an ancestor of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4824,9 +4965,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item is aa sibling of the specified item, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4862,9 +5006,12 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the items are grouped together, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4896,6 +5043,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -4933,6 +5082,8 @@ Array of <a href="../classes/Item.html"><tt>Item</tt></a> objects
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5030,6 +5181,8 @@ function onFrame(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item from its center point:</span></h4>
|
||||
|
||||
|
@ -5120,6 +5273,8 @@ circle.scale(1.5, circle.bounds.bottomLeft);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Scaling an item horizontally by 300%:</span></h4>
|
||||
|
||||
|
@ -5179,6 +5334,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5229,6 +5386,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5272,6 +5431,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5322,6 +5483,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -5358,6 +5521,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5393,9 +5558,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5431,9 +5599,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5469,9 +5640,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5507,9 +5681,12 @@ circle.scale(3, 1);
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the transformed point as a new instance
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5546,6 +5723,8 @@ circle.scale(3, 1);
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Fitting an item to the bounding rectangle of another item's bounding rectangle:</span></h4>
|
||||
|
||||
|
@ -5677,9 +5856,12 @@ path.fitBounds(view.bounds);
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5744,9 +5926,12 @@ path.on('mouseleave', function() {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Change the fill color of the path to red when the mouse enters its shape and back to black again, when it leaves its shape.</span></h4>
|
||||
|
||||
|
@ -5853,9 +6038,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5891,9 +6079,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Item.html"><tt>Item</tt></a></tt> — this item itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5936,9 +6127,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the event had listeners, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -5974,9 +6168,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the item has one or more event handlers of the specified type, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -6014,6 +6211,8 @@ function onMouseDown(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6059,6 +6258,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Move your mouse below:</span></h4>
|
||||
|
||||
|
@ -6101,6 +6302,8 @@ function onMouseMove(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6143,6 +6346,8 @@ function onMouseDown(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click and drag below:</span></h4>
|
||||
|
||||
|
@ -6185,6 +6390,8 @@ function onMouseDrag(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Click a few times below:</span></h4>
|
||||
|
||||
|
@ -6253,9 +6460,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt>Array of <a href="../classes/HitResult.html"><tt>HitResult</tt></a> objects</tt> — hit result objects for all hits, describing what exactly was hit or <code>null</code> if nothing was hit
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
|
22
dist/docs/classes/Tool.html
vendored
22
dist/docs/classes/Tool.html
vendored
|
@ -447,6 +447,8 @@ tool.onKeyDown = function(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -464,6 +466,8 @@ tool.onKeyDown = function(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -508,9 +512,12 @@ tool.onKeyDown = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Tool.html"><tt>Tool</tt></a></tt> — this tool itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -546,9 +553,12 @@ tool.onKeyDown = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Tool.html"><tt>Tool</tt></a></tt> — this tool itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -591,9 +601,12 @@ tool.onKeyDown = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Tool.html"><tt>Tool</tt></a></tt> — this tool itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -629,9 +642,12 @@ tool.onKeyDown = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Tool.html"><tt>Tool</tt></a></tt> — this tool itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -674,9 +690,12 @@ tool.onKeyDown = function(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the event had listeners, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -712,9 +731,12 @@ tool.onKeyDown = function(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the tool has one or more event handlers of the specified type, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
9
dist/docs/classes/ToolEvent.html
vendored
9
dist/docs/classes/ToolEvent.html
vendored
|
@ -282,9 +282,12 @@ function onMouseUp(event) {
|
|||
<li>
|
||||
<tt><tt>String</tt></tt> — a string representation of the tool event
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -381,6 +384,8 @@ function onMouseUp(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -398,6 +403,8 @@ function onMouseUp(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -416,6 +423,8 @@ function onMouseUp(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
62
dist/docs/classes/View.html
vendored
62
dist/docs/classes/View.html
vendored
|
@ -747,6 +747,8 @@ view.onResize = function(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -770,9 +772,12 @@ view.onResize = function(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the view was updated, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -790,6 +795,8 @@ view.onResize = function(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -807,6 +814,8 @@ view.onResize = function(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -824,6 +833,8 @@ view.onResize = function(event) {
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -847,9 +858,12 @@ view.onResize = function(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the view is visible, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -873,9 +887,12 @@ view.onResize = function(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the view is inserted, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -907,6 +924,8 @@ view.onResize = function(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -944,6 +963,8 @@ view.onResize = function(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -987,6 +1008,8 @@ view.onResize = function(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1030,6 +1053,8 @@ view.onResize = function(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1066,6 +1091,8 @@ view.onResize = function(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -1116,6 +1143,8 @@ view.onResize = function(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -1159,6 +1188,8 @@ view.onResize = function(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -1209,6 +1240,8 @@ view.onResize = function(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<ul class="member-list">
|
||||
<h4>See also:</h4>
|
||||
|
@ -1245,6 +1278,8 @@ view.onResize = function(event) {
|
|||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1280,9 +1315,12 @@ view.onResize = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the point converted into view coordinates
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1318,9 +1356,12 @@ view.onResize = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the point converted into project coordinates
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1356,9 +1397,12 @@ view.onResize = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/Point.html"><tt>Point</tt></a></tt> — the event point in project coordinates.
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1403,9 +1447,12 @@ view.onResize = function(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/View.html"><tt>View</tt></a></tt> — this view itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Create a rectangle shaped path with its top left point at: {x: 50, y: 25} and a size of {width: 50, height: 50}</span></h4>
|
||||
|
||||
|
@ -1463,9 +1510,12 @@ view.on('frame', frameHandler);
|
|||
<li>
|
||||
<tt><a href="../classes/View.html"><tt>View</tt></a></tt> — this view itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Create a rectangle shaped path with its top left point at: {x: 50, y: 25} and a size of {width: 50, height: 50}</span></h4>
|
||||
|
||||
|
@ -1532,9 +1582,12 @@ view.on({
|
|||
<li>
|
||||
<tt><a href="../classes/View.html"><tt>View</tt></a></tt> — this view itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
<h4>Example:<span class="description">Create a rectangle shaped path with its top left point at: {x: 50, y: 25} and a size of {width: 50, height: 50}</span></h4>
|
||||
|
||||
|
@ -1600,9 +1653,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><a href="../classes/View.html"><tt>View</tt></a></tt> — this view itself, so calls can be chained
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1645,9 +1701,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the event had listeners, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
@ -1683,9 +1742,12 @@ function onMouseDown(event) {
|
|||
<li>
|
||||
<tt><tt>Boolean</tt></tt> — <tt>true</tt> if the view has one or more event handlers of the specified type, <tt>false</tt> otherwise
|
||||
</li>
|
||||
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
|
140
dist/paper-core.js
vendored
140
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue Jan 10 13:34:50 2017 +0100
|
||||
* Date: Wed Jan 11 15:01:10 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -5937,6 +5937,10 @@ var Curve = Base.extend({
|
|||
return '{ ' + parts.join(', ') + ' }';
|
||||
},
|
||||
|
||||
classify: function() {
|
||||
return Curve.classify(this.getValues());
|
||||
},
|
||||
|
||||
remove: function() {
|
||||
var removed = false;
|
||||
if (this._path) {
|
||||
|
@ -6635,6 +6639,61 @@ new function() {
|
|||
|
||||
return { statics: {
|
||||
|
||||
classify: function(v) {
|
||||
|
||||
var x1 = v[0], y1 = v[1],
|
||||
x2 = v[2], y2 = v[3],
|
||||
x3 = v[4], y3 = v[5],
|
||||
x4 = v[6], y4 = v[7],
|
||||
a1 = x1 * (y4 - y3) + y1 * (x3 - x4) + x4 * y3 - y4 * x3,
|
||||
a2 = x2 * (y1 - y4) + y2 * (x4 - x1) + x1 * y4 - y1 * x4,
|
||||
a3 = x3 * (y2 - y1) + y3 * (x1 - x2) + x2 * y1 - y2 * x1,
|
||||
d3 = 3 * a3,
|
||||
d2 = d3 - a2,
|
||||
d1 = d2 - a2 + a1,
|
||||
l = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3),
|
||||
s = l !== 0 ? 1 / l : 0,
|
||||
isZero = Numerical.isZero,
|
||||
serpentine = 'serpentine';
|
||||
d1 *= s;
|
||||
d2 *= s;
|
||||
d3 *= s;
|
||||
|
||||
function type(type, t1, t2) {
|
||||
var hasRoots = t1 !== undefined,
|
||||
t1Ok = hasRoots && t1 > 0 && t1 < 1,
|
||||
t2Ok = hasRoots && t2 > 0 && t2 < 1;
|
||||
if (hasRoots && (!(t1Ok || t2Ok)
|
||||
|| type === 'loop' && !(t1Ok && t2Ok))) {
|
||||
type = 'arch';
|
||||
t1Ok = t2Ok = false;
|
||||
}
|
||||
return {
|
||||
type: type,
|
||||
roots: t1Ok || t2Ok
|
||||
? t1Ok && t2Ok
|
||||
? t1 < t2 ? [t1, t2] : [t2, t1]
|
||||
: [t1Ok ? t1 : t2]
|
||||
: null
|
||||
};
|
||||
}
|
||||
|
||||
if (isZero(d1)) {
|
||||
return isZero(d2)
|
||||
? type(isZero(d3) ? 'line' : 'quadratic')
|
||||
: type(serpentine, d3 / (3 * d2));
|
||||
}
|
||||
var d = 3 * d2 * d2 - 4 * d1 * d3;
|
||||
if (isZero(d)) {
|
||||
return type('cusp', d2 / (2 * d1));
|
||||
}
|
||||
var f1 = d > 0 ? Math.sqrt(d / 3) : Math.sqrt(-d),
|
||||
f2 = 2 * d1;
|
||||
return type(d > 0 ? serpentine : 'loop',
|
||||
(d2 + f1) / f2,
|
||||
(d2 - f1) / f2);
|
||||
},
|
||||
|
||||
getLength: function(v, a, b, ds) {
|
||||
if (a === undefined)
|
||||
a = 0;
|
||||
|
@ -6728,12 +6787,6 @@ new function() {
|
|||
t2 = Curve.getTimeOf(v2, p2);
|
||||
if (t2 !== null && t2 >= (excludeEnd ? tMin : 0) &&
|
||||
t2 <= (excludeStart ? tMax : 1)) {
|
||||
var renormalize = param.renormalize;
|
||||
if (renormalize) {
|
||||
var res = renormalize(t1, t2);
|
||||
t1 = res[0];
|
||||
t2 = res[1];
|
||||
}
|
||||
var loc1 = new CurveLocation(c1, t1,
|
||||
p1 || Curve.getPoint(v1, t1), overlap),
|
||||
loc2 = new CurveLocation(c2, t2,
|
||||
|
@ -6923,7 +6976,7 @@ new function() {
|
|||
return { statics: {
|
||||
_getIntersections: function(v1, v2, c1, c2, locations, param) {
|
||||
if (!v2) {
|
||||
return Curve._getSelfIntersection(v1, c1, locations, param);
|
||||
return Curve._getLoopIntersection(v1, c1, locations, param);
|
||||
}
|
||||
var epsilon = 1e-12,
|
||||
c1p1x = v1[0], c1p1y = v1[1],
|
||||
|
@ -6984,57 +7037,15 @@ new function() {
|
|||
return locations;
|
||||
},
|
||||
|
||||
_getSelfIntersection: function(v1, c1, locations, param) {
|
||||
var p1x = v1[0], p1y = v1[1],
|
||||
h1x = v1[2], h1y = v1[3],
|
||||
h2x = v1[4], h2y = v1[5],
|
||||
p2x = v1[6], p2y = v1[7];
|
||||
var line = new Line(p1x, p1y, p2x, p2y, false),
|
||||
side1 = line.getSide(new Point(h1x, h1y), true),
|
||||
side2 = line.getSide(new Point(h2x, h2y), true);
|
||||
if (side1 === side2) {
|
||||
var edgeSum = (p1x - h2x) * (h1y - p2y)
|
||||
+ (h1x - p2x) * (h2y - p1y);
|
||||
if (edgeSum * side1 > 0)
|
||||
return locations;
|
||||
_getLoopIntersection: function(v1, c1, locations, param) {
|
||||
var info = Curve.classify(v1);
|
||||
if (info.type === 'loop') {
|
||||
var roots = info.roots;
|
||||
addLocation(locations, param,
|
||||
v1, c1, roots[0], null,
|
||||
v1, c1, roots[1], null);
|
||||
}
|
||||
var ax = p2x - 3 * h2x + 3 * h1x - p1x,
|
||||
bx = h2x - 2 * h1x + p1x,
|
||||
cx = h1x - p1x,
|
||||
ay = p2y - 3 * h2y + 3 * h1y - p1y,
|
||||
by = h2y - 2 * h1y + p1y,
|
||||
cy = h1y - p1y,
|
||||
ac = ay * cx - ax * cy,
|
||||
ab = ay * bx - ax * by,
|
||||
bc = by * cx - bx * cy;
|
||||
if (ac * ac - 4 * ab * bc < 0) {
|
||||
var roots = [],
|
||||
tSplit,
|
||||
count = Numerical.solveCubic(
|
||||
ax * ax + ay * ay,
|
||||
3 * (ax * bx + ay * by),
|
||||
2 * (bx * bx + by * by) + ax * cx + ay * cy,
|
||||
bx * cx + by * cy,
|
||||
roots, 0, 1);
|
||||
if (count > 0) {
|
||||
for (var i = 0, maxCurvature = 0; i < count; i++) {
|
||||
var curvature = Math.abs(
|
||||
c1.getCurvatureAtTime(roots[i]));
|
||||
if (curvature > maxCurvature) {
|
||||
maxCurvature = curvature;
|
||||
tSplit = roots[i];
|
||||
}
|
||||
}
|
||||
var parts = Curve.subdivide(v1, tSplit);
|
||||
param.excludeEnd = true;
|
||||
param.renormalize = function(t1, t2) {
|
||||
return [t1 * tSplit, t2 * (1 - tSplit) + tSplit];
|
||||
};
|
||||
Curve._getIntersections(parts[0], parts[1], c1, c1,
|
||||
locations, param);
|
||||
}
|
||||
}
|
||||
return locations;
|
||||
return locations;
|
||||
},
|
||||
|
||||
getOverlaps: function(v1, v2) {
|
||||
|
@ -7444,7 +7455,6 @@ var PathItem = Item.extend({
|
|||
},
|
||||
|
||||
statics: {
|
||||
|
||||
create: function(arg) {
|
||||
var data,
|
||||
segments,
|
||||
|
@ -7633,7 +7643,7 @@ var PathItem = Item.extend({
|
|||
arrays.push(locations);
|
||||
}
|
||||
if (self) {
|
||||
Curve._getSelfIntersection(values1, curve1, locations, {
|
||||
Curve._getLoopIntersection(values1, curve1, locations, {
|
||||
include: include,
|
||||
excludeStart: length1 === 1 &&
|
||||
curve1.getPoint1().equals(curve1.getPoint2())
|
||||
|
@ -9838,7 +9848,7 @@ PathItem.inject(new function() {
|
|||
clearHandles = false,
|
||||
clearCurves = clearLater || [],
|
||||
clearLookup = clearLater && {},
|
||||
rescaleLocs,
|
||||
renormalizeLocs,
|
||||
prevCurve,
|
||||
prevTime;
|
||||
|
||||
|
@ -9862,7 +9872,7 @@ PathItem.inject(new function() {
|
|||
if (curve !== prevCurve) {
|
||||
clearHandles = !curve.hasHandles()
|
||||
|| clearLookup && clearLookup[getId(curve)];
|
||||
rescaleLocs = [];
|
||||
renormalizeLocs = [];
|
||||
prevTime = null;
|
||||
} else if (prevTime > tMin) {
|
||||
loc._time /= prevTime;
|
||||
|
@ -9870,7 +9880,7 @@ PathItem.inject(new function() {
|
|||
prevCurve = curve;
|
||||
}
|
||||
if (exclude) {
|
||||
rescaleLocs.push(loc);
|
||||
renormalizeLocs.push(loc);
|
||||
continue;
|
||||
} else if (include) {
|
||||
results.unshift(loc);
|
||||
|
@ -9886,8 +9896,8 @@ PathItem.inject(new function() {
|
|||
if (clearHandles)
|
||||
clearCurves.push(curve, newCurve);
|
||||
segment = newCurve._segment1;
|
||||
for (var j = rescaleLocs.length - 1; j >= 0; j--) {
|
||||
var l = rescaleLocs[j];
|
||||
for (var j = renormalizeLocs.length - 1; j >= 0; j--) {
|
||||
var l = renormalizeLocs[j];
|
||||
l._time = (l._time - time) / (1 - time);
|
||||
}
|
||||
}
|
||||
|
|
12
dist/paper-core.min.js
vendored
12
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
140
dist/paper-full.js
vendored
140
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Tue Jan 10 13:34:50 2017 +0100
|
||||
* Date: Wed Jan 11 15:01:10 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -5937,6 +5937,10 @@ var Curve = Base.extend({
|
|||
return '{ ' + parts.join(', ') + ' }';
|
||||
},
|
||||
|
||||
classify: function() {
|
||||
return Curve.classify(this.getValues());
|
||||
},
|
||||
|
||||
remove: function() {
|
||||
var removed = false;
|
||||
if (this._path) {
|
||||
|
@ -6635,6 +6639,61 @@ new function() {
|
|||
|
||||
return { statics: {
|
||||
|
||||
classify: function(v) {
|
||||
|
||||
var x1 = v[0], y1 = v[1],
|
||||
x2 = v[2], y2 = v[3],
|
||||
x3 = v[4], y3 = v[5],
|
||||
x4 = v[6], y4 = v[7],
|
||||
a1 = x1 * (y4 - y3) + y1 * (x3 - x4) + x4 * y3 - y4 * x3,
|
||||
a2 = x2 * (y1 - y4) + y2 * (x4 - x1) + x1 * y4 - y1 * x4,
|
||||
a3 = x3 * (y2 - y1) + y3 * (x1 - x2) + x2 * y1 - y2 * x1,
|
||||
d3 = 3 * a3,
|
||||
d2 = d3 - a2,
|
||||
d1 = d2 - a2 + a1,
|
||||
l = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3),
|
||||
s = l !== 0 ? 1 / l : 0,
|
||||
isZero = Numerical.isZero,
|
||||
serpentine = 'serpentine';
|
||||
d1 *= s;
|
||||
d2 *= s;
|
||||
d3 *= s;
|
||||
|
||||
function type(type, t1, t2) {
|
||||
var hasRoots = t1 !== undefined,
|
||||
t1Ok = hasRoots && t1 > 0 && t1 < 1,
|
||||
t2Ok = hasRoots && t2 > 0 && t2 < 1;
|
||||
if (hasRoots && (!(t1Ok || t2Ok)
|
||||
|| type === 'loop' && !(t1Ok && t2Ok))) {
|
||||
type = 'arch';
|
||||
t1Ok = t2Ok = false;
|
||||
}
|
||||
return {
|
||||
type: type,
|
||||
roots: t1Ok || t2Ok
|
||||
? t1Ok && t2Ok
|
||||
? t1 < t2 ? [t1, t2] : [t2, t1]
|
||||
: [t1Ok ? t1 : t2]
|
||||
: null
|
||||
};
|
||||
}
|
||||
|
||||
if (isZero(d1)) {
|
||||
return isZero(d2)
|
||||
? type(isZero(d3) ? 'line' : 'quadratic')
|
||||
: type(serpentine, d3 / (3 * d2));
|
||||
}
|
||||
var d = 3 * d2 * d2 - 4 * d1 * d3;
|
||||
if (isZero(d)) {
|
||||
return type('cusp', d2 / (2 * d1));
|
||||
}
|
||||
var f1 = d > 0 ? Math.sqrt(d / 3) : Math.sqrt(-d),
|
||||
f2 = 2 * d1;
|
||||
return type(d > 0 ? serpentine : 'loop',
|
||||
(d2 + f1) / f2,
|
||||
(d2 - f1) / f2);
|
||||
},
|
||||
|
||||
getLength: function(v, a, b, ds) {
|
||||
if (a === undefined)
|
||||
a = 0;
|
||||
|
@ -6728,12 +6787,6 @@ new function() {
|
|||
t2 = Curve.getTimeOf(v2, p2);
|
||||
if (t2 !== null && t2 >= (excludeEnd ? tMin : 0) &&
|
||||
t2 <= (excludeStart ? tMax : 1)) {
|
||||
var renormalize = param.renormalize;
|
||||
if (renormalize) {
|
||||
var res = renormalize(t1, t2);
|
||||
t1 = res[0];
|
||||
t2 = res[1];
|
||||
}
|
||||
var loc1 = new CurveLocation(c1, t1,
|
||||
p1 || Curve.getPoint(v1, t1), overlap),
|
||||
loc2 = new CurveLocation(c2, t2,
|
||||
|
@ -6923,7 +6976,7 @@ new function() {
|
|||
return { statics: {
|
||||
_getIntersections: function(v1, v2, c1, c2, locations, param) {
|
||||
if (!v2) {
|
||||
return Curve._getSelfIntersection(v1, c1, locations, param);
|
||||
return Curve._getLoopIntersection(v1, c1, locations, param);
|
||||
}
|
||||
var epsilon = 1e-12,
|
||||
c1p1x = v1[0], c1p1y = v1[1],
|
||||
|
@ -6984,57 +7037,15 @@ new function() {
|
|||
return locations;
|
||||
},
|
||||
|
||||
_getSelfIntersection: function(v1, c1, locations, param) {
|
||||
var p1x = v1[0], p1y = v1[1],
|
||||
h1x = v1[2], h1y = v1[3],
|
||||
h2x = v1[4], h2y = v1[5],
|
||||
p2x = v1[6], p2y = v1[7];
|
||||
var line = new Line(p1x, p1y, p2x, p2y, false),
|
||||
side1 = line.getSide(new Point(h1x, h1y), true),
|
||||
side2 = line.getSide(new Point(h2x, h2y), true);
|
||||
if (side1 === side2) {
|
||||
var edgeSum = (p1x - h2x) * (h1y - p2y)
|
||||
+ (h1x - p2x) * (h2y - p1y);
|
||||
if (edgeSum * side1 > 0)
|
||||
return locations;
|
||||
_getLoopIntersection: function(v1, c1, locations, param) {
|
||||
var info = Curve.classify(v1);
|
||||
if (info.type === 'loop') {
|
||||
var roots = info.roots;
|
||||
addLocation(locations, param,
|
||||
v1, c1, roots[0], null,
|
||||
v1, c1, roots[1], null);
|
||||
}
|
||||
var ax = p2x - 3 * h2x + 3 * h1x - p1x,
|
||||
bx = h2x - 2 * h1x + p1x,
|
||||
cx = h1x - p1x,
|
||||
ay = p2y - 3 * h2y + 3 * h1y - p1y,
|
||||
by = h2y - 2 * h1y + p1y,
|
||||
cy = h1y - p1y,
|
||||
ac = ay * cx - ax * cy,
|
||||
ab = ay * bx - ax * by,
|
||||
bc = by * cx - bx * cy;
|
||||
if (ac * ac - 4 * ab * bc < 0) {
|
||||
var roots = [],
|
||||
tSplit,
|
||||
count = Numerical.solveCubic(
|
||||
ax * ax + ay * ay,
|
||||
3 * (ax * bx + ay * by),
|
||||
2 * (bx * bx + by * by) + ax * cx + ay * cy,
|
||||
bx * cx + by * cy,
|
||||
roots, 0, 1);
|
||||
if (count > 0) {
|
||||
for (var i = 0, maxCurvature = 0; i < count; i++) {
|
||||
var curvature = Math.abs(
|
||||
c1.getCurvatureAtTime(roots[i]));
|
||||
if (curvature > maxCurvature) {
|
||||
maxCurvature = curvature;
|
||||
tSplit = roots[i];
|
||||
}
|
||||
}
|
||||
var parts = Curve.subdivide(v1, tSplit);
|
||||
param.excludeEnd = true;
|
||||
param.renormalize = function(t1, t2) {
|
||||
return [t1 * tSplit, t2 * (1 - tSplit) + tSplit];
|
||||
};
|
||||
Curve._getIntersections(parts[0], parts[1], c1, c1,
|
||||
locations, param);
|
||||
}
|
||||
}
|
||||
return locations;
|
||||
return locations;
|
||||
},
|
||||
|
||||
getOverlaps: function(v1, v2) {
|
||||
|
@ -7444,7 +7455,6 @@ var PathItem = Item.extend({
|
|||
},
|
||||
|
||||
statics: {
|
||||
|
||||
create: function(arg) {
|
||||
var data,
|
||||
segments,
|
||||
|
@ -7633,7 +7643,7 @@ var PathItem = Item.extend({
|
|||
arrays.push(locations);
|
||||
}
|
||||
if (self) {
|
||||
Curve._getSelfIntersection(values1, curve1, locations, {
|
||||
Curve._getLoopIntersection(values1, curve1, locations, {
|
||||
include: include,
|
||||
excludeStart: length1 === 1 &&
|
||||
curve1.getPoint1().equals(curve1.getPoint2())
|
||||
|
@ -9838,7 +9848,7 @@ PathItem.inject(new function() {
|
|||
clearHandles = false,
|
||||
clearCurves = clearLater || [],
|
||||
clearLookup = clearLater && {},
|
||||
rescaleLocs,
|
||||
renormalizeLocs,
|
||||
prevCurve,
|
||||
prevTime;
|
||||
|
||||
|
@ -9862,7 +9872,7 @@ PathItem.inject(new function() {
|
|||
if (curve !== prevCurve) {
|
||||
clearHandles = !curve.hasHandles()
|
||||
|| clearLookup && clearLookup[getId(curve)];
|
||||
rescaleLocs = [];
|
||||
renormalizeLocs = [];
|
||||
prevTime = null;
|
||||
} else if (prevTime > tMin) {
|
||||
loc._time /= prevTime;
|
||||
|
@ -9870,7 +9880,7 @@ PathItem.inject(new function() {
|
|||
prevCurve = curve;
|
||||
}
|
||||
if (exclude) {
|
||||
rescaleLocs.push(loc);
|
||||
renormalizeLocs.push(loc);
|
||||
continue;
|
||||
} else if (include) {
|
||||
results.unshift(loc);
|
||||
|
@ -9886,8 +9896,8 @@ PathItem.inject(new function() {
|
|||
if (clearHandles)
|
||||
clearCurves.push(curve, newCurve);
|
||||
segment = newCurve._segment1;
|
||||
for (var j = rescaleLocs.length - 1; j >= 0; j--) {
|
||||
var l = rescaleLocs[j];
|
||||
for (var j = renormalizeLocs.length - 1; j >= 0; j--) {
|
||||
var l = renormalizeLocs[j];
|
||||
l._time = (l._time - time) / (1 - time);
|
||||
}
|
||||
}
|
||||
|
|
14
dist/paper-full.min.js
vendored
14
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue