geojs 1.15.3 → 1.15.5

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.
@@ -18,7 +18,7 @@ jobs:
18
18
  runs-on: ubuntu-latest
19
19
  steps:
20
20
  - uses: actions/checkout@v5
21
- - uses: actions/setup-node@v5
21
+ - uses: actions/setup-node@v6
22
22
  with:
23
23
  node-version: '20'
24
24
  - uses: browser-actions/setup-firefox@latest
@@ -45,7 +45,7 @@ jobs:
45
45
  python3 tests/runners/baseline_images.py -cevb _build
46
46
  - name: Upload test images on failure
47
47
  if: ${{ failure() }}
48
- uses: actions/upload-artifact@v4
48
+ uses: actions/upload-artifact@v5
49
49
  with:
50
50
  name: images
51
51
  path: |
@@ -53,7 +53,7 @@ jobs:
53
53
  _build/Baseline*tgz
54
54
  - name: Upload artifacts
55
55
  if: ${{ always() }}
56
- uses: actions/upload-artifact@v4
56
+ uses: actions/upload-artifact@v5
57
57
  with:
58
58
  name: dist
59
59
  path: |
@@ -61,7 +61,7 @@ jobs:
61
61
  dist/built
62
62
  - name: Upload built website
63
63
  if: ${{ success() }}
64
- uses: actions/upload-artifact@v4
64
+ uses: actions/upload-artifact@v5
65
65
  with:
66
66
  name: website
67
67
  path: |
@@ -71,7 +71,7 @@ jobs:
71
71
  steps:
72
72
  - uses: actions/checkout@v5
73
73
  # Don't pin version to test with the latest common version
74
- - uses: actions/setup-node@v5
74
+ - uses: actions/setup-node@v6
75
75
  with:
76
76
  node-version: 'lts/*'
77
77
  - run: npm --version && node --version
@@ -95,7 +95,7 @@ jobs:
95
95
  runs-on: ubuntu-latest
96
96
  steps:
97
97
  - name: Import artifacts
98
- uses: actions/download-artifact@v5
98
+ uses: actions/download-artifact@v6
99
99
  with:
100
100
  name: website
101
101
  path: website/public
@@ -110,14 +110,14 @@ jobs:
110
110
  runs-on: ubuntu-latest
111
111
  steps:
112
112
  - uses: actions/checkout@v5
113
- - uses: actions/setup-node@v5
113
+ - uses: actions/setup-node@v6
114
114
  with:
115
115
  node-version: 'lts/*'
116
116
  - run: sudo apt-get update
117
117
  - run: sudo apt-get install --yes --no-install-recommends optipng imagemagick build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev liblzma-dev
118
118
  - run: npm ci
119
119
  - name: Import artifacts
120
- uses: actions/download-artifact@v5
120
+ uses: actions/download-artifact@v6
121
121
  with:
122
122
  name: dist
123
123
  path: dist
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.3";
26494
+ module.exports = "1.15.5";
26495
26495
 
26496
26496
  /***/ }),
26497
26497
 
@@ -91919,6 +91919,9 @@ var _webgl_pixelmapFeature = function webgl_pixelmapFeature(arg) {
91919
91919
  context.drawImage(img, x, y, 1, 1, 0, 0, 1, 1);
91920
91920
  var pixel = context.getImageData(0, 0, 1, 1).data;
91921
91921
  var idx = pixel[0] + pixel[1] * 256 + pixel[2] * 256 * 256;
91922
+ if (idx === 16777215) {
91923
+ continue;
91924
+ }
91922
91925
  result = {
91923
91926
  index: [idx],
91924
91927
  found: [m_this.data()[idx]]
@@ -92073,7 +92076,8 @@ var util = __webpack_require__(642);
92073
92076
  * @extends geo.feature.spec
92074
92077
  * @property {string|function|HTMLImageElement} [url] URL of a pixel map or an
92075
92078
  * HTML Image element. The rgb data is interpreted as an index of the form
92076
- * 0xbbggrr. The alpha channel is ignored.
92079
+ * 0xbbggrr. The alpha channel is ignored. An index of 0xffffff is treated
92080
+ * as a no-data value for hit-tests.
92077
92081
  * @property {geo.geoColor|function} [color] The color that should be used
92078
92082
  * for each data element. Data elements correspond to the indices in the
92079
92083
  * pixel map. If an index is larger than the number of data elements, it will
@@ -96228,6 +96232,8 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
96228
96232
  uniform,
96229
96233
  indices,
96230
96234
  items = [],
96235
+ itemsk,
96236
+ itemsktri,
96231
96237
  target_gcs = m_this.gcs(),
96232
96238
  map_gcs = m_this.layer().map().gcs(),
96233
96239
  numPts = 0,
@@ -96341,11 +96347,13 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
96341
96347
  color = fillColorVal;
96342
96348
  fill = fillVal;
96343
96349
  for (k = 0; k < items.length; k += 1) {
96344
- n = items[k].triangles.length;
96345
- vertices = items[k].vertices;
96346
- item = items[k].item;
96347
- itemIndex = items[k].itemIndex;
96348
- original = items[k].original;
96350
+ itemsk = items[k];
96351
+ itemsktri = itemsk.triangles;
96352
+ n = itemsktri.length;
96353
+ vertices = itemsk.vertices;
96354
+ item = itemsk.item;
96355
+ itemIndex = itemsk.itemIndex;
96356
+ original = itemsk.original;
96349
96357
  uniform = uniformVal === undefined ? uniformFunc(item, itemIndex) : uniformVal;
96350
96358
  opacity = fillOpacityVal;
96351
96359
  if (uniform) {
@@ -96362,7 +96370,7 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
96362
96370
  if (!fill) {
96363
96371
  opacity = 0;
96364
96372
  }
96365
- if (uniform && onlyStyle && items[k].uniform && items[k].color && color.r === items[k].color.r && color.g === items[k].color.g && color.b === items[k].color.b && opacity === items[k].opacity) {
96373
+ 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) {
96366
96374
  d += n;
96367
96375
  d3 += n * 3;
96368
96376
  continue;
@@ -96374,7 +96382,7 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
96374
96382
  fillColor[d3 + 2] = color.b;
96375
96383
  fillOpacity[d] = opacity;
96376
96384
  } else {
96377
- j = items[k].triangles[i] * 3;
96385
+ j = itemsktri[i] * 3;
96378
96386
  if (!onlyStyle) {
96379
96387
  posBuf[d3] = vertices[j] - m_origin[0];
96380
96388
  posBuf[d3 + 1] = vertices[j + 1] - m_origin[1];
@@ -96393,10 +96401,10 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
96393
96401
  fillOpacity[d] = opacity;
96394
96402
  }
96395
96403
  }
96396
- if (uniform || items[k].uniform) {
96397
- items[k].uniform = uniform;
96398
- items[k].color = color;
96399
- items[k].opacity = opacity;
96404
+ if (uniform || itemsk.uniform) {
96405
+ itemsk.uniform = uniform;
96406
+ itemsk.color = color;
96407
+ itemsk.opacity = opacity;
96400
96408
  }
96401
96409
  }
96402
96410
  if (!onlyStyle) {
@@ -98037,7 +98045,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
98037
98045
  * @constant
98038
98046
  * @type {string}
98039
98047
  */
98040
- module.exports = "36f5efe9fe98ff0e952442662614c39f2e2ec9c3";
98048
+ module.exports = "7e5d31a4b54e0b11df0181c56998d36dd8b8988d";
98041
98049
 
98042
98050
  /***/ }),
98043
98051
 
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.3";
23503
+ module.exports = "1.15.5";
23504
23504
 
23505
23505
  /***/ }),
23506
23506
 
@@ -64105,6 +64105,9 @@ var _webgl_pixelmapFeature = function webgl_pixelmapFeature(arg) {
64105
64105
  context.drawImage(img, x, y, 1, 1, 0, 0, 1, 1);
64106
64106
  var pixel = context.getImageData(0, 0, 1, 1).data;
64107
64107
  var idx = pixel[0] + pixel[1] * 256 + pixel[2] * 256 * 256;
64108
+ if (idx === 16777215) {
64109
+ continue;
64110
+ }
64108
64111
  result = {
64109
64112
  index: [idx],
64110
64113
  found: [m_this.data()[idx]]
@@ -64259,7 +64262,8 @@ var util = __webpack_require__(642);
64259
64262
  * @extends geo.feature.spec
64260
64263
  * @property {string|function|HTMLImageElement} [url] URL of a pixel map or an
64261
64264
  * HTML Image element. The rgb data is interpreted as an index of the form
64262
- * 0xbbggrr. The alpha channel is ignored.
64265
+ * 0xbbggrr. The alpha channel is ignored. An index of 0xffffff is treated
64266
+ * as a no-data value for hit-tests.
64263
64267
  * @property {geo.geoColor|function} [color] The color that should be used
64264
64268
  * for each data element. Data elements correspond to the indices in the
64265
64269
  * pixel map. If an index is larger than the number of data elements, it will
@@ -68414,6 +68418,8 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
68414
68418
  uniform,
68415
68419
  indices,
68416
68420
  items = [],
68421
+ itemsk,
68422
+ itemsktri,
68417
68423
  target_gcs = m_this.gcs(),
68418
68424
  map_gcs = m_this.layer().map().gcs(),
68419
68425
  numPts = 0,
@@ -68527,11 +68533,13 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
68527
68533
  color = fillColorVal;
68528
68534
  fill = fillVal;
68529
68535
  for (k = 0; k < items.length; k += 1) {
68530
- n = items[k].triangles.length;
68531
- vertices = items[k].vertices;
68532
- item = items[k].item;
68533
- itemIndex = items[k].itemIndex;
68534
- original = items[k].original;
68536
+ itemsk = items[k];
68537
+ itemsktri = itemsk.triangles;
68538
+ n = itemsktri.length;
68539
+ vertices = itemsk.vertices;
68540
+ item = itemsk.item;
68541
+ itemIndex = itemsk.itemIndex;
68542
+ original = itemsk.original;
68535
68543
  uniform = uniformVal === undefined ? uniformFunc(item, itemIndex) : uniformVal;
68536
68544
  opacity = fillOpacityVal;
68537
68545
  if (uniform) {
@@ -68548,7 +68556,7 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
68548
68556
  if (!fill) {
68549
68557
  opacity = 0;
68550
68558
  }
68551
- if (uniform && onlyStyle && items[k].uniform && items[k].color && color.r === items[k].color.r && color.g === items[k].color.g && color.b === items[k].color.b && opacity === items[k].opacity) {
68559
+ 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) {
68552
68560
  d += n;
68553
68561
  d3 += n * 3;
68554
68562
  continue;
@@ -68560,7 +68568,7 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
68560
68568
  fillColor[d3 + 2] = color.b;
68561
68569
  fillOpacity[d] = opacity;
68562
68570
  } else {
68563
- j = items[k].triangles[i] * 3;
68571
+ j = itemsktri[i] * 3;
68564
68572
  if (!onlyStyle) {
68565
68573
  posBuf[d3] = vertices[j] - m_origin[0];
68566
68574
  posBuf[d3 + 1] = vertices[j + 1] - m_origin[1];
@@ -68579,10 +68587,10 @@ var _webgl_polygonFeature = function webgl_polygonFeature(arg) {
68579
68587
  fillOpacity[d] = opacity;
68580
68588
  }
68581
68589
  }
68582
- if (uniform || items[k].uniform) {
68583
- items[k].uniform = uniform;
68584
- items[k].color = color;
68585
- items[k].opacity = opacity;
68590
+ if (uniform || itemsk.uniform) {
68591
+ itemsk.uniform = uniform;
68592
+ itemsk.color = color;
68593
+ itemsk.opacity = opacity;
68586
68594
  }
68587
68595
  }
68588
68596
  if (!onlyStyle) {
@@ -70223,7 +70231,7 @@ module.exports = "/* quadFeature Color fragment shader */\n\nvarying mediump vec
70223
70231
  * @constant
70224
70232
  * @type {string}
70225
70233
  */
70226
- module.exports = "36f5efe9fe98ff0e952442662614c39f2e2ec9c3";
70234
+ module.exports = "7e5d31a4b54e0b11df0181c56998d36dd8b8988d";
70227
70235
 
70228
70236
  /***/ }),
70229
70237