瀏覽代碼

change the type property

tags/2.4.0
Caven Chen 4 年之前
父節點
當前提交
76628b8095

+ 4
- 1
modules/effect/type/BlackAndWhite.js 查看文件

@@ -13,10 +13,13 @@ class BlackAndWhite {
this._enable = false
this._gradations = 1
this._selected = []
this.type = 'black_and_white'
this._state = State.INITIALIZED
}

get type() {
return 'black_and_white'
}

set enable(enable) {
this._enable = enable
if (enable && this._viewer && !this._delegate) {

+ 4
- 1
modules/effect/type/Bloom.js 查看文件

@@ -16,10 +16,13 @@ class Bloom {
this._sigma = 3.8
this._stepSize = 5
this._selected = []
this.type = 'bloom'
this._state = State.INITIALIZED
}

get type() {
return 'bloom'
}

set enable(enable) {
this._enable = enable
if (enable && this._viewer && !this._delegate) {

+ 4
- 1
modules/effect/type/Brightness.js 查看文件

@@ -13,10 +13,13 @@ class Brightness {
this._enable = false
this._intensity = 1
this._selected = []
this.type = 'brightness'
this._state = State.INITIALIZED
}

get type() {
return 'brightness'
}

set enable(enable) {
this._enable = enable
if (enable && this._viewer && !this._delegate) {

+ 4
- 1
modules/effect/type/DepthOfField.js 查看文件

@@ -16,10 +16,13 @@ class DepthOfField {
this._sigma = 3.8
this._stepSize = 2.5
this._selected = []
this.type = 'depth_of_field'
this._state = State.INITIALIZED
}

get type() {
return 'depth_of_field'
}

set enable(enable) {
this._enable = enable
if (

+ 4
- 1
modules/effect/type/LensFlare.js 查看文件

@@ -16,10 +16,13 @@ class LensFlare {
this._dirtAmount = 0.4
this._haloWidth = 0.4
this._selected = []
this.type = 'lens_flare'
this._state = State.INITIALIZED
}

get type() {
return 'lens_flare'
}

set enable(enable) {
this._enable = enable
if (enable && this._viewer && !this._delegate) {

+ 4
- 1
modules/effect/type/NightVision.js 查看文件

@@ -10,10 +10,13 @@ class NightVision {
constructor() {
this._enable = false
this._selected = []
this.type = 'night'
this._state = State.INITIALIZED
}

get type() {
return 'night'
}

set enable(enable) {
this._enable = enable
if (enable && this._viewer && !this._delegate) {

+ 4
- 1
modules/effect/type/Silhouette.js 查看文件

@@ -14,10 +14,13 @@ class Silhouette {
this._color = Cesium.Color.GREEN
this._length = 0.5
this._selected = []
this.type = 'silhouette'
this._state = State.INITIALIZED
}

get type() {
return 'silhouette'
}

set enable(enable) {
this._enable = enable
if (

+ 4
- 0
modules/effect/type/Sun.js 查看文件

@@ -0,0 +1,4 @@
/**
* @Author: Caven
* @Date: 2021-08-01 00:22:00
*/

Loading…
取消
儲存