@pirireis/webglobeplugins 0.6.38-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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "0.6.38-a",
3
+ "version": "0.6.39-a",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT"
@@ -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
  }
@@ -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
  */
@@ -111,6 +111,12 @@ class RingAccount {
111
111
  });
112
112
 
113
113
  }
114
+
115
+ updateAllText(textWriterObjs, dataPreAdaptor = null) {
116
+ this._centeralMap.forEach((center) => {
117
+ this.textUpdate(center.centerID, textWriterObjs, dataPreAdaptor);
118
+ });
119
+ }
114
120
  }
115
121
 
116
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