geojs 1.15.2 → 1.15.4
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/geo.js +29 -19
- package/geo.lean.js +29 -19
- package/geo.lean.min.js +3 -3
- package/geo.min.js +3 -3
- package/package.json +1 -1
- package/src/webgl/lineFeature.js +9 -6
- package/src/webgl/polygonFeature.js +16 -14
package/geo.js
CHANGED
|
@@ -26491,7 +26491,7 @@ module.exports = svg_tileLayer;
|
|
|
26491
26491
|
* @constant
|
|
26492
26492
|
* @type {string}
|
|
26493
26493
|
*/
|
|
26494
|
-
module.exports = "1.15.
|
|
26494
|
+
module.exports = "1.15.4";
|
|
26495
26495
|
|
|
26496
26496
|
/***/ }),
|
|
26497
26497
|
|
|
@@ -71282,6 +71282,8 @@ var _webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
71282
71282
|
uniformFunc = m_this.style.get('uniformLine'),
|
|
71283
71283
|
uniformVal,
|
|
71284
71284
|
uniform,
|
|
71285
|
+
drop,
|
|
71286
|
+
skipped,
|
|
71285
71287
|
order = m_this.featureVertices(),
|
|
71286
71288
|
orderk0,
|
|
71287
71289
|
orderLen = order.length,
|
|
@@ -71356,10 +71358,13 @@ var _webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
71356
71358
|
position = transform.transformCoordinates(target_gcs, map_gcs, position, 3);
|
|
71357
71359
|
m_origin = new Float32Array(m_this.style.get('origin')(position));
|
|
71358
71360
|
if (m_origin[0] || m_origin[1] || m_origin[2]) {
|
|
71361
|
+
var o0 = m_origin[0],
|
|
71362
|
+
o1 = m_origin[1],
|
|
71363
|
+
o2 = m_origin[2];
|
|
71359
71364
|
for (i = 0; i < position.length; i += 3) {
|
|
71360
|
-
position[i] -=
|
|
71361
|
-
position[i + 1] -=
|
|
71362
|
-
position[i + 2] -=
|
|
71365
|
+
position[i] -= o0;
|
|
71366
|
+
position[i + 1] -= o1;
|
|
71367
|
+
position[i + 2] -= o2;
|
|
71363
71368
|
}
|
|
71364
71369
|
}
|
|
71365
71370
|
m_modelViewUniform.setOrigin(m_origin);
|
|
@@ -71399,11 +71404,12 @@ var _webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
71399
71404
|
continue;
|
|
71400
71405
|
}
|
|
71401
71406
|
uniform = uniformVal === undefined ? uniformFunc(lineItem, i) : uniformVal;
|
|
71407
|
+
drop = uniform === 'drop';
|
|
71402
71408
|
d = data[i];
|
|
71403
71409
|
closedVal = closed[i];
|
|
71404
71410
|
firstPosIdx3 = posIdx3;
|
|
71405
71411
|
maxj = lineItem.length + (closedVal === 2 ? 1 : 0);
|
|
71406
|
-
|
|
71412
|
+
skipped = 0;
|
|
71407
71413
|
for (j = 0; j < maxj; j += 1, posIdx3 += 3) {
|
|
71408
71414
|
lidx = j;
|
|
71409
71415
|
if (j === lineItem.length) {
|
|
@@ -71460,14 +71466,14 @@ var _webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
71460
71466
|
}
|
|
71461
71467
|
}
|
|
71462
71468
|
if (j) {
|
|
71463
|
-
if (
|
|
71469
|
+
if (drop && j > 1 && position[vert[0].pos] === position[vert[1].pos] && position[vert[0].pos + 1] === position[vert[1].pos + 1]) {
|
|
71464
71470
|
skipped += 1;
|
|
71465
71471
|
continue;
|
|
71466
71472
|
}
|
|
71467
71473
|
/* zero out the z position. This can be changed if we handle it in
|
|
71468
71474
|
* the shader. */
|
|
71469
71475
|
for (k = 0; k < orderLen; k += 1, dest += 1, dest3 += 3) {
|
|
71470
|
-
if (
|
|
71476
|
+
if (drop && vert[0].strokeOpacity <= 0 && vert[1].strokeOpacity <= 0) {
|
|
71471
71477
|
strokeOpacityBuf[dest] = -1;
|
|
71472
71478
|
continue;
|
|
71473
71479
|
}
|
|
@@ -96222,6 +96228,8 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
96222
96228
|
uniform,
|
|
96223
96229
|
indices,
|
|
96224
96230
|
items = [],
|
|
96231
|
+
itemsk,
|
|
96232
|
+
itemsktri,
|
|
96225
96233
|
target_gcs = m_this.gcs(),
|
|
96226
96234
|
map_gcs = m_this.layer().map().gcs(),
|
|
96227
96235
|
numPts = 0,
|
|
@@ -96335,11 +96343,13 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
96335
96343
|
color = fillColorVal;
|
|
96336
96344
|
fill = fillVal;
|
|
96337
96345
|
for (k = 0; k < items.length; k += 1) {
|
|
96338
|
-
|
|
96339
|
-
|
|
96340
|
-
|
|
96341
|
-
|
|
96342
|
-
|
|
96346
|
+
itemsk = items[k];
|
|
96347
|
+
itemsktri = itemsk.triangles;
|
|
96348
|
+
n = itemsktri.length;
|
|
96349
|
+
vertices = itemsk.vertices;
|
|
96350
|
+
item = itemsk.item;
|
|
96351
|
+
itemIndex = itemsk.itemIndex;
|
|
96352
|
+
original = itemsk.original;
|
|
96343
96353
|
uniform = uniformVal === undefined ? uniformFunc(item, itemIndex) : uniformVal;
|
|
96344
96354
|
opacity = fillOpacityVal;
|
|
96345
96355
|
if (uniform) {
|
|
@@ -96356,7 +96366,7 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
96356
96366
|
if (!fill) {
|
|
96357
96367
|
opacity = 0;
|
|
96358
96368
|
}
|
|
96359
|
-
if (uniform && onlyStyle &&
|
|
96369
|
+
if (uniform && onlyStyle && itemsk.uniform && itemsk.color && color.r === itemsk.color.r && color.g === itemsk.color.g && color.b === itemsk.color.b && opacity === itemsk.opacity) {
|
|
96360
96370
|
d += n;
|
|
96361
96371
|
d3 += n * 3;
|
|
96362
96372
|
continue;
|
|
@@ -96368,7 +96378,7 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
96368
96378
|
fillColor[d3 + 2] = color.b;
|
|
96369
96379
|
fillOpacity[d] = opacity;
|
|
96370
96380
|
} else {
|
|
96371
|
-
j =
|
|
96381
|
+
j = itemsktri[i] * 3;
|
|
96372
96382
|
if (!onlyStyle) {
|
|
96373
96383
|
posBuf[d3] = vertices[j] - m_origin[0];
|
|
96374
96384
|
posBuf[d3 + 1] = vertices[j + 1] - m_origin[1];
|
|
@@ -96387,10 +96397,10 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
96387
96397
|
fillOpacity[d] = opacity;
|
|
96388
96398
|
}
|
|
96389
96399
|
}
|
|
96390
|
-
if (uniform ||
|
|
96391
|
-
|
|
96392
|
-
|
|
96393
|
-
|
|
96400
|
+
if (uniform || itemsk.uniform) {
|
|
96401
|
+
itemsk.uniform = uniform;
|
|
96402
|
+
itemsk.color = color;
|
|
96403
|
+
itemsk.opacity = opacity;
|
|
96394
96404
|
}
|
|
96395
96405
|
}
|
|
96396
96406
|
if (!onlyStyle) {
|
|
@@ -98031,7 +98041,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
|
|
|
98031
98041
|
* @constant
|
|
98032
98042
|
* @type {string}
|
|
98033
98043
|
*/
|
|
98034
|
-
module.exports = "
|
|
98044
|
+
module.exports = "da35de4852244121d7bfa904a6a1f9b5ab213a18";
|
|
98035
98045
|
|
|
98036
98046
|
/***/ }),
|
|
98037
98047
|
|
package/geo.lean.js
CHANGED
|
@@ -23500,7 +23500,7 @@ module.exports = svg_tileLayer;
|
|
|
23500
23500
|
* @constant
|
|
23501
23501
|
* @type {string}
|
|
23502
23502
|
*/
|
|
23503
|
-
module.exports = "1.15.
|
|
23503
|
+
module.exports = "1.15.4";
|
|
23504
23504
|
|
|
23505
23505
|
/***/ }),
|
|
23506
23506
|
|
|
@@ -43458,6 +43458,8 @@ var _webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
43458
43458
|
uniformFunc = m_this.style.get('uniformLine'),
|
|
43459
43459
|
uniformVal,
|
|
43460
43460
|
uniform,
|
|
43461
|
+
drop,
|
|
43462
|
+
skipped,
|
|
43461
43463
|
order = m_this.featureVertices(),
|
|
43462
43464
|
orderk0,
|
|
43463
43465
|
orderLen = order.length,
|
|
@@ -43532,10 +43534,13 @@ var _webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
43532
43534
|
position = transform.transformCoordinates(target_gcs, map_gcs, position, 3);
|
|
43533
43535
|
m_origin = new Float32Array(m_this.style.get('origin')(position));
|
|
43534
43536
|
if (m_origin[0] || m_origin[1] || m_origin[2]) {
|
|
43537
|
+
var o0 = m_origin[0],
|
|
43538
|
+
o1 = m_origin[1],
|
|
43539
|
+
o2 = m_origin[2];
|
|
43535
43540
|
for (i = 0; i < position.length; i += 3) {
|
|
43536
|
-
position[i] -=
|
|
43537
|
-
position[i + 1] -=
|
|
43538
|
-
position[i + 2] -=
|
|
43541
|
+
position[i] -= o0;
|
|
43542
|
+
position[i + 1] -= o1;
|
|
43543
|
+
position[i + 2] -= o2;
|
|
43539
43544
|
}
|
|
43540
43545
|
}
|
|
43541
43546
|
m_modelViewUniform.setOrigin(m_origin);
|
|
@@ -43575,11 +43580,12 @@ var _webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
43575
43580
|
continue;
|
|
43576
43581
|
}
|
|
43577
43582
|
uniform = uniformVal === undefined ? uniformFunc(lineItem, i) : uniformVal;
|
|
43583
|
+
drop = uniform === 'drop';
|
|
43578
43584
|
d = data[i];
|
|
43579
43585
|
closedVal = closed[i];
|
|
43580
43586
|
firstPosIdx3 = posIdx3;
|
|
43581
43587
|
maxj = lineItem.length + (closedVal === 2 ? 1 : 0);
|
|
43582
|
-
|
|
43588
|
+
skipped = 0;
|
|
43583
43589
|
for (j = 0; j < maxj; j += 1, posIdx3 += 3) {
|
|
43584
43590
|
lidx = j;
|
|
43585
43591
|
if (j === lineItem.length) {
|
|
@@ -43636,14 +43642,14 @@ var _webgl_lineFeature = function webgl_lineFeature(arg) {
|
|
|
43636
43642
|
}
|
|
43637
43643
|
}
|
|
43638
43644
|
if (j) {
|
|
43639
|
-
if (
|
|
43645
|
+
if (drop && j > 1 && position[vert[0].pos] === position[vert[1].pos] && position[vert[0].pos + 1] === position[vert[1].pos + 1]) {
|
|
43640
43646
|
skipped += 1;
|
|
43641
43647
|
continue;
|
|
43642
43648
|
}
|
|
43643
43649
|
/* zero out the z position. This can be changed if we handle it in
|
|
43644
43650
|
* the shader. */
|
|
43645
43651
|
for (k = 0; k < orderLen; k += 1, dest += 1, dest3 += 3) {
|
|
43646
|
-
if (
|
|
43652
|
+
if (drop && vert[0].strokeOpacity <= 0 && vert[1].strokeOpacity <= 0) {
|
|
43647
43653
|
strokeOpacityBuf[dest] = -1;
|
|
43648
43654
|
continue;
|
|
43649
43655
|
}
|
|
@@ -68408,6 +68414,8 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
68408
68414
|
uniform,
|
|
68409
68415
|
indices,
|
|
68410
68416
|
items = [],
|
|
68417
|
+
itemsk,
|
|
68418
|
+
itemsktri,
|
|
68411
68419
|
target_gcs = m_this.gcs(),
|
|
68412
68420
|
map_gcs = m_this.layer().map().gcs(),
|
|
68413
68421
|
numPts = 0,
|
|
@@ -68521,11 +68529,13 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
68521
68529
|
color = fillColorVal;
|
|
68522
68530
|
fill = fillVal;
|
|
68523
68531
|
for (k = 0; k < items.length; k += 1) {
|
|
68524
|
-
|
|
68525
|
-
|
|
68526
|
-
|
|
68527
|
-
|
|
68528
|
-
|
|
68532
|
+
itemsk = items[k];
|
|
68533
|
+
itemsktri = itemsk.triangles;
|
|
68534
|
+
n = itemsktri.length;
|
|
68535
|
+
vertices = itemsk.vertices;
|
|
68536
|
+
item = itemsk.item;
|
|
68537
|
+
itemIndex = itemsk.itemIndex;
|
|
68538
|
+
original = itemsk.original;
|
|
68529
68539
|
uniform = uniformVal === undefined ? uniformFunc(item, itemIndex) : uniformVal;
|
|
68530
68540
|
opacity = fillOpacityVal;
|
|
68531
68541
|
if (uniform) {
|
|
@@ -68542,7 +68552,7 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
68542
68552
|
if (!fill) {
|
|
68543
68553
|
opacity = 0;
|
|
68544
68554
|
}
|
|
68545
|
-
if (uniform && onlyStyle &&
|
|
68555
|
+
if (uniform && onlyStyle && itemsk.uniform && itemsk.color && color.r === itemsk.color.r && color.g === itemsk.color.g && color.b === itemsk.color.b && opacity === itemsk.opacity) {
|
|
68546
68556
|
d += n;
|
|
68547
68557
|
d3 += n * 3;
|
|
68548
68558
|
continue;
|
|
@@ -68554,7 +68564,7 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
68554
68564
|
fillColor[d3 + 2] = color.b;
|
|
68555
68565
|
fillOpacity[d] = opacity;
|
|
68556
68566
|
} else {
|
|
68557
|
-
j =
|
|
68567
|
+
j = itemsktri[i] * 3;
|
|
68558
68568
|
if (!onlyStyle) {
|
|
68559
68569
|
posBuf[d3] = vertices[j] - m_origin[0];
|
|
68560
68570
|
posBuf[d3 + 1] = vertices[j + 1] - m_origin[1];
|
|
@@ -68573,10 +68583,10 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
|
|
|
68573
68583
|
fillOpacity[d] = opacity;
|
|
68574
68584
|
}
|
|
68575
68585
|
}
|
|
68576
|
-
if (uniform ||
|
|
68577
|
-
|
|
68578
|
-
|
|
68579
|
-
|
|
68586
|
+
if (uniform || itemsk.uniform) {
|
|
68587
|
+
itemsk.uniform = uniform;
|
|
68588
|
+
itemsk.color = color;
|
|
68589
|
+
itemsk.opacity = opacity;
|
|
68580
68590
|
}
|
|
68581
68591
|
}
|
|
68582
68592
|
if (!onlyStyle) {
|
|
@@ -70217,7 +70227,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
|
|
|
70217
70227
|
* @constant
|
|
70218
70228
|
* @type {string}
|
|
70219
70229
|
*/
|
|
70220
|
-
module.exports = "
|
|
70230
|
+
module.exports = "da35de4852244121d7bfa904a6a1f9b5ab213a18";
|
|
70221
70231
|
|
|
70222
70232
|
/***/ }),
|
|
70223
70233
|
|