swap 1st layer and support
This commit is contained in:
parent
8914b900b2
commit
c088b7651e
2 changed files with 18 additions and 10 deletions
|
|
@ -1050,6 +1050,14 @@ var gs_base_polygon = exports;
|
|||
return out;
|
||||
};
|
||||
|
||||
PRO.shortestSegmentLength() {
|
||||
var len = Infinity;
|
||||
this.forEachSegment(function(p1, p2) {
|
||||
len = Math.min(len, p1.distTo2D(p2));
|
||||
});
|
||||
return len;
|
||||
};
|
||||
|
||||
/**
|
||||
* @param {Polygon} poly clipping mask
|
||||
* @returns {?Polygon[]}
|
||||
|
|
|
|||
Loading…
Reference in a new issue