@pirireis/webglobeplugins 0.6.40-a → 0.6.41-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
package/rangerings/plugin.js
CHANGED
|
@@ -223,12 +223,18 @@ class RangeRings {
|
|
|
223
223
|
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Use on ContextTextWriter adaptor methods are updated
|
|
229
|
+
* */
|
|
226
230
|
updateText(textWriterIDs) {
|
|
227
231
|
const textWritersMap = textWriterGetOrThrow(this._textWritersMap, textWriterIDs);
|
|
228
232
|
this._ringAccount.updateAllText(textWritersMap, this._textDataPreAdaptor);
|
|
229
233
|
this.globe.DrawRender();
|
|
230
234
|
}
|
|
231
235
|
|
|
236
|
+
|
|
237
|
+
|
|
232
238
|
/**
|
|
233
239
|
* @method removeCenters @param { Array < { centerID } >} centerIDs
|
|
234
240
|
*/
|
|
@@ -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
|
+
*/
|