ImageElement

构造函数

构造函数

ImageElement

构造函数

new ImageElement(properties?)

参数

返回:ImageElement ImageElement对象

属性

animationOptions

动画选项

animationOptions: AnimationOptions

content

图像内容

content: HTMLImageElement | HTMLCanvasElement | ImageData

类型: HTMLImageElement | HTMLCanvasElement | ImageData

image

图像元素

image: string | HTMLImageElement | HTMLCanvasElement | ImageData

类型: string | HTMLImageElement | HTMLCanvasElement | ImageData

loadError

加载错误

loadError: Error

类型: Error

loadStatus

加载状态

loadStatus: "not-loaded" | "loading" | "failed" | "loaded"

类型: "not-loaded" | "loading" | "failed" | "loaded"

loadWarnings

加载警告

loadWarnings: any[]

类型: any[]

opacity

透明度

opacity: number

类型: number

type

元素类型

type: "image"

类型: "image"

访问器

georeference

地理参考

get georeference(): ControlPointsGeoreference | CornersGeoreference | ExtentAndRotationGeoreference
set georeference(value: ExtentAndRotationGeoreferenceProperties & object | CornersGeoreferenceProperties & object | ControlPointsGeoreferenceProperties & object): void

返回: void

方法

cancelLoad

取消加载

cancelLoad(): void

返回:void

isFulfilled

检查是否已完成

isFulfilled(): boolean

返回:boolean

isRejected

检查是否已拒绝

isRejected(): boolean

返回:boolean

isResolved

检查是否已解决

isResolved(): boolean

返回:boolean

load

加载资源

load(options?): Promise

参数

返回:Promise

when

等待完成

when(callback?, errback?): Promise

参数

  • callback?: Function Promise解决时调用的函数
  • errback?: Function Promise失败时执行的函数

返回:Promise

BIMFlux AI