diff --git a/src/Polygons.ts b/src/Polygons.ts index 07e7a5f5..6a5ec517 100644 --- a/src/Polygons.ts +++ b/src/Polygons.ts @@ -427,7 +427,7 @@ export class Polygons extends Array { invertSelection() { const oldSelection = this.selection - return this.selectBy((polygon, idx) => { + return this.selectAll().selectBy((polygon, idx) => { return !oldSelection.includes(idx) }) }