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/geo.js +17 -13
- package/geo.lean.js +17 -13
- package/geo.lean.min.js +2 -2
- package/geo.min.js +2 -2
- package/package.json +1 -1
- package/src/webgl/polygonFeature.js +16 -14
package/package.json
CHANGED
|
@@ -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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
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 &&
|
|
210
|
-
color.r ===
|
|
211
|
-
color.b ===
|
|
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 =
|
|
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 ||
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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) {
|