@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.
package/bearing-line/plugin.js
CHANGED
|
@@ -273,7 +273,7 @@ export class CircleLineChainPlugin {
|
|
|
273
273
|
*
|
|
274
274
|
* @param {Array<{key, nodeKeys:[]} keysAndNodes
|
|
275
275
|
*/
|
|
276
|
-
deleteNodes(keysAndNodes
|
|
276
|
+
deleteNodes(keysAndNodes) {
|
|
277
277
|
const bufferKeys = [];
|
|
278
278
|
const chainKeysToReconstuct = [];
|
|
279
279
|
keysAndNodes.forEach(({ chainKey, nodeKeys }) => {
|
package/package.json
CHANGED
package/rangerings/rangerings.js
CHANGED
|
@@ -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)
|
|
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)
|
|
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
|
|