geojs 1.8.8 → 1.8.9
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/CHANGELOG.md +1 -1
- package/geo.js +7 -15
- package/geo.lean.js +7 -15
- package/geo.lean.min.js +1 -1
- package/geo.min.js +1 -1
- package/package.json +1 -1
- package/src/webgl/lineFeature.js +2 -5
- package/src/webgl/polygonFeature.js +8 -11
package/CHANGELOG.md
CHANGED
package/geo.js
CHANGED
|
@@ -27034,7 +27034,7 @@ module.exports = sceneObject;
|
|
|
27034
27034
|
* @constant
|
|
27035
27035
|
* @type {string}
|
|
27036
27036
|
*/
|
|
27037
|
-
module.exports = "
|
|
27037
|
+
module.exports = "eacf9ad316c55bd4e941894ac51f0071b59d67f7";
|
|
27038
27038
|
|
|
27039
27039
|
/***/ }),
|
|
27040
27040
|
|
|
@@ -39556,7 +39556,7 @@ module.exports = vectorFeature;
|
|
|
39556
39556
|
* @constant
|
|
39557
39557
|
* @type {string}
|
|
39558
39558
|
*/
|
|
39559
|
-
module.exports = "1.8.
|
|
39559
|
+
module.exports = "1.8.9";
|
|
39560
39560
|
|
|
39561
39561
|
/***/ }),
|
|
39562
39562
|
|
|
@@ -40789,7 +40789,6 @@ var webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
40789
40789
|
v = vert[1],
|
|
40790
40790
|
target_gcs = m_this.gcs(),
|
|
40791
40791
|
map_gcs = m_this.layer().map().gcs(),
|
|
40792
|
-
simpleInverse = transform.onlyInvertedY(target_gcs, map_gcs),
|
|
40793
40792
|
pos,
|
|
40794
40793
|
posIdx3,
|
|
40795
40794
|
firstpos,
|
|
@@ -40871,7 +40870,7 @@ var webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
40871
40870
|
for (j = 0; j < lineItem.length; j += 1) {
|
|
40872
40871
|
pos = posFunc ? posFunc(lineItem[j], j, d, i) : lineItem[j];
|
|
40873
40872
|
position.push(pos.x);
|
|
40874
|
-
position.push(
|
|
40873
|
+
position.push(pos.y);
|
|
40875
40874
|
position.push(pos.z || 0.0);
|
|
40876
40875
|
|
|
40877
40876
|
if (!j) {
|
|
@@ -40894,10 +40893,7 @@ var webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
40894
40893
|
}
|
|
40895
40894
|
}
|
|
40896
40895
|
|
|
40897
|
-
|
|
40898
|
-
position = transform.transformCoordinates(target_gcs, map_gcs, position, 3);
|
|
40899
|
-
}
|
|
40900
|
-
|
|
40896
|
+
position = transform.transformCoordinates(target_gcs, map_gcs, position, 3);
|
|
40901
40897
|
m_origin = new Float32Array(m_this.style.get('origin')(position));
|
|
40902
40898
|
|
|
40903
40899
|
if (m_origin[0] || m_origin[1] || m_origin[2]) {
|
|
@@ -43421,7 +43417,6 @@ var webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
43421
43417
|
items = [],
|
|
43422
43418
|
target_gcs = m_this.gcs(),
|
|
43423
43419
|
map_gcs = m_this.layer().map().gcs(),
|
|
43424
|
-
simpleInverse = transform.onlyInvertedY(target_gcs, map_gcs),
|
|
43425
43420
|
numPts = 0,
|
|
43426
43421
|
geom = m_mapper.geometryData(),
|
|
43427
43422
|
color,
|
|
@@ -43474,7 +43469,7 @@ var webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
43474
43469
|
for (i = d3 = 0; i < outer.length; i += 1, d3 += 3) {
|
|
43475
43470
|
c = posFunc ? posFunc(outer[i], i, item, itemIndex) : outer[i];
|
|
43476
43471
|
geometry[d3] = c.x;
|
|
43477
|
-
geometry[d3 + 1] =
|
|
43472
|
+
geometry[d3 + 1] = c.y; // ignore the z values until we support them
|
|
43478
43473
|
|
|
43479
43474
|
geometry[d3 + 2] = 0; // c.z || 0;
|
|
43480
43475
|
}
|
|
@@ -43498,7 +43493,7 @@ var webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
43498
43493
|
for (i = 0; i < hole.length; i += 1, d3 += 3) {
|
|
43499
43494
|
c = posFunc ? posFunc(hole[i], i, item, itemIndex) : hole[i];
|
|
43500
43495
|
geometry.vertices[d3] = c.x;
|
|
43501
|
-
geometry.vertices[d3 + 1] =
|
|
43496
|
+
geometry.vertices[d3 + 1] = c.y; // ignore the z values until we support them
|
|
43502
43497
|
|
|
43503
43498
|
geometry.vertices[d3 + 2] = 0; // c.z || 0;
|
|
43504
43499
|
}
|
|
@@ -43506,10 +43501,7 @@ var webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
43506
43501
|
} // transform to map gcs
|
|
43507
43502
|
|
|
43508
43503
|
|
|
43509
|
-
|
|
43510
|
-
geometry.vertices = transform.transformCoordinates(target_gcs, map_gcs, geometry.vertices, geometry.dimensions);
|
|
43511
|
-
}
|
|
43512
|
-
|
|
43504
|
+
geometry.vertices = transform.transformCoordinates(target_gcs, map_gcs, geometry.vertices, geometry.dimensions);
|
|
43513
43505
|
record = {
|
|
43514
43506
|
// triangulate
|
|
43515
43507
|
triangles: earcut(geometry.vertices, geometry.holes, geometry.dimensions),
|
package/geo.lean.js
CHANGED
|
@@ -27034,7 +27034,7 @@ module.exports = sceneObject;
|
|
|
27034
27034
|
* @constant
|
|
27035
27035
|
* @type {string}
|
|
27036
27036
|
*/
|
|
27037
|
-
module.exports = "
|
|
27037
|
+
module.exports = "eacf9ad316c55bd4e941894ac51f0071b59d67f7";
|
|
27038
27038
|
|
|
27039
27039
|
/***/ }),
|
|
27040
27040
|
|
|
@@ -39556,7 +39556,7 @@ module.exports = vectorFeature;
|
|
|
39556
39556
|
* @constant
|
|
39557
39557
|
* @type {string}
|
|
39558
39558
|
*/
|
|
39559
|
-
module.exports = "1.8.
|
|
39559
|
+
module.exports = "1.8.9";
|
|
39560
39560
|
|
|
39561
39561
|
/***/ }),
|
|
39562
39562
|
|
|
@@ -40789,7 +40789,6 @@ var webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
40789
40789
|
v = vert[1],
|
|
40790
40790
|
target_gcs = m_this.gcs(),
|
|
40791
40791
|
map_gcs = m_this.layer().map().gcs(),
|
|
40792
|
-
simpleInverse = transform.onlyInvertedY(target_gcs, map_gcs),
|
|
40793
40792
|
pos,
|
|
40794
40793
|
posIdx3,
|
|
40795
40794
|
firstpos,
|
|
@@ -40871,7 +40870,7 @@ var webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
40871
40870
|
for (j = 0; j < lineItem.length; j += 1) {
|
|
40872
40871
|
pos = posFunc ? posFunc(lineItem[j], j, d, i) : lineItem[j];
|
|
40873
40872
|
position.push(pos.x);
|
|
40874
|
-
position.push(
|
|
40873
|
+
position.push(pos.y);
|
|
40875
40874
|
position.push(pos.z || 0.0);
|
|
40876
40875
|
|
|
40877
40876
|
if (!j) {
|
|
@@ -40894,10 +40893,7 @@ var webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
40894
40893
|
}
|
|
40895
40894
|
}
|
|
40896
40895
|
|
|
40897
|
-
|
|
40898
|
-
position = transform.transformCoordinates(target_gcs, map_gcs, position, 3);
|
|
40899
|
-
}
|
|
40900
|
-
|
|
40896
|
+
position = transform.transformCoordinates(target_gcs, map_gcs, position, 3);
|
|
40901
40897
|
m_origin = new Float32Array(m_this.style.get('origin')(position));
|
|
40902
40898
|
|
|
40903
40899
|
if (m_origin[0] || m_origin[1] || m_origin[2]) {
|
|
@@ -43421,7 +43417,6 @@ var webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
43421
43417
|
items = [],
|
|
43422
43418
|
target_gcs = m_this.gcs(),
|
|
43423
43419
|
map_gcs = m_this.layer().map().gcs(),
|
|
43424
|
-
simpleInverse = transform.onlyInvertedY(target_gcs, map_gcs),
|
|
43425
43420
|
numPts = 0,
|
|
43426
43421
|
geom = m_mapper.geometryData(),
|
|
43427
43422
|
color,
|
|
@@ -43474,7 +43469,7 @@ var webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
43474
43469
|
for (i = d3 = 0; i < outer.length; i += 1, d3 += 3) {
|
|
43475
43470
|
c = posFunc ? posFunc(outer[i], i, item, itemIndex) : outer[i];
|
|
43476
43471
|
geometry[d3] = c.x;
|
|
43477
|
-
geometry[d3 + 1] =
|
|
43472
|
+
geometry[d3 + 1] = c.y; // ignore the z values until we support them
|
|
43478
43473
|
|
|
43479
43474
|
geometry[d3 + 2] = 0; // c.z || 0;
|
|
43480
43475
|
}
|
|
@@ -43498,7 +43493,7 @@ var webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
43498
43493
|
for (i = 0; i < hole.length; i += 1, d3 += 3) {
|
|
43499
43494
|
c = posFunc ? posFunc(hole[i], i, item, itemIndex) : hole[i];
|
|
43500
43495
|
geometry.vertices[d3] = c.x;
|
|
43501
|
-
geometry.vertices[d3 + 1] =
|
|
43496
|
+
geometry.vertices[d3 + 1] = c.y; // ignore the z values until we support them
|
|
43502
43497
|
|
|
43503
43498
|
geometry.vertices[d3 + 2] = 0; // c.z || 0;
|
|
43504
43499
|
}
|
|
@@ -43506,10 +43501,7 @@ var webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
43506
43501
|
} // transform to map gcs
|
|
43507
43502
|
|
|
43508
43503
|
|
|
43509
|
-
|
|
43510
|
-
geometry.vertices = transform.transformCoordinates(target_gcs, map_gcs, geometry.vertices, geometry.dimensions);
|
|
43511
|
-
}
|
|
43512
|
-
|
|
43504
|
+
geometry.vertices = transform.transformCoordinates(target_gcs, map_gcs, geometry.vertices, geometry.dimensions);
|
|
43513
43505
|
record = {
|
|
43514
43506
|
// triangulate
|
|
43515
43507
|
triangles: earcut(geometry.vertices, geometry.holes, geometry.dimensions),
|