checkpoint kiri module migration work

This commit is contained in:
Stewart Allen 2025-07-04 22:18:18 -04:00
commit 7d22cc1029
201 changed files with 41262 additions and 85 deletions

View file

@ -4,9 +4,8 @@
import { base, config, util } from './base.js';
import { ClipperLib } from '../ext/clip2.esm.js';
import { THREE } from '../ext/three.js';
import { newBounds } from './bounds.js';
import { newPoint } from './point.js';
import { newPoint, pointFromClipper } from './point.js';
import { polygons } from './polygons.js';
import { earcut } from '../geo/base.js';
@ -2044,7 +2043,7 @@ export class Polygon {
return res.map(array => {
let poly = newPolygon();
for (let pt of array) {
poly.push(base.pointFromClipper(pt, z));
poly.push(pointFromClipper(pt, z));
}
return poly;
});
@ -2374,7 +2373,7 @@ export function fromClipperPath(path, z) {
l = path.length;
while (i < l) {
// poly.push(newPoint(null,null,z,null,path[i++]));
poly.push(base.pointFromClipper(path[i++], z));
poly.push(pointFromClipper(path[i++], z));
}
return poly;
}