mirror of
https://gitee.com/antv/g6.git
synced 2024-12-02 19:58:46 +08:00
feat: add label background
This commit is contained in:
parent
37cac2d746
commit
6c8236c76b
@ -310,7 +310,7 @@ export const shapeBase: ShapeOptions = {
|
||||
} else {
|
||||
// 所有生效的 state 的样式
|
||||
const enableStatesStyle = clone(item.getCurrentStatesStyle());
|
||||
|
||||
|
||||
// 原始样式
|
||||
const originStyle = clone(item.getOriginStyle());
|
||||
|
||||
|
@ -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 =
|
||||
|
Loading…
Reference in New Issue
Block a user