vue-cesium
Version:
Vue 3.x components for CesiumJS.
117 lines (116 loc) • 5.2 kB
TypeScript
import { VcCartesian3Array, VcComponentInternalInstance, VcComponentPublicInstance, VcReadyObject } from 'vue-cesium/es/utils/types';
export declare const groundPolylineGeometryProps: {
arcType: {
type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
default: number;
};
loop: {
type: BooleanConstructor;
default: boolean;
};
granularity: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
width: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
positions: {
type: import("vue").PropType<VcCartesian3Array>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeCartesian3Array;
exclude: string;
deep: boolean;
};
};
};
declare const _default: import("vue").DefineComponent<{
arcType: {
type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
default: number;
};
loop: {
type: BooleanConstructor;
default: boolean;
};
granularity: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
width: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
positions: {
type: import("vue").PropType<VcCartesian3Array>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeCartesian3Array;
exclude: string;
deep: boolean;
};
};
}, () => 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<{
arcType: {
type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
default: number;
};
loop: {
type: BooleanConstructor;
default: boolean;
};
granularity: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
width: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
positions: {
type: import("vue").PropType<VcCartesian3Array>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeCartesian3Array;
exclude: string;
deep: boolean;
};
};
}>> & {
onBeforeLoad?: (instance: VcComponentInternalInstance) => any;
onReady?: (readyObj: VcReadyObject) => any;
onUnready?: (e: any) => any;
onDestroyed?: (instance: VcComponentInternalInstance) => any;
}, {
loop: boolean;
arcType: number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>;
}>;
export default _default;
export type VcGeometryGroundPolylineProps = {
/**
* An array of Cartesian3 defining the polyline's points. Heights above the ellipsoid will be ignored.
*/
positions: VcCartesian3Array;
/**
* The screen space width in pixels.
*/
width?: number;
/**
* The distance interval in meters used for interpolating options.points. Defaults to 9999.0 meters. Zero indicates no interpolation.
*/
granularity?: number;
/**
* Whether during geometry creation a line segment will be added between the last and first line positions to make this Polyline a loop.
* Defalut value: false
*/
loop?: boolean;
/**
* The type of line the polyline segments must follow. Valid options are ArcType.GEODESIC and ArcType.RHUMB.
*/
arcType?: number | Cesium.ArcType;
/**
* Triggers before the VcGeometryGroundPolyline is loaded.
*/
onBeforeLoad?: (instance: VcComponentInternalInstance) => void;
/**
* Triggers when the VcGeometryGroundPolyline is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void;
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void;
/**
* Triggers when the VcGeometryGroundPolyline is destroyed.
*/
onDestroyed?: (instance: VcComponentInternalInstance) => void;
};
export type VcGeometryGroundPolylineRef = VcComponentPublicInstance<VcGeometryGroundPolylineProps>;