@math.gl/polygon
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -134,3 +134,3 @@ "use strict"; | ||
for (var i = 0; i < a.length; i++) { | ||
out[i] = (snap & 1) === i ? bbox[snap] : t * b[i] + (1 - t) * a[i]; | ||
out[i] = (snap & 1) === i ? bbox[snap] : t * (b[i] - a[i]) + a[i]; | ||
} | ||
@@ -137,0 +137,0 @@ |
@@ -118,3 +118,3 @@ import { push, copy, getPointAtIndex } from './utils'; | ||
for (let i = 0; i < a.length; i++) { | ||
out[i] = (snap & 1) === i ? bbox[snap] : t * b[i] + (1 - t) * a[i]; | ||
out[i] = (snap & 1) === i ? bbox[snap] : t * (b[i] - a[i]) + a[i]; | ||
} | ||
@@ -121,0 +121,0 @@ |
@@ -121,3 +121,3 @@ import { push, copy, getPointAtIndex } from './utils'; | ||
for (var i = 0; i < a.length; i++) { | ||
out[i] = (snap & 1) === i ? bbox[snap] : t * b[i] + (1 - t) * a[i]; | ||
out[i] = (snap & 1) === i ? bbox[snap] : t * (b[i] - a[i]) + a[i]; | ||
} | ||
@@ -124,0 +124,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"keywords": [ | ||
@@ -29,5 +29,5 @@ "webgl", | ||
"dependencies": { | ||
"@math.gl/core": "3.3.0" | ||
"@math.gl/core": "3.3.1" | ||
}, | ||
"gitHead": "58260e0261adb660955a22ff495e479f7b6cd347" | ||
"gitHead": "affaa0dcec01948f764e1cee4a68c5e84bc52b29" | ||
} |
@@ -159,3 +159,3 @@ /* | ||
for (let i = 0; i < a.length; i++) { | ||
out[i] = (snap & 1) === i ? bbox[snap] : t * b[i] + (1 - t) * a[i]; | ||
out[i] = (snap & 1) === i ? bbox[snap] : t * (b[i] - a[i]) + a[i]; | ||
} | ||
@@ -162,0 +162,0 @@ return out; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
226596
+ Added@math.gl/core@3.3.1(transitive)
- Removed@math.gl/core@3.3.0(transitive)
Updated@math.gl/core@3.3.1