﻿declare module Drawsee {
    export type Nullable<T> = T | null;
    export type float = number;
    export type double = number;
    export type int = number;
    export type FloatArray = number[] | Float32Array;
    export type IndicesArray = number[] | Int32Array | Uint32Array | Uint16Array;
    export type DataArray = number[] | ArrayBuffer | ArrayBufferView;
    type Primitive = undefined | null | boolean | string | number | Function;

    export type Immutable<T> = T extends Primitive
        ? T
        : T extends Array<infer U>
        ? ReadonlyArray<U>
        :
        DeepImmutable<T>;

    export type DeepImmutable<T> = T extends Primitive
        ? T
        : T extends Array<infer U>
        ? DeepImmutableArray<U>
        :
        DeepImmutableObject<T>;

    interface DeepImmutableArray<T> extends ReadonlyArray<DeepImmutable<T>> { }
    type DeepImmutableObject<T> = { readonly [K in keyof T]: DeepImmutable<T[K]> };

    export const ToGammaSpace: number;
    export const ToLinearSpace = 2.2;
    let Epsilon: number;

    export type Engine = BABYLON.Engine;
    export type Scene = BABYLON.Scene;
    export type Effect = BABYLON.Effect;
    export type IEffectCreationOptions = BABYLON.IEffectCreationOptions;
    export type DataBuffer = BABYLON.DataBuffer;
    export type VertexBuffer = BABYLON.VertexBuffer;
    export type InternalTexture = BABYLON.InternalTexture;
    export type RenderTargetWrapper = BABYLON.RenderTargetWrapper;
    export type UniformBuffer = BABYLON.UniformBuffer;
    export type GpuBundleList = BABYLON.WebGPUBundleList
    export type VertexBuffers = { [key: string]: Nullable<VertexBuffer>; };

    export class Constants {
        static readonly ALPHA_DISABLE: number;
        static readonly ALPHA_ADD: number;
        static readonly ALPHA_COMBINE: number;
        static readonly ALPHA_SUBTRACT: number;
        static readonly ALPHA_MULTIPLY: number;
        static readonly ALPHA_MAXIMIZED: number;
        static readonly ALPHA_ONEONE: number;
        static readonly ALPHA_PREMULTIPLIED: number;
        static readonly ALPHA_PREMULTIPLIED_PORTERDUFF: number;
        static readonly ALPHA_INTERPOLATE: number;
        static readonly ALPHA_SCREENMODE: number;
        static readonly DELAYLOADSTATE_NONE: number;
        static readonly DELAYLOADSTATE_LOADED: number;
        static readonly DELAYLOADSTATE_LOADING: number;
        static readonly DELAYLOADSTATE_NOTLOADED: number;
        static readonly NEVER: number;
        static readonly ALWAYS: number;
        static readonly LESS: number;
        static readonly EQUAL: number;
        static readonly LEQUAL: number;
        static readonly GREATER: number;
        static readonly GEQUAL: number;
        static readonly NOTEQUAL: number;
        static readonly KEEP: number;
        static readonly REPLACE: number;
        static readonly INCR: number;
        static readonly DECR: number;
        static readonly INVERT: number;
        static readonly INCR_WRAP: number;
        static readonly DECR_WRAP: number;
        static readonly TEXTURE_CLAMP_ADDRESSMODE: number;
        static readonly TEXTURE_WRAP_ADDRESSMODE: number;
        static readonly TEXTURE_MIRROR_ADDRESSMODE: number;
        static readonly TEXTUREFORMAT_ALPHA: number;
        static readonly TEXTUREFORMAT_LUMINANCE: number;
        static readonly TEXTUREFORMAT_LUMINANCE_ALPHA: number;
        static readonly TEXTUREFORMAT_RGB: number;
        static readonly TEXTUREFORMAT_RGBA: number;
        static readonly TEXTUREFORMAT_RED: number;
        static readonly TEXTUREFORMAT_R: number;
        static readonly TEXTUREFORMAT_RG: number;
        static readonly TEXTUREFORMAT_RED_INTEGER: number;
        static readonly TEXTUREFORMAT_R_INTEGER: number;
        static readonly TEXTUREFORMAT_RG_INTEGER: number;
        static readonly TEXTUREFORMAT_RGB_INTEGER: number;
        static readonly TEXTUREFORMAT_RGBA_INTEGER: number;
        static readonly TEXTURETYPE_UNSIGNED_BYTE: number;
        static readonly TEXTURETYPE_UNSIGNED_INT: number;
        static readonly TEXTURETYPE_FLOAT: number;
        static readonly TEXTURETYPE_HALF_FLOAT: number;
        static readonly TEXTURETYPE_BYTE: number;
        static readonly TEXTURETYPE_SHORT: number;
        static readonly TEXTURETYPE_UNSIGNED_SHORT: number;
        static readonly TEXTURETYPE_INT: number;
        static readonly TEXTURETYPE_UNSIGNED_INTEGER: number;
        static readonly TEXTURETYPE_UNSIGNED_SHORT_4_4_4_4: number;
        static readonly TEXTURETYPE_UNSIGNED_SHORT_5_5_5_1: number;
        static readonly TEXTURETYPE_UNSIGNED_SHORT_5_6_5: number;
        static readonly TEXTURETYPE_UNSIGNED_INT_2_10_10_10_REV: number;
        static readonly TEXTURETYPE_UNSIGNED_INT_24_8: number;
        static readonly TEXTURETYPE_UNSIGNED_INT_10F_11F_11F_REV: number;
        static readonly TEXTURETYPE_UNSIGNED_INT_5_9_9_9_REV: number;
        static readonly TEXTURETYPE_FLOAT_32_UNSIGNED_INT_24_8_REV: number;
        static readonly TEXTURE_NEAREST_SAMPLINGMODE: number;
        static readonly TEXTURE_BILINEAR_SAMPLINGMODE: number;
        static readonly TEXTURE_TRILINEAR_SAMPLINGMODE: number;
        static readonly TEXTURE_NEAREST_NEAREST_MIPLINEAR: number;
        static readonly TEXTURE_LINEAR_LINEAR_MIPNEAREST: number;
        static readonly TEXTURE_LINEAR_LINEAR_MIPLINEAR: number;
        static readonly TEXTURE_NEAREST_NEAREST_MIPNEAREST: number;
        static readonly TEXTURE_NEAREST_LINEAR_MIPNEAREST: number;
        static readonly TEXTURE_NEAREST_LINEAR_MIPLINEAR: number;
        static readonly TEXTURE_NEAREST_LINEAR: number;
        static readonly TEXTURE_NEAREST_NEAREST: number;
        static readonly TEXTURE_LINEAR_NEAREST_MIPNEAREST: number;
        static readonly TEXTURE_LINEAR_NEAREST_MIPLINEAR: number;
        static readonly TEXTURE_LINEAR_LINEAR: number;
        static readonly TEXTURE_LINEAR_NEAREST: number;
        static readonly TEXTURE_EXPLICIT_MODE: number;
        static readonly TEXTURE_SPHERICAL_MODE: number;
        static readonly TEXTURE_PLANAR_MODE: number;
        static readonly TEXTURE_CUBIC_MODE: number;
        static readonly TEXTURE_PROJECTION_MODE: number;
        static readonly TEXTURE_SKYBOX_MODE: number;
        static readonly TEXTURE_INVCUBIC_MODE: number;
        static readonly TEXTURE_EQUIRECTANGULAR_MODE: number;
        static readonly TEXTURE_FIXED_EQUIRECTANGULAR_MODE: number;
        static readonly TEXTURE_FIXED_EQUIRECTANGULAR_MIRRORED_MODE: number;
        static readonly SCALEMODE_FLOOR: number;
        static readonly SCALEMODE_NEAREST: number;
        static readonly SCALEMODE_CEILING: number;
        static readonly MATERIAL_TextureDirtyFlag: number;
        static readonly MATERIAL_LightDirtyFlag: number;
        static readonly MATERIAL_FresnelDirtyFlag: number;
        static readonly MATERIAL_AttributesDirtyFlag: number;
        static readonly MATERIAL_MiscDirtyFlag: number;
        static readonly MATERIAL_AllDirtyFlag: number;
        static readonly MATERIAL_TriangleFillMode: number;
        static readonly MATERIAL_WireFrameFillMode: number;
        static readonly MATERIAL_PointFillMode: number;
        static readonly MATERIAL_PointListDrawMode: number;
        static readonly MATERIAL_LineListDrawMode: number;
        static readonly MATERIAL_LineLoopDrawMode: number;
        static readonly MATERIAL_LineStripDrawMode: number;
        static readonly MATERIAL_TriangleStripDrawMode: number;
        static readonly MATERIAL_TriangleFanDrawMode: number;
        static readonly MATERIAL_ClockWiseSideOrientation: number;
        static readonly MATERIAL_CounterClockWiseSideOrientation: number;
        static readonly ACTION_NothingTrigger: number;
        static readonly ACTION_OnPickTrigger: number;
        static readonly ACTION_OnLeftPickTrigger: number;
        static readonly ACTION_OnRightPickTrigger: number;
        static readonly ACTION_OnCenterPickTrigger: number;
        static readonly ACTION_OnPickDownTrigger: number;
        static readonly ACTION_OnDoublePickTrigger: number;
        static readonly ACTION_OnPickUpTrigger: number;
        static readonly ACTION_OnPickOutTrigger: number;
        static readonly ACTION_OnLongPressTrigger: number;
        static readonly ACTION_OnPointerOverTrigger: number;
        static readonly ACTION_OnPointerOutTrigger: number;
        static readonly ACTION_OnEveryFrameTrigger: number;
        static readonly ACTION_OnIntersectionEnterTrigger: number;
        static readonly ACTION_OnIntersectionExitTrigger: number;
        static readonly ACTION_OnKeyDownTrigger: number;
        static readonly ACTION_OnKeyUpTrigger: number;
        static readonly PARTICLES_BILLBOARDMODE_Y: number;
        static readonly PARTICLES_BILLBOARDMODE_ALL: number;
        static readonly PARTICLES_BILLBOARDMODE_STRETCHED: number;
        static readonly PARTICLES_BaseAssetsUrl: string;
        static readonly MESHES_CULLINGSTRATEGY_STANDARD: number;
        static readonly MESHES_CULLINGSTRATEGY_BOUNDINGSPHERE_ONLY: number;
        static readonly MESHES_CULLINGSTRATEGY_OPTIMISTIC_INCLUSION: number;
        static readonly MESHES_CULLINGSTRATEGY_OPTIMISTIC_INCLUSION_THEN_BSPHERE_ONLY: number;
        static readonly SCENELOADER_NO_LOGGING: number;
        static readonly SCENELOADER_MINIMAL_LOGGING: number;
        static readonly SCENELOADER_SUMMARY_LOGGING: number;
        static readonly SCENELOADER_DETAILED_LOGGING: number;
    }
}

declare module Drawsee {
    /**
    * IDisposable 可释放对象接口
    */
    interface IDisposable {
        /**
          * 释放对象
         */
        dispose(): void
    }

    /**
      * TObject 库中所有对象的祖先类
      */
    class TObject {
        /**
          * 
         */
        public readonly uniqueId: number;
        /**
          * 
          * @param other
          * @returns
         */
        public equals(other: TObject): boolean;
        /**
          * 
         */
        public getHashKey(): string;
        /**
          * 
          * @param x
          * @param y
          * @returns
         */
        public static GenericEquals(x: any, y: any): boolean;
        /**
          * 
          * @param key
          * @returns
         */
        public static GenericHashKey(key: any): string;
        /**
          * 
          * @param x
          * @returns
         */
        public static GenericToString(x: any): string;
        /**
          * 
          * @param x
          * @param y
          * @returns
         */
        public static NumberCompareTo(x: number, y: number): number;
        /**
          * 
          * @param x
          * @param y
          * @returns
         */
        public static StringCompareTo(x: string, y: string): number;
    }

    class Exception {
        public message: string;
        constructor(message?: string);
        public toString(): string;
    }

    class NotImplementedException extends Exception {
        constructor(message?: string);
    }

    class TString {
        public static Concat(parts: any[]): string;
        public static Contains(str: string, sub: string): boolean;
        public static FormatNumber(val: number, intLen: number, deciLen?: number): string;
        public static FromChars(chars: number[]): string;
        public static GetCharCountChineseAsTwo(str: string): number;
        public static IndexOfAny(str: string, subs: number[]): number;
        public static Join(separator: string, parts: string[]): string;
        public static Remove(str: string, startIndex: number, length: number): string;
        public static Replace(str: string, pattern: any, replacement: any): string;
        public static Split(str: string, separator: any, limit?: number): string[];
        public static SplitByChars(str: string, separator: number[], limit?: number): string[];
        public static Substring(str: string, startIndex: number, length?: number): string;
        public static ToCharArray(str: string): number[];
        public static Trim(str: string): string;
    }

    /**
      * NullableValue 可为空的值
      */
    class NullableValue<T> {
        /**
          * 
         */
        public value: T;
        /**
          * 
          * @param value?
         */
        constructor(value?: T);
        /**
          * 
         */
        public readonly hasValue: boolean;
        /**
          * 
         */
        public getValueOrDefault(): T;
    }

    /**
      * RefValue 引用值的包装类
      */
    class RefValue<T> {
        /**
          * 包含的值
         */
        public value: T;
        /**
          * 
          * @param value 
         */
        constructor(value?: T);
    }

    class Stream {
        public readonly length: number;
        public readonly position: number;
        public readByte(): number;
        public readBytes(count: number): Uint8Array;
        public toArray(): Uint8Array;
    }

    class MemoryStream extends Stream {
        constructor(data: Uint8Array);
        public readonly length: number;
        public readonly position: number;
        public readByte(): number;
        public readBytes(count: number): Uint8Array;
        public toArray(): Uint8Array;
    }

    class BinaryReader {
        constructor(baseStream: Stream);
        public baseStream: Stream;
        public close(): void;
        public isEof(): boolean;
        public read(buf: Uint8Array, index: number, count: number): void;
        public readByte(): number;
        public readBytes(count: number): Uint8Array;
        public readBytesToEnd(): Uint8Array;
        public readDouble(): number;
        public readInt16(): number;
        public readInt32(): number;
        public readSingle(): number;
        public readString(): string;
    }

    class MemoryBinaryReader extends BinaryReader {
        constructor(data: Uint8Array);
        public readFloats(count: number): Float32Array;
        public readInt16s(count: number): Int16Array;
        public readInt32s(count: number): Int32Array;
    }

    class StringBuilder {
        constructor(capacity?: number);
        public readonly length: number;
        public append(textOrChar: any): void;
        public appendLine(text?: string): void;
        public getAt(index: number): number;
        public toString(): string;
    }

    class Guid {
        public static Next(): string;
        public static NextName(prefix: string): string;
    }

    class CycleTimer {
        constructor(workIntervalMs?: number, startMs?: number);
        public isWorkTime(curMs?: number): boolean;
        public reset(): void;
    }

    class ProcessTimer {
        constructor(ms?: number);
        public getTimeLeft(): number;
        public getTimeOutTick(): number;
        public isTimeOut(): boolean;
        public reset(msLimit?: number): void;
        public timeOutQuit(): void;
    }

    /**
      * QuadtreeHandle 
      */
    class QuadtreeHandle {
        /**
          * 
         */
        public readonly level: number;
        /**
          * 
         */
        public readonly x: number;
        /**
          * 
         */
        public readonly y: number;
        /**
          * 
          * @param level 
          * @param x 
          * @param y 
         */
        constructor(level?: number, x?: number, y?: number);
        /**
          * 
         */
        public clone(): QuadtreeHandle;
        /**
          * 
         */
        public getHashKey(): string;
        /**
          * 
         */
        public toString(): string;
        /**
          * 
          * @param strKey 
          * @returns 
         */
        public static FromString(strKey: string): QuadtreeHandle;
    }

    class PromiseDelegate {
        public invokeFunc: () => void;
        constructor(invokeFunc: () => void);
        public clearWaitingTag(): void;
        public tryInvoke(): void;
    }

    interface IComparable<T> {
        compareTo(other: T): number
    }

    interface IComparer<T> {
        compare(x: T, y: T): number
    }

    interface IEnumerable<T> {
        getEnumerator(): IEnumerator<T>;
    }

    interface IEnumerator<T> extends IDisposable {
        current: T;
        moveNext(): boolean;
    }

    interface IList<T> {
        count: number;
        getAt(index: number): T;
        setAt(index: number, value: T): void;
    }

    interface IDictionary<TKey, TValue> {
        count: number;
        keys: Array<TKey>;
        values: Array<TValue>;
        add(key: TKey, value: TValue): void;
        clear(): void
        containsKey(key: TKey): boolean;
        getValue(key: TKey): TValue;
        remove(key: TKey): boolean;
        unionWith(src: IDictionary<TKey, TValue>): void;
    }

    class ListRoot<T> implements IList<T>, IEnumerable<T> {
        constructor(items: T[]);
        public readonly count: number;
        public add(item: any);
        public addRange(items: T[]);
        public clear(): void;
        public contains(item: T): boolean;
        public getAt(index: number): T;
        public getEnumerator(): Array_Enumerator<T>;
        public indexOf(item: T): number;
        public insert(index: number, item: T): void;
        public remove(item: T): void;
        public removeAt(index: number): void;
        public removeRange(index: number, count: number): void;
        public reverse(): void;
        public setAt(index: number, value: any): void;
        public sort(comparer?: IComparer<T>): void;
        public toArray(): any;
    }

    class CloneList<T> extends ListRoot<T> implements IList<T>, IEnumerable<T> {
        constructor(items: T[]);
        public add(item: any);
        public getAt(index: number): T;
        public setAt(index: number, value: any): void;
    }

    class Array_Enumerator<T> implements IEnumerator<T>, IDisposable {
        constructor(array: T[]);
        public readonly current: T;
        public dispose(): void;
        public moveNext(): boolean;
    }

    class Array_Enumerable<T> implements IEnumerable<T> {
        constructor(array: T[]);
        public getEnumerator(): Array_Enumerator<T>;
    }

    class Dictionary<TKey, TValue> implements IDictionary<TKey, TValue> {
        constructor(other?: Dictionary<TKey, TValue>);
        public readonly count: number;
        public readonly keys: Array<TKey>;
        public readonly values: Array<TValue>;
        public add(key: TKey, value: TValue);
        public clear(): void;
        public containsKey(key: TKey): boolean;
        public getValue(key: TKey): TValue;
        public remove(key: TKey): boolean;
        public tryGetValue(key: TKey, pvalue: RefValue<TValue>): boolean;
        public unionWith(src: IDictionary<TKey, TValue>): void;
    }

    class IntKeyDictionary<TValue> extends Dictionary<number, TValue> implements IDictionary<number, TValue> {
    }

    class StringKeyDictionary<TValue> extends Dictionary<string, TValue> implements IDictionary<string, TValue> {
    }

    class HashSet<T> implements IEnumerable<T> {
        constructor(vals?: IEnumerable<T>);
        public readonly count: number;
        public add(item: T): void;
        public clear(): void;
        public contains(item: T): boolean;
        public enumValues(): Array<T>;
        public exceptWith(vals: IEnumerable<T>): void;
        public getEnumerator(): Array_Enumerator<T>;
        public intersectWith(vals: IEnumerable<T>): void;
        public remove(item: T): void;
        public symmetricExceptWith(vals: IEnumerable<T>): void;
        public unionWith(vals: IEnumerable<T>): void;
    }

    class DirectHashSet implements IEnumerable<any> {
        constructor(vals?: IEnumerable<any>);
        public readonly count: number;
        public add(item: any): void;
        public clear(): void;
        public contains(item: any): boolean;
        public enumValues(): Array<any>;
        public getEnumerator(): Array_Enumerator<any>;
        public remove(item: any): void;
        public unionWith(vals: IEnumerable<any>): void;
    }

    class IntHashSet extends DirectHashSet {
    }

    class StringHashSet extends DirectHashSet {
    }

    /**
      * SystemHelper 可观察变化的数组
      */
    class ObservableArray<T> {
        /**
          * 添加消息
         */
        public onAdd: Observable<T>;
        /**
          * 清除消息
         */
        public onClear: Observable<ObservableArray<T>>;
        /**
          * 长度
         */
        public readonly length: number;
        /**
          * 清除
         */
        public clear(): void;
        /**
          * 添加
          * @param value 
         */
        public push(value: T): void;
    }

    /**
      * SystemHelper 全局系统帮助函数
      */
    class SystemHelper {
        /**
          * 
          * @param observable 
          * @param evt 
         */
        public static FireEvent<T>(observable: any, evt: T): void;
        /**
          * 
          * @param bytes 字节数组转为Stream
          * @returns stream对象
         */
        public static ByteToStream(bytes: Uint8Array): Stream;
        /**
          * 强制转化对象类型为T
          * @param obj 对象
          * @returns
         */
        public static CastObject<T>(obj: any): any;
        /**
          * 
          * @param buf
          * @param startIndex
          * @param count
          * @returns
         */
        public static CharArrayToInt(buf: number[], startIndex: number, count: number): number;
        /**
          * 复制对象
          * @param obj 源对象
          * @returns 新对象
         */
        public static CloneObject(obj: any): any;
        /**
          * 
          * @param strValue
          * @returns
         */
        public static ConvertDateTime(strValue: string): string;
        /**
          * 从json字符串中复制所有属性到指定对象
          * @param destObj 目标对象
          * @param jsonString Json字符串
         */
        public static CopyAttrFromJson(destObj: any, jsonString: string): void;
        /**
          * 把源对象所有属性复制到目标对象
          * @param destObj 目标对象
          * @param jsonObj 源对象
         */
        public static CopyAttrFromJsonObject(destObj: any, srcObj: any): void;
        /**
          * 从json字符串创建指定类名的对象实例，自动复制属性
          * @param className 对象的类名称
          * @param json json字符串
          * @returns 对象实例
         */
        public static CreateFromJson(className: string, json: string): any;
        /**
          * 从json字符串数组创建指定类名的对象实例数组，自动复制每个对象的属性
          * @param className 对象的类名称
          * @param jsonArray json字符串数组
          * @returns 对象实例数组
         */
        public static CreateFromJsonArray(className: string, jsonArray: string): any[];
        /**
          * 创建Worker线程
          * @param workerJsFile 线程脚本文件名称
          * @returns 线程对象
         */
        public static CreateWorker(workerJsFile: string): Worker;
        /**
          * 
          * @param srcObj 
          * @param destObj 
         */
        public static DeepCopy(srcObj: any, destObj: any): void;
        /**
          * 
          * @param toFreeObject 
          * @returns 
         */
        public static Dispose<T extends IDisposable>(toFreeObject: T): T;
        /**
          * 
          * @param toFreeObjects 
         */
        public static DisposeArray<T extends IDisposable>(toFreeObjects: T[]): void;
        /**
          * 
          * @param toFreeDictionary 
         */
        public static DisposeDictionary(toFreeDictionary: { [key: string | number]: any }): void;
        /**
          * 
          * @param blob 
          * @param fileName 
         */
        public static Download(blob: Blob, fileName: string): void;
        /**
          * 
          * @param data 
          * @returns 
         */
        public static EncodeArrayBufferTobase64(data: Uint8Array | Uint16Array | Uint32Array | Int8Array | Int16Array | Int32Array): string;
        /**
          * 
          * @param enumerator 
          * @returns 
         */
        public static EnumerableToList(enumerator: any): Array<any>;
        /**
          * 
          * @param input 
          * @returns 
         */
        public static FromBase64String(input: string): Uint8Array;
        /**
          * 获取主入口网页运行的本机ip地址
         */
        public static GetLocalHostIp(): string;
        /**
          * 
         */
        public static GetMemoryLimitMBytes(): number;
        /**
          * 
         */
        //!!!newMember
        public static GetProtocal(): string;
        /**
          * 判断是否gzip压缩数据
          * @param rawData 字节数据
          * @returns 
         */
        public static IsCompressedData(rawData: Uint8Array): boolean;
        /**
          * 判断是否为移动浏览器
         */
        public static IsMobileBrowser(): boolean;
        /**
          * 
          * @param src 
          * @returns 
         */
        public static NewList<T>(src: T[]): Array<T>;
        /**
          * 
          * @param objectTypeName 
          * @returns 
         */
        public static NewObject<T>(objectTypeName: string);
        /**
          * 
         */
        public static NullObject<T>(): T;
        /**
          * 弹出打开本地文件对话框，以文本或者二进制数组读取选中文件，以Promise方式返回
          * @param isArrayBuffer 是否以二进制数组方式，缺省false
          * @returns Promise
         */
        public static OpenFile(isArrayBuffer?: boolean): Promise<string | ArrayBuffer>;
        /**
          * 
          * @param rawUrl 
          * @returns 
         */
        public static ParseImageUrl(rawUrl: string): string;
        /**
          * 
          * @param data 
          * @returns 
         */
        public static ParseJsonFromBytes(data: any): any;
        /**
          * 
          * @param b 
          * @returns 
         */
        public static QueryInterface<T>(b: any): any;
        /**
          * 把相对或者绝对url统一转为绝对路径
          * @param url 相对或者绝对路径url
          * @returns 绝对路径url
         */
        public static ToAbsoluteUrl(url: string): string;
        /**
          * 把任意类型转为整数，如果对象为空，返回0
          * @param val 对象
          * @returns 整数
         */
        public static ToInt(val: any): number;
        /**
          * 解压缩gzip数据
          * @param zipData 压缩字节数据 
          * @returns 解压后的数据
         */
        public static Uncompress(zipData: Uint8Array): Uint8Array;
    }

    /**
      * NumberHelper 数字帮助函数
      */
    class NumberHelper {
        /**
          * 
          * @param bytes 
          * @returns 
         */
        public static BytesToMb(bytes: number): number;
        /**
          * 
          * @param value 
          * @param degree 
          * @param minute 
          * @param second 
         */
        public static DecimalToDegree(value: number, degree: RefValue<number>, minute: RefValue<number>, second: RefValue<number>): void;
        /**
          * 
          * @param degree 
          * @param minute 
          * @param second
          * @returns 
         */
        public static DegreeToDecimal(degree: number, minute: number, second: number): number;
        /**
          * 
          * @param val 
          * @param precisionCount 
          * @returns 
         */
        public static RestrictPrecision(val: number, precisionCount?: number): number;
        /**
          * 
          * @param str 
          * @returns 
         */
        public static ToDouble(str: string): number;
        /**
          * 
          * @param str 
          * @returns 
         */
        public static ToInt(str: string): number;
        /**
          * 
          * @param num 
          * @returns 
         */
        public static ToPowerOfTwo(num: number): number;
        /**
          * 
          * @param num 
          * @returns 
         */
        public static ToString(num: number): string;
        /**
          * 
          * @param str 
          * @param pvalue 
          * @returns 
         */
        public static TryParse(str: string, pvalue: RefValue<number>): boolean;
        /**
          * 
          * @param val 
          * @param min 
          * @param max 
          * @returns 
         */
        public static VerifyRange<T>(val: T, min: T, max: T): T;
    }

    /**
      * StringHelper 字符串帮助函数
      */
    class StringHelper {
        /**
          * 
          * @param src 
          * @param lastPart 
          * @returns 
         */
        public static CutLastPart(src: string, lastPart: string): string;
        /**
          * 
          * @param fullPath 
          * @returns 
         */
        public static ExtractDirectoryOnly(fullPath: string): string;
        /**
          * 
          * @param fullPath 
          * @returns 
         */
        public static ExtractFileName(fullPath: string): string;
        /**
          * 
          * @param fullPath 
          * @returns 
         */
        public static ExtractFileNameWithoutSuffix(fullPath: string): string;
        /**
          * 
          * @param fullPath 
          * @returns 
         */
        public static ExtractFileSuffix(fullPath: string): string;
        /**
          * 
          * @param fullPath 
          * @returns 
         */
        public static ExtractFinalDirectoryNamePart(fullPath: string): string;
        /**
          * 
          * @param str 
          * @returns 
         */
        public static ExtractFirstLine(str: string): string;
        /**
          * 
          * @param str 
          * @param fillChar 
          * @param maxLen 
          * @returns 
         */
        public static FillPrefixChar(str: string, fillChar: number, maxLen: number): string;
        /**
          * 
          * @param str 
          * @param fillChar 
          * @param maxLen 
          * @returns 
         */
        public static FillSuffixChar(str: string, fillChar: number, maxLen: number): string;
        /**
          * 
          * @param partsRaw 
          * @returns 
         */
        public static FilterEmptyParts(partsRaw: string[]): Array<string>;
        /**
          * 
          * @param area 
          * @param invalidAsEmpty 
          * @returns 
         */
        public static FormatAreaString(area: number, invalidAsEmpty?: boolean): string;
        /**
          * 
          * @param len 
          * @param invalidAsEmpty 
          * @returns 
         */
        public static FormatLengthString(len: number, invalidAsEmpty?: boolean): string;
        /**
          * 
          * @param points 
          * @param xzPrecision 
          * @param yPrecision 
          * @returns 
         */
        public static FormatVector3Array(points: Vector3[], xzPrecision?: number, yPrecision?: number): string;
        /**
          * 
          * @param baseUrl 
          * @param relativeSubUrl 
          * @returns 
         */
        public static MergeFullUrl(baseUrl: string, relativeSubUrl: string): string;
        /**
          * 
          * @param str 
          * @param sep 
          * @param count 
          * @returns 
         */
        public static ParseDouble(str: string, sep: number[], count: number): Float64Array;
        /**
          * 
          * @param str 
          * @param sep 
          * @param count 
          * @returns 
         */
        public static ParseFloat(str: string, sep: number[], count: number): Float32Array;
        /**
          * 
          * @param str 
          * @param sep 
          * @param count 
          * @returns 
         */
        public static ParseInt(str: string, sep: number[], count: number): Int32Array;
        /**
          * 
          * @param srcStr 
          * @param maxCharCount 
          * @param maxLineCount 
          * @returns 
         */
        public static ReduceSize(srcStr: string, maxCharCount: number, maxLineCount: number): string;
        /**
          * 
          * @param rawPath 
          * @returns 
         */
        public static RegulatePath(rawPath: string): string;
        /**
          * 
          * @param src 
          * @param separator 
          * @returns 
         */
        public static SplitFilterEmpty(src: string, separator: number[]): string[];
        /**
          * 
          * @param src 
          * @param split 
          * @param partBefore 
          * @param partAfter 
          * @returns 
         */
        public static SplitNoCase(src: string, split: string, partBefore: RefValue<string>, partAfter: RefValue<string>): boolean;
        /**
          * 
          * @param srcStr 
          * @param charMaxPerline 
          * @returns 
         */
        public static ToMultipleLines(srcStr: string, charMaxPerline?: number): string;
    }

    /**
      * IHasNo 
      */
    interface IHasNo {
        /**
          * 
         */
        no: number;
    }

    /**
      * IHasName 
      */
    interface IHasName {
        /**
          * 
         */
        name: number;
    }

    /**
      * ArrayHelper 数组帮助函数
      */
    class ArrayHelper {
        /**
          * 
          * @param dest 
          * @param src 
         */
        public static AddRange<T>(dest: Array<T>, src: Array<T>): void;
        /**
          * 
          * @param dest
          * @param src
        public static AddRange(dest: Array<any>, src: Array<any>): void;
        /**
          * 
          * @param array 
         */
        public static Clear(array: Array<any>): void;
        /**
          * 
          * @param src 
          * @param cloneObject 
          * @returns 
         */
        public static CloneArray(src: any, cloneObject?: boolean): Array<any>;
        /**
          * 
          * @param src 
          * @param cloneObject 
          * @returns 
         */
        public static CloneArray2<T extends ICloneable<T>>(src: T[][], cloneObject?: boolean): T[][];
        /**
          * 
          * @param srcArray 
          * @returns 
         */
        public static CloneDataArray<ElemType>(srcArray: any): any;
        /**
          * 
          * @param srcArray 
          * @returns 
         */
        public static CloneDataArray2<ElemType>(srcArray: ElemType[][]): ElemType[][];
        /**
          * 
          * @param size 
          * @returns 
         */
        public static CreateDataArray<ElemType>(size: number): ElemType[];
        /**
          * 
          * @param dim1 
          * @param dim2 
          * @returns 
         */
        public static CreateDataArray2<ElemType>(dim1: number, dim2: number): any;
        /**
          * 
          * @param list 
          * @returns 
         */
        public static CreateEnumerator(list: Array<any>): any;
        /**
          * 
          * @param items 
          * @param excludes 
          * @returns 
         */
        public static Exclude<T>(items: Array<T>, excludes: IEnumerable<T>): Array<T>;
        /**
          * 
          * @param items 
          * @param excludes 
          * @returns 
         */
        public static ExcludeList<T>(items: Array<T>, excludes: Array<T>): Array<T>;
        /**
          * 
          * @param nos 
          * @returns 
         */
        public static NumberToBoolMapping(nos: number[]): boolean[];
        /**
          * 
          * @param items 
          * @param comparer 
          * @param max 
          * @returns 
         */
        public static PickTopItems<T>(items: Array<T>, comparer: IComparer<T>, max?: number): Array<T>;
        /**
          * 
          * @param array 
          * @param item 
         */
        public static RemoveByItem(array: Array<any>, item: any): void;
        /**
          * 
          * @param array 
          * @param comparer 
         */
        public static Sort(array: Array<any>, comparer?: IComparer<any>): void;
        /**
          * 
          * @param strs 
          * @returns 
         */
        public static StringToBoolMapping(strs: string[]): boolean[];
        /**
          * 
          * @param items 
          * @returns 
         */
        public static ToHashSet<T>(items: Array<T>): HashSet<T>;
        /**
          * 
          * @param hashSet 
          * @returns 
         */
        public static ToList<T>(hashSet: HashSet<T>): Array<T>;
        /**
          * 
          * @param items 
          * @returns 
         */
        public static ToNames<T extends IHasName>(items: T[]): number[];
        /**
          * 
          * @param items 
          * @returns 
         */
        public static ToNoDuplicated<T extends IHasNo>(items: T[]): T[];
        /**
          * 
          * @param items 
          * @returns 
         */
        public static ToNos<T extends IHasNo>(items: T[]): number[];
        /**
          * 
          * @param items1 
          * @param items2 
          * @returns 
         */
        public static Union<T>(items1: Array<T>, items2: Array<T>): Array<T>;
    }

    /**
      * SystemTime 系统时间
      */
    class SystemTime {
        /**
          * 开始运行后经过的毫秒数
         */
        public static Now(): number;
    }

    class EncodingHelper {
        public static DecodingGb2String(data: any): string;
        public static Gb2Unicode(gb: number): number;
        public static GetUtf8String(data: Uint8Array, dataLen?: number): string;
        public static StringFromBytes(data: any): string;
        public static Unicode2Gb(uniCode: number): number;
    }

    class IdPairHelper {
        public static FormDirectedIdPair(id1: number, id2: number): QuadtreeHandle;
        public static FormNonDirectedIdPair(id1: number, id2: number): QuadtreeHandle;
        public static GetIdHigh(idPair: QuadtreeHandle): number;
        public static GetIdLow(idPair: QuadtreeHandle): number;
    }

    class ObjectSerializeHelper {
        public static Clone(srcObject: any): any;
        public static FromBytes<T>(data: Uint8Array): T;
        public static FromString(strData: string): any;
        public static FromStringTyped<T>(strData: string): T;
        public static ToBytes(dataObject: any): Uint8Array;
        public static ToString(dataObject: any): string;
    }

    /**
      * Color 颜色对象
      */
    class Color {
        /**
          * 红色分量值0-1
         */
        public r: number;
        /**
          * 绿色分量值0-1
         */
        public g: number;
        /**
          * 蓝色分量值0-1
         */
        public b: number;
        /**
          * 透明度分量值0-1
         */
        public a: number;
        /**
          * 
          * @param r 
          * @param g 
          * @param b 
          * @param a 
         */
        constructor(r?: number, g?: number, b?: number, a?: number);
        /**
          * 
         */
        public clone(): Color;
        /**
          * 
          * @param src 
         */
        public copyFrom(src: Color): void;
        /**
          * 
          * @param other 
          * @returns 
         */
        public equals(other: Color): boolean;
        /**
          * 转为[r,g,b,a]形式数组
         */
        public toArray(): number[];
        /**
          * 转换为黑白亮度值，不同颜色具有不同的权重
         */
        public toBrightness(): number;
        /**
          * 转换为十六进制字符串
         */
        public toHexString(): string;
        /**
          * 
         */
        public toIntArray(): number[];
        /**
          * 
         */
        public toRgbaString(): string;
        /**
          * 
         */
        public toVector4(): Vector4;
        /**
          * 
          * @param result 
         */
        public toVector4ToRef(result: Vector4): void;
        /**
          * 黑色
         */
        public static readonly Black: Color;
        /**
          * 蓝色
         */
        public static readonly Blue: Color;
        /**
          * 褐色
         */
        public static readonly Brown: Color;
        /**
          * 青色
         */
        public static readonly Cyan: Color;
        /**
          * 深灰色
         */
        public static readonly DarkGray: Color;
        /**
          * 灰色
         */
        public static readonly Gray: Color;
        /**
          * 绿色
         */
        public static readonly Green: Color;
        /**
          * 浅绿色
         */
        public static readonly LightGray: Color;
        /**
          * 洋红色
         */
        public static readonly Magenta: Color;
        /**
          * 橘色
         */
        public static readonly Orange: Color;
        /**
          * 紫色
         */
        public static readonly Purple: Color;
        /**
          * 红色
         */
        public static readonly Red: Color;
        /**
          * 透明色
         */
        public static readonly Transparent: Color;
        /**
          * 白色
         */
        public static readonly White: Color;
        /**
          * 黄色
         */
        public static readonly Yellow: Color;
        /**
          * 从[r,g,b,a]数组创建
          * @param rgba 
          * @returns 
         */
        public static FromArray(rgba: number[]): Color;
        /**
          * 从类似#ffff00的十六进制字符串创建
          * @param hex 
          * @returns 
         */
        public static FromHexString(hex: string): Color;
        /**
          * 从四个分量创建颜色。参数必须是0-255的整数值
          * @param r 
          * @param g 
          * @param b 
          * @param a 
          * @returns 
         */
        public static FromIntRgba(r: number, g: number, b: number, a?: number): Color;
        /**
          * 
          * @param src 
          * @returns 
         */
        public static GetHighlight(src: Color): Color;
        /**
          * 
          * @param index 
          * @returns 
         */
        public static GetSystemColor(index: number): Color;
        /**
          * 
          * @param alpha 
          * @returns 
         */
        public static IsTransparentFloatAlpha(alpha: number): boolean;
        /**
          * 
          * @param alpha 
          * @returns 
         */
        public static IsTransparentIntAlpha(alpha: number): boolean;
        /**
          * 计算两个颜色的插值
          * @param start 起始颜色
          * @param end 终止颜色
          * @param mount 起始量
          * @returns 插值色
         */
        public static Lerp(start: Color, end: Color, mount: number): Color;
        /**
          * 
          * @param src 
          * @param ratio 
          * @returns 
         */
        public static Multiply(src: Color, ratio: number): Color;
    }

    /**
      * Rect 二维矩形对象
      */
    class Rect {
        /**
          * 左下角x坐标
         */
        public x: number;
        /**
          * 左下角y坐标
         */
        public y: number;
        /**
          * 宽度
         */
        public width: number;
        /**
          * 高度
         */
        public height: number;
        /**
          * 
          * @param x 
          * @param y 
          * @param width 
          * @param height 
         */
        constructor(x?: number, y?: number, width?: number, height?: number);
        /**
          * 底部y坐标
         */
        public readonly bottom: number;
        /**
          * 
         */
        public readonly center: Vector2;
        /**
          * 是否为空
         */
        public readonly isEmpty: boolean;
        /**
          * 左侧x坐标
         */
        public readonly left: number;
        /**
          * 右侧x坐标
         */
        public readonly right: number;
        /**
          * 顶部y坐标
         */
        public readonly top: number;
        /**
          * 计算中心点，存放到结果对象中
          * @param result 
         */
        public centerToRef(result: Vector2): void;
        /**
          * 复制对象
         */
        public clone(): Rect;
        /**
          * 是否包含指定坐标点
          * @param x x坐标
          * @param y y坐标
          * @returns
         */
        public contains(x: number, y: number): boolean;
        /**
          * 是否包含指定点
          * @param point 指定点
          * @returns
         */
        public containsPoint(point: Vector2): boolean;
        /**
          * 
          * @param rect 
          * @returns 
         */
        public containsRect(rect: Rect): boolean;
        /**
          * 
          * @param src 从指定矩形拷贝
         */
        public copyFrom(src: Rect): void;
        /**
          * 
          * @param other 是否和指定矩形相同
          * @returns 
         */
        public equals(other: Rect): boolean;
        /**
          * 扩展矩形高度和宽度
          * @param xInc 扩展宽度
          * @param yInc 扩展高度
          * @returns 新矩形
         */
        public inflate(xInc: number, yInc: number): Rect;
        /**
          * 扩展矩形高度和宽度，结果存放在本矩形
          * @param xInc 扩展宽度
          * @param yInc 扩展高度
         */
        public inflateInPlace(xInc: number, yInc: number): void;
        /**
          * 与指定矩形求交集
          * @param rect 指定矩形
          * @returns 交集矩形结果
         */
        public intersect(rect: Rect): Rect;
        /**
          * 与指定矩形求交集，结果放在本矩形
          * @param rect 指定矩形
         */
        public intersectInPlace(rect: Rect): void;
        /**
          * 判断是否与指定矩形相交
          * @param rect 指定矩形
          * @returns 布尔值
         */
        public intersects(rect: Rect): boolean;
        /**
          * 调整矩形使得宽度和高度为正值
         */
        public normalize(): void;
        /**
          * 计算缩放后的新矩形并返回
          * @param scale 缩放比例
          * @returns 新矩形
         */
        public scale(scale: number): Rect;
        /**
          * 缩放矩形到指定结果中
          * @param scale 缩放比例
          * @param result 结果值
         */
        public scaleToRef(scale: number, result: Rect): void;
        /**
          * 直接设置矩形的值
          * @param x 
          * @param y 
          * @param width 
          * @param height 
         */
        public set(x: number, y: number, width: number, height: number): void;
        /**
          * 与指定矩形求并集
          * @param rect 指定矩形
          * @returns 并集矩形结果
         */
        public union(rect: Rect): Rect;
        /**
          * 与指定矩形求并集，结果放在本矩形
          * @param rect 指定矩形
         */
        public unionInPlace(rect: Rect): void;
        /**
          * 与指定点求并集，结果放在本矩形
          * @param point 指定点
         */
        public unionPointInPlace(point: Vector2): void;
        /**
          * 空矩形常量
         */
        public static readonly Empty: Rect;
        /**
          * 计算点数组的包围矩形
          * @param points 点数组
          * @returns 包围矩形
         */
        public static CalcRange(points: Vector2[]): Rect;
        /**
          * 从两点的包围矩形创建矩形
          * @param point1 点1
          * @param point2 点2
          * @returns 矩形对象
         */
        public static CreateFromPoint(point1: Vector2, point2: Vector2): Rect;
    }

    /**
      * Matrix2 二维矩阵对象
      */
    class Matrix2 {
        /**
          * 
         */
        public m11: number;
        /**
          * 
         */
        public m12: number;
        /**
          * 
         */
        public m21: number;
        /**
          * 
         */
        public m22: number;
        /**
          * 
         */
        public xOffset: number;
        /**
          * 
         */
        public yOffset: number;
        /**
          * 
         */
        public clone(): Matrix2;
        /**
          * 
          * @param srcMat 
         */
        public copyFrom(srcMat: Matrix2): void;
        /**
          * 
         */
        public determinant(): number;
        /**
          * 
         */
        public invertInPlace(): boolean;
        /**
          * 
         */
        public isIdentity(): boolean;
        /**
          * 
         */
        public isZero(): boolean;
        /**
          * 
         */
        public makeIdentity(): void;
        /**
          * 
          * @param matrix 
         */
        public multiplyInPlace(matrix: Matrix2): void;
        /**
          * 
          * @param angle 
         */
        public rotateInplace(angle: number): void;
        /**
          * 
          * @param xScale 
          * @param yScale 
         */
        public scaleInPlace(xScale: number, yScale: number): void;
        /**
          * 
          * @param point 
          * @returns 
         */
        public transform(point: Vector2): Vector2;
        /**
          * 
          * @param points 
          * @returns 
         */
        public transformPoints(points: Vector2[]): Vector2[];
        /**
          * 
          * @param rect 
          * @returns 
         */
        public transformRect(rect: Rect): Rect;
        /**
          * 
          * @param point 
          * @param result 
         */
        public transformToRef(point: Vector2, result: Vector2): void;
        /**
          * 
          * @param xOffset 
          * @param yOffset 
         */
        public translateInPlace(xOffset: number, yOffset: number): void;
        /**
          * 
         */
        public static readonly Identity: Matrix2;
        /**
          * 
          * @param m11 
          * @param m12 
          * @param xOffset 
          * @param m21 
          * @param m22 
          * @param yOffset 
          * @returns 
         */
        public static Create(m11: number, m12: number, xOffset: number, m21: number, m22: number, yOffset: number): Matrix2;
        /**
          * 
          * @param srcPt1 
          * @param destPt1 
          * @param srcPt2 
          * @param destPt2 
          * @returns 
         */
        public static CreateFromPoint2(srcPt1: Vector2, destPt1: Vector2, srcPt2: Vector2, destPt2: Vector2): Matrix2;
        /**
          * 
          * @param srcPt1 
          * @param destPt1 
          * @param srcPt2 
          * @param destPt2 
          * @param srcPt3 
          * @param destPt3 
          * @returns 
         */
        public static CreateFromPoint3(srcPt1: Vector2, destPt1: Vector2, srcPt2: Vector2, destPt2: Vector2, srcPt3: Vector2, destPt3: Vector2): Matrix2;
        /**
          * 
          * @param angle 
          * @returns 
         */
        public static CreateRotation(angle: number): Matrix2;
        /**
          * 
          * @param xScale 
          * @param yScale 
          * @returns 
         */
        public static CreateScale(xScale: number, yScale: number): Matrix2;
        /**
          * 
          * @param xOffset 
          * @param yOffset 
          * @returns 
         */
        public static CreateTranslation(xOffset: number, yOffset: number): Matrix2;
    }

    /**
      * Size3 三维大小对象
      */
    class Size3 {
        /**
          * 
          * @param x 
          * @param y 
          * @param z 
         */
        constructor(x?: number, y?: number, z?: number);
        /**
          * 三个维度中的最大值
         */
        public readonly max: number;
        /**
          * 三个维度中的最小值
         */
        public readonly min: number;
        /**
          * x值
         */
        public x: number;
        /**
          * y值
         */
        public y: number;
        /**
          * z值
         */
        public z: number;
        /**
          * 复制对象
         */
        public clone(): Size3;
        /**
          * 
          * @param obj 
          * @returns 
         */
        public equals(obj: Size3): boolean;
        /**
          * 
          * @param ratio 
          * @returns 
         */
        public scale(ratio: number): Size3;
        /**
          * 
         */
        public toVector3(): Vector3;
    }

    /**
      * Triangle3 三维三角形对象
      */
    class Triangle3 {
        /**
          * 
         */
        public v0: number;
        /**
          * 
         */
        public v1: number;
        /**
          * 
         */
        public v2: number;
        /**
          * 
          * @param v0 
          * @param v1 
          * @param v2 
         */
        constructor(v0?: number, v1?: number, v2?: number);
        /**
          * 
         */
        public clone(): Triangle3;
        /**
          * 
          * @param triangles 
          * @returns 
         */
        public static ToIndexArray(triangles: Triangle3[]): Uint32Array;
    }

    /**
      * Vertex3 三维顶点对象
      */
    class Vertex3 {
        /**
          * 
         */
        public x: number;
        /**
          * 
         */
        public y: number;
        /**
          * 
         */
        public z: number;
        /**
          * 
         */
        public nx: number;
        /**
          * 
         */
        public ny: number;
        /**
          * 
         */
        public nz: number;
        /**
          * 
         */
        public u: number;
        /**
          * 
         */
        public v: number;
        /**
          * 
          * @param x 
          * @param y 
          * @param z 
          * @param nx 
          * @param ny 
          * @param nz 
          * @param u 
          * @param v 
         */
        constructor(x?: number, y?: number, z?: number, nx?: number, ny?: number, nz?: number, u?: number, v?: number);
        /**
          * 
         */
        public clone(): Vertex3;
    }

    /**
      * Box 包围盒对象，是一个三维长方体
      */
    class Box {
        /**
          * 最小值
         */
        public min: Vector3;
        /**
          * 最大值
         */
        public max: Vector3;
        /**
          * 
          * @param min 
          * @param max 
         */
        constructor(min?: Vector3, max?: Vector3);
        /**
          * 中心点
         */
        public readonly center: Vector3;
        /**
          * 半径
         */
        public readonly radius: number;
        /**
          * 三维尺寸
         */
        public readonly size: Size3;
        /**
          * 复制对象
         */
        public clone(): Box;
        /**
          * 是否包含三维向量
          * @param v 三维向量
          * @returns 
         */
        public contains(v: Vector3): boolean;
        /**
          * 
          * @param box 
          * @returns 
         */
        public containsBox(box: Box): boolean;
        /**
          * 
          * @param xInc 
          * @param yInc 
          * @param zInc 
         */
        public inflateInPlace(xInc: number, yInc: number, zInc: number): void;
        /**
          * 
          * @param other 
          * @returns 
         */
        public intersects(other: Box): boolean;
        /**
          * 转为采集包围点
         */
        public toBoundingPoints(): Vector3[];
        /**
          * 
          * @param result 
         */
        public toBoundingPointsToRef(result: Array<Vector3>): void;
        /**
          * 转为二维矩形
         */
        public toRect(): Rect;
        /**
          * 计算与另一个包围盒的并集，结果存储于本对象
          * @param other 
         */
        public unionInPlace(other: Box): void;
        /**
          * 计算三维点数组的包围盒
          * @param points 三维点数组
          * @returns 包围盒
         */
        public static CalcRange(points: Vector3[]): Box;
        /**
          * 从Vector3Array对象计算包围盒
          * @param vs 点数组
          * @param start 起始下标，可选，缺省为0
          * @param count 个数，可选，缺省为全部长度
          * @returns 包围盒
         */
        public static CalcRangeFromArray(vs: Vector3Array, start?: number, count?: number): Box;
        /**
          * 
         */
        public static CreateEmptyBoundingPoints(): Array<Vector3>;
        /**
          *就算两对三维坐标的包围盒 
          * @param minX 
          * @param minY 
          * @param minZ 
          * @param maxX 
          * @param maxY 
          * @param maxZ 
          * @returns 包围盒
         */
        public static CreateFromDouble(minX: number, minY: number, minZ: number, maxX: number, maxY: number, maxZ: number): Box;
        /**
          * 
          * @param boundBox 
          * @returns 
         */
        public static FromBoundingBox(boundBox: BoundingBox): Box;
        /**
          * 判断两个包围盒是否相交
          * @param box0 
          * @param box1 
          * @returns 
         */
        public static Intersects(box0: Box, box1: Box): boolean;
        /**
          * 判断两对点定义的包围盒是否相交
          * @param min 包围盒0最小值
          * @param max 包围盒0最大值
          * @param min1 包围盒1最小值
          * @param max1 包围盒1最大值
          * @returns 
         */
        public static IntersectsMinMax(min: Vector3, max: Vector3, min1: Vector3, max1: Vector3): boolean;
        /**
          * 计算两个包围盒的并集
          * @param box1 
          * @param box2 
          * @returns 
         */
        public static Union(box1: Box, box2: Box): Box;
    }

    /**
      * Segment3 三维线段对象
      */
    class Segment3 {
        /**
          * 
          * @param s 
          * @param e 
         */
        constructor(s?: Vector3, e?: Vector3);
        /**
          * 终点
         */
        public end: Vector3;
        /**
          * 起点
         */
        public start: Vector3;
        /**
          * 从源线段复制
          * @param src 源线段
         */
        public copyFrom(src: Segment3): void;
        /**
          * 判断本线段是否与三点定义的三角形相交
          * @param tr1 三角形顶点1
          * @param tr2 三角形顶点2
          * @param tr3 三角形顶点3
          * @param isect 如果相交，返回交点坐标，否则无效值
          * @returns 相交返回true
         */
        public intersectsTriangle(tr1: Vector3, tr2: Vector3, tr3: Vector3, isect: Vector3): boolean;
        /**
          * 计算两个线段之间的最短距离
          * @param line1 
          * @param line2 
          * @returns 距离值
         */
        public static DistanceLL(line1: Segment3, line2: Segment3): number;
        /**
          * 计算两个线段之间的最短线段
          * @param line1 
          * @param line2 
          * @param distLineSeg 最短距离的线段坐标
          * @returns 距离值
         */
        public static DistanceLL2(line1: Segment3, line2: Segment3, distLineSeg: Segment3): number;
        /**
          * 计算点到线段的距离
          * @param point 
          * @param line 
          * @returns 距离值
         */
        public static DistancePL(point: Vector3, line: Segment3): number;
        /**
          * 计算点到线段的距离并保存最短距离线段
          * @param point 
          * @param line 
          * @param distPoint 最短距离的线段坐标
          * @returns 距离值
         */
        public static DistancePL2(point: Vector3, line: Segment3, distPoint: Vector3): number;
    }

    /**
      * VectorHelper 向量结构的帮助函数
      */
    class VectorHelper {
        /**
          * 计算点数组包围盒
          * @param positions 点数组
          * @param start 起始索引
          * @param count 个数
          * @returns Box
         */
        public static CalcBoundingBox(positions: Vector3[] | Vector3Array, start?: number, count?: number): Box;
        /**
          * 计算索引点数组裁剪包围盒
          * @param positions 做标书组
          * @param indices 索引数组
          * @param indexStart 索引起始值
          * @param indexCount 索引个数
          * @returns 包围盒
         */
        public static CalcBoundingBoxIndexed(positions: Vector3[] | Vector3Array, indices: number[] | Int32Array | Uint32Array, indexStart: number, indexCount: number): Box;
        /**
          * 
          * @param positions 
          * @param range 
          * @param start 
          * @param count 
          * @returns 
         */
        public static CalcMinMaxHeight(positions: Vector3Array, range: Rect, start?: number, count?: number): Vector2;
        /**
          * 计算法向量数组
          * @param positions 点数组
          * @param indices 索引数组
          * @returns 法向量数组
         */
        public static CalcNormals(positions: Vector3[], indices: number[] | Int32Array | Uint32Array): Vector3[];
        /**
          * 从浮点数数组计算法向量
          * @param positions 浮点数数组
          * @param indices 索引数组
          * @returns 法向量数组
         */
        public static CalcNormalsFloatArray(positions: Float32Array, indices: number[] | Int32Array | Uint32Array): Float32Array;
        /**
          * 
          * @param zDirection 
          * @param upAxis 
          * @returns 
         */
        public static CalcQuternionOfZDirection(zDirection: Vector3, upAxis: Vector3): Quaternion;
        /**
          * 复制三维点数组
          * @param points 三维点数组
          * @returns 复制的数组
         */
        public static CloneVector3Array(points: Vector3[]): Array<Vector3>;
        /**
          * 从最小最大点创建裁剪包围盒
          * @param min 
          * @param max 
          * @returns 包围盒
         */
        public static CreateBoundingBox(min: Vector3, max: Vector3): BoundingBox;
        /**
          * 从中心点和半径创建BoundingBox 
          * @param center 中心点
          * @param radius 半径
          * @returns BoundingBox
         */
        public static CreateBoundingBoxFromCenter(center?: Vector3, radius?: number): BoundingBox;
        /**
          * 从最小最大点创建裁剪信息对象
          * @param min 
          * @param max 
          * @returns 
         */
        public static CreateBoundingInfo(min: Vector3, max: Vector3): BoundingInfo;
        /**
          * 
          * @param center 
          * @param radius 
          * @returns 
         */
        public static CreateBoundingSphere(center?: Vector3, radius?: number): BoundingSphere;
        /**
          * 
          * @param center 
          * @param radius 
          * @returns 
         */
        public static CreateBoxFromCenter(center?: Vector3, radius?: number): Box;
        /**
          * 创建Ray对象
          * @param start 起点
          * @param end 终点
          * @returns 
         */
        public static CreateRay(start: Vector3, end: Vector3): Ray;
        /**
          * 过滤重复二维点
          * @param points 点数组
          * @param minDis 最小距离
          * @param clearPolyBeginEnd 是否清除多边形起始重复点
          * @returns 
         */
        public static FilterDuplicatedVector2(points: Vector2[], minDis?: number, clearPolyBeginEnd?: boolean): Vector2[];
        /**
          * 过滤重复三维点
          * @param points 点数组
          * @param minDis 最小距离
          * @param clearPolyBeginEnd 是否清除多边形起始重复点
          * @returns 
         */
        public static FilterDuplicatedVector3(points: Vector3[], minDis?: number, clearPolyBeginEnd?: boolean): Vector3[];
        /**
          * 从xy顺序排列浮点数组创建二维点数组，相邻两
          * @param floats 浮点数组
          * @returns 二维点数组
         */
        public static FloatToVector2Array(floats: FloatArray): Array<Vector2>;
        /**
          * 从xyz顺序排列浮点数组创建三维点数组，相邻两
          * @param floats 浮点数组
          * @returns 三维点数组
         */
        public static FloatToVector3Array(floats: FloatArray): Array<Vector3>;
        /**
          * 
          * @param coordSystem 
          * @param earthBasePoint 
          * @param holes 
          * @returns 
         */
        public static HolesEarthToLocalCoord(coordSystem: ICoordSystem3, earthBasePoint: Vector3, holes: Vector3[][]): Vector3[][];
        /**
          * 
          * @param coordSystem 
          * @param earthBasePoint 
          * @param holes 
          * @returns 
         */
        public static HolesLocalToEarthCoord(coordSystem: ICoordSystem3, earthBasePoint: Vector3, holes: Vector3[][]): Vector3[][];
        /**
          * 根据指定的个数在折线上计算插值点
          * @param linePoints 折线点
          * @param count 中间插值点的个数
          * @returns 包括起点和其他插值点的数组
         */
        public static InterpolateLineByCount(linePoints: Vector3[], count: number): Vector3[];
        /**
          * 根据指定的距离步长在折线上计算插值点，结束点如果不在准确步长上，将不会包括
          * @param linePoints 折线点
          * @param stepLen 步长，米
          * @returns 包括起点和其他插值点的数组
         */
        public static InterpolateLineByStep(linePoints: Vector3[], stepLen: number): Vector3[];
        /**
          * 判断平面是否与包围盒相交
          * @param plane 平面
          * @param box 包围盒
          * @returns 
         */
        public static IntersectPlaneBox(plane: Plane, box: Box): boolean;
        /**
          * 判断平面是否与两对点定义的包围盒相交
          * @param plane 平面
          * @param minimum 最小点
          * @param maximum 最大点
          * @returns 
         */
        public static IntersectPlaneMinMax(plane: Plane, minimum: Vector3, maximum: Vector3): boolean;
        /**
          * 判断射线是否与裁剪包围盒相交
          * @param ray 
          * @param boundingBox 
          * @returns 
         */
        public static IntersectRayBoundingBox(ray: Ray, boundingBox: BoundingBox): NullableValue<number>;
        /**
          * 判断射线是否与包围盒相交
          * @param ray 
          * @param box 
          * @returns 
         */
        public static IntersectRayBox(ray: Ray, box: Box): NullableValue<number>;
        /**
          * 判断射线是否与两点定义的包围盒相交
          * @param ray 
          * @param minimum 
          * @param maximum 
          * @returns 
         */
        public static IntersectRayMinMax(ray: Ray, minimum: Vector3, maximum: Vector3): NullableValue<number>;
        /**
          * 判断射线是否与三点定义的三角形相交
          * @param ray 
          * @param v0 
          * @param v1 
          * @param v2 
          * @returns 
         */
        public static IntersectRayTriangle(ray: Ray, v0: Vector3, v1: Vector3, v2: Vector3): IntersectionInfo;
        /**
          * 
          * @param v1 
          * @param v2 
          * @param plane 
          * @param resultV 
          * @param resultDist 
          * @returns 
         */
        public static IntersectSegmentPlane(v1: Vector3, v2: Vector3, plane: Plane, resultV: Vector3, resultDist?: RefValue<number>): boolean;
        /**
          * 
          * @param pt1 
          * @param pt2 
          * @param ptToTest 
          * @returns 
         */
        public static IsBetween(pt1: Vector3, pt2: Vector3, ptToTest: Vector3): boolean;
        /**
          * 
          * @param holes 
          * @returns 
         */
        public static MakeHolesClockwise(holes: Vector3[][]): Vector3[][];
        /**
          * 返回两个向量中个分量最大值构成的新向量
          * @param v1 
          * @param other 
          * @returns 
         */
        public static MaxVector(v1: Vector3, other: Vector3): Vector3;
        /**
          * 返回两个向量中个分量最小值构成的新向量
          * @param v1 
          * @param other 
          * @returns 
         */
        public static MinVector(v1: Vector3, other: Vector3): Vector3;
        /**
          * 返回射线上与起点为指定距离的点坐标
          * @param ray 
          * @param distance 
          * @returns 
         */
        public static RayPosition(ray: Ray, distance: number): Vector3;
        /**
          * 
          * @param triPoints 
          * @returns 
         */
        public static ReverseTriangleClockwiseOrder(triPoints: Vector3[]): Vector3[];
        /**
          * 
          * @param points 
          * @param bounds 
         */
        public static ScaleToBounds(points: Vector3[], bounds: Box): void;
        /**
          * Color转为Color3
          * @param c 
          * @returns 
         */
        public static ToColor3(c: Color): BABYLON.Color3;
        /**
          * Color转为Color4
          * @param c 
          * @returns 
         */
        public static ToColor4(c: Color): BABYLON.Color4;
        /**
          * 点数组坐标转换为相对于origin点的局部坐标并返回
          * @param points 坐标数组
          * @param origin 原点，可选，缺省使用第0点
          * @returns 
         */
        public static ToLocalVector3Array(points: Vector3[], origin?: Vector3): Array<Vector3>;
        /**
          * 点数组坐标转换为相对于origin点的局部，直接修改原数组中的值
          * @param points 坐标数组
          * @param origin 原点，可选，缺省使用第0点
         */
        public static ToLocalVector3ArrayInPlace(points: Vector3[], origin?: Vector3): void;
        /**
          * Vector3转为Vector2
          * @param v 
          * @returns 
         */
        public static ToVector2(v: Vector3): Vector2;
        /**
          * 转为Vector2数组
          * @param points 
          * @returns 
         */
        public static ToVector2Array(points: Vector3[]): Array<Vector2>;
        /**
          * Vector2转为Vector3，y值设为0
          * @param point 
          * @returns 
         */
        public static ToVector3(point: Vector2): Vector3;
        /**
          * 转为Vector3数组
          * @param points 
          * @returns 
         */
        public static ToVector3Array(points: Vector2[]): Array<Vector3>;
        /**
          * 
          * @param box 
          * @param transFunc 
          * @returns 
         */
        public static TransformBox(box: Box, transFunc: (points: Vector3[]) => Vector3[]): Box;
        /**
          * 
          * @param value 
          * @param rotation 
          * @returns 
         */
        public static TransformByQuaternion(value: Vector3, rotation: Quaternion): Vector3;
        /**
          * 
          * @param sourceArray 
          * @param matrix 
          * @param destinationArray 
         */
        public static TransformPoints(sourceArray: Vector3[], matrix: Matrix, destinationArray: Vector3[]): void;
        /**
          * 计算包围盒数组的包围盒
          * @param boundsArray 
          * @returns 
         */
        public static UnionBoxes(boundsArray: Array<Box>): Box;
        /**
          * 把开发员信息窗口中获取的xy格式数组转为Vector2数组
          * @param xyArray xy格式数组
          * @returns 
         */
        public static Vector2ArrayFromXyArray(xyArray: number[][]): Array<Vector2>;
        /**
          * 把开发员信息窗口中获取的xyz格式数组转为Vector3数组
          * @param xyzArray xyz格式数组
          * @param specifiedY 如果指定该值，则统一将y值赋为该值，否则保持原值
          * @returns 
         */
        public static Vector3ArrayFromXyzArray(xyzArray: number[][], specifiedY?: number): Array<Vector3>;
    }

    class FloatTypeArrayBase<TStruct, TData> {
        constructor(data: Float32Array, strideSize: number);
        public readonly data: Float32Array;
        public readonly length: number;
        protected elemToRef(index: number, result: TStruct): void;
        protected getElemAt(index: number): TStruct;
        protected setElemAt(index: number, value: TStruct): void;
        public getAt(index: number): TStruct;
        public getToRef(index: number, result: TStruct): void;
        public setAt(index: number, value: TStruct): void;
        public toElementArray(): Array<TStruct>;
    }

    class Vector3Array extends FloatTypeArrayBase<Vector3, number> {
        constructor(data: Float32Array);
        protected elemToRef(index: number, result: Vector3): void;
        protected getElemAt(index: number): Vector3;
        protected setElemAt(index: number, value: Vector3): void;
        public clone(): Vector3Array;
        public static Create(size: number): Vector3Array;
        public static CreateFromArray(vs: Vector3[]): Vector3Array;
    }

    class Vector2Array extends FloatTypeArrayBase<Vector2, number> {
        constructor(data: Float32Array);
        protected elemToRef(index: number, result: Vector2): void;
        protected getElemAt(index: number): Vector2;
        protected setElemAt(index: number, value: Vector2): void;
        public clone(): Vector2Array;
        public static Create(size: number): Vector2Array;
        public static CreateFromArray(vs: Vector2[]): Vector2Array;
    }

    class Vertex3Array extends FloatTypeArrayBase<Vertex3, number> {
        constructor(data: Float32Array);
        protected elemToRef(index: number, result: Vertex3): void;
        protected getElemAt(i: number): Vertex3;
        protected setElemAt(i: number, value: Vertex3): void;
        public clone(): Vertex3Array;
        public getPosition(index: number): Vector3;
        public getPositionToRef(index: number, result: Vector3): void;
        public getTextureCoord(index: number): Vector2;
        public getTextureCoordToRef(index: number, result: Vector2): void;
        public setHeight(index: number, value: number): void;
        public setPosition(index: number, value: Vector3): void;
        public setTextureCoord(index: number, value: Vector2): void;
        public static Create(size: number): Vertex3Array;
    }

    class UintTypeArrayBase<TStruct, TData> {
        constructor(data: Uint32Array, strideSize: number);
        public readonly data: Uint32Array;
        public readonly length: number;
        protected elemToRef(index: number, result: TStruct): void;
        protected getElemAt(index: number): TStruct;
        protected setElemAt(index: number, value: TStruct): void;
        public getAt(index: number): TStruct;
        public getToRef(index: number, result: TStruct): void;
        public setAt(index: number, value: TStruct): void;
        public toElementArray(): Array<TStruct>;
    }

    class Triangle3Array extends UintTypeArrayBase<Triangle3, number> {
        constructor(data: Uint32Array);
        protected elemToRef(index: number, result: Triangle3): void;
        protected getElemAt(index: number): Triangle3;
        protected setElemAt(index: number, value: Triangle3): void;
        public clone(): Triangle3Array;
        public reverseTriangleOrder(): void;
        public static Create(size: number): Triangle3Array;
    }

    class TypeArrayHelper {
        public static AddIntValue(arr: Uint32Array, val: number): void;
        public static CreateJoinTriangleIndiceArrays(arrs: Array<Uint32Array>): Uint32Array;
        public static GetTrianglePoints(vts: Vector3Array, tris: Triangle3Array): Vector3Array;
        public static GetTrianglePointsDirect(vertexes: Float32Array, indices: Uint32Array, destArray: Float32Array, destStartIndex?: number): void;
        public static JoinFloat32Arrays(arrs: Array<Float32Array>): Float32Array;
        public static JoinNumberArrays(arrs: Array<number[]>): number[];
        public static JoinUint32Arrays(arrs: Array<Uint32Array>): Uint32Array;
        public static ToTriangleArray(indices: number[], reverseTriClockDirection: boolean): Triangle3Array;
        public static ToVector2Array(vs: Vector2[]): Vector2Array;
        public static ToVector3Array(vs: Vector3[]): Vector3Array;
        public static Vector2ToFloat(vs: Vector2[]): Float32Array;
        public static Vector3ToFloat(vs: Vector3[]): Float32Array;
        public static Vertex3ToFloat(vs: Vertex3[]): Float32Array;
    }

    interface IProjection {
        project(point: Vector2): Vector2;
        unproject(point: Vector2): Vector2;
    }

    class Matrix2Projection implements IProjection {
        public matrix: Matrix2;
        constructor(matrix: Matrix2);
        public project(point: Vector2): Vector2;
        public unproject(point: Vector2): Vector2;
    }

    /**
      * ICoordSystem3 
      */
    interface ICoordSystem3 {
        /**
          * 获取当前坐标体系下的二维计算函数接口
         */
        math2: IMath2;
        /**
          * 获取当前坐标体系下的三维计算函数接口
         */
        math3: IMath3;
        /**
          * 
          * @param result 
         */
        calcProjectMatrixToRef(result: Matrix): void;
        /**
          * 
          * @param position 
          * @returns 
         */
        calcRotationMatrix(position: Vector3): Matrix;
        /**
          * 计算指定位置对应的的世界坐标向上方向，在地球不同经纬度位置是不同的
          * @param pos 指定地球坐标位置
          * @returns 
         */
        calcUpVector(pos: Vector3): Vector3;
        /**
          * 变换地球坐标到局部坐标
          * @param originCenter 参考原点
          * @param earthPoint 地球坐标
          * @returns 局部坐标
         */
        earthToLocal(originCenter: Vector3, earthPoint: Vector3): Vector3;
        /**
          * 变换地球坐标数组到局部坐标数组
          * @param originCenter 参考原点
          * @param earthPoints 地球坐标数组
          * @returns 局部坐标数组
         */
        earthToLocalArray(originCenter: Vector3, earthPoints: Vector3[]): Vector3[];
        /**
          * 变换地球坐标，存放到指定结果
          * @param originCenter 参考原点
          * @param earthPoint 地球坐标
          * @param result 计算记过
         */
        earthToLocalToRef(originCenter: Vector3, earthPoint: Vector3, result: Vector3): void;
        /**
          * 换算经纬度数值到对应的米数。经度与米的比例与所处参照纬度有关
          * @param earthDegree 经度或者纬度数值
          * @param latitude 计算参照的纬度，缺省为0，即赤道
          * @returns 米数
         */
        earthToMeter(earthDegree: number, latitude?: number): number;
        /**
          * 变换地球坐标到世界坐标
          * @param point 地球坐标
          * @returns 世界坐标
         */
        earthToWorld(point: Vector3): Vector3;
        /**
          * 变换地球坐标数组为世界坐标数组
          * @param points 地球坐标
          * @returns 世界坐标数组
         */
        earthToWorldArray(points: Vector3[]): Vector3[];
        /**
          * 变换地址坐标，存放到指定结果
          * @param point 地球坐标
          * @param result 结果
         */
        earthToWorldToRef(point: Vector3, result: Vector3): void;
        /**
          * 变换局部坐标到地球坐标
          * @param originCenter 参考原点
          * @param localPoint 本地坐标
          * @returns 地球坐标
         */
        localToEarth(originCenter: Vector3, localPoint: Vector3): Vector3;
        /**
          * 变换局部坐标到地球坐标
          * @param originCenter 参考原点
          * @param localPoints 局部坐标
          * @returns 地球坐标
         */
        localToEarthArray(originCenter: Vector3, localPoints: Vector3[]): Vector3[];
        /**
          * 变换局部坐标地球坐标
          * @param originCenter 参考原点
          * @param localPoint 局部坐标
          * @param result 地球坐标结果
         */
        localToEarthToRef(originCenter: Vector3, localPoint: Vector3, result: Vector3): void;
        /**
          * 变换米数到经纬度数，不同纬度的经度是不同的
          * @param meter 米数
          * @param latitude 计算所处纬度，如果不指定，缺省为赤道
          * @returns 经度或者纬度
         */
        meterToEarth(meter: number, latitude?: number): number;
        /**
          * 
          * @param screenPoint 
          * @param depth 
          * @returns 
         */
        screenToWorld(screenPoint: Vector2, depth: number): Vector3;
        /**
          * 
          * @param pt 
          * @returns 
         */
        screenToWorldLine(pt: Vector2): Vector3[];
        /**
          * 
          * @param screenPoint 
          * @param depth 
          * @param result 
         */
        screenToWorldToRef(screenPoint: Vector2, depth: number, result: Vector3): void;
        /**
          * 
          * @param position 
          * @param lightDirection 
          * @returns 
         */
        transformLightDirection(position: Vector3, lightDirection: Vector3): Vector3;
        /**
          * 
          * @param position 
          * @param lightDirection 
          * @param result 
         */
        transformLightDirectionToRef(position: Vector3, lightDirection: Vector3, result: Vector3): void;
        /**
          * 变换世界坐标到地球坐标
          * @param point 世界坐标
          * @returns 地球坐标
         */
        worldToEarth(point: Vector3): Vector3;
        /**
          * 变换世界坐标数组到地球坐标数组
          * @param points 世界坐标数组
          * @returns 地球坐标数组
         */
        worldToEarthArray(points: Vector3[]): Vector3[];
        /**
          * 变换世界坐标到地球坐标
          * @param point 世界坐标
          * @param result 地球坐标结果
         */
        worldToEarthToRef(point: Vector3, result: Vector3): void;
        /**
          * 
          * @param worldPoint 
          * @returns 
         */
        worldToScreen(worldPoint: Vector3): Vector2;
        /**
          * 
          * @param worldPoint 
          * @returns 
         */
        worldToScreen3(worldPoint: Vector3): Vector3;
        /**
          * 
          * @param worldPoint 
          * @param result 
         */
        worldToScreen3ToRef(worldPoint: Vector3, result: Vector3): void;
        /**
          * 
          * @param worldPoint 
          * @param result 
         */
        worldToScreenToRef(worldPoint: Vector3, result: Vector2): void;
    }

    /**
      * IMath2 
      */
    interface IMath2 {
        /**
          * 
          * @param x1 
          * @param y1 
          * @param x2 
          * @param y2 
          * @returns 
         */
        Angle(x1: number, y1: number, x2: number, y2: number): number;
        /**
          * 
          * @param points 
          * @returns 
         */
        Area(points: Vector2[]): number;
        /**
          * 
          * @param points 
          * @param radius 
          * @param isRoundJoin 
          * @param isRoundEnd 
          * @param isClosed 
          * @returns 
         */
        Buffer(points: Vector2[], radius: number, isRoundJoin: boolean, isRoundEnd: boolean, isClosed: boolean): Vector2[];
        /**
          * 
          * @param center 
          * @param radius 
          * @returns 
         */
        BufferPoint(center: Vector2, radius: number): Vector2[];
        /**
          * 
          * @param x1 
          * @param y1 
          * @param x2 
          * @param y2 
          * @returns 
         */
        Distance(x1: number, y1: number, x2: number, y2: number): number;
        /**
          * 
          * @param pt1 
          * @param pt2 
          * @returns 
         */
        DistancePoint(pt1: Vector2, pt2: Vector2): number;
        /**
          * 
          * @param pt 
          * @param linePoints 
          * @returns 
         */
        DistancePointLine(pt: Vector2, linePoints: Vector2[]): number;
        /**
          * 
          * @param points 
          * @returns 
         */
        Length(points: Vector2[]): number;
    }

    /**
      * IMath3 
      */
    interface IMath3 {
        /**
          * 
          * @param triPoints 
          * @returns 
         */
        Area(triPoints: Vector3[]): number;
        /**
          * 
          * @param x1 
          * @param y1 
          * @param z1 
          * @param x2 
          * @param y2 
          * @param z2 
          * @returns 
         */
        Distance(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): number;
        /**
          * 
          * @param points1 
          * @param points2 
          * @returns 
         */
        DistanceLineLine(points1: Vector3[], points2: Vector3[]): number;
        /**
          * 
          * @param points1 
          * @param points2 
          * @param resultLinePoints 
          * @returns 
         */
        DistanceLineLineAdvance(points1: Vector3[], points2: Vector3[], resultLinePoints: RefValue<Array<Vector3>>): number;
        /**
          * 
          * @param pt1 
          * @param pt2 
          * @returns 
         */
        DistancePoint(pt1: Vector3, pt2: Vector3): number;
        /**
          * 
          * @param point 
          * @param points 
          * @returns 
         */
        DistancePointLine(point: Vector3, points: Vector3[]): number;
        /**
          * 
          * @param point 
          * @param points 
          * @param resultPoint 
          * @returns 
         */
        DistancePointLineAdvance(point: Vector3, points: Vector3[], resultPoint: Vector3): number;
        /**
          * 
          * @param points 
          * @returns 
         */
        Length(points: Vector3[]): number;
    }

    /**
      * Math2 二维数学对象
      */
    class Math2 {
        /**
          * 计算点1(x1,y1)到点2(x2,y2)的向量与水平x坐标轴之间的夹角，返回弧度
          * @param x1 
          * @param y1 
          * @param x2 
          * @param y2 
          * @returns 
         */
        public static Angle(x1: number, y1: number, x2: number, y2: number): number;
        /**
          * 计算从向量0到向量1之间的张角,逆时针方向为正
          * @param v0 
          * @param v1 
          * @returns 张角弧度值
         */
        public static AngleBetween(v0: Vector2, v1: Vector2): number;
        /**
          * 计算给定多边形的面积，返回平方米
          * @param points 多边形点数组
          * @returns 面积平方米
         */
        public static Area(points: Vector2[]): number;
        /**
          * 从三角形三边长度计算给定多边形的面积，返回平方米
          * @param a 边长1
          * @param b 边长2
          * @param c 边长3
          * @returns 面积平方米
         */
        public static AreaFromEdge(a: number, b: number, c: number): number;
        /**
          * 计算给点中心线的缓冲区
          * @param points 中心线
          * @param radius 半径米
          * @param isRoundJoin 是否圆角转弯
          * @param isRoundEnd 是否圆角端点
          * @param isClosed 是否闭合
          * @returns 缓冲区多边形
         */
        public static Buffer(points: Vector2[], radius: number, isRoundJoin?: boolean, isRoundEnd?: boolean, isClosed?: boolean): Vector2[];
        /**
          * 计算给定点的缓冲区
          * @param point 中心点
          * @param radius 半径，单位米
          * @returns缓冲区多边形点数组
         */
        public static BufferPoint(center: Vector2, radius: number): Vector2[];
        /**
          * 计算给定多边形内点
          * @param points 多边形点数组
          * @param pt 结果内点
          * @returns 是否计算成功
         */
        public static CalcInnerPoint(points: Vector2[], pt: Vector2): boolean;
        /**
          * 用多边形裁剪折线
          * @param polyPoints 多边形点
          * @param linePoints 折线点
          * @returns 裁剪结果的折线数组
         */
        public static ClipLine(polyPoints: Vector2[], linePoints: Vector2[]): Array<Vector2[]>;
        /**
          * 计算指定点到折线上最近点的坐标，返回最近点
          * @param points 折线点数组
          * @param pt 点
          * @returns 最近点坐标
         */
        public static ClosestPoint(points: Vector2[], pt: Vector2): Vector2;
        /**
          * 计算指定点到折线上最近点的坐标，返回最近点信息结构
          * @param points 折线点数组
          * @param pt 点
          * @returns 点信息结构
         */
        public static ClosestPointAdvance(points: Vector2[], pt: Vector2): PointOnLine;
        /**
          * 判断算多边形是否包含指定点
          * @param polyPoints 多边形点数组
          * @param point 点
          * @returns 如果包含返回true，否则false
         */
        public static Contains(polyPoints: Vector2[], point: Vector2): boolean;
        /**
          * 判断算多边形是否包含指定折线
          * @param polyPoints 多边形点数组
          * @param points 折线点数组
          * @returns 如果包含返回true，否则false
         */
        public static ContainsLine(polyPoints: Vector2[], points: Vector2[]): boolean;
        /**
          * 判断算多边形是否包含指定矩形
          * @param polyPoints 多边形点数组
          * @param rect 矩形
          * @returns 如果包含返回true，否则false
         */
        public static ContainsRect(polyPoints: Vector2[], rect: Rect): boolean;
        /**
          * 计算两对坐标之间距离
          * @param x1
          * @param y1 
          * @param x2 
          * @param y2 
          * @returns 
         */
        public static Distance(x1: number, y1: number, x2: number, y2: number): number;
        /**
          * 计算两条折线间距离
          * @param points1
          * @param points2 
          * @returns 距离米
         */
        public static DistanceLineLine(points1: Vector2[], points2: Vector2[]): number;
        /**
          * 计算两点间距离
          * @param pt1
          * @param pt2 
          * @returns 距离米
         */
        public static DistancePoint(pt1: Vector2, pt2: Vector2): number;
        /**
          * 计算点到折线距离
          * @param point 
          * @param points 
          * @returns 距离米
         */
        public static DistancePointLine(point: Vector2, points: Vector2[]): number;
        /**
          * 计算折线1被折线2裁剪的结果，返回折线段数组
          * @param linePoints1 折线1
          * @param linePoints2 折线2
          * @returns
         */
        public static IntersectLine(linePoints1: Vector2[], linePoints2: Vector2[]): Array<Vector2[]>;
        /**
          * 计算两条折线的一个交点。如果不相交返回false
          * @param points1
          * @param points2 
          * @param resultPoint 交点坐标
          * @returns 相交返回true，否则false
         */
        public static IntersectOnePoint(points1: Vector2[], points2: Vector2[], resultPoint: Vector2): boolean;
        /**
          * 判断两条折线是否相交
          * @param linePoints1 折线1
          * @param linePoints2 折线2
          * @returns 相交返回true，否则false
         */
        public static Intersects(linePoints1: Vector2[], linePoints2: Vector2[]): boolean;
        /**
          * 判断两个线段是否相交
          * @param x1 线段1起点x坐标
          * @param y1 线段1起点y坐标
          * @param x2 线段1终点x坐标
          * @param y2 线段1终点y坐标
          * @param x3 线段2起点x坐标
          * @param y3 线段2起点y坐标
          * @param x4 线段2终点x坐标
          * @param y4 线段2终点y坐标
          * @param resultPoint 如果相交，则保存相交点坐标
          * @returns 相交返回true，否则false
         */
        public static IntersectSegment(x1: number, y1: number, x2: number, y2: number, x3: number, y3: number, x4: number, y4: number, resultPoint: Vector2): boolean;
        /**
          * 判断两个线段是否相交
          * @param pt1 线段1起点
          * @param pt2 线段1终点
          * @param pt3 线段2起点
          * @param pt4 线段2终点
          * @param resultPoint 如果相交，则保存相交点坐标
          * @returns 相交返回true，否则false
         */
        public static IntersectSegmentPoint(pt1: Vector2, pt2: Vector2, pt3: Vector2, pt4: Vector2, resultPoint: Vector2): boolean;
        /**
          * 计算折线长度
          * @param points 折线点数组
          * @returns 长度米
         */
        public static Length(points: Vector2[]): number;
        /**
          * 判断两个二维点是否近似相等
          * @param pt1 点1
          * @param pt2 点2
          * @param tolerance 容差
          * @returns 如果在容差范围内返回true，否则false
         */
        public static NearEqual(pt1: Vector2, pt2: Vector2, tolerance?: number): boolean;
        /**
          * 
          * @param val1 
          * @param val2 
          * @param tolerance 
          * @returns 
         */
        public static NearEqualNumber(val1: number, val2: number, tolerance?: number): boolean;
        /**
          * 判断两个矩形是否近似相等
          * @param rect1 矩形1
          * @param rect2 矩形2
          * @param tolerance 容差
          * @returns 如果在容差范围内返回true，否则false
         */
        public static NearEqualRect(rect1: Rect, rect2: Rect, tolerance?: number): boolean;
        /**
          * 判断两个多边形是否有重合范围
          * @param polyPoints1 多边形1
          * @param polyPoints2 多边形2
          * @returns
         */
        public static Overlaps(polyPoints1: Vector2[], polyPoints2: Vector2[]): boolean;
        /**
          * 判断第一个矩形是否包含第二个
          * @param outerRect 外部矩形
          * @param innerRect 内部矩形
          * @returns
         */
        public static RectContains(outerRect: Rect, innerRect: Rect): boolean;
        /**
          * 判断两个矩形是否相交
          * @param rect1 矩形1
          * @param rect2 矩形2
          * @returns
         */
        public static RectIntersects(rect1: Rect, rect2: Rect): boolean;
        /**
          * 判断矩形是否与折线相交
          * @param rect 矩形
          * @param points 折线点数组
          * @returns
         */
        public static RectIntersectsLine(rect: Rect, points: Vector2[]): boolean;
        /**
          * 判断指定中心点半径的圆是否被矩形包含
          * @param rect 矩形
          * @param center 中心点
          * @param radius 半径
          * @returns
         */
        public static RectWithin(rect: Rect, center: Vector2, radius: number): boolean;
        /**
          * 两点之间的平方距离，及(x1-x2)*(x1-x2)+(y1-y2)*(y1-y2)。用于快速的裁剪或者排序判断，不需要做开平方运算
          * @param x1
          * @param y1 
          * @param x2 
          * @param y2 
          * @returns 
         */
        public static SquareDistance(x1: number, y1: number, x2: number, y2: number): number;
        /**
          * 两点之间的平方距离
          * @param pt1
          * @param pt2 
          * @returns 
         */
        public static SquareDistancePoint(pt1: Vector2, pt2: Vector2): number;
    }

    /**
      * Math3 三维数学计算函数。提供长度、面积、角度、缓冲区、插值等计算。
      */
    class Math3 {
        /**
          * 计算两个向量围绕指定法向量之间所张的角度。逆时针为正
          * @param v1 向量1
          * @param v2 向量2
          * @param up 法向量
          * @returns 弧度值
         */
        public static Angle(v1: Vector3, v2: Vector3, up?: Vector3): number;
        /**
          * 计算三角网面积，相邻三个点依次代表一个三角形
          * @param triPoints 点数组
          * @returns 平方米
         */
        public static Area(triPoints: Vector3[]): number;
        /**
          * 计算缓冲区
          * @param points 中心线坐标
          * @param radius 半径米
          * @param isRoundJoin 是否圆角转弯
          * @param isRoundEnd 是否原型端头
          * @param isClosed 是否闭合
          * @returns 缓冲区多边形
         */
        public static Buffer(points: Vector3[], radius: number, isRoundJoin?: boolean, isRoundEnd?: boolean, isClosed?: boolean): Vector3[];
        /**
          * 计算一对三维坐标点之间的距离
          * @param x1 
          * @param y1 
          * @param z1 
          * @param x2 
          * @param y2 
          * @param z2 
          * @returns 距离米
         */
        public static Distance(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): number;
        /**
          * 计算两条三维折线之间的最小距离
          * @param points1 
          * @param points2 
          * @returns 距离米
         */
        public static DistanceLineLine(points1: Vector3[], points2: Vector3[]): number;
        /**
          * 计算两条三维折线之间的最小距离，保存最短线段坐标
          * @param points1 
          * @param points2 
          * @param distLinePoints 保存最短线段坐标，RefValue指向结果顶点数组
          * @returns 距离米
         */
        public static DistanceLineLineAdvance(points1: Vector3[], points2: Vector3[], distLinePoints: RefValue<Array<Vector3>>): number;
        /**
          * 计算两点之间距离
          * @param pt1 
          * @param pt2 
          * @returns 距离米
         */
        public static DistancePoint(pt1: Vector3, pt2: Vector3): number;
        /**
          * 计算点到折线距离
          * @param point 
          * @param points 
          * @returns 距离米
         */
        public static DistancePointLine(point: Vector3, points: Vector3[]): number;
        /**
          * 计算点到折线距离，保存最近点坐标
          * @param point 
          * @param points 
          * @param distPoint 最近点坐标
          * @returns 距离米
         */
        public static DistancePointLineAdvance(point: Vector3, points: Vector3[], distPoint: Vector3): number;
        /**
          * 计算射线与三角形集合的交点
          * @param trianglePoints 点数组，相邻三个点代表一个三角形
          * @param pt1 射线起点
          * @param pt2 射线终点
          * @param ptResult 交点坐标
          * @returns 是否相交。相交的情况下，交点坐标值有效。
         */
        public static IntersectRay(trianglePoints: Vector3[], pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
        /**
          * 计算射线与索引三角形集合的交点
          * @param trianglePoints 点数组
          * @param indices 索引数组，相邻三个索引指向的点代表一个三角形
          * @param pt1 射线起点
          * @param pt2 射线终点
          * @param ptResult 交点坐标
          * @returns 是否相交。相交的情况下，交点坐标值有效。
         */
        public static IntersectRayIndexed(trianglePoints: Array<Vector3>, indices: Array<number>, pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
        /**
          * 计算三维折线长度
          * @param points 
          * @returns 长度米
         */
        public static Length(points: Vector3[]): number;
        /**
          * 计算三维折线长度
          * @param points 
          * @param start 
          * @param count 
          * @returns 
         */
        public static LengthVector3Array(points: Vector3Array, start?: number, count?: number): number;
        /**
          * 判断两个向量是否近似相等
          * @param pt1 点1
          * @param pt2 点2
          * @param tolerance 容差值
          * @returns 坐标差值在容差值范围内返回true
         */
        public static NearEqual(pt1: Vector3, pt2: Vector3, tolerance?: number): boolean;
        /**
          * 判断向量是否近似为零向量
          * @param pt 点
          * @param tolerance 容差值
          * @returns 坐标差值在容差值范围内返回true
         */
        public static NearZero(pt: Vector3, tolerance?: number): boolean;
        /**
          * 多边形转换为三角网
          * @param polyPoints 多边形外轮廓点数组
          * @param holes 洞
          * @returns 三角形点数组，每三点为一个三角形
         */
        public static PolygonToTriangles(polyPoints: Vector3[], holes?: Vector3[][]): Vector3[];
        /**
          * 计算样条插值曲线
          * @param controlPoints 控制点数组
          * @param insertCount 控制点之间插值点数目
          * @param isClosed 是否闭合
          * @returns 曲线点数组
         */
        public static Spline(controlPoints: Vector3[], insertCount: number, isClosed?: boolean): Vector3[];
    }

    /**
      * MathHelper 
      */
    class MathHelper {
        /**
          * 一个很小的浮点数，用于浮点数之间的近似相等
         */
        public static EPSILON: number;
        /**
          * 三个值的质心法插值
          * @param value1 
          * @param value2 
          * @param value3 
          * @param amount1 第一条边比例
          * @param amount2 第二条边比例
          * @returns 插值结果
         */
        public static Barycentric(value1: number, value2: number, value3: number, amount1: number, amount2: number): number;
        /**
          * CatmullRom曲线插值
          * @param value1 
          * @param value2 
          * @param value3 
          * @param value4 
          * @param amount 
          * @returns 
         */
        public static CatmullRom(value1: number, value2: number, value3: number, value4: number, amount: number): number;
        /**
          * 裁剪值到指定范围
          * @param value 
          * @param min 
          * @param max 
          * @returns 
         */
        public static Clamp(value: number, min: number, max: number): number;
        /**
          * 从浮点度数得到整数度数
          * @param degree 
          * @returns 
         */
        public static DegreeFromDegree(degree: number): number;
        /**
          * 从度分秒换算成浮点度数
          * @param degree 
          * @param minute 
          * @param second 
          * @returns 
         */
        public static DegreeFromDMS(degree: number, minute: number, second: number): number;
        /**
          * 计算两个值的一维距离
          * @param value1 值1
          * @param value2 值2
          * @returns 距离值
         */
        public static Distance(value1: number, value2: number): number;
        /**
          * 从浮点度得到浮点数秒
          * @param degree 
          * @returns 
         */
        public static FloatSecondFromDegree(degree: number): number;
        /**
          * Hermite曲线插值
          * @param value1 值1
          * @param tangent1 值1切线
          * @param value2 值2
          * @param tangent2 值2切线
          * @param amount 比例
          * @returns 插值结果
         */
        public static Hermite(value1: number, tangent1: number, value2: number, tangent2: number, amount: number): number;
        /**
          * 计算2的次幂
          * @param level 次数
          * @returns 结果
         */
        public static IntPowOfTwo(level: number): number;
        /**
          * 两值之间线性插值
          * @param value1 值1
          * @param value2 值2
          * @param amount 从值1开始的比例
          * @returns 插值结果
         */
        public static Lerp(value1: number, value2: number, amount: number): number;
        /**
          * 从浮点度得到整数分
          * @param degree 
          * @returns 整数分
         */
        public static MinuteFromDegree(degree: number): number;
        /**
          * 判断两个值是否近似相等
          * @param val1 值1
          * @param val2 值2
          * @param tolerance 容差
          * @returns 如果在容差范围内返回true，否则false
         */
        public static NearEqual(val1: number, val2: number, tolerance?: number): boolean;
        /**
          * 判断值是否近似为零
          * @param val 值
          * @param tolerance 容差
          * @returns 如果在容差范围内返回true，否则false
         */
        public static NearZero(val: number, tolerance?: number): boolean;
        /**
          * 从浮点度得到整数秒
          * @param degree 
          * @returns 整数秒
         */
        public static SecondFromDegree(degree: number): number;
        /**
          * 获取数字的正负符号
          * @param val 
          * @returns 正数返回1，负数返回-1，0返回0
         */
        public static Sign(val: number): number;
        /**
          * 弧度转为度
          * @param radians 
          * @returns 浮点数度
         */
        public static ToDegrees(radians: number): number;
        /**
          * 度转为弧度
          * @param degrees 
          * @returns 浮点数弧度
         */
        public static ToRadians(degrees: number): number;
        /**
          * 把弧度角度变换到0-2PI范围内
          * @param angle 弧度
          * @returns 调整后的弧度值
         */
        public static WrapAngle(angle: number): number;
    }

    class PolygonMath {
        public static Buffer(points: Vector2[], radius: number, isRoundJoin: boolean, isRoundEnd: boolean, isClosed: boolean): Vector2[];
        public static BufferPoint(center: Vector2, radius: number): Vector2[];
        public static ClipPolygon(polygonSrc: Vector2[], polygonClip: Vector2[]): Array<Vector2[]>;
        public static IsClockwise(points: Vector2[]): boolean;
        public static IsClockwise3(points: Vector3[]): boolean;
        public static MakePolyClose(points: Vector2[]): Vector2[];
        public static PolygonToTriangle(srcPolyPoints: Vector2[], holes?: Vector2[][]): Vector2[];
        public static ToClockwise(points: Vector2[]): Vector2[];
        public static ToClockwise3(points: Vector3[]): Vector3[];
        public static ToCounterClockwise(points: Vector2[]): Vector2[];
        public static ToCounterClockwise3(points: Vector3[]): Vector3[];
    }

    /**
      * INoObject 有序号标示的对象接口
      */
    interface INoObject {
        /**
          * 数字序号
         */
        no: number;
    }

    class INoObjectComparer implements IComparer<INoObject> {
        public compare(x: INoObject, y: INoObject): number;
    }

    interface ICloneable<T> {
        clone(): T;
    }

    interface ICloneableNoObject extends INoObject {
        createFromClone(): any;
    }

    interface IObjectPropertyUI<TValue> {
        attatchObject(obj: TValue): void;
        reset(): void;
    }

    interface ICopyableNoObject<T> extends INoObject {
        copyFrom(src: T): void;
    }

    /**
      * INameObject 有名称标示的对象接口
      */
    interface INameObject {
        /**
          * 名称
         */
        name: string;
    }

    interface INameObjectBinder<T extends INameObject> {
        getItem(name: string): T;
    }

    /**
      * ImmutableNoObject 序号保持不变的对象
      */
    class ImmutableNoObject extends TObject implements IComparable<ImmutableNoObject>, INoObject {
        /**
          * 序号
         */
        public no: number;
        /**
          * 
          * @param other 
          * @returns 
         */
        public compareTo(other: ImmutableNoObject): number;
        /**
          * 空序号
         */
        public static EmptyNo: number;
    }

    /**
      * PickableObject 可以被选中的对象
      */
    class PickableObject extends ImmutableNoObject {
        /**
          * 是否允许选择
         */
        public isPickable: boolean;
        /**
          * 
         */
        public readonly isPicked: boolean;
        /**
          * 所属图层名称
         */
        public readonly layerName: string;
        /**
          * 
          * @param value 
         */
        protected onIsPickedChanged(value: boolean): void;
    }

    /**
      * NameObject 有名称标识的对象
      */
    class NameObject implements INameObject {
        /**
          * 名称
         */
        public name: string;
        /**
          * 构造函数
          * @param name 名称
         */
        constructor(name?: string);
        /**
          * 获取对象数组的名称数组
          * @param nameObjects 
          * @returns 
         */
        public static ToNames<T extends INameObject>(nameObjects: Array<T>): Array<string>;
    }

    class NameObjectList<T extends INameObject> implements IEnumerable<T> {
        public onAdd: Observable<T>;
        public onRemove: Observable<T>;
        public readonly length: number;
        public readonly names: Array<string>;
        public readonly objects: IEnumerable<T>;
        protected initFromList(objects: Array<T>): void;
        public add(obj: T): boolean;
        public clear(): void;
        public enumObjects(): Array<T>;
        public getAt(index: number): T;
        public getByName(name: string): T;
        public getEnumerator(): IEnumerator<T>;
        public indexFromName(name: string): number;
        public insertAt(index: number, obj: T): boolean;
        public push(obj: T): boolean;
        public remove(obj: T): void;
        public removeAt(index: number): void;
    }

    class NameObjectSet<T extends INameObject> {
        constructor(objs?: Array<T>);
        public readonly count: number;
        public readonly names: string[];
        public readonly objects: T[];
        public add(obj: T): boolean;
        public clear(): void;
        public contains(name: string): boolean;
        public getItem(name: string): T;
        public modify(name: string, obj: T): boolean;
        public remove(nameOrObj: string | T): boolean;
    }

    class NoObjectSet<T extends INoObject> {
        constructor(objs?: Array<T>);
        public readonly count: number;
        public readonly nos: number[];
        public readonly objects: T[];
        public add(obj: T): boolean;
        public clear(): void;
        public contains(no: number): boolean;
        public getItem(no: number): T;
        public modify(no: number, obj: T): boolean;
        public remove(noOrObj: number | T): boolean;
    }

    class ObjectGroupMapping<TGroup extends INoObject, TSub> {
        public addSubObject(groupName: string, groupObject: TGroup, subObject: TSub): void;
        public clear(): void;
        public containsGroup(groupName: string, groupObject: TGroup): boolean;
        public containsSub(groupName: string, subObject: TSub): boolean;
        public enumGroupObjectNos(groupName: string): Array<number>;
        public groupToSub(groupName: string, groupObject: TGroup): Array<TSub>;
        public removeGroupObject(groupName: string, groupObject: TGroup, deleteSubObject?: boolean): void;
        public removeSubObjects(subObjects: Array<TSub>): void;
        public subToGroup(groupName: string, subObject: TSub): TGroup;
    }

    interface IAsyncReady {
        readonly isReady: boolean;
        readonly onReady: Observable<IAsyncReady>;
    }

    interface IAsyncRenderable {
        drawContents(param: AsyncRenderableParam): boolean;
        recycle(param: AsyncRenderableParam): boolean;
        registerDataTask(param: AsyncRenderableParam): void;
        updateContents(param: AsyncRenderableParam): boolean;
    }

    class AsyncRenderableParam {
        public lodParam: AsyncRenderableParam_LodParams;
        public timer: ProcessTimer;
    }

    class AsyncRenderableParam_LodParams {
        constructor(meshLod: number);
        public globalEyePos: Vector3;
        public localEyePos: Vector3;
        public lod: number;
        public objectCenter: Vector3;
        public static CreatePoint(lod: number, localEyePos: Vector3, globalEyePos: Vector3): AsyncRenderableParam_LodParams;
    }

    interface IRenderState {
        alpha: number;
        isCastShadow: boolean;
        isCulling: boolean;
        isEnableDepthBuffer: boolean;
        isUseLight: boolean;
        isWriteColor: boolean;
        isWriteDepth: boolean;
        lightLayer: BabylonLayer;
    }

    class RenderStateBase implements IRenderState {
        public alpha: number;
        public isCastShadow: boolean;
        public isCulling: boolean;
        public isEnableDepthBuffer: boolean;
        public isUseLight: boolean;
        public isWriteColor: boolean;
        public isWriteDepth: boolean;
        public lightLayer: BabylonLayer;
    }

    interface IStencilHole {
        isVisible: boolean;
        dispose(): void;
    }

    interface IRenderObservable<T> {
        readonly onAfterRender: Observable<T>;
        readonly onBeforeRender: Observable<T>;
    }

    class RenderObservableBase<T> implements IRenderObservable<T> {
        public readonly onAfterRender: Observable<T>;
        public readonly onBeforeRender: Observable<T>;
        public notifyOnAfterRender(eventData: T): void;
        public notifyOnBeforeRender(eventData: T): void;
    }

    enum SplitDirection {
        Left = -1,
        None = 0,
        Right = 1
    }

    /**
      * HorizontalAlignment 水平对齐常量
      */
    enum HorizontalAlignment {
        /**
          * 
         */
        Left = 0,
        /**
          * 
         */
        Center,
        /**
          * 
         */
        Right,
        /**
          * 
         */
        Stretch
    }

    /**
      * VerticalAlignment 竖直对齐常量
      */
    enum VerticalAlignment {
        /**
          * 
         */
        Top = 0,
        /**
          * 
         */
        Center,
        /**
          * 
         */
        Bottom,
        /**
          * 
         */
        Stretch
    }

    /**
      * Visibility 界面控件可见性常量
      */
    enum Visibility {
        /**
          * 
         */
        Visible,
        /**
          * 
         */
        Hidden,
        /**
          * 
         */
        Collapsed
    }

    enum Stretch {
        None,
        Fill,
        Uniform,
        UniformToFill
    }

    enum KeyCode {
        None = 0,
        Back = 8,
        Tab = 9,
        Clear = 12,
        Enter = 13,
        LeftShift = 16,
        LeftCtrl = 17,
        LeftAlt = 18,
        Pause = 19,
        CapsLock = 20,
        Escape = 27,
        Space = 32,
        PageUp = 33,
        PageDown = 34,
        End = 35,
        Home = 36,
        Left = 37,
        Up = 38,
        Right = 39,
        Down = 40,
        Select = 41,
        Print = 42,
        Insert = 45,
        Delete = 46,
        Help = 47,
        D0 = 48,
        D1 = 49,
        D2 = 50,
        D3 = 51,
        D4 = 52,
        D5 = 53,
        D6 = 54,
        D7 = 55,
        D8 = 56,
        D9 = 57,
        A = 65,
        B = 66,
        C = 67,
        D = 68,
        E = 69,
        F = 70,
        G = 71,
        H = 72,
        I = 73,
        J = 74,
        K = 75,
        L = 76,
        M = 77,
        N = 78,
        O = 79,
        P = 80,
        Q = 81,
        R = 82,
        S = 83,
        T = 84,
        U = 85,
        V = 86,
        W = 87,
        X = 88,
        Y = 89,
        Z = 90,
        NumPad0 = 96,
        NumPad1 = 97,
        NumPad2 = 98,
        NumPad3 = 99,
        NumPad4 = 100,
        NumPad5 = 101,
        NumPad6 = 102,
        NumPad7 = 103,
        NumPad8 = 104,
        NumPad9 = 105,
        Multiply = 106,
        Add = 107,
        Separator = 108,
        Subtract = 109,
        Decimal = 110,
        Divide = 111,
        F1 = 112,
        F2 = 113,
        F3 = 114,
        F4 = 115,
        F5 = 116,
        F6 = 117,
        F7 = 118,
        F8 = 119,
        F9 = 120,
        F10 = 121,
        F11 = 122,
        F12 = 123,
        F13 = 124,
        F14 = 125,
        F15 = 126,
        F16 = 127,
        F17 = 128,
        F18 = 129,
        F19 = 130,
        F20 = 131,
        F21 = 132,
        F22 = 133,
        F23 = 134,
        F24 = 135,
        NumLock = 144,
    }

    enum ModifierKeys {
        None = 0,
        Alt = 1,
        Control = 2,
        Shift = 4,
        Windows = 8
    }

    class Thickness {
        public left: number;
        public top: number;
        public right: number;
        public bottom: number;
        constructor(left?: number, top?: number, right?: number, bottom?: number);
        public clone(): Thickness;
    }

    class GridLength {
        constructor(value?: number);
        public value: number;
        public static readonly UNLIMIT: number;
    }

    /**
      * Brush 笔刷祖先类
      */
    class Brush {
        /**
          * 颜色
         */
        public color: Color;
    }

    /**
      * SolidColorBrush 实心颜色刷子
      */
    class SolidColorBrush extends Brush {
        /**
          * 
          * @param color 
         */
        constructor(color: Color);
    }

    enum Cursor {
        Default,
        Arrow,
        Cross,
        Hand,
        Help,
        IBeam,
        None,
        SizeAll,
        Wait
    }

    class EventArgs {
    }

    class TypedEventArgs<T> extends EventArgs {
        constructor(t: T);
        public result: T;
    }

    class OperationReturn {
        constructor(suc?: boolean, errorString?: string);
        public errorString: string;
        public success: boolean;
    }

    class OperationEventArgs extends EventArgs {
        constructor(success: boolean, errStrng?: string);
        public errString: string;
        public success: boolean;
    }

    class RoutedEventArgs extends EventArgs {
        public handled: boolean;
        public source: any;
    }

    class Keyboard {
        public static readonly Modifiers: ModifierKeys;
        public static UpdateModifierKey(evt: any): void;
    }

    class CancelEventArgs extends EventArgs {
        public cancel: boolean;
    }

    class SizeChangedEventArgs extends RoutedEventArgs {
        public newSize: Size;
        public previousSize: Size;
    }

    class SelectionChangedEventArgs extends RoutedEventArgs {
        constructor(removedItems: any[], addedItems: any[]);
        public addedItems: any[];
        public removedItems: any[];
    }

    class MouseEventArgs extends RoutedEventArgs {
        public point: Vector2;
        constructor(point: Vector2);
    }

    class KeyEventArgs extends RoutedEventArgs {
        constructor(key: number);
        public key: number;
    }

    class MouseButtonEventArgs extends MouseEventArgs {
        constructor(point: Vector2);
        public clickCount: number;
    }

    class MouseWheelEventArgs extends MouseEventArgs {
        constructor(point: Vector2);
        public delta: number;
    }

    /**
      * UIElement 
      * 所有控件对象的基类。由于很多事件和属性是与C#的WPF移植代码兼容的，为了效率起见，键盘和鼠标事件并不保证实时发出。
      * 建议在js编程时，直接通过htmlUI属性访问关联的html原生对象，获取属性，设置style，监听消息等。
      */
    class UIElement {
        /**
          * 
          * @param htmlUI 
          * @param fatherUI 
         */
        constructor(htmlUI: string | HTMLElement, fatherUI: UIElement);
        /**
          * 
         */
        public onClick: Observable<RoutedEventArgs>;
        /**
          * 
         */
        public onMouseLeftButtonDown: Observable<MouseButtonEventArgs>;
        /**
          * 
         */
        public onMouseLeftButtonUp: Observable<MouseButtonEventArgs>;
        /**
          * 
         */
        public onMouseMove: Observable<MouseEventArgs>;
        /**
          * 
         */
        public onMouseRightButtonDown: Observable<MouseButtonEventArgs>;
        /**
          * 
         */
        public onMouseRightButtonUp: Observable<MouseButtonEventArgs>;
        /**
          * 
         */
        public onMouseWheel: Observable<MouseWheelEventArgs>;
        /**
          * 
         */
        public onSizeChanged: Observable<SizeChangedEventArgs>;
        /**
          * 
         */
        protected readonly children: Array<UIElement>;
        /**
          * 
         */
        protected readonly defineHeight: number;
        /**
          * 
         */
        protected readonly defineWidth: number;
        /**
          * 
         */
        protected readonly hasBackground: boolean;
        /**
          * 
         */
        public actualHeight: number;
        /**
          * 
         */
        public actualWidth: number;
        /**
          * 
         */
        public background: string;
        /**
          * 
         */
        public fill: string;
        /**
          * 
         */
        public fontFamily: string;
        /**
          * 
         */
        public fontSize: number;
        /**
          * 
         */
        public foreground: string;
        /**
          * 
         */
        public height: number;
        /**
          * 
         */
        public horizontalAlignment: HorizontalAlignment;
        /**
          * 
         */
        public htmlCursor: Cursor;
        /**
          * 
         */
        public isBoundsFixed: boolean;
        /**
          * 
         */
        public isEnabled: boolean;
        /**
          * 
         */
        public isHitTestVisible: boolean;
        /**
          * 
         */
        public isTabStop: boolean;
        /**
          * 
         */
        public margin: Thickness;
        /**
          * 
         */
        public name: string;
        /**
          * 
         */
        public opacity: number;
        /**
          * 
         */
        public readonly bounds: Rect;
        /**
          * 
         */
        public readonly defineBounds: Rect;
        /**
          * 控件对应的html对象，通过该对象可以获取各种标准属性，添加原生javascript事件。建议采用这种方法添加键盘，鼠标等基本事件
         */
        public readonly htmlUI: HTMLElement;
        /**
          * 
         */
        public readonly parentUI: UIElement;
        /**
          * 
         */
        public readonly uiid: string;
        /**
          * 
         */
        public stroke: string;
        /**
          * 
         */
        public tag: any;
        /**
          * 
         */
        public tooltip: string;
        /**
          * 
         */
        public verticalAlignment: VerticalAlignment;
        /**
          * 
         */
        public visibility: Visibility;
        /**
          * 
         */
        public width: number;
        /**
          * 
          * @param child 
         */
        protected appendChild(child: UIElement): void;
        /**
          * 
         */
        protected calcBoundsFromParent(): Rect;
        /**
          * 
         */
        protected createSystemUI(): HTMLElement;
        /**
          * 
          * @param elemType 
          * @param className 
          * @returns 
         */
        protected createSystemUiWithIdInner(elemType: string, className?: string): any;
        /**
          * @param windowSize
          * @returns
         */
        protected getBoundsFromUI(windowSize?: Rect): Rect;
        /**
          * 
         */
        protected getChildrenDefineBoundary(): Size;
        /**
          * 
         */
        protected getFontSize(): number;
        /**
          * 
         */
        protected getFontSizePixel(): string;
        /**
          * 
         */
        protected getTooltipUiid(): string;
        /**
          * 
         */
        protected registerClickMessage(): void;
        /**
          * 
          * @param ui 
         */
        protected registerClickMessageHelper(ui: any): void;
        /**
          * 
         */
        protected registerMouseMessage(): void;
        /**
          * 
          * @param dis 
         */
        protected setDisplay(dis: boolean): void;
        /**
          * 
          * @param value 
         */
        protected setHeightInner(value: number): void;
        /**
          * 
          * @param value 
         */
        protected setHtmlHeight(value: number): void;
        /**
          * 
          * @param value 
         */
        protected setHtmlWidth(value: number): void;
        /**
          * 
          * @param value 
         */
        protected setWidthInner(value: number): void;
        /**
          * 
          * @param value 
          * @returns 
         */
        protected toPixel(value: number): string;
        /**
          * 
          * @param child 
          * @returns 
         */
        public calcChildBounds(child: UIElement): Rect;
        /**
          * 
          * @param child 
         */
        public onChildResize(child: UIElement): void;
        /**
          * 
          * @param left 
          * @param top 
         */
        public setLeftTop(left: number, top: number): void;
        /**
          * 
          * @param left 
          * @param top 
          * @param width 
          * @param height 
          * @param horiAlign 
          * @param vertAlign 
         */
        public setPosition(left: number, top: number, width: number, height: number, horiAlign?, vertAlign?: VerticalAlignment): void;
        /**
          * 
         */
        public updateLayout(): void;
        /**
          * 
         */
        public static DefaultFontSize: number;
    }

    class FrameworkElement extends UIElement {
        constructor(htmlUI?: string | HTMLElement, fatherUI?: UIElement);
        public cursor: Cursor;
        protected createSystemUI(): HTMLElement;
        protected getTopMostUI(): UIElement;
    }

    class RectangleElement extends UIElement {
        constructor(htmlUI?: string | HTMLElement, fatherUI?: UIElement);
        protected createSystemUI(): HTMLElement;
    }

    class TextBlock extends UIElement {
        constructor(htmlUI?: string | HTMLElement, fatherUI?: UIElement);
        public text: string;
        protected createSystemUI(): HTMLElement;
    }

    class Panel extends FrameworkElement {
        constructor(htmlUI?: string | HTMLElement, fatherUI?: UIElement);
    }

    class Canvas extends Panel {
        constructor(htmlUI?: string | HTMLElement, fatherUI?: UIElement);
        public htmlCanvas: any;
        protected createSystemUI(): HTMLElement;
        public invalidateArrange(): void;
    }

    class Control extends FrameworkElement {
        constructor(htmlUI?: string | HTMLElement, fatherUI?: UIElement);
    }

    class UserControl extends Control {
        constructor(htmlUI?: string | HTMLElement, fatherUI?: UIElement);
        public onKeyDown(e: KeyEventArgs): void;
        protected initializeComponent(): void;
        public appendChild(child: UIElement): void;
        public focus(): void;
        public updateLayout(): void;
    }

    class RowDefinition {
        public height: GridLength;
        constructor(height?: GridLength);
    }

    class ColumnDefinition {
        public width: GridLength;
        constructor(width?: GridLength);
    }

    class Grid extends Panel {
        constructor(htmlUI?: string | HTMLElement, fatherUI?: UIElement);
        public columnDefinitions: Array<ColumnDefinition>;
        public rowDefinitions: Array<RowDefinition>;
        public subGrids: Array<Grid>;
        protected createSystemUI(): HTMLElement;
        public addColumn(width: number): void;
        public addRow(height: number): void;
        public updateLayout(): void;
    }

    class WindowsHelper {
        public static IsDoubleClick(e: MouseButtonEventArgs, precision?: number): boolean;
        public static BoolToVisibility(visible: boolean): Visibility;
        public static CalcPixelAlignOffsetToLeftBottom(horiAlign: HorizontalAlignment, vertAlign: VerticalAlignment, pixelWidth: number, pixelHeight: number): Vector2;
        public static CalcPixelAlignOffsetToLeftBottomToRef(horiAlign: HorizontalAlignment, vertAlign: VerticalAlignment,
            pixelWidth: number, pixelHeight: number, result: Vector2): void;
        public static CalcPixelPaddingOffset(horiAlign: HorizontalAlignment, vertAlign: VerticalAlignment, padding: number): Vector2;
        public static CalcPixelPaddingOffsetToRef(horiAlign: HorizontalAlignment, vertAlign: VerticalAlignment, padding: number, result: Vector2): void;
        public static CreateContainerDiv(width: number, height: number): HTMLDivElement;
        public static CreateImage(): HTMLImageElement;
        public static CreateSystemUI(parentUI: HTMLElement, uiType: string): HTMLElement;
        public static GetStyleNumber(strValue: string): number;
        public static SetControlPositionInViewport(div: HTMLElement, position: Vector2, viewport: Rect, padding?: number): void;
        public static SetCursor(htmlUI: HTMLElement, cursor: Cursor): void;
        public static VisibilityToBool(visibility: Visibility): boolean;
        public static WindowsColorToJs(colorStr: string): string;
    }

    class EarthMath2 {
        public static readonly EARTH_RADIUS: number;
        public static Angle(x1: number, y1: number, x2: number, y2: number): number;
        public static Area(points: Vector2[]): number;
        public static Buffer(points: Vector2[], radius: number, isRoundJoin?: boolean, isRoundEnd?: boolean, isClosed?: boolean): Vector2[];
        public static BufferPoint(center: Vector2, radius: number): Vector2[];
        public static BufferPoly(points: Vector2[], radius: number): Vector2[];
        public static Distance(x1: number, y1: number, x2: number, y2: number): number;
        public static DistancePoint(pt1: Vector2, pt2: Vector2): number;
        public static DistancePointLine(pt: Vector2, linePoints: Vector2[]): number;
        public static LatitudePerMeter(): number;
        public static Length(points: Vector2[]): number;
        public static LongitudePerMeter(latitudeDegree: number): number;
    }

    /**
      * EarthMath3 地球三维数学类，xz坐标为经纬度,y为海拔高度
      */
    class EarthMath3 {
        /**
          * 计算多边形
          * @param triPoints 
          * @returns 
         */
        public static Area(triPoints: Vector3[]): number;
        /**
          * 计算两点距离
          * @param x1 
          * @param y1 
          * @param z1 
          * @param x2 
          * @param y2 
          * @param z2 
          * @returns 
         */
        public static Distance(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): number;
        /**
          * 计算折线间距离
          * @param points1 
          * @param points2 
          * @returns 距离米
         */
        public static DistanceLineLine(points1: Vector3[], points2: Vector3[]): number;
        /**
          * 计算折线间距离，保存最短线段坐标
          * @param points1 
          * @param points2 
          * @param distLinePoints RefValue指向结果端点数组
          * @returns 距离米
         */
        public static DistanceLineLineAdvance(points1: Vector3[], points2: Vector3[], distLinePoints: RefValue<Array<Vector3>>): number;
        /**
          * 计算两点间距离
          * @param pt1 
          * @param pt2 
          * @returns 距离米
         */
        public static DistancePoint(pt1: Vector3, pt2: Vector3): number;
        /**
          * 计算点到折线距离
          * @param point 
          * @param points 
          * @returns 距离米
         */
        public static DistancePointLine(point: Vector3, points: Vector3[]): number;
        /**
          * 计算点到折线距离，保存最近点坐标
          * @param point 
          * @param points 
          * @param resultPoint 最近点坐标
          * @returns 距离米
         */
        public static DistancePointLineAdvance(point: Vector3, points: Vector3[], resultPoint: Vector3): number;
        /**
          * 
          * @param originCenter 
          * @param earthPoint 
          * @returns 
         */
        public static EarthToLocal(originCenter: Vector3, earthPoint: Vector3): Vector3;
        /**
          * 
          * @param originCenter 
          * @param earthPoint 
          * @param result 
         */
        public static EarthToLocalToRef(originCenter: Vector3, earthPoint: Vector3, result: Vector3): void;
        /**
          * 
          * @param earthPt 
          * @returns 
         */
        public static EarthToWorld(earthPt: Vector3): Vector3;
        /**
          * 
          * @param points 
          * @returns 
         */
        public static EarthToWorldArray(points: Vector3[]): Vector3[];
        /**
          * 
          * @param x 
          * @param y 
          * @param z 
          * @returns 
         */
        public static EarthToWorldDouble(x: number, y: number, z: number): Vector3;
        /**
          * 
          * @param x 
          * @param y 
          * @param z 
          * @param result 
         */
        public static EarthToWorldDoubleRef(x: number, y: number, z: number, result: Vector3): void;
        /**
          * 
          * @param earthPt 
          * @param result 
         */
        public static EarthToWorldToRef(earthPt: Vector3, result: Vector3): void;
        /**
          * 
          * @param pos 
          * @returns 
         */
        public static GetUpVector(pos: Vector3): Vector3;
        /**
          * 
         */
        public static GetWorldRadius(): number;
        /**
          * 计算折线长度
          * @param points 
          * @returns 长度米
         */
        public static Length(points: Vector3[]): number;
        /**
          * 
          * @param devicePt 
          * @returns 
         */
        public static WorldToEarth(devicePt: Vector3): Vector3;
        /**
          * 
          * @param points 
          * @returns 
         */
        public static WorldToEarthArray(points: Vector3[]): Vector3[];
        /**
          * 
          * @param x 
          * @param y 
          * @param z 
          * @returns 
         */
        public static WorldToEarthDouble(x: number, y: number, z: number): Vector3;
        /**
          * 
          * @param x 
          * @param y 
          * @param z 
          * @param result 
         */
        public static WorldToEarthDoubleRef(x: number, y: number, z: number, result: Vector3): void;
        /**
          * 
          * @param devicePt 
          * @param result 
         */
        public static WorldToEarthToRef(devicePt: Vector3, result: Vector3): void;
    }

    /**
      * GeoExtent 表示经纬度坐标的矩形范围
      */
    class GeoExtent {
        /**
          * 
         */
        public west: number;
        /**
          * 
         */
        public south: number;
        /**
          * 
         */
        public east: number;
        /**
          * 
         */
        public north: number;
        /**
          * 
          * @param west 
          * @param south 
          * @param east 
          * @param north 
         */
        constructor(west?: number, south?: number, east?: number, north?: number);
        /**
          * 中心点
         */
        public readonly center: Vector2;
        /**
          * 纬度高度
         */
        public readonly height: number;
        /**
          * 经度宽度
         */
        public readonly width: number;
        /**
          * 复制
          * @param this 
          * @returns 
         */
        public clone(this): GeoExtent;
        /**
          * 是否包含指定坐标
          * @param lon 经度
          * @param lat 纬度
          * @returns 
         */
        public contains(lon: number, lat: number): boolean;
        /**
          * 判读与给定范围是否有相交
          * @param other 
          * @returns 
         */
        public intersects(other: GeoExtent): boolean;
        /**
          * 用给定值初始化
          * @param west 
          * @param south 
          * @param east 
          * @param north 
          * @returns 
         */
        public set(west: number, south: number, east: number, north: number);
        /**
          * 转换为Rect对象
         */
        public toRect(): Rect;
        /**
          * 从矩形对象创建
          * @param x 
          * @param y 
          * @param width 
          * @param height 
          * @returns 
         */
        public static FromRect(rect: Rect): GeoExtent;
        /**
          * 从矩形数值创建
          * @param x 
          * @param y 
          * @param width 
          * @param height 
          * @returns 
         */
        public static FromRectValues(x: number, y: number, width: number, height: number): GeoExtent;
        /**
          * 转换为矩形对象
          * @param west 
          * @param south 
          * @param east 
          * @param north 
          * @returns 
         */
        public static ToRect(west: number, south: number, east: number, north: number): Rect;
    }

    /**
      * PointOnLine 点在折线上的信息类。用于比较高级的折线相关计算。
      */
    class PointOnLine {
        /**
          * 所在线段起点索引号
         */
        public index: number;
        /**
          * 所在线段起点坐标
         */
        public point: Vector2;
        /**
          * 位于所在线段起点与终点之间的比例
         */
        public ratio: number;
        /**
          * 
          * @param index 
          * @param ratio 
          * @param point 
          * @returns 
         */
        public static Create(index: number, ratio: number, point: Vector2): PointOnLine;
    }

    class PointOnLine_Comparer implements IComparer<PointOnLine> {
        public compare(x: PointOnLine, y: PointOnLine): number;
    }

    class Shape2 {
        /**
          * 
          * @param centerPoints 
          * @param tailWidth 
          * @param headWidth 
          * @returns 
         */
        public static Arrow(centerPoints: Vector2[], tailWidth: number, headWidth: number): Vector2[];
        /**
          * 
          * @param controlPoints 
          * @param count 
          * @returns 
         */
        public static Bezeir(controlPoints: Vector2[], count: number): Vector2[];
        /**
          * 
          * @param center
          * @param radius
          * @param roundDivCount 
          * @returns 
         */
        public static Circle(center: Vector2, radius: number, roundDivCount?: number): Vector2[];
        /**
          * 
          * @param rect 
          * @returns 
         */
        public static Rectangle(rect: Rect): Vector2[];
        /**
          * 
          * @param controlPoints 
          * @param divCount 
          * @param isClosed 
          * @returns 
         */
        public static Spline(controlPoints: Vector2[], divCount?: number, isClosed?: boolean): Vector2[];
    }

    class QuadtreeIndex<T extends IQuadTreeIndexable> {
        constructor(worldMin?: Vector2, worldMax?: Vector2, maxBlockCapacity?: number, maxDepth?: number);
        public readonly count: number;
        public add(entry: T): void;
        public addArray(entries: Array<T>): void;
        public select(range: Rect): Array<T>;
    }

    class DynamicQuadTreeIndex<T extends IQuadTreeIndexable> extends QuadtreeIndex<T> {
        constructor(maxBlockCapacity?: number);
        public add(entry: T): void;
        public addArray(entries: Array<T>): void;
        public select(range: Rect): Array<T>;
    }

    interface IQuadTreeIndexable {
        bounds: Rect;
    }

    class SphereIndex<T> {
        constructor(minRadius: number);
        public readonly count: number;
        public addToIndex(obj: T, pos: Vector3, objectRadius: number): boolean;
        public clear(): void;
        public init(minRadius: number): void;
        public search(pos: Vector3, radius: number, results: RefValue<Array<T>>): boolean;
    }

    interface IBoundsBinder {
        bounds: Box;
        count: number;
        triBounds(no: number): Box;
    }

    class BoundsBinder implements IBoundsBinder {
        public readonly bounds: Box;
        public readonly count: number;
        public readonly maxArray: Float32Array;
        public readonly minArray: Float32Array;
        public triBounds(no: number): Box;
        public static Create(bounds: Box, minArray: Float32Array, maxArray: Float32Array): BoundsBinder;
        public static CreateFromPoints(triPoints: Vector3Array): BoundsBinder;
    }

    class OctreeBlockSplitInfo {
        public binder: IBoundsBinder;
        public total: number;
        public capacity: number;
        public maxDepth: number;
        constructor(binder: IBoundsBinder, total: number, capacity: number, maxDepth: number);
    }

    class OctreeBlock {
        public min: Vector3;
        public max: Vector3;
        public depth: number;
        public entries: Array<number>;
        public subs: Array<OctreeBlock>;
        public count: number;
        constructor(min: Vector3, max: Vector3, depth: number, entries?: Array<number>, subs?: Array<OctreeBlock>, count?: number);
        public no: number;
        public addEntries(info: OctreeBlockSplitInfo, entries: Array<number>): void;
        public addEntry(info: OctreeBlockSplitInfo, entry: number): void;
        public enumSubBlocks(result: Array<OctreeBlock>): void;
        public select(binder: IBoundsBinder, selectCondition: IOctreeSelector, result: Array<number>): void;
    }

    interface IOctreeSelector {
        intersects(min: Vector3, max: Vector3);
        intersectsEntry(binder: IBoundsBinder, no: number): boolean;
    }

    interface IOctreeIndex {
        boundingBox: Box;
        select(selectCondition: IOctreeSelector): Array<number>;
    }

    class OctreeIndex implements IOctreeIndex {
        public readonly boundingBox: Box;
        public readonly count: number;
        public readonly root: OctreeBlock;
        public select(selectCondition: IOctreeSelector): Array<number>;
        public static Create(triPoints: Vector3Array, capacity?: number, maxDepth?: number): IOctreeIndex;
    }

    class QueryOctreeIndexData {
        public bounds: Float32Array;
        public addrs: Int32Array;
        public subs: Int32Array;
        public entries: Int32Array;
        public binderMin: Float32Array;
        public binderMax: Float32Array;
        public binderBoundsArray: Float32Array;
        public triPointFloats: Float32Array;
        constructor(bounds: Float32Array, addrs: Int32Array, subs: Int32Array, entries: Int32Array, binderMin: Float32Array, binderMax: Float32Array, binderBoundsArray: Float32Array, triPointFloats: Float32Array);
    }

    class QueryOctreeIndex implements IOctreeIndex {
        public binder: IBoundsBinder;
        public bounds: Float32Array;
        public addrs: Int32Array;
        public subs: Int32Array;
        public entries: Int32Array;
        constructor(binder: IBoundsBinder, bounds: Float32Array, addrs: Int32Array, subs: Int32Array, entries: Int32Array);
        public readonly boundingBox: Box;
        public select(selectCondition: IOctreeSelector): Array<number>;
        public static Create(triPoints: Vector3Array, capacity?: number, maxDepth?: number): QueryOctreeIndex;
        public static CreateFromBlock(binder: BoundsBinder, root: OctreeBlock): QueryOctreeIndex;
    }

    class OctreeRaySelector implements IOctreeSelector {
        constructor(ray: Ray);
        public intersects(min: Vector3, max: Vector3): boolean;
        public intersectsEntry(binder: IBoundsBinder, no: number): boolean;
    }

    class OctreePlaneSelector implements IOctreeSelector {
        constructor(plane: Plane);
        public intersects(min: Vector3, max: Vector3): boolean;
        public intersectsEntry(binder: IBoundsBinder, no: number): boolean;
    }

    class OctreeBoxSelector implements IOctreeSelector {
        constructor(box: Box);
        public intersects(min: Vector3, max: Vector3): boolean;
        public intersectsEntry(binder: IBoundsBinder, no: number): boolean;
    }

    class TriangleIntersectResult {
        public position: Vector3;
        public triIndex: number;
        constructor(position: Vector3, triIndex: number);
    }

    class TriangleIndexBase {
        protected intersectsRayTriangles(ray: Ray, triPoints: Array<Vector3>): TriangleIntersectResult;
        public clampLine(surfacePt1: Vector3, surfacePt2: Vector3, upVector: Vector3, nearPointDis: number): Array<Vector3>;
        public selectByBox(box: Box): Array<Vector3>;
        public selectByPlane(plane: Plane): Array<Vector3>;
        public selectByRay(ray: Ray): Array<Vector3>;
    }

    class MeshTriangleIndex extends TriangleIndexBase {
        constructor(triPoints: Vector3Array);
        public readonly triPoints: Vector3Array;
        protected toTriPoints(nos: Array<number>): Array<Vector3>;
        public clampPolygon(clipPoints: Vector3[]): Vector3[];
        public clipOneTriangle(tri1: Vector3, tri2: Vector3, tri3: Vector3, clipPointsMap: Vector2[], resultPoints3d: RefValue<Array<Vector3[]>>): boolean;
        public intersectsWithTriangle(tri1: Vector3, tri2: Vector3, tri3: Vector3, clipPoints: Vector3[], intersectSeqCount: RefValue<number>, intersectionPoints: RefValue<Array<Vector3>>): boolean;
        public selectByBox(box: Box): Array<Vector3>;
        public selectByPlane(plane: Plane): Array<Vector3>;
        public selectByRay(ray: Ray): Array<Vector3>;
        public selectTriNosByBox(box: Box): Array<number>;
        public selectTriNosByPlane(plane: Plane): Array<number>;
        public selectTriNosByRay(ray: Ray): Array<number>;
    }

    interface IDynOctreeIndexable {
        bounds: Box
    }

    interface IDynOctreeSelector<T extends IDynOctreeIndexable> {
        intersects(bounds: Box): boolean;
    }

    interface IDynOctreeBlock<T extends IDynOctreeIndexable> {
        count: number;
        readonly bounds: Box;
        readonly depth: number;
        readonly entries: Array<T>;
        subs: Array<IDynOctreeBlock<T>>;
    }

    class DynOctreeBlock<T extends IDynOctreeIndexable> implements IDynOctreeBlock<T> {
        public bounds: Box;
        public depth: number;
        public entries: Array<T>;
        public subs: Array<IDynOctreeBlock<T>>;
        public count: number;
        constructor(bounds: Box, depth: number, entries: Array<T>, subs: Array<IDynOctreeBlock<T>>, count?: number);
    }

    class DynOctreeBlockSplitInfo {
        public totalSubCount: number;
        public capacity: number;
        public maxDepth: number;
        constructor(totalSubCount: number, capacity: number, maxDepth: number);
    }

    class DynOctreeIndex<T extends IDynOctreeIndexable> {
        public readonly count: number;
        public readonly root: DynOctreeBlock<T>;
        public readonly splitInfo: DynOctreeBlockSplitInfo;
        public add(entries: Array<T>): void;
        public select(selectCondition: IDynOctreeSelector<T>): Array<T>;
        public static CreateForBuild<T extends IDynOctreeIndexable>(min: Vector3, max: Vector3, capacity?: number, maxDepth?: number): DynOctreeIndex<T>;
        public static CreateForQuery<T extends IDynOctreeIndexable>(root: IDynOctreeBlock<T>): DynOctreeIndex<T>;
    }

    class DynOctreeRaySelector<T extends IDynOctreeIndexable> implements IDynOctreeSelector<T> {
        constructor(ray: Ray);
        public intersects(bounds: Box): boolean;
    }

    class DynOctreePlaneSelector<T extends IDynOctreeIndexable> implements IDynOctreeSelector<T> {
        constructor(plane: Plane);
        public intersects(bounds: Box): boolean;
    }

    class DynOctreeBoxSelector<T extends IDynOctreeIndexable> implements IDynOctreeSelector<T> {
        constructor(box: Box);
        public intersects(bounds: Box): boolean;
    }

    class Projection4 {
        public static FromSrs(srs: string, coords: Vector2): Vector2;
    }

    class RectOverlapIndexBase<TUnit, TData> {
        protected allocUnit(): TUnit;
        protected commitAllocUnit(): TUnit;
        protected intersectUnit(unit: TUnit, range: Rect, data?: any): boolean;
        protected updateUnit(unit: TUnit, range: Rect, data?: any): void;
        public combineRect(range: Rect, data?: TData): void;
        public getRange(): Rect;
        public rectInRegion(range: Rect, data?: TData): boolean;
        public reset(wholeRange: Rect): void;
    }

    interface IRectOverlapIndex {
        combineRect(range: Rect): void;
        rectInRegion(range: Rect): boolean;
        reset(wholeRange: Rect): void;
    }

    class PreciseRectOverlapIndex extends RectOverlapIndexBase<Rect, any> implements IRectOverlapIndex {
        protected commitAllocUnit(): Rect;
        protected intersectUnit(unit: Rect, range: Rect): boolean;
        protected updateUnit(unit: Rect, range: Rect): void;
    }

    interface IRectOverlapIndex {
        combineRect(rect: Rect): void;
        rectInRegion(rect: Rect): boolean;
        reset(viewport: Rect): void;
    }

    class RoughRectOverlapIndex implements IRectOverlapIndex {
        public readonly step: number;
        constructor(step?: number);
        public combineRect(rect: Rect): void;
        public rectInRegion(rect: Rect): boolean;
        public reset(viewport: Rect): void;
    }

    interface IStorageRoot {
        isReadOnly: boolean;
        clear(): void;
        commit(): void;
    }

    interface ISimpleStorage extends IStorageRoot {
        contains(dataName: string): boolean;
        enumDatas(): Array<string>;
        readData(dataName: string): Uint8Array;
        remove(dataName: string): boolean;
        rename(oldName: string, newName: string): boolean;
        writeData(dataName: string, dataBuf: Uint8Array): boolean;
    }

    interface IStorage extends ISimpleStorage, IStorageRoot {
        enumStorages(): Array<string>;
        openStorage(name: string, autoCreate: boolean): IStorage;
    }

    interface IQuadtreeStorage extends IStorageRoot {
        readNode(level: number, xIndex: number, yIndex: number): Uint8Array;
        removeNode(level: number, xIndex: number, yIndex: number): boolean;
        writeNode(level: number, xIndex: number, yIndex: number, nodeData: Uint8Array): boolean;
    }

    interface ISimpleStoragePersist {
        load(simpleStorage: ISimpleStorage): void;
        save(simpleStorage: ISimpleStorage): void;
    }

    interface IObjectLoader<TKey, TValue> {
        loadObject(key: TKey): TValue;
        releaseObject(key: TKey, obj: TValue): void;
    }

    interface IObjectCache<TKey, TValue> {
        count: number;
        accessObject(key: TKey, autoLoad: boolean): TValue;
        addObject(key: TKey, obj: TValue): boolean;
        clear(): void;
        collectGabage(): void;
        contains(key: TKey): boolean;
        removeObject(key: TKey): boolean;
    }

    enum ObjectCacheKeyType {
        Any = 0,
        Number = 1,
        String = 2
    }

    class ObjectCache_CacheUnit<TKey, TValue> {
        public accessMs: number;
        public key: TKey;
        public object: TValue;
        public dispose(): void;
        public static DisposeUnits<TKey, TValue>(units: Array<ObjectCache_CacheUnit<TKey, TValue>>): void;
        public static SortByAccessEarlyToLate<TKey, TValue>(units: Array<ObjectCache_CacheUnit<TKey, TValue>>): Array<ObjectCache_CacheUnit<TKey, TValue>>;
    }

    class ObjectCache<TKey, TValue> implements IObjectCache<TKey, TValue> {
        constructor(loader: IObjectLoader<TKey, TValue>, keyType?: ObjectCacheKeyType);
        public capacity: number;
        public readonly count: number;
        public readonly values: Array<TValue>;
        protected commitCollectGabage(): void;
        public accessObject(key: TKey, autoLoad?: boolean): TValue;
        public addObject(key: TKey, obj: TValue): boolean;
        public clear(): void;
        public collectGabage(): void;
        public contains(key: TKey): boolean;
        public disEnableTimeOutClear(): void;
        public enableTimeOutClear(timeoutMs?: number): void;
        public removeObject(key: TKey): boolean;
    }

    interface IObjectCacheSize {
        cacheBytes: number;
    }

    class SizeBasedObjectCache<TValue extends IObjectCacheSize> extends ObjectCache<number, TValue> implements IObjectCache<number, TValue>, INoObject {
        constructor(loader: IObjectLoader<number, TValue>);
        public no: number;
        protected commitCollectGabage(): void;
    }

    /**
      * Layer 所有图层对象的基类
      */
    class Layer extends NameObject {
        /**
          * 图层透明度 0-1.0
         */
        public alpha: number;
        /**
          * 是否动画模式。如果某一可见图层设置为true，则系统会保持连续重画状态。
         */
        public isAnimation: boolean;
        /**
          * 是否允许拖动操作
         */
        public isDragable: boolean;
        /**
          * 
         */
        public isEnableMouseOverPick: boolean;
        /**
          * 图层中对象是否永远保持可见。忽略所有的裁剪流程(Frustum, LOD等)
         */
        public isObjectAlwaysVisible: boolean;
        /**
          * 是否可选择
         */
        public isPickable: boolean;
        /**
          * 是否可见
         */
        public isVisible: boolean;
        /**
          * 图层完成绘制之后发出消息
         */
        public readonly onAfterRender: Observable<Layer>;
        /**
          * 图层开始绘制之前发出消息
         */
        public readonly onBeforeRender: Observable<Layer>;
        /**
          * 
         */
        protected onSetVisible(): void;
        /**
          * 内部可继承函数。在绘制完成之后被调用
         */
        public notifyOnAfterRender(): void;
        /**
          * 内部可继承函数。在绘制开始之前被调用
         */
        public notifyOnBeforeRender(): void;
    }

    /**
      * LayerCollection 图层集合对象
      */
    class LayerCollection<T extends Layer> extends NameObjectList<T> {
        /**
          * 是否可见。如果false，则所有图层不可见。如果true，使用各图层自己的设置
         */
        public isVisible: boolean;
        /**
          * 是否包含动画模式图层
         */
        public hasAnimation(): boolean;
    }

    enum OperMouseMsgType {
        None,
        LeftButtonDown = 10,
        LeftButtonUp,
        LeftButtonDoubleClick,
        RightButtonDown = 20,
        RightButtonUp,
        RightButtonDoubleClick,
        MouseMove = 30,
        MouseWheel = 40
    }

    class OperMessageCommon {
        public hasButtonDown: boolean;
        public isKeyDown: boolean;
        public keyCode: number;
        public keyModifiers: number;
        public keyParam: number;
        public mouseMsg: OperMouseMsgType;
        public mouseParam: number;
        public point: Vector2;
        public pointDevice: Vector2;
        public static CreateKey(isKeyDown: boolean, keyCode: number, keyParam: number): OperMessageCommon;
        public static CreateMouse(msgType: OperMouseMsgType, nFlags: number, ptDevice: Vector2): OperMessageCommon;
    }

    class OperMouseMessage {
        public point: Vector2;
        public pointDevice: Vector2;
        public modifier: number;
        public mouseParam: number;
        constructor(point: Vector2, pointDevice: Vector2, modifier: number, mouseParam: number);
        public keyModifiers: number;
        public isModifierKeyDown(key: ModifierKeys): boolean;
    }

    class OperKeyMessage {
        public keyCode: number;
        public isKeyDown: boolean;
        public modifier: number;
        public keyParam: number;
        constructor(keyCode: number, isKeyDown: boolean, modifier: number, keyParam: number);
        public hasModifierKeyDown(): boolean;
        public isModifierKeyDown(key: ModifierKeys): boolean;
    }

    class OperKeybord {
        public static GetModifierKeys(): number;
    }

    class OperationBase {
        public cursor: Cursor;
        public fatherOper: OperationBase;
        public readonly isTaskFinish: boolean;
        public readonly isTaskStarted: boolean;
        public readonly topfatherOper: OperationBase;
        public readonly topSonOper: OperationBase;
        public sonOper: OperationBase;
        protected cancelTask(): void;
        protected completeTask(): void;
        protected failTask(): void;
        protected notifyFather(): void;
        protected notifyFatherDraw(): void;
        protected onKeyDown(keyParam: OperKeyMessage): boolean;
        protected onKeyUp(keyParam: OperKeyMessage): boolean;
        protected onLeftButtonDblClk(mouseMessage: OperMouseMessage): boolean;
        protected onLeftButtonDown(mouseMessage: OperMouseMessage): boolean;
        protected onLeftButtonUp(mouseMessage: OperMouseMessage): boolean;
        protected onMouseMove(mouseMessage: OperMouseMessage): boolean;
        protected onMouseWheel(mouseMessage: OperMouseMessage): boolean;
        protected onRightButtonDblClk(mouseMessage: OperMouseMessage): boolean;
        protected onRightButtonDown(mouseMessage: OperMouseMessage): boolean;
        protected onRightButtonUp(mouseMessage: OperMouseMessage): boolean;
        protected onSonOperCancelTask(): void;
        protected onSonOperCompleteTask(): void;
        protected onSonOperDraw(): void;
        protected onSonOperFailTask(): void;
        protected onSonOperNotify(): void;
        protected onSonOperStartTask(): void;
        protected startTask(): void;
        public handleMessage(messageUnit: OperMessageCommon): boolean;
        public onDraw(): void;
        public resetTask(): void;
    }

    class AsyncDataReader {
        constructor(isArrayBuffer: boolean, tryParseJsonBytes: boolean);
        public read(url: string): Promise<any>;
    }

    class AsyncWebStreamResultPackage {
        public count: number;
        public datas: Array<Uint8Array>;
        public processedData: any;
        constructor(count: number, datas: Array<Uint8Array>, processedData?: any);
    }

    export type AsyncWebStreamResultType = Uint8Array | AsyncWebStreamResultPackage;

    class AsyncWebStreamTask {
        public taskName: string;
        public url: string;
        public callback: (taskName: string, url: string, result: AsyncWebStreamResultType) => void;
        public tag: string;
        public type: AsyncDataLoadType;
        constructor(taskName: string, url: string, callback: (taskName: string, url: string, result: AsyncWebStreamResultType) => void, tag: string, type: AsyncDataLoadType);
    }

    class AsyncWebStream {
        public static IsAllowUseCache: boolean;
        public static MaxLoading: number;
        public static AddTaskBatch(tasks: Array<AsyncWebStreamTask>): void;
        public static GetLoadingCount(): number;
        public static IsLoading(url: string): boolean;
        public static ReadDirect(url: string): Promise<any>;
        public static ReadDirectUint8Array(url: string): Promise<Uint8Array>;
    }

    enum AsyncProcessType {
        TileMesh = 1,
        Octree = 2,
        Image = 3,
        Mvt = 11
    }

    interface ITaskToProcessWorker {
        readonly id: number;
    }

    interface IResultFromProcessWorkder {
        readonly id: number;
    }

    interface IMessageToProcessWorker {
        tasks: Array<ITaskToProcessWorker>;
        type: AsyncProcessType;
    }

    interface IMessageFromProcessWorker {
        results: Array<IResultFromProcessWorkder>;
        type: AsyncProcessType;
    }

    class AsyncProcessTask {
        public resolve: (data: any) => void;
        constructor(resolve: (data: any) => void);
        public readonly id: number;
    }

    class AsyncProcessManagerBase {
        constructor(workerJsName?: string);
        protected resolveMessageFromWorker(e: MessageEvent): void;
        protected postMessageToWorker(type: AsyncProcessType, tasks: Array<ITaskToProcessWorker>, transfers: Array<any>): void;
        public processWorkerMessage(timer: ProcessTimer, willDraw: boolean): void;
    }

    class OctreeIndexCreateResult {
        public index: IOctreeIndex;
        public triPointFloats: Float32Array;
        constructor(index: IOctreeIndex, triPointFloats: Float32Array);
    }

    class AsyncOctreeProcessManager extends AsyncProcessManagerBase {
        protected resolveMessageFromWorker(e: MessageEvent): void;
        public taskMax: number;
        public addTask(vs: Vector3Array): Promise<OctreeIndexCreateResult>;
        public sendTasks(): void;
    }

    interface ITileMeshTaskToWorker extends ITaskToProcessWorker {
        data: TileMeshProcessData;
    }

    interface ITileMeshResultFromWorker extends IResultFromProcessWorkder {
        data: TileMeshProcessResultData;
    }

    class AsyncTileMeshProcessManager extends AsyncProcessManagerBase {
        protected resolveMessageFromWorker(e: MessageEvent): void;
        public addTask(processData: TileMeshProcessData): Promise<TileMeshProcessResultData>;
        public getTaskCount(): number;
        public sendTasks(): void;
    }

    interface IImageTaskToWorker extends ITaskToProcessWorker {
        data: Array<Uint8Array>;
    }

    interface IImageResultFromWorker extends IResultFromProcessWorkder {
        data: Array<ImageBitmap>;
    }

    class AsyncImageProcessManager extends AsyncProcessManagerBase {
        protected resolveMessageFromWorker(e: MessageEvent): void;
        public addTask(imageBytesArray: Array<Uint8Array>): Promise<Array<ImageBitmap>>;
        public getTaskCount(): number;
        public sendTasks(): void;
    }

    class MvtProcessData {
        public handle: string;
        public pbfBytes: Uint8Array;
        public getTransferObjects(): Array<any>;
    }

    class MvtProcessSubResultData {
        public coordArrays: Uint32Array[];
        public coordFloatArray: Float32Array;
        public earthOrigin: Vector2;
        public idArrays: Uint32Array[];
        public indiceBuffer: Uint32Array;
        public keys: string[];
        public layer: string;
        public propertyArrays: Uint32Array[];
        public values: string[];
        public vertexBuffer: Float32Array;
        public worldMax: Vector3;
        public worldMin: Vector3;
        public worldOrigin: Vector3;
        public dispose(): void;
        public getTransferObjects(): Array<any>;
        public getTransferObjectsToRef(arrs: Array<any>): void;
    }

    class MvtProcessResultData {
        public subs: MvtProcessSubResultData[];
        public getTransferObjects(): Array<any>;
        public getTransferObjectsToRef(arrs: Array<any>): void;
        public static Dispose(data: MvtProcessResultData): void;
    }

    interface IMvtTaskToWorker extends ITaskToProcessWorker {
        data: MvtProcessData;
    }

    interface IMvtResultFromWorker extends IResultFromProcessWorkder {
        data: MvtProcessResultData;
    }

    class AsyncMvtProcessManager extends AsyncProcessManagerBase {
        protected resolveMessageFromWorker(e: MessageEvent): void;
        public addTask(processData: MvtProcessData): Promise<MvtProcessResultData>;
        public getTaskCount(): number;
        public sendTasks(): void;
    }

    class AsyncProcess {
        public static CreateTriangleIndex(vs: Vector3Array): Promise<OctreeIndexCreateResult>;
        public static DecodeImage(imageBytesArray: Array<Uint8Array>): Promise<Array<ImageBitmap>>;
        public static ProcessMvt(processData: MvtProcessData): Promise<MvtProcessResultData>;
        public static ProcessTileMesh(processData: TileMeshProcessData): Promise<TileMeshProcessResultData>;
    }

    enum AsyncDataLoadType {
        ArrayBuffer = 0,
        ArrayBufferOrPackage = 1,
        TileMesh = 10,
        Image = 100
    }

    enum AsyncDataPriority {
        Common = 0,
        Low = -10,
        System = 10
    }

    class AsyncDataLoadResult {
        public url: string;
        public data: any;
        public isBadUrl: boolean;
        constructor(url: string, data: any, isBadUrl: boolean);
    }

    class AsyncDataLoadManager {
        public canLoadData(): boolean;
        public canLoadImage(): boolean;
        public commitTasks(timer: ProcessTimer): void;
        public isLoadingTask(url: string): boolean;
        public loadAsync(type: AsyncDataLoadType, url: string, tag?: string, priority?: AsyncDataPriority): Promise<AsyncDataLoadResult>;
    }

    class DataPrepareState {
        public isFinish: boolean;
        constructor(isFinish?: boolean);
    }

    class AsyncDataPrepareManager {
        public addDrawingResourceCreateTask(data: any, callback: (data, finishState: DataPrepareState) => any, priority: AsyncDataPriority): PromiseDelegate;
        public commitTasks(timer: ProcessTimer): void;
        public getWaitingCount(): number;
    }

    class AsyncRenderContext {
        public static CanLoadData(): boolean;
        public static CanLoadImage(): boolean;
        public static CommitLoadTasks(timer: ProcessTimer): void;
        public static CommitPrepareTasks(timer: ProcessTimer): void;
        public static CreateDrawingResource(data: any, callback: (data, finishState: DataPrepareState) => void, priority: AsyncDataPriority): PromiseDelegate;
        public static IsLoadingData(url: string): boolean;
        public static LoadData(type: AsyncDataLoadType, url: string, tag?: string, priority?: AsyncDataPriority): Promise<AsyncDataLoadResult>;
        public static PrepareDataAsync(data: any, callback: (data, finishState: DataPrepareState) => void, priority: AsyncDataPriority): Promise<any>;
    }

    class DrawStyle {
        public brushColor: Color;
        public brushStyle: number;
        public fontName: string;
        public penColor: Color;
        public penStyle: number;
        public penWidth: number;
        public textAngle: number;
        public textColor: Color;
        public textHeight: number;
        public copyFrom(src: DrawStyle): void;
    }

    class Pen2 {
        constructor(penColor: Color, penWidth: number);
        public readonly brush: SolidColorBrush;
        public readonly color: Color;
        public readonly dashArrayH5: Array<number>;
        public readonly dashArrayString: string;
        public readonly width: number;
        public setDashPattern(dashStyle: Float32Array): void;
    }

    /**
      * CanvasGraphics 包装在canvas之上的二维绘制类
      */
    class CanvasGraphics {
        /**
          * 
          * @param canvas 
         */
        constructor(canvas: HTMLCanvasElement);
        /**
          * 
          * @param ctx 
          * @param width 
          * @param height 
         */
        public attachContext(ctx: CanvasRenderingContext2D, width: number, height: number): void;
        /**
          * 
         */
        public clear(): void;
        /**
          * 
          * @param rect 
          * @param pen 
          * @param brush 
         */
        public drawEllipse(rect: Rect, pen: Pen2, brush?: Brush): void;
        /**
          * 
          * @param bitmap 
          * @param point 
          * @param angle 
         */
        public drawImage(bitmap: WriteableBitmap, point: Vector2, angle: number): void;
        /**
          * 
          * @param bitmap 
          * @param destRect 
         */
        public drawImageStretch(bitmap: WriteableBitmap, destRect: Rect): void;
        /**
          * 
          * @param ptStart 
          * @param ptEnd 
          * @param pen 
         */
        public drawLine(ptStart: Vector2, ptEnd: Vector2, pen: Pen2): void;
        /**
          * 
          * @param points 
          * @param pen 
          * @param brush 
         */
        public drawPolygon(points: Vector2[], pen: Pen2, brush: Brush): void;
        /**
          * 
          * @param points 
          * @param pen 
         */
        public drawPolyline(points: Vector2[], pen: Pen2): void;
        /**
          * 
          * @param rect 
          * @param pen 
          * @param brush 
          * @param roundRadius 
         */
        public drawRectangle(rect: Rect, pen: Pen2, brush?: Brush, roundRadius?: number): void;
        /**
          * 
          * @param text 
          * @param point 
          * @param color 
          * @param isHalo 
         */
        public drawText(text: string, point: Vector2, color: Color, isHalo?: boolean): void;
        /**
          * 
          * @param text 
          * @param point 
          * @param angle 
          * @param color 
          * @param fontSize 
          * @param fontFamilyName 
          * @param isBold 
          * @param haloWidth 
          * @param haloColor 
         */
        public drawTextAdvance(text: string, point: Vector2, angle: number, color: Color, fontSize?: number, fontFamilyName?: string, isBold?: boolean, haloWidth?: number, haloColor?: Color): void;
        /**
          * 
         */
        public getCanvas(): HTMLCanvasElement;
        /**
          * 
         */
        public getContext(): CanvasRenderingContext2D;
        /**
          * 
          * @param text 
          * @param fontSize 
          * @param fontFamilyName 
          * @returns 
         */
        public measureText(text: string, fontSize?: number, fontFamilyName?: string): Size;
        /**
          * 
          * @param text 
          * @param fontSize 
          * @param fontFamilyName 
          * @returns 
         */
        public static MeasureText(text: string, fontSize?: number, fontFamilyName?: string): Size;
    }

    class BitmapData {
        constructor(bitmap: WriteableBitmap);
    }

    class BitmapHelper {
        public static SetBitmapAlpha(bitmap: WriteableBitmap, alpha: number): void;
    }

    /**
      * WriteableBitmap 可编辑位图，内置canvas对象用于绘制。
      */
    class WriteableBitmap {
        /**
          * 
          * @param pixelWidth 
          * @param pixelHeight 
         */
        constructor(pixelWidth?: number, pixelHeight?: number);
        /**
          * 内部使用的canvas对象
         */
        public readonly canvas: HTMLCanvasElement;
        /**
          * 绘制对象
         */
        public readonly graphics: CanvasGraphics;
        /**
          * 图像数据源
         */
        public readonly imageSource: HTMLImageElement | HTMLCanvasElement;
        /**
          * 
         */
        public readonly isReady: boolean;
        /**
          * 像素高度
         */
        public readonly pixelHeight: number;
        /**
          * 获取像素数组
         */
        public readonly pixels: Int32Array;
        /**
          * 像素宽度
         */
        public readonly pixelWidth: number;
        /**
          * 清除内容
         */
        public clear(): void;
        /**
          * 
         */
        public clone(): WriteableBitmap;
        /**
          * 
         */
        public commitPixelUpdate();
        /**
          * 
          * @param destBitmap 
         */
        public copyTo(destBitmap: WriteableBitmap): void;
        /**
          * 
          * @param srcX 
          * @param srcY 
          * @param destBitmap 
          * @param destRect 
         */
        public copyToRect(srcX: number, srcY: number, destBitmap: WriteableBitmap, destRect: Rect): void;
        /**
          * 
          * @param srcRect 
          * @param destBitmap 
          * @param destRect 
         */
        public copyToRectStretch(srcRect: Rect, destBitmap: WriteableBitmap, destRect: Rect): void;
        /**
          * 
          * @param srcBitmap 
         */
        public resizeAndCopyFrom(srcBitmap: WriteableBitmap): void;
        /**
          * 
          * @param rawData 
          * @returns 
         */
        public static CreateFromBytes(rawData: Int32Array): WriteableBitmap;
        /**
          * 
          * @param imageOrCanvas 
          * @returns 
         */
        public static CreateFromHtmlImage(imageOrCanvas: HTMLImageElement | HTMLCanvasElement): WriteableBitmap;
        /**
          * 
          * @param url 
          * @param onSuccess 
          * @param onError 
          * @returns 
         */
        public static CreateFromUrl(url: string, onSuccess: (bmpEx: WriteableBitmap) => void, onError: (bmpEx: WriteableBitmap) => void): WriteableBitmap;
    }

    interface ITileProjection {
        maxRadius: number;
        project(cartographic: Vector2): Vector2;
        projectToRef(cartographic: Vector2, result: Vector2): void;
        unproject(cartesian: Vector2): Vector2;
        unprojectToRef(cartesian: Vector2, result: Vector2): void;
    }

    interface ITilingScheme {
        extent: GeoExtent;
        tilingType: TilingType;
        lonLatToXy(level: number, lonLat: Vector2): Vector2;
        xCountOfLevel(level: number): number;
        xyToExtent(handle: QuadtreeHandle): GeoExtent;
        xyToNativeExtent(handle: QuadtreeHandle): GeoExtent;
        yCountOfLevel(level: number): number;
    }

    export type GeoJsonPoint = Array<number>;

    export type GeoJsonCoordinates = Array<GeoJsonPoint>;

    /**
      * IGeoJsonParser 接口定义。GeoJsonParser用于调入和解析GeoJson数据，并在解析过程中以回调方式返回解析出的对象和关联属性。
      */
    interface IGeoJsonParser {
        /**
          * 异步调入指定url的GeoJson数据
          * @param url 
         */
        loadAsync(url: string): void;
        /**
          * 
          * @param jsonString 
         */
        loadFromString(jsonString: string): void;
        /**
          * 当解析出每一个LineString类型时回调
          * @param points 点数组
          * @param properties 关联属性
         */
        onLineString: (points: Vector3[], properties: object) => void;
        /**
          * 当解析出每一个MultiLineString类型时回调
          * @param pointsArray 点二维数组
          * @param properties 关联属性
         */
        onMultiLineString: (pointsArray: Vector3[][], properties: object) => void;
        /**
          * 当解析出每一个MultiPoint类型时回调
          * @param points 点数组
          * @param properties 关联属性
         */
        onMultiPoint: (points: Vector3[], properties: object) => void;
        /**
          * 当解析出每一个Point类型时回调
          * @param point 点
          * @param properties 关联属性
         */
        onPoint: (point: Vector3, properties: object) => void;
        /**
          * 
          * @param points 
          * @param holes 
          * @param properties 
          * @returns 
         */
        onPolygon: (points: Vector3[], holes: Vector3[][], properties: object) => void;
    }

    /**
      * GeoJsonParserBase Parser的祖先类
      */
    class GeoJsonParserBase implements IGeoJsonParser {
        /**
          * 
          * @param json 
         */
        protected onJsonData(json: any): void;
        /**
        * 异步调入指定url的GeoJson数据
        * @param url 
       */
        public loadAsync(url: string): void;
        /**
          * 
          * @param jsonString 
         */
        public loadFromString(jsonString: string): void;
        /**
          * 当解析出每一个LineString类型时回调
          * @param points 点数组
          * @param properties 关联属性
         */
        public onLineString: (points: Vector3[], properties: object) => void;
        /**
          * 当解析出每一个MultiLineString类型时回调
          * @param pointsArray 点二维数组
          * @param properties 关联属性
         */
        public onMultiLineString: (pointsArray: Vector3[][], properties: object) => void;
        /**
          * 当解析出每一个MultiPoint类型时回调
          * @param points 点数组
          * @param properties 关联属性
         */
        public onMultiPoint: (points: Vector3[], properties: object) => void;
        /**
          * 当解析出每一个Point类型时回调
          * @param point 点
          * @param properties 关联属性
         */
        public onPoint: (point: Vector3, properties: object) => void;
        /**
          * 当解析出每一个Polygon类型时回调
          * @param points 多边形轮廓
          * @param holes 洞
          * @param properties 关联属性
          * @returns 
         */
        public onPolygon: (points: Vector3[], holes: Vector3[][], properties: object) => void;
    }

    /**
      * GeoJsonParser 标准格式GeoJson的Parser类
      */
    class GeoJsonParser extends GeoJsonParserBase {
        /**
          * 
          * @param json 
         */
        protected onJsonData(json: any): void;
    }

    /**
      * EsriGeoJsonParser Esri格式GeoJson的Parser类
      */
    class EsriGeoJsonParser extends GeoJsonParserBase {
        /**
          * 
          * @param json 
         */
        protected onJsonData(json: any): void;
    }

    /**
      * TilingType 瓦片网格类型
      */
    enum TilingType {
        /**
          * 经纬度网格
         */
        Geographic = 1,
        /**
          * 墨卡托投影网格
         */
        WebMercator = 2
    }

    /**
      * 瓦片数据源参数选项
      */
    interface ITileProviderOptions {
        /**
          * 密码
         */
        accessToken?: string;
        /**
          * 数据范围
         */
        extent?: GeoExtent;
        /**
          * 文件后缀
         */
        fileExtension?: string;
        /**
          * 图层
         */
        layers?: string[];
        /**
          * 最大层级
         */
        maxLevel?: number;
        /**
          * 最小层级
         */
        minLevel?: number;
        /**
          * 根层级
         */
        rootLevel?: number;
        /**
          * 子域数组
         */
        subdomains?: string[];
        /**
          * 瓦片排列类型
         */
        tilingType?: TilingType;
        /**
          * 数据源url
         */
        url?: string;
    }

    interface ITileProvider extends IAsyncReady, INameObject {
        alpha: number;
        readonly extent: GeoExtent;
        readonly isReady: boolean;
        readonly maxLevel: number;
        readonly minLevel: number;
        readonly onReady: Observable<IImageProvider>;
        readonly tilingType: TilingType;
        splitDirection: number;
        transparentWhenNoData: boolean;
        getTileUrl(handle: QuadtreeHandle): string;
    }

    class TileProviderCommonRoot extends TObject {
        public alpha: number;
        public onReady: Observable<IImageProvider>;
        public readonly name: string;
        public splitDirection: number;
        public transparentWhenNoData: boolean;
    }

    class TileProviderBase extends TileProviderCommonRoot implements ITileProvider {
        public readonly extent: GeoExtent;
        public readonly isReady: boolean;
        public readonly maxLevel: number;
        public readonly minLevel: number;
        public readonly tilingType: TilingType;
        protected initRootFromOptions(options?: IImageProviderOptions): any;
        protected projection(): ITileProjection;
        protected setIsReady(): void;
        protected setMaxLevel(value: number, isForce?: boolean): void;
        protected setMinLevel(value: number, isForce?: boolean): void;
        protected setTilingType(tilingType: TilingType): void;
        protected xCountOfLevel(level: number): number;
        protected xyToExtent(handle: QuadtreeHandle): GeoExtent;
        protected xyToNativeExtent(handle: QuadtreeHandle): GeoExtent;
        protected yCountOfLevel(level: number): number;
        public getTileUrl(handle: QuadtreeHandle): string;
    }

    class WrapperTileProviderBase extends TileProviderCommonRoot implements ITileProvider {
        public readonly extent: GeoExtent;
        public readonly isReady: boolean;
        public readonly maxLevel: number;
        public readonly minLevel: number;
        public readonly tilingType: TilingType;
        protected getProvider(): ITileProvider;
        protected setProvider(provider: ITileProvider): void;
        public getTileUrl(handle: QuadtreeHandle): string;
    }

    class TemplateTileProviderBase extends TileProviderBase {
    }

    class WebMercator {
        public static ToGeoExtent(level: number, xIndex: number, zIndex: number): GeoExtent;
        public static ToGeoExtentToRef(level: number, xIndex: number, zIndex: number, result: GeoExtent): void;
        public static ToLngLat(mercatorLevel: number, x: number, y: number): Vector2;
        public static ToLngLatToRef(mercatorLevel: number, x: number, y: number, result: Vector2): void;
        public static ToRect(level: number, xIndex: number, zIndex: number): Rect;
        public static ToRectToRef(level: number, xIndex: number, zIndex: number, result: Rect): void;
        public static ToTile(mercatorLevel: number, lonLat: Vector2): Vector2;
        public static ToTileToRef(mercatorLevel: number, lonLat: Vector2, result: Vector2): void;
        public static ToTileY(mercatorLevel: number, lat: number): number;
        public static ToTileYArray(mercatorLevel: number, lats: Float64Array, result: Float64Array): void;
        public static XfromLng(lng: number);
        public static YfromLat(lat: number);
    }

    /**
      * IImageProviderOptions 瓦片服务参数
      */
    interface IImageProviderOptions extends ITileProviderOptions {
    }

    /**
      * IImageProvider 瓦片服务接口
      */
    interface IImageProvider extends ITileProvider {
    }

    /**
      * ImageProviderBase 瓦片服务的祖先类
      */
    class ImageProviderBase extends TileProviderBase implements IImageProvider {
    }

    /**
      * WrapperImageProviderBase 包装瓦片服务的祖先类
      */
    class WrapperImageProviderBase extends WrapperTileProviderBase implements IImageProvider {
        /**
          * 
         */
        protected getProvider(): IImageProvider;
    }

    /**
      * ITemplateImageProviderOptions 模板瓦片服务参数
      */
    interface ITemplateImageProviderOptions extends IImageProviderOptions {
        /**
          * 用户自定义模板对象。具体用法见教程
         */
        customTags?: any;
        /**
          * 使用用前置0填充数字模板
         */
        urlSchemeZeroPadding?: boolean;
    }

    /**
      * TemplateImageProvider 模板瓦片服务。具体用法见教程
      */
    class TemplateImageProvider extends TemplateTileProviderBase implements IImageProvider {
        /**
          * options
          * @param options ITemplateImageProviderOptions
         */
        constructor(options?: ITemplateImageProviderOptions);
    }

    /**
      * IWmsImageProviderOptions Wms瓦片服务参数
      */
    interface IWmsImageProviderOptions extends ITemplateImageProviderOptions {
        /**
          * crs
         */
        crs?: string;
        /**
          * parameters，用户自定义高级参数
         */
        parameters?: object;
        /**
          * srs
         */
        srs?: string;
        /**
          * 如果设置为true，请求服务器否返回png格式透明数据；缺省返回jpg格式
         */
        transparent?: boolean;
    }

    /**
      * WmsImageProvider Wms瓦片服务
      */
    class WmsImageProvider extends WrapperImageProviderBase {
        /**
          * options
          * @param options IWmsImageProviderOptions
         */
        constructor(options: IWmsImageProviderOptions);
    }

    /**
      * IWmtsImageProviderOptions Wmts瓦片服务参数
      */
    interface IWmtsImageProviderOptions extends IImageProviderOptions {
        /**
          * dimensions
         */
        dimensions?: string;
        /**
          * format
         */
        format?: string;
        /**
          * layer
         */
        layer: string;
        /**
          * style
         */
        style?: string;
        /**
          * tileMatrixLabels
         */
        tileMatrixLabels?: string[];
        /**
          * tileMatrixSet
         */
        tileMatrixSet: string;
    }

    /**
      * WmtsImageProvider Wmts瓦片服务
      */
    class WmtsImageProvider extends ImageProviderBase {
        /**
          * options
          * @param options IWmtsImageProviderOptions
         */
        constructor(options: IWmtsImageProviderOptions);
    }

    /**
      * ArcGisImageStyle ArcGis瓦片类型
      */
    enum ArcGisImageStyle {
        /**
          * 卫星影像
         */
        Image = "World_Imagery",
        /**
          * 地形图
         */
        Terrain = "World_Topo_Map",
        /**
          * 道路地图
         */
        Road = "World_Street_Map",
    }

    /**
      * ArcGisImageProvider ArcGis瓦片服务
      */
    class ArcGisImageProvider extends ImageProviderBase {
        /**
          * 使用style或者options创建
          * options.url示例：'https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer'
          * @param styleOrOptions 
         */
        constructor(styleOrOptions: ArcGisImageStyle | IImageProviderOptions);
    }

    /**
      * BingImageStyle Bing瓦片类型
      */
    enum BingImageStyle {
        /**
          * 
         */
        Arial = "Aerial",
        /**
          * 带标注卫星影像
         */
        ArialWithLabels = "AerialWithLabels",
        /**
          * 道路
         */
        Road = "Road",
        /**
          * 暗色地图
         */
        CanvasDark = "CanvasDark",
        /**
          * 亮色地图
         */
        CanvasLight = "CanvasLight",
        /**
          * 灰色地图
         */
        CanvasGray = "CanvasGray",
    }

    /**
      * IBingImageProviderOptions Bing瓦片服务参数
      */
    interface IBingImageProviderOptions extends IImageProviderOptions {
        /**
          * culture
         */
        culture?: string;
        /**
          * mapStyle
         */
        mapStyle?: string;
        /**
          * proxy
         */
        proxy?: string;
        /**
          * tileProtocol
         */
        tileProtocol?: string;
    }

    class BingImageProvider extends ImageProviderBase {
        /**
          * 使用style或者options创建
          * options.url示例：'http://ecn.{subdomain}.tiles.virtualearth.net/tiles/a{quadkey}.jpeg?g=11888'
          * @param styleOrOptions 
         */
        constructor(styleOrOptions?: BingImageStyle | IBingImageProviderOptions);
    }

    /**
      * IMapboxImageProviderOptions Mapbox瓦片服务参数
      */
    interface IMapboxImageProviderOptions extends ITemplateImageProviderOptions {
        /**
          * format
         */
        format?: string;
        /**
          * mapId
         */
        mapId?: string;
        /**
          * scaleFactor
         */
        scaleFactor?: boolean;
        /**
          * styleId
         */
        styleId?: string;
        /**
          * tilesize
         */
        tilesize?: number;
        /**
          * username
         */
        username?: string;
    }

    /**
      * MapboxImageProvider Mapbox瓦片服务
      */
    class MapboxImageProvider extends WrapperImageProviderBase {
        /**
          * options
          * @param options IMapboxImageProviderOptions
         */
        constructor(options: IMapboxImageProviderOptions);
    }

    /**
      * MapboxStyleImageProvider MapboxStyle瓦片服务
      */
    class MapboxStyleImageProvider extends WrapperImageProviderBase {
        /**
          * options
          * @param options IMapboxImageProviderOptions
         */
        constructor(options: IMapboxImageProviderOptions);
    }

    /**
      * OpenStreetMapImageProvider OpenStreetMap瓦片服务
      */
    class OpenStreetMapImageProvider extends WrapperImageProviderBase {
        /**
          * options
          * @param options IImageProviderOptions
         */
        constructor(options: IImageProviderOptions);
    }

    /**
      * TianDiTuImageStyle 天地图瓦片类型
      */
    enum TianDiTuImageStyle {
        /**
          * 卫星影像
         */
        Image = "img",
        /**
          * 中文影像标注
         */
        ChineseImageAnno = "cia",
        /**
          * 英文影像标注
         */
        EnglishImageAnno = "eia",
        /**
          * 地图
         */
        Map = "vec",
        /**
          * 中文地图标注
         */
        ChineseMapAnno = "cva",
        /**
          * 英文地图标注
         */
        EnglishMapAnno = "eva",
        /**
          * 地形
         */
        Terrain = "ter",
        /**
          * 中文地形标注
         */
        ChineseTerrainAnno = "cta",
    }

    class TianDiTuImageProvider extends WrapperImageProviderBase {
        /**
          * 使用style或者options创建
          *
          * @param styleOrOptions 
          * @param accessToken 天地图key
         */
        constructor(styleOrOptions?: TianDiTuImageStyle | IWmtsImageProviderOptions, accessToken?: string);
    }

    /**
      * BaiDuImageProvider 百度瓦片服务。构造函数没有参数，系统自动使用缺省值
      */
    class BaiDuImageProvider extends ImageProviderBase {
        /**
          * 
          * @param handle 
          * @returns 
         */
        public getTileUrl(handle: QuadtreeHandle): string;
    }

    /**
      * LocalTmsImageProvider 本地tms瓦片服务
      */
    class LocalTmsImageProvider extends WrapperImageProviderBase {
        /**
          * 如果要设定tilingType，extent等参数，使用options参数创建
          * @param urlOrOptions 
         */
        constructor(urlOrOptions: string | IImageProviderOptions);
    }

    class WrapperWmtsImageProviderBase extends WrapperImageProviderBase {
        constructor(styleOrOptions: string | IImageProviderOptions);
        protected getUrlFromStyle(style: string): string;
    }

    /**
      * GaoDeImageStyle 高德瓦片类型
      */
    enum GaoDeImageStyle {
        /**
          * 卫星影像
         */
        Image = '6',
        /**
          * 影像标注
         */
        ImageAnno = '8',
        /**
          * 地图
         */
        Map = '7',
    }

    class GaoDeImageProvider extends WrapperWmtsImageProviderBase {
        /**
          * 
          * @param style 
          * @returns 
         */
        protected getUrlFromStyle(style: string): string;
    }

    /**
      * GoogleImageStyle 谷歌瓦片影像类型
      */
    enum GoogleImageStyle {
        /**
          * 卫星影像
         */
        Image = 's',
        /**
          * 带标注的卫星影像
         */
        ImageWithAnno = 'y',
        /**
          * 卫星影像标注
         */
        ImageAnno = 'h',
        /**
          * 地形
         */
        Terrain = 't',
        /**
          * 代表朱的地形
         */
        TerrainWithAnno = 'p',
        /**
          * 地图
         */
        Map = 'm',
    }

    /**
      * GoogleImageProvider 谷歌瓦片影像数据源
      */
    class GoogleImageProvider extends WrapperWmtsImageProviderBase {
        /**
          * 
          * @param style 
          * @returns 
         */
        protected getUrlFromStyle(style: string): string;
    }

    interface IBitmapTileReader {
        dispose(): void;
        loadTileBitmap(handle: QuadtreeHandle, isBadDataRef: RefValue<boolean>): WriteableBitmap;
    }

    interface ITextureTileReader {
        dispose(): void;
        loadTileTexture(graphics: Graphics3, handle: QuadtreeHandle, isBadDataRef: RefValue<boolean>): ImageTexture;
    }

    class MercatorTileSourceHelper {
        public static CalcTileYRange(level: number, xIndex: number, zIndex: number): Vector2;
        public static PrepareSrcTileYs(level: number, xIndex: number, zIndex: number, lats: Float64Array, resultTileYs: Float64Array): void;
    }

    export type IPbf = any;

    class VtLayerInfo {
        public attributeCount: number;
        public count: number;
        public geoType: number;
        public name: string;
    }

    interface IVectorTileProvider extends ITileProvider {
        layerInfos: VtLayerInfo[];
        layerNames: string[];
        getEarthRange(): Rect;
    }

    enum VectorTileType {
        Mvt = 0,
        ArcGis = 1
    }

    class VectorTileData {
        public readonly handle: QuadtreeHandle;
        public provider: IVectorTileProvider;
        constructor(handle: QuadtreeHandle, provider: IVectorTileProvider, data: Uint8Array);
        public getData(): Uint8Array;
    }

    class CachedVectorTileReader {
        public provider: IVectorTileProvider;
        constructor(provider: IVectorTileProvider, cacheCapacity?: number);
        public accessTile(handle: QuadtreeHandle): VectorTileData;
        public collectGabage(): void;
        public dispose();
        public loadVectorTile(handle: QuadtreeHandle, isBadDataRef: RefValue<boolean>, url?: string): VectorTileData;
        public onBadTile(handle: QuadtreeHandle): void;
    }

    /**
      * GeoType 空间类型
      */
    enum GeoType {
        /**
          * 
         */
        None,
        /**
          * 
         */
        Point,
        /**
          * 
         */
        LineString,
        /**
          * 
         */
        Polygon,
        /**
          * 
         */
        MultiPoint,
        /**
          * 
         */
        MultiLineString,
        /**
          * 
         */
        MultiPolygon,
        /**
          * 
         */
        GeometryCollection,
        /**
          * 
         */
        CircularString,
        /**
          * 
         */
        CompoundCurve,
        /**
          * 
         */
        CurvePolygon,
        /**
          * 
         */
        MultiCurve,
        /**
          * 
         */
        MultiSurface,
        /**
          * 
         */
        Curve,
        /**
          * 
         */
        Surface,
        /**
          * 
         */
        PolyhedralSurface,
        /**
          * 
         */
        Tin,
        /**
          * 
         */
        Triangle,
        /**
          * 
         */
        Rect = 10001,
        /**
          * 
         */
        Ellipse,
        /**
          * 
         */
        Text = 10011,
        /**
          * 
         */
        Arrow = 10101,
        /**
          * 
         */
        SplinePoly = 10201,
        /**
          * 
         */
        Box = 20001,
        /**
          * 
         */
        Ball,
        /**
          * 
         */
        Plane = 20101
    }

    enum GeoDimension {
        None,
        One,
        Two,
        Three
    }

    interface IGeoType {
        geoType: GeoType;
    }

    /**
      * Geometry 空间图形对象
      */
    class Geometry extends ImmutableNoObject implements IGeoType, ICopyableNoObject<Geometry>, INoObject {
        /**
          * 三维包围盒
         */
        public readonly bounds: Box;
        /**
          * 二维包围矩形
         */
        public readonly bounds2: Rect;
        /**
          * 维度
         */
        public readonly dimension: GeoDimension;
        /**
          * 
         */
        public readonly drawStyle: DrawStyle;
        /**
          * 
         */
        public readonly drawStyleForUpdate: DrawStyle;
        /**
          * 空间类型
         */
        public readonly geoType: GeoType;
        /**
          * 三维点数组数据
         */
        public readonly points: Vector3[];
        /**
          * 二维点数组数据
         */
        public readonly points2: Vector2[];
        /**
          * 三维点位置
         */
        public readonly position: Vector3;
        /**
          * 二维点位置
         */
        public readonly position2: Vector2;
        /**
          * 子Geometry集合
         */
        public readonly subGeometries: Geometry[];
        /**
          * 附属标签，通常在应用中可以用于存储一些关联信息
         */
        public tag: any;
        /**
          * 标注文本
         */
        public text: string;
        /**
          * 关联的拓扑对象no数组
         */
        public topoNos: Array<number>;
        /**
          * 
          * @param src 
         */
        public copyFrom(src: Geometry): void;
        /**
          * 用指定matrix变换数据
          * @param matrix 
         */
        public transform(matrix: Matrix2): void;
        /**
          * 用子geometry数组更新数据
          * @param subGeometries 
         */
        public updateFromGeometryArray(subGeometries: Geometry[]): void;
        /**
          * 用三维点位置更新数据
          * @param point 
         */
        public updateFromPoint(point: Vector3): void;
        /**
          * 用二维点位置更新数据
          * @param point 
         */
        public updateFromPoint2(point: Vector2): void;
        /**
          * 用二维点数组更新数据
          * @param points 
         */
        public updateFromPoint2Array(points: Vector2[]): void;
        /**
          * 用三维点数组更新数据
          * @param points 
         */
        public updateFromPointArray(points: Vector3[]): void;
        /**
          * 用包围矩形更新数据
          * @param bounds 
         */
        public updateFromRect(bounds: Rect): void;
        /**
          * 计算geometry数组的包围矩形
          * @param geometries geometry数组
          * @returns 包围矩形
         */
        public static CalcBounds(geometries: Array<Geometry>): Rect;
        /**
          * 从源geometry复制创建新对象
          * @param src 
          * @returns 新对象
         */
        public static CreateFromClone(src: Geometry): Geometry;
        /**
          * 从子geometry数组创建新对象
          * @param subGeometries 
          * @returns 新对象
         */
        public static CreateFromGeometryArray(subGeometries: Geometry[]): Geometry;
        /**
          * 从三维点位置创建新对象
          * @param point 
          * @returns 新对象
         */
        public static CreateFromPoint(point: Vector3): Geometry;
        /**
          * 从二维点位置创建新对象
          * @param point 
          * @returns 新对象
         */
        public static CreateFromPoint2(point: Vector2): Geometry;
        /**
          * 从二维点数组创建新对象
          * @param spaType 
          * @param points 
          * @returns 新对象
         */
        public static CreateFromPoint2Array(spaType: GeoType, points: Vector2[]): Geometry;
        /**
          * 从三维点数组创建新对象
          * @param spaType 
          * @param points 
          * @returns 新对象
         */
        public static CreateFromPointArray(spaType: GeoType, points: Vector3[]): Geometry;
        /**
          * 从空间类型和包围矩形创建新对象
          * @param spaType 空间类型。椭圆或者矩形
          * @param bounds 包围矩形
          * @returns 新对象
         */
        public static CreateFromRect(spaType: GeoType, bounds: Rect): Geometry;
    }

    class WorldCoordSystem {
        constructor(viewport?: Viewport, viewMatrix?: Matrix, projectionMatrix?: Matrix, center?: Vector3);
        public aspectRatio: number;
        public farPlane: number;
        public fov: number;
        public nearPlane: number;
        public readonly projectionMatrix: Matrix;
        public readonly viewProjectionMatrix: Matrix;
        public viewport: Viewport;
        public calcProjectMatrixToRef(result: Matrix): void;
        public screenToWorldDouble(x: number, y: number, depth: number): Vector3;
        public screenToWorldDoubleRef(x: number, y: number, depth: number, result: Vector3): void;
        public screenToWorldLine(pt: Vector2, pt1: Vector3, pt2: Vector3): void;
        public worldToScreenDouble(x: number, y: number, z: number): Vector2;
        public worldToScreenDouble3(x: number, y: number, z: number): Vector3;
        public worldToScreenDouble3Ref(x: number, y: number, z: number, result: Vector3): void;
        public worldToScreenDoubleRef(x: number, y: number, z: number, result: Vector2): void;
        public static CreateFromClone(coordSystem: WorldCoordSystem): WorldCoordSystem;
    }

    enum WorldCameraMode {
        Default,
        Reflection,
        Refraction
    }

    /**
      * IWorldCamera 世界相机接口，坐标为世界坐标系。提供当前场景的绘制信息，尤其是各种绘制矩阵。
      */
    interface IWorldCamera {
        /**
          * 
         */
        aspectRatio: number;
        /**
          * 场景中心点
         */
        center: Vector3;
        /**
          * 视点
         */
        eye: Vector3;
        /**
          * 
         */
        farPlane: number;
        /**
          * 
         */
        fov: number;
        /**
          * 
         */
        frameNo: number;
        /**
          * 
         */
        nearPlane: number;
        /**
          * 
         */
        projectionMatrix: Matrix;
        /**
          * 
         */
        viewMatrix: Matrix;
        /**
          * 视口
         */
        viewport: Viewport;
        /**
          * 
         */
        viewProjectionMatrix: Matrix;
        /**
          * 判断给定点是否在Frustum视野内
          * @param center 指定点
          * @param radius 半径
          * @returns 有相交则返回true
         */
        isSphereInFrustum(center: Vector3, radius: number): boolean;
        /**
          * 屏幕坐标转换为世界坐标
          * @param screenV 屏幕坐标
          * @param depth 深度值（0-1.0）
          * @returns 世界坐标值
         */
        screenToWorld(screenV: Vector2, depth: number): Vector3;
        /**
          * 
          * @param screenV 
          * @param depth 
          * @param result 
         */
        screenToWorldToRef(screenV: Vector2, depth: number, result: Vector3): void;
        /**
          * 世界坐标转换为屏幕坐标
          * @param worldV 世界坐标
          * @returns 屏幕坐标
         */
        worldToScreen(worldV: Vector3): Vector2;
        /**
          * 
          * @param worldV 
          * @param result 
         */
        worldToScreenToRef(worldV: Vector3, result: Vector2): void;
    }

    class WorldCamera extends WorldCoordSystem implements IWorldCamera {
        public frameNo: number;
        public readonly center: Vector3;
        public readonly eye: Vector3;
        public readonly viewMatrix: Matrix;
        public getViewportRect(): Rect;
        public initViewport(viewportRect: Rect, fovRadian: number, nearPlane: number, farPlane: number): void;
        public isSphereInFrustum(center: Vector3, radius: number): boolean;
        public screenToWorld(screenV: Vector2, depth: number): Vector3;
        public screenToWorldToRef(screenV: Vector2, depth: number, result: Vector3): void;
        public updateLookAt(eye: Vector3, center: Vector3, up: Vector3, eyeGlobal: Vector3, centerGlobal: Vector3, isGlobalTransform: boolean): void;
        public worldToScreen(worldV: Vector3): Vector2;
        public worldToScreenToRef(worldV: Vector3, result: Vector2): void;
    }

    interface ITexture extends IDisposable, IHardwareResourceOwner {
        no: number;
        getInternalTexture(): InternalTexture;
        getSize(): Size;
        isReady(): boolean;
        lockHardware(): void;
        unlockHardware(): void;
    }

    /**
      * TextureRoot 所有纹理对象的祖先类
      */
    class TextureRoot extends TObject implements ITexture, IDisposable, IHardwareResourceOwner {
        /**
          * 
          * @param graphics 
         */
        constructor(graphics: Graphics3);
        /**
          * 纹理高度
         */
        public readonly height: number;
        /**
          * 
         */
        public readonly no: number;
        /**
          * 纹理宽度
         */
        public readonly width: number;
        /**
          * 
         */
        protected checkIsReady(): boolean;
        /**
          * 
         */
        public bindHardwareResource(): boolean;
        /**
          * 释放纹理对象
         */
        public dispose(): void;
        /**
          * 
         */
        public getAllocBytes(): number;
        /**
          * 
         */
        public getInternalTexture(): InternalTexture;
        /**
          * 
         */
        public getSize(): Size;
        /**
          * 纹理是否准备就绪
         */
        public isReady(): boolean;
        /**
          * 
         */
        public lockHardware(): void;
        /**
          * 
         */
        public unlockHardware(): void;
    }

    /**
      * Texture 纹理对象
      */
    class Texture extends TextureRoot {
        /**
          * 创建用于显示或者计算的纹理
          * @param earthViewer 
          * @param urlOrImageSource 图片url或者Cavas，ImageBitmap等其他图片数据源
          * @param options 创建参数
         */
        constructor(earthViewer: EarthViewer, urlOrImageSource: string | TexImageSource, options?: ITextureCreateOptions);
        /**
          * 
         */
        public getInternalTexture(): InternalTexture;
        /**
          * 是否就绪
         */
        public isReady(): boolean;
        /**
          * 从Babylon的BaseTexture对象创建，包括Texture，RawTexture等类型。可以用于配置Drawsee的Material进行显示
          * @param earthViewer 
          * @param babylonTexture Babylon纹理对象
          * @returns Drawsee Texture
         */
        public static CreateFromBabylon(earthViewer: EarthViewer, babylonTexture: BABYLON.BaseTexture): Texture;
    }

    /**
      * StorageTexture 用于Gpu计算的存储纹理
      */
    class StorageTexture extends Texture {
        /**
          * 创建用于Gpu计算的存储纹理
          * @param earthViewer 
          * @param width 像素宽度
          * @param height 像素高度
         */
        constructor(earthViewer: EarthViewer, width: number, height: number);
    }

    class ImageTexture extends TextureRoot {
        constructor(graphics: Graphics3, image: TexImageSource, options: ITextureCreateOptions);
        protected createTextureImmediate(image: TexImageSource): boolean;
        public bindHardwareResource(): boolean;
        public dispose(): void;
        public getInternalTexture(): InternalTexture;
        public isReady(): boolean;
        public prepareTexture(): void;
    }

    class BlobTexture extends ImageTexture {
        constructor(graphics: Graphics3, data: Uint8Array, options: ITextureCreateOptions, autoLoad: boolean, onCreateFinish: () => void);
        public getInternalTexture(): InternalTexture;
        public loadImage(onCreateFinishCallback?: () => void): void;
    }

    /**
      * CanvasTexture 基于HTMLCanvasElement的动态纹理
      */
    class CanvasTexture extends TextureRoot {
        /**
          * 创建CanvasTexture，当指定大小时，系统自动创建一个内部的canvas；当指定一个已有的canvas时，纹理绑定到该对象
          * @param earthViewer 
          * @param widthOrCanvas 宽度或者HTMLCanvasElement
          * @param height 高度。如果未指定，使用宽度值
          * @param options 创建参数
         */
        constructor(earthViewer: EarthViewer, widthOrCanvas: number | HTMLCanvasElement, height?: number, options?: ITextureCreateOptions);
        /**
          * 获取纹理关联的HTMLCanvasElement
         */
        public readonly canvas: HTMLCanvasElement;
        /**
          * 获取canvas的CanvasRenderingContext2D用于绘制
         */
        public readonly context: CanvasRenderingContext2D;
        /**
          * 释放对象。如果应用频繁创建新纹理，不需要的纹理应该释放掉，否则占用大量资源
         */
        public dispose(): void;
        /**
          * 更新纹理。当改变关联canvas的内容时，需要调用该方法才能更新纹理显示
         */
        public update(): void;
    }

    class UrlTexture extends ImageTexture {
        constructor(graphics: Graphics3, url: string, options: ITextureCreateOptions);
        public getInternalTexture(): InternalTexture;
        public prepareTexture(): void;
    }

    class RenderTargetTexture {
        constructor(name: string, graphics: Graphics3, size: number, generateMipMapsOrOptions?: boolean | BABYLON.RenderTargetCreationOptions);
        public isActive: boolean;
        public name: string;
        public readonly isReady: boolean;
        public readonly no: number;
        public readonly texture: ITexture;
        public dispose(): void;
        public getRenderSize(): number;
        public onAfterRender: () => void;
        public onBeforeRender: () => void;
        public render(): void;
        public renderFunc: () => void;
    }

    /**
      * 视频纹理设置参数
      */
    interface VideoTextureSettings {
        /**
          * 是否自动播放
         */
        autoPlay?: boolean;
        /**
          * 是否自动更新纹理
         */
        autoUpdateTexture: boolean;
        /**
          * 是否循环播放
         */
        loop?: boolean;
        /**
          * 
         */
        poster?: string;
    }

    /**
      * VideoTexture 视频纹理
      */
    class VideoTexture extends TextureRoot {
        /**
          * 构造视频纹理
          * @param earthViewer 
          * @param src 视频数据源，可以是url或者HTMLVideoElement
          * @param settings 创建参数
         */
        constructor(earthViewer: EarthViewer, src: string | string[] | HTMLVideoElement, settings?: VideoTextureSettings);
        /**
          * 视频Html对象
         */
        public readonly video: HTMLVideoElement;
        /**
          * 是否对象
         */
        public dispose(): void;
        /**
          * 内部纹理对象
         */
        public getInternalTexture(): InternalTexture;
        /**
          * 更新视频url
          * @param url 
         */
        public updateUrl(url: string): void;
    }

    /**
      * ColorTable 颜色表对象。
      */
    class ColorTable {
        /**
          * 添加数值点对应颜色值。alpha值可以小于1，产生区段之间的半透明过度效果
          * @param value 数值量
          * @param color 对应的颜色值
         */
        public add(value: number, color: Color): void;
        /**
          * 清除所有的设置值
         */
        public clear(): void;
    }

    enum VertexElementFormat {
        Float,
        Float2,
        Float3,
        Float4,
        Color,
    }

    class VertexElement {
        public name: string;
        public offset: number;
        public format: VertexElementFormat;
        constructor(name: string, offset: number, format: VertexElementFormat);
        public readonly stride: number;
    }

    class VertexDeclaration {
        constructor(elements: VertexElement[]);
        public readonly vertexByteStride: number;
        public readonly vertexFloatStride: number;
        public getVertexElements(): VertexElement[];
        public static VertexToFloatArray<TVertex extends IVertexType>(vertexDeclaration: VertexDeclaration, vertexes: TVertex[], startIndex?: number, count?: number): Float32Array;
    }

    interface IVertexType {
        VertexDeclaration: VertexDeclaration;
        appendData(destArray: number[]): void;
    }

    class VertexBase {
        public appendColor(destArray: number[], val: Color): void;
        public appendData(destArray: number[]): void;
        public appendFloat(destArray: number[], val: number): void;
        public appendFloat2(destArray: number[], val: Vector2): void;
        public appendFloat3(destArray: number[], val: Vector3): void;
        public appendFloat4(destArray: number[], val: Vector4): void;
    }

    class VertexPosition extends VertexBase implements IVertexType {
        public position: Vector3;
        constructor(position?: Vector3);
        public readonly VertexDeclaration: VertexDeclaration;
        public appendData(destArray: number[]): void;
        public clone(): VertexPosition;
        public static VertexDeclaration: VertexDeclaration;
        public static VertexPosition_cctor(): void;
    }

    class VertexPositionNormalTexture extends VertexBase implements IVertexType {
        public position: Vector3;
        public normal: Vector3;
        public textureCoordinate: Vector2;
        constructor(position?: Vector3, normal?: Vector3, textureCoordinate?: Vector2);
        public readonly VertexDeclaration: VertexDeclaration;
        public appendData(destArray: number[]): void;
        public clone(): VertexPositionNormalTexture;
        public static VertexDeclaration: VertexDeclaration;
        public static prepareVertexBufferData(vertexes: Vector3Array, normals: Vector3Array, textureCoords: Vector2Array, isForErrorCheck?: boolean): Float32Array;
        public static VertexPositionNormalTexture_cctor(): void;
    }

    class VertexPositionTexture extends VertexBase implements IVertexType {
        public position: Vector3;
        public textureCoordinate: Vector2;
        constructor(position?: Vector3, textureCoordinate?: Vector2);
        public readonly VertexDeclaration: VertexDeclaration;
        public appendData(destArray: number[]): void;
        public clone(): VertexPositionTexture;
        public static VertexDeclaration: VertexDeclaration;
        public static prepareVertexBufferData(vertexes: Vector3Array, textureCoords: Vector2Array): Float32Array;
        public static VertexPositionTexture_cctor(): void;
    }

    class VertexPositionNormalTextureUv3 extends VertexBase implements IVertexType {
        public readonly VertexDeclaration: VertexDeclaration;
        public appendData(destArray: number[]): void;
        public static VertexDeclaration: VertexDeclaration;
        public static VertexPositionNormalTextureUv3_cctor(): void;
    }

    class VertexPositionColor extends VertexBase implements IVertexType {
        public position: Vector3;
        public color: Color;
        constructor(position?: Vector3, color?: Color);
        public readonly VertexDeclaration: VertexDeclaration;
        public appendData(destArray: number[]): void;
        public clone(): VertexPositionColor;
        public static VertexDeclaration: VertexDeclaration;
        public static VertexPositionColor_cctor(): void;
    }

    class VertexPositionNormal extends VertexBase implements IVertexType {
        public position: Vector3;
        public normal: Vector3;
        constructor(position?: Vector3, normal?: Vector3);
        public readonly VertexDeclaration: VertexDeclaration;
        public appendData(destArray: number[]): void;
        public clone(): VertexPositionNormal;
        public static VertexDeclaration: VertexDeclaration;
        public static VertexPositionNormal_cctor(): void;
    }

    class BufferWrapperBase {
        public readonly isRecycle: boolean;
        constructor(graphics: Graphics3, updatable: boolean, isRecycle: boolean);
        public bindHardwareResource(): boolean;
    }

    class IndexBufferWrapper extends BufferWrapperBase implements IDisposable, IHardwareResourceOwner {
        constructor(graphics: Graphics3, indices: Uint32Array, updatable: boolean, isRecycle: boolean);
        public readonly length: number;
        public bindHardwareResource(): boolean;
        public dispose(): void;
        public getAllocBytes(): number;
        public getBuffer(): DataBuffer;
        public getLinesBuffer(): DataBuffer;
        public setData(indices: Uint32Array): void;
    }

    class VertexBufferWrapper extends BufferWrapperBase implements IDisposable, IHardwareResourceOwner {
        constructor(graphics: Graphics3, vertexDeclaration: VertexDeclaration, vertexes: Float32Array, updatable: boolean, isRecycle: boolean);
        public readonly length: number;
        public bind(indexBuffer: IndexBufferWrapper, needLineBuffer: boolean): boolean;
        public bindHardwareResource(): boolean;
        public dispose(): void;
        public getAllocBytes(): number;
        public setData(vertexes: Float32Array): void;
    }

    enum ElementType {
        TriangleList,
        TriangleStrip,
        LineList,
        LineStrip,
        PointList
    }

    class ElementBuffer implements IDisposable {
        public elementType: ElementType;
        constructor(elementType: ElementType, vertexBuffer: VertexBufferWrapper, indexBuffer: IndexBufferWrapper, isGpu: boolean);
        public readonly indexCount: number;
        public readonly no: number;
        public readonly vertexCount: number;
        public bind(isWireFrameMode?: boolean): boolean;
        public bindHardwareResource(): boolean;
        public dispose(): void;
        public getAllocBytes(): number;
        public lockHardware(): void;
        public setIndexData(data: Uint32Array): void;
        public setVertexData(data: Float32Array): void;
        public unlockHardware(): void;
    }

    class UniformBufferCopy {
        public readonly buffer: DataBuffer;
        public readonly bufferData: Float32Array;
        constructor(buffer: DataBuffer, bufferData: Float32Array);
        public static FromUbo(graphics: Graphics3, uboAny: any): UniformBufferCopy;
    }

    interface IChunkUboSource {
        leftOverUbo?: any;
        materialUbo?: any;
        sceneUbo?: any;
    }

    class ChunkUboGroup {
        public key: string;
        public readonly sceneUboCopy: UniformBufferCopy;
        public readonly materialUboCopy: UniformBufferCopy;
        public readonly leftOverUboCopy: UniformBufferCopy;
        constructor(key: string, sceneUboCopy: UniformBufferCopy, materialUboCopy: UniformBufferCopy, leftOverUboCopy: UniformBufferCopy);
        public frameNo: number;
        public alloc(key: string): void;
        public getAllocNo(): number;
        public getKey(): string;
    }

    interface IChunkUboGroupManager {
        contains(groupKey: string): boolean;
        enumKeys(): string[];
        getOrCreateUboGroup(groupKey: string, uboSource: IChunkUboSource): ChunkUboGroup;
        getUboGroup(groupKey: string): ChunkUboGroup;
    }

    class ChunkBundleGrouprManager {
        public graphics: Graphics3;
        constructor(graphics: Graphics3);
        public contains(groupKey: string): boolean;
        public enumKeys(): string[];
        public getOrCreateUboGroup(groupKey: string, uboContext: IChunkUboSource): ChunkUboGroup;
        public getUboGroup(groupKey: string): ChunkUboGroup;
    }

    class RecycleChunkBundleGrouprManager extends ChunkBundleGrouprManager {
        public graphics: Graphics3;
        public readonly maxCount: number;
        constructor(graphics: Graphics3, maxCount: number);
        public getOrCreateUboGroup(groupKey: string, uboContext: IChunkUboSource): ChunkUboGroup;
    }

    class UboInfo {
        public effect: Effect;
        public leftOverUbo: any;
        public materialUbo: any;
        public scene: Scene;
        public sceneUbo: any;
        public static FromChunkMaterial(material: IMeshChunkMaterial, uvIndex: number, isRenderingToTexture: boolean): UboInfo;
        public static FromEffect(effect: Effect): UboInfo;
    }

    interface ILineStyle {
        /**
          * 
         */
        clipLeft: boolean;
        /**
          * 
         */
        clipRight: boolean;
        /**
          * 
         */
        color: Color;
        /**
          * 
         */
        dashGapColor: Color;
        /**
          * 
         */
        dashLength: number;
        /**
          * 
         */
        dashOffset: number;
        /**
          * 
         */
        dashRatio: number;
        /**
          * 
         */
        glowColor: Color;
        /**
          * 
         */
        glowRadius: number;
        /**
          * 
         */
        outlineColor: Color;
        /**
          * 
         */
        outlineWidth: number;
        /**
          * 
         */
        tapperPower: number;
        /**
          * 
         */
        texture: ITexture;
        /**
          * 
         */
        trailColor: Color;
        /**
          * 
         */
        trailCount: number;
        /**
          * 
         */
        trailLength: number;
        /**
          * 
         */
        trailSpeed: number;
        /**
          * 
         */
        trailStart: number;
        /**
          * 
         */
        width: number;
    }

    /**
      * LineStyle 宽线属性设置对象，用于设置宽线的各种特效显示，包括动画效果。宽度值都是像素单位。长度和位移使用相对总长的百分比。
      */
    class LineStyle implements ILineStyle {
        /**
          * 裁剪掉线左半边
         */
        public clipLeft: boolean;
        /**
          * 裁剪掉线右半边
         */
        public clipRight: boolean;
        /**
          * 颜色
         */
        public color: Color;
        /**
          * 虚线的空白颜色。缺省为透明
         */
        public dashGapColor: Color;
        /**
          * 虚线段（实线+空白段）与总长长度的比例。比如0.01，整条线将分成100段。
         */
        public dashLength: number;
        /**
          * 虚线其实位移
         */
        public dashOffset: number;
        /**
          * 虚线段中实线部分比例
         */
        public dashRatio: number;
        /**
          * 发光色
         */
        public glowColor: Color;
        /**
          * 发光半径
         */
        public glowRadius: number;
        /**
          * 轮廓线颜色
         */
        public outlineColor: Color;
        /**
          * 轮廓线宽度
         */
        public outlineWidth: number;
        /**
          * 线向端点变细的指数比例
         */
        public tapperPower: number;
        /**
          * 指定填充线的贴图
         */
        public texture: ITexture;
        /**
          * 动画段颜色
         */
        public trailColor: Color;
        /**
          * 动画段个数
         */
        public trailCount: number;
        /**
          * 动画段长度，也是相对比例。通过设置该值>0来触发。
         */
        public trailLength: number;
        /**
          * 动画段速度，缺省1.0。设置为负值则反向移动
         */
        public trailSpeed: number;
        /**
          * 动画段起始偏移比例
         */
        public trailStart: number;
        /**
          * 线宽度
         */
        public width: number;
        /**
          * 
          * @param src 
         */
        protected copyFrom(src: LineStyle): void;
        /**
          * 复制新对象
         */
        public clone(): LineStyle;
    }

    class LineStyleHelper {
        public static AppendPropertyUniforms(uniforms: string[]): void;
        public static BindEffectParams(graphics: Graphics3, effect: BABYLON.Effect, lineStyle: LineStyle): void;
    }

    interface IAnnoStyle {
        /**
          * 
         */
        anchorColor?: Color;
        /**
          * 
         */
        backgroundColor: Color;
        /**
          * 
         */
        borderColor: Color;
        /**
          * 
         */
        borderWidth: number;
        /**
          * 
         */
        captionColor: Color;
        /**
          * 
         */
        fontColor: Color;
        /**
          * 
         */
        fontFamilyName: string;
        /**
          * 
         */
        fontSize: number;
        /**
          * 
         */
        haloColor: Color;
        /**
          * 
         */
        haloWidth: number;
        /**
          * 
         */
        isAnchor: boolean;
        /**
          * 
         */
        isBold: boolean;
        /**
          * 
         */
        isHalo: boolean;
        /**
          * 
         */
        padding: number;
        /**
          * 
         */
        roundRadius: number;
    }

    /**
      * AnnoStyle 标注样式高级设置类
      */
    class AnnoStyle implements IAnnoStyle {
        /**
          * 锚点色
         */
        public anchorColor: Color;
        /**
          * 背景色
         */
        public backgroundColor: Color;
        /**
          * 边框色
         */
        public borderColor: Color;
        /**
          * 边框宽度
         */
        public borderWidth: number;
        /**
          * 字体顶部到边界的填充颜色
         */
        public captionColor: Color;
        /**
          * 字体颜色
         */
        public fontColor: Color;
        /**
          * 字体名称
         */
        public fontFamilyName: string;
        /**
          * 字体像素大小
         */
        public fontSize: number;
        /**
          * 字体轮廓颜色
         */
        public haloColor: Color;
        /**
          * 字体轮廓像素数
         */
        public haloWidth: number;
        /**
          * 是否有锚点
         */
        public isAnchor: boolean;
        /**
          * 是否加粗
         */
        public isBold: boolean;
        /**
          * 是否有包围轮廓
         */
        public isHalo: boolean;
        /**
          * 与边框间隙
         */
        public padding: number;
        /**
          * 圆角边框半径
         */
        public roundRadius: number;
        /**
          * 
          * @param src 
         */
        protected copyFrom(src: AnnoStyle): void;
        /**
          * 
         */
        protected getMinRealFontSize(): number;
        /**
          * 
         */
        public clone(): AnnoStyle;
    }

    enum StencilValue {
        Zero = 0,
        ShadowVolume = 1,
        ShadowVolumeMask = 0x0f,
        Clip = 0x40,
        TileClip = 0x80,
        BimClip = 0x20,
    }

    /**
      * Texture创建参数
      */
    interface ITextureCreateOptions {
        /**
          * 是否翻转
         */
        isFlipY?: boolean;
        /**
          * 是否使用mipmap
         */
        isUseMipmap?: boolean;
        /**
          * 是否使用贴图坐标重复模式
         */
        isWrap?: boolean;
        /**
          * 
         */
        onCreateFinish?: () => void;
    }

    interface IEngineState {
        isEnableDepthBuffer?: boolean;
        isWriteColor?: boolean;
        isWriteDepth?: boolean;
    }

    interface IGraphicsState {
        blendingMode?: BlendingMode;
        isCulling?: boolean;
        isNearObjectMode?: boolean;
        nearObjectRatio?: number;
    }

    interface IDrawState {
        engineState?: IEngineState;
        graphicsState?: IGraphicsState;
        bindChunkCallback?: (chunk: IBaseChunkInfo, index: number) => void;
        indexResolve?: (chunk: ElementChunk, resultInfo: IBaseChunkInfo) => void;
        setupDefaultUboCallback?: (chunk0: ElementChunk) => void;
    }

    class Graphics3 {
        /**
          * 
         */
        public earthViewer: EarthViewer;
        /**
          * 
          * @param earthViewer 
          * @param canvas 
         */
        constructor(earthViewer: EarthViewer, canvas: Canvas);
        /**
          * 
         */
        public annoRender: AnnoChunkRender;
        /**
          * 
         */
        public bimChunkRender: BimChunkRender;
        /**
          * 
         */
        public cullBackFaces: boolean;
        /**
          * 
         */
        public groundSpriteChunkRender: GroundSpriteChunkRender;
        /**
          * 
         */
        public isCulling: boolean;
        /**
          * 判断当前是否正在用webgpu渲染
         */
        public isGpu: boolean;
        /**
          * 
         */
        public isWireFrameMode: boolean;
        /**
          * 
         */
        public readonly engine: Engine;
        /**
          * 
         */
        public skyAtmosphereRender: SkyAtmosphereRender;
        /**
          * 
         */
        public spriteChunkRender: SpriteChunkRender;
        /**
          * 
         */
        public terrainChunkRender: TerrainChunkRender;
        /**
          * 
         */
        public tileChunkRender: MeshChunkRenderBase;
        /**
          * 
         */
        public applyStates();
        /**
          * 
         */
        public beginFrame(): void;
        /**
          * 
          * @param referenceValue 
         */
        public beginStencilWrite(referenceValue: number): void;
        /**
          * 
          * @param vertexBuffers 
          * @param indexBuffer 
          * @returns 
         */
        public bindBuffers(vertexBuffers: { [key: string]: Nullable<VertexBuffer>; }, indexBuffer: Nullable<DataBuffer>): boolean;
        /**
          * 
         */
        public bindFramebuffer(rtWrapper: RenderTargetWrapper, faceIndex?: number, requiredWidth?: number,
            /**
              * 
             */
            requiredHeight?: number, forceFullscreenViewport?: boolean, lodLevel?: number, layer?: number): void;
        /**
          * 
          * @param channel 
          * @param texture 
          * @param samplerName 
         */
        public bindTexture(channel: number, texture: ITexture, samplerName: string): void;
        /**
          * 
          * @param color 
          * @param backBuffer 
          * @param depthBuffer 
          * @param stencilBuffer 
         */
        public clear(color: Color, backBuffer: boolean, depthBuffer: boolean, stencilBuffer: boolean): void;
        /**
          * 
          * @param vertexes 
          * @param indices 
          * @param vertexDeclaration 
          * @param elementType 
          * @param isUpdatable 
          * @returns 
         */
        public createElementBuffer(vertexes: Float32Array | IVertexType[], indices: Uint32Array, vertexDeclaration: VertexDeclaration, elementType?: ElementType, isUpdatable?: boolean): ElementBuffer;
        /**
          * 
          * @param size 
          * @param options 
          * @returns 
         */
        public createRenderTargetTexture(size: BABYLON.TextureSize, options: boolean | BABYLON.RenderTargetCreationOptions): RenderTargetWrapper;
        /**
          * 创建贴图对象
          * @param urlOrImageSource 图像文件url或者TexImageSource
          * @param options 创建参数
          * @returns Texture
         */
        public createTexture(urlOrImageSource: string | TexImageSource, options?: ITextureCreateOptions): ITexture;
        /**
          * 
         */
        public disableStencilBuffer(): void;
        /**
          * 
          * @param referenceValue 
          * @param isReversed 
         */
        public enableStencilClip(referenceValue?: number, isReversed?: boolean): void;
        /**
          * 
         */
        public endFrame(): void;
        /**
          * 
         */
        public endStencilWrite(): void;
        /**
          * 
         */
        public getCullBackFaces(): boolean;
        /**
          * 
         */
        public getDeltaTime(): number;
        /**
          * 
         */
        public getEmptyTexture(): InternalTexture;
        /**
          * 
         */
        public getFps(): number;
        /**
          * 
         */
        public getLodViewRatio(): number;
        /**
          * 
         */
        public getNearObjectMode(): boolean;
        /**
          * 
         */
        public getViewportRect(): Rect;
        /**
          * 
          * @param renderFunc 
         */
        public renderNoOverlap(renderFunc: () => void): void;
        /**
          * 
          * @param renderFunc 
         */
        public renderShadowVolumeSource(renderFunc: () => void): void;
        /**
          * 
          * @param renderFunc 
         */
        public renderShadowVolumeTarget(renderFunc: () => void): void;
        /**
          * 
         */
        public resetStates(): void;
        /**
          * 
         */
        public restoreDefaultFramebuffer(): void;
        /**
          * 
          * @param mode 
         */
        public setBlendingMode(mode: BlendingMode): void;
        /**
          * 
          * @param value 
         */
        public setCullBackFaces(value: boolean): void;
        /**
          * 
          * @param enable 
          * @param depthRatio 
         */
        public setNearObjectMode(enable: boolean, depthRatio?: number): void;
        /**
          * 
         */
        public setupDefaultRenderState(): void;
        /**
          * 
          * @param viewport 
          * @param requiredWidth 
          * @param requiredHeight 
         */
        public setViewport(viewport: BABYLON.IViewportLike, requiredWidth?: number, requiredHeight?: number): void;
        /**
          * 
         */
        public unbindAllTextures(): void;
        /**
          * 
          * @param texture 
          * @param disableGenerateMipMaps 
          * @param onBeforeUnbind 
         */
        public unBindFramebuffer(texture: RenderTargetWrapper, disableGenerateMipMaps?: boolean, onBeforeUnbind?: () => void): void;
        /**
          * 
          * @param elementBuffer 
          * @param vertexes 
          * @param indices 
         */
        public updateElementBuffer(elementBuffer: ElementBuffer, vertexes: Float32Array | IVertexType[], indices: Uint32Array): void;
        /**
          * 
         */
        public updateGlobalVars(): void;
        /**
          * 
          * @param texture 
          * @param imageSource 
         */
        public updateTexture(texture: ITexture, imageSource: TexImageSource): void;
    }

    /**
      * MaterialPlugin 材质插件对象，是Drawsee在Babylon相关插件基础上进行的封装。提供更简单易用的接口开发材质扩展Shader，控制标准材质的显示效果。
      * 目前系统光影的渲染，使用的是Babylon.StandardMaterial，所以插件也是针对该材质。
      */
    class MaterialPlugin {
        /**
          * 创建材质插件。可以直接提供Fragment代码，缺省添加在最后插入点
          * @param code 
         */
        constructor(code?: string);
        /**
          * 是否启用
         */
        public isEnabled: boolean;
        /**
          * 变换
         */
        public readonly no: number;
        /**
          * 插件所有uniform的集合对象，用"uniforms.name = value"的形式设置对应名称的uniform值
         */
        public readonly uniforms: { [name: string]: any };
        /**
          * 设置uniform的回调函数，只有实时变化的参数才需要设置，比如时间。对于clone的对象，可以设置新的函数。系统会维持一个调用列表，自动调用祖先类的原方法，互不影响。
         */
        public updateCallback: any;
        /**
          * 添加fragment shader代码。如果不提供插入点位置，如果不提供则添加到最后。这也是最常用的情况。
          * 这是对StandardMaterial比较冗长的插入点名称进行了简化。如defines表示定义位置，beforeLight表示计算光照之前
          * color是当前颜色结果，baseColor是纹理的原始颜色
          * 常用的varying：vNormalW 法向量 , vPositionW 局部三维坐标, vDiffuseUV 纹理坐标
          * 更多细节需要参考Babylon的shader源代码
          * 注意：同一个插入点名称下，同一个插件只会存在一段代码，是互相覆盖关系。多个不同的插件，会根据在使用集合中的次序插入多段代码。
          * @param code 代码
          * @param pointName 插入点位置，如果不提供则添加到最后。可以使用defines,beforeLight等简称，不区分大小写，系统会识别关键部分做区分，比如light
         */
        public addFragment(code: string, pointName?: string): void;
        /**
          * 添加uniform定义，支持float,int,vec2,vec3,mat3,mat4基本类型，以及float[8]等形式的数组类型
          * @param name 名称
          * @param type 类型
          * @param value 初始值，可选
         */
        public addUniform(name: string, type: string, value?: any): void;
        /**
          * 添加vertex shader代码。在vertex defines部分定义的varying，系统会自动复制到fragment，不用重复添加
          * @param code shader代码
          * @param pointName 插入点位置 
         */
        public addVertex(code: string, pointName?: string): void;
        /**
          * 
          * @param material 
         */
        public applyTo(material: BABYLON.Material): void;
        /**
          * 复制插件。通常可以用于作类似派生的用法，对于复制的插件，再添加新的uniform，或者
         */
        public clone(): MaterialPlugin;
        /**
          * 
          * @param plugins 
          * @returns 
         */
        public static ToKey(plugins: MaterialPlugin[]): string;
    }

    class MaterialPluginSet {
        constructor(plugins?: MaterialPlugin[]);
        public add(plugin: MaterialPlugin): void;
        public clear(): void;
        public push(plugin: MaterialPlugin): void;
    }

    /**
      * MaterialBindingBase 材质绑定对象的祖先类
      */
    class MaterialBindingBase {
        /**
          * 构造绑定，需要指定使用的插件对象集合
          * @param plugins 插件集合
         */
        constructor(plugins: MaterialPluginSet | MaterialPlugin[]);
        /**
          * 是否启用。当设置不启用时，所有插件都不会启用；设置为启用时，则由插件自身的enable控制
         */
        public isEnabled: boolean;
        /**
          * 
         */
        public readonly isReady: boolean;
        /**
          * 
         */
        protected fireChangedMessage(): void;
        /**
          * 
          * @param chunks 
          * @param result 
         */
        public filterChunks(chunks: MeshChunk[], result: MeshChunk[]): void;
    }

    /**
      * PluginHelper 材质插件帮助函数，提供一些常用插件模板
      */
    class PluginHelper {
        /**
          * 创建高亮插件
          * @param red 红色系数
          * @param green 绿色系数
          * @param blue 蓝色系数
          * @returns 插件
         */
        public static CreateBrighten(red?: number, green?: number, blue?: number): MaterialPlugin;
        /**
          * 创建时间插件，包含一个uniform, "time"，自动设置为当前系统启动后的相对秒数，可以用于动画插件的祖先
         */
        public static CreateTime(): MaterialPlugin;
        /**
          * 创建窗口灯光插件。density参数用于设置亮灯率，缺省0.5
         */
        public static CreateWindowLight(): MaterialPlugin;
    }

    /**
      * IMaterial 材质接口
      */
    interface IMaterial extends IDisposable {
        /**
          * 透明度 1-1.0
         */
        alpha: number;
        /**
          * 颜色
         */
        color: Color;
        /**
          * 
         */
        hasTextureAlpha: boolean;
        /**
          * 
         */
        isCulling: boolean;
        /**
          * 是否使用光照效果
         */
        isUseLight: boolean;
        /**
          * 
         */
        name: string;
        /**
          * 
         */
        readonly isReadyForDraw: boolean;
        /**
          * 纹理
         */
        texture: ITexture | string;
        /**
          * 
          * @param worldCamera 
          * @param world 
         */
        bindForRender(worldCamera: IWorldCamera, world: Matrix): void;
        /**
          * 
          * @param worldCamera 
          * @param world 
         */
        bindWorldOnly(worldCamera: IWorldCamera, world: Matrix): void;
    }

    /**
      * MaterialRoot 材质祖先类
      */
    class MaterialRoot implements IMaterial {
        /**
          * 
          * @param renderContext
          * @param name 
         */
        constructor(viewerOrContext: EarthViewer | RenderContext3, name: string);
        /**
          * 
         */
        public alpha: number;
        /**
          * 
         */
        public color: Color;
        /**
          * 
         */
        public graphics: Graphics3;
        /**
          * 
         */
        public hasTextureAlpha: boolean;
        /**
          * 
         */
        public isCulling: boolean;
        /**
          * 
         */
        public isUseLight: boolean;
        /**
          * 
         */
        public name: string;
        /**
          * 
         */
        public readonly earthViewer: EarthViewer;
        /**
          * 
         */
        public readonly isReadyForDraw: boolean;
        /**
          * 
         */
        public readonly renderContext: RenderContext3;
        /**
          * 
         */
        public texture: ITexture | string;
        /**
          * 
          * @param effect 
          * @param worldCamera 
          * @param world 
          * @returns 
         */
        protected bindEffectParam(effect: Effect, worldCamera: IWorldCamera, world: Matrix);
        /**
          * 
          * @param channel 
          * @param texture 
          * @param samplerName 
         */
        protected bindTexture(channel: number, texture: ITexture, samplerName: string): void;
        /**
          * 
          * @param worldCamera 
          * @param world 
         */
        public bindForRender(worldCamera: IWorldCamera, world: Matrix): void;
        /**
          * 
          * @param worldCamera 
          * @param world 
         */
        public bindWorldOnly(worldCamera: IWorldCamera, world: Matrix): void;
        /**
          * 
         */
        public dispose(): void;
        /**
          * 
          * @param geoObject 
         */
        public onAttachGeoObject(geoObject: GeoObject3): void;
        /**
          * 
          * @param propertyPath 
          * @param property 
          * @param value 
          * @returns 
         */
        public setAnimationValue(propertyPath: string[], property: string, value: any): boolean;
    }

    /**
      * ColorMaterial 纯色材质。无光照效果
      */
    class ColorMaterial extends MaterialRoot {
        /**
          * 
          * @param renderContext
          * @param name 
         */
        constructor(viewerOrContext: EarthViewer | RenderContext3, name?: string);
        /**
          * 
          * @param effect 
          * @param worldCamera 
          * @param world 
          * @returns 
         */
        protected bindEffectParam(effect: Effect, worldCamera: IWorldCamera, world: Matrix);
    }

    /**
      * BasicMaterial 基本材质类。支持颜色和纹理、光照效果
      */
    class BasicMaterial extends MaterialRoot {
        /**
          * 
          * @param renderContext
          * @param name 
         */
        constructor(viewerOrContext: EarthViewer | RenderContext3, name?: string);
        /**
          * 小于指定Alpha值将被裁减
         */
        public alphaCutoff: number;
        /**
          * 环境光颜色
         */
        public ambientLightColor: Color;
        /**
          * 是否启用雾效果
         */
        public isFogEnabled: boolean;
        /**
          * 
         */
        public isVertexColorEnabled: boolean;
        /**
          * 是否就绪
         */
        public readonly isReadyForDraw: boolean;
        /**
          * 
         */
        public uvOffset: Vector2;
        /**
          * 
         */
        public uvScaling: Vector2;
        /**
          * 
          * @param effect 
          * @param worldCamera 
          * @param world 
          * @returns 
         */
        protected bindEffectParam(effect: Effect, worldCamera: IWorldCamera, world: Matrix);
        /**
          * 
          * @param worldCamera 
          * @param world 
         */
        public bindForRender(worldCamera: IWorldCamera, world: Matrix): void;
        /**
          * 
         */
        setColorVertexMaterailObjectDefaults(): void;
        /**
          * 
         */
        setMaterailObjectDefaults(): void;
    }

    /**
      * WaterMaterial 水面材质。具备反射折射等效果，可以指定颜色、风向、绘制内容等。各种尺度参数的单位都是米。
      */
    class WaterMaterial extends MaterialRoot {
        /**
          * 
         */
        public readonly _renderTargetSize: number;
        /**
          * 创建水面材质。
          * @param renderContext 显示上下文
          * @param renderTargetSize 内部使用纹理的大小，缺省1024
         */
        constructor(viewerOrContext: RenderContext3 | EarthViewer, _renderTargetSize?: number);
        /**
          * 模拟波纹需要的特殊纹理文件，必须指定。该文件通常会跟随平台示例一起发布
         */
        public bumpTexture: ITexture | string;
        /**
          * 控制水面是否连续动画。通常水面会以低频率刷新周围静态物体以提高性能，只有当水中反射动态物体时才有必要设置。
          * 另外当EarthViewer.isAnimation设置为true时，所有水面会实时刷新，通常用于天空太阳的变化等情况。layer.isAnimation对水面不起作用
         */
        public isAnimation: boolean;
        /**
          * 是否启用反射
         */
        public isUseReflection: boolean;
        /**
          * 是否启用水下折射。缺省为true
         */
        public isUseRefraction: boolean;
        /**
          * 是否绘制地形
         */
        public isUseTerrain: boolean;
        /**
          * 指定需要在倒影中绘制的图层，可以添加多层。尽在isUseLayer为true时起作用
         */
        public layers: Array<Layer3>;
        /**
          * 
         */
        public maxActiveDistance: number;
        /**
          * 
         */
        public onAfterRenderReflection: Observable<void>;
        /**
          * 
         */
        public onAfterRenderRefraction: Observable<void>;
        /**
          * 
         */
        public onBeforeRenderReflection: Observable<void>;
        /**
          * 
         */
        public onBeforeRenderRefraction: Observable<void>;
        /**
          * 
         */
        public readonly reflectionTexture: RenderTargetTexture;
        /**
          * 
         */
        public readonly refractionTexture: RenderTargetTexture;
        /**
          * 指定水体颜色，waterColor.a值决定了水的浑浊程度，越接近1.0，颜色越不透明。
         */
        public waterColor: Color;
        /**
          * 水面波纹的大小
         */
        public waveLength: number;
        /**
          * 波纹移动方向，模拟风力或者水流效果。y正值为北。
         */
        public windDirection: Vector2;
        /**
          * 风力大小，决定波纹移动的速度
         */
        public windForce: number;
        /**
          * 
          * @param effect 
          * @param worldCamera 
          * @param world 
          * @returns 
         */
        protected bindEffectParam(effect: Effect, worldCamera: IWorldCamera, world: Matrix);
        /**
          * 系统保留
          * @param geoObject 
         */
        public onAttachGeoObject(geoObject: GeoObject3): void;
    }

    /**
      * SkyMaterial 
      */
    class SkyMaterial extends BABYLON.PushMaterial {
        /**
          * 
          * @param name 
          * @param scene 
         */
        constructor(name: string, scene?: Scene);
        /**
          * 
         */
        public azimuth: number;
        /**
          * 
         */
        public cameraOffset: Vector3;
        /**
          * 
         */
        public distance: number;
        /**
          * 
         */
        public inclination: number;
        /**
          * 
         */
        public luminance: number;
        /**
          * 
         */
        public mieCoefficient: number;
        /**
          * 
         */
        public mieDirectionalG: number;
        /**
          * 
         */
        public rayleigh: number;
        /**
          * 
         */
        public sunPosition: Vector3;
        /**
          * 
         */
        public turbidity: number;
        /**
          * 
         */
        public up: Vector3;
        /**
          * 
         */
        public useSunPosition: boolean;
        /**
          * 
          * @param world 
          * @param mesh 
          * @param subMesh 
         */
        public bindForSubMesh(world: BABYLON.Matrix, mesh: BABYLON.Mesh, subMesh: BABYLON.SubMesh): void;
        /**
          * 
          * @param forceDisposeEffect 
         */
        public dispose(forceDisposeEffect?: boolean): void;
        /**
          * 
         */
        public getAlphaTestTexture(): Nullable<BABYLON.BaseTexture>;
        /**
          * 
         */
        public getAnimatables(): BABYLON.IAnimatable[];
        /**
          * 
         */
        public getClassName(): string;
        /**
          * 
          * @param mesh 
          * @param subMesh 
          * @param useInstances 
          * @returns 
         */
        public isReadyForSubMesh(mesh: BABYLON.AbstractMesh, subMesh: BABYLON.SubMesh): boolean;
        /**
          * 
         */
        public needAlphaBlending(): boolean;
        /**
          * 
         */
        public needAlphaTesting(): boolean;
        /**
          * 
         */
        public serialize(): any;
    }

    /**
      * BlendingMode 三维像素混合模式
      */
    enum BlendingMode {
        /**
          * 
         */
        Opaque,
        /**
          * 
         */
        Add,
        /**
          * 
         */
        Transparent,
        /**
          * 
         */
        HalfTransparent
    }

    /**
      * Setting 全局设置对象
      */
    class Setting {
        /**
          * 是否允许自动启用WebGPU渲染，缺省为true
         */
        public static Gpu: boolean;
        /**
          * 全局的Lod系数，缺省1.0
         */
        public static LodRatio: number;
    }

    class RefreshRateConst {
    }

    interface ISimpleImageProvider extends IRangeProvider {
        texture: ITexture;
    }

    interface IRangeProvider {
        range: Rect;
    }

    class SimpleImageProviderWrapper implements ISimpleImageProvider {
        public texture: ITexture;
        public rangeProvider: IRangeProvider;
        constructor(texture: ITexture, rangeProvider: IRangeProvider);
        public readonly range: Rect;
    }

    interface IHardwareResourceOwner {
        bindHardwareResource(): boolean;
        getAllocBytes(): number;
    }

    interface IRenderChunkProvider {
        enumRenderChunks(result: ElementChunk[]): void;
    }

    interface IBaseChunkInfo {
        indexCount?: number;
        indexStart?: number;
        texture?: ITexture
    }

    class ChunkUnit {
        public indexStart: number;
        public indexCount: number;
        constructor(indexStart: number, indexCount: number);
    }

    class ElementChunkBase {
        public readonly elementBuffer: ElementBuffer;
        public clipCenter: Vector3;
        public clipRadius: number;
        constructor(elementBuffer: ElementBuffer, clipCenter?: Vector3, clipRadius?: number);
        public earthOrigin: Vector2;
        public readonly no: number;
        public worldOrigin: Vector3;
        protected commitBindHardwareResource(): boolean;
        public bindHardwareResource(): boolean;
        public getAllocBytes(): number;
        public getBundle(uboNo: number): GPURenderBundle;
        public lockHardware(): void;
        public setBundle(uboNo: number, bundle: GPURenderBundle);
        public unlockHardware(): void;
    }

    class ElementChunk extends ElementChunkBase {
        public readonly indexStart: number;
        public readonly indexCount: number;
        constructor(elementBuffer: ElementBuffer, indexStart?: number, indexCount?: number, clipCenter?: Vector3, clipRadius?: number);
        public bounds: Box;
        public earthMatrix: Matrix;
        public earthRange: Rect;
        public earthScaling: Vector2;
        public heightRange: Vector2;
        public isCulling: boolean;
        public isNoDepth: boolean;
        public isReverseStencil: boolean;
        public isStencilClip: boolean;
        public isTransparent: boolean;
        public texture: ITexture;
        public textureParams: Vector4;
        public worldMatrix: Matrix;
        protected commitBindHardwareResource(): boolean;
        protected copyAttrs(dest: ElementChunk);
        public lockHardware(): void;
        public unlockHardware(): void;
        public static RenderChunks(graphics: Graphics3, camera: IWorldCamera, chunks: ElementChunk[], effect: Effect, setting?: IDrawState, material?: IMaterial, useEarthParam?: boolean): void;
    }

    class ElementChunkListBase<TChunk extends ElementChunkBase> {
        public readonly layer: Layer3;
        constructor(layer: Layer3);
        public readonly count: number;
        public readonly no: number;
        protected filterChunksToAdd(chunks: TChunk[]): TChunk[];
        public addChunks(chunks: TChunk[]): void;
        public begin(): void;
        public dispose(): void;
        public finish(): void;
        public getChunks(): TChunk[];
        public incBindHardware();
        public markInFrustumTag(): void;
    }

    class SkyAtmosphereRender {
        constructor(graphics: Graphics3);
        public dispose(): void;
        public render(camera: IWorldCamera): void;
    }

    class FontTextureInfo {
        public char: number;
        public texture: ITexture;
        public u: number;
        public v: number;
        constructor(char?: number, texture?: ITexture, u?: number, v?: number);
    }

    class FontTextureManager {
        constructor(graphics: Graphics3);
        protected getCharTexture(c: number, x: RefValue<number>, y: RefValue<number>): ITexture;
        public dispose(): void;
        public extractBlockCoord(c1: number, c2: number, innerX: RefValue<number>, innerY: RefValue<number>): void;
        public getBlockBase(blockNo: number, startBase: RefValue<number>, endBase: RefValue<number>): void;
        public getBlockIndex(c1: number): number;
        public prepareFont(): void;
        public prepareTextTextureInfo(strText: string): Array<FontTextureInfo>;
        public static BlockSize: number;
        public static ChineseBase: number;
        public static CountPerLine: number;
        public static FontBlockCount: number;
        public static FontPixelSize: number;
        public static UvStep: number;
    }

    interface IAnnoRenderList {
        addAnno(positionWorld: Vector3, strText: string, color: Color, screenOffsetX: number, screenOffsetY: number, isIgnoreDepthBuffer?: boolean): void;
        clear(): void;
        dispose(): void;
    }

    class AnnoChunkRender implements IDisposable {
        constructor(graphics: Graphics3);
        public createList(): IAnnoRenderList;
        public dispose(): void;
        public getGlobalList(): IAnnoRenderList;
        public prepareDrawingData(timer: ProcessTimer): void;
        public renderOneList(camera: IWorldCamera, list: IAnnoRenderList): void;
        public reset(): void;
    }

    class LineElement {
        constructor(renderContext: RenderContext3, originWorld, localPoints: Vector3[], isLineList?: boolean);
        public dispose(): void;
        public render(graphics: Graphics3, worldCamera: IWorldCamera, color: Color, isUseDepthBuffer?: boolean, world?: Matrix): void;
    }

    class MeshElement implements IDisposable {
        constructor(graphics: Graphics3, vertexData: MeshVertexData);
        public readonly boundingInfo: BoundingInfo;
        public dispose(): void;
        public getTrianglePoints(): Vector3Array;
        public intersects(ray: Ray, fastCheck?: boolean): IntersectionInfo;
        public render(graphics: Graphics3, worldCamera: IWorldCamera, material: IMaterial, world?: Matrix, setting?: IDrawState): void;
        public toElementChunk(worldOrigin: Vector3, worldMatrix: Matrix, material: IMaterial): ElementChunk;
        public updateVertexData(vertexData: MeshVertexData);
    }

    class MeshChunkMaterialState {
        public alpha: number;
        public alphaCutOff: number;
        public ambientBrightness: number;
        public highlightColor: Vector4;
        public isCulling: boolean;
        public isTransparent: boolean;
        public isUseAlphaTest: boolean;
        public isUseLight: boolean;
        public renderTargetNo: number;
        public uvIndex: number;
        public clone(): MeshChunkMaterialState;
        public toUniformAttrKey(): string;
    }

    interface IMeshChunkMaterial {
        customViewProjection: Matrix;
        isReady: boolean;
        isSupportAlphaTestAndBlend: boolean;
        bindChunkUniforms(chunk: IBaseChunkInfo): void;
        bindLayer(layer: Layer3, isBindPlugin: boolean): boolean;
        bindTexture(name: string, texture: InternalTexture);
        commitUniformsUpdate(world: Matrix, materialState: MeshChunkMaterialState): void;
        enableEffect(uvIndex: number);
        getCurrentEffect(): Effect;
        setupDefault(camera: IWorldCamera, setting: MeshChunkRenderSetting): void;
    }

    class MeshChunkMaterialBase {
        constructor(graphics: Graphics3);
        public customViewProjection: Matrix;
        public isSupportAlphaTestAndBlend: boolean;
        public bindChunkUniforms(chunk: IBaseChunkInfo): void;
    }

    class DefaultMeshChunkMaterial extends MeshChunkMaterialBase implements IMeshChunkMaterial {
        constructor(graphics: Graphics3, isSunlight?: boolean);
        public readonly isReady: boolean;
        public bindLayer(layer: Layer3, isBindPlugin: boolean): boolean;
        public bindTexture(name: string, texture: InternalTexture);
        public commitUniformsUpdate(world: Matrix, materialState: MeshChunkMaterialState): void;
        public enableEffect(uvIndex: number);
        public getCurrentEffect(): Effect;
        public setupDefault(camera: IWorldCamera, setting: MeshChunkRenderSetting): void;
    }

    class ChunkMaterialConst {
        public static readonly DefaultAmbient: number;
        public static readonly DefaultSpecular: number;
    }

    class LightMeshChunkMaterialBase extends MeshChunkMaterialBase {
        public readonly light: BABYLON.Light;
        constructor(graphics: Graphics3, light: BABYLON.Light);
        protected getBrightness(): number;
        protected prepareAlphaCutOff(materialState: MeshChunkMaterialState): number;
        protected prepareColorParams(): void;
        protected prepareDiffuseAmbient(materialState: MeshChunkMaterialState): void;
        public static CalcAmbientFromBrightness(brightness: number): number;
    }

    class StandardMeshChunkMaterial extends LightMeshChunkMaterialBase implements IMeshChunkMaterial {
        constructor(graphics: Graphics3, scene: Scene, maxLights?: number, light?: BABYLON.Light);
        public readonly isReady: boolean;
        public bindLayer(layer: Layer3, isBindPlugin: boolean): boolean;
        public bindTexture(name: string, texture: InternalTexture);
        public commitUniformsUpdate(world: Matrix, materialState: MeshChunkMaterialState): void;
        public enableEffect(uvIndex: number);
        public getCurrentEffect(): Effect;
        public setupDefault(camera: IWorldCamera, setting: MeshChunkRenderSetting): void;
    }

    class DarkMeshChunkMaterial extends StandardMeshChunkMaterial {
        protected prepareColorParams(): void;
        public static CalcAmbient(light: BABYLON.Light): number;
    }

    class MeshChunk extends ElementChunk {
        public highlightColor: Color;
        public ambientLightBrightness: number;
        constructor(elementBuffer: ElementBuffer, indexStart: number, indexCount: number, clipCenter: Vector3, clipRadius: number, highlightColor?: Color, ambientLightBrightness?: number);
        public distanceToEye: number;
        public lod: number;
        public renderType: number;
        public uvIndex: number;
        protected createNew(): MeshChunk;
        public clone(): MeshChunk;
        public static FilterNonSelectToRef(chunks: MeshChunk[], result: MeshChunk[]): void;
    }

    class MeshChunkRenderSetting extends RenderStateBase implements IRenderState {
        public overlayTexture: ITexture;
        public overlayTextureMatrix: Matrix;
    }

    class MeshChunkRenderContext {
        public camera: IWorldCamera;
        public list: IMeshChunkList;
        public material: IMeshChunkMaterial;
        constructor(camera: IWorldCamera, list: IMeshChunkList, material: IMeshChunkMaterial);
        public materialState: MeshChunkMaterialState;
        public pass: ILightRenderPass;
        public readonly setting: MeshChunkRenderSetting;
        public subPass: ISubMaterialRenderPass;
        public clone(): MeshChunkRenderContext;
    }

    class MeshChunkDrawSliceInfo {
        public readonly context: MeshChunkRenderContext;
        public readonly chunks: ElementChunk[];
        public readonly drawState: IDrawState;
        public readonly uboInfo: UboInfo;
        constructor(context: MeshChunkRenderContext, chunks: ElementChunk[], drawState: IDrawState, uboInfo: UboInfo);
    }

    class MeshChunkBundleCache {
        public add(chunk: ElementChunk, bundle: GPURenderBundle);
        public enumInFrustmBundles(result: GPURenderBundle[]): void;
        public getCount(): number;
    }

    class MeshChunkRenderGroup {
        constructor(chunks: MeshChunk[]);
        public noDepthChunks: MeshChunk[];
        public textureChunks: MeshChunk[];
        public transparentTextureChunks: MeshChunk[];
    }

    class MeshChunkStencilClipGroup {
        constructor(chunks: MeshChunk[]);
        public noClipChunks: MeshChunk[];
        public reverseStencilChunks: MeshChunk[];
        public stencilChunks: MeshChunk[];
    }

    interface ILightRenderPass {
        beginRender(): void;
        clearEnable(): void;
        endRender(): void;
        recreateSubPasses(): boolean;
    }

    interface ISubMaterialRenderPass {
        father: ILightRenderPass;
        bindCurrentMaterial(): IMeshChunkMaterial;
        getBindingKey(): string;
        setEnable(): void;
    }

    interface ILightRenderPassProvider {
        createDefaultRenderPass(layer: Layer3): ILightRenderPass;
        getRenderPasses(layer: Layer3): ILightRenderPass[];
    }

    enum SubRenderPassType {
        Opaque,
        Transparent
    }

    class ChunkTransparentGrouper {
        constructor(chunks: MeshChunk[]);
        public opaqueChunks: MeshChunk[];
        public transparentChunks: MeshChunk[];
    }

    class MeshChunkListBase extends ElementChunkListBase<MeshChunk> {
        public isOpaquePass: boolean;
        public setting: MeshChunkRenderSetting;
        protected filterChunksToAdd(chunks: MeshChunk[]): MeshChunk[];
        public begin(): void;
    }

    interface IMeshChunkList {
        count: number;
        isOpaquePass: boolean;
        readonly layer: Layer3;
        readonly no: number;
        setting: MeshChunkRenderSetting;
        addChunks(chunks: MeshChunk[]): void;
        begin(): void;
        finish(): void;
        getChunks(): MeshChunk[];
        incBindHardware();
        markInFrustumTag(): void;
    }

    interface IGpuMeshChunkList extends IMeshChunkList {
    }

    class MeshChunkList extends MeshChunkListBase implements IMeshChunkList {
    }

    class GpuMeshChunkListBase<TGroupInfo extends MeshChunkDrawSliceInfo> extends MeshChunkListBase implements IGpuMeshChunkList {
        protected lockHardware(): void;
        protected unlockHardware(): void;
        public begin(): void;
        public finish(): void;
    }

    class GpuBundleGroupRenderBase {
        public graphics: Graphics3;
        public readonly owner: MeshChunkRenderBase;
        constructor(graphics: Graphics3, owner: MeshChunkRenderBase);
        protected commitRenderOneSlice(list: IMeshChunkList, sliceInfo: MeshChunkDrawSliceInfo, uniformAttrKey: string): number;
        public draw(list: IMeshChunkList): void;
    }

    class ChunkGroupDispatch {
        public graphics: Graphics3;
        public readonly owner: MeshChunkRenderBase;
        constructor(graphics: Graphics3, owner: MeshChunkRenderBase);
        public getCulling(setting: MeshChunkRenderSetting): boolean;
        public renderOneCommonGroup(context: MeshChunkRenderContext, chunks: MeshChunk[], isStencilClip: boolean): void;
        public renderOneStencilGroup(context: MeshChunkRenderContext, chunks: MeshChunk[]): void;
        public renderTextureChunks(context: MeshChunkRenderContext, chunks: MeshChunk[]): void;
        public setOverrideCulling(culling: boolean): void;
    }

    class CullingGroup {
        constructor(chunks: MeshChunk[], isCulling: boolean);
        public cullingChunks: MeshChunk[];
        public notCullingChunks: MeshChunk[];
    }

    class MeshChunkRenderBase {
        public readonly name: string;
        constructor(graphics: Graphics3, name: string);
        protected collectChunkGroupsFromList(camera: IWorldCamera, list: IMeshChunkList): void;
        protected commitCreateList(layer: Layer3): IMeshChunkList;
        protected createDefaultMaterial(): IMeshChunkMaterial;
        protected defaultFilter(camera: IWorldCamera, chunks: MeshChunk[]): MeshChunk[];
        protected getDefaultMaterial(list: IMeshChunkList): IMeshChunkMaterial;
        protected onAfterCollectChunkGroupsFromList(list: IMeshChunkList): void;
        public createList(layer: Layer3): IMeshChunkList;
        public prepareRenderCallbacks(groupInfo: MeshChunkDrawSliceInfo): void;
        public releaseList(list: IMeshChunkList): void;
        public renderOneList(camera: IWorldCamera, list: IMeshChunkList): void;
        public resetLightSceneCache(list: IMeshChunkList): void;
        public summitChunkGroup(context: MeshChunkRenderContext, chunks: ElementChunk[]): void;
        public transferToUniformBuffer(context: MeshChunkRenderContext, chunk: MeshChunk): void;
    }

    class TerrainRenderSetting {
        public cameraPos: Vector3;
        public globeColor: Color;
        public isAllowTransparent: boolean;
        public isClipByGroundHole: boolean;
        public isUseAtmosphere: boolean;
        public isUseLight: boolean;
        public isUseTexture: boolean;
        public lowerMeters: number;
        public lowerTexture: TerrainOverlayTexture;
        public zIndex: number;
        public getAlpha(): number;
        public setAlpha(alpha: number): void;
    }

    class TerrainChunk extends ElementChunk {
        public elementBuffer: ElementBuffer;
        public indexStart: number;
        public indexCount: number;
        public clipCenter: Vector3;
        public clipRadius: number;
        public level: number;
        public indexWithSkirtCount: number;
        public overlayTextures: Array<ITexture>;
        public overlayTextureAlphas: Array<number>;
        public overlayTextureParams: Vector4;
        constructor(elementBuffer: ElementBuffer, indexStart: number, indexCount: number, clipCenter: Vector3, clipRadius: number, level: number, indexWithSkirtCount: number, textureParams?: Vector4, overlayTextures?: Array<ITexture>, overlayTextureAlphas?: Array<number>, overlayTextureParams?: Vector4);
        public isUseSkirt: boolean;
        public node: TerrainIndexNode;
        protected commitBindHardwareResource(): boolean;
        public getBundle(uboNo: number): GPURenderBundle;
        public lockHardware(): void;
        public setBundle(uboNo: number, bundle: GPURenderBundle): void;
        public unlockHardware(): void;
    }

    class TerrainChunkBundleGroup {
        public chunks: TerrainChunk[];
        public uniformAttrKey: string;
        public createTerrainBundleGroups(chunks: TerrainChunk[]): TerrainChunkBundleGroup[];
    }

    class TerrainChunkGroup {
        public bundleGroups: Array<TerrainChunkBundleGroup>;
        public chunks: TerrainChunk[];
        public clear(): void;
        public enumKeys(): string[];
        public setAndGroupChunks(chunks: TerrainChunk[]): void;
    }

    class TerrainChunkRenderPass {
        public setting: TerrainRenderSetting;
        constructor(setting: TerrainRenderSetting);
        public clear(): void;
        public groupChunks(chunks: TerrainChunk[]): void;
    }

    class TerrainChunkList {
        public graphics: Graphics3;
        public setting: TerrainRenderSetting;
        constructor(graphics: Graphics3, setting: TerrainRenderSetting);
        public clear(): void;
        public getBundlePass(): TerrainChunkRenderPass;
        public getCount(): number;
        public getDirectPass(): TerrainChunkRenderPass;
        public setChunks(chunks: TerrainChunk[], isBlendingMode: boolean): void;
    }

    class TerrainDrawState {
        public isEnableStencilClip: boolean;
        public isEyeBlowTerrain: boolean;
        public isMainTriOnly: boolean;
        public isSkirtTriOnly: boolean;
        public clone(): TerrainDrawState;
    }

    class TerrainBundleGroupInfo {
        public readonly chunks: TerrainChunk[];
        public readonly uniformAttrKey: string;
        public readonly terrainState: TerrainDrawState;
        public drawState: IDrawState;
        constructor(effect, chunks: TerrainChunk[], uniformAttrKey: string, terrainState: TerrainDrawState, drawState: IDrawState);
        public bundleCache: MeshChunkBundleCache;
    }

    class TerrainChunkRender {
        public earthViewer: EarthViewer;
        constructor(earthViewer: EarthViewer, effectName: string, renderName: string);
        public setting: TerrainRenderSetting;
        public createBundleGroupInfo(chunks: TerrainChunk[], uniformAttrKey: string): TerrainBundleGroupInfo;
        public render(): void;
        public setExteranOverlayTexture(provider: ISimpleImageProvider, alpha: number): void;
        public setMercatorOverlayTexture(texture: ITexture, worldBounds: Rect, textureTop: ITexture, worldBoundsTop: Rect, isMercatorDetailTileReady: boolean): void;
        public setTerrainChunks(chunks: TerrainChunk[]): void;
        public static readonly _OverlayTextureCount: number;
        public static readonly DefaultClipRegionParams: Vector4;
        public static readonly DefaultTextureParams: Vector4;
    }

    /**
      * TerrainColorSetting 地形高程设色对象 
      */
    class TerrainColorSetting {
        /**
          * 透明度 0-1
         */
        public alpha: number;
        /**
          * 颜色表，必须指定
         */
        public colorTable: ColorTable;
        /**
          * 等高线颜色
         */
        public contourColor: Color;
        /**
          * 等高线间距，米
         */
        public contourSpacing: number;
        /**
          * 等高线的像素宽度
         */
        public contourWidth: number;
        /**
          * 是否把RGB最大值与alpha融合。缺省true，通常会有更好的视觉效果
         */
        public isBlendDiffuse: boolean;
        /**
          * 是否在叠加显示等高线
         */
        public isContourVisible: boolean;
        /**
          * 是否显示坡度分析颜色
         */
        public isSlopeVisible: boolean;
        /**
          * 最远等高线显示距离，避免过度密集。缺省20km
         */
        public maxContourDistance: number;
        /**
          * 使用高程设色的高度上限。缺省9000米
         */
        public maxHeight: number;
        /**
          * 使用高程设色的高度下限。缺省-10000米
         */
        public minHeight: number;
    }

    class TileChunk extends MeshChunk {
        protected createNew(): MeshChunk;
        public getBundle(uboNo: number): GPURenderBundle;
        public setBundle(uboNo: number, bundle: GPURenderBundle): void;
    }

    class TileChunkDrawSliceInfo extends MeshChunkDrawSliceInfo {
        public bundleCache: MeshChunkBundleCache;
    }

    class GpuTileTreeEnum implements ITileTreeEnum {
        public layer: TileLayerRoot;
        constructor(layer: TileLayerRoot);
        public enumSubMeshesForRender(index: TileMeshIndexBase, renderType: TileSubMeshRenderType, result: TileSubMesh[]): void;
    }

    class GpuTileChunkList extends GpuMeshChunkListBase<TileChunkDrawSliceInfo> {
        protected lockHardware(): void;
        protected unlockHardware(): void;
        public checkWaitingToBind(sliceInfo: MeshChunkDrawSliceInfo): TileChunk[];
        public incBindHardware();
    }

    class TileMeshChunkMaterial extends MeshChunkMaterialBase implements IMeshChunkMaterial {
        constructor(graphics: Graphics3, effectName: string);
        public readonly isReady: boolean;
        public bindChunkUniforms(chunk: IBaseChunkInfo): void;
        public bindLayer(layer: Layer3, isBindPlugin: boolean): boolean;
        public bindTexture(name: string, texture: InternalTexture);
        public commitUniformsUpdate(world: Matrix, materialState: MeshChunkMaterialState): void;
        public enableEffect(uvIndex: number);
        public getCurrentEffect(): Effect;
        public setupDefault(camera: IWorldCamera, setting: MeshChunkRenderSetting): void;
    }

    class TileBundleGroupRender extends GpuBundleGroupRenderBase {
        protected commitRenderBundls(sliceInfo: MeshChunkDrawSliceInfo, uniformAttrKey: string): number;
        protected commitRenderOneSlice(list: IMeshChunkList, sliceInfo: MeshChunkDrawSliceInfo, uniformAttrKey: string): number;
    }

    class TileChunkRender extends MeshChunkRenderBase {
        constructor(graphics: Graphics3, name: string);
        protected collectChunkGroupsFromList(camera: IWorldCamera, list: IMeshChunkList): void;
        protected commitCreateList(layer: Layer3): IMeshChunkList;
        protected createDefaultMaterial(): IMeshChunkMaterial;
        protected onAfterCollectChunkGroupsFromList(list: IMeshChunkList): void;
        protected setGlobalDrawStates(context: MeshChunkRenderContext): void;
    }

    class BimChunk extends MeshChunk {
        public localRange: Rect;
        public materialNo: number;
        public nodeNo: number;
        public toBindTexture: ITexture;
        protected createNew(): MeshChunk;
        public checkBundleTextureDirty(): boolean;
        public getBundle(uboNo: number): GPURenderBundle;
        public setBundle(uboNo: number, bundle: GPURenderBundle): void;
        public static FilterChunksByNodeNoToRef(chunks: BimChunk[], nodeNoMapping: boolean[], result: BimChunk[]): void;
    }

    class BimSubChunkGroup {
        public readonly group: BimChunkGroup;
        constructor(group: BimChunkGroup);
        public chunkBundleCache: MeshChunkBundleCache;
        public chunks: BimChunk[];
        public getLod(): number;
        public static FromChunks(list: BimChunkList, chunks: BimChunk[]): BimSubChunkGroup[];
        public static ToChunks(subGroups: BimSubChunkGroup[]): BimChunk[];
    }

    class BimChunkGroup {
        public readonly elementBuffer: ElementBuffer;
        constructor(elementBuffer: ElementBuffer);
        public distanceToEye: number;
        public lod: number;
        public readonly bounds: Box;
        public readonly clipRadius: number;
        public readonly localRange: Rect;
        public readonly no: number;
        public addChunk(chunk: BimChunk): void;
        public getBundle(sliceId: number, lod: number, chunks: BimChunk[]): GPURenderBundle;
        public getChunks(): BimChunk[];
        public getTextures(): ITexture[];
        public markGroupStatus(): void;
        public setBundle(sliceId: number, lod: number, bundle: GPURenderBundle, chunks: BimChunk[]): void;
        public static FromChunks(chunks: BimChunk[]): BimChunkGroup[];
        public static ToChunks(groups: BimChunkGroup[]): BimChunk[];
        public static ToElementBuffers(groups: BimChunkGroup[]): ElementBuffer[];
        public static ToNoDuplicatedTextures(groups: BimChunkGroup[]): ITexture[];
    }

    class BimChunkList extends GpuMeshChunkListBase<BimChunkGroupDrawSliceInfo> {
        protected lockHardware(): void;
        protected unlockHardware(): void;
        public begin(): void;
        public checkWaitingToBind(groupInfo: MeshChunkDrawSliceInfo): BimSubChunkGroup[];
        public incBindHardware();
        public markInFrustumTag(): void;
    }

    class BimChunkGroupDispatch extends ChunkGroupDispatch {
        public renderOneCommonGroup(context: MeshChunkRenderContext, chunks: MeshChunk[], isStencilClip: boolean): void;
    }

    class BimChunkBundleGroupCache {
        public add(subGroup: BimSubChunkGroup, bundle: GPURenderBundle);
        public enumInFrustmBundles(result: GPURenderBundle[]): void;
        public getCount(): number;
    }

    class BimChunkGroupDrawSliceInfo extends MeshChunkDrawSliceInfo {
        public bundleCache: BimChunkBundleGroupCache;
    }

    class BimBundleGroupRender extends TileBundleGroupRender {
        protected commitRenderOneSlice(list: IMeshChunkList, sliceInfo: MeshChunkDrawSliceInfo, uniformAttrKey: string): number;
    }

    class BimChunkRender extends MeshChunkRenderBase {
        constructor(graphics: Graphics3, name: string);
        protected collectChunkGroupsFromList(camera: IWorldCamera, list: IMeshChunkList): void;
        protected commitCreateList(layer: Layer3): IMeshChunkList;
        protected onAfterCollectChunkGroupsFromList(list: IMeshChunkList): void;
    }

    class VectorChunkBase extends ElementChunkBase {
        public layer: string;
    }

    class VectorChunkRenderBase {
        public graphics: Graphics3;
        constructor(graphics: Graphics3);
        protected bindElevationParams(earthOrigin: Vector2, elevationNormal: Vector3): boolean;
        protected createEffect(): void;
    }

    class LineChunk extends VectorChunkBase {
    }

    class LineVertexType {
        public static Base: VertexDeclaration;
        public static Flow: VertexDeclaration;
        public static Ground: VertexDeclaration;
    }

    class LineVertexData {
        public earthOrigin: Vector2;
        public worldOrigin: Vector3;
        public worldBounds: Box;
        public verts: Float32Array;
        public indices: Uint32Array;
        constructor(earthOrigin: Vector2, worldOrigin: Vector3, worldBounds: Box, verts: Float32Array, indices: Uint32Array);
    }

    class LineVertexDataCreator {
        protected commitCreateVertexData(worldOrigin: Vector3, worldBounds: Box, vertexFloats: Float32Array, indices: Uint32Array): LineVertexData;
        protected onBeforeCreateOneUnit(index: number): void;
        protected prepareLastVert(worldOrg: Vector3, worldVs: Vector3Array, srcStart: number, vertexCount: number): void;
        protected prepareMiddleVert(worldOrg: Vector3, worldVs: Vector3Array, i: number): void;
        protected prepareStartVert(worldOrg: Vector3, worldVs: Vector3Array, srcStart: number): void;
        protected setOneVertex(vertexFloats: Float32Array, idx: number, direction: number, len: number);
        protected updateOneUnit(vertexFloats: Float32Array, worldOrg: Vector3, worldVs: Vector3Array,
            srcStart: number, srcCount: number, destStartIndex: number, strideFloat: number, indiceArray: Uint32Array): void;
        public createData(worldPoints: Vector3Array, vertexCounts: Uint32Array, vertexDeclaration?: VertexDeclaration): LineVertexData;
        public updateData(vertexData: LineVertexData, worldPoints: Vector3Array, vertexCounts: Uint32Array, vertexDeclaration?: VertexDeclaration): void;
    }

    class GroundLineVertexDataCreator extends LineVertexDataCreator {
        protected commitCreateVertexData(worldOrigin: Vector3, worldBounds: Box, vertexFloats: Float32Array, indices: Uint32Array): LineVertexData;
        protected onBeforeCreateOneUnit(index: number): void;
        protected prepareLastVert(worldOrg: Vector3, worldVs: Vector3Array, srcStart: number, vertexCount: number): void;
        protected prepareMiddleVert(worldOrg: Vector3, worldVs: Vector3Array, i: number): void;
        protected prepareStartVert(worldOrg: Vector3, worldVs: Vector3Array, srcStart: number): void;
        protected setOneVertex(vertexFloats: Float32Array, idx: number, direction: number, len: number);
        public createGroundData(earthPoints: Vector3Array, worldPoints: Vector3Array, vertexCounts: Uint32Array): LineVertexData;
    }

    class LineFactory {
        public static CreateLineChunk(renderContext: RenderContext3, worldPointsArray: Array<Vector3[]>): LineChunk;
        public static CreateVtLineChunk(renderContext: RenderContext3, lineData: LineVertexData): LineChunk;
    }

    class PointChunk extends VectorChunkBase {
        public elevation: number;
        public height: number;
        public width: number;
    }

    class SpriteDataBase {
        public position: Vector3;
        public texture: ITexture;
        public width: number;
        public height: number;
        constructor(position: Vector3, texture: ITexture, width: number, height: number);
        public indexCount: number;
        public indexStart: number;
    }

    class SpriteChunkListBase<TData extends SpriteDataBase, TVertex extends IVertexType> {
        public graphics: Graphics3;
        constructor(graphics: Graphics3);
        public readonly elementBuffer: ElementBuffer;
        protected addSpriteData(data: TData): TData;
        protected setVertex(vertexFloats: Float32Array, index: number, data: TData, texOffsetX: number, texOffsetY: number, worldOrigin: Vector3, lonLatOrigin: Vector2): void;
        public clear(): void;
        public dispose(): void;
        public updateVertexBuffer(worldOrigin: Vector3, lonLatOrigin: Vector2): void;
    }

    class SpriteVertex extends VertexBase implements IVertexType {
        public position: Vector3;
        public uvParam: Vector2;
        public imageSize: Vector2;
        constructor(position?: Vector3, uvParam?: Vector2, imageSize?: Vector2);
        public readonly VertexDeclaration: VertexDeclaration;
        public appendData(destArray: number[]): void;
        public clone(): SpriteVertex;
        public static VertexDeclaration: VertexDeclaration;
    }

    class SpriteData extends SpriteDataBase {
        public offset: Vector2;
        public isIgnoreDepthBuffer: boolean;
        public rotationMatrix: Matrix;
        constructor(position: Vector3, texture: ITexture, width: number, height: number, offset: Vector2, isIgnoreDepthBuffer: boolean, rotationMatrix?: Matrix);
    }

    class SpriteChunkList extends SpriteChunkListBase<SpriteData, SpriteVertex> {
        constructor(graphics: Graphics3);
        protected setVertex(vertexFloats: Float32Array, index: number, data: SpriteData, texOffsetX: number, texOffsetY: number,
            worldOrgin: Vector3, lonLatOrigin: Vector2): void;
        public addSprite(worldPosition: Vector3, texture: ITexture, width: number, height: number, offsetX: number, offsetY: number, isIgnoreDepthBuffer?: boolean, rotationMatrix?: Matrix): SpriteData;
    }

    class SpriteChunkRender implements IDisposable {
        constructor(graphics: Graphics3);
        public createList(): SpriteChunkList;
        public dispose(): void;
        public renderOneList(worldCamera: IWorldCamera, list: SpriteChunkList): void;
    }

    class GroundSpriteVertex extends VertexBase implements IVertexType {
        public readonly VertexDeclaration: VertexDeclaration;
        public appendData(destArray: number[]): void;
        public static VertexDeclaration: VertexDeclaration;
    }

    class GroundSpriteData extends SpriteDataBase {
        public imageOffset: Vector2;
        public earthOrigin: Vector2;
        public elevationNormal: Vector3;
        public fontSize: number;
        constructor(position: Vector3, texture: ITexture, width: number, height: number, imageOffset: Vector2, earthOrigin: Vector2, elevationNormal: Vector3, fontSize: number);
        public dirDis: number;
        public direction: Vector3;
    }

    class GroundSpriteChunkList extends SpriteChunkListBase<GroundSpriteData, GroundSpriteVertex> {
        constructor(graphics: Graphics3);
        protected setVertex(vertexFloats: Float32Array, index: number, data: GroundSpriteData, texOffsetX: number, texOffsetY: number,
            worldOrigin: Vector3, lonLatOrigin: Vector2): void;
        public addSprite(worldPosition: Vector3, texture: ITexture, width: number, height: number, offsetX: number, offsetY: number,
            earthOrigin: Vector2, elevationNormal: Vector3, fontSize: number): GroundSpriteData;
    }

    class GroundSpriteChunkRender implements IDisposable {
        constructor(graphics: Graphics3);
        public createList(): GroundSpriteChunkList;
        public dispose(): void;
        public renderOneList(worldCamera: IWorldCamera, list: GroundSpriteChunkList): void;
    }

    /**
      * LightType 光源环境对象的类别
      */
    enum LightType {
        /**
          * 系统缺省光源模式，光线方向跟随视线，固定亮度，适合观察抽象数据模型
         */
        Default,
        /**
          * 阳光模式。模拟自然的阳光，根据太阳位置，有阴影，明暗变化
         */
        Sun,
        /**
          * 自定义模式，使用设定的光源Scene中的灯光。DarkLightSystem，暗光系统就是一种自定义类型
         */
        Custom
    }

    /**
      * LightSystemBase 光源环境对象的基类
      */
    class LightSystemBase implements ILightRenderPassProvider {
        /**
          * 
         */
        public earthViewer: EarthViewer;
        /**
          * 
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 漫反射光颜色
         */
        public diffuse: Color;
        /**
          * 光线强度 0-1
         */
        public intensity: number;
        /**
          * 是否激活系统
         */
        public isEnabled: boolean;
        /**
          * 灯泡是否可见
         */
        public isLampVisible: boolean;
        /**
          * 指定光照系统的原点。对阳光系统无效。对暗光系统，如不指定，则自动使用关联图层原点。
         */
        public position: Vector3;
        /**
          * 内置的BabylonLayer对象
         */
        public readonly babylonLayer: BabylonLayer;
        /**
          * 灯泡图层
         */
        public readonly lampLayer: ShapeLayer;
        /**
          * 内置的Scene对象
         */
        public readonly scene: Scene;
        /**
          * 高光颜色
         */
        public specular: Color;
        /**
          * 
         */
        protected checkMaterialReady(): boolean;
        /**
          * 
         */
        protected commitMainLoop(): void;
        /**
          * 
          * @param layerName 
         */
        protected createBabylonLayer(layerName: string): void;
        /**
          * 
         */
        protected onForceUpdateFromEnable(): void;
        /**
          * 
         */
        protected updateParams(): void;
        /**
          * 
          * @param layer 
          * @returns 
         */
        public createDefaultRenderPass(layer: Layer3): ILightRenderPass;
        /**
          * 
          * @param layer 
          * @returns 
         */
        public getRenderPasses(layer: Layer3): ILightRenderPass[];
    }

    /**
      * LightInfo 光源信息对象
      */
    class LightInfo {
        /**
          * 编号
         */
        public readonly no: number;
        /**
          * 位置
         */
        public position: Vector3;
        /**
          * 光线方向
         */
        public direction: Vector3;
        /**
          * 光照的角度范围，弧度单位。会自动控制小于PI
         */
        public angle: number;
        /**
          * 光线的衰减指数，缺省为2，即随距离平方反比衰减。该数值越小，衰减越慢
         */
        public exponent: number;
        /**
          * 构造光源信息对象。需要通过DarkLightSystem对象添加。
          * @param no 
          * @param position 
          * @param direction 
          * @param angle 
          * @param exponent 
         */
        constructor(no: number, position: Vector3, direction: Vector3, angle: number, exponent: number);
        /**
          * 灯泡上面灯罩的比例0-1
         */
        public coverRatio: number;
        /**
          * 漫反射光颜色
         */
        public diffuse: Color;
        /**
          * 光线强度
         */
        public intensity: number;
        /**
          * 灯泡可见的最远距离，缺省300米
         */
        public maxVisibleDistance: number;
        /**
          * 光照的距离，单位米
         */
        public range: number;
        /**
          * 灯泡的大小
         */
        public size: Size3;
        /**
          * 高光颜色
         */
        public specular: Color;
        /**
          * 
          * @param infos 
          * @returns 
         */
        public static CalcBounds(infos: LightInfo[]): Box;
        /**
          * 
          * @param infos 
          * @returns 
         */
        public static CalcWorldBounds(infos: LightInfo[]): Box;
    }

    /**
      * DarkLightSystem 暗光系统。通常用于室内或者夜晚的场景，系统内置一盏漫反射背景主灯，通常比较暗淡，然后在不同位置可以添加多盏点光源，数目不限。
      * 系统将根据视点的位置，自动激活附近的点光源做精细的光影渲染，远处则采用背景主灯。目前的实现支持10盏灯同时激活，某些低端手机移动平台有可能无法运行。
      */
    class DarkLightSystem extends LightSystemBase {
        /**
          * 创建暗光系统。在EarthViewer中，可以创建多个不同的暗光系统。
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 
         */
        public activeDistance: number;
        /**
          * 背景主灯的漫反射方向
         */
        public direction: Vector3;
        /**
          * 用于添加在该暗光线中显示的图层。通常一个图层应该只加入一个暗光系统
         */
        public layers: Layer3[];
        /**
          * 
         */
        public shadowActiveDistance: number;
        /**
          * 
         */
        protected checkMaterialReady(): boolean;
        /**
          * 
         */
        protected commitMainLoop(): void;
        /**
          * 添加点光源信息。光源位置需要时局部坐标，系统自动使用第一个渲染图层的基准点
          * @param position 位置
          * @param direction 方向
          * @param angle 照射角度范围
          * @param exponent 衰减指数
          * @returns 光源信息对象
         */
        public addLight(position: Vector3, direction?: Vector3, angle?: number, exponent?: number): LightInfo;
        /**
          * 
          * @param layer 
          * @returns 
         */
        public createDefaultRenderPass(layer: Layer3): ILightRenderPass;
        /**
          * 通过下标获取光源信息对象
          * @param index 下标
          * @returns 对象
         */
        public getAt(index: number): LightInfo;
    }

    /**
      * SunLightSystem 太阳光系统。控制阴影，环境光亮度，颜色等
      */
    class SunLightSystem extends LightSystemBase {
        /**
          * 太阳光系统。控制阴影，环境光亮度，颜色等
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 控制阴影的强度，0-1范围，数值越大越明显，0则不显示。通常系统会根据阳光强度自动调整
         */
        public shadow: number;
        /**
          * 
         */
        protected checkMaterialReady(): boolean;
        /**
          * 
         */
        protected commitMainLoop(): void;
        /**
          * 
         */
        protected onForceUpdateFromEnable(): void;
        /**
          * 
         */
        protected updateParams(): void;
        /**
          * 
          * @param layer 
          * @returns 
         */
        public createDefaultRenderPass(layer: Layer3): ILightRenderPass;
        /**
          * 
          * @param layer 
          * @returns 
         */
        public getRenderPasses(layer: Layer3): ILightRenderPass[];
    }

    /**
      * FlowGrid 流场网格对象，描述空间网格上的运动参数。x代表东西经度方向，z代表南北纬度方向。
      */
    class FlowGrid {
        /**
          * 东西方向的网格个数
         */
        public xSize: number;
        /**
          * 南北方向的网格个数
         */
        public zSize: number;
        /**
          * 创建指定大小的流场网格
          * @param xSize 
          * @param zSize 
         */
        constructor(xSize: number, zSize: number);
        /**
          * 
          * @param x 
          * @param z 
          * @param valueScale 
          * @param isWrap 
          * @param minSpeed 
          * @param maxSpeed 
          * @param result 
         */
        public calcOnePosition(x: number, z: number, valueScale: number, isWrap: boolean, minSpeed: number, maxSpeed: number, result: Vector4): void;
        /**
          * 
          * @param v 
         */
        public earthToGridInPlace(v: Vector3): void;
        /**
          * 获取网格对应的经纬度范围
         */
        public getExtent(): GeoExtent;
        /**
          * 
          * @param v 
         */
        public gridToEarthInPlace(v: Vector3): void;
        /**
          * 以数组方式设置经度和纬度方向的速度数据，通常是从风场json格式解析到的内容
          * @param xValues 
          * @param zValues 
         */
        public setDataArray(xValues: number[], zValues: number[]): void;
        /**
          * 直接设置指定网格位置的东西方向速度
          * @param x 横坐标索引
          * @param z 纵坐标索引
          * @param value 数值
         */
        public setXData(x: number, z: number, value: number): void;
        /**
          * 直接设置指定网格位置的南北方向速度
          * @param x 横坐标索引
          * @param z 纵坐标索引
          * @param value 数值
         */
        public setZData(x: number, z: number, value: number): void;
        /**
          * 从风场json格式创建
          * @param jsonString json字符串
          * @returns 流场网格对象
         */
        public static FromJson(jsonString: string): FlowGrid;
    }

    class ParticleManager implements IDisposable {
        public host: FlowParticleSystem;
        public capacity: number;
        constructor(host: FlowParticleSystem, capacity: number, flowGrid: FlowGrid);
        public dispose(): void;
        public getPositionInfos(): Float32Array;
        public updateParticleLifes(): void;
    }

    class ParticleData {
        public readonly no: number;
        constructor(no: number);
        public position: Vector3;
    }

    interface IEarthGridTransform {
        earthToGridInPlace(v: Vector3);
    }

    class ParticleEmitter {
        public transform: IEarthGridTransform;
        constructor(earthViewer: EarthViewer, transform: IEarthGridTransform, isGlobalRange: boolean, earthExtent: GeoExtent, gridXSize: number, gridZSize: number);
        public emitPositions(particles: ParticleData[]): void;
    }

    class SingleLineParticleRender implements IDisposable {
        public host: FlowParticleSystem;
        constructor(host: FlowParticleSystem);
        public dispose(): void;
        public draw(): void;
        public updateVertex(positionInfos: Float32Array, minValue: number, maxValue: number): void;
    }

    /**
      * ParticleBlendMode 流场粒子渲染模式
      */
    enum ParticleBlendMode {
        /**
          * 标准模式，粒子保持各自的alpha值
         */
        Standard = 0,
        /**
          * 叠加模式，粒子重叠的像素部分累加alpha，亮度将会被增强
         */
        Add = 1
    }

    /**
      * FlowParticleSystem 流场粒子系统，用于渲染流场网格控制的的粒子运动。目前版本只支持单线条渲染模式，最大粒子数限制64000，尾迹点个数64
      */
    class FlowParticleSystem {
        /**
          * earthViewer容器
         */
        public earthViewer: EarthViewer;
        /**
          * 创建流场粒子系统，指定最大粒子数，尾迹点个数
          * @param earthViewer earthViewer
          * @param capacity 最大粒子数，可选。缺省值8192
          * @param pointCount 尾迹点个数，可选。缺省值16
         */
        constructor(earthViewer: EarthViewer, capacity?: number, pointCount?: number);
        /**
          * 透明度 0-1
         */
        public alpha: number;
        /**
          * 基准高度，缺省10000。非贴地模式时起作用
         */
        public baseHeight: number;
        /**
          * 颜色混合模式
         */
        public blendMode: ParticleBlendMode;
        /**
          * 最大粒子个数
         */
        public capacity: number;
        /**
          * 粒子颜色
         */
        public color: Color;
        /**
          * 粒子颜色表。使用颜色表时，将忽略color属性
         */
        public colorTable: ColorTable;
        /**
          * 流场的经纬度范围
         */
        public extent: GeoExtent;
        /**
          * 获取和设置关联的流场网格对象
         */
        public flowGrid: FlowGrid;
        /**
          * 是否为贴地模式
         */
        public isClampToGround: boolean;
        /**
          * 是否可见
         */
        public isVisible: boolean;
        /**
          * 粒子最小生命时间，毫秒
         */
        public maxLifeTime: number;
        /**
          * 粒子最大速度。需要纠正流场网格数据才需设置
         */
        public maxSpeed: number;
        /**
          * 粒子最大轨迹线长度，以网格坐标为单位。会截断过长的尾迹线点
         */
        public maxTailLen: number;
        /**
          * 粒子最大生命时间，毫秒
         */
        public minLifeTime: number;
        /**
          * 粒子最小速度。需要纠正流场网格数据才需设置
         */
        public minSpeed: number;
        /**
          * 历史尾迹点个数
         */
        public pointCount: number;
        /**
          * 速度系数。用于调节粒子的整体运动速度，缺省0.01
         */
        public speedRatio: number;
        /**
          * 加载风场json网格并渲染
          * @param url url
          * @param isAutoZoom 是否自动缩放到流场范围
          * @param onLoadReady 加载完毕的回调函数
         */
        public loadGrid(url: string, isAutoZoom: boolean, onLoadReady?: (grid: FlowGrid) => void): void;
        /**
          * 
         */
        public render(): void;
    }

    /**
      * LineInterpolation 折线线性插值对象。把整条折线线性映射到给定的最大值范围，然后可以中间值来取得对应的线上插值点。
      * 通常可以用于路径飞行或者动画模拟。可以结合Spline进行平滑处理。
      */
    class LineInterpolation {
        /**
          * 
          * @param coordSystem 
          * @param points 
          * @param totalValue 
          * @param stepCount 
         */
        constructor(coordSystem: ICoordSystem3, points: Vector3[], totalValue: number, stepCount?: number);
        /**
          * 是否循环取值
         */
        public isLoop: boolean;
        /**
          * 
          * @param curValue 
          * @returns 
         */
        public getDirection(curValue: number): Vector3;
        /**
          * 获取指定值对于的折线上插值点。
          * @param curValue 
          * @returns 
         */
        public getPosition(curValue: number): Vector3;
    }

    interface ICameraAnimation {
        isActive: boolean;
        nextPosition: CameraPositionInfo;
        clear(): void;
        onFinish: () => void;
    }

    class CameraAnimationBase {
        constructor(camera: Camera, delayMs: number);
        public onFinish: () => void;
    }

    class FlyingAnimation extends CameraAnimationBase implements ICameraAnimation {
        constructor(camera: Camera, totalMs: number, startInfo: CameraPositionInfo, endInfo: CameraPositionInfo, delayMs: number);
        public isActive: boolean;
        public readonly nextPosition: CameraPositionInfo;
        public clear(): void;
    }

    class RouteFlyingAnimation extends CameraAnimationBase implements ICameraAnimation {
        constructor(camera: Camera, points: Vector3[], totalMs: number, pitch?: number);
        public isActive: boolean;
        public readonly nextPosition: CameraPositionInfo;
        public clear(): void;
    }

    class LookAroundAnimation extends CameraAnimationBase implements ICameraAnimation {
        public headingRange: number;
        constructor(camera: Camera, headingRange: number, totalMs?: number);
        public isActive: boolean;
        public readonly nextPosition: CameraPositionInfo;
        public clear(): void;
    }

    class Math2Impl implements IMath2 {
        public Angle(x1: number, y1: number, x2: number, y2: number): number;
        public Area(points: Vector2[]): number;
        public Buffer(points: Vector2[], radius: number, isRoundJoin: boolean, isRoundEnd: boolean, isClosed: boolean): Vector2[];
        public BufferPoint(center: Vector2, radius: number): Vector2[];
        public Distance(x1: number, y1: number, x2: number, y2: number): number;
        public DistancePoint(pt1: Vector2, pt2: Vector2): number;
        public DistancePointLine(pt: Vector2, linePoints: Vector2[]): number;
        public Length(points: Vector2[]): number;
    }

    class Math3Impl implements IMath3 {
        public Area(triPoints: Vector3[]): number;
        public Distance(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number): number;
        public DistanceLineLine(points1: Vector3[], points2: Vector3[]): number;
        public DistanceLineLineAdvance(points1: Vector3[], points2: Vector3[], resultLinePoints: RefValue<Array<Vector3>>): number;
        public DistancePoint(pt1: Vector3, pt2: Vector3): number;
        public DistancePointLine(point: Vector3, points: Vector3[]): number;
        public DistancePointLineAdvance(point: Vector3, points: Vector3[], resultPoint: Vector3): number;
        public Length(points: Vector3[]): number;
    }

    class CoordSystemBase {
        constructor(worldCamera: WorldCamera);
        public calcProjectMatrixToRef(result: Matrix): void;
        public earthToLocal(originCenter: Vector3, earthPoint: Vector3): Vector3;
        public earthToLocalArray(originCenter: Vector3, earthPoints: Vector3[]): Vector3[];
        public earthToLocalToRef(originCenter: Vector3, earthPoint: Vector3, result: Vector3): void;
        public localToEarth(originCenter: Vector3, localPoint: Vector3): Vector3;
        public localToEarthArray(originCenter: Vector3, localPoints: Vector3[]): Vector3[];
        public localToEarthToRef(originCenter: Vector3, localPoint: Vector3, result: Vector3): void;
        public screenToWorld(pt: Vector2, depth: number): Vector3;
        public screenToWorldLine(pt: Vector2): Vector3[];
        public screenToWorldToRef(pt: Vector2, depth: number, result: Vector3): void;
        public transformLightDirection(position: Vector3, lightDirection: Vector3): Vector3;
        public transformLightDirectionToRef(position: Vector3, lightDirection: Vector3, result: Vector3): void;
        public worldToScreen(pt: Vector3): Vector2;
        public worldToScreen3(pt: Vector3): Vector3;
        public worldToScreen3ToRef(pt: Vector3, result: Vector3): void;
        public worldToScreenToRef(pt: Vector3, result: Vector2): void;
    }

    class EarthCoordSystem extends CoordSystemBase implements ICoordSystem3 {
        constructor(worldCamera: WorldCamera);
        public readonly math2: IMath2;
        public readonly math3: IMath3;
        public calcRotationMatrix(position: Vector3): Matrix;
        public calcUpVector(pos: Vector3): Vector3;
        public earthToLocalToRef(originCenter: Vector3, earthPoint: Vector3, result: Vector3): void;
        public earthToMeter(earthDegree: number, latitude?: number): number;
        public earthToWorld(point: Vector3): Vector3;
        public earthToWorldArray(points: Vector3[]): Vector3[];
        public earthToWorldToRef(point: Vector3, result: Vector3): void;
        public localToEarthToRef(originCenter: Vector3, localPoint: Vector3, result: Vector3): void;
        public meterToEarth(meter: number, latitude?: number): number;
        public transformLightDirectionToRef(position: Vector3, lightDirection: Vector3, result: Vector3): void;
        public worldToEarth(point: Vector3): Vector3;
        public worldToEarthArray(points: Vector3[]): Vector3[];
        public worldToEarthToRef(point: Vector3, result: Vector3): void;
    }

    class NonEarthCoordSystem extends CoordSystemBase implements ICoordSystem3 {
        constructor(worldCamera: WorldCamera);
        public readonly math2: IMath2;
        public readonly math3: IMath3;
        public calcRotationMatrix(position: Vector3): Matrix;
        public calcUpVector(pos: Vector3): Vector3;
        public earthToLocalToRef(originCenter: Vector3, earthPoint: Vector3, result: Vector3): void;
        public earthToMeter(global: number): number;
        public earthToWorld(mapPt: Vector3): Vector3;
        public earthToWorldArray(points: Vector3[]): Vector3[];
        public earthToWorldToRef(mapPt: Vector3, reslt: Vector3): void;
        public localToEarthToRef(originCenter: Vector3, localPoint: Vector3, result: Vector3): void;
        public meterToEarth(meter: number): number;
        public worldToEarth(devicePt: Vector3): Vector3;
        public worldToEarthArray(points: Vector3[]): Vector3[];
        public worldToEarthToRef(devicePt: Vector3, result: Vector3): void;
    }

    /**
      * ScreenTransform 提供与屏幕坐标相关的一些变换帮助函数，通常用于交互编辑程序。由于透视变换中，物体像素大小随距离远近变化，所以三维与二维像素的比例
      * 关系都是特指某些三维点附近，几个像素范围的区域，距离较远就会有比较多的误差
      */
    class ScreenTransform {
        /**
          * 
          * @param renderContext 
          * @param planeV0 
          * @param planeV1 
          * @param planeV2 
          * @param screenPosition 
          * @returns 
         */
        public static CalcPositionOnPlane(renderContext: RenderContext3, planeV0: Vector3, planeV1: Vector3, planeV2: Vector3, screenPosition: Vector2): Vector3;
        /**
          * 
          * @param geoObject 
          * @returns 
         */
        public static CalcScreenBoundingRect(geoObject: GeoObject3): Rect;
        /**
          * 计算在earthPosition附近垂直方向上，屏幕纵坐标为screenPixelY的像素所对应的三维点坐标
          * @param renderContext 显示上下文
          * @param earthPosition 指定坐标
          * @param screenPixelY 屏幕像素纵坐标
          * @returns 
         */
        public static CalcVerticalPositionFromPoint(renderContext: RenderContext3, earthPosition: Vector3, screenPixelY: number): Vector3;
        /**
          * 计算在earthPosition附近水平方向每米距离对应的像素单位
          * @param renderContext 显示上下文
          * @param earthPosition 指定坐标
          * @returns 
         */
        public static MeterToHorizontalScreenPixel(renderContext: RenderContext3, earthPosition: Vector3): number;
    }

    /**
      * CameraPositionInfo 相机视角定义参数。目前相机没有使用roll参数
      */
    class CameraPositionInfo {
        /**
          * CameraPositionInfo 相机视角定义参数，角度单位都是度
          * @param centerX 中心点X坐标
          * @param eyeDistance 视点到中心点距离
          * @param centerZ 中心点Z坐标
          * @param heading 水平方向角
          * @param pitch 俯仰角
         */
        constructor(centerX: number, eyeDistance: number, centerZ: number, heading: number, pitch: number);
        /**
          * 中心点X坐标（经度）
         */
        public centerX: number;
        /**
          * 中心点Z坐标（纬度）
         */
        public centerZ: number;
        /**
          * 视点到中心点距离（米）
         */
        public eyeDistance: number;
        /**
          * 水平方向角（度）, 正北为0，正西90，正南 180， 正东270 或者 -90
         */
        public heading: number;
        /**
          * 俯仰角（度）， 俯视 -90， 平视 0
         */
        public pitch: number;
        /**
          * 
         */
        public clone(): CameraPositionInfo;
        /**
          * 
          * @param otherInfo 
          * @returns 
         */
        public equals(otherInfo: CameraPositionInfo): boolean;
    }

    /**
      * WalkSetting 行走模式的参数设置。使用w键，切换到行走模式，使用方向键控制行走时，会进行碰撞检测。
      * 缺省情况下，漫游、缩放等其他鼠标操作也能同时使用，不使用碰撞检测。
      * 行走的范围限于Bim图层或者倾斜摄影图层，对地形层无效
      */
    class WalkSetting {
        /**
          * 眼睛视点高度。缺省1.6米
         */
        public height: number;
        /**
          * 是否允许激发自动行走。长按向前方向键，会自动激发连续自动行走
         */
        public isAllowAutoWalk: boolean;
        /**
          * 是否启动行走模式
         */
        public isEnabled: boolean;
        /**
          * 是否只允许行走模式。如果设置为true，将禁止鼠标拖动和滚轮缩放，禁止切换到飞行模式。
         */
        public isWalkOnly: boolean;
        /**
          * 允许跳下的深度，缺省2米。通常是对垂直墙壁起作用
         */
        public jumpDepth: number;
        /**
          * 行走速度比例系数。当为1.0时，类似于普通5公里/小时的速度
         */
        public speed: number;
        /**
          * 加速比例系数。按住向前方向键时，加速前进，缺省4.0
         */
        public turboRatio: number;
    }

    /**
      * Camera 相机类，用于控制三维场景视角。
      */
    class Camera extends OperationBase {
        /**
          * 
         */
        public readonly earthViewer: EarthViewer;
        /**
          * 
          * @param renderContext 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 中心点基准高度。缺省为0，可以指定为特定高度
         */
        public baseCenterHeight: number;
        /**
          * 视点基准高度。如果指定，视点将不低于该高度
         */
        public baseEyeHeight: number;
        /**
          * 相机动画
         */
        public cameraAnimation: ICameraAnimation;
        /**
          * 视点到中心点距离
         */
        public eyeDistance: number;
        /**
          * 设置切换第一人称和第三人称的eyeDistance距离，缺省50米
         */
        public firstRoleDistance: number;
        /**
          * 水平方向角（度）
         */
        public heading: number;
        /**
          * 相机操作惯性系数(0-1.0)，缺省0.9。如果为0, 则无自动延迟滑动等效果
         */
        public inertia: number;
        /**
          * 是否使用鼠标右键点击即保持选择的功能，缺省true
         */
        public isAdvanceRotateMode: boolean;
        /**
          * 是否允许近距离观察时自动切换到第一人称操作模式，缺省true
         */
        public isAllowFirstRole: boolean;
        /**
          * 是否锁定中心
         */
        public isLockCenter: boolean;
        /**
          * 最大方向角
         */
        public maxHeading: number;
        /**
          * 最大俯仰角
         */
        public maxPitch: number;
        /**
          * 最小方向角（度）
         */
        public minHeading: number;
        /**
          * 最小俯仰角（+-90度）
         */
        public minPitch: number;
        /**
          * 俯仰角
         */
        public pitch: number;
        /**
          * 中心点
         */
        public readonly center: Vector3;
        /**
          * 坐标系统
         */
        public readonly coordSystem: ICoordSystem3;
        /**
          * 视点
         */
        public readonly eye: Vector3;
        /**
          * 是否在移动
         */
        public readonly isMoving: boolean;
        /**
          * 是否正在漫游操作
         */
        public readonly isPanStarted: boolean;
        /**
          * 
         */
        public readonly position: Vector3;
        /**
          * 绘制上下文
         */
        public readonly renderContext: RenderContext3;
        /**
          * 正上方向量
         */
        public readonly up: Vector3;
        /**
          * 世界坐标相机
         */
        public readonly worldCamera: IWorldCamera;
        /**
          * 世界坐标中心点
         */
        public readonly worldCenter: Vector3;
        /**
          * 世界坐标视点
         */
        public readonly worldEye: Vector3;
        /**
          * 相机基本移动速度乘数比例，缺省为1.0
         */
        public speedRatio: number;
        /**
          * 控制行走模式的设置
         */
        public walk: WalkSetting;
        /**
          * 
         */
        protected checkDefineParamsDirty(): boolean;
        /**
          * 
         */
        protected getCoordSystem(): ICoordSystem3;
        /**
          * 
          * @param eyeDistance 
          * @returns 
         */
        protected judgeIsFirstRole(eyeDistance: number): boolean;
        /**
          * 
         */
        protected updateCameraFromDefineParams(): void;
        /**
          * 
         */
        protected verifyHeadingAndPitch(): void;
        /**
          * 
          * @param point 
          * @param height 
          * @returns 
         */
        protected verifyHeightByLimit(point: Vector2, height: number): number;
        /**
          * 
          * @param point 
          * @returns 
         */
        protected verifyPositionByLimit(point: Vector2): Vector2;
        /**
          * 
         */
        public clearNavigateRange(): void;
        /**
          * 沿路径飞行
          * @param points 路径点数组
          * @param totalMs 总体毫秒数
          * @param pitch 指定固定俯仰角，如不指定则朝向飞行方向
          * @returns 飞行结束时返回Promise
         */
        public flyRoute(points: Vector3[], totalMs: number, pitch?: number): Promise<Camera>;
        /**
          * 飞行到目标点或者范围，相机控制参数与setView相同
          * @param target 为Vector3时，x,y,z 分别是目标经度，中心点距离，目标纬度；Vector2时，xy是目标经度、纬度，使用当前eyeDistance；Rect时，缩放到目标矩形范围
          * @param heading 水平方向角，单位度，正北为0，顺时针为正
          * @param pitch 垂直方向角，单位度，垂直向下为-90
          * @param baseCenterHeight 中心点基准高度，通常是地形的高度。如果不指定有效值(0,null,undefine)，会自动计算
          * @param totalMs 总体毫秒数
          * @param delayMs 延迟执行毫秒数
          * @returns 飞行结束时返回Promise
         */
        public flyTo(target: Vector3 | Vector2 | Rect, heading?: number, pitch?: number, baseCenterHeight?: number, totalMs?: number, delayMs?: number): Promise<Camera>;
        /**
          * 是否有飞行动画
         */
        public hasActiveAnimation(): boolean;
        /**
          * 设置视口信息，系统内部调用。
          * @param viewportRect 
          * @param fovRadian 
          * @param nearPlane 
          * @param farPlane 
         */
        public initViewport(viewportRect: Rect, fovRadian: number, nearPlane: number, farPlane: number): void;
        /**
          * 相机在当前视点连续旋转水平视角观察
          * @param headingRange 旋转角度，正北为0，逆时针为正，缺省-360度，即顺时针一周
          * @param totalMs 旋转的时间，缺省12秒
          * @returns 
         */
        public lookAround(headingRange?: number, totalMs?: number): Promise<Camera>;
        /**
          * 使用视点，中心点，向上向量直接定义相机位置，坐标为地球坐标系。此函数一般用在比较高级的用户自定义相机操作。
          * @param eye 
          * @param center 
          * @param up 
         */
        public lookAt(eye: Vector3, center: Vector3, up?: Vector3): void;
        /**
          * 设置视点漫游的范围，如果设置此值，相机的移动被限制在此范围内
          * @param center 中心点，经纬度
          * @param radius 活动半径，米
         */
        public setNavigateRange(center: Vector3, radius: number): void;
        /**
          * 使用中心点或者范围以及附加参数，设定相机视角
          * @param target 为Vector3时，x,y,z 分别是目标经度，中心点距离，目标纬度；Vector2时，xy是目标经度、纬度，使用当前eyeDistance；Rect时，缩放到目标矩形范围
          * @param heading 水平方向角，单位度，正北为0，顺时针为正
          * @param pitch 垂直方向角，单位度，垂直向下为-90
          * @param baseCenterHeight 中心点基准高度，通常是地形的高度。如果不指定，会自动计算
         */
        public setView(target: Vector3 | Vector2 | Rect, heading?: number, pitch?: number, baseCenterHeight?: number): void;
        /**
          * 强制停止相机动画
         */
        public stopAnimation(): void;
        /**
          * 缩放到图层范围的视野
          * @param layer 目标图层
          * @returns Promise
         */
        public zoomToLayer(layer: Layer3): Promise<Camera>;
    }

    class CentricCameraBase extends Camera {
        public earthViewer: EarthViewer;
        constructor(earthViewer: EarthViewer);
        protected readonly isNeedInitParam: boolean;
        public readonly isMoving: boolean;
        protected adjustEyePos(): boolean;
        protected canUpdateCenterHeight(): boolean;
        protected checkDefineParamsDirty(): boolean;
        protected checkMoveInertiaStop(): boolean;
        protected hasPosDelta(): boolean;
        protected onSetViewBaseCenterHeight(baseCenterHeight?: number): void;
        protected prepareLookAtParam(): void;
        protected setIsNeedInitParamDirty(): void;
        protected updateCameraCenterHeight(): void;
        protected updateCameraFromDefineParams(): void;
        public calcSurfaceHitPoint(worldPt1: Vector3, worldPt2: Vector3, height: number, resultWorldPoint: Vector3): boolean;
        protected static CalcLocalFirstRoleLookAtParamToRef(eyePosition: Vector3, eyeDistance: number, heading: number, pitch: number,
            resultWorldCenter: Vector3): void;
    }

    class CentricCamera extends CentricCameraBase {
        constructor(earthViewer: EarthViewer);
        public readonly isPanStarted: boolean;
        protected checkDefineParamsDirty(): boolean;
        protected onKeyDown(keyParam: OperKeyMessage): boolean;
        protected onKeyUp(keyParam: OperKeyMessage): boolean;
        protected onLeftButtonDown(mouseMessage: OperMouseMessage): boolean;
        protected onLeftButtonUp(mouseMessage: OperMouseMessage): boolean;
        protected onMouseMove(mouseMessage: OperMouseMessage): boolean;
        protected onMouseWheel(mouseMessage: OperMouseMessage): boolean;
        protected onRightButtonDown(mouseMessage: OperMouseMessage): boolean;
        protected onRightButtonUp(mouseMessage: OperMouseMessage): boolean;
    }

    class EarthCentricCamera extends CentricCamera {
        constructor(earthViewer: EarthViewer);
        protected canUpdateCenterHeight(): boolean;
        protected checkMoveInertiaStop(): boolean;
        protected getCoordSystem(): ICoordSystem3;
        protected prepareLookAtParam(): void;
        protected updateCameraFromDefineParams(): void;
        public calcSurfaceHitPoint(worldPt1: Vector3, worldPt2: Vector3, height: number, resultWorldPoint: Vector3): boolean;
        public lookAt(eye: Vector3, center: Vector3, up?: Vector3): void;
    }

    class NonEarthCentricCamera extends CentricCamera {
        constructor(earthViewer: EarthViewer);
        protected getCoordSystem(): ICoordSystem3;
        protected prepareLookAtParam(): void;
        public calcSurfaceHitPoint(worldPt1: Vector3, worldPt2: Vector3, height: number, resultWorldPoint: Vector3): boolean;
    }

    class RichTextObject {
        protected updateLayoutBounds(anno: string, annoStyle: AnnoStyle): void;
        protected updateScaldedParams(annoStyle: AnnoStyle): void;
        public dispose(): void;
        public getCanvasSize(): Size;
        public update(graphics: Graphics3, anno: string, annoStyle: AnnoStyle): boolean;
        public updateMultiple(graphics: Graphics3, anno: string, annoStyle: AnnoStyle): ITexture[];
    }

    /**
      * RichTextProperty 
      */
    class RichTextProperty extends AnnoStyle {
    }

    class RichTextLayoutInfo {
        canvasBounds: Rect;
        textBounds: Rect;
        textOrg: Vector2;
    }

    class RichTextRenderHelper {
        public static GetCanvas(): HTMLCanvasElement;
        public static GetRenderGraphics(property: RichTextProperty, info: RichTextLayoutInfo): CanvasGraphics;
        public static PrepareLayoutInfo(text: string, property: RichTextProperty, resultLayoutInfo: RichTextLayoutInfo, isScaleCanvas: boolean): void;
        public static Render(text: string, property: RichTextProperty, info: RichTextLayoutInfo, isAutoChooseHaloBackground: boolean): void;
    }

    class LineAnnoHelper {
        public static CalculateAnnoPositionAlongLine(pointsWorld: Vector3[], anno: string): Vector3[];
        public static CalculatePointPositionOnLine(points: Vector3[]): Vector3;
    }

    class PrimitivesFactory {
        public static CreateBox(size?: number): MeshVertexData;
        public static CreateCylinder(height?: number, diameterTop?: number, diameterBottom?: number, tessellation?: number, subdivisions?: number): MeshVertexData;
        public static CreateGround(width?: number, height?: number, subdivisions?: number): MeshVertexData;
        public static CreatePlane(size?: number): MeshVertexData;
        public static CreatePolyBox(topPoints: Vector3[], bottomPoints: Vector3[], hasTopCover: boolean, hasBottomCover: boolean, isReverseNormal?: boolean): MeshVertexData;
        public static CreatePolyBoxWithHole(polyPoints: Vector3[], minY: number, maxY: number, hasTopCover: boolean, hasBottomCover: boolean, holes: Vector3[][]): MeshVertexData;
        public static CreatePolygon(points: Vector3[], holes?: Vector3[][], isReverseNormal?: boolean): MeshVertexData;
        public static CreateRect(width: number, height: number, u1: number, v1: number, u2: number, v2: number): MeshVertexData;
        public static CreateSphere(diameter?: number, segments?: number): MeshVertexData;
        public static CreateTeapot(size: number, tessellation: number): MeshVertexData;
        public static CreateTorus(diameter?: number, thickness?: number, tessellation?: number): MeshVertexData;
        public static CreateTorusKnot(radius?: number, tube?: number, radialSegments?: number, tubularSegments?: number, p?: number, q?: number): MeshVertexData;
        public static CreateWall(bottomCenterPoints: Vector3[], height: number, thickness: number, isRoundJoin?: boolean): MeshVertexData;
    }

    class BlockTextureInfo {
        public textureFile: string;
        public xCount: number;
        public xIndex: number;
        public yCount: number;
        public yIndex: number;
        public static CreateFromCopy(srcInfo: BlockTextureInfo): BlockTextureInfo;
    }

    class MeshMaterialDefine {
        public ambientColor: Color;
        public blockTextureInfos: BlockTextureInfo[];
        public diffuseColor: Color;
        public emissiveColor: Color;
        public name: string;
        public power: number;
        public specularColor: Color;
        public textureFile: string;
        public isTransparent(): boolean;
    }

    class MeshData_PositionData {
        constructor(vertexes: Array<Vector3>, normals: Array<Vector3>, textureCoords: Array<Vector2>);
        public normals: Array<Vector3>;
        public positions: Array<Vector3>;
        public uvs: Array<Vector2>;
        public static FromTextureVertexData(textureVertexes: Array<VertexPositionNormalTexture>, hasNormal: boolean): MeshData_PositionData;
    }

    class SubMeshData {
        constructor(mesh: MeshData, materialName?: string, startTriIndex?: number, triCount?: number);
        public bounds: Box;
        public diffuseColor: Color;
        public materialName: string;
        public mesh: MeshData;
        public startTriIndex: number;
        public triCount: number;
        public enumTriNos(): Array<number>;
        public getAllMeshPoints(): Array<Vector3>;
        public getBounds(): Box;
        public static CreateFromCopy(mesh: MeshData, src: SubMeshData): SubMeshData;
    }

    class MeshData {
        constructor(name: string);
        public bounds: Box;
        public materialName: string;
        public materials: CloneList<MeshMaterialDefine>;
        public name: string;
        public normals: CloneList<Vector3>;
        public packFile: string;
        public positions: CloneList<Vector3>;
        public subs: CloneList<SubMeshData>;
        public triangles: CloneList<Triangle3>;
        public uvs: CloneList<Vector2>;
        public calcRange(): Box;
        public calculateNormal(): void;
        public calculateSubMeshRange(): Array<Box>;
        public copyTriangleAndSubMeshes(srcMesh: MeshData): void;
        public enumTriNos(): Array<number>;
        public getAllMeshPoints(): Array<Vector3>;
        public getPositionData(): MeshData_PositionData;
        public prepareTextureVertexes(forceRecreate?: boolean): Array<VertexPositionNormalTexture>;
        public scaleMesh(scaleTo: number): boolean;
        public setPositionData(positionData: MeshData_PositionData): void;
        public static FromVertexData(vertexData: MeshVertexData): MeshData;
    }

    /**
      * MeshVertexData 描述Mesh的顶点数据结构
      */
    class MeshVertexData {
        /**
          * 坐标数组
         */
        public positions: Array<Vector3>;
        /**
          * 顶点索引数组
         */
        public indices: Array<number>;
        /**
          * 法向量数组
         */
        public normals: Array<Vector3>;
        /**
          * 纹理坐标数组
         */
        public uvs: Array<Vector2>;
        /**
          * 
          * @param positions 
          * @param indices 
          * @param normals 
          * @param uvs 
         */
        constructor(positions?: Array<Vector3>, indices?: Array<number>, normals?: Array<Vector3>, uvs?: Array<Vector2>);
        /**
          * 
         */
        public clone(): MeshVertexData;
        /**
          * 从Babylon顶点数据结构转换
          * @param byVertexData Babylon顶点数据结构
          * @returns MeshVertexData
         */
        public static FromBabylon(byVertexData: BABYLON.VertexData): MeshVertexData;
        /**
          * 
          * @param vertexData 
          * @param other 
         */
        public static Merge(vertexData: MeshVertexData, other: MeshVertexData): void;
        /**
          * 缩放数据
          * @param vertexData 顶点数据
          * @param scale xyz缩放比例
         */
        public static Scale(vertexData: MeshVertexData, scale: Vector3): void;
        /**
          * 使用矩形变换顶点数据的坐标
          * @param vertexData 顶点数据
          * @param matrix 变换矩阵
         */
        public static Transform(vertexData: MeshVertexData, matrix: Matrix): void;
    }

    class PipelineMeshFactory {
        public static CreatePipeMesh(centerLinePoints: Vector3[], shape2: Vector2[], isRoundTurn?: boolean, beginNeighbour?: Vector3, endNeighbour?: Vector3): MeshVertexData;
    }

    interface IFixedMeshMaterial {
        diffuseColor: Color;
        graphics: Graphics3;
        isTransparent: boolean;
        isUseTexture: boolean;
        getLodTexture(lod: number): ITexture;
        loadTexture(lod: number): void;
    }

    interface IFixedMeshMaterialSet {
        count: number;
        addMaterial(name: string, material: IFixedMeshMaterial): void;
        getMaterial(name: string): IFixedMeshMaterial;
    }

    class FixedSubMesh {
        public indexStart: number;
        public indexCount: number;
        public material: IFixedMeshMaterial;
        public bounds: Box;
        constructor(indexStart: number, indexCount: number, material: IFixedMeshMaterial, bounds: Box);
        public boundingSphere: BoundingSphere;
        public radius: number;
        public textureLod: number;
        public toChunk(geoObject: GeoObject3, elemetnBuffer: ElementBuffer, highlightColor: Color, isSharedUse: boolean);
    }

    class FixedMesh {
        public readonly lod: number;
        constructor(graphics: Graphics3, lod: number, meshData: FixedMeshData, subMeshes: FixedSubMesh[], isForPick: boolean);
        public bounds: Box;
        public readonly elementBuffer: ElementBuffer;
        public readonly meshPoints: Vector3Array;
        public readonly subMeshes: FixedSubMesh[];
        public triCount: number;
        public clampLine(surfacePt1: Vector3, surfacePt2: Vector3, upVector?: Vector3): Vector3[];
        public clampPolgyon(localPoints: Vector3[]): Vector3[];
        public dispose(): void;
        public enumRenderChunks(world: Matrix, clipCenter: Vector3, clipRadius: number, result: ElementChunk[]): void;
        public initTextureLod(meshLod: number): void;
        public intersects(ray: Ray, isSub: RefValue<boolean>): Vector3;
        public loadMaterial(meshLod: number): void;
        public prepareSubMeshChunk(geoObject: GeoObject3, isSharedUse: boolean, highlightColor: Color, clipRadius?: number): Array<MeshChunk>;
        public updateTextureLod(eyeLocal: Vector3, meshLod: number, lodDistanceRatio: number): void;
    }

    class SubFixedMeshData {
        constructor(subData?: SubMeshData);
        public bounds: Box;
        public diffuseColor: Color;
        public indexCount: number;
        public indexStart: number;
        public materialName: string;
        public getBounds(): Box;
        public toSubMeshData(meshData: MeshData): SubMeshData;
    }

    class FixedMeshData {
        public bounds: Box;
        public materials: MeshMaterialDefine[];
        public name: string;
        public normals: Vector3Array;
        public subDatas: SubFixedMeshData[];
        public textureCoords: Vector2Array;
        public triangles: Triangle3Array;
        public vertexes: Vector3Array;
        public scaleMesh(scaleTo: number): boolean;
        public toMeshData(): MeshData;
        public static FromMeshData(meshData: MeshData): FixedMeshData;
        public static FromMeshDataArray(mesheDatas: Array<MeshData>): Array<FixedMeshData>;
        public static FromSubMesheDatas(subMeshes: Array<SubMeshData>): SubFixedMeshData[];
        public static ToSubMeshDatas(fixedSubMeshes: SubFixedMeshData[], mesh: MeshData): Array<SubMeshData>;
    }

    interface IWideLineObject {
        lineProperty: WideLineProperty;
        material: IMaterial;
        width: number;
    }

    /**
      * WideLineProperty 宽线属性设置对象，用于设置宽线的各种特效显示，包括动画效果。宽度值都是像素单位。长度和位移使用相对总长的百分比。
      */
    class WideLineProperty extends LineStyle {
        /**
          * 
         */
        public clone(): WideLineProperty;
    }

    /**
      * Transform3 三维对象的局部坐标变换对象。可以用多种方式定义坐标平移、旋转、缩放。
      */
    class Transform3 {
        /**
          * 水平方向角（度）
         */
        public heading: number;
        /**
          * 变换矩阵
         */
        public matrix: Matrix;
        /**
          * 发生修改消息
         */
        public onUpdate: Observable<void>;
        /**
          * 俯仰角（度）
         */
        public pitch: number;
        /**
          * 四元数
         */
        public quaternion: Quaternion;
        /**
          * 滚转角（度）
         */
        public roll: number;
        /**
          * x方向缩放系数
         */
        public xScale: number;
        /**
          * y方向缩放系数
         */
        public yScale: number;
        /**
          * z方向缩放系数
         */
        public zScale: number;
        /**
          * 重置
         */
        public reset();
        /**
          * 设置为从fromVector到toVector的旋转变换矩阵
          * @param fromVector 
          * @param toVector 
         */
        public rotateBetweenVectors(fromVector: Vector3, toVector: Vector3): void;
        /**
          * 设置三个参数缩放系数，未提供数值的，保持不变
          * @param xScale x方向缩放系数
          * @param yScale y方向缩放系数
          * @param zScale z方向缩放系数
         */
        public scale(xScale: number, yScale?: number, zScale?: number): void;
    }

    class Object3 extends PickableObject {
        public readonly localTransform: Transform3;
        public readonly onAfterRender: Observable<Object3>;
        public readonly onBeforeRender: Observable<Object3>;
        public readonly worldMatrix: Matrix;
        protected calcSelfOnlyRenderMatrix(): Matrix;
        protected notifyOnAfterRender(): void;
        protected notifyOnBeforeRender(): void;
        protected onWorldMatrixUpdated(): void;
        protected setGlobalWorldMatrix(globalWorld: Matrix): void;
        public localToWorld(pt: Vector3): Vector3;
        public localToWorldToRef(pt: Vector3, result: Vector3): void;
        public worldToLocal(pt: Vector3): Vector3;
        public worldToLocalToRef(pt: Vector3, result: Vector3): void;
    }

    class GeoBoundingClip {
        public initFromCenter(center: Vector3, radius: number): void;
        public isObjectVisible(renderContext: RenderContext3, useFrustumOnly?: boolean): boolean;
        public static IsDistanceWeightVisible(renderContext: RenderContext3, objectCenterPt: Vector3, objectRadius: number): boolean;
    }

    interface IVisibleDistanceLike {
        maxVisibleDistance: number;
        minVisibleDistance: number;
        minVisibleEyeHeight: number;
    }

    /**
      * GeoObject3 空间三维可视对象的基类。有代表各种形状的派生类，一般都是通过ShapeLayer的add方法添加，不直接使用构造函数。
      */
    class GeoObject3 extends Object3 implements IAsyncRenderable, IRenderChunkProvider {
        /**
          * 
          * @param renderContext 
          * @param geometry 
         */
        constructor(renderContext: RenderContext3, geometry: Geometry);
        /**
          * 标注
         */
        public anno: string;
        /**
          * 标注的水平对齐位置
         */
        public annoHorizontalAlignment: HorizontalAlignment;
        /**
          * 标注的垂直对齐位置
         */
        public annoVerticalAlignment: VerticalAlignment;
        /**
          * 材质的颜色。等同于material.color
         */
        public color: Color;
        /**
          * 标注颜色
         */
        public fontColor: Color;
        /**
          * 标注字体大小
         */
        public fontSize: number;
        /**
          * 空间对象
         */
        public geometry: Geometry;
        /**
          * 相对地面高度。在isClampToGround为true时使用
         */
        public groundHeight: number;
        /**
          * 对象水平对齐位置。一般用于Image对象
         */
        public horizontalAlignment: HorizontalAlignment;
        /**
          * 
         */
        public isAnimation: boolean;
        /**
          * 是否忽略DepthBuffer的裁剪
         */
        public isAnnoIgnoreDepthBuffer: boolean;
        /**
          * 标注是否可见
         */
        public isAnnoVisible: boolean;
        /**
          * 是否为自动贴地对象
         */
        public isClampToGround: boolean;
        /**
          * 快速贴地模式，高性能绘制。可能影响正上方附近物体显示颜色
         */
        public isFastClamp: boolean;
        /**
          * 对象是否可见
         */
        public isVisible: boolean;
        /**
          * 所属图层
         */
        public layer: Layer3;
        /**
          * LOD的距离系数，缺省为1.0，值越大在更远处变清晰
         */
        public lodDistanceRatio: number;
        /**
          * 显示材质
         */
        public material: IMaterial;
        /**
          * 标注最远可见距离
         */
        public maxAnnoVisibleDistance: number;
        /**
          * 对象最远可见距离
         */
        public maxVisibleDistance: number;
        /**
          * 标注最近可见距离
         */
        public minAnnoVisibleDistance: number;
        /**
          * 对象最近可见距离
         */
        public minVisibleDistance: number;
        /**
          * 
         */
        public minVisibleEyeHeight: number;
        /**
          * 名称
         */
        public name: string;
        /**
          * 空间属性改变之后发出消息。这通常用于连续移动物体
         */
        public onAfterUpdateGeometry: Observable<GeoObject3>;
        /**
          * 对象像素偏移距离。通常用于Image对象
         */
        public pixelOffset: Vector2;
        /**
          * 对象的空间点数组
         */
        public points: Vector3[];
        /**
          * 空间位置
         */
        public position: Vector3;
        /**
          * 标注的高级显示设置
         */
        public readonly annoProperty: IAnnoStyle;
        /**
          * 标注的样式
         */
        public readonly annoStyle: IAnnoStyle;
        /**
          * 包围盒
         */
        public readonly bounds: Box;
        /**
          * 
         */
        public readonly isDataLoaded: boolean;
        /**
          * 
         */
        public readonly isReadyForDraw: boolean;
        /**
          * 图层名称
         */
        public readonly layerName: string;
        /**
          * 局部坐标表示的包围矩形
         */
        public readonly localBounds: Box;
        /**
          * 世界坐标位置
         */
        public readonly positionWorld: Vector3;
        /**
          * 显示上下文
         */
        public readonly renderContext: RenderContext3;
        /**
          * 世界坐标包围盒
         */
        public readonly worldBounds: Box;
        /**
          * 附属属性，用于临时存储信息
         */
        public tag: any;
        /**
          * 对象垂直对齐方式
         */
        public verticalAlignment: VerticalAlignment;
        /**
          * 
         */
        protected checkAnnoVisible(): boolean;
        /**
          * 
         */
        protected getAnnoLocalBounds(): Box;
        /**
          * 
         */
        protected getAnnoPosition(): Vector3;
        /**
          * 
         */
        protected getAnnoScreenBounds(): Rect;
        /**
          * 
          * @param center 
          * @param radius 
         */
        protected initBoundingClip(center: Vector3, radius: number): void;
        /**
          * 
          * @param geoType 
         */
        protected onUpdateDefineSpatialData(geoType: GeoType): void;
        /**
          * 
          * @param cameraCenter 
          * @param objectOrgPt 
          * @param useLocalWorldMatrix 
          * @returns 
         */
        protected prepareBindingWorldClone(cameraCenter: Vector3, objectOrgPt: Vector3, useLocalWorldMatrix?: boolean): Matrix;
        /**
          * 
          * @param cameraCenter 
          * @param objectOrgPt 
          * @param useLocalWorldMatrix 
         */
        protected prepareBindingWorldInPlace(cameraCenter: Vector3, objectOrgPt: Vector3, useLocalWorldMatrix?: boolean): void;
        /**
          * 
         */
        protected updateBoundsFromLocalBounds(localBounds?: Box): void;
        /**
          * 
          * @param worldPoints 
         */
        protected updateBoundsFromWorld(worldPoints: Array<Vector3>): void;
        /**
          * 
         */
        public buildIndex(): boolean;
        /**
          * 检查对象是否可见
          * @param distanceToEye 
          * @returns 
         */
        public checkObjectVisible(distanceToEye?: number): boolean;
        /**
          * 
          * @param pt1 
          * @param pt2 
          * @returns 
         */
        public clampLine(pt1: Vector3, pt2: Vector3): Vector3[];
        /**
          * 
          * @param worldPoints 
          * @returns 
         */
        public clampPolygon(worldPoints: Vector3[]): Vector3[];
        /**
          * 销毁对象
         */
        public dispose(): void;
        /**
          * 
         */
        public drawAnno(): boolean;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 地球坐标系转为对象局部坐标系
          * @param point 地球坐标
          * @returns 局部坐标
         */
        public earthToLocal(point: Vector3): Vector3;
        /**
          * 点数组从地球坐标系转为对象局部坐标系
          * @param points 
          * @returns 局部坐标点数组
         */
        public earthToLocalPoints(points: Vector3[]): Vector3[];
        /**
          * 
          * @param points 
         */
        public earthToLocalPointsInPlace(points: Array<Vector3>): void;
        /**
          * 
          * @param rect 
          * @returns 
         */
        public earthToLocalRect(rect: Rect): Rect;
        /**
          * 
          * @param point 
          * @param result 
         */
        public earthToLocalToRef(point: Vector3, result: Vector3): void;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
        /**
          * 
         */
        public initFirstForDraw(): void;
        /**
          * 
          * @param box 
          * @returns 
         */
        public intersectBox(box: Box): boolean;
        /**
          * 
          * @param renderContext 
          * @param pt1 
          * @param pt2 
          * @param ptResult 
          * @returns 
         */
        public intersectRay(renderContext: RenderContext3, pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
        /**
          * 从对象局部坐标系转为地球坐标系
          * @param point 局部坐标
          * @returns 地球坐标
         */
        public localToEarth(point: Vector3): Vector3;
        /**
          * 点数组从对象局部坐标系转为地球坐标系
          * @param points
          * @returns 
         */
        public localToEarthPoints(points: Vector3[]): Vector3[];
        /**
          * 
          * @param points 
         */
        public localToEarthPointsInPlace(points: Array<Vector3>): void;
        /**
          * 
          * @param rect 
          * @returns 
         */
        public localToEarthRect(rect: Rect): Rect;
        /**
          * 
          * @param point 
          * @param result 
         */
        public localToEarthToRef(point: Vector3, result: Vector3): void;
        /**
          * 
          * @param point
          * @returns 世界坐标
         */
        public localToWorld(point: Vector3): Vector3;
        /**
          * 
          * @param points
          * @returns 世界坐标点数组
         */
        public localToWorldPoints(points: Array<Vector3>): Array<Vector3>;
        /**
          * 
          * @param points 
         */
        public localToWorldPointsInPlace(points: Array<Vector3>): void;
        /**
          * 
          * @param point
          * @param result 
         */
        public localToWorldToRef(point: Vector3, result: Vector3): void;
        /**
          * 内部使用
          * @param selfPositionWorld 
          * @param selfLocalMatrix 
         */
        public prepareParamsWhenDetachFromFather(selfPositionWorld: Vector3, selfLocalMatrix: Matrix): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public recycle(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param param 
         */
        public registerDataTask(param: AsyncRenderableParam): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public updateContents(param: AsyncRenderableParam): boolean;
        /**
          * 用户自定义的对象可见性判断函数，用于复杂的对象可见性控制
         */
        public visibleFunc: () => boolean;
        /**
          * 
          * @param point
          * @returns 
         */
        public worldToLocal(point: Vector3): Vector3;
        /**
          * 
          * @param points 
          * @returns 
         */
        public worldToLocalPoints(points: Vector3[]): Vector3[];
        /**
          * 
          * @param points 
         */
        public worldToLocalPointsInPlace(points: Array<Vector3>): void;
        /**
          * 
          * @param point
          * @param result 
         */
        public worldToLocalToRef(point: Vector3, result: Vector3): void;
    }

    /**
      * PointGeoObject 点状空间对象祖先类
      */
    class PointGeoObject extends GeoObject3 {
        /**
          * 
          * @param renderContext 
          * @param position 
         */
        constructor(renderContext: RenderContext3, position: Vector3);
        /**
          * 
          * @param geoType 
         */
        protected onUpdateDefineSpatialData(geoType: GeoType): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public updateContents(param: AsyncRenderableParam): boolean;
    }

    /**
      * AnnoGeoObject 标注对象
      */
    class AnnoGeoObject extends PointGeoObject {
        /**
          * 
          * @param renderContext 
          * @param position 
          * @param anno 
         */
        constructor(renderContext: RenderContext3, position: Vector3, anno: string);
    }

    /**
      * ImageGeoObject 图片对象，经常用于显示带图标的标注。
      */
    class ImageGeoObject extends PointGeoObject {
        /**
          * 
          * @param renderContext 
          * @param center 
          * @param bitmapOrUrl
          * @param displaySize
         */
        constructor(renderContext: RenderContext3, center: Vector3, urlOrBitmap: string | WriteableBitmap, displaySize?: Vector2);
        /**
          * 设置选中时自动变大的倍数
         */
        public focusEnlargeRatio: number;
        /**
          * 
         */
        public readonly localBounds: Box;
        /**
          * 
         */
        protected getAnnoScreenBounds(): Rect;
        /**
          * 更换关联显示的图片
          * @param urlOrBitmap
          * @param displaySize
         */
        public attachImage(urlOrBitmap: string | WriteableBitmap, displaySize?: Vector2): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param renderContext 
          * @param pt1 
          * @param pt2 
          * @param ptResult 
          * @returns 
         */
        public intersectRay(renderContext: RenderContext3, pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
        /**
          * 
          * @param param 
         */
        public registerDataTask(param: AsyncRenderableParam): void;
    }

    /**
      * LineGeoObject 三维折线对象
      */
    class LineGeoObject extends GeoObject3 {
        /**
          * 
          * @param renderContext 
          * @param points 
         */
        constructor(renderContext: RenderContext3, points: Vector3[]);
        /**
          * 
         */
        public readonly lineProperty: WideLineProperty;
        /**
          * 
         */
        public width: number;
        /**
          * 
          * @param renderContext 
          * @returns 
         */
        protected getEyeDistanceToLine(renderContext: RenderContext3): number;
        /**
          * 
         */
        protected getWorldPointsForRender(): Vector3[];
        /**
          * 
         */
        protected isToReverseRenderText(): boolean;
        /**
          * 
          * @param geoType 
         */
        protected onUpdateDefineSpatialData(geoType: GeoType): void;
        /**
          * 
          * @param worldPoints 
         */
        protected onUpdateRenderSpatialData(worldPoints: Array<Vector3>): void;
        /**
          * 
          * @param earthPoints 
          * @param heightInc 
          * @returns 
         */
        protected prepareAnnoWorldPoints(earthPoints: Vector3[], heightInc: number): Vector3[];
        /**
          * 
         */
        protected prepareGroundHeight(): boolean;
        /**
          * 
         */
        public dispose(): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param param 
          * @returns 
         */
        public updateContents(param: AsyncRenderableParam): boolean;
    }

    /**
      * WallGeoObject 三维墙体对象
      */
    class WallGeoObject extends LineGeoObject {
        /**
          * 
          * @param renderContext 
          * @param centerPoints
          * @param height
          * @param thickness
          * @param isRoundTurn
         */
        constructor(renderContext: RenderContext3, centerPoints: Vector3[], height: number, thickness: number, isRoundTurn?: boolean);
        /**
          * 
          * @param worldPoints 
         */
        protected onUpdateRenderSpatialData(worldPoints: Array<Vector3>): void;
        /**
          * 
         */
        public dispose(): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
        /**
          * 
          * @param renderContext 
          * @param pt1 
          * @param pt2 
          * @param ptResult 
          * @returns 
         */
        public intersectRay(renderContext: RenderContext3, pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
        /**
          * 
          * @param param 
         */
        public registerDataTask(param: AsyncRenderableParam): void;
    }

    class ArrowGeoObject extends LineGeoObject {
        constructor(renderContext: RenderContext3, points: Vector3[], headWidth: number, tailWidth: number, headThickness?: number, tailThickness?: number);
        protected onUpdateDefineSpatialData(geoType: GeoType): void;
        protected onUpdateRenderSpatialData(worldPoints: Array<Vector3>): void;
        public dispose(): void;
        public drawContents(param: AsyncRenderableParam): boolean;
        public enumRenderChunks(result: ElementChunk[]): void;
        public intersectRay(renderContext: RenderContext3, pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
        public registerDataTask(param: AsyncRenderableParam): void;
    }

    class GroupWideLineGeoObject extends GeoObject3 implements IWideLineObject {
        public width: number;
        constructor(renderContext: RenderContext3, pointsArray: Array<Vector3[]>, width: number);
        lineProperty: WideLineProperty;
        public drawContents(param: AsyncRenderableParam): boolean;
    }

    /**
      * MeshGeoObject 三角网对象，使用地球坐标来定义Mesh，没有基准点概念，与MeshGeoObject不同。
      */
    class MeshGeoObject extends PointGeoObject {
        /**
          * 
          * @param renderContext 
          * @param position
          * @param localVertexData
         */
        constructor(renderContext: RenderContext3, position: Vector3, localVertexData: MeshVertexData);
        /**
          * 获取或者设置定义Mesh对象的顶点数据，可以用于修改该对象：
          * <br>var vertexData = obj.vertexData;
          * <br>修改vertexData
          * <br>obj.vertexData = vertexData;
         */
        public vertexData: MeshVertexData;
        /**
          * 
         */
        public buildIndex(): boolean;
        /**
          * 
         */
        public dispose(): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
        /**
          * 
          * @param renderContext 
          * @param pt1 
          * @param pt2 
          * @param ptResult 
          * @returns 
         */
        public intersectRay(renderContext: RenderContext3, pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
    }

    /**
      * PolyBoxGeoObject 多边形柱体对象
      */
    class PolyBoxGeoObject extends MeshGeoObject {
        /**
          * 最大高度。设置该值时，可以动态改变对象
         */
        public maxY: number;
        /**
          * 最小高度。设置该值时，可以动态改变对象
         */
        public minY: number;
        /**
          * 多边形形状。设置该值时，可以动态改变对象
         */
        public points: Vector3[];
        /**
          * 创建PolyBoxGeoObject对象
          * @param renderContext 显示上下文
          * @param position 基准地球坐标位置。
          * @param points 基准坐标为空时，表示地球坐标数组，否则为相对基准坐标的局部坐标数组，
          * @param minY 绝对最小值
          * @param maxY 绝对最大值
          * @param hasTopCover 是否有顶盖
          * @param hasBottomCover 是否有底盖
          * @param holes 洞坐标，可以为多个。 坐标含义同points
          * @returns 
         */
        public static Create(renderContext: RenderContext3, position: Vector3, points: Vector3[], minY: number, maxY: number, hasTopCover?: boolean, hasBottomCover?: boolean, holes?: Vector3[][]);
    }

    enum ModelObjectType {
        None,
        Terrain,
        Building
    }

    class LodMeshInstance {
        constructor(graphics: Graphics3, url: string);
        public readonly boundingInfo: BoundingInfo;
        public readonly centerPositionWorld: Vector3;
        public readonly isDataLoaded: boolean;
        public readonly isReadyForDraw: boolean;
        public readonly meshPoints: Vector3Array;
        public scaleRatio: number;
        public getLodMeshes(lod: number): Array<FixedMesh>;
        public intersects(ray: Ray): Vector3;
        public registerDataTask(param: AsyncRenderableParam): void;
        public setCenterPositionWorld(centerWorld: Vector3): void;
    }

    class ModelGeoObjectBase extends PointGeoObject {
        constructor(renderContext: RenderContext3, position: Vector3, url: string);
        public lod: number;
        public readonly url: string;
        protected onUpdateDefineSpatialData(geoType: GeoType): void;
        protected onUpdateLodParam(): void;
        protected prepareParam(param: AsyncRenderableParam): AsyncRenderableParam;
        public enumRenderChunks(result: ElementChunk[]): void;
        public getLodMeshes(lod: number): Array<FixedMesh>;
        public updateLodParam(): void;
    }

    class ModelGeoObject extends ModelGeoObjectBase {
        constructor(position: Vector3, renderContext: RenderContext3, url: string, scale: number);
        public readonly isDataLoaded: boolean;
        public readonly isReadyForDraw: boolean;
        public readonly localBounds: Box;
        public readonly mesh: LodMeshInstance;
        protected onUpdateLodParam(): void;
        public checkObjectVisible(): boolean;
        public drawContents(param: AsyncRenderableParam): boolean;
        public getIndices(): Array<number>;
        public getLodMeshes(lod: number): Array<FixedMesh>;
        public getVertexPositions(): Array<Vector3>;
        public intersectRay(renderContext: RenderContext3, pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
        public registerDataTask(param: AsyncRenderableParam): void;
    }

    /**
      * GlobalMeshGeoObject 使用地球坐标定义的Mesh对象
      */
    class GlobalMeshGeoObject extends GeoObject3 {
        /**
          * 构造函数，vertexData中的positions为地球坐标
          * @param renderContext 
          * @param vertexData 
         */
        constructor(renderContext: RenderContext3, vertexData: MeshVertexData);
        /**
          * 获取或者设置定义Mesh对象的顶点数据，可以用于修改该对象：
          * <br>var vertexData = obj.vertexData;
          * <br>修改vertexData
          * <br>obj.vertexData = vertexData;
         */
        public vertexData: MeshVertexData;
        /**
          * 
          * @param geoType 
         */
        protected onUpdateDefineSpatialData(geoType: GeoType): void;
        /**
          * 
         */
        public dispose(): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
        /**
          * 
          * @param renderContext 
          * @param pt1 
          * @param pt2 
          * @param ptResult 
          * @returns 
         */
        public intersectRay(renderContext: RenderContext3, pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
    }

    /**
      * PolyGeoObject 三维多边形对象
      */
    class PolyGeoObject extends GeoObject3 {
        /**
          * 
          * @param renderContext 
          * @param points 外轮廓坐标
          * @param holes 洞坐标
          * @param globalPosition 如果指定全局坐标位置，points将被认为是局部坐标
         */
        constructor(renderContext: RenderContext3, points: Vector3[], holes?: Vector3[][], globalPosition?: Vector3);
        /**
          * 
         */
        public readonly holes: Vector3[][];
        /**
          * 
         */
        protected getAnnoPosition(): Vector3;
        /**
          * 
          * @param geoType 
         */
        protected onUpdateDefineSpatialData(geoType: GeoType): void;
        /**
          * 
         */
        public dispose(): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param renderContext 
          * @param pt1 
          * @param pt2 
          * @param ptResult 
          * @returns 
         */
        public intersectRay(renderContext: RenderContext3, pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
        /**
          * 
          * @param param 
         */
        public registerDataTask(param: AsyncRenderableParam): void;
    }

    /**
      * PipelineGeoObject 三维管道对象
      */
    class PipelineGeoObject extends LineGeoObject {
        /**
          * 
          * @param renderContext 
          * @param centerPoints 
          * @param shape2
          * @param isRoundTurn
          * @param beginNeighbour
          * @param endNeighbour
         */
        constructor(renderContext: RenderContext3, centerPoints: Vector3[], shape2: Vector2[], isRoundTurn?: boolean, beginNeighbour?: Vector3, endNeighbour?: Vector3);
        /**
          * 
          * @param geoType 
         */
        protected onUpdateDefineSpatialData(geoType: GeoType): void;
        /**
          * 
         */
        public dispose(): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
        /**
          * 
          * @param renderContext 
          * @param pt1 
          * @param pt2 
          * @param ptResult 
          * @returns 
         */
        public intersectRay(renderContext: RenderContext3, pt1: Vector3, pt2: Vector3, ptResult: Vector3): boolean;
        /**
          * 
          * @param param 
          * @returns 
         */
        public recycle(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param param 
         */
        public registerDataTask(param: AsyncRenderableParam): void;
    }

    enum Layer3Type {
        Default = 0,
        Tile = 10,
        Bim = 20
    }

    /**
      * Layer3 三维图层祖先类。
      */
    class Layer3 extends Layer implements IRenderState, IAsyncRenderable, IRenderChunkProvider {
        /**
          * 
         */
        public earthViewer: EarthViewer;
        /**
          * 
          * @param earthViewer 
          * @param name 
         */
        constructor(earthViewer: EarthViewer, name: string);
        /**
          * 高亮显示材质
         */
        public highlightMaterial: IMaterial;
        /**
          * 是否投射阴影。Bim图层缺省为true，其他图层都为false
         */
        public isCastShadow: boolean;
        /**
          * 是否被GroundHole裁剪
         */
        public isClipByGroundHole: boolean;
        /**
          * 是否裁剪反向三角面
         */
        public isCulling: boolean;
        /**
          * 是否启用深度裁剪
         */
        public isEnableDepthBuffer: boolean;
        /**
          * 是否渲染阴影效果
         */
        public isReceiveShadow: boolean;
        /**
          * 
         */
        public isReverseClip: boolean;
        /**
          * 
         */
        public isTransparentPickable: boolean;
        /**
          * 是否使用光线
         */
        public isUseLight: boolean;
        /**
          * 是否向frameBuffer写入颜色
         */
        public isWriteColor: boolean;
        /**
          * 是否向frameBuffer写入depth
         */
        public isWriteDepth: boolean;
        /**
          * 给当前图层提供光源的BabylonLayer
         */
        public lightLayer: BabylonLayer;
        /**
          * 图层的光源系统类型。包括阳光、自定义、系统缺省等
         */
        public lightType: LightType;
        /**
          * LOD比例系数，适用于本层包含的所有对象
         */
        public lodRatio: number;
        /**
          * 最远显示距离
         */
        public maxVisibleDistance: number;
        /**
          * 本层同时显示的最大对象个数，用于提升绘制性能。对象按照从近到远绘制
         */
        public maxVisibleObjectCount: number;
        /**
          * 
         */
        public onAfterLoad: Observable<Layer3>;
        /**
          * 系统保留
         */
        public overlayTexture: ITexture;
        /**
          * 系统保留
         */
        public overlayTextureMatrix: Matrix;
        /**
          * 图层的基准位置
         */
        public position: Vector3;
        /**
          * 图层的包围盒
         */
        public readonly bounds: Box;
        /**
          * 图层中对象个数
         */
        public readonly count: number;
        /**
          * 图层中的材质绑定集合
         */
        public readonly materialBindings: ObservableArray<MaterialBindingBase>;
        /**
          * 图层中的全局材质插件集合
         */
        public readonly plugins: ObservableArray<MaterialPlugin>;
        /**
          * 显示上下文
         */
        public readonly renderContext: RenderContext3;
        /**
          * 图层类型
         */
        public readonly type: Layer3Type;
        /**
          * 
         */
        public transform: Matrix;
        /**
          * 用于控制图层的绝对叠加次序。数值大的将覆盖覆盖数值小的，而DepthBuffer只决定对相同zIndex起作用。通常是把图层分为若干组来使用，比如倾斜摄影图层覆盖三维地形。
          * TerrainLayer的zIndex如果设置为-1，其他层都会强制覆盖
         */
        public zIndex: number;
        /**
          * 
         */
        protected clearChunkRenderLists(): void;
        /**
          * 
         */
        protected commitChunkRenderLists(): void;
        /**
          * 
          * @param binding 
         */
        protected onAddMaterialBinding(binding: MaterialBindingBase): void;
        /**
          * 
         */
        protected onMaterialBindingChanged(): void;
        /**
          * 
         */
        protected updateBounds(): boolean;
        /**
          * 
          * @param range 
          * @returns 
         */
        public calcMinMaxHeight(range: Rect): Vector2;
        /**
          * 
         */
        public checkVisible(): boolean;
        /**
          * 
         */
        public dispose(): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
        /**
          * 使用屏幕点位置选取一个对象
          * @param screenPt 屏幕点
          * @param resultPt 如果选中则保存对象被击中的三维位置
          * @returns 选中对象或者null
         */
        public pick(screenPt: Vector2, resultPt: Vector3): PickableObject;
        /**
          * 
          * @param box 
          * @returns 
         */
        public pickByBox(box: Box): PickableObject[];
        /**
          * 使用两点定义的射线选取一个对象
          * @param worldPt1 世界坐标系点1
          * @param worldPt2 世界坐标系点2
          * @param resultPt 如果选中则保存对象被击中的三维位置
          * @returns 选中对象或者null
         */
        public pickByRay(worldPt1: Vector3, worldPt2: Vector3, resultPt: Vector3): PickableObject;
        /**
          * 
          * @param param 
          * @returns 
         */
        public recycle(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param param 
         */
        public registerDataTask(param: AsyncRenderableParam): void;
        /**
          * 
          * @param param 
         */
        public updateContentIndex(param: AsyncRenderableParam): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public updateContents(param: AsyncRenderableParam): boolean;
    }

    /**
      * Layer3Collection 三维图层集合
      */
    class Layer3Collection extends LayerCollection<Layer3> {
        /**
          * 
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawLayers(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param param 
          * @returns 
         */
        public recycle(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param param 
         */
        public registerDataTask(param: AsyncRenderableParam): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public updateContentIndex(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param param 
          * @returns 
         */
        public updateContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param layers 
          * @param devicePtNear 
          * @param devicePtFar 
          * @param resultPt 
          * @returns 
         */
        public static SelectOne(layers: Array<Layer3>, devicePtNear: Vector3, devicePtFar: Vector3, resultPt: Vector3): PickableObject;
    }

    class ObjectDisplayInfo {
        public distance: number;
        public object: GeoObject3;
        public size: number;
        public sqauredDistance: number;
        public visible: boolean;
        public weight: number;
    }

    /**
      * GeoObject3Layer 三维对象图层，作为祖先类使用
      */
    class GeoObject3Layer extends Layer3 {
        /**
          * 
          * @param earthViewer 
          * @param name 
         */
        constructor(earthViewer: EarthViewer, name: string);
        /**
          * 
         */
        public readonly count: number;
        /**
          * 
          * @param renderContext 
          * @param maxCount 
          * @param hasPickedObject 
          * @returns 
         */
        protected enumObjectsForDrawing(renderContext: RenderContext3, maxCount: number, hasPickedObject: RefValue<boolean>): Array<GeoObject3>;
        /**
          * 
          * @param geoObject 
         */
        protected onAddObject(geoObject: GeoObject3): void;
        /**
          * 
          * @param renderContext 
          * @returns 
         */
        protected setupDrawingStatus(renderContext: RenderContext3): boolean;
        /**
          * 
         */
        protected updateBounds(): boolean;
        /**
          * 
          * @param updateOnlyWhenDirty 
         */
        protected updateIndex(updateOnlyWhenDirty?: boolean): boolean;
        /**
          * 直接添加已经创建的对象
          * @param geoObject 
          * @returns 原对象
         */
        public addObject(geoObject: GeoObject3): GeoObject3;
        /**
          * 
          * @param worldPt1 
          * @param worldPt2 
          * @returns 
         */
        public clampLine(worldPt1: Vector3, worldPt2: Vector3): Vector3[];
        /**
          * 
          * @param worldPoints 
          * @returns 
         */
        public clampPolygon(worldPoints: Vector3[]): Vector3[];
        /**
          * 移除所有图层中对象
         */
        public clear(): void;
        /**
          * 清除所有对象的选中状态
         */
        public clearPickedObjects(): void;
        /**
          * 枚举图层所有对象
         */
        public enumObjects(): Array<GeoObject3>;
        /**
          * 通过指定索引获取对象，索引从0开始
          * @param index 
          * @returns 
         */
        public getAt(index: number): GeoObject3;
        /**
          * 通过no获取对象，no从1开始
          * @param no 
          * @returns 
         */
        public getByNo(no: number): GeoObject3;
        /**
          * 
          * @param box 
          * @returns 
         */
        public pickByBox(box: Box): PickableObject[];
        /**
          * 
          * @param worldPt1 
          * @param worldPt2 
          * @param resultPt 
          * @returns 
         */
        public pickByRay(worldPt1: Vector3, worldPt2: Vector3, resultPt: Vector3): PickableObject;
        /**
          * 移除对象
          * @param geoObject
         */
        public remove(geoObject: GeoObject3): void;
        /**
          * 移除指定索引位置的对象
          * @param index 
         */
        public removeAt(index: number): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public updateContents(param: AsyncRenderableParam): boolean;
    }

    /**
      * ShapeLayer 三维形状图层，提供了添加各种形状的方法。addXXX方法，点数组都使用地球坐标位置；addXXXAt方法，是在指定地球坐标位置用局部坐标数组添加各种形状。
      */
    class ShapeLayer extends GeoObject3Layer {
        /**
          * 创建新的ShapeLayer。三维形状图层，提供了添加各种形状的方法。addXXX方法，点数组都使用地球坐标位置；addXXXAt方法，是在指定地球坐标位置用局部坐标数组添加各种形状。
          * @param earthViewer 
          * @param name 图层名称。必须不能重名，否则无法正常创建和显示
         */
        constructor(earthViewer: EarthViewer, name: string);
        /**
          * 
         */
        public defaultColor: Color;
        /**
          * 
          * @param renderContext 
          * @param param 
          * @param geoObjects 
          * @param highlightMaterial 
          * @param alpha 
         */
        protected drawObjects(renderContext: RenderContext3, param: AsyncRenderableParam, geoObjects: Array<GeoObject3>, highlightMaterial: IMaterial, alpha?: number): void;
        /**
          * 
          * @param geoObject 
         */
        protected onAddObject(geoObject: GeoObject3): void;
        /**
          * 
          * @param renderContext 
          * @param param 
          * @param geoObjects 
          * @param isOnlyPickedVisible
         */
        protected updateObjectAnnoChunks(renderContext: RenderContext3, param: AsyncRenderableParam, geoObjects: Array<GeoObject3>, isOnlyPickedVisible?: boolean): void;
        /**
          * 添加标注对象
          * @param position 位置
          * @param anno 标注
          * @param color 颜色
          * @returns GeoObject3
         */
        public addAnno(position: Vector3, anno: string, color?: Color): GeoObject3;
        /**
          * 添加箭头对象
          * @param points 中心线
          * @param headWidth 头部宽度
          * @param tailWidth 尾部宽度
          * @param headThickness 头部厚度
          * @param tailThickness 尾部厚度
          * @returns ArrowGeoObject
         */
        public addArrow(points: Vector3[], headWidth: number, tailWidth: number, headThickness?: number, tailThickness?: number): ArrowGeoObject;
        /**
          * 在指定位置添加箭头对象
          * @param position 地球坐标位置
          * @param localPoints 局部坐标中心线
          * @param headWidth 头部宽度
          * @param tailWidth 尾部宽度
          * @param headThickness 头部厚度
          * @param tailThickness 尾部厚度
          * @returns ArrowGeoObject
         */
        public addArrowAt(position: Vector3, localPoints: Vector3[], headWidth: number, tailWidth: number, headThickness?: number, tailThickness?: number): ArrowGeoObject;
        /**
          * 添加椭球体对象
          * @param position 位置
          * @param size 长宽高
          * @param vertialAlignment 垂直对齐方式，缺省为中心对齐
          * @returns MeshGeoObject
         */
        public addBall(position: Vector3, size: Size3, vertialAlignment?: VerticalAlignment): MeshGeoObject;
        /**
          * 添加长方体体对象
          * @param position 位置
          * @param size 长宽高
          * @param vertialAlignment 垂直对齐方式，缺省为中心对齐
          * @returns MeshGeoObject
         */
        public addBox(position: Vector3, size: Size3, vertialAlignment?: VerticalAlignment): MeshGeoObject;
        /**
          * 添加圆锥体对象
          * @param position 位置
          * @param height 高度
          * @param diameterTop 顶部直径 
          * @param diameterBottom 底部直径
          * @param vertialAlignment 垂直对齐方式，缺省为中心对齐
          * @returns MeshGeoObject
         */
        public addCylinder(position: Vector3, height: number, diameterTop: number, diameterBottom: number, vertialAlignment?: VerticalAlignment): MeshGeoObject;
        /**
          * 添加图片对象
          * @param position 位置
          * @param imageUrlOrBitmap 图片的url或者WriteableBitmap对象
          * @returns ImageGeoObject
         */
        public addImage(position: Vector3, imageUrlOrBitmap: string | WriteableBitmap, displaySize?: Vector2): ImageGeoObject;
        /**
          * 添加折线对象
          * @param points 坐标点数组
          * @param width 线宽。如果大于1，则创建宽线。宽线可以有丰富的显示配置，比如虚线等
          * @returns LineGeoObject
         */
        public addLine(points: Vector3[], width?: number): LineGeoObject;
        /**
          * 在指定位置添加折线
          * @param position 地球坐标位置
          * @param localPoints 局部坐标数组
          * @param width 线宽
          * @returns LineGeoObject
         */
        public addLineAt(position: Vector3, localPoints: Vector3[], width?: number): LineGeoObject;
        /**
          * 通过VertexData直接添加三角网对象。使用地球坐标
          * @param vertexData 
          * @returns GlobalMeshGeoObject
         */
        public addMesh(vertexData: MeshVertexData): GlobalMeshGeoObject;
        /**
          * 在指定位置添加通过VertexData直接添加三角网对象。使用局部坐标
          * @param position 地球坐标位置
          * @param localVertexData 局部坐标数据
          * @returns MeshGeoObject
         */
        public addMeshAt(position: Vector3, localVertexData: MeshVertexData): MeshGeoObject;
        /**
          * 添加模型对象
          * @param position 位置
          * @param modelUrl 模型url，目前只支持Drawsee自定义格式
          * @returns 
         */
        public addModel(position: Vector3, modelUrl: string): ModelGeoObject;
        /**
          * 添加管线对象。管线截面可以是圆形，矩形，或者通过二维点数组自定义的形状。前后邻接点参数，需要多段管线协同使用，属于高级用法，通常忽略
          * @param centerPoints 中心线数组
          * @param radiusOrSizeOrShape 半径、长宽或者形状坐标数组
          * @param isRoundTurn 是否圆滑转弯
          * @param beginNeighbour 管线前邻接点位置，可以生成与前邻接管段的转弯衔接形状
          * @param endNeighbour 管线后邻接点位置，可以生成与后邻接管段的转弯衔接形状
          * @returns 
         */
        public addPipeline(centerPoints: Vector3[], radiusOrSizeOrShape: number | Size | Vector2[], isRoundTurn?: boolean, beginNeighbour?: Vector3, endNeighbour?: Vector3): GeoObject3;
        /**
          * 在指定位置添加管线对象。管线截面可以是圆形，矩形，或者通过二维点数组自定义的形状。前后邻接点参数，需要多段管线协同使用，属于高级用法，通常忽略
          * @param position 地球坐标位置
          * @param localCenterPoints 局部中心线数组
          * @param radiusOrSizeOrShape 半径、长宽或者形状坐标数组
          * @param isRoundTurn 是否圆滑转弯
          * @param localBeginNeighbour 管线前邻接点位置，可以生成与前邻接管段的转弯衔接形状
          * @param localEndNeighbour 管线后邻接点位置，可以生成与后邻接管段的转弯衔接形状
          * @returns 
         */
        public addPipelineAt(position: Vector3, localCenterPoints: Vector3[], radiusOrSizeOrShape: number | Size | Vector2[], isRoundTurn?: boolean, localBeginNeighbour?: Vector3, localEndNeighbour?: Vector3): GeoObject3;
        /**
          * 添加平面对象
          * @param center 中心点
          * @param width 水平宽度
          * @param height 水平高度
          * @param divideCount 平面长宽网格的细分个数
          * @returns
         */
        public addPlane(center: Vector3, width: number, height: number, divideCount?: number): MeshGeoObject;
        /**
          * 添加多边形
          * @param points 外部轮廓点数组
          * @param holes 内部洞点二维数组
          * @returns PolyGeoObject
         */
        public addPoly(points: Vector3[], holes?: Vector3[][]): PolyGeoObject;
        /**
          * 添加多边形
          * @param position 地球坐标位置
          * @param localPoints 局部坐标外部轮廓点数组
          * @param localHoles 局部坐标内部洞点二维数组
          * @returns PolyGeoObject
         */
        public addPolyAt(position: Vector3, localPoints: Vector3[], localHoles?: Vector3[][]): PolyGeoObject;
        /**
          * 添加多边形柱体对象。顶部和底部是同样的多边形轮廓。
          * @param points 轮廓点数组
          * @param minY 底部高度
          * @param maxY 顶部高度
          * @param hasTopCover 是否有封闭顶部
          * @param hasBottomCover 是否封闭底部
          * @param holes 多边形洞数组
          * @returns PolyBoxGeoObject
         */
        public addPolyBox(points: Vector3[], minY: number, maxY: number, hasTopCover?: boolean, hasBottomCover?: boolean, holes?: Vector3[][]): PolyBoxGeoObject;
        /**
          * 添加多边形柱体对象，顶部和底部是可以指定不同到多边形轮廓，但是点数必须相同。
          * @param topPoints顶部轮廓点数组
          * @param bottomPoints 底部轮廓点数组
          * @param hasTopCover 是否有封闭顶部
          * @param hasBottomCover 是否封闭底部
          * @param isReverseNormal 是否反转法向量
          * @returns MeshGeoObject
         */
        public addPolyBox2(topPoints: Vector3[], bottomPoints: Vector3[], hasTopCover?: boolean, hasBottomCover?: boolean, isReverseNormal?: boolean): GlobalMeshGeoObject;
        /**
          * 在指定位置添加多边形柱体对象，顶部和底部是可以指定不同到多边形轮廓，但是点数必须相同。
          * @param position 地球坐标位置
          * @param localTopPoints 局部坐标顶部轮廓点数组
          * @param localBottomPoints 局部坐标底部轮廓点数组
          * @param hasTopCover 是否有封闭顶部
          * @param hasBottomCover 是否封闭底部
          * @param isReverseNormal 是否反转法向量
          * @returns MeshGeoObject
         */
        public addPolyBox2At(position: Vector3, localTopPoints: Vector3[], localBottomPoints: Vector3[], hasTopCover?: boolean, hasBottomCover?: boolean, isReverseNormal?: boolean): MeshGeoObject;
        /**
          * 在指定位置添加多边形柱体对象，顶部和底部是同样的多边形轮廓。
          * @param position 地球坐标位置
          * @param localPoints 局部坐标轮廓点数组
          * @param minY 底部高度
          * @param maxY 顶部高度
          * @param hasTopCover 是否有封闭顶部
          * @param hasBottomCover 是否封闭底部
          * @param holes 多边形洞数组
          * @returns PolyBoxGeoObject
         */
        public addPolyBoxAt(position: Vector3, localPoints: Vector3[], minY: number, maxY: number, hasTopCover?: boolean, hasBottomCover?: boolean, holes?: Vector3[][]): PolyBoxGeoObject;
        /**
          * 根据中心线和半径添加河道形状
          * @param points 经纬度中心线
          * @param radius 半径米
          * @returns GlobalMeshGeoObject
         */
        public addRiver(points: Vector3[], radius: number): GlobalMeshGeoObject;
        /**
          * 根据中心线和半径在指定位置添加河道形状
          * @param position 基准经纬度
          * @param localPoints 局部坐标中心线
          * @param radius 半径米
          * @returns MeshGeoObject
         */
        public addRiverAt(position: Vector3, localPoints: Vector3[], radius: number): MeshGeoObject;
        /**
          * 添加墙体对象
          * @param bottomCenterPoints 底部中心线坐标
          * @param height 高度
          * @param thickness 厚度
          * @param isRoundJoin 是否圆角转弯
          * @returns WallGeoObject
         */
        public addWall(bottomCenterPoints: Vector3[], height: number, thickness: number, isRoundJoin?: boolean): WallGeoObject;
        /**
          * 在指定位置添加墙体对象
          * @param position 地球坐标位置
          * @param localBottomCenterPoints 局部坐标底部中心线坐标
          * @param height 高度
          * @param thickness 厚度
          * @param isRoundJoin 是否圆角转弯
          * @returns WallGeoObject
         */
        public addWallAt(position: Vector3, localBottomCenterPoints: Vector3[], height: number, thickness: number, isRoundJoin?: boolean): WallGeoObject;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
        /**
          * 
          * @param centerEarth 
          * @param radiusMeter 
          * @returns 
         */
        public prepareMeshDataInRange(centerEarth: Vector3, radiusMeter: number): Array<MeshVertexData>;
        /**
          * 
          * @param param 
          * @returns 
         */
        public recycle(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param param 
         */
        public registerDataTask(param: AsyncRenderableParam): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public updateContents(param: AsyncRenderableParam): boolean;
    }

    class StencilHoleRef implements IStencilHole {
        constructor(layer: StencilHoleLayer, geoObject: GeoObject3);
        public isVisible: boolean;
        public dispose(): void;
    }

    class StencilHoleLayer extends ShapeLayer {
        constructor(earthViewer: EarthViewer);
        public addHole(polygonPoints: Vector3[]): IStencilHole;
        public clearHoles(): void;
        public drawContents(param: AsyncRenderableParam): boolean;
        public hitOnHole(x: number, y: number): boolean;
        public intersects(range: Rect): boolean;
    }

    /**
      * GroundLayer 地面高度计算层。可以添加多个TileLayer或者ModelLayer，利用它们的三角网数据，做局部的地形高度计算
      */
    class GroundLayer implements ITerrainCalculator {
        /**
          * 
         */
        public earthViewer: EarthViewer;
        /**
          * 
          * @param renderContext 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 
         */
        public readonly layers: Array<Layer3>;
        /**
          * 
          * @param layer 
         */
        //!!!newMember
        public addLayerAsGround(layer: Layer3): void;
        /**
          * 
          * @param earthRange 
          * @param minLevel 
          * @param maxLevel 
          * @returns 
         */
        public calculateApproximateHeightRange(earthRange: Rect, minLevel?: number, maxLevel?: number): Vector2;
        /**
          * 
          * @param earthX 
          * @param earthZ 
          * @returns 
         */
        public calculateHeight(earthX: number, earthZ: number): number;
        /**
          * 
          * @param earthX 
          * @param earthZ 
          * @param resultHeight 
          * @param resultLevel 
          * @param minLevel 
          * @param maxLevel 
          * @returns 
         */
        public calculateHeightAdvance(earthX: number, earthZ: number, resultHeight: RefValue<number>, resultLevel: RefValue<number>, minLevel?: number, maxLevel?: number): boolean;
        /**
          * 
          * @param screenX 
          * @param screenY 
          * @param resultPt 
          * @returns 
         */
        public calculateHitPosition(screenX: number, screenY: number, resultPt: Vector3): boolean;
        /**
          * 
          * @param worldPoints 
          * @param maxLevel 
          * @returns 
         */
        public clampLine(worldPoints: Vector3[], maxLevel: number): Vector3[];
        /**
          * 
          * @param worldPoints 
          * @param maxLevel 
          * @returns 
         */
        public clampPolygon(worldPoints: Vector3[], maxLevel: number): Vector3[];
        /**
          * 
         */
        public clearTerrainLayers(): void;
        /**
          * 
          * @param result 
          * @param earthRange 
         */
        public enumRenderChunksInRange(result: ElementChunk[], earthRange: Rect): void;
        /**
          * 
         */
        public getLayerCount(): number;
        /**
          * 
          * @param box 
          * @returns 
         */
        public intersectBox(box: Box): boolean;
        /**
          * 
          * @param earthPt1 
          * @param earthPt2 
          * @returns 
         */
        public intersectRay(earthPt1: Vector3, earthPt2: Vector3): Vector3;
    }

    class StringIntMapping {
        public no2String(no: number): string;
        public string2No(str: string, autoAdd?: boolean): number;
    }

    class DataSurfaceBase {
        public urlMapping: StringIntMapping;
        public addBadUrlNo(urlNo: number): void;
        public isBadUrlNo(urlNo: number): boolean;
        public onBadTasks(url: string): void;
    }

    /**
      * DivObject 屏幕叠加对象，用于关联三维物体和htmlDiv界面元素
      */
    class DivObject {
        /**
          * 
         */
        public geoObject: GeoObject3;
        /**
          * 关联的HTMLDivElement对象
         */
        public readonly div: HTMLDivElement;
        /**
          * 创建新DivObject
          * @param geoObject 关联的GeoObject3
          * @param div HTMLDivElement对象
          * @param offset 与关联基准点之间的像素位移
         */
        constructor(geoObject: GeoObject3, div: HTMLDivElement, offset?: Vector2);
        /**
          * 基本缩放距离。如果设置该值，则在此距离上位原大小，远或者近将引起界面对象缩放
         */
        public baseSizeDistance: number;
        /**
          * 水平对齐方式
         */
        public horizontalAlignment: HorizontalAlignment;
        /**
          * 是否缩放界面元素大小
         */
        public isSizable: boolean;
        /**
          * 是否处于透明状态
         */
        public isTransparent: boolean;
        /**
          * 是否可见
         */
        public isVisible: boolean;
        /**
          * 最远可见距离
         */
        public maxVisibleDistance: number;
        /**
          * 最近可见距离
         */
        public minVisibleDistance: number;
        /**
          * 最低可见的眼睛高度。通常观察位置较低时，用于屏蔽远处的标注等
         */
        public minVisibleEyeHeight: number;
        /**
          * 相对于锚点像素位移
         */
        public pixelOffset: Vector2;
        /**
          * 内部使用
         */
        public readonly uIBounds: Rect;
        /**
          * 垂直对齐方式
         */
        public verticalAlignment: VerticalAlignment;
    }

    /**
      * DivLayer 屏幕对象关联图层。在此图层添加对象，将能够把场景中的GeoObject3与div关联起来，div将会跟随三维物体移动，用于实现三维物体的关联标签等效果。
      * div的内容完全由开发者控制，这样可以实现丰富的自定义标签功能。系统只负责根据设置的对齐方式、位移等，协调三维图形与div的位置关系。
      * 如果有div直接的叠加遮挡，被遮挡的div将自动半透明。还可以设置div是否自动根据观察距离远近而缩放大小。
      */
    class DivLayer extends Layer3 {
        /**
          * 创建新DivLayer。屏幕对象关联图层。在此图层添加对象，将能够把场景中的GeoObject3与div关联起来，div将会跟随三维物体移动，用于实现三维物体的关联标签等效果。
          * div的内容完全由开发者控制，这样可以实现丰富的自定义标签功能。系统只负责根据设置的对齐方式、位移等，协调三维图形与div的位置关系。
          * 如果有div直接的叠加遮挡，被遮挡的div将自动半透明。还可以设置div是否自动根据观察距离远近而缩放大小。
          * @param earthViewer 
          * @param name 唯一名称
         */
        constructor(earthViewer: EarthViewer, name: string);
        /**
          * 对象个数
         */
        public readonly count: number;
        /**
          * 
         */
        protected onSetVisible(): void;
        /**
          * 
          * @param geoObjectOrPosition 
          * @param div
          * @param offset
          * @returns 
         */
        public addObject(geoObjectOrPosition: GeoObject3 | Vector3, div: HTMLDivElement, offset?: Vector2): DivObject;
        /**
          * 清除所有关联对象
         */
        public clear(): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 用指定索引获取关联对象
          * @param index 
          * @returns 
         */
        public getAt(index: number): DivObject;
    }

    class TileMeshNodeInfoBase {
        public center: Vector3;
        public radius: number;
        public subNames: Array<string>;
        public name: string;
        public uri: string;
        constructor(center: Vector3, radius: number, subNames: Array<string>, name?: string, uri?: string);
        public getSubBaseUrl(subIndex: number): string;
    }

    class SubTileMeshTransferData {
        public bimMaxs: Float32Array;
        public bimMins: Float32Array;
        public bimNos: Int32Array;
        public bimVertexBuffer: Float32Array;
        public indices: Uint32Array;
        public normals: Float32Array;
        public positions: Float32Array;
        public textureFileName: string;
        public uvs: Float32Array;
    }

    class TileMeshTransferData {
        public name: string;
        public subs: Array<SubTileMeshTransferData>;
        public textureBytes: Array<Uint8Array>;
        public textureNames: Array<string>;
        public freeRawData(): void;
        public getTransferObjects(): Array<any>;
    }

    class TileMeshChunkInfo {
        public indexStart: number;
        public count: number;
        public textureName: string;
        constructor(indexStart: number, count: number, textureName: string);
    }

    class TileMeshProcessData {
        public indicesArray: Array<Uint32Array>;
        public isGpu: boolean;
        public isNeedNormals: boolean;
        public isNeedTriPoints: boolean;
        public isNeedVertexBuffer: boolean;
        public minStartSize: number;
        public name: string;
        public scaleRatio: number;
        public textureBytes: Array<Uint8Array>;
        public textureCoordsArray: Array<Float32Array>;
        public vertexesArray: Array<Float32Array>;
        public getTransferObjects(): Array<any>;
        public static FromTransferData(transferData: TileMeshTransferData): TileMeshProcessData;
    }

    class TileMeshProcessResultData {
        public chunks: Array<TileMeshChunkInfo>;
        public imageBitmaps: Array<ImageBitmap>;
        public indiceBuffer: Uint32Array;
        public triPoints: Float32Array;
        public vertexBuffer: Float32Array;
        public getTransferObjects(): Array<any>;
        public getTransferObjectsToRef(arrs: Array<any>): void;
        public static ChunksFromTransferData(data: TileMeshTransferData): Array<TileMeshChunkInfo>;
        public static Dispose(data: TileMeshProcessResultData): void;
    }

    class TileNodeBase {
        constructor(geoObject: TileMeshGeoObjectBase);
        public readonly center: Vector3;
        public readonly earthCenter: Vector3;
        public readonly earthRange: Rect;
        public readonly radius: number;
        public readonly worldCenter: Vector3;
    }

    class TextureCreateInfo {
        public minStartSize: number;
        public scaleRatio: number;
        public isUseMipmap: boolean;
        constructor(minStartSize: number, scaleRatio: number, isUseMipmap?: boolean);
    }

    class TileMeshTextureUnit {
        public name: string;
        constructor(name: string, graphics: Graphics3, imageBitmap: ImageBitmap, isWrap: boolean, tag?: string);
        public dispose(): void;
        public getTexture(): ITexture;
    }

    class TileSubMesh extends TileNodeBase {
        public subIndex: number;
        public fatherMesh: TileMeshBase;
        constructor(subIndex: number, fatherMesh: TileMeshBase, geoObject: TileMeshGeoObjectBase, indexCount: number, texture: ITexture, subBounds: Box);
        public readonly level: number;
        protected onAfterToChunk(): void;
        protected onCreateChunk(): void;
        public createChunk(elementBuffer: ElementBuffer, indexStart: number, indexCount: number, clipCenter: Vector3, clipRadius: number,): void;
        public dispose(): void;
        public toChunk(): MeshChunk;
        public static CreateSubMeshChunks(buffer: ElementBuffer, subMeshes: TileSubMesh[], modelObject: TileMeshGeoObjectBase, isStencilClip: boolean): void;
        public static FromChunks(chunks: MeshChunk[]): TileSubMesh[];
        public static GroupByBinded(src: TileSubMesh[], binded: TileSubMesh[], unbinded: TileSubMesh[]): void;
        public static ToChunks(subMeshes: TileSubMesh[]): MeshChunk[];
        public static ToChunksToRef(subMeshes: TileSubMesh[], result: MeshChunk[]): void;
    }

    enum TileSubMeshRenderType {
        Default,
        Shadow,
        DarkLight
    }

    class TileMeshBase extends TileNodeBase implements IObjectCacheSize {
        public node: TileMeshIndexNodeBase;
        constructor(node: TileMeshIndexNodeBase, geoObject: TileMeshGeoObjectBase, surface: TileMeshSurface, url: string, isUseTriIndex: boolean);
        public cacheBytes: number;
        public readonly baseUrl: string;
        public readonly fileName: string;
        public readonly fileSuffix: string;
        public readonly isDataLoaded: boolean;
        public readonly isReadyForDraw: boolean;
        public readonly isSubMesh: boolean;
        public readonly level: number;
        public readonly url: string;
        public readonly urlNo: number;
        protected commitLoadData(): void;
        protected commitProcessMeshData(data: AsyncWebStreamResultType): void;
        protected createDefaultElementBuffer(processedData: TileMeshProcessResultData): ElementBuffer;
        protected createDefaultSubMeshes(processedData: TileMeshProcessResultData): TileSubMesh[];
        protected createElevationElementBuffer(processedData: TileMeshProcessResultData): void;
        protected createOneSubMesh(subIndex: number, indexCount: number, texture: ITexture, subBounds: Box): TileSubMesh;
        protected getCacheBytesRatio(): number;
        protected getDataLoadType(): AsyncDataLoadType;
        protected getIsNeedCreateTriIndex(): boolean;
        protected getIsNeedNormals(): boolean;
        protected getSubMeshLocalBounds(subIndex: number): Box;
        protected isRayIntersectsBounds(ray: Ray): boolean;
        protected releaseElevationBuffer(): void;
        protected setAsEmptyMeshNode(): void;
        public calcMinMaxHeight(range: Rect): Vector2;
        public dispose(): void;
        public getSubMeshCount(): number;
        public getTriIndex(): MeshTriangleIndex;
        public initBasicInfo(center: Vector3, radius: number, isSubMesh: boolean): void;
        public intersectBox(box: Box): boolean;
        public loadData(): void;
        public markLodStatus(): void;
        public prepareData(): void;
        public stampTimeMark(): void;
    }

    class TileMeshSurface extends DataSurfaceBase implements IObjectLoader<number, TileMeshBase> {
        public name: string;
        constructor(name: string, timeoutMs: number);
        public readonly count: number;
        public accessMesh(urlNo: number): TileMeshBase;
        public addToCache(subMesh: TileMeshBase);
        public allocUrlNo(url: string): number;
        public loadObject(key: number): TileMeshBase;
        public recycle(param: AsyncRenderableParam): boolean;
        public releaseObject(key: number, obj: TileMeshBase): void;
        public urlFromNo(no: number): string;
    }

    class TileMeshIndexNodeBase extends TileNodeBase {
        public layer: TileLayerRoot;
        public index: TileMeshIndexBase;
        public father: TileMeshIndexNodeBase;
        public root: TileMeshIndexNodeBase;
        constructor(layer: TileLayerRoot, index: TileMeshIndexBase, geoObject: TileMeshGeoObjectBase, baseUrl: string, fileName: string, isUseTriIndex: boolean, father: TileMeshIndexNodeBase, root: TileMeshIndexNodeBase);
        public readonly baseUrl: string;
        public readonly isDataLoaded: boolean;
        public readonly isIsAllLeafsReadyDirty: boolean;
        public readonly isLeaf: boolean;
        public readonly level: number;
        public readonly meshUrlNo: number;
        public readonly subs: Array<TileMeshIndexNodeBase>;
        protected getDataFileSurffix(): string;
        protected getRootMeshUrl(): string;
        protected tryCreateRootMesh(): void;
        public accessMesh(): TileMeshBase;
        public createNewMesh(indexNode: TileMeshIndexNodeBase, geoObject: TileMeshGeoObjectBase, surface: TileMeshSurface, url: string, isUseTriIndex: boolean): TileMeshBase;
        public dispose(): void;
        public enumSubNodesRecursive(result: Array<TileMeshIndexNodeBase>): void;
        public getRootMesh(): TileMeshBase;
        public getSubName(subIndex: number): string;
        public static EnumAndCreateMeshesRecursive<NodeInfoType extends TileMeshNodeInfoBase>(node: TileMeshIndexNodeBase, result: Array<TileMeshBase>): void;
    }

    interface ITileTreeEnum {
        enumSubMeshesForRender(index: TileMeshIndexBase, renderType: TileSubMeshRenderType, result: TileSubMesh[]): void;
    }

    class TileMeshIndexBase {
        public layer: TileLayerRoot;
        constructor(layer: TileLayerRoot, baseUrl: string, fileName: string);
        public readonly isUsePyramid: boolean;
        protected commitIndexLoadTask(): void;
        protected createRootNode(isUseTriIndex: boolean): TileMeshIndexNodeBase;
        public enumMeshes(): Array<TileMeshBase>;
        public enumSubMeshesForRenderToRef(renderType: TileSubMeshRenderType, result: Array<TileSubMesh>): void;
        public getNodeInfo(fileName: string): TileMeshNodeInfoBase;
        public getRootNode(): TileMeshIndexNodeBase;
        public getRootNodeInfo(): TileMeshNodeInfoBase;
        public initRootInfo(geoObject: TileMeshGeoObjectBase, center: Vector3, radius: number, isUseTriIndex: boolean);
        public loadNodeInfo(baseUrl: string, fileName: string, worldCenter: Vector3): void;
        public update(param: AsyncRenderableParam);
    }

    class TileMeshGeoObjectBase extends PointGeoObject {
        constructor(layer: TileLayerRoot, position: Vector3, meshBounds: Box, clipRadius?: number);
        public readonly index: TileMeshIndexBase;
        public readonly isDataLoaded: boolean;
        public readonly isReadyForDraw: boolean;
        public readonly localBounds: Box;
        protected getAnnoPosition(): Vector3;
        protected initBoundingClip(center: Vector3, radius: number): void;
        public calcMinMaxHeight(range: Rect): Vector2;
        public enumMeshes(): Array<TileMeshBase>;
        public enumSubMeshesByRenderTypeToRef(renderType: TileSubMeshRenderType, result: Array<TileSubMesh>): void;
        public intersectBox(box: Box): boolean;
        public intersectRay(renderContext: RenderContext3, pt1: Vector3, pt2: Vector3, result: Vector3): boolean;
        public updateIndex(param: AsyncRenderableParam);
    }

    class TileLayerRoot extends Layer3 {
        constructor(earthViewer: EarthViewer, name: string);
        public maxLevel: number;
        public position: Vector3;
        public readonly _isGpu: boolean;
        public readonly surface: TileMeshSurface;
        protected adjustLoadOrder(meshes: Array<TileMeshBase>): Array<TileMeshBase>;
        protected commitUpdateContents(param: AsyncRenderableParam): boolean;
        protected drawOneList(chunkList: IMeshChunkList): boolean;
        protected enumObjectsInIndex(maxCount: number, checkVisible?: boolean): Array<GeoObject3>;
        protected getDataLayer(): GeoObject3Layer;
        protected getDefaultChunkRender(): MeshChunkRenderBase;
        protected getTileObject(index: number): GeoObject3;
        protected isNeedUpdateContent(): boolean;
        protected isNeedUpdateContentIndex(): boolean;
        protected updateBounds(): boolean;
        public addObject(geoObject: GeoObject3): GeoObject3;
        public calcMinMaxHeight(range: Rect): Vector2;
        public pickByBox(box: Box): PickableObject[];
        public pickByRay(worldPt1: Vector3, worldPt2: Vector3, resultPt: Vector3): PickableObject;
        public recycle(param: AsyncRenderableParam): boolean;
        public registerDataTask(param: AsyncRenderableParam): void;
        public updateContentIndex(param: AsyncRenderableParam): void;
        public updateContents(param: AsyncRenderableParam): boolean;
    }

    class CentricPositionDirty {
        public renderContext: RenderContext3;
        public readonly isAutoUpdatePosition: boolean;
        constructor(renderContext: RenderContext3, isAutoUpdatePosition?: boolean);
        public checkPositionMoveMuch(): boolean;
        public updateCameraPosition(): void;
    }

    /**
      * TileLayerBase 倾斜摄影图层的祖先类
      */
    class TileLayerBase extends TileLayerRoot {
        /**
          * 
          * @param earthViewer 
          * @param name 
         */
        constructor(earthViewer: EarthViewer, name: string);
        /**
          * 
          * @param param 
          * @returns 
         */
        protected commitUpdateContents(param: AsyncRenderableParam): boolean;
        /**
          * 
         */
        protected isNeedUpdateContent(): boolean;
        /**
          * 
         */
        protected isNeedUpdateContentIndex(): boolean;
        /**
          * 
          * @param subMeshes 
         */
        protected updateChunkList(subMeshes: Array<TileSubMesh>): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
        /**
          * 设置图层的原点地球坐标。当倾斜摄影图层自动加载位置偏差较大、或者原点投影坐标计算错误时，由程序直接设定位置。
          * 当使用该接口时，倾斜摄影图层构造函数中指定的offsetMeters将不起作用。
          * @param origin 对应于图层原点的地球坐标
         */
        public setOrigin(origin: Vector3): void;
    }

    /**
      * B3dmTileLayer 用于打开和显示b3dm格式的3dtiles数据
      */
    class B3dmTileLayer extends TileLayerBase {
        /**
          * B3dmTileLayer 用于打开和显示b3dm格式的3dtiles数据
          * @param earthViewer 
          * @param layerName 图层名
          * @param tilesetUrl b3dm数据集根配置文件url，比如 xxx/tileset.json
          * @param offsetMeters 如果数据位置有小范围偏差，可以提供此参数进行位移修正。比如匹配地形时，通常需要调整高度
         */
        constructor(earthViewer: EarthViewer, layerName: string, tilesetUrl: string, offsetMeters?: Vector3);
        /**
          * 
          * @param meshes 
          * @returns 
         */
        protected adjustLoadOrder(meshes: Array<TileMeshBase>): Array<TileMeshBase>;
        /**
          * 
          * @param subMeshes 
         */
        protected updateChunkList(subMeshes: TileSubMesh[]): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
    }

    interface IDrawseeTileLoaderOwner {
        addOneObjectFromInfo(position: Vector3, rootUrl: string, isUseTriIndex: boolean, bounds: Box, indexFileName: string): TileMeshGeoObjectBase;
        onAfterLoadConfig(): void;
    }

    class DrawseeTileLoader {
        public earthViewer: EarthViewer;
        public owner: IDrawseeTileLoaderOwner;
        constructor(earthViewer: EarthViewer, owner: IDrawseeTileLoaderOwner, url: string, offsetMeters?: Vector3);
        protected commitAddObjectsFromConfig(json: any, baseUrl: string, position: Vector3, isUseTriIndex: boolean): void;
        protected getGroupConfig(baseUrl: string): string;
        protected onTilesetJson(tilesetJson): void;
        public getBaseUrl(): string;
    }

    class BimTileLoader extends DrawseeTileLoader {
        protected commitAddObjectsFromConfig(json: any, baseUrl: string, position: Vector3, isUseTriIndex: boolean): void;
        protected getGroupConfig(baseUrl: string): string;
        protected onTilesetJson(tilesetJson): void;
    }

    /**
      * DrawseeTileLayer 用于打开和显示Drawsee格式的倾斜摄影数据
      */
    class DrawseeTileLayer extends TileLayerBase {
        /**
          * DrawseeTileLayer 用于打开和显示Drawsee格式的倾斜摄影数据
          * @param earthViewer 
          * @param name 图层名
          * @param url 数据url，指向数据的根目录
          * @param offsetMeters 如果数据位置有小范围偏差，可以提供此参数进行位移修正。比如匹配地形时，通常需要调整高度
         */
        constructor(earthViewer: EarthViewer, name: string, url: string, offsetMeters?: Vector3);
        /**
          * 
          * @param meshes 
          * @returns 
         */
        protected adjustLoadOrder(meshes: TileMeshBase[]): TileMeshBase[];
        /**
          * 
          * @param subMeshes 
         */
        protected updateChunkList(subMeshes: Array<TileSubMesh>): void;
        /**
          * 
          * @param position 
          * @param rootUrl 
          * @param isUseTriIndex 
          * @param bounds 
          * @param indexFileName 
          * @returns 
         */
        public addOneObjectFromInfo(position: Vector3, rootUrl: string, isUseTriIndex: boolean, bounds: Box, indexFileName: string): TileMeshGeoObjectBase;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
        /**
          * 
         */
        public onAfterLoadConfig(): void;
    }

    class BimTextureResult {
        public textue: ITexture;
        public toBindTexture: ITexture;
    }

    enum BimNodeType {
        Unknown = 0,
        Null = 1,
        Marker = 2,
        Skeleton = 3,
        Mesh = 4,
    }

    class BimNode {
        public readonly scene: BimScene;
        public readonly no: number;
        public readonly name: string;
        constructor(scene: BimScene, no: number, name: string);
        public level: number;
        public readonly fatherNode: BimNode;
        public readonly isAllSubNodeVisible: boolean;
        public readonly isVisible: boolean;
        public readonly namePath: string;
        public readonly subCount: number;
        public type: number;
        public addSubNode(sub: BimNode): void;
        public enumSubNodes(maxDownLevel?: number): BimNode[];
        public findSubNodes(namePath: string): BimNode[];
        public getSubNode(index: number): BimNode;
    }

    /**
      * BimNodeSource BimNode来源，可以是string | BimNode | BimNode[] | number | number[]等。
      */
    export type BimNodeSource = string | BimNode | BimNode[] | number | number[];

    /**
      * BimScene Bim场景对象，一般对应于一个Fbx文件或者合并后的多个文件，包括结点和材质
      */
    class BimScene {
        /**
          * 所属Bim图层
         */
        public layer: BimTileLayer;
        /**
          * 
         */
        public readonly baseUrl: string;
        /**
          * 由BimTileLayer自动创建
          * @param layer 
          * @param baseUrl 
         */
        constructor(layer: BimTileLayer, baseUrl: string);
        /**
          * 是否自动更新下级结点可见情况，缺省true
         */
        public isAutoUpdateSubNodeVisible: boolean;
        /**
          * 当场景加载结束时发出，通常可以在该消息进行结点显隐的初始设置
         */
        public onLoadReady: Observable<void>;
        /**
          * 
         */
        public readonly isUseBlockTexture: boolean;
        /**
          * 场景的根结点，可以从此获取树状结构信息
         */
        public readonly rootNode: BimNode;
        /**
          * 清除选中结点
         */
        public clearPicked(): void;
        /**
          * 
          * @param name 
          * @returns 
         */
        public getMaterialGroup(name: string): number[];
        /**
          * 
          * @param no 
          * @returns 
         */
        public getMaterialName(no: number): string;
        /**
          * 用编号获取结点。由于加载时会剔除无用结点，所以结点编号不一定连续，获取对象时需检查是否有效
          * @param no 编号
          * @returns 结点对象
         */
        public getNode(no: number): BimNode;
        /**
          * 结点个数
         */
        public getNodeCount(): number;
        /**
          * 获取选中结点
         */
        public getPicked(): number[];
        /**
          * 判断结点是否可见
          * @param nodeNo 结点号
          * @returns 
         */
        public isNodeVisible(nodeNo: number): boolean;
        /**
          * 
          * @param nodeSource 
          * @returns 
         */
        public nodeSourceToNodeNos(nodeSource: BimNodeSource): number[];
        /**
          * 
          * @param param 
          * @returns 
         */
        public recycle(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param param 
         */
        public registerDataTask(param: AsyncRenderableParam): void;
        /**
          * 设置指定结点的Lod系数，这样可以实现某些物体远处即可清晰显示。会有一定的性能损失，不要设置太多
          * @param nodeSource 结点集合
          * @param lod Lod系数
         */
        public setNodeLodRatio(nodeSource: BimNodeSource, lod: number): void;
        /**
          * 设置结点的可见性，可以用名称路径，结点号，结点对象，或者相应的数组
          * @param nodeOrNos 
          * @param isVisible 
         */
        public setNodeVisible(nodeSource: BimNodeSource, isVisible: boolean): void;
        /**
          * 设置选中的结点，可以用名称路径，结点号，结点对象，或者相应的数组
          * @param nodeOrNos 
         */
        public setPicked(nodeSource: BimNodeSource): void;
    }

    /**
      * BimGeoObject，与BimNode一一对应的空间对象，只能用于获取点位置和包围盒信息，不能获取具体的点数据。其他GeoObject3功能如标注、各种距离显示控制等均无效
      * 叶结点对应真实Mesh，中间结点起组织作用，包围盒是下级结点的并集。
      */
    class BimGeoObject extends GeoObject3 {
        /**
          * 对应的结点对象
         */
        public readonly node: BimNode;
        /**
          * 系统加载时自动创建
          * @param node 
          * @param renderContext 
          * @param position 
         */
        constructor(node: BimNode, renderContext: RenderContext3, position: Vector3);
        /**
          * 
          * @param value 
         */
        protected onIsPickedChanged(value: boolean): void;
    }

    /**
      * BimMaterialBinding 针对Bim图层的材质绑定，可以设定指定结点集合使用特定插件
      */
    class BimMaterialBinding extends MaterialBindingBase {
        /**
          * 排除的材质编号
         */
        public excludeMaterialNos: number[];
        /**
          * 排除的结点编号
         */
        public excludeNodes: BimNodeSource;
        /**
          * 包括的材质编号
         */
        public materialNos: number[];
        /**
          * 包括的结点源，可以用结点路径名称或者编号，或者其数组
         */
        public nodes: BimNodeSource;
        /**
          * 
         */
        public readonly isReady: boolean;
        /**
          * 
          * @param chunks 
          * @param result 
         */
        public filterChunks(chunks: MeshChunk[], result: MeshChunk[]): void;
    }

    /**
      * BimTileLayer 专门用于管理Bim模型数据的图层，基本以Fbx数据模型为蓝本，内部包括BimScene，能够描述树状对象信息。同时以LOD方式组织数据的显示，
      * 支持对单个结点对象的显隐控制和选择操作
      */
    class BimTileLayer extends TileLayerRoot {
        /**
          * 创建Bim图层对象。通常需要使用position属性来指定经纬度基准位置
          * @param earthViewer earthViewer
          * @param name 图层名称
          * @param url bim数据的url目录
          * @param offsetMeters 移动位置，通常不用
         */
        constructor(earthViewer: EarthViewer, name: string, url: string, offsetMeters?: Vector3);
        /**
          * 是否为材质选择模式。该模式下，将高亮选中材质，不是整个结点
         */
        public isPickMaterial: boolean;
        /**
          * 
         */
        public readonly count: number;
        /**
          * 包含的场景对象 
         */
        public readonly scene: BimScene;
        /**
          * 
          * @param meshes 
          * @returns 
         */
        protected adjustLoadOrder(meshes: TileMeshBase[]): TileMeshBase[];
        /**
          * 
          * @param param 
          * @returns 
         */
        protected commitUpdateContents(param: AsyncRenderableParam): boolean;
        /**
          * 
         */
        protected getDefaultChunkRender(): MeshChunkRenderBase;
        /**
          * 
         */
        protected isNeedUpdateContent(): boolean;
        /**
          * 
         */
        protected isNeedUpdateContentIndex(): boolean;
        /**
          * 
          * @param binding 
         */
        protected onAddMaterialBinding(binding: MaterialBindingBase): void;
        /**
          * 
          * @param subMeshes 
         */
        protected updateChunkList(subMeshes: TileSubMesh[]): void;
        /**
          * 
          * @param position 
          * @param rootUrl 
          * @param isUseTriIndex 
          * @param bounds 
          * @param clipRadius 
          * @param indexFileName 
          * @returns 
         */
        public addOneObjectFromInfo(position: Vector3, rootUrl: string, isUseTriIndex: boolean, bounds: Box, indexFileName: string): TileMeshGeoObjectBase;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param result 
         */
        public enumRenderChunks(result: ElementChunk[]): void;
        /**
          * 通过名称路径查找BimGeoObject
          * @param namePath 名称路径
          * @returns 对象数组
         */
        public find(namePath: string): BimGeoObject[];
        /**
          * 通过名称路径查找第一个符合的BimGeoObject
          * @param namePath 名称路径
          * @returns 第一个找到对象或者null
         */
        public findFirst(namePath: string): BimGeoObject;
        /**
          * 获取BimGeoOjbect
          * @param index 此处index等用于编号
          * @returns 
         */
        public getAt(index: number): GeoObject3;
        /**
          * 获取BimGeoOjbect
          * @param no 对象编号
          * @returns 
         */
        public getByNo(no: number): GeoObject3;
        /**
          * 
         */
        public onAfterLoadConfig(): void;
        /**
          * 
          * @param worldPt1 
          * @param worldPt2 
          * @param resultPt 
          * @returns 
         */
        public pickByRay(worldPt1: Vector3, worldPt2: Vector3, resultPt: Vector3): PickableObject;
        /**
          * 
          * @param param 
          * @returns 
         */
        public recycle(param: AsyncRenderableParam): boolean;
        /**
          * 
          * @param param 
         */
        public registerDataTask(param: AsyncRenderableParam): void;
    }

    class BabylonFileHelper {
        public static IsCompressedData(buffer: any): boolean;
        public static LoadBabylonGzFile(rootUrl: string, fileName: string, scene: BABYLON.Scene, onSuccess: () => void): void;
        public static Uncompress(buffer: any): any;
    }

    /**
      * BabylonGeoObject 该类把Babylon Mesh封装为一个可以通过地球坐标操作的GeoObject，通过position属性，可以用地球坐标设置对象位置。在交互选择Babylon Mesh时，返回的也是该对象类。
      * 通过关联的Mesh对象，可以直接调用Babylon API。
      */
    class BabylonGeoObject extends PickableObject {
        /**
          * 
         */
        public readonly layer: BabylonLayer;
        /**
          * 创建对象BabylonGeoObject。该类把Babylon Mesh封装为一个可以通过地球坐标操作的GeoObject，通过position属性，可以用地球坐标设置对象位置。通过关联的Mesh对象，可以直接调用Babylon API。
          * @param layer 所属的BabylonLayer
          * @param mesh 关联的Babylon Mesh对象
         */
        constructor(layer: BabylonLayer, mesh: BABYLON.AbstractMesh);
        /**
          * 获取或者设置对象的地球坐标位置
         */
        public position: Vector3;
        /**
          * 对象所属图层名称
         */
        public readonly layerName: string;
        /**
          * 关联的Babylon Mesh对象
         */
        public readonly mesh: BABYLON.AbstractMesh;
        /**
          * 对象名称
         */
        public readonly name: string;
    }

    /**
      * BabylonLayer 在EarthViewer场景中融合Babylon的关键对象。对象创建时，自动创建了一个内置BABYLON.Scene，然后可以通过Babylon API创建各种对象，包括材质、Mesh等。
      * 该类通过设置position属性，可以在指定地球坐标，从而与其他的Drawsee对象绘制在同一坐标空间。
      * 该类提供了一些方法，可以在局部坐标与地球坐标直接进行转换，用于绘制或者计算。
      */
    class BabylonLayer extends Layer3 {
        /**
          * 创建新的BabylonLayer。该类是EarthViewer场景中融合Babylon的关键对象。对象创建时，自动创建了一个内置BABYLON.Scene，然后可以通过Babylon API创建各种对象，包括材质、Mesh等。
          * 通过设置position属性，可以在指定地球坐标，从而与其他的Drawsee对象绘制在同一坐标空间。
          * 提供了一些方法，可以在局部坐标与地球坐标直接进行转换，用于绘制或者计算。
          * @param earthViewer
          * @param name 名称，必须唯一，不能重名
          * @param autoCreateLight 是否自动创建光源
         */
        constructor(earthViewer: EarthViewer, name: string, autoCreateLight?: boolean);
        /**
          * 
         */
        public isAutoPosition: boolean;
        /**
          * 
         */
        public onAutoPositionUpdate: Observable<Layer3>;
        /**
          * 设置图层的基准地球坐标位置。以后通过Scene创建的对象，其坐标都是相对于该基准位置。
         */
        public position: Vector3;
        /**
          * 内部包含的BABYLON.Scene对象，用于创建所有后续对象
         */
        public readonly scene: Scene;
        /**
          * 
         */
        public transform: Matrix;
        /**
          * 在指定位置添加glTF格式的模型文件
          * @param position 地球坐标位置
          * @param gltfUrl glTF格式模型文件url
          * @returns Promise 以异步方式返回创建的BabylonGeoObject
         */
        public addModel(position: Vector3, gltfUrl: string): Promise<BabylonGeoObject>;
        /**
          * 清除所有对象
         */
        public clear(): void;
        /**
          * 清除对象的选中状态
         */
        public clearPickedObjects(): void;
        /**
          * 
          * @param param 
          * @returns 
         */
        public drawContents(param: AsyncRenderableParam): boolean;
        /**
          * 从地球坐标变换为局部坐标 
          * @param earth 地球坐标
          * @returns 局部坐标
         */
        public earthToLocal(earth: Vector3): Vector3;
        /**
          * 从地球坐标变换为局部坐标
          * @param earth 地球坐标
          * @param result 局部坐标结果
         */
        public earthToLocalToRef(earth: Vector3, result: Vector3): void;
        /**
          * 是否有需要动画绘制的对象
         */
        public hasAnimation(): boolean;
        /**
          * 从局部坐标变换为地球坐标
          * @param local 局部坐标
          * @returns 地球坐标
         */
        public localToEarth(local: Vector3): Vector3;
        /**
          * 从局部坐标变换为地球坐标
          * @param local 局部坐标
          * @param result 地球坐标结果
         */
        public localToEarthToRef(local: Vector3, result: Vector3): void;
        /**
          * 使用两点定义的射线选取一个对象
          * @param worldPt1 世界坐标系点1
          * @param worldPt2 世界坐标系点2
          * @param resultPt 如果选中则保存对象被击中的三维位置
          * @returns 选中对象或者null
         */
        public pickByRay(worldPt1: Vector3, worldPt2: Vector3, resultPt: Vector3): PickableObject;
    }

    interface ITerrainCalculator {
        /**
          * 
          * @param earthRange 
          * @param minLevel 
          * @param maxLevel 
          * @returns 
         */
        calculateApproximateHeightRange(earthRange: Rect, minLevel?: number, maxLevel?: number): Vector2;
        /**
          * 
          * @param earthX 
          * @param earthZ 
          * @returns 
         */
        calculateHeight(earthX: number, earthZ: number): number;
        /**
          * 
          * @param earthX 
          * @param earthZ 
          * @param resultHeight 
          * @param resultLevel 
          * @param minLevel 
          * @param maxLevel 
          * @returns 
         */
        calculateHeightAdvance(earthX: number, earthZ: number, resultHeight: RefValue<number>, resultLevel?: RefValue<number>, minLevel?: number, maxLevel?: number): boolean;
        /**
          * 
          * @param screenX 
          * @param screenY 
          * @param resultPt 
          * @returns 
         */
        calculateHitPosition(screenX: number, screenY: number, resultPt: Vector3): boolean;
        /**
          * 
          * @param worldPoints 
          * @param maxLevel 
          * @returns 
         */
        clampLine(worldPoints: Vector3[], maxLevel?: number): Vector3[];
        /**
          * 
          * @param worldPoints 
          * @param maxLevel 
          * @returns 
         */
        clampPolygon(worldPoints: Vector3[], maxLevel?: number): Vector3[];
        /**
          * 
          * @param result 
          * @param earthRange 
          * @param maxLevel 
         */
        enumRenderChunksInRange(result: ElementChunk[], earthRange: Rect, maxLevel?: number): void;
        /**
          * 
          * @param box 
          * @returns 
         */
        intersectBox(box: Box): boolean;
        /**
          * 
          * @param earthPt1 
          * @param earthPt2 
          * @returns 
         */
        intersectRay(earthPt1: Vector3, earthPt2: Vector3): Vector3;
    }

    class TerrainConst {
        public static MaxDetailLevel: number;
        public static MinDetailLevel: number;
        public static NullElevation: number;
        public static RootLevel: number;
    }

    class ValueGrid {
        constructor(width: number, height: number);
        public readonly height: number;
        public readonly width: number;
        public calcValueRange(minValue: RefValue<number>, maxValue: RefValue<number>): void;
        public getItem(x: number, y: number): number;
        public setItem(x: number, y: number, value: number): void;
    }

    class DemGridSurface {
        constructor(origin: Vector2, step: number, xCount: number, zCount: number);
        public readonly bounds: Rect;
        public readonly step: number;
        public readonly valueGrid: ValueGrid;
    }

    class HeightGrid {
        constructor(array?: ArrayLike<number>);
        public readonly data: Float32Array;
        public clone(): HeightGrid;
        public fill(value: number): void;
        public getAt(x: number, y: number): number;
        public setAt(x: number, y: number, value: number): void;
        public static CreateDenseHeightArray(heights: HeightGrid, minSize: number): HeightGrid;
    }

    class TerrainMath {
        public static CalcPatchOriginPoint(coordSys: ICoordSystem3, level: number, xIndex: number, zIndex: number): Vector3;
        public static CalcPatchOriginPointToRef(coordSys: ICoordSystem3, level: number, xIndex: number, zIndex: number, result: Vector3): void;
    }

    class TerrainOverlayTexture {
        public graphics: Graphics3;
        constructor(graphics: Graphics3, points: Array<Vector2>, pixelSize?: number);
        public readonly range: Rect;
        public readonly texture: ITexture;
        public calcPatchTextureTransform(patchEarthRange: Rect): Vector4;
    }

    class TerrainPatchCalc {
        constructor(originPt: Vector3, triPointLonLats: Vector2Array, triPoints: Vector3Array);
        public calculateHeight(renderContext: RenderContext3, X: number, Z: number): number;
        public clampPolygon(coordsys: ICoordSystem3, clipPointsWorld: Vector3[], resultTrainglePoints: RefValue<Array<Vector3>>): boolean;
        public clipOneSegment(renderContext: RenderContext3, worldPt1: Vector3, worldPt2: Vector3, resultPoints: RefValue<Array<Vector3>>): boolean;
        public getTrianglePointsWorld(): Array<Vector3>;
        public isIntersect(worldPt1: Vector3, worldPt2: Vector3, resultPt: Vector3): boolean;
        public isPlaneIntersect(worldPt1: Vector3, worldPt2: Vector3): boolean;
        public toGlobalCoord(pt: Vector3): Vector3;
        public toGlobalCoordV(pt: Vector3): Vector3;
        public toLocalCoord(pt: Vector3): Vector3;
        public toLocalCoordV(pt: Vector3): Vector3;
    }

    class TerrainPatch implements IDisposable {
        public level: number;
        public xIndex: number;
        public zIndex: number;
        constructor(surface: TerrainSurface, level: number, xIndex: number, zIndex: number, vertexes: Vertex3Array, triangles: Triangle3Array, mainTriangleCount: number, mainVertexCount: number, heights: HeightGrid, isZeroHeight: boolean);
        public readonly bounds: Box;
        public readonly handle: QuadtreeHandle;
        public readonly heights: HeightGrid;
        public readonly heightsDetail: HeightGrid;
        public readonly math: TerrainPatchCalc;
        public readonly radius: number;
        public readonly triangleCount: number;
        public addToRenderChunkList(resultChunks: Array<TerrainChunk>, texture: ITexture, textureParams: Vector4, overlayTextures: AsyncTextureCollection, overlayTextureParams: Vector4,
            node: TerrainIndexNode, isNoDepth: boolean, isAsZeroHeightBackground: boolean): void;
        public createSubPatch(subLevel: number, xIndex: number, zIndex: number): TerrainPatch;
        public dispose(): void;
        public getElevationChunk(): ElementChunk;
        public getMainChunk(): ElementChunk;
        public getTrianglePointsWorld(): Array<Vector3>;
        public static readonly HEIGHT_MATRIX_SIZE: number;
        public static readonly HEIGHT_NULL: number;
        public static readonly PATCH_SIZE: number;
    }

    class PatchHeightsData {
        public level: number;
        public xIndex: number;
        public zIndex: number;
        public data: Uint8Array;
        constructor(level: number, xIndex: number, zIndex: number, data: Uint8Array);
    }

    class TerrainPatchFactory {
        public static CreateFromBytes(terrainSurface: TerrainSurface, data: Uint8Array, tilingHandle: QuadtreeHandle): TerrainPatch;
        public static CreatePatchFromHeights(terrainSurface: TerrainSurface, heightsDefine: HeightGrid, level: number, xIndex: number, zIndex: number, isZeroHeight?: boolean): TerrainPatch;
        public static CreateTriangleWithZeroHeight(terrainSurface: TerrainSurface, level: number, xIndex: number, zIndex: number): TerrainPatch;
        public static ExtractPatchHeightsData(patchBlocks: Uint8Array): Array<PatchHeightsData>;
    }

    class TerrainPatchIndexCalc {
        public layer: TerrainLayer;
        public index: TerrainIndex;
        constructor(layer: TerrainLayer, index: TerrainIndex);
        public calculateApproximateHeightRange(earthRange: Rect, minLevel?: number, maxLevel?: number): Vector2;
        public calculateHeight(earthX: number, earthZ: number): number;
        public calculateHeightAdvance(earthX: number, earthZ: number, resultHeight: RefValue<number>, resultLevel: RefValue<number>, minLevel?: number, maxLevel?: number): boolean;
        public calculateHitPosition(screenX: number, screenY: number, resultPt: Vector3): boolean;
        public clampLine(worldPoints: Vector3[], maxLevel?: number): Vector3[];
        public clampPolygon(srcPoints: Vector3[], maxLevel?: number): Vector3[];
        public enumRenderChunksInRange(result: ElementChunk[], earthRange: Rect, maxLevel?: number): void;
        public pickByRay(worldPt1: Vector3, worldPt2: Vector3, resultPt: Vector3): boolean;
        public updatePatchIndex(): void;
    }

    class TerrainIndexNodeBase {
        public level: number;
        public xIndex: number;
        public zIndex: number;
        constructor(level: number, xIndex: number, zIndex: number);
        public earthCenter: Vector2;
        public earthRange: Rect;
        public father: TerrainIndexNodeBase;
        public handle: QuadtreeHandle;
        public radius: number;
        public worldCenter: Vector3;
        public addSub(sub: TerrainIndexNodeBase): void;
        public getSubs(): Array<TerrainIndexNodeBase>;
        public initOnAlloc(): void;
        public setParams(father: TerrainIndexNodeBase, level: number, xIndex: number, zIndex: number): void;
    }

    class TerrainIndexNode extends TerrainIndexNodeBase {
        public index: TerrainIndex;
        constructor(index: TerrainIndex, terrainSurface: TerrainSurface, textureSurface: TextureSurface);
        public readonly isReadyForDraw: boolean;
        public readonly patch: TerrainPatch;
        protected checkAllSubsReadyForDraw(): boolean;
        public addToRenderChunkList(resultChunks: TerrainChunk[], isNoDepth: boolean, isAsZeroHeightBackground: boolean): void;
        public initOnAlloc(): void;
        public loadData(): void;
        public markStatus(): void;
        public prepareData(): void;
        public setParams(father: TerrainIndexNode, level: number, xIndex: number, zIndex: number): void;
        public static BindDataMarkStatus(root: TerrainIndexNode): void;
        public static IsNodesReadyForDraw(nodes: Array<TerrainIndexNode>): boolean;
        public static MarkStatusRecursive(node: TerrainIndexNode): void;
    }

    class TerrainIndexBase<TNode extends TerrainIndexNodeBase> {
        public earthViewer: EarthViewer;
        constructor(earthViewer: EarthViewer);
        protected allocSubNode(): TNode;
        protected calcNodeRange(level: number, xIndex: number, zIndex: number): Rect;
        protected checkIsNeedDonwFill(renderContext: RenderContext3): boolean;
        protected createOneSubNode(): TNode;
        protected getDataRange(): Rect;
        protected isNearestPatches(node: TNode, ratio?: number): boolean;
        protected isNeedSplitFinal(node: TNode): boolean;
        protected onAfterDownFillNodes(): void;
        protected onBeforeDownFillNodes(): void;
        protected preCreateSubNodes(): void;
        protected prepareDownFillParams(): void;
        protected resetNodesForDownFill(): void;
        public enumNodes(): Array<TNode>;
        public enumRootNodes(): Array<TNode>;
        public updateIndex(param: AsyncRenderableParam): boolean;
    }

    class TerrainIndex extends TerrainIndexBase<TerrainIndexNode> {
        public layer: TerrainLayer;
        constructor(layer: TerrainLayer, terrainSurface: TerrainSurface, textureSurface: TextureSurface);
        protected checkIsNeedDonwFill(renderContext: RenderContext3): boolean;
        protected createOneSubNode(): TerrainIndexNode;
        protected isNeedSplitFinal(node: TerrainIndexNode): boolean;
        protected onAfterDownFillNodes(): void;
        protected onBeforeDownFillNodes(): void;
    }

    /**
      * ITerrainProvider 
      */
    interface ITerrainProvider extends IAsyncReady, INameObject {
        /**
          * extent
         */
        extent: GeoExtent;
        /**
          * isReady
         */
        isReady: boolean;
        /**
          * maxLevel
         */
        maxLevel: number;
        /**
          * onReady
         */
        onReady: Observable<ITerrainProvider>;
        /**
          * isAvailable
          * @param handle 
          * @returns 
         */
        isAvailable(handle: QuadtreeHandle): boolean;
        /**
          * isLoading
          * @param handle 
          * @returns 
         */
        isLoading(handle: QuadtreeHandle): boolean;
        /**
          * loadPatchAsync
          * @param terrainSurface 
          * @param handle 
          * @returns 
         */
        loadPatchAsync(terrainSurface: TerrainSurface, handle: QuadtreeHandle): Promise<TerrainPatch>;
    }

    class TerrainSurface implements IDisposable {
        constructor(earthViewer: EarthViewer, terrainProvider: ITerrainProvider);
        public maxTerrainLevel: number;
        public readonly earthViewer: EarthViewer;
        public accessPatch(handle: QuadtreeHandle): TerrainPatch;
        public collectGabage(): void;
        public dispose(): void;
        public loadPatch(handle: QuadtreeHandle): void;
    }

    class AsyncTextureCollection {
        public handle: QuadtreeHandle;
        constructor(handle: QuadtreeHandle, readers: Array<any>);
        public readonly isNeedToLoad: boolean;
        public readonly isReady: boolean;
        public readonly textureAlphas: Array<number>;
        public readonly textures: Array<ImageTexture>;
        public accessAndMarkStatus(): void;
        public load(): void;
        public prepare(): void;
    }

    class TerrainPatchTexture {
        public readonly isNeedToLoad: boolean;
        public readonly isReady: boolean;
        public readonly overlayTextures: AsyncTextureCollection;
        public readonly texture: ITexture;
        public bindTextureMarkStatus(): void;
        public load(isBadDataRef: RefValue<boolean>): void;
        public prepare(): void;
    }

    class TextureSurface implements IDisposable {
        constructor(earthViewer: EarthViewer);
        public accessTexture(handle: QuadtreeHandle): TerrainPatchTexture;
        public collectGabage(): void;
        public dispose(): void;
        public loadTexture(handle: QuadtreeHandle, isBadDataRef: RefValue<boolean>, isWaitingLoading: boolean): TerrainPatchTexture;
        public open(provider: IImageProvider): boolean;
    }

    class TerrainLayer extends Layer3 implements ITerrainCalculator {
        constructor(earthViewer: EarthViewer, terrainSurface: TerrainSurface, textureSurface: TextureSurface);
        public readonly isRootNodesDrawn: boolean;
        public calculateApproximateHeightRange(earthRange: Rect, minLevel?: number, maxLevel?: number): Vector2;
        public calculateHeight(earthX: number, earthZ: number): number;
        public calculateHeightAdvance(earthX: number, earthZ: number, resultHeight: RefValue<number>, resultLevel: RefValue<number>, minLevel?: number, maxLevel?: number): boolean;
        public calculateHitPosition(screenX: number, screenY: number, resultPt: Vector3): boolean;
        public clampLine(worldPoints: Vector3[], maxLevel: number): Vector3[];
        public clampPolygon(worldPoints: Vector3[], maxLevel: number): Vector3[];
        public drawContents(param: AsyncRenderableParam): boolean;
        public enumRenderChunks(result: ElementChunk[]): void;
        public enumRenderChunksInRange(result: ElementChunk[], earthRange: Rect, maxLevel?: number): void;
        public getLeafNodesForCalc(maxLevel?: number): TerrainIndexNode[];
        public intersectBox(box: Box): boolean;
        public intersectRay(earthPt1: Vector3, earthPt2: Vector3): Vector3;
        public isRendering(): boolean;
        public pickByRay(worldPt1: Vector3, worldPt2: Vector3, resultPt: Vector3): PickableObject;
        public recycle(param: AsyncRenderableParam): boolean;
        public registerDataTask(param: AsyncRenderableParam): void;
        public updateContents(param: AsyncRenderableParam): boolean;
        public updateIndex(param: AsyncRenderableParam): void;
    }

    /**
      * DrawseeTerrainProvider 
      */
    class DrawseeTerrainProvider extends TObject implements ITerrainProvider {
        /**
          * 
          * @param terrainUrl 
         */
        constructor(terrainUrl: string);
        /**
          * 
         */
        public onReady: Observable<ITerrainProvider>;
        /**
          * 
         */
        public readonly extent: GeoExtent;
        /**
          * 
         */
        public readonly isReady: boolean;
        /**
          * 
         */
        public readonly maxLevel: number;
        /**
          * 
         */
        public readonly name: string;
        /**
          * 
          * @param handle 
          * @returns 
         */
        public isAvailable(handle: QuadtreeHandle): boolean;
        /**
          * 
          * @param handle 
          * @returns 
         */
        public isLoading(handle: QuadtreeHandle): boolean;
        /**
          * 
          * @param terrainSurface 
          * @param handle 
          * @returns 
         */
        public loadPatchAsync(terrainSurface: TerrainSurface, handle: QuadtreeHandle): Promise<TerrainPatch>;
    }

    class TerrainProvider extends DrawseeTerrainProvider {
        constructor(terrainUrl: string);
    }

    class TerrainPatchTriangleData {
        public verts: Vertex3Array;
        public triangles: Triangle3Array;
        public mainTriangleCount: number;
        public mainVertexCount: number;
        constructor(verts: Vertex3Array, triangles: Triangle3Array, mainTriangleCount: number, mainVertexCount: number);
        public heightGrid: HeightGrid;
    }

    class QuantizedMeshTerrainData {
        public static CreatePatchData(buffer: ArrayBufferLike, heightGrid?: HeightGrid): TerrainPatchTriangleData;
    }

    /**
      * CesiumTerrainProvider Cesium .terrain格式地形服务
      */
    class CesiumTerrainProvider extends TObject implements ITerrainProvider {
        /**
          * 创建.terrain地形。指定url或者通过高级选项。对于根目录没有layer.json的数据，需要通过options指定extent, maxLevel才能正常打开
          * @param url 
         */
        constructor(urlOrOptions: string | ITileProviderOptions);
        /**
          * 
         */
        public onReady: Observable<ITerrainProvider>;
        /**
          * 
         */
        public readonly extent: GeoExtent;
        /**
          * 
         */
        public readonly isReady: boolean;
        /**
          * 
         */
        public readonly maxLevel: number;
        /**
          * 
         */
        public readonly name: string;
        /**
          * 
          * @param handle 
          * @returns 
         */
        public isAvailable(handle: QuadtreeHandle): boolean;
        /**
          * 
          * @param handle 
          * @returns 
         */
        public isLoading(handle: QuadtreeHandle): boolean;
        /**
          * 
          * @param terrainSurface 
          * @param handle 
          * @returns 
         */
        public loadPatchAsync(terrainSurface: TerrainSurface, handle: QuadtreeHandle): Promise<TerrainPatch>;
    }

    class GroundLine {
        public renderContext: RenderContext3;
        public worldPoints: Vector3[];
        constructor(renderContext: RenderContext3, worldPoints: Vector3[]);
        public dispose(): void;
        public getWorldClampPoints(): Array<Vector3>;
        public prepareGroundHeight(): boolean;
    }

    class FrustumOutlineRender {
        public static RenderOutlines(layer: ShapeLayer, position: Vector3, direction: Vector3, horizontalAngleRange: number, verticalAngleRange: number, farDistance: number, color: Color, isArcFace?: boolean): void;
    }

    class ViewAnalysisHelper {
        public static EnumLayerChunksAndRender(renderContext: RenderContext3, effect: Effect, targetLayers: Layer3[], frustumPlanes?: Plane[]): boolean;
        public static FilterChunksByRange(range: Rect, chunks: ElementChunk[]): ElementChunk[];
        public static FilterChunksInFrustum(frustumPlanes: Plane[], worldCameraCenter: Vector3, chunks: ElementChunk[]): ElementChunk[];
        public static FilterNoDepthChunks(chunks: ElementChunk[]): ElementChunk[];
    }

    class TextureRenderBase {
        public earthViewer: EarthViewer;
        public renderTargetSize: number;
        constructor(earthViewer: EarthViewer, effectName: string, effectOptions: any, renderFunc: (render: TextureRenderBase) => void, renderTargetSize: number);
        public readonly renderTargetTexture: RenderTargetTexture;
        public readonly texture: ITexture;
        public bindEffectParams(viewProjection?: Matrix): void;
        public dispose(): void;
        public getEffect(): Effect;
        public isEffectReady(): boolean;
    }

    class OrthoRenderBase extends TextureRenderBase {
        public earthViewer: EarthViewer;
        public renderTargetSize: number;
        constructor(earthViewer: EarthViewer, effectName: string, effectOptions: any, getChunksFunc: () => ElementChunk[], renderTargetSize: number);
        public range: Rect;
        protected prepareViewProjection(): Matrix;
        protected renderChunks(camera: IWorldCamera, chunks: ElementChunk[]): void;
    }

    class ElevationRender extends OrthoRenderBase {
        public earthViewer: EarthViewer;
        public renderTargetSize: number;
        constructor(earthViewer: EarthViewer, renderFunc: () => void, renderTargetSize: number);
        public bindEffectParams(viewProjection?: Matrix): void;
    }

    class ImageColorRender extends OrthoRenderBase {
        public earthViewer: EarthViewer;
        public renderTargetSize: number;
        constructor(earthViewer: EarthViewer, getChunksFunc: () => ElementChunk[], renderTargetSize: number);
        protected renderChunks(camera: IWorldCamera, chunks: ElementChunk[]): void;
    }

    class DepthRender extends TextureRenderBase {
        public earthViewer: EarthViewer;
        public renderTargetSize: number;
        constructor(earthViewer: EarthViewer, renderFunc: (render: TextureRenderBase) => void, renderTargetSize: number);
    }

    /**
      * LayerViewBase 分析视图的祖先类
      */
    class LayerViewBase implements IDisposable {
        /**
          * 
         */
        public earthViewer: EarthViewer;
        /**
          * 
          * @param earthViewer 
          * @param typeName 
         */
        constructor(earthViewer: EarthViewer, typeName: string);
        /**
          * 
         */
        protected readonly name: string;
        /**
          * 透明度
         */
        public alpha: number;
        /**
          * 是否可见
         */
        public isVisible: boolean;
        /**
          * 
          * @param effect 
          * @param worldCamera 
          * @param world 
          * @returns 
         */
        protected bindCameraMatrix(effect: Effect, worldCamera: IWorldCamera, world: Matrix);
        /**
          * 
         */
        protected isEffectReady(): boolean;
        /**
          * 释放资源。当销毁各类视图时，需要调用该函数
         */
        public dispose(): void;
    }

    /**
      * PostLayerViewBase 叠加绘制的分析视图祖先类。通常是在所有图层绘制完毕之后叠加绘制分析结果
      */
    class PostLayerViewBase extends LayerViewBase {
        /**
          * 
          * @param earthViewer 
          * @param typeName 
         */
        constructor(earthViewer: EarthViewer, typeName: string);
        /**
          * 
         */
        protected render(): void;
        /**
          * 
         */
        public dispose(): void;
    }

    class PreLayerViewBase extends LayerViewBase {
        constructor(earthViewer: EarthViewer, typeName: string);
        protected render(): void;
        public dispose(): void;
    }

    /**
      * TexturePostLayerViewBase 以纹理方式叠加分析结果的视图祖先类
      */
    class TexturePostLayerViewBase extends PostLayerViewBase {
        /**
          * 
          * @param earthViewer 
          * @param typeName 
         */
        constructor(earthViewer: EarthViewer, typeName: string);
        /**
          * 叠加结果的目标图层
         */
        public targetLayers: Layer3[];
        /**
          * 叠加源纹理，可以是字符串url，图片纹理对象，或者视频纹理对象等
         */
        public texture: string | ITexture;
        /**
          * 
          * @param effect 
         */
        protected bindTexture(): void;
        /**
          * 
         */
        protected clearTexture(): void;
        /**
          * 
         */
        public dispose(): void;
    }

    /**
      * ClassifyView 分类视图。通常用于倾斜摄影单体化
      */
    class ClassifyView extends PostLayerViewBase {
        /**
          * 创建分析视图。通常用于倾斜摄影单体化
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 高亮颜色
         */
        public highlightColor: Color;
        /**
          * 是否始终显示标注。此设置优先于isOnlyPickedVisible
         */
        public isAnnoAlwaysVisible: boolean;
        /**
          * 是否只显示选中对象和标注
         */
        public isOnlyPickedVisible: boolean;
        /**
          * 是否允许选择
         */
        public isPickable: boolean;
        /**
          * 显示选中对象的包围盒
         */
        public isPickedShapeVisible: boolean;
        /**
          * 是否显示包围盒轮廓
         */
        public isShapeVisible: boolean;
        /**
          * 关联的内置包围盒图层。用于添加每个单体化对象的包围盒。需要是Box，PolyBox，Ball，Cylinder这些封闭形状。
         */
        public readonly shapeLayer: ShapeLayer;
        /**
          * 
         */
        protected render(): void;
        /**
          * 
         */
        public dispose();
    }

    class ClipView {
        public earthViewer: EarthViewer;
        public name: string;
        public layers: Array<Layer3>;
        public region: Array<Vector3>;
        public heigthRange: Vector2;
        constructor(earthViewer: EarthViewer, name: string, layers: Array<Layer3>, region: Array<Vector3>, heigthRange: Vector2);
        public isReverse: boolean;
    }

    /**
      * OverlayView 叠加方式显示分析结果的视图
      */
    class OverlayView extends TexturePostLayerViewBase {
        /**
          * 创建纹理叠加分析视图
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 叠加纹理对应的地球坐标方位
         */
        public range: Rect;
        /**
          * 
         */
        protected render(): void;
    }

    /**
      * HeatmapDataPoint 热力图点数据
      */
    class HeatmapDataPoint {
        /**
          * 经度坐标
         */
        public lon: number;
        /**
          * 纬度坐标
         */
        public lat: number;
        /**
          * 数据值
         */
        public value: number;
        /**
          * 创建热力图数据点
          * @param lon 经度
          * @param lat 纬度
          * @param value 数据
         */
        constructor(lon: number, lat: number, value: number);
    }

    /**
      * HeatmapView 热力图叠加分析视图
      */
    class HeatmapView extends OverlayView {
        /**
          * 创建热力图叠加分析视图
          * @param earthViewer 
          * @param heatmapSetting 热力图设置参数，详细设置参考 https://www.patrick-wied.at/static/heatmapjs/docs.html
         */
        constructor(earthViewer: EarthViewer, heatmapSetting?: any);
        /**
          * 设置点数组，系统会自动激发重新绘制。如果没有指定最小值或者最大值，系统会自动计算
          * @param dataPoints 热力点数组
          * @param minValue 最小值
          * @param maxValue 最大值
         */
        public setData(dataPoints: Array<HeatmapDataPoint>, minValue?: number, maxValue?: number): void;
    }

    /**
      * ProjectViewBase 以透视投影方式叠加分析结果的视图祖先类
      */
    class ProjectViewBase extends TexturePostLayerViewBase {
        /**
          * 
          * @param earthViewer 
          * @param typeName 
         */
        constructor(earthViewer: EarthViewer, typeName: string);
        /**
          * 投影中心线方向。以正北方向为z轴正向，向上为y轴正向，面对屏幕向右为x轴正向
         */
        public direction: Vector3;
        /**
          * 投影的最远距离，超过的像素会被裁掉
         */
        public farDistance: number;
        /**
          * 水平投影角度范围，度
         */
        public horizontalAngleRange: number;
        /**
          * 是否显示投影视锥轮廓线
         */
        public isOutlineVisible: boolean;
        /**
          * 视锥轮廓线颜色
         */
        public outlineColor: Color;
        /**
          * 投影源点位置
         */
        public position: Vector3;
        /**
          * 竖直投影角度范围，度
         */
        public verticalAngleRange: number;
        /**
          * 
          * @param effect 
         */
        protected onAfterBindEffectParams(effect: Effect): void;
        /**
          * 
         */
        protected render(): void;
        /**
          * 
          * @param effect 
          * @returns 
         */
        protected renderLayerChunks(effect: Effect): boolean;
        /**
          * 
         */
        protected renderOutline(): void;
        /**
          * 
         */
        protected updateViewProjection(): void;
        /**
          * 
         */
        public dispose(): void;
    }

    /**
      * ProjectView 以透视投影方式叠加分析结果的视图
      */
    class ProjectView extends ProjectViewBase {
        /**
          * 创建透视投影分析视图
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 
          * @param effect 
         */
        protected onAfterBindEffectParams(effect: Effect): void;
    }

    /**
      * Viewshed 可视域分析视图。红色表示不可见区域，绿色为可见区域
      */
    class Viewshed extends ProjectViewBase {
        /**
          * 
         */
        public renderTargetSize: number;
        /**
          * 创建可视域分析视图
          * @param earthViewer 
          * @param renderTargetSize 一般自动使用系统缺省值1024
         */
        constructor(earthViewer: EarthViewer, renderTargetSize?: number);
        /**
          * 
          * @param effect 
         */
        protected onAfterBindEffectParams(effect: Effect): void;
        /**
          * 
         */
        public dispose(): void;
        /**
          * 
         */
        public getDepthTexture(): ITexture;
    }

    class SpatialViewBase {
        public earthViewer: EarthViewer;
        public shaderName: string;
        public shaderFrag: string;
        constructor(earthViewer: EarthViewer, shaderName: string, shaderFrag: string);
        public isVisible: boolean;
        protected init(): void;
    }

    /**
      * SkylineView 天际线分析对象。宽度目前固定1像素
      */
    class SkylineView extends SpatialViewBase {
        /**
          * 创建SkylineView
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 线颜色
         */
        public color: Color;
        /**
          * 
         */
        protected init(): void;
    }

    /**
      * SlopeView 管理地形坡度分析的类。坡度值从0-90度
      */
    class SlopeView extends SpatialViewBase {
        /**
          * earthViewer
         */
        public earthViewer: EarthViewer;
        /**
          * 创建 SlopeView
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 透明度
         */
        public alpha: number;
        /**
          * 最远课件距离
         */
        public maxVisibleDistance: number;
        /**
          * 颜色表，用于设置指定坡度的颜色。坡度值使用0-90角度值。系统有缺省红蓝颜色表
         */
        public readonly colorTable: ColorTable;
        /**
          * 
         */
        protected init(): void;
    }

    /**
      * ElevationView 地形高程分析视图，实时生成当前视野附近的正射高程纹理和影像纹理，用于gpu高程相关计算
      */
    class ElevationView extends PreLayerViewBase {
        /**
          * 创建地形高程分析视图
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 
         */
        public isTerrainOnly: boolean;
        /**
          * 
         */
        public onAfterUpdate: Observable<void>;
        /**
          * 
         */
        public onBeforeUpdate: Observable<void>;
        /**
          * 获取高程纹理
         */
        public readonly elevationTexture: ITexture;
        /**
          * 获取视图的范围
         */
        public readonly range: Rect;
        /**
          * 
         */
        protected render(): void;
        /**
          * 系统保留
         */
        public dispose(): void;
    }

    class TerrainImageView extends PreLayerViewBase {
        constructor(earthViewer: EarthViewer, imageColorLevel: number);
        public readonly imageColorTexture: ITexture;
        public readonly range: Rect;
        protected render(): void;
        public dispose(): void;
        public isReadyAsync(): Promise<boolean>;
    }

    class DepthView extends PreLayerViewBase {
        constructor(earthViewer: EarthViewer);
        public readonly depthTexture: ITexture;
        public dispose(): void;
    }

    class CloudGenerator {
        public readonly layer: BabylonLayer;
        public readonly radius: number;
        constructor(layer: BabylonLayer, radius: number, texture: BABYLON.Texture);
        public checkCloudUpdate(): void;
        public clear(): void;
        public enumMeshes(): BABYLON.Mesh[];
        public updateMeshesBySunPositionRatio(): void;
    }

    class SkyRenderBase {
        public readonly earthViewer: EarthViewer;
        constructor(earthViewer: EarthViewer);
        public readonly layer: BabylonLayer;
        public changeCloud(): void;
    }

    class FlatSky extends SkyRenderBase implements ISkyRender {
        constructor(earthViewer: EarthViewer);
        public checkReadyForRendering(): boolean;
        public render(): boolean;
        public updateSunPosition(): void;
    }

    class CloudNoiseTexture {
        public scene: Scene;
        constructor(scene: Scene);
        public readonly density: BABYLON.Texture;
        public readonly detail3d: BABYLON.Texture;
        public readonly shape: BABYLON.Texture;
        public readonly shape3d: BABYLON.Texture;
        public executeOnReady(callback: () => void): void;
    }

    class CloudTxaa {
        public scene: Scene;
        public src: BABYLON.Texture;
        constructor(scene: Scene, src: BABYLON.Texture);
        public readonly result: BABYLON.ProceduralTexture;
        public resetFrame(): void;
        public update(): void;
    }

    class SkyBackground {
    }

    class CloudBlur {
        public scene: Scene;
        public src: BABYLON.Texture;
        constructor(scene: Scene, src: BABYLON.Texture, isTopFrag: boolean);
        public result: BABYLON.ProceduralTexture;
        public update(): void;
    }

    class CloudGaussBlur {
        public scene: Scene;
        public src: BABYLON.Texture;
        constructor(scene: Scene, src: BABYLON.Texture);
        public result: BABYLON.ProceduralTexture;
        public update(): void;
    }

    class VolCloudBase {
        public static CreateCubeProceduralTexture(scene: Scene, fragCode: string, size: number);
        public static CreateProceduralTexture(scene: Scene, fragCode: string, size: ISize);
        public static UpdateSunParams(earthViewer: EarthViewer, procTexture: BABYLON.ProceduralTexture): void;
        public static UpdateTexture(procTexture: BABYLON.ProceduralTexture): void;
    }

    class VolCloudShader {
    }

    interface IPartCloudTextureRoot {
        result: BABYLON.ProceduralTexture;
        update(): void;
    }

    class PartCloudTextureRoot {
        public earthViewer: EarthViewer;
        public textureFrag: string;
        constructor(earthViewer: EarthViewer, scene: Scene, textureSize: ISize, textureFrag: string);
        public readonly result: BABYLON.ProceduralTexture;
        public update(): void;
    }

    class PartCloudTextureBase extends PartCloudTextureRoot {
        constructor(earthViewer: EarthViewer, scene: Scene, noiseTexture: CloudNoiseTexture, textureSize: ISize,
            textureFrag: string);
        public update(): void;
    }

    interface IVolCloudTexture {
        onFinishUpdate: Observable<void>;
        sideTexture: BABYLON.Texture;
        topTexture: BABYLON.Texture;
        update(): void;
    }

    class VolCloudTextureBase<TPart extends IPartCloudTextureRoot> implements IVolCloudTexture {
        public earthViewer: EarthViewer;
        constructor(earthViewer: EarthViewer);
        public onFinishUpdate: Observable<void>;
        public readonly sideTexture: BABYLON.ProceduralTexture;
        public readonly topTexture: BABYLON.ProceduralTexture;
        public update(): void;
    }

    class VolCloudTexture extends VolCloudTextureBase<PartCloudTextureBase> {
        constructor(earthViewer: EarthViewer, scene: Scene, noiseTexture: CloudNoiseTexture, isAsFirstPass: boolean, baseSize: number, isAllowBlur: boolean, volCloudFragFunc?: () => string, onTextureCreated?: (volCloudTexture: VolCloudTexture) => void);
    }

    class VolCloudTwoPassTexture implements IVolCloudTexture {
        public earthViewer: EarthViewer;
        constructor(earthViewer: EarthViewer, scene: Scene, noiseTexture: CloudNoiseTexture, baseSize?: number);
        public onFinishUpdate: Observable<void>;
        public readonly sideTexture: BABYLON.Texture;
        public readonly topTexture: BABYLON.Texture;
        public update(): void;
    }

    class VolCloudBlend {
    }

    class VolSkyCube {
        public scene: Scene;
        public size: number;
        constructor(earthViewer, scene: Scene, noiseTexture: CloudNoiseTexture, volTexture: IVolCloudTexture, size?: number);
        public readonly texture: BABYLON.ProceduralTexture;
        public setSrcTexture(volTexture: IVolCloudTexture): void;
        public update(): void;
    }

    class VolSky extends SkyRenderBase implements ISkyRender {
        constructor(earthViewer: EarthViewer);
        public changeCloud(): void;
        public checkReadyForRendering(): boolean;
        public render(): boolean;
        public updateSunPosition(): void;
    }

    interface ISkyRender {
        changeCloud(): void;
        checkReadyForRendering(): boolean;
        render(): boolean;
        updateSunPosition(): void;
    }

    class SkySystem {
        public readonly earthViewer: EarthViewer;
        constructor(earthViewer: EarthViewer);
        public changeCloud(): void;
        public checkReadyForRendering(): boolean;
        public isBelowMaxRenderHeight(): boolean;
        public isSureToRender(): boolean;
        public render(): boolean;
        public updateSunPosition(): void;
    }

    /**
      * RenderContext3 显示上下文对象。获取相机、引擎等重要的显示系统对象
      */
    class RenderContext3 {
        /**
          * 
         */
        public earthViewer: EarthViewer;
        /**
          * 
          * @param graphics 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 
         */
        public backgroundColor: Color;
        /**
          * 相机对象
         */
        public camera: Camera;
        /**
          * 是否为地球坐标
         */
        public isEarthCoord: boolean;
        /**
          * 光线方向
         */
        public lightDirection: Vector3;
        /**
          * 坐标系统对象
         */
        public readonly coordSystem: ICoordSystem3;
        /**
          * 三维图形设备对象
         */
        public readonly graphics: Graphics3;
        /**
          * 
         */
        public readonly projection: IProjection;
        /**
          * 地形计算接口
         */
        public readonly terrainCalculator: ITerrainCalculator;
        /**
          * 
         */
        public terrainLeafLevel: number;
        /**
          * 
         */
        public beginFrame(): void;
        /**
          * 
         */
        public clearForceNotDraw(): void;
        /**
          * 
         */
        public endFrame(): void;
        /**
          * 
         */
        public getForceNotDraw(): boolean;
        /**
          * 
          * @param timeSpanMs 
         */
        public setForceNotDraw(timeSpanMs: number): void;
        /**
          * 
          * @param projection 
         */
        public setProjection(projection: IProjection): void;
    }

    class TerrainCalculator implements ITerrainCalculator {
        constructor(earthViewer: EarthViewer, modelGroundLayer: GroundLayer, terrainLayer?: TerrainLayer);
        public calculateApproximateHeightRange(earthRange: Rect, minLevel?: number, maxLevel?: number): Vector2;
        public calculateHeight(earthX: number, earthZ: number): number;
        public calculateHeightAdvance(earthX: number, earthZ: number, resultHeight: RefValue<number>, resultLevel?: RefValue<number>, minLevel?: number, maxLevel?: number): boolean;
        public calculateHitPosition(screenX: number, screenY: number, resultPt: Vector3): boolean;
        public clampLine(worldPoints: Vector3[], maxLevel?: number): Vector3[];
        public clampPolygon(worldPoints: Vector3[], maxLevel?: number): Vector3[];
        public enumRenderChunksInRange(result: ElementChunk[], earthRange: Rect, maxLevel?: number): void;
        public intersectBox(box: Box): boolean;
        public intersectRay(earthPt1: Vector3, earthPt2: Vector3): Vector3;
        public setTerrainLayer(terrainLayer: TerrainLayer): void;
    }

    /**
      * EarthToolType EarthViewer上的操作类型
      */
    enum EarthToolType {
        /**
          * 
         */
        None = 0,
        /**
          * 
         */
        Pan = 1,
        /**
          * 点击
         */
        TrackPoint = 10,
        /**
          * 跟踪线
         */
        TrackLine = 20,
        /**
          * 跟踪多边形
         */
        TrackPoly = 30,
        /**
          * 量算长度
         */
        MeasureLength = 120,
        /**
          * 量算面积
         */
        MeasureArea = 130
    }

    enum MapToolType {
        None,
        Pan,
        TrackPoint = 10,
        TrackLine = 20,
        TrackPoly = 30,
        TrackRect = 40,
        TrackEllipse = 50,
        TrackCircle,
        MeasureLength = 120,
        MeasureArea = 130,
        PointPick = 210
    }

    class EarthToolTypeHelper {
        public static FromMapToolType(trackerType: MapToolType): EarthToolType;
    }

    /**
      * EarthViewerRenderEvent EarthViewer绘制事件。
      */
    class EarthViewerRenderEvent extends EventArgs {
        /**
          * 如果设置为true，将激发场景重画
         */
        public isNeedRedraw: boolean;
    }

    /**
      * EarthViewerTrackEvent 屏幕图形跟踪操作结束事件。保存了跟踪绘制的空间图形数据
      */
    class EarthViewerTrackEvent extends EventArgs {
        /**
          * 跟踪类型
         */
        public geoType: GeoType;
        /**
          * 屏幕点击位置数组
         */
        public points: Vector3[];
        /**
          * 地表跟踪线数组
         */
        public linePoints: Vector3[];
        /**
          * 地表跟踪面三角形点数组，每三个点代表一个三角形
         */
        public areaPoints: Vector3[];
        /**
          * setCurrentTool函数传入的调用者信息
         */
        public callerInfo: any;
        /**
          * 
          * @param geoType
          * @param points
          * @param linePoints
          * @param areaPoints
          * @param callerInfo 
         */
        constructor(geoType: GeoType, points: Vector3[], linePoints: Vector3[], areaPoints: Vector3[], callerInfo: any);
    }

    /**
      * GeoObject3PickEvent GeoObject3选中事件参数
      */
    class GeoObject3PickEvent extends MouseButtonEventArgs {
        /**
          * 选中对象
         */
        public geoObject: GeoObject3;
        /**
          * 选中点的坐标位置
         */
        public hitPosition: Vector3;
        /**
          * 
          * @param geoObject 
          * @param point
          * @param hitPosition
         */
        constructor(geoObject: GeoObject3, point: Vector2, hitPosition: Vector3);
        /**
          * 选中对象所属图层
         */
        public readonly layerName: string;
    }

    /**
      * StyleMap 
      */
    export type StyleMap = Mpl.StyleMap;

    class SunPositionInfo {
        public readonly position: Vector3;
        constructor(position: Vector3);
        public readonly darkRatio: number;
        public readonly pitch: number;
        public readonly pitchRatio: number;
    }

    /**
      * EarthTimer 管理EarthViewer地球时间的对象。系统会根据当中场景的纬度，计算太阳位置和环境光亮度。目前使用太阳历年平均位置，并非严格意义天文日历位置。
      * 系统缺省日期为春分；直角三维坐标系统，系统缺省使用北纬40度
      */
    class EarthTimer {
        /**
          * 
         */
        public earthViewer: EarthViewer;
        /**
          * 
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 使用Date对象设置或者获取完整时间，包括年月日小时等，注意Javascript时间构造函数的月份是从0开始的
         */
        public date: Date;
        /**
          * 使用24小时格式浮点数设置或者获取当前的小时数
         */
        public hours: number;
        /**
          * 太阳升起消息。时间从黑夜变为白天就会发出
         */
        public onSunrise: Observable<void>;
        /**
          * 太阳落下消息。时间从白天变为黑夜就会发出
         */
        public onSunset: Observable<void>;
        /**
          * 当前时间改变消息
         */
        public onTimeChange: Observable<void>;
        /**
          * 是否是白天，即太阳升起到落下之间的时间段
         */
        public readonly isDaytime: boolean;
        /**
          * 获取当前日期和纬度的日出时间
         */
        public readonly sunriseHours: number;
        /**
          * 获取当前日期和纬度的日落时间
         */
        public readonly sunsetHours: number;
    }

    /**
      * EarthSky 控制天空属性的对象
      */
    class EarthSky {
        /**
          * 
         */
        public earthViewer: EarthViewer;
        /**
          * 
          * @param earthViewer 
         */
        constructor(earthViewer: EarthViewer);
        /**
          * 云的颜色
         */
        public cloudColor: Color;
        /**
          * 云的密度，范围0-1。 在体积云情况下，大于0.7即切换为老系统的简单云效果
         */
        public cloudDensity: number;
        /**
          * 获取或者设置体积云的原点，决定当前天空云的显示状态
         */
        public cloudOrigin: Vector2;
        /**
          * 体积云移动的时间。原点和移动时间决定最后的形态
         */
        public cloudTime: number;
        /**
          * 是否启用体积云效果
         */
        public isEnableVolCloud: boolean;
        /**
          * 是否绘制天空。等同于EarthViewer.isSkyVisible
         */
        public isVisible: boolean;
        /**
          * 风的方向，0-360度。跟相机的定义相同，0表示吹向正北，即南风，其他以此类推
         */
        public windHeading: number;
        /**
          * 天空风速，单位米/秒
         */
        public windSpeed: number;
        /**
          * 触发更新不同的云分布效果 
         */
        public changeCloud(): void;
    }

    /**
      * IEarthViewerInitOptions 配置初始化EarthViewer需要的参数
      */
    interface IEarthViewerInitOptions {
        /**
          * 当浏览器支持WebGPU时，是否自动启用
         */
        gpu?: boolean;
    }

    /**
      * EarthViewer 三维场景控件。用于显示地球坐标或者直角坐标的三维场景，包括动态图层，粒子系统等，是开发三维应用的首要控件。
      */
    class EarthViewer extends UserControl {
        /**
          * 创建一个新的EarthViewer
          * @param htmlUI 容纳EarthViewer的HTMLDivElement的id字符串或者对象本身
          * @param fatherUI 用于嵌套系统界面布局，通常不需要使用
         */
        constructor(htmlUI: string | HTMLDivElement, fatherUI?: UIElement);
        /**
          * 绘制完成后发出
         */
        public onAfterRender: Observable<EarthViewerRenderEvent>;
        /**
          * 绘制开始前发出
         */
        public onBeforeRender: Observable<EarthViewerRenderEvent>;
        /**
          * 点击选中物体时发出
         */
        public onClickObject: Observable<GeoObject3PickEvent>;
        /**
          * 拖动结束消息
         */
        public onDragEnd: Observable<GeoObject3PickEvent>;
        /**
          * 拖动鼠标移动消息
         */
        public onDragMove: Observable<GeoObject3PickEvent>;
        /**
          * 拖动开始
         */
        public onDragStart: Observable<GeoObject3PickEvent>;
        /**
          * 鼠标移动到物体表面时发出
         */
        public onEnterObject: Observable<GeoObject3PickEvent>;
        /**
          * 鼠标移出到物体表面时发出
         */
        public onLeaveObject: Observable<GeoObject3PickEvent>;
        /**
          * 鼠标左键双击发出
         */
        public onMouseLeftButtonDoubleClick: Observable<MouseButtonEventArgs>;
        /**
          * 鼠标右键双击发出
         */
        public onMouseRightButtonDoubleClick: Observable<MouseButtonEventArgs>;
        /**
          * 屏幕跟踪操作完成时发出
         */
        public onTrackFinish: Observable<EarthViewerTrackEvent>;
        /**
          * 物体失去选中焦点时发出
         */
        public onUnclickObject: Observable<GeoObject3PickEvent>;
        /**
          * 坐标轴箭头大小比例
         */
        public axisArrowRatio: number;
        /**
          * 坐标轴颜色
         */
        public axisColor: Color;
        /**
          * 坐标轴长度米
         */
        public axisLength: number;
        /**
          * 三维场景背景色
         */
        public backgroundColor: Color;
        /**
          * 
         */
        public darkness: number;
        /**
          * 地球缺省背景颜色
         */
        public globeColor: Color;
        /**
          * 是否处于活动状态
         */
        public isActive: boolean;
        /**
          * 设为动画模式，会保持连续重画
         */
        public isAnimation: boolean;
        /**
          * 三维直角坐标模式下是否显示坐标轴
         */
        public isAxisVisible: boolean;
        /**
          * 是否调换YZ坐标轴
         */
        public isAxisYZReverse: boolean;
        /**
          * 是否是地球坐标。设置false时，为三维直角坐标模式
         */
        public isEarthCoord: boolean;
        /**
          * 是否允许鼠标移过物体表面时选择
         */
        public isEnableMouseOverPick: boolean;
        /**
          * 是否开启雾效
         */
        public isFogEnabled: boolean;
        /**
          * 是否在状态栏显示FPS
         */
        public isFpsVisible: boolean;
        /**
          * 是否高亮显示选中对象
         */
        public isHighlightPickedObject: boolean;
        /**
          * 是否显示指北针
         */
        public isNorthPointerVisible: boolean;
        /**
          * 是否允许选择
         */
        public isPickable: boolean;
        /**
          * 是否显示直角坐标模式下的旋转中心
         */
        public isRotationCenterVisible: boolean;
        /**
          * 是否显示天空。缺省情况下，地球模式显示，直角坐标模式不显示
         */
        public isSkyVisible: boolean;
        /**
          * 是否显示底部信息工具条
         */
        public isStatusBarVisible: boolean;
        /**
          * 是否已经显示地形
         */
        public isTerrainVisible: boolean;
        /**
          * 
         */
        public isUseSkyBox: boolean;
        /**
          * 最大地形显示层级
         */
        public maxTerrainLevel: number;
        /**
          * 最小使用地形的层级，缺省为4
         */
        public minTerrainLevel: number;
        /**
          * 相机对象
         */
        public readonly camera: Camera;
        /**
          * 场景屏幕区域
         */
        public readonly clientRect: Rect;
        /**
          * 三维坐标对象
         */
        public readonly coordSystem: ICoordSystem3;
        /**
          * 深度纹理视图
         */
        public readonly depthView: DepthView;
        /**
          * 地形高程视图，用于获取高程纹理，颜色纹理等，通常用于Gpu计算
         */
        public readonly elevationView: ElevationView;
        /**
          * 引擎对象，负责所有的基础三维渲染和计算
         */
        public readonly engine: Engine;
        /**
          * 全局Scene对象，通常用于创建Babylon材质比较方便
         */
        public readonly globalScene: Scene;
        /**
          * 图形设备对象
         */
        public readonly graphics: Graphics3;
        /**
          * 是否有鼠标键按下
         */
        public readonly hasMouseButtonDown: boolean;
        /**
          * 瓦片层数据集合，可以添加叠加多个瓦片影像层
         */
        public readonly imageProviders: NameObjectList<IImageProvider>;
        /**
          * 系统保留
         */
        public readonly isNeedRedraw: boolean;
        /**
          * 
         */
        public readonly isTerrainMouseHeightReady: boolean;
        /**
          * 场景中所有图层集合
         */
        public readonly layers: Layer3Collection;
        /**
          * 
         */
        public readonly layoutRoot: UIElement;
        /**
          * 鼠标地球坐标
         */
        public readonly mousePosition: Vector3;
        /**
          * EarthViewer内置夜晚暗光系统，用于方便开发昼夜切换功能。根据hours自动控制跟阳光系统的关系，
          * 自动点亮灯光，跟阳光系统使用相同的图层集合。使用night属性后，sunLight会自动启动和关闭。
         */
        public readonly night: DarkLightSystem;
        /**
          * 显示上下文
         */
        public readonly renderContext: RenderContext3;
        /**
          * 
         */
        public readonly sky: EarthSky;
        /**
          * 地形计算接口
         */
        public readonly terrainCalculator: ITerrainCalculator;
        /**
          * 地形高程设色属性对象
         */
        public readonly terrainColorSetting: TerrainColorSetting;
        /**
          * 地形图层。这是需要获取，并不包含在layers中。通常用于分析视图使用
         */
        public readonly terrainLayer: TerrainLayer;
        /**
          * 地形层数据集合，可以添加叠加多个地形数据层。范围小的地形尽量添加在靠后的位置
         */
        public readonly terrainProviders: NameObjectList<ITerrainProvider>;
        /**
          * 
         */
        public readonly timer: EarthTimer;
        /**
          * 用于大数据场景下的性能优化，表示动画时每隔几帧刷新画面，必须为整数值。比如2，则为30fps。缺省未设置，为60fps。
          * 通常水面动画可以设置为2，如果是模型动画或者例子系统，降低帧率会影响效果。
          * 该值可以根据画面内容动态设置。
         */
        public refreshRate: number;
        /**
          * 卷帘对比的分隔位置 0-1, 0为左侧
         */
        public splitPosition: number;
        /**
          * 地形拉伸（夸张）的比例系数。如果动态改变该值，只有重新调用open之后才会起作用
         */
        public terrainExaggeration: number;
        /**
          * 
         */
        protected getTopMostUI(): UIElement;
        /**
          * 
         */
        protected initializeComponent(): void;
        /**
          * 添加地面孔洞对象。通常用于地面坑道开挖显示
          * @param polygonPoints 孔洞多边形点数组
          * @returns 
         */
        public addGroundHole(polygonPoints: Vector3[]): boolean;
        /**
          * 添加选中对象
          * @param geoObject 
         */
        public addPicked(geoObject: GeoObject3): void;
        /**
          * 
          * @param focusObject 
          * @param measureString 
         */
        public addTrackerResultObject(focusObject: GeoObject3, measureString?: string): void;
        /**
          * 清除所有地面孔洞对象
         */
        public clearGroundHoles(): void;
        /**
          * 清除所有自定义地形计算图层
         */
        public clearGroundLayers(): void;
        /**
          * 清除地形降低范围
         */
        public clearLowerTerrain(): void;
        /**
          * 清除选中对象
         */
        public clearPicked(): void;
        /**
          * 清除屏幕跟踪结果
         */
        public clearTrackerResult(): void;
        /**
          * 删除并释放EarthViewer对象
         */
        public dispose(): void;
        /**
          * 获取选中对象集合
         */
        public getPicked(): Array<GeoObject3>;
        /**
          * 是否有alt键按下
          * @returns 
         */
        public hasAltKeyDown(): boolean;
        /**
          * 是否有ctrl键按下
          * @returns 
         */
        public hasControlKeyDown(): boolean;
        /**
          * 是否有shift键按下
          * @returns 
         */
        public hasShiftKeyDown(): boolean;
        /**
          * 创建EarthViewer之后必须首先调用此方法。自4.0版以后自动启用WebGPU渲染, 如果需要强制使用gl渲染模式，需要传入{gpu:false}，或者使用Setting.Gpu=false控制
          * @param options 初始化参数，可选
         */
        public init(options?: IEarthViewerInitOptions): Promise<void>;
        /**
          * 打背景影像和地形
          * @param imageProvider 瓦片数据提供对象。如不提供，缺省打开Bing或者天地图
          * @param terrainProvider 地形数据提供对象。如不提供，则地表保持基准高度
          * @returns Promise对象
         */
        public open(imageProvider?: IImageProvider, terrainProvider?: ITerrainProvider): Promise<EarthViewer>;
        /**
          * 通过指定的url加载Maplibre style文件到当前三维场景，其中线面层以及沿线标注叠加绘制到三维地形上，点状标注为三维立体绘制。返回的StyleMap对象等同于maplibrejs的map对象。
          * 三维场景中只能绘制一个style map，如果用新的url再次调用该方法时，将会关闭和释放当前map。
          * drawsee在融合代码的过程中，保留了与style数据模型操作有关的api，去除了与场景显示和交互操作的部分，留下的方法、消息以及类名称与原api完全相同。具体调用方法请参考
          * maplibrejs的相关文档。在drawsee库中，所有的maplibrejs类名称和全局函数名称使用Mpl模块前缀，比如 let p = new Mpl.Point(0,0)
          * map中图层显隐，绘制参数，动态添加数据源、图层等，都可以通过原生api实现。drawsee只负责渲染
          * @param styleUrl style文件url
          * @returns StyleMap对象，等同于maplibrejs.map
         */
        public openStyleMap(styleUrl: string): StyleMap;
        /**
          * 使用屏幕坐标点选择一个对象
          * @param screenX 屏幕x坐标
          * @param screenY 屏幕y坐标
          * @param resultPosition 保存选中对象表面的坐标
          * @returns 选中对象或者null
         */
        public pick(screenX: number, screenY: number, resultPosition?: Vector3): GeoObject3;
        /**
          * 显式激发三维场景重画
         */
        public redraw(): void;
        /**
          * 恢复系统缺省雾气设置
         */
        public restoreDefaultFogParams(): void;
        /**
          * 设置当前操作类型，可以传入一个激发对象的唯一标示callerInfo
          * @param tool 操作类型
          * @param callerInfo 调用者的标示，可以使用字符串。这样在trackerCompleted回调函数参数里，可以区分不同的调用者
          */
        public setCurrentTool(tool: EarthToolType, callerInfo?: any): void;
        /**
          * 
          * @param provider 
          * @param alpha 
         */
        public setExteranOverlayTexture(provider: ISimpleImageProvider, alpha?: number): void;
        /**
          * 设置雾气效果
          * @param fogStart 雾气开始距离米
          * @param fogEnd 雾气达到最大浓度距离米
          * @param fogColor 雾气颜色，仅rgb有效
         */
        public setFogParams(fogStart: number, fogEnd: number, fogColor?: Color): void;
        /**
          * 降低指定范围的地形，以便配合倾斜摄影等的显示。系统仅仅是调整内部DepthBuffer控制深度裁剪，视觉显示高度并不变化。
          * @param points 二维或者三维点数组指定的多边形范围
          * @param lowerMeters 米数，负值为降低
         */
        public setLowerTerrain(points: Array<Vector2> | Array<Vector3>, lowerMeters: number): void;
        /**
          * 
          * @param geoObjectOrCollection 
         */
        public setPicked(geoObjectOrCollection: GeoObject3 | Array<GeoObject3>): void;
        /**
          * 将EarthViewer当前显示的三维场景截屏到Image控件，以便保存为图像数据
          * @param earthViewer 
          * @returns 
         */
        public static CaptureScreenshot(earthViewer: EarthViewer): HTMLImageElement;
    }

    class EarthViewerOperationBase extends OperationBase {
        constructor(viewer: EarthViewer);
    }
}
