mobility-toolbox-js
Version:
Toolbox for JavaScript applications in the domains of mobility and logistics.
37 lines (36 loc) • 1.45 kB
TypeScript
import type { RealtimeStyleFunction } from '../../types';
/**
* Draw circle delay background
*
* @private
*/
export declare const getDelayBgCanvas: (origin: number, radius: number, color: string) => import("../../types").AnyCanvas | null;
/**
* Draw delay text
*
* @private
*/
export declare const getDelayTextCanvas: (text: string, fontSize: number, font: string, delayColor: string, delayOutlineColor?: string, pixelRatio?: number) => import("../../types").AnyCanvas | null;
/**
* Draw colored circle with black border
*
* @private
*/
export declare const getCircleCanvas: (origin: number, radius: number, color: string, hasStroke: boolean, hasDash: boolean, pixelRatio: number) => import("../../types").AnyCanvas | null;
/**
* Draw text in the circle
*
* @private
*/
export declare const getTextCanvas: (text: string, origin: number, textSize: number, fillColor: string, strokeColor: string, hasStroke: boolean, pixelRatio: number, getTextFont: (fontSize: number, text?: string) => string) => import("../../types").AnyCanvas | null;
/**
* A tracker style that take in account the delay.
*
* @param {RealtimeTrajectory} trajectory The trajectory to render.
* @param {ViewState} viewState The view state of the map.
* @param {RealtimeStyleOptions} options Some options to change the rendering
* @return a canvas
* @private
*/
declare const realtimeDefaultStyle: RealtimeStyleFunction;
export default realtimeDefaultStyle;