@pirireis/webglobeplugins 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT",
@@ -121,7 +121,7 @@ export class TerrainPolygonSemiPlugin {
121
121
  ...p,
122
122
  geometry: p.geometry.map((g) => ({
123
123
  ...g,
124
- vertices: g.vertices.map((v) => roundTo8(v)),
124
+ vertices: g.vertices.map((v) => roundTo7(v)),
125
125
  })),
126
126
  }));
127
127
  filteredPolygons = this._indexPolygonMap.insertBulk(filteredPolygons);
@@ -356,6 +356,6 @@ function getGlStates(gl) {
356
356
  texture2DArray: gl.getParameter(gl.TEXTURE_BINDING_2D_ARRAY),
357
357
  };
358
358
  }
359
- function roundTo8(n) {
360
- return Math.round(n * 1e8) / 1e8;
359
+ function roundTo7(n) {
360
+ return Math.round(n * 1e7) / 1e7;
361
361
  }