add clean and simplify to wasm offset
This commit is contained in:
parent
87642e8cf3
commit
2f2cfbc165
4 changed files with 15 additions and 9 deletions
|
|
@ -526,7 +526,7 @@
|
|||
zed = opts.z || 0;
|
||||
|
||||
if (opts.wasm && geo.wasm) {
|
||||
polys = geo.wasm.js.offset(polys, offs, zed);
|
||||
polys = geo.wasm.js.offset(polys, offs, zed, clean ? CONF.clipperClean : 0, simple ? 1 : 0);
|
||||
} else {
|
||||
let coff = new ClipperLib.ClipperOffset(opts.miter, opts.arc),
|
||||
ctre = new ClipperLib.PolyTree();
|
||||
|
|
|
|||
Loading…
Reference in a new issue