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