geojs 1.15.3 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "geojs",
3
- "version": "1.15.3",
3
+ "version": "1.15.4",
4
4
  "description": "JavaScript Geo Visualization and Analysis Library",
5
5
  "homepage": "https://github.com/OpenGeoscience/geojs",
6
6
  "license": "Apache-2.0",
@@ -80,7 +80,7 @@ var webgl_polygonFeature = function (arg) {
80
80
  fillFunc, fillVal,
81
81
  uniformFunc, uniformVal, uniform,
82
82
  indices,
83
- items = [],
83
+ items = [], itemsk, itemsktri,
84
84
  target_gcs = m_this.gcs(),
85
85
  map_gcs = m_this.layer().map().gcs(),
86
86
  numPts = 0,
@@ -185,11 +185,13 @@ var webgl_polygonFeature = function (arg) {
185
185
  color = fillColorVal;
186
186
  fill = fillVal;
187
187
  for (k = 0; k < items.length; k += 1) {
188
- n = items[k].triangles.length;
189
- vertices = items[k].vertices;
190
- item = items[k].item;
191
- itemIndex = items[k].itemIndex;
192
- original = items[k].original;
188
+ itemsk = items[k];
189
+ itemsktri = itemsk.triangles;
190
+ n = itemsktri.length;
191
+ vertices = itemsk.vertices;
192
+ item = itemsk.item;
193
+ itemIndex = itemsk.itemIndex;
194
+ original = itemsk.original;
193
195
  uniform = uniformVal === undefined ? uniformFunc(item, itemIndex) : uniformVal;
194
196
  opacity = fillOpacityVal;
195
197
  if (uniform) {
@@ -206,9 +208,9 @@ var webgl_polygonFeature = function (arg) {
206
208
  if (!fill) {
207
209
  opacity = 0;
208
210
  }
209
- if (uniform && onlyStyle && items[k].uniform && items[k].color &&
210
- color.r === items[k].color.r && color.g === items[k].color.g &&
211
- color.b === items[k].color.b && opacity === items[k].opacity) {
211
+ if (uniform && onlyStyle && itemsk.uniform && itemsk.color &&
212
+ color.r === itemsk.color.r && color.g === itemsk.color.g &&
213
+ color.b === itemsk.color.b && opacity === itemsk.opacity) {
212
214
  d += n;
213
215
  d3 += n * 3;
214
216
  continue;
@@ -220,7 +222,7 @@ var webgl_polygonFeature = function (arg) {
220
222
  fillColor[d3 + 2] = color.b;
221
223
  fillOpacity[d] = opacity;
222
224
  } else {
223
- j = items[k].triangles[i] * 3;
225
+ j = itemsktri[i] * 3;
224
226
  if (!onlyStyle) {
225
227
  posBuf[d3] = vertices[j] - m_origin[0];
226
228
  posBuf[d3 + 1] = vertices[j + 1] - m_origin[1];
@@ -239,10 +241,10 @@ var webgl_polygonFeature = function (arg) {
239
241
  fillOpacity[d] = opacity;
240
242
  }
241
243
  }
242
- if (uniform || items[k].uniform) {
243
- items[k].uniform = uniform;
244
- items[k].color = color;
245
- items[k].opacity = opacity;
244
+ if (uniform || itemsk.uniform) {
245
+ itemsk.uniform = uniform;
246
+ itemsk.color = color;
247
+ itemsk.opacity = opacity;
246
248
  }
247
249
  }
248
250
  if (!onlyStyle) {