@pirireis/webglobeplugins 0.6.37-a → 0.6.39-a
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
|
@@ -132,7 +132,6 @@ class Logic {
|
|
|
132
132
|
vaoAttributeLoader(gl, buffer, 0, 3, stride, offset, divisor);
|
|
133
133
|
}
|
|
134
134
|
{
|
|
135
|
-
console.log("bigRadiusObj", bigRadiusObj);
|
|
136
135
|
const { buffer, stride = 0, offset = 0 } = bigRadiusObj;
|
|
137
136
|
vaoAttributeLoader(gl, buffer, 1, 1, stride, offset, divisor);
|
|
138
137
|
}
|
package/rangerings/plugin.js
CHANGED
|
@@ -223,6 +223,12 @@ class RangeRings {
|
|
|
223
223
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
updateText(textWriterIDs) {
|
|
227
|
+
const textWritersMap = textWriterGetOrThrow(this._textWritersMap, textWriterIDs);
|
|
228
|
+
this._ringAccount.updateAllText(textWritersMap, this._textDataPreAdaptor);
|
|
229
|
+
this.globe.DrawRender();
|
|
230
|
+
}
|
|
231
|
+
|
|
226
232
|
/**
|
|
227
233
|
* @method removeCenters @param { Array < { centerID } >} centerIDs
|
|
228
234
|
*/
|
|
@@ -26,14 +26,9 @@ class RingAccount {
|
|
|
26
26
|
ring.__identity__ = ringKeyMethod(centralItem.centerID, ring.ringID);
|
|
27
27
|
});
|
|
28
28
|
this._centeralMap.set(centralItem.centerID, {
|
|
29
|
-
|
|
30
|
-
long: centralItem.long,
|
|
31
|
-
lat: centralItem.lat,
|
|
32
|
-
rings: centralItem.rings,
|
|
29
|
+
...centralItem,
|
|
33
30
|
rgba: new Float32Array(centralItem.rgba),
|
|
34
|
-
|
|
35
|
-
textHide: centralItem.textHide,
|
|
36
|
-
stepAngle: centralItem.stepAngle,
|
|
31
|
+
|
|
37
32
|
});
|
|
38
33
|
}
|
|
39
34
|
|
|
@@ -116,6 +111,12 @@ class RingAccount {
|
|
|
116
111
|
});
|
|
117
112
|
|
|
118
113
|
}
|
|
114
|
+
|
|
115
|
+
updateAllText(textWriterObjs, dataPreAdaptor = null) {
|
|
116
|
+
this._centeralMap.forEach((center) => {
|
|
117
|
+
this.textUpdate(center.centerID, textWriterObjs, dataPreAdaptor);
|
|
118
|
+
});
|
|
119
|
+
}
|
|
119
120
|
}
|
|
120
121
|
|
|
121
122
|
|
|
@@ -159,7 +159,7 @@ export class ContextTextWriter3 {
|
|
|
159
159
|
const opacity = this.opacityAdaptor(item, id, container, properties);
|
|
160
160
|
const angle = this.angleAdaptor(item, id, container, properties);
|
|
161
161
|
const position = this.positionAdaptor(item, id, container, properties);
|
|
162
|
-
this.itemMap.set(key, { long: coords.long, lat: coords.lat, text, opacity, angle, payload: item, position });
|
|
162
|
+
this.itemMap.set(key, { long: coords.long, lat: coords.lat, text, opacity, angle, payload: item, position, properties: properties });
|
|
163
163
|
}
|
|
164
164
|
|
|
165
165
|
|