mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-22 07:19:57 -05:00
Minor code clean-up.
This commit is contained in:
parent
3946bcb04e
commit
e242634011
1 changed files with 6 additions and 6 deletions
|
@ -178,10 +178,10 @@ PathItem.inject(new function() {
|
||||||
// number along overlaps.
|
// number along overlaps.
|
||||||
// Calculate the new winding number based on current
|
// Calculate the new winding number based on current
|
||||||
// number and role in the operation.
|
// number and role in the operation.
|
||||||
var newWind =
|
var path = getMainPath(seg),
|
||||||
wind === 0 && getMainPath(seg) === _path1 ? 1 :
|
newWind = wind === 0 && path === _path1 ? 1
|
||||||
wind === 1 && getMainPath(seg) === _path2 ? 2 :
|
: wind === 1 && path === _path2 ? 2
|
||||||
null;
|
: null;
|
||||||
if (newWind != null) {
|
if (newWind != null) {
|
||||||
// Check against the winding of the intersecting
|
// Check against the winding of the intersecting
|
||||||
// path, to exclude islands in compound paths, where
|
// path, to exclude islands in compound paths, where
|
||||||
|
@ -696,8 +696,8 @@ PathItem.inject(new function() {
|
||||||
|
|
||||||
Path.inject(/** @lends Path# */{
|
Path.inject(/** @lends Path# */{
|
||||||
/**
|
/**
|
||||||
* Private method that returns and caches all the curves in this Path, which
|
* Private method that returns and caches all the curves in this Path,
|
||||||
* are monotonically decreasing or increasing in the y-direction.
|
* which are monotonically decreasing or increasing in the y-direction.
|
||||||
* Used by getWinding().
|
* Used by getWinding().
|
||||||
*/
|
*/
|
||||||
_getMonoCurves: function() {
|
_getMonoCurves: function() {
|
||||||
|
|
Loading…
Reference in a new issue