projects/angular-cesium/src/lib/angular-cesium-widgets/models/label-props.ts
Properties |
|
backgroundColor |
backgroundColor:
|
Type : any
|
Optional |
backgroundPadding |
backgroundPadding:
|
Type : any
|
Optional |
disableDepthTestDistance |
disableDepthTestDistance:
|
Type : number
|
Optional |
distanceDisplayCondition |
distanceDisplayCondition:
|
Type : any
|
Optional |
eyeOffset |
eyeOffset:
|
Type : Cartesian3
|
Optional |
fillColor |
fillColor:
|
Type : any
|
Optional |
font |
font:
|
Type : string
|
Optional |
heightReference |
heightReference:
|
Type : any
|
Optional |
horizontalOrigin |
horizontalOrigin:
|
Type : any
|
Optional |
outlineColor |
outlineColor:
|
Type : any
|
Optional |
outlineWidth |
outlineWidth:
|
Type : any
|
Optional |
pixelOffset |
pixelOffset:
|
Type : Cartesian2
|
Optional |
pixelOffsetScaleByDistance |
pixelOffsetScaleByDistance:
|
Type : any
|
Optional |
position |
position:
|
Type : Cartesian3
|
Optional |
scale |
scale:
|
Type : number
|
Optional |
scaleByDistance |
scaleByDistance:
|
Type : any
|
Optional |
show |
show:
|
Type : boolean
|
Optional |
showBackground |
showBackground:
|
Type : boolean
|
Optional |
style |
style:
|
Type : any
|
Optional |
text |
text:
|
Type : string
|
translucencyByDistance |
translucencyByDistance:
|
Type : any
|
Optional |
verticalOrigin |
verticalOrigin:
|
Type : any
|
Optional |
import { Cartesian3 } from '../../angular-cesium/models/cartesian3';
import { Cartesian2 } from '../../angular-cesium/models/cartesian2';
export interface LabelStyle {
show?: boolean;
font?: string;
style?: any;
fillColor?: any;
outlineColor?: any;
backgroundColor?: any;
backgroundPadding?: any;
showBackground?: boolean;
scale?: number;
distanceDisplayCondition?: any;
heightReference?: any;
horizontalOrigin?: any;
eyeOffset?: Cartesian3;
position?: Cartesian3;
pixelOffset?: Cartesian2;
pixelOffsetScaleByDistance?: any;
outlineWidth?: any;
scaleByDistance?: any;
translucencyByDistance?: any;
verticalOrigin?: any;
disableDepthTestDistance?: number;
}
export interface LabelProps {
text: string;
show?: boolean;
font?: string;
style?: any;
fillColor?: any;
outlineColor?: any;
backgroundColor?: any;
backgroundPadding?: any;
showBackground?: boolean;
scale?: number;
distanceDisplayCondition?: any;
heightReference?: any;
horizontalOrigin?: any;
eyeOffset?: Cartesian3;
position?: Cartesian3;
pixelOffset?: Cartesian2;
pixelOffsetScaleByDistance?: any;
outlineWidth?: any;
scaleByDistance?: any;
translucencyByDistance?: any;
verticalOrigin?: any;
disableDepthTestDistance?: number;
}
export const defaultLabelProps: LabelProps = {
backgroundColor: new Cesium.Color(0.165, 0.165, 0.165, 0.7),
backgroundPadding: new Cesium.Cartesian2(25, 20),
distanceDisplayCondition: undefined,
fillColor: Cesium.Color.WHITE,
font: '30px sans-serif',
heightReference: Cesium.HeightReference.NONE,
horizontalOrigin: Cesium.HorizontalOrigin.LEFT,
outlineColor: Cesium.Color.BLACK,
outlineWidth: 1.0,
pixelOffset: Cesium.Cartesian2.ZERO,
pixelOffsetScaleByDistance: undefined,
scale: 1.0,
scaleByDistance: undefined,
show: true,
showBackground: false,
style: Cesium.LabelStyle.FILL,
text: '',
translucencyByDistance: undefined,
verticalOrigin: Cesium.VerticalOrigin.BASELINE,
eyeOffset: Cesium.Cartesian3.ZERO,
disableDepthTestDistance: 0,
};