@pirireis/webglobeplugins 0.9.10 → 0.9.11

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.
Files changed (166) hide show
  1. package/Math/angle-calculation.js +8 -8
  2. package/Math/arc.js +18 -18
  3. package/Math/bounds/line-bbox.js +80 -78
  4. package/Math/constants.js +3 -3
  5. package/Math/juction/arc-plane.js +23 -23
  6. package/Math/juction/line-sphere.js +11 -11
  7. package/Math/juction/plane-plane.js +11 -11
  8. package/Math/line.js +16 -14
  9. package/Math/methods.js +72 -67
  10. package/Math/plane.js +18 -16
  11. package/Math/quaternion.js +49 -45
  12. package/Math/utils.js +2 -2
  13. package/Math/vec3.js +45 -42
  14. package/algorithms/search-binary.js +4 -4
  15. package/altitude-locator/draw-subset-obj.js +8 -7
  16. package/altitude-locator/plugin.js +113 -97
  17. package/arrowfield/adaptor.js +4 -3
  18. package/arrowfield/index.js +2 -2
  19. package/arrowfield/plugin.js +65 -62
  20. package/bearing-line/index.js +1 -1
  21. package/bearing-line/plugin.js +225 -200
  22. package/circle-line-chain/chain-list-map.js +88 -82
  23. package/circle-line-chain/plugin.js +154 -129
  24. package/circle-line-chain/util.js +1 -1
  25. package/compass-rose/compass-rose-padding-flat.js +126 -104
  26. package/compass-rose/compass-text-writer.js +70 -62
  27. package/compass-rose/index.js +2 -2
  28. package/compassrose/compassrose.js +50 -46
  29. package/compassrose/index.js +1 -1
  30. package/heatwave/index.js +2 -2
  31. package/heatwave/isobar/objectarraylabels.js +48 -44
  32. package/heatwave/isobar/plugin.js +123 -104
  33. package/heatwave/isobar/quadtreecontours.js +92 -76
  34. package/heatwave/plugins/heatwaveglobeshell.js +87 -69
  35. package/index.js +11 -11
  36. package/package.json +1 -1
  37. package/partialrings/buffer-manager.js +64 -32
  38. package/partialrings/index.js +1 -1
  39. package/partialrings/plugin.js +84 -48
  40. package/partialrings/program.js +47 -136
  41. package/pin/pin-object-array.js +86 -83
  42. package/pin/pin-point-totem.js +22 -21
  43. package/point-heat-map/adaptors/timetracksplugin-format-to-this.js +10 -10
  44. package/point-heat-map/plugin-webworker.js +45 -40
  45. package/point-heat-map/point-to-heat-map-flow.js +42 -40
  46. package/point-tracks/key-methods.js +1 -1
  47. package/point-tracks/plugin.js +142 -127
  48. package/programs/arrowfield/index.js +1 -1
  49. package/programs/arrowfield/logic.js +62 -170
  50. package/programs/arrowfield/object.js +35 -33
  51. package/programs/data2legend/density-to-legend.js +21 -45
  52. package/programs/data2legend/point-to-density-texture.js +27 -52
  53. package/programs/float2legendwithratio/index.js +1 -1
  54. package/programs/float2legendwithratio/logic.js +42 -88
  55. package/programs/float2legendwithratio/object.js +46 -43
  56. package/programs/globe-util/is-globe-moved.js +11 -10
  57. package/programs/globeshell/index.js +1 -1
  58. package/programs/globeshell/wiggle/index.js +1 -1
  59. package/programs/globeshell/wiggle/logic.js +98 -191
  60. package/programs/globeshell/wiggle/object.js +35 -33
  61. package/programs/helpers/blender/program.js +19 -36
  62. package/programs/helpers/fadeaway/index.js +1 -1
  63. package/programs/helpers/fadeaway/logic.js +13 -35
  64. package/programs/helpers/fadeaway/object.js +10 -9
  65. package/programs/helpers/index.js +1 -1
  66. package/programs/index.js +8 -8
  67. package/programs/line-on-globe/angled-line.js +32 -91
  68. package/programs/line-on-globe/circle-accurate-3d.js +32 -82
  69. package/programs/line-on-globe/circle-accurate-flat.js +50 -108
  70. package/programs/line-on-globe/circle-accurate.js +33 -103
  71. package/programs/line-on-globe/circle.js +32 -97
  72. package/programs/line-on-globe/degree-padding-around-circle-3d.js +33 -83
  73. package/programs/line-on-globe/lines-color-instanced-flat.js +34 -79
  74. package/programs/line-on-globe/linestrip.js +39 -100
  75. package/programs/line-on-globe/naive-accurate-flexible.js +48 -118
  76. package/programs/line-on-globe/to-the-surface.js +29 -58
  77. package/programs/line-on-globe/util.js +1 -1
  78. package/programs/picking/pickable-renderer.js +33 -117
  79. package/programs/point-on-globe/element-globe-surface-glow.js +38 -78
  80. package/programs/point-on-globe/element-point-glow.js +35 -103
  81. package/programs/point-on-globe/square-pixel-point.js +27 -76
  82. package/programs/programcache.js +13 -13
  83. package/programs/rings/distancering/circleflatprogram.js +21 -63
  84. package/programs/rings/distancering/circlepaddingfreeangleprogram.js +145 -156
  85. package/programs/rings/distancering/circlepaddysharedbuffer.js +197 -121
  86. package/programs/rings/distancering/index.js +4 -4
  87. package/programs/rings/distancering/paddyflatprogram.js +20 -73
  88. package/programs/rings/distancering/paddyflatprogram2d.js +22 -75
  89. package/programs/rings/distancering/paddyflatprogram3d.js +20 -73
  90. package/programs/rings/partial-ring/piece-of-pie.js +35 -137
  91. package/programs/totems/camerauniformblock.js +51 -64
  92. package/programs/totems/canvas-webglobe-info.js +40 -48
  93. package/programs/totems/gpu-selection-uniform-block.js +40 -44
  94. package/programs/totems/index.js +1 -1
  95. package/programs/two-d/pixel-padding-for-compass.js +29 -90
  96. package/programs/util.js +7 -6
  97. package/programs/vectorfields/index.js +1 -1
  98. package/programs/vectorfields/logics/drawrectangleparticles.js +29 -70
  99. package/programs/vectorfields/logics/index.js +3 -3
  100. package/programs/vectorfields/logics/pixelbased.js +35 -91
  101. package/programs/vectorfields/logics/ubo.js +25 -31
  102. package/programs/vectorfields/pingpongbuffermanager.js +34 -30
  103. package/rangerings/index.js +4 -4
  104. package/rangerings/plugin.js +252 -202
  105. package/rangerings/rangeringangletext.js +120 -108
  106. package/rangerings/ring-account.js +69 -52
  107. package/shaders/fragment-toy/firework.js +1 -55
  108. package/shaders/fragment-toy/singularity.js +1 -55
  109. package/timetracks/adaptors-line-strip.js +37 -26
  110. package/timetracks/adaptors.js +61 -47
  111. package/timetracks/index.js +4 -4
  112. package/timetracks/plugin-line-strip.js +63 -59
  113. package/timetracks/plugin.js +69 -65
  114. package/timetracks/program-line-strip.js +103 -296
  115. package/timetracks/program.js +113 -419
  116. package/timetracks/programpoint-line-strip.js +44 -97
  117. package/timetracks/programpoint.js +44 -90
  118. package/util/account/bufferoffsetmanager.js +95 -72
  119. package/util/account/index.js +1 -1
  120. package/util/account/single-attribute-buffer-management/buffer-manager.js +43 -39
  121. package/util/account/single-attribute-buffer-management/buffer-orchestrator.js +94 -64
  122. package/util/account/single-attribute-buffer-management/index.js +3 -3
  123. package/util/account/single-attribute-buffer-management/object-store.js +30 -28
  124. package/util/account/util.js +4 -2
  125. package/util/algorithms/search-binary.js +4 -4
  126. package/util/check/get.js +5 -5
  127. package/util/check/typecheck.js +15 -13
  128. package/util/geometry/index.js +11 -9
  129. package/util/gl-util/buffer/attribute-loader.js +20 -8
  130. package/util/gl-util/buffer/index.js +1 -1
  131. package/util/gl-util/draw-options/methods.js +7 -7
  132. package/util/gl-util/uniform-block/manager.js +67 -55
  133. package/util/heatwavedatamanager/datamanager.js +116 -56
  134. package/util/heatwavedatamanager/index.js +2 -2
  135. package/util/heatwavedatamanager/pointcoordinatesdatacalculator.js +40 -37
  136. package/util/heatwavedatamanager/pointcoordsmeta.js +10 -9
  137. package/util/index.js +6 -6
  138. package/util/interpolation/timetrack/index.js +1 -1
  139. package/util/interpolation/timetrack/timetrack-interpolator.js +29 -27
  140. package/util/interpolation/timetrack/web-worker-str.js +1 -179
  141. package/util/interpolation/timetrack/web-worker.js +4 -4
  142. package/util/jshelpers/data-filler.js +7 -7
  143. package/util/jshelpers/timefilters.js +7 -7
  144. package/util/picking/fence.js +7 -7
  145. package/util/picking/picker-displayer.js +52 -46
  146. package/util/programs/draw-texture-on-canvas.js +21 -39
  147. package/util/programs/shapesonglobe.js +64 -104
  148. package/util/programs/supersampletotextures.js +39 -45
  149. package/util/programs/texturetoglobe.js +48 -98
  150. package/util/shaderfunctions/geometrytransformations.js +27 -322
  151. package/util/shaderfunctions/nodata.js +1 -7
  152. package/util/shaderfunctions/noisefunctions.js +9 -39
  153. package/util/surface-line-data/arcs-to-cuts.js +23 -20
  154. package/util/webglobe/rasteroverlay.js +37 -35
  155. package/util/webglobjectbuilders.js +60 -55
  156. package/util/webglobjectbuilders1.js +49 -48
  157. package/waveparticles/adaptor.js +7 -6
  158. package/waveparticles/index.js +2 -2
  159. package/waveparticles/plugin.js +84 -79
  160. package/wind/imagetovectorfieldandmagnitude.js +15 -15
  161. package/wind/index.js +4 -4
  162. package/wind/plugin.js +251 -453
  163. package/wind/vectorfieldimage.js +5 -5
  164. package/write-text/attached-text-writer.js +48 -46
  165. package/write-text/context-text.js +58 -51
  166. package/write-text/context-text3.js +74 -69
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  // TODO: REMOVE THIS
4
- const webglobe_1 = require("@pirireis/webglobe");
5
- const object = {
4
+ var webglobe_1 = require("@pirireis/webglobe");
5
+ var object = {
6
6
  "displayName": "CompassRose",
7
7
  "layerType": 3,
8
8
  "wkbGeom": null,
@@ -167,28 +167,29 @@ const object = {
167
167
  "flashGeo": false
168
168
  }
169
169
  };
170
- const setIconSize = (object, size) => {
170
+ var setIconSize = function (object, size) {
171
171
  object.style.icon.sizeX = size;
172
172
  object.style.icon.sizeY = size;
173
173
  object.style.icon.radius = Math.ceil(size / 2);
174
174
  };
175
- const setMapName = (object, mapName) => {
175
+ var setMapName = function (object, mapName) {
176
176
  object.style.icon.mapName = mapName;
177
177
  };
178
- const setIconName = (object, name) => {
178
+ var setIconName = function (object, name) {
179
179
  object.style.icon.name = name;
180
180
  };
181
- const setData = (object, data) => {
181
+ var setData = function (object, data) {
182
182
  object.data = data;
183
183
  };
184
- const addSingleImageIconMap = symbolSet => url => {
184
+ var addSingleImageIconMap = function (symbolSet) { return function (url) {
185
185
  webglobe_1.GlobeManager.api_AddIconMap(symbolSet, url, null);
186
- };
187
- const setFIDKey = (object, key) => {
186
+ }; };
187
+ var setFIDKey = function (object, key) {
188
188
  object.style.fidKey = key;
189
189
  };
190
- class CompassRose {
191
- constructor(id, globe, { size = 100, primaryKey = "__key__", symbolSet = "compassRose", iconSet = null, imageURL = null, data = null }) {
190
+ var CompassRose = /** @class */ (function () {
191
+ function CompassRose(id, globe, _a) {
192
+ var _b = _a.size, size = _b === void 0 ? 100 : _b, _c = _a.primaryKey, primaryKey = _c === void 0 ? "__key__" : _c, _d = _a.symbolSet, symbolSet = _d === void 0 ? "compassRose" : _d, _e = _a.iconSet, iconSet = _e === void 0 ? null : _e, _f = _a.imageURL, imageURL = _f === void 0 ? null : _f, _g = _a.data, data = _g === void 0 ? null : _g;
192
193
  this.id = id;
193
194
  this.globe = globe;
194
195
  this._idCollector = new Set();
@@ -206,35 +207,35 @@ class CompassRose {
206
207
  if (data)
207
208
  this.setControlledData(data);
208
209
  }
209
- setIconSize(size) {
210
- const { object, globe } = this;
210
+ CompassRose.prototype.setIconSize = function (size) {
211
+ var _a = this, object = _a.object, globe = _a.globe;
211
212
  setIconSize(object, size);
212
213
  globe.ObjectArray.StyleChanged(object);
213
- }
214
- setMapName(mapName) {
215
- const { object, globe } = this;
214
+ };
215
+ CompassRose.prototype.setMapName = function (mapName) {
216
+ var _a = this, object = _a.object, globe = _a.globe;
216
217
  setMapName(object, mapName);
217
218
  globe.ObjectArray.StyleChanged(object);
218
- }
219
- flush() {
219
+ };
220
+ CompassRose.prototype.flush = function () {
220
221
  this._idCollector.clear();
221
222
  this._setData({ coords: [], coordsZ: [], attribs: [] });
222
- }
223
- insert(data) {
224
- const updateBucket = {
223
+ };
224
+ CompassRose.prototype.insert = function (data) {
225
+ var updateBucket = {
225
226
  coords: [],
226
227
  coordsZ: [],
227
228
  attribs: [],
228
229
  };
229
- const addBucket = {
230
+ var addBucket = {
230
231
  coords: [],
231
232
  coordsZ: [],
232
233
  attribs: [],
233
234
  };
234
- let bucket;
235
- for (let i = 0; i < data.attribs.length; i++) {
236
- const currentPayload = data.attribs[i];
237
- const id = currentPayload[this.primaryKey];
235
+ var bucket;
236
+ for (var i = 0; i < data.attribs.length; i++) {
237
+ var currentPayload = data.attribs[i];
238
+ var id = currentPayload[this.primaryKey];
238
239
  if (this._idCollector.has(id)) {
239
240
  bucket = updateBucket;
240
241
  }
@@ -252,45 +253,48 @@ class CompassRose {
252
253
  if (updateBucket.coords.length > 0) {
253
254
  this._updateData(updateBucket, webglobe_1.CSObjectArrayUpdateTypes.UPDATE, { attribs: false, icon: false, label: false, heading: false });
254
255
  }
255
- }
256
- delete(dataIDs) {
257
- const deleteBucket = {
256
+ };
257
+ CompassRose.prototype.delete = function (dataIDs) {
258
+ var _this = this;
259
+ var deleteBucket = {
258
260
  coords: [],
259
261
  coordsZ: [],
260
262
  attribs: [],
261
263
  };
262
- dataIDs.forEach(id => {
263
- if (this._idCollector.has(id)) {
264
- this._idCollector.delete(id);
264
+ dataIDs.forEach(function (id) {
265
+ var _a;
266
+ if (_this._idCollector.has(id)) {
267
+ _this._idCollector.delete(id);
265
268
  deleteBucket.coords.push(0, 0);
266
269
  deleteBucket.coordsZ.push(0);
267
270
  // also can be written as follows
268
- deleteBucket.attribs.push({
269
- [this.primaryKey]: id,
270
- });
271
+ deleteBucket.attribs.push((_a = {},
272
+ _a[_this.primaryKey] = id,
273
+ _a));
271
274
  }
272
275
  });
273
276
  if (deleteBucket.coords.length > 0) {
274
277
  this._updateData(deleteBucket, webglobe_1.CSObjectArrayUpdateTypes.DELETE);
275
278
  }
276
- }
277
- removeFromMap() {
279
+ };
280
+ CompassRose.prototype.removeFromMap = function () {
278
281
  this.globe.ObjectArray.Delete(this.id);
279
- }
282
+ };
280
283
  // private
281
- _setData(data) {
282
- const { globe, object } = this;
284
+ CompassRose.prototype._setData = function (data) {
285
+ var _a = this, globe = _a.globe, object = _a.object;
283
286
  globe.ObjectArray.SetData(object, [data]);
284
- }
287
+ };
285
288
  /**
286
289
  * @param {PointObjectArray} data
287
290
  * @param {CSObjectArrayUpdateTypes} operation
288
291
  * @param {CanChangeOptions} [canChange]
289
292
  */
290
- _updateData(data, operation, canChange) {
291
- const { globe, object } = this;
293
+ CompassRose.prototype._updateData = function (data, operation, canChange) {
294
+ var _a = this, globe = _a.globe, object = _a.object;
292
295
  globe.ObjectArray.UpdateData(object, operation, [data], canChange);
293
- }
294
- }
296
+ };
297
+ return CompassRose;
298
+ }());
295
299
  exports.default = CompassRose;
296
- const getID = (data, primaryKey) => data.attribs[primaryKey];
300
+ var getID = function (data, primaryKey) { return data.attribs[primaryKey]; };
@@ -4,5 +4,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.CompassRose = void 0;
7
- const compassrose_1 = __importDefault(require("./compassrose"));
7
+ var compassrose_1 = __importDefault(require("./compassrose"));
8
8
  exports.CompassRose = compassrose_1.default;
package/heatwave/index.js CHANGED
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.IsobarRasterToVector = exports.HeatWavePlugin = void 0;
7
- const heatwaveglobeshell_1 = __importDefault(require("./plugins/heatwaveglobeshell"));
7
+ var heatwaveglobeshell_1 = __importDefault(require("./plugins/heatwaveglobeshell"));
8
8
  exports.HeatWavePlugin = heatwaveglobeshell_1.default;
9
- const plugin_1 = require("./isobar/plugin");
9
+ var plugin_1 = require("./isobar/plugin");
10
10
  Object.defineProperty(exports, "IsobarRasterToVector", { enumerable: true, get: function () { return plugin_1.IsobarRasterToVector; } });
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const webglobe_1 = require("@pirireis/webglobe");
3
+ var webglobe_1 = require("@pirireis/webglobe");
4
4
  /**
5
5
  * @typedef {Object} IconPayload
6
6
  * @property {string} app6DCode
@@ -22,12 +22,13 @@ const webglobe_1 = require("@pirireis/webglobe");
22
22
  * @property {number[]} coordsZ [z1, z2, ....]
23
23
  * @property {PointPayload[]} attribs
24
24
  */
25
- class ObjectArrayLabels {
25
+ var ObjectArrayLabels = /** @class */ (function () {
26
26
  /**
27
27
  * @param {number | string} id
28
28
  * @param {CSGlobe} globe
29
29
  */
30
- constructor(id, globe, labelStyle = null) {
30
+ function ObjectArrayLabels(id, globe, labelStyle) {
31
+ if (labelStyle === void 0) { labelStyle = null; }
31
32
  this.id = id;
32
33
  this.setGlobe(globe);
33
34
  this.data = [
@@ -48,7 +49,7 @@ class ObjectArrayLabels {
48
49
  this._idCollector = new Set();
49
50
  this._setStyle(labelStyle);
50
51
  }
51
- _setStyle(labelStyle) {
52
+ ObjectArrayLabels.prototype._setStyle = function (labelStyle) {
52
53
  this.style = this.globe.ObjectArray.GetDefaultStyle();
53
54
  if (labelStyle) {
54
55
  this.style.labels[0] = labelStyle;
@@ -67,52 +68,53 @@ class ObjectArrayLabels {
67
68
  this.style.labels[0].text = "${value}";
68
69
  this.style.fidKey = this.primaryKey;
69
70
  this.style.iconType = webglobe_1.CSIconTypes.NOICON; // milIcon ekleyebilmek için icon tipi MAP olmalı
70
- }
71
+ };
71
72
  /**
72
73
  * @param {CSGlobe} [globe]
73
74
  */
74
- setGlobe(globe) {
75
+ ObjectArrayLabels.prototype.setGlobe = function (globe) {
75
76
  if (!globe)
76
77
  return;
77
78
  this.globe = globe;
78
- }
79
- addToMap() {
79
+ };
80
+ ObjectArrayLabels.prototype.addToMap = function () {
80
81
  this.globe.ObjectArray.Add(this);
81
- }
82
- removeFromMap() {
82
+ };
83
+ ObjectArrayLabels.prototype.removeFromMap = function () {
83
84
  this.flush();
84
85
  this.globe.ObjectArray.Delete(this.id);
85
- }
86
+ };
86
87
  /**
87
88
  * Haritaya kullanılacak veriyi verir. Her çağrıldığında tüm hesaplamalar yeniden yapılır
88
89
  * @param {PointObjectArray} data
89
90
  */
90
- setData(data) {
91
+ ObjectArrayLabels.prototype.setData = function (data) {
91
92
  this.globe.ObjectArray.SetData(this, [data]);
92
- }
93
+ };
93
94
  /**
94
95
  * @param {PointObjectArray} data
95
96
  * @param {CSObjectArrayUpdateTypes} operation
96
97
  * @param {CanChangeOptions} [canChange]
97
98
  */
98
- updateData(data, operation, canChange) {
99
+ ObjectArrayLabels.prototype.updateData = function (data, operation, canChange) {
99
100
  this.globe.ObjectArray.UpdateData(this, operation, [data], canChange);
100
- }
101
- flush() {
102
- const deleteBucket = {
101
+ };
102
+ ObjectArrayLabels.prototype.flush = function () {
103
+ var deleteBucket = {
103
104
  coords: [],
104
105
  coordsZ: [],
105
106
  attribs: [],
106
107
  };
107
108
  this.setData(deleteBucket);
108
109
  this._idCollector = new Set();
109
- }
110
+ };
110
111
  /**
111
112
  * Haritaya kullanılacak veriyi verir. Her çağrıldığında tüm hesaplamalar yeniden yapılmaz, ancak ön hesaplama maliyeti vardır
112
113
  * @param {PointObjectArray} data
113
114
  */
114
- setControlledData(data) {
115
- const paritalData = {
115
+ ObjectArrayLabels.prototype.setControlledData = function (data) {
116
+ var _this = this;
117
+ var paritalData = {
116
118
  add: {
117
119
  coords: [],
118
120
  coordsZ: [],
@@ -140,19 +142,19 @@ class ObjectArrayLabels {
140
142
  if (this._idCollector.size === 0) {
141
143
  this.setData(data);
142
144
  // Eklenen id'ler set edildi
143
- for (let i = 0; i < data.attribs.length; i++) {
144
- const currentPayload = data.attribs[i];
145
- const id = currentPayload[this.primaryKey];
145
+ for (var i = 0; i < data.attribs.length; i++) {
146
+ var currentPayload = data.attribs[i];
147
+ var id = currentPayload[this.primaryKey];
146
148
  this._idCollector.add(id);
147
149
  }
148
150
  return;
149
151
  }
150
152
  /** @type {Set<string>} */
151
- const dataIds = new Set();
152
- for (let i = 0; i < data.attribs.length; i++) {
153
- const currentPayload = data.attribs[i];
154
- const id = currentPayload[this.primaryKey];
155
- let bucket = paritalData.add;
153
+ var dataIds = new Set();
154
+ for (var i = 0; i < data.attribs.length; i++) {
155
+ var currentPayload = data.attribs[i];
156
+ var id = currentPayload[this.primaryKey];
157
+ var bucket = paritalData.add;
156
158
  dataIds.add(id);
157
159
  if (this._idCollector.has(id)) {
158
160
  bucket = paritalData.update;
@@ -165,15 +167,16 @@ class ObjectArrayLabels {
165
167
  bucket.attribs.push(currentPayload);
166
168
  }
167
169
  // Artık varolmayan elemenları sil
168
- const deleteBucket = paritalData.delete;
169
- this._idCollector.forEach((id) => {
170
+ var deleteBucket = paritalData.delete;
171
+ this._idCollector.forEach(function (id) {
172
+ var _a;
170
173
  if (!dataIds.has(id)) {
171
- this._idCollector.delete(id);
174
+ _this._idCollector.delete(id);
172
175
  deleteBucket.coords.push(0, 0);
173
176
  deleteBucket.coordsZ.push(0);
174
- deleteBucket.attribs.push({
175
- [this.primaryKey]: id,
176
- });
177
+ deleteBucket.attribs.push((_a = {},
178
+ _a[_this.primaryKey] = id,
179
+ _a));
177
180
  }
178
181
  });
179
182
  if (paritalData.add.coords.length > 0) {
@@ -185,18 +188,19 @@ class ObjectArrayLabels {
185
188
  if (paritalData.delete.coords.length > 0) {
186
189
  this.updateData(paritalData.delete, webglobe_1.CSObjectArrayUpdateTypes.DELETE);
187
190
  }
188
- }
189
- setPrimarykey(key) {
191
+ };
192
+ ObjectArrayLabels.prototype.setPrimarykey = function (key) {
190
193
  this.primaryKey = key;
191
- }
192
- setSymbolSet(symbolSet) {
194
+ };
195
+ ObjectArrayLabels.prototype.setSymbolSet = function (symbolSet) {
193
196
  this.symbolSet = symbolSet;
194
- }
195
- getLabelStyle() {
197
+ };
198
+ ObjectArrayLabels.prototype.getLabelStyle = function () {
196
199
  return this.style.labels[0];
197
- }
198
- setLabelStyle(style) {
200
+ };
201
+ ObjectArrayLabels.prototype.setLabelStyle = function (style) {
199
202
  this.style.labels[0] = style;
200
- }
201
- }
203
+ };
204
+ return ObjectArrayLabels;
205
+ }());
202
206
  exports.default = ObjectArrayLabels;