vue-cesium
Version:
Vue 3.x components for CesiumJS.
90 lines (89 loc) • 3.88 kB
TypeScript
import { VcComponentInternalInstance, VcComponentPublicInstance, VcReadyObject } from 'vue-cesium/es/utils/types';
export declare const sphereGeometryProps: {
vertexFormat: import("vue").PropType<Cesium.VertexFormat>;
slicePartitions: {
type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
default: number;
};
stackPartitions: {
type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
default: number;
};
radius: NumberConstructor;
};
declare const _default: import("vue").DefineComponent<{
vertexFormat: import("vue").PropType<Cesium.VertexFormat>;
slicePartitions: {
type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
default: number;
};
stackPartitions: {
type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
default: number;
};
radius: NumberConstructor;
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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<{
vertexFormat: import("vue").PropType<Cesium.VertexFormat>;
slicePartitions: {
type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
default: number;
};
stackPartitions: {
type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
default: number;
};
radius: NumberConstructor;
}>> & {
onBeforeLoad?: (instance: VcComponentInternalInstance) => any;
onReady?: (readyObj: VcReadyObject) => any;
onUnready?: (e: any) => any;
onDestroyed?: (instance: VcComponentInternalInstance) => any;
}, {
slicePartitions: number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>;
stackPartitions: number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>;
}>;
export default _default;
export type VcGeometrySphereProps = {
/**
* The radius of the sphere.
*/
radius?: number;
/**
* The number of times to partition the ellipsoid into stacks.
* Default value: 64
*/
stackPartitions?: number;
/**
* The number of times to partition the ellipsoid into radial slices.
* Default value: 64
*/
slicePartitions?: number;
/**
* The vertex attributes to be computed.
*/
vertexFormat?: Cesium.VertexFormat;
/**
* Triggers before the VcGeometrySphere is loaded
*/
onBeforeLoad?: (instance: VcComponentInternalInstance) => void;
/**
* Triggers when the VcGeometrySphere is successfully loaded
*/
onReady?: (readyObject: VcReadyObject) => void;
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void;
/**
* Triggers when the VcGeometrySphere is destroyed
*/
onDestroyed?: (instance: VcComponentInternalInstance) => void;
};
export type VcGeometrySphereRef = VcComponentPublicInstance<VcGeometrySphereProps>;