feat: add label background

This commit is contained in:
ryannz 2020-03-26 00:17:21 +08:00 committed by Yanyan Wang
parent 37cac2d746
commit 6c8236c76b
2 changed files with 7 additions and 1 deletions

View File

@ -310,7 +310,7 @@ export const shapeBase: ShapeOptions = {
} else {
// 所有生效的 state 的样式
const enableStatesStyle = clone(item.getCurrentStatesStyle());
// 原始样式
const originStyle = clone(item.getOriginStyle());

View File

@ -142,6 +142,12 @@ export type LabelStyle = Partial<{
position: string;
textBaseline: string;
offset: number;
background?: {
fill?: string;
stroke?: string;
radius?: number[] | number;
padding?: number[] | number;
};
}>;
export type Easeing =