From a97eed694c773bfbc042bce324c264a45a58e746 Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Tue, 13 Jul 2021 21:08:01 -0400 Subject: [PATCH] fix bounds check for fingerprint compare --- notes.md | 1 - src/geo/bounds.js | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/notes.md b/notes.md index 18a0e280..16d0d45b 100644 --- a/notes.md +++ b/notes.md @@ -7,7 +7,6 @@ * `P` duplicate objects should share same slice data unless rotated or scaled * `P` allow selection to be decimated on demand (context menu?) -* `P` improve decimation speed: omit point conversion or use wasm * `P` explore widget vertex reloading / replacing (Onshape) (issue #48) * `P` move all persisted / workspace settings/data to IndexedDB (LS limitations) diff --git a/src/geo/bounds.js b/src/geo/bounds.js index 5cde101a..66ca02ce 100644 --- a/src/geo/bounds.js +++ b/src/geo/bounds.js @@ -62,7 +62,7 @@ * @returns {Number} absolute delta in x,y coordinate space */ PRO.delta = function(bounds) { - return + return 0 + Math.abs(this.minx - bounds.minx) + Math.abs(this.miny - bounds.miny) + Math.abs(this.maxx - bounds.maxx) +