Methods
Static
changeHexColorOpacity
- changeHexColorOpacity(color: any, opacity: number): string
-
Parameters
-
color: any
-
opacity: number
Returns string
Static
checkObjectAttributes
- checkObjectAttributes(obj: any, names: string[]): boolean
-
Returns boolean
Static
formatArea
- formatArea(area: string | number): { unit: string; value: number }
-
Returns { unit: string; value: number }
-
unit: string
-
value: number
Static
formatLength
- formatLength(len: number): { unit: string; value: number }
-
Returns { unit: string; value: number }
-
unit: string
-
value: number
Static
getElementsByKey
- getElementsByKey(elements: any[], key: string): any[]
-
Parameters
-
elements: any[]
-
key: string
Returns any[]
Static
getErrorInfo
- getErrorInfo(type: string, ...args: any[]): string
-
Parameters
-
type: string
-
Rest
...args: any[]
Returns string
Static
getMapExtent
- getMapExtent(base: CABase): string
-
Returns string
Static
getS3MLayerConfig
- getS3MLayerConfig(base: CABase, url: string): Promise<{ brightness: any; caption: any; constrast: any; effect: undefined; gamma: any; groupName: any; heading: any; hue: any; isS3MB: boolean; isVisible: any; lodRangeScale: any; maxVisibleAltitude: number; maxVisibleDistance: any; minVisibleAltitude: any; minVisibleDistance: any; name: any; polygonOffset: { enabled: boolean; factor: number; units: number }; saturation: any; selectEnable: any; shadowType: number; style3D: any }>
-
Returns Promise<{ brightness: any; caption: any; constrast: any; effect: undefined; gamma: any; groupName: any; heading: any; hue: any; isS3MB: boolean; isVisible: any; lodRangeScale: any; maxVisibleAltitude: number; maxVisibleDistance: any; minVisibleAltitude: any; minVisibleDistance: any; name: any; polygonOffset: { enabled: boolean; factor: number; units: number }; saturation: any; selectEnable: any; shadowType: number; style3D: any }>
Static
guid
- guid(): string
-
Returns string
Static
hex2rgba
- hex2rgba(color: any, opacity?: number): any
-
Parameters
-
color: any
-
opacity: number = 1
Returns any
Static
imageUrlToBase64
- imageUrlToBase64(url: string, isProxy?: boolean, headers: any): Promise<unknown>
-
Parameters
-
url: string
-
isProxy: boolean = false
-
headers: any
Returns Promise<unknown>
Static
toFixed
- toFixed(val: string | number, num: number): number
-
Parameters
-
val: string | number
-
num: number
Returns number
修改hex格式的透明度
Returns