rayshon-cesium-expander 1.5.0-test.7 → 1.5.0-test.8

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/lib/index.dev.js CHANGED
@@ -3990,7 +3990,6 @@ function initializeMaterial(options, result) {
3990
3990
  CustomMaterial._materialCache.addMaterial(result.type, result);
3991
3991
  }
3992
3992
 
3993
- console.log('%c [ result ]-382', 'font-size:13px; background:pink; color:#bf2c9f;', result);
3994
3993
  createMethodDefinition(result);
3995
3994
  createUniforms(result);
3996
3995
  createSubMaterials(result);
@@ -30189,8 +30188,6 @@ var LayerPrimitive = /*#__PURE__*/function () {
30189
30188
 
30190
30189
  _defineProperty(this, "throttleMouseMove", Function);
30191
30190
 
30192
- _defineProperty(this, "preRender", function () {});
30193
-
30194
30191
  _defineProperty(this, "primitive", null);
30195
30192
 
30196
30193
  _defineProperty(this, "destroyed", false);
@@ -30227,8 +30224,6 @@ var LayerPrimitive = /*#__PURE__*/function () {
30227
30224
  this.changeSceneScope();
30228
30225
  this.bindMapChange();
30229
30226
  }
30230
-
30231
- this.preRender = null;
30232
30227
  }
30233
30228
 
30234
30229
  _createClass(LayerPrimitive, [{
@@ -30369,8 +30364,8 @@ var LayerPrimitive = /*#__PURE__*/function () {
30369
30364
 
30370
30365
  var _this = this;
30371
30366
 
30372
- this.preRender = this.viewer.scene.preRender.addEventListener(function () {
30373
- if (_this.primitive && _this.primitive.ready) {
30367
+ this.viewer.scene.preRender.addEventListener(function () {
30368
+ if (_this.primitive.ready) {
30374
30369
  _this.primitive.show = true;
30375
30370
 
30376
30371
  if (oldPrimitive) {
@@ -30522,9 +30517,8 @@ var LayerPrimitive = /*#__PURE__*/function () {
30522
30517
  value: function destroy() {
30523
30518
  if (this.throttleMouseMove) {
30524
30519
  this.viewer.camera.changed.removeEventListener(this.throttleMouseMove, this);
30525
- }
30520
+ } // if (this.primitive?.ready) {
30526
30521
 
30527
- this.preRender && this.preRender(); // if (this.primitive?.ready) {
30528
30522
 
30529
30523
  this.viewer.scene.groundPrimitives.remove(this.primitive);
30530
30524
  LayerPrimitive.removeExamplesItem(this.primitive, this.zIndex);