ImageElement
构造函数
构造函数
ImageElement
构造函数
new ImageElement(properties?)
参数
- properties?:
ImageElementProperties图像元素属性配置
返回:ImageElement ImageElement对象
属性
animationOptions
动画选项
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
参数
- value:
ExtentAndRotationGeoreferenceProperties&object|CornersGeoreferenceProperties&object|ControlPointsGeoreferenceProperties&object
返回: void
方法
cancelLoad
取消加载
cancelLoad(): void
返回:void
isFulfilled
检查是否已完成
isFulfilled(): boolean
返回:boolean
isRejected
检查是否已拒绝
isRejected(): boolean
返回:boolean
isResolved
检查是否已解决
isResolved(): boolean
返回:boolean
load
加载资源
when
等待完成
when(callback?, errback?): Promise
参数
- callback?:
FunctionPromise解决时调用的函数 - errback?:
FunctionPromise失败时执行的函数
返回:Promise

BIMFlux AI
