@wayz/react-gl
Version:
React Component for DeckGL, Base on AMap, Mapbox GL
39 lines (38 loc) • 1.01 kB
TypeScript
import RBush from 'rbush';
declare class TextMapWrapper {
tagMap: any;
ctx: CanvasRenderingContext2D;
textSizes: {
[key: string]: number;
};
weightThreshold: number;
clusterCache: any;
constructor();
setData(data: any, { getLabel, getPosition, getWeight }: {
getLabel: any;
getPosition: any;
getWeight: any;
}): void;
extractCluster({ scale, weightThreshold }: {
scale: any;
weightThreshold: any;
}): RBush<unknown>;
layout({ tagList, scale, minFontSize, maxFontSize }: {
tagList: any;
scale: any;
minFontSize: any;
maxFontSize: any;
}): any;
getTags({ zoom, bbox, minFontSize, maxFontSize, weightThreshold }: {
zoom: any;
bbox: any;
minFontSize: any;
maxFontSize: any;
weightThreshold: any;
}): any;
measureText(label: any, fontSize: any): {
width: number;
height: any;
};
}
export default TextMapWrapper;