gs-bim-air 1.6.1-beta.84 → 1.6.1-beta.85

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.
@@ -8627,6 +8627,7 @@ __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/
8627
8627
  _this.activeBgIndex = "";
8628
8628
  _this.activeMapping = "";
8629
8629
  _this.ambient = _this.viewer.options.displayEffect.ambient;
8630
+ _this.light = _this.viewer.options.displayEffect.light;
8630
8631
  _this.marks = {
8631
8632
  0: "-1",
8632
8633
  128: "0",
@@ -8725,6 +8726,10 @@ __webpack_require__(/*! core-js/modules/es.json.stringify.js */ "./node_modules/
8725
8726
  this.viewer.options.displayEffect.ambient = val;
8726
8727
  this.saveLocalConfig();
8727
8728
  };
8729
+ ShowSetting.prototype.lightChange = function (val) {
8730
+ this.viewer.options.displayEffect.light = val;
8731
+ this.saveLocalConfig();
8732
+ };
8728
8733
  ShowSetting.prototype.selectBgClick = function (index) {
8729
8734
  this.viewer.options.background = this.bgList[index].value;
8730
8735
  this.activeBgIndex = index;
@@ -26683,7 +26688,8 @@ __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/c
26683
26688
  },
26684
26689
  displayEffect: {
26685
26690
  showBorder: ShowBorder.Default,
26686
- ambient: 128
26691
+ ambient: 128,
26692
+ light: false
26687
26693
  },
26688
26694
  renderingOptions: {
26689
26695
  logarithmicDepthBuffer: false
@@ -26850,6 +26856,19 @@ __webpack_require__(/*! core-js/modules/es.function.name.js */ "./node_modules/c
26850
26856
  viewer.updateDisplay();
26851
26857
  }
26852
26858
  });
26859
+ var light = false;
26860
+ Object.defineProperty(viewer.options.displayEffect, "light", {
26861
+ enumerable: true,
26862
+ configurable: true,
26863
+ get: function get() {
26864
+ return light;
26865
+ },
26866
+ set: function set(val) {
26867
+ light = val;
26868
+ viewer.sceneSegment.visibility.setLight(val);
26869
+ viewer.updateDisplay();
26870
+ }
26871
+ });
26853
26872
  }
26854
26873
  exports.defineConfig = defineConfig;
26855
26874
  }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
@@ -94413,6 +94432,25 @@ var render = function render() {
94413
94432
  },
94414
94433
  expression: "ambient"
94415
94434
  }
94435
+ })], 1)], 1), _c("el-row", [_c("el-col", {
94436
+ attrs: {
94437
+ span: 8
94438
+ }
94439
+ }, [_vm._v("光照:")]), _c("el-col", {
94440
+ attrs: {
94441
+ span: 16
94442
+ }
94443
+ }, [_c("el-switch", {
94444
+ on: {
94445
+ change: _vm.lightChange
94446
+ },
94447
+ model: {
94448
+ value: _vm.light,
94449
+ callback: function callback($$v) {
94450
+ _vm.light = $$v;
94451
+ },
94452
+ expression: "light"
94453
+ }
94416
94454
  })], 1)], 1), _c("div", [_c("el-collapse", {
94417
94455
  attrs: {
94418
94456
  accordion: ""
@@ -163141,7 +163179,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
163141
163179
  /***/ (function(module) {
163142
163180
 
163143
163181
  "use strict";
163144
- module.exports = JSON.parse('{"name":"gs-bim-air","version":"1.6.1-beta.84","description":"发布的基于gs-longan的图形显示控件","main":"lib/BimAir.umd.min.js","types":"types/index.d.ts","author":"","license":"ISC","scripts":{"publish":"npm publish ","publishAlpha":"npm publish --tag=alpha","publishBeta":"npm publish --tag=beta","publishBeta2":"npm publish --tag=beta2","typedoc":"typedoc --plugin typedoc-plugin-markdown"},"dependencies":{},"devDependencies":{}}');
163182
+ module.exports = JSON.parse('{"name":"gs-bim-air","version":"1.6.1-beta.85","description":"发布的基于gs-longan的图形显示控件","main":"lib/BimAir.umd.min.js","types":"types/index.d.ts","author":"","license":"ISC","scripts":{"publish":"npm publish ","publishAlpha":"npm publish --tag=alpha","publishBeta":"npm publish --tag=beta","publishBeta2":"npm publish --tag=beta2","typedoc":"typedoc --plugin typedoc-plugin-markdown"},"dependencies":{},"devDependencies":{}}');
163145
163183
 
163146
163184
  /***/ }),
163147
163185