Comparing version 2.4.22 to 2.4.23
@@ -11,2 +11,3 @@ import { DPoint } from './DPoint'; | ||
private readonly m; | ||
approximation: boolean; | ||
constructor(size: DPoint, f: (p: DPoint) => TraceMatrixValues); | ||
@@ -13,0 +14,0 @@ fullMatrixTrace(): DPolygon[]; |
@@ -67,2 +67,3 @@ "use strict"; | ||
this.size = size; | ||
this.approximation = true; | ||
this.findGroupByIndex = function (m, s) { | ||
@@ -153,3 +154,6 @@ var res = new DPolygon_1.DPolygon(); | ||
} | ||
return points.approximation().close(); | ||
if (_this.approximation) { | ||
return points.approximation().close(); | ||
} | ||
return points.clone().close(); | ||
}; | ||
@@ -156,0 +160,0 @@ this.createHoleMatrix = function (group) { |
@@ -26,2 +26,3 @@ import { DPoint } from './DPoint'; | ||
this.size = size; | ||
this.approximation = true; | ||
this.findGroupByIndex = (m, s) => { | ||
@@ -112,3 +113,6 @@ const res = new DPolygon(); | ||
} | ||
return points.approximation().close(); | ||
if (this.approximation) { | ||
return points.approximation().close(); | ||
} | ||
return points.clone().close(); | ||
}; | ||
@@ -115,0 +119,0 @@ this.createHoleMatrix = (group) => { |
@@ -64,2 +64,3 @@ var __read = (this && this.__read) || function (o, n) { | ||
this.size = size; | ||
this.approximation = true; | ||
this.findGroupByIndex = function (m, s) { | ||
@@ -150,3 +151,6 @@ var res = new DPolygon(); | ||
} | ||
return points.approximation().close(); | ||
if (_this.approximation) { | ||
return points.approximation().close(); | ||
} | ||
return points.clone().close(); | ||
}; | ||
@@ -153,0 +157,0 @@ this.createHoleMatrix = function (group) { |
{ | ||
"name": "dgeoutils", | ||
"version": "2.4.22", | ||
"version": "2.4.23", | ||
"description": "Geometries utils for my projects", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1250916
17680