vue-cesium
Version:
Vue 3.x components for CesiumJS.
233 lines (232 loc) • 8.12 kB
TypeScript
import type { VcComponentInternalInstance, VcComponentPublicInstance, VcDistanceDisplayCondition, VcMaterial, VcPickEvent, VcPosition, VcReadyObject } from 'vue-cesium/es/utils/types';
export declare const polylineProps: {
enableMouseEvent: {
type: BooleanConstructor;
default: boolean;
};
width: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
show: {
type: import("vue").PropType<boolean>;
default: boolean;
};
positions: {
type: import("vue").PropType<import("vue-cesium/es/utils/types").VcCartesian3Array>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeCartesian3Array;
exclude: string;
deep: boolean;
};
};
material: {
type: import("vue").PropType<VcMaterial>;
default: string;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeMaterial;
};
};
loop: {
type: BooleanConstructor;
default: boolean;
};
id: import("vue").PropType<any>;
distanceDisplayCondition: {
type: import("vue").PropType<VcDistanceDisplayCondition>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeDistanceDisplayCondition;
};
};
};
declare const _default: import("vue").DefineComponent<{
enableMouseEvent: {
type: BooleanConstructor;
default: boolean;
};
width: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
show: {
type: import("vue").PropType<boolean>;
default: boolean;
};
positions: {
type: import("vue").PropType<import("vue-cesium/es/utils/types").VcCartesian3Array>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeCartesian3Array;
exclude: string;
deep: boolean;
};
};
material: {
type: import("vue").PropType<VcMaterial>;
default: string;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeMaterial;
};
};
loop: {
type: BooleanConstructor;
default: boolean;
};
id: import("vue").PropType<any>;
distanceDisplayCondition: {
type: import("vue").PropType<VcDistanceDisplayCondition>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeDistanceDisplayCondition;
};
};
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
[key: string]: any;
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
mousedown: (evt: VcPickEvent) => boolean;
mouseup: (evt: VcPickEvent) => boolean;
click: (evt: VcPickEvent) => boolean;
clickout: (evt: VcPickEvent) => boolean;
dblclick: (evt: VcPickEvent) => boolean;
mousemove: (evt: VcPickEvent) => boolean;
mouseover: (evt: VcPickEvent) => boolean;
mouseout: (evt: VcPickEvent) => 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<{
enableMouseEvent: {
type: BooleanConstructor;
default: boolean;
};
width: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<number>>;
show: {
type: import("vue").PropType<boolean>;
default: boolean;
};
positions: {
type: import("vue").PropType<import("vue-cesium/es/utils/types").VcCartesian3Array>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeCartesian3Array;
exclude: string;
deep: boolean;
};
};
material: {
type: import("vue").PropType<VcMaterial>;
default: string;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeMaterial;
};
};
loop: {
type: BooleanConstructor;
default: boolean;
};
id: import("vue").PropType<any>;
distanceDisplayCondition: {
type: import("vue").PropType<VcDistanceDisplayCondition>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeDistanceDisplayCondition;
};
};
}>> & {
onBeforeLoad?: (instance: VcComponentInternalInstance) => any;
onReady?: (readyObj: VcReadyObject) => any;
onUnready?: (e: any) => any;
onDestroyed?: (instance: VcComponentInternalInstance) => any;
onMousedown?: (evt: VcPickEvent) => any;
onMouseup?: (evt: VcPickEvent) => any;
onClick?: (evt: VcPickEvent) => any;
onClickout?: (evt: VcPickEvent) => any;
onDblclick?: (evt: VcPickEvent) => any;
onMousemove?: (evt: VcPickEvent) => any;
onMouseover?: (evt: VcPickEvent) => any;
onMouseout?: (evt: VcPickEvent) => any;
}, {
show: boolean;
loop: boolean;
material: VcMaterial;
enableMouseEvent: boolean;
}>;
export default _default;
export type VcPolylineProps = {
/**
* true if this polyline will be shown; otherwise, false.
* Default value: true
*/
show?: boolean;
/**
* The width of the polyline in pixels.
* Default: 1.0
*/
width?: number;
/**
* Whether a line segment will be added between the last and first line positions to make this line a loop.
* Default value: false
*/
loop?: boolean;
/**
* The material.
*/
material?: VcMaterial;
/**
* The positions.
*/
position?: VcPosition;
/**
* The user-defined object to be returned when this polyline is picked.
*/
id?: any;
/**
* The condition specifying at what distance from the camera that this polyline will be displayed.
*/
distanceDisplayCondition?: VcDistanceDisplayCondition;
/**
* Specifies whether to respond to mouse pick events.
* Default Value: true
*/
enableMouseEvent?: boolean;
/**
* Triggers before the VcPolyline is loaded.
*/
onBeforeLoad?: (instance: VcComponentInternalInstance) => void;
/**
* Triggers when the VcPolyline is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void;
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void;
/**
* Triggers when the VcPolyline is destroyed.
*/
onDestroyed?: (instance: VcComponentInternalInstance) => void;
/**
* Triggers when the mouse is pressed on this point.
*/
onMousedown?: (evt: VcPickEvent) => void;
/**
* Triggers when the mouse bounces up on this point.
*/
onMouseup?: (evt: VcPickEvent) => void;
/**
* Triggers when the mouse clicks on this point.
*/
onClick?: (evt: VcPickEvent) => void;
/**
* Triggers when the mouse clicks outside this point.
*/
onClickout?: (evt: VcPickEvent) => void;
/**
* Triggers when the left mouse button double-clicks this point.
*/
onDblclick?: (evt: VcPickEvent) => void;
/**
* Triggers when the mouse moves on this point.
*/
onMousemove?: (evt: VcPickEvent) => void;
/**
* Triggers when the mouse moves over to this point.
*/
onMouseover?: (evt: VcPickEvent) => void;
/**
* Triggers when the mouse moves out of this point.
*/
onMouseout?: (evt: VcPickEvent) => void;
};
export type VcPolylineRef = VcComponentPublicInstance<VcPolylineProps>;