diff --git a/package.json b/package.json index 7156d5a4..0fc7cd86 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "grid-apps", - "version": "3.0.12D", + "version": "3.0.13D", "description": "grid.space 3d slice & modeling tools", "author": "Stewart Allen ", "license": "MIT", diff --git a/src/geo/polygons.js b/src/geo/polygons.js index b5094524..f2a09485 100644 --- a/src/geo/polygons.js +++ b/src/geo/polygons.js @@ -520,8 +520,6 @@ fill = numOrDefault(opts.fill, ClipperLib.PolyFillType.pftNonZero), join = numOrDefault(opts.join, ClipperLib.JoinType.jtMiter), type = numOrDefault(opts.type, ClipperLib.EndType.etClosedPolygon), - coff = new ClipperLib.ClipperOffset(opts.miter, opts.arc), - ctre = new ClipperLib.PolyTree(), // if dist is array with values, shift out next offset offs = Array.isArray(dist) ? (dist.length > 1 ? dist.shift() : dist[0]) : dist, mina = numOrDefault(opts.minArea, 0.1), @@ -530,6 +528,9 @@ if (opts.wasm && geo.wasm) { polys = geo.wasm.js.offset(polys, offs, zed); } else { + let coff = new ClipperLib.ClipperOffset(opts.miter, opts.arc), + ctre = new ClipperLib.PolyTree(); + // setup offset for (let poly of polys) { // convert to clipper format diff --git a/src/kiri.js b/src/kiri.js index 703a58bf..105f7a3b 100644 --- a/src/kiri.js +++ b/src/kiri.js @@ -6,7 +6,7 @@ if (!self.kiri) { self.kiri = { - beta: 3012, + beta: 3013, driver: {}, // driver modules loader: [] // module loading: array of functions }; diff --git a/src/license.js b/src/license.js index 0038bcc8..a257f335 100644 --- a/src/license.js +++ b/src/license.js @@ -3,7 +3,7 @@ let terms = { COPYRIGHT: "Copyright (C) Stewart Allen - All Rights Reserved", LICENSE: "See the license.md file included with the source distribution", - VERSION: "3.0.D12" + VERSION: "3.0.D13" }; if (typeof(module) === 'object') {