UNPKG

@kepler.gl/constants

Version:

kepler.gl constants used by kepler.gl components, actions and reducers

24 lines (23 loc) 896 B
export declare enum AnnotationKind { TEXT = "TEXT", ARROW = "ARROW", POINT = "POINT", CIRCLE = "CIRCLE" } export declare function isAnnotationKind(kind: string): kind is AnnotationKind; export declare function isAnnotationWithArm<T extends object>(anno: T): anno is T & { armLength: number; angle: number; }; export declare const INITIAL_ANNOTATION_KIND = AnnotationKind.POINT; export declare const INITIAL_ANNOTATION_ANGLE = -45; export declare const INITIAL_ANNOTATION_ARM_LENGTH = 50; export declare const INITIAL_ANNOTATION_TEXT_WIDTH = 0; export declare const INITIAL_ANNOTATION_TEXT_HEIGHT = 0; export declare const INITIAL_ANNOTATION_LINE_WIDTH = 2; export declare const INITIAL_ANNOTATION_LINE_COLOR = "#FFFFFF"; export declare const ANNOTATION_KINDS: { id: AnnotationKind; label: string; }[]; export declare const ANNOTATION_LINE_WIDTH_OPTIONS: number[];