This commit is contained in:
zh
2025-08-09 09:33:14 +08:00
parent ef3a682724
commit bdc7e58263

View File

@ -273,7 +273,7 @@ class BillboardObject extends Base {
else {
let image = new Image()
image.src =
url ||
url ||
that.getSourceRootPath() + '/img/A-ablu-blank.png'
switch (that.options.heightMode) {
case 2:
@ -766,6 +766,8 @@ class BillboardObject extends Base {
_this._frameImages = []
superGif.load(function (status) {
if (status == 404) {
let width = 31
let height = 36
canvas = document.createElement('canvas')
canvas.width = 0
canvas.height = 0
@ -855,6 +857,8 @@ class BillboardObject extends Base {
billboardH = height * (31 / width)
}
image.onerror = function (err) {
let width = 31
let height = 36
canvas.width = 0
canvas.height = 0
billboardH = 0
@ -2344,7 +2348,7 @@ class BillboardObject extends Base {
}
async updateHeight() {
if(!this.sdk || !this.sdk.viewer || !this.sdk.viewer.scene) {
if (!this.sdk || !this.sdk.viewer || !this.sdk.viewer.scene) {
return
}
let height