UNPKG

@nativescript-community/ui-carto

Version:

NativeScript plugin for CARTO Mobile SDK

49 lines (48 loc) 1.77 kB
import { Color } from '@nativescript/core'; import { MapBounds, MapPos, MapPosVector } from '../core'; import { LineGeometry } from '../geometry'; import { BaseVectorElementStyleBuilder } from './index.common'; import { BaseLineVectorElement } from './index.ios'; import { LineOptions, LineStyleBuilderOptions } from './line'; export { MapBounds }; export declare enum LineJointType { BEVEL = 2, MITER = 1, NONE = 0, ROUND = 3 } export declare enum LineEndType { ROUND = 2, SQUARE = 1, NONE = 0 } export declare class LineStyleBuilder extends BaseVectorElementStyleBuilder<NTLineStyleBuilder, LineStyleBuilderOptions> { createNative(options: LineStyleBuilderOptions): NTLineStyleBuilder; width: number; color: Color | string; joinType: LineJointType; endType: LineEndType; clickWidth: number; stretchFactor: number; mBuildStyle: NTLineStyle; buildStyle(): NTLineStyle; } export declare class Line extends BaseLineVectorElement<NTLine, LineOptions> { options: LineOptions; color: Color | string; width: number; joinType: LineJointType; endType: LineEndType; clickWidth: number; stretchFactor: number; constructor(options?: LineOptions, native?: NTLine); createNative(options: LineOptions): NTLine; buildStyle(): NTLineStyle; get styleBuilder(): LineStyleBuilder | NTLineStyle | LineStyleBuilderOptions; set styleBuilder(value: LineStyleBuilder | NTLineStyle | LineStyleBuilderOptions); setPoses(positions: MapPosVector | MapPos[]): void; getPoses(): MapPos[] | MapPosVector<import("../core").DefaultLatLonKeys>; set geometry(geometry: LineGeometry); getGeometry(): NTLineGeometry; getBounds(): MapBounds<import("../core").DefaultLatLonKeys>; }