ngx-open-map-wrapper/node_modules/@mapbox/tiny-sdf/index.d.ts

25 lines
550 B
TypeScript

export declare type TinySDFOptions = {
fontSize?: number;
buffer?: number;
radius?: number;
cutoff?: number;
fontFamily?: string;
fontWeight?: string;
fontStyle?: string;
lang?: string;
};
export default class TinySDF {
constructor(options: TinySDFOptions);
draw(char: string): {
data: Uint8ClampedArray;
width: number;
height: number;
glyphWidth: number;
glyphHeight: number;
glyphTop: number;
glyphLeft: number;
glyphAdvance: number;
};
}