@pirireis/webglobeplugins 0.5.4 → 0.5.6

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.
@@ -290,6 +290,7 @@ export default class Plugin {
290
290
 
291
291
  }
292
292
  }
293
+ this.globe.DrawRender();
293
294
  }
294
295
 
295
296
 
@@ -273,7 +273,7 @@ export class CircleLineChainPlugin {
273
273
  *
274
274
  * @param {Array<{key, nodeKeys:[]} keysAndNodes
275
275
  */
276
- deleteNodes(keysAndNodes, { textWriterIDs = [] } = {}) {
276
+ deleteNodes(keysAndNodes) {
277
277
  const bufferKeys = [];
278
278
  const chainKeysToReconstuct = [];
279
279
  keysAndNodes.forEach(({ chainKey, nodeKeys }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pirireis/webglobeplugins",
3
- "version": "0.5.4",
3
+ "version": "0.5.6",
4
4
  "main": "index.js",
5
5
  "author": "Toprak Nihat Deniz Ozturk",
6
6
  "license": "MIT"
@@ -105,6 +105,7 @@ export default class {
105
105
  setCampass(compass) {
106
106
  this.compass = compass;
107
107
  this.textPlugin?.setCompass(compass);
108
+ this.globe.DrawRender();
108
109
  }
109
110
 
110
111
  initilizeBufferManager(initialRingCapacity, bufferDrawType) {
@@ -128,13 +128,19 @@ export class ContextTextWriter2 {
128
128
 
129
129
 
130
130
  insertText(item, id, container, properties) {
131
+ const key = this.keyAdaptor(item, id, container, properties)
131
132
  const coords = this.coordinatesAdaptor(item, id, container, properties)
132
- if (coords == null) return;
133
+ if (coords == null) {
134
+ this.itemMap.delete(key);
135
+ return;
136
+ }
133
137
  const text = this.textAdaptor(item, id, container, properties)
134
- if (text == null) return;
138
+ if (text == null) {
139
+ this.itemMap.delete(key);
140
+ return
141
+ };
135
142
  const opacity = this.opacityAdaptor(item, id, container, properties);
136
143
  const angle = this.angleAdaptor(item, id, container, properties);
137
- const key = this.keyAdaptor(item, id, container, properties)
138
144
  this.itemMap.set(key, { long: coords.long, lat: coords.lat, text, opacity, angle });
139
145
  }
140
146