@nativescript-community/ui-carto
Version:
NativeScript plugin for CARTO Mobile SDK
73 lines (72 loc) • 3.06 kB
TypeScript
import { AnimationStyle, BillboardStyleBuilderOptions, LineVectorElementOptions, PointVectorElementOptions, VectorElementOptions } from '.';
import { BaseNative } from '../BaseNative';
import { Projection } from '../projections';
import { MapPos, MapPosVector } from '../core';
import { BaseVectorElementStyleBuilder } from './index.common';
export { BaseVectorElementStyleBuilder };
export declare const BillboardOrientation: {
readonly FACE_CAMERA: NTBillboardOrientation;
readonly FACE_CAMERA_GROUND: NTBillboardOrientation;
readonly GROUND: NTBillboardOrientation;
};
export declare const BillboardScaling: {
readonly CONST_SCREEN_SIZE: NTBillboardScaling;
readonly SCREEN_SIZE: NTBillboardScaling;
readonly WORLD_SIZE: NTBillboardScaling;
};
export declare abstract class BaseVectorElement<T extends NTVectorElement, U extends VectorElementOptions> extends BaseNative<T, U> {
visible: boolean;
createNative(options: U): any;
get metaData(): {
[k: string]: string;
};
set metaData(value: {
[k: string]: string;
});
abstract buildStyle(): any;
rebuildStyle(): void;
}
export declare abstract class BasePointVectorElement<T extends NTVectorElement & {
getPos?(): NTMapPos;
setPos?(pos: NTMapPos): any;
}, U extends PointVectorElementOptions> extends BaseVectorElement<T, U> {
projection?: Projection;
get position(): MapPos;
set position(pos: MapPos);
getNativePos(pos: MapPos, projection: Projection): NTMapPos;
}
export declare abstract class BaseBillboardVectorElement<T extends NTBillboard, U extends PointVectorElementOptions> extends BasePointVectorElement<T, U> {
rotation: number;
}
export declare abstract class BaseLineVectorElement<T extends NTVectorElement & {
getPoses?(): NTMapPosVector;
setPoses?(pos: NTMapPosVector): any;
}, U extends LineVectorElementOptions> extends BaseVectorElement<T, U> {
projection?: Projection;
get positions(): MapPosVector | MapPos[];
set positions(positions: MapPosVector | MapPos[]);
}
export declare class VectorElement extends BaseVectorElement<NTVectorElement, VectorElementOptions> {
buildStyle(): void;
}
export declare class VectorElementVector extends BaseNative<NTVectorElementVector, any> {
elements: BaseVectorElement<any, any>[];
createNative(): NTVectorElementVector;
size(): number;
getElement(index: number): BaseVectorElement<any, any>;
add(element: BaseVectorElement<any, any>): void;
}
export declare abstract class BillboardStyleBuilder<T extends NTBillboardStyleBuilder, U extends BillboardStyleBuilderOptions> extends BaseVectorElementStyleBuilder<T, U> {
createNative(options: BillboardStyleBuilderOptions): any;
scaleWithDPI: boolean;
hideIfOverlapped: boolean;
horizontalOffset: number;
verticalOffset: number;
animationStyle: AnimationStyle;
placementPriority: number;
causesOverlap: boolean;
attachAnchorPointX: number;
attachAnchorPointY: number;
mBuildStyle: NTStyle;
abstract buildStyle(): any;
}