@visactor/vrender-components
Version:
components library for dp visualization
50 lines (49 loc) • 1.73 kB
TypeScript
import type { IGroup, IPolygon } from '@visactor/vrender-core';
import { Tag } from '../tag';
import { Marker } from './base';
import type { CommonMarkAreaAnimationType, IMarkAreaLabelPosition, MarkAreaAttrs, MarkerAnimationState } from './type';
import type { ComponentOptions } from '../interface';
export declare function registerMarkAreaAnimate(): void;
export declare class MarkArea extends Marker<MarkAreaAttrs, CommonMarkAreaAnimationType> {
name: string;
static defaultAttributes: {
interactive: boolean;
label: {
position: IMarkAreaLabelPosition;
textStyle: {
fill: string;
stroke: string;
lineWidth: number;
fontSize: number;
fontWeight: string;
fontStyle: string;
};
padding: number[];
panel: {
visible: boolean;
cornerRadius: number;
fill: string;
fillOpacity: number;
};
};
areaStyle: {
fill: string;
visible: boolean;
};
};
defaultUpdateAnimation: never;
defaultExitAnimation: import("./type").MarkerExitAnimation;
protected markerAnimate(state: MarkerAnimationState): void;
private _area;
getArea(): IPolygon;
getLabel(): Tag;
constructor(attributes: MarkAreaAttrs, options?: ComponentOptions);
protected getPointAttrByPosition(position: IMarkAreaLabelPosition): {
x: number;
y: number;
};
protected setLabelPos(): void;
protected initMarker(container: IGroup): void;
protected updateMarker(): void;
protected isValidPoints(): boolean;
}