This commit is contained in:
zh
2025-09-23 10:18:54 +08:00
parent 1afc691ec2
commit b29753453a
21 changed files with 139 additions and 1369 deletions

View File

@ -40,8 +40,8 @@ class BaseLayer extends BaseSource {
}
set brightness(v) {
this.options.brightness = v
this.entity.brightness = v
this.options.brightness = Number(v)
this.entity.brightness = Number(v)
}
get alpha() {
@ -50,8 +50,9 @@ class BaseLayer extends BaseSource {
set alpha(v) {
if (Number(v) > 1) v = 1
if (Number(v) < 0) v = 0
v = Number(v)
if (v > 1) v = 1
if (v < 0) v = 0
this.entity.alpha = v
this.options.alpha = v
this._elms.alpha && this._elms.alpha.forEach((item) => {