UNPKG

vue-cesium

Version:
317 lines (316 loc) 11 kB
import { Ref } from 'vue'; import type { VcAppearance, VcComponentInternalInstance, VcComponentPublicInstance, VcPickEvent, VcReadyObject } from 'vue-cesium/es/utils/types'; export declare const groundPolylinePrimitiveProps: { enableMouseEvent: { type: BooleanConstructor; default: boolean; }; debugShowShadowVolume: { type: BooleanConstructor; default: boolean; }; debugShowBoundingVolume: { tyep: BooleanConstructor; default: boolean; }; classificationType: { type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<Cesium.ClassificationType>>; }; asynchronous: { type: BooleanConstructor; default: boolean; }; allowPicking: { type: BooleanConstructor; default: boolean; }; releaseGeometryInstances: { type: BooleanConstructor; default: boolean; }; compressVertices: { type: BooleanConstructor; default: boolean; }; interleave: { type: BooleanConstructor; default: boolean; }; show: { type: import("vue").PropType<boolean>; default: boolean; }; appearance: { type: import("vue").PropType<VcAppearance>; watcherOptions: { cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeAppearance; deep: boolean; }; }; geometryInstances: import("vue").PropType<Cesium.GeometryInstance | Cesium.GeometryInstance[]>; }; declare const _default: import("vue").DefineComponent<{ enableMouseEvent: { type: BooleanConstructor; default: boolean; }; debugShowShadowVolume: { type: BooleanConstructor; default: boolean; }; debugShowBoundingVolume: { tyep: BooleanConstructor; default: boolean; }; classificationType: { type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<Cesium.ClassificationType>>; }; asynchronous: { type: BooleanConstructor; default: boolean; }; allowPicking: { type: BooleanConstructor; default: boolean; }; releaseGeometryInstances: { type: BooleanConstructor; default: boolean; }; compressVertices: { type: BooleanConstructor; default: boolean; }; interleave: { type: BooleanConstructor; default: boolean; }; show: { type: import("vue").PropType<boolean>; default: boolean; }; appearance: { type: import("vue").PropType<VcAppearance>; watcherOptions: { cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeAppearance; deep: boolean; }; }; geometryInstances: import("vue").PropType<Cesium.GeometryInstance | Cesium.GeometryInstance[]>; }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, { [key: string]: any; }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, { readyPromise: (primitive: import("vue-cesium/es/utils/types").VcPrimitive, viewer: Cesium.Viewer, instance: VcComponentPublicInstance) => boolean; 'update:geometryInstances': (instances: Cesium.GeometryInstance[]) => boolean; 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; }; debugShowShadowVolume: { type: BooleanConstructor; default: boolean; }; debugShowBoundingVolume: { tyep: BooleanConstructor; default: boolean; }; classificationType: { type: import("vue").PropType<number | Cesium.CallbackProperty | import("vue-cesium/es/utils/types").VcCallbackPropertyFunction<Cesium.ClassificationType>>; }; asynchronous: { type: BooleanConstructor; default: boolean; }; allowPicking: { type: BooleanConstructor; default: boolean; }; releaseGeometryInstances: { type: BooleanConstructor; default: boolean; }; compressVertices: { type: BooleanConstructor; default: boolean; }; interleave: { type: BooleanConstructor; default: boolean; }; show: { type: import("vue").PropType<boolean>; default: boolean; }; appearance: { type: import("vue").PropType<VcAppearance>; watcherOptions: { cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeAppearance; deep: boolean; }; }; geometryInstances: import("vue").PropType<Cesium.GeometryInstance | Cesium.GeometryInstance[]>; }>> & { 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; onReadyPromise?: (primitive: import("vue-cesium/es/utils/types").VcPrimitive, viewer: Cesium.Viewer, instance: VcComponentPublicInstance) => any; "onUpdate:geometryInstances"?: (instances: Cesium.GeometryInstance[]) => any; }, { show: boolean; enableMouseEvent: boolean; debugShowShadowVolume: boolean; debugShowBoundingVolume: boolean; asynchronous: boolean; allowPicking: boolean; releaseGeometryInstances: boolean; compressVertices: boolean; interleave: boolean; }>; export default _default; export type VcPrimitiveGroundPolylineProps = { /** * GeometryInstances containing GroundPolylineGeometry */ geometryInstances?: Cesium.GeometryInstance | Array<Cesium.GeometryInstance>; /** * The Appearance used to render the polyline. Defaults to a white color Material on a PolylineMaterialAppearance. */ appearance?: VcAppearance; /** * Determines if this primitive will be shown. * Default value: true */ show?: boolean; /** * When true, geometry vertex attributes are interleaved, which can slightly improve rendering performance but increases load time. * Default value: false */ interleave?: boolean; /** * When true, the primitive does not keep a reference to the input geometryInstances to save memory. * Default value: true */ releaseGeometryInstances?: boolean; /** * When true, each geometry instance will only be pickable with Scene#pick. When false, GPU memory is saved. * Default value: true */ allowPicking?: boolean; /** * Determines if the primitive will be created asynchronously or block until ready. * Default value: true */ asynchronous?: boolean; /** * Determines whether terrain, 3D Tiles or both will be classified. * Default value: ClassificationType.BOTH(2) */ classificationType?: number; /** * For debugging only. Determines if this primitive's commands' bounding spheres are shown. * Default value: false */ debugShowBoundingVolume?: boolean; /** * For debugging only. Determines if the shadow volume for each geometry in the primitive is drawn. Must be true on creation to have effect. * Default value: false */ debugShowShadowVolume?: boolean; /** * Specifies whether to respond to mouse pick events. * Default Value: true */ enableMouseEvent?: boolean; /** * Triggers before the component is loaded. */ onBeforeLoad?: (instance: VcComponentInternalInstance) => void; /** * Triggers when the component is successfully loaded. */ onReady?: (readyObject: VcReadyObject) => void; /** * Triggers when the component load failed. */ onUnready?: (e: any) => void; /** * Triggers when the component is destroyed. */ onDestroyed?: (instance: VcComponentInternalInstance) => void; /** * Triggers when the mouse is pressed on this primitive. */ onMousedown?: (evt: VcPickEvent) => void; /** * Triggers when the mouse bounces up on this primitive. */ onMouseup?: (evt: VcPickEvent) => void; /** * Triggers when the mouse clicks on this primitive. */ onClick?: (evt: VcPickEvent) => void; /** * Triggers when the mouse clicks outside this primitive. */ onClickout?: (evt: VcPickEvent) => void; /** * Triggers when the left mouse button double-clicks this primitive. */ onDblclick?: (evt: VcPickEvent) => void; /** * Triggers when the mouse moves on this primitive. */ onMousemove?: (evt: VcPickEvent) => void; /** * Triggers when the mouse moves over to this primitive. */ onMouseover?: (evt: VcPickEvent) => void; /** * Triggers when the mouse moves out of this primitive. */ onMouseout?: (evt: VcPickEvent) => void; /** * Triggers when the primitive is ready to render. */ onReadyPromise?: (primitive: Cesium.ClassificationPrimitive, viewer: Cesium.Viewer, instance: VcComponentPublicInstance) => void; 'onUpdate:geometryInstances'?: (instances: Array<Cesium.GeometryInstance>) => void; }; export interface VcPrimitiveGroundPolylineRef extends VcComponentPublicInstance<VcPrimitiveGroundPolylineProps> { /** * private but needed by VcGeometryInstance * @param geometryInstance * @param index */ __updateGeometryInstances?(geometryInstance: Cesium.GeometryInstance, index: number): boolean; /** * private but needed by VcGeometryInstance * @param geometryInstance */ __removeGeometryInstances?(geometryInstance: Cesium.GeometryInstance): boolean; /** * private but needed by VcGeometryInstance */ __childCount?: Ref<number>; }