mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-03-13 16:33:28 -04:00
Prebuilt module for commit 26993b2c36
This commit is contained in:
parent
36093327d3
commit
aa8eb90357
5 changed files with 28 additions and 34 deletions
18
dist/docs/assets/js/paper.js
vendored
18
dist/docs/assets/js/paper.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sat Mar 18 16:46:55 2017 +0100
|
||||
* Date: Sun Mar 19 14:18:55 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -10184,8 +10184,7 @@ PathItem.inject(new function() {
|
|||
segment = segment.getNext();
|
||||
} while (segment && !segment._intersection && segment !== start);
|
||||
var offsets = [0.5, 0.25, 0.75],
|
||||
windingZero = { winding: 0, quality: 0 },
|
||||
winding = windingZero,
|
||||
winding = { winding: 0, quality: -1 },
|
||||
tMin = 1e-8,
|
||||
tMax = 1 - tMin;
|
||||
for (var i = 0; i < offsets.length && winding.quality < 0.5; i++) {
|
||||
|
@ -10197,19 +10196,18 @@ PathItem.inject(new function() {
|
|||
var curve = entry.curve,
|
||||
path = curve._path,
|
||||
parent = path._parent,
|
||||
operand = parent instanceof CompoundPath ? parent : path,
|
||||
t = Numerical.clamp(curve.getTimeAt(length), tMin, tMax),
|
||||
pt = curve.getPointAtTime(t),
|
||||
dir = abs(curve.getTangentAtTime(t).normalize().y)
|
||||
< Math.SQRT1_2 ? 1 : 0;
|
||||
if (parent instanceof CompoundPath)
|
||||
path = parent;
|
||||
dir = abs(curve.getTangentAtTime(t).y) < Math.SQRT1_2
|
||||
? 1 : 0;
|
||||
var wind = !(operator.subtract && path2 && (
|
||||
path === path1 &&
|
||||
operand === path1 &&
|
||||
path2._getWinding(pt, dir, true).winding ||
|
||||
path === path2 &&
|
||||
operand === path2 &&
|
||||
!path1._getWinding(pt, dir, true).winding))
|
||||
? getWinding(pt, curves, dir, true)
|
||||
: windingZero;
|
||||
: { winding: 0, quality: 1 };
|
||||
if (wind.quality > winding.quality)
|
||||
winding = wind;
|
||||
break;
|
||||
|
|
18
dist/paper-core.js
vendored
18
dist/paper-core.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sat Mar 18 16:46:55 2017 +0100
|
||||
* Date: Sun Mar 19 14:18:55 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -10184,8 +10184,7 @@ PathItem.inject(new function() {
|
|||
segment = segment.getNext();
|
||||
} while (segment && !segment._intersection && segment !== start);
|
||||
var offsets = [0.5, 0.25, 0.75],
|
||||
windingZero = { winding: 0, quality: 0 },
|
||||
winding = windingZero,
|
||||
winding = { winding: 0, quality: -1 },
|
||||
tMin = 1e-8,
|
||||
tMax = 1 - tMin;
|
||||
for (var i = 0; i < offsets.length && winding.quality < 0.5; i++) {
|
||||
|
@ -10197,19 +10196,18 @@ PathItem.inject(new function() {
|
|||
var curve = entry.curve,
|
||||
path = curve._path,
|
||||
parent = path._parent,
|
||||
operand = parent instanceof CompoundPath ? parent : path,
|
||||
t = Numerical.clamp(curve.getTimeAt(length), tMin, tMax),
|
||||
pt = curve.getPointAtTime(t),
|
||||
dir = abs(curve.getTangentAtTime(t).normalize().y)
|
||||
< Math.SQRT1_2 ? 1 : 0;
|
||||
if (parent instanceof CompoundPath)
|
||||
path = parent;
|
||||
dir = abs(curve.getTangentAtTime(t).y) < Math.SQRT1_2
|
||||
? 1 : 0;
|
||||
var wind = !(operator.subtract && path2 && (
|
||||
path === path1 &&
|
||||
operand === path1 &&
|
||||
path2._getWinding(pt, dir, true).winding ||
|
||||
path === path2 &&
|
||||
operand === path2 &&
|
||||
!path1._getWinding(pt, dir, true).winding))
|
||||
? getWinding(pt, curves, dir, true)
|
||||
: windingZero;
|
||||
: { winding: 0, quality: 1 };
|
||||
if (wind.quality > winding.quality)
|
||||
winding = wind;
|
||||
break;
|
||||
|
|
4
dist/paper-core.min.js
vendored
4
dist/paper-core.min.js
vendored
File diff suppressed because one or more lines are too long
18
dist/paper-full.js
vendored
18
dist/paper-full.js
vendored
|
@ -9,7 +9,7 @@
|
|||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
* Date: Sat Mar 18 16:46:55 2017 +0100
|
||||
* Date: Sun Mar 19 14:18:55 2017 +0100
|
||||
*
|
||||
***
|
||||
*
|
||||
|
@ -10184,8 +10184,7 @@ PathItem.inject(new function() {
|
|||
segment = segment.getNext();
|
||||
} while (segment && !segment._intersection && segment !== start);
|
||||
var offsets = [0.5, 0.25, 0.75],
|
||||
windingZero = { winding: 0, quality: 0 },
|
||||
winding = windingZero,
|
||||
winding = { winding: 0, quality: -1 },
|
||||
tMin = 1e-8,
|
||||
tMax = 1 - tMin;
|
||||
for (var i = 0; i < offsets.length && winding.quality < 0.5; i++) {
|
||||
|
@ -10197,19 +10196,18 @@ PathItem.inject(new function() {
|
|||
var curve = entry.curve,
|
||||
path = curve._path,
|
||||
parent = path._parent,
|
||||
operand = parent instanceof CompoundPath ? parent : path,
|
||||
t = Numerical.clamp(curve.getTimeAt(length), tMin, tMax),
|
||||
pt = curve.getPointAtTime(t),
|
||||
dir = abs(curve.getTangentAtTime(t).normalize().y)
|
||||
< Math.SQRT1_2 ? 1 : 0;
|
||||
if (parent instanceof CompoundPath)
|
||||
path = parent;
|
||||
dir = abs(curve.getTangentAtTime(t).y) < Math.SQRT1_2
|
||||
? 1 : 0;
|
||||
var wind = !(operator.subtract && path2 && (
|
||||
path === path1 &&
|
||||
operand === path1 &&
|
||||
path2._getWinding(pt, dir, true).winding ||
|
||||
path === path2 &&
|
||||
operand === path2 &&
|
||||
!path1._getWinding(pt, dir, true).winding))
|
||||
? getWinding(pt, curves, dir, true)
|
||||
: windingZero;
|
||||
: { winding: 0, quality: 1 };
|
||||
if (wind.quality > winding.quality)
|
||||
winding = wind;
|
||||
break;
|
||||
|
|
4
dist/paper-full.min.js
vendored
4
dist/paper-full.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue