@expofp/floorplan
Version:
Interactive floor plan library for expos and events
17 lines • 1.66 kB
TypeScript
export declare function createImageCanvas(image: HTMLImageElement, width: number, height: number, pixelRatio: number, ptsScale?: number, flip?: 'horizontal' | 'vertical'): HTMLCanvasElement;
export declare function createCurrentCanvas(pixelRatio: number, color?: string, scale?: number, width?: number, height?: number, text?: string, textColor?: string): HTMLCanvasElement;
export declare function createTargetCanvas(pixelRatio: number, color?: string, scale?: number): HTMLCanvasElement;
export declare function createArrowCurrentCanvas(pixelRatio: number, color?: string, scale?: number): HTMLCanvasElement;
export declare function createYahCanvas(pixelRatio: number, color?: string, scale?: number): HTMLCanvasElement;
export declare function createLabelCanvas(text: string, fontSize: number, pixelRatio: number, color: string | undefined, fontWeight: number, strokeStyle?: string, strokeWidth?: number): HTMLCanvasElement;
/**
* The category pin for one outdoor PoI: the poiType glyph knocked out in white
* inside a pin filled with the booth's authored color. Returns `ImageData`
* rather than a canvas — the only consumer is `map.addImage`, and a canvas per
* PoI would stay resident for the session.
*/
export declare function createPoiPinImage(image: HTMLImageElement | null, widthPx: number, pixelRatio: number, color: string): ImageData;
/** The shared selection pinhead — one image serves every marker. */
export declare function createPoiPinheadImage(size: number, pixelRatio: number, color: string): ImageData;
export declare function getFont(px: number, weight?: number, style?: string): string;
//# sourceMappingURL=canvases.d.ts.map