@pirireis/webglobeplugins 0.6.40-a → 0.6.42-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.
@@ -13,9 +13,7 @@ export class ChainListMap {
13
13
  }
14
14
 
15
15
  getChain(chainKey) {
16
- if (!this._chainMap.has(chainKey)) this._chainMap.set(chainKey, []);
17
16
  return this._chainMap.get(chainKey);
18
-
19
17
  }
20
18
 
21
19
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "0.6.40-a",
3
+ "version": "0.6.42-a",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT"
@@ -83,12 +83,9 @@ class RangeRings {
83
83
  this._textWritersMap = textWritersMap;
84
84
  this._textDataPreAdaptor = textDataPreAdaptor;
85
85
  this._textWritersMap.forEach((textWriter) => textWriter.setKeyAdaptor((item) => item.__identity__));
86
-
87
86
  }
88
87
 
89
88
 
90
-
91
-
92
89
  // USER API
93
90
 
94
91
  /**
@@ -223,12 +220,19 @@ class RangeRings {
223
220
 
224
221
  }
225
222
 
223
+
224
+ /**
225
+ * Use on ContextTextWriter adaptor methods are updated
226
+ * */
226
227
  updateText(textWriterIDs) {
227
228
  const textWritersMap = textWriterGetOrThrow(this._textWritersMap, textWriterIDs);
228
229
  this._ringAccount.updateAllText(textWritersMap, this._textDataPreAdaptor);
229
230
  this.globe.DrawRender();
230
231
  }
231
232
 
233
+
234
+
235
+
232
236
  /**
233
237
  * @method removeCenters @param { Array < { centerID } >} centerIDs
234
238
  */
@@ -455,12 +455,7 @@ ${shaderfunctions.pixelXYToCartesian3DPoint}
455
455
  ${shaderfunctions.pixelXYToCartesian2DPoint}
456
456
 
457
457
  void main() {
458
- // if ( a_color.x < .0 || a_color.y < .0 || a_color.z < .0) {
459
- // v_time = -1000000000.0;
460
- // v_track_end_time = -1000000000.0;
461
- // v_track_start_time = -1000000001.0;
462
- // return;
463
- // }
458
+
464
459
  v_time = a_time;
465
460
  v_color = a_color;
466
461
  v_track_start_time = a_track_start_time;
@@ -163,21 +163,11 @@ export class ContextTextWriter3 {
163
163
  }
164
164
 
165
165
 
166
-
167
- updateData(key, updateMap) {
168
- const item = this.itemMap.get(key);
169
- if (item) {
170
- for (const [key, value] of updateMap) {
171
- item[key] = value;
172
- }
173
- }
174
- this.globe.DrawRender();
175
- }
176
-
177
166
  clear() {
178
167
  this.itemMap.clear();
179
168
  }
180
169
 
170
+
181
171
  free() {
182
172
  this.itemMap = null;
183
173
  }
@@ -0,0 +1,7 @@
1
+ /**
2
+ * registerMap(id, aMap, textFont)
3
+ * aMap key, object map.
4
+ * aMap is a specifical tem for a use case.
5
+ * The object has { text, long, lat, opacity, angle, zPayload, achor, xOffset, yOffset, ...extraPropertiesForZoomLevelAdaptor } properties.
6
+ * the plugin runs over items in aMap and draw text on the globe.
7
+ */