vue-cesium
Version:
Vue 3.x components for CesiumJS.
139 lines (138 loc) • 5.12 kB
TypeScript
import type { VcComponentInternalInstance, VcComponentPublicInstance, VcReadyObject, VcRectangle } from 'vue-cesium/es/utils/types';
export declare const singletileImageryProviderProps: {
tileHeight: {
type: NumberConstructor;
default: number;
};
tileWidth: {
type: NumberConstructor;
default: number;
};
ellipsoid: import("vue").PropType<Cesium.Ellipsoid>;
credit: {
type: import("vue").PropType<string | Cesium.Credit>;
default: string;
};
rectangle: {
type: import("vue").PropType<VcRectangle>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeRectangle;
};
};
url: import("vue").PropType<string | Cesium.Resource>;
};
declare const _default: import("vue").DefineComponent<{
tileHeight: {
type: NumberConstructor;
default: number;
};
tileWidth: {
type: NumberConstructor;
default: number;
};
ellipsoid: import("vue").PropType<Cesium.Ellipsoid>;
credit: {
type: import("vue").PropType<string | Cesium.Credit>;
default: string;
};
rectangle: {
type: import("vue").PropType<VcRectangle>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeRectangle;
};
};
url: import("vue").PropType<string | Cesium.Resource>;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
errorEvent: (evt: Cesium.TileProviderError) => boolean;
readyPromise: (evt: boolean | import("vue-cesium/es/utils/types").VcImageryProvider | import("vue-cesium/es/utils/types").VcTerrainProvider, viewer: Cesium.Viewer, instance: VcComponentPublicInstance) => boolean;
beforeLoad: (instance: VcComponentInternalInstance) => boolean;
ready: (readyObj: VcReadyObject) => boolean;
unready: (e: any) => boolean;
destroyed: (instance: VcComponentInternalInstance) => boolean;
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
tileHeight: {
type: NumberConstructor;
default: number;
};
tileWidth: {
type: NumberConstructor;
default: number;
};
ellipsoid: import("vue").PropType<Cesium.Ellipsoid>;
credit: {
type: import("vue").PropType<string | Cesium.Credit>;
default: string;
};
rectangle: {
type: import("vue").PropType<VcRectangle>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeRectangle;
};
};
url: import("vue").PropType<string | Cesium.Resource>;
}>> & {
onBeforeLoad?: (instance: VcComponentInternalInstance) => any;
onReady?: (readyObj: VcReadyObject) => any;
onUnready?: (e: any) => any;
onDestroyed?: (instance: VcComponentInternalInstance) => any;
onReadyPromise?: (evt: boolean | import("vue-cesium/es/utils/types").VcImageryProvider | import("vue-cesium/es/utils/types").VcTerrainProvider, viewer: Cesium.Viewer, instance: VcComponentPublicInstance) => any;
onErrorEvent?: (evt: Cesium.TileProviderError) => any;
}, {
credit: string | Cesium.Credit;
tileHeight: number;
tileWidth: number;
}>;
export default _default;
export type VcImageryProviderSingletileProps = {
/**
* The url for the tile
*/
url: string | Cesium.Resource;
/**
* The rectangle, in radians, covered by the image.
*/
rectangle?: VcRectangle;
/**
* A credit for the data source, which is displayed on the canvas.
*/
credit?: string | Cesium.Credit;
/**
* The ellipsoid. If not specified, the WGS84 ellipsoid is used.
*/
ellipsoid?: Cesium.Ellipsoid;
/**
* The width of the tile, in pixels.
*/
tileWidth?: number;
/**
* The height of the tile, in pixels.
*/
tileHeight?: number;
/**
* Triggers before the VcImageryProviderSingletile is loaded.
*/
onBeforeLoad?: (instance: VcComponentInternalInstance) => void;
/**
* Triggers when the VcImageryProviderSingletile is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void;
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void;
/**
* Triggers when the VcImageryProviderSingletile is destroyed.
*/
onDestroyed?: (instance: VcComponentInternalInstance) => void;
/**
* Triggers when the imagery provider encounters an asynchronous error.
*/
onErrorEvent?: (evt: Cesium.TileProviderError) => void;
/**
* Triggers when the provider is ready for use.
*/
onReadyPromise?: (evt: boolean, viewer: Cesium.Viewer, instance: VcComponentPublicInstance) => void;
};
export type VcImageryProviderSingletileRef = VcComponentPublicInstance<VcImageryProviderSingletileProps>;