vue-cesium
Version:
Vue 3.x components for CesiumJS.
239 lines (238 loc) • 10.5 kB
TypeScript
import type { VcCallbackPropertyFunction, VcCartesian3Array, VcComponentInternalInstance, VcComponentPublicInstance, VcDistanceDisplayCondition, VcMaterial, VcReadyObject } from 'vue-cesium/es/utils/types';
export declare const polylineGraphicsProps: {
zIndex: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
classificationType: {
type: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<Cesium.ClassificationType>>;
};
distanceDisplayCondition: {
type: import("vue").PropType<VcDistanceDisplayCondition>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeDistanceDisplayCondition;
};
};
shadows: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
clampToGround: {
type: import("vue").PropType<boolean | Cesium.CallbackProperty | VcCallbackPropertyFunction<boolean>>;
default: boolean;
};
arcType: {
type: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
default: number;
};
depthFailMaterial: {
type: import("vue").PropType<VcMaterial>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeMaterial;
};
};
material: {
type: import("vue").PropType<VcMaterial>;
default: string;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeMaterial;
};
};
granularity: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
width: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
positions: {
type: import("vue").PropType<VcCartesian3Array>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeCartesian3Array;
exclude: string;
deep: boolean;
};
};
show: {
type: import("vue").PropType<boolean>;
default: boolean;
};
};
declare const _default: import("vue").DefineComponent<{
zIndex: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
classificationType: {
type: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<Cesium.ClassificationType>>;
};
distanceDisplayCondition: {
type: import("vue").PropType<VcDistanceDisplayCondition>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeDistanceDisplayCondition;
};
};
shadows: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
clampToGround: {
type: import("vue").PropType<boolean | Cesium.CallbackProperty | VcCallbackPropertyFunction<boolean>>;
default: boolean;
};
arcType: {
type: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
default: number;
};
depthFailMaterial: {
type: import("vue").PropType<VcMaterial>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeMaterial;
};
};
material: {
type: import("vue").PropType<VcMaterial>;
default: string;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeMaterial;
};
};
granularity: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
width: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
positions: {
type: import("vue").PropType<VcCartesian3Array>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeCartesian3Array;
exclude: string;
deep: boolean;
};
};
show: {
type: import("vue").PropType<boolean>;
default: 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<{
zIndex: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
classificationType: {
type: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<Cesium.ClassificationType>>;
};
distanceDisplayCondition: {
type: import("vue").PropType<VcDistanceDisplayCondition>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeDistanceDisplayCondition;
};
};
shadows: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
clampToGround: {
type: import("vue").PropType<boolean | Cesium.CallbackProperty | VcCallbackPropertyFunction<boolean>>;
default: boolean;
};
arcType: {
type: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
default: number;
};
depthFailMaterial: {
type: import("vue").PropType<VcMaterial>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeMaterial;
};
};
material: {
type: import("vue").PropType<VcMaterial>;
default: string;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeMaterial;
};
};
granularity: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
width: import("vue").PropType<number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>>;
positions: {
type: import("vue").PropType<VcCartesian3Array>;
watcherOptions: {
cesiumObjectBuilder: typeof import("../../../utils/cesium-helpers").makeCartesian3Array;
exclude: string;
deep: boolean;
};
};
show: {
type: import("vue").PropType<boolean>;
default: boolean;
};
}>> & {
onBeforeLoad?: (instance: VcComponentInternalInstance) => any;
onReady?: (readyObj: VcReadyObject) => any;
onUnready?: (e: any) => any;
onDestroyed?: (instance: VcComponentInternalInstance) => any;
}, {
show: boolean;
material: VcMaterial;
clampToGround: boolean | Cesium.CallbackProperty | VcCallbackPropertyFunction<boolean>;
arcType: number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>;
}>;
export default _default;
export type VcGraphicsPolylineProps = {
/**
* A boolean Property specifying the visibility of the polyline.
* Default value: true
*/
show?: boolean | Cesium.CallbackProperty | VcCallbackPropertyFunction<boolean>;
/**
* A Property specifying the array of VcCartesian3Array positions that define the line strip.
*/
positions?: VcCartesian3Array;
/**
* A numeric Property specifying the width in pixels.
*/
width?: number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>;
/**
* A numeric Property specifying the angular distance between each latitude and longitude if arcType is not ArcType.NONE.
*/
granularity?: number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>;
/**
* A Property specifying the material used to draw the polyline.
* Default value: white
*/
material?: VcMaterial;
/**
* A property specifying the material used to draw the polyline when it is below the terrain.
*/
depthFailMaterial?: VcMaterial;
/**
* The type of line the polyline segments must follow.
*/
arcType?: number | Cesium.ArcType | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>;
/**
* A boolean Property specifying whether the Polyline should be clamped to the ground.
* Default value: false
*/
clampToGround?: boolean | Cesium.CallbackProperty | VcCallbackPropertyFunction<boolean>;
/**
* An enum Property specifying whether the polyline casts or receives shadows from light sources.
* Default value: Cesium.ShadowMode.DISABLED
*/
shadows?: number | Cesium.ShadowMode | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>;
/**
* A Property specifying at what distance from the camera that this polyline will be displayed.
*/
distanceDisplayCondition?: VcDistanceDisplayCondition;
/**
* An enum Property specifying whether this polyline will classify terrain, 3D Tiles, or both when on the ground.
* Default value: Cesium.ClassificationType.BOTH
*/
classificationType?: number | Cesium.ClassificationType | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>;
/**
* A Property specifying the zIndex used for ordering ground geometry. Only has an effect if `clampToGround` is true and polylines on terrain is supported.
*/
zIndex?: number | Cesium.CallbackProperty | VcCallbackPropertyFunction<number>;
/**
* Triggers before the VcGraphicsPolyline is loaded.
*/
onBeforeLoad?: (instance: VcComponentInternalInstance) => void;
/**
* Triggers when the VcGraphicsPolyline is successfully loaded.
*/
onReady?: (readyObject: VcReadyObject) => void;
/**
* Triggers when the component load failed.
*/
onUnready?: (e: any) => void;
/**
* Triggers when the VcGraphicsPolyline is destroyed.
*/
onDestroyed?: (instance: VcComponentInternalInstance) => void;
/**
* Triggers when a property or sub-property is changed or modified.
*/
onDefinitionChanged?: (property: Cesium.Property) => void;
};
export type VcGraphicsPolylineRef = VcComponentPublicInstance<VcGraphicsPolylineProps>;