@pirireis/webglobeplugins 1.2.14 → 1.2.16

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.
@@ -388,9 +388,9 @@ export function partialTessellation(triangleMeta, limits, innerCuts, calculateRe
388
388
  // If this clipped segment is valid, generate points
389
389
  if (segMinLon < segMaxLon - 1e-9) {
390
390
  // Add the exact start and end points of the clipped segment
391
- if (inBBOX(p0.longLat, workBBox))
391
+ if (inBBOX(p0.longLat, workBBox) || triangleMeta.arcs[p0.arcIndex].realEdge)
392
392
  addPoint(p0.longLat, p0.vec, p0.arcIndex);
393
- if (inBBOX(p1.longLat, workBBox))
393
+ if (inBBOX(p1.longLat, workBBox) || triangleMeta.arcs[p1.arcIndex].realEdge)
394
394
  addPoint(p1.longLat, p1.vec, p1.arcIndex);
395
395
  // Add fill points *between* them
396
396
  let currentLon = Math.max(Math.ceil(segMinLon / lonStep) * lonStep, segMinLon);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "1.2.14",
3
+ "version": "1.2.16",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT",
@@ -78,24 +78,24 @@ export class WorkerContact {
78
78
  });
79
79
  }
80
80
  }
81
+ // TODO: DELETE
81
82
  function fineTuneBboxZooms(bboxZooms, tilt) {
82
83
  return;
83
84
  if (bboxZooms.length < 3)
84
85
  return;
85
- if (tilt > 45) {
86
+ if (tilt > 45 && bboxZooms[0].zoom > 15) {
86
87
  bboxZooms[1].zoom = bboxZooms[0].zoom;
87
88
  bboxZooms[2].zoom = bboxZooms[0].zoom;
88
- if (tilt > 65 && bboxZooms.length >= 4) {
89
+ if (tilt > 65 && bboxZooms.length >= 4 && bboxZooms[0].zoom > 17) {
89
90
  bboxZooms[3].zoom = bboxZooms[0].zoom;
90
91
  }
91
92
  }
92
- else if (bboxZooms[0].zoom > 12) {
93
- bboxZooms[1].zoom = bboxZooms[0].zoom;
94
- }
95
- else if (bboxZooms[0].zoom > 8 && bboxZooms[0].zoom <= 12) {
96
- bboxZooms[2].zoom = bboxZooms[1].zoom;
97
- bboxZooms[0].zoom = bboxZooms[1].zoom;
98
- }
93
+ // else if (bboxZooms[0].zoom > 12) {
94
+ // bboxZooms[1].zoom = bboxZooms[0].zoom;
95
+ // } else if (bboxZooms[0].zoom > 8 && bboxZooms[0].zoom <= 12) {
96
+ // bboxZooms[2].zoom = bboxZooms[1].zoom;
97
+ // bboxZooms[0].zoom = bboxZooms[1].zoom;
98
+ // }
99
99
  while (bboxZooms.length > 6) {
100
100
  bboxZooms.pop();
101
101
  }