Skip to content

Commit

Permalink
feat(graphin):add HaloStyle typing
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Jan 14, 2021
1 parent b3140a2 commit f936bd9
Showing 1 changed file with 12 additions and 21 deletions.
33 changes: 12 additions & 21 deletions packages/graphin/src/typings/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,30 +253,21 @@ export interface NodeStyle {
/** 节点的徽标 */
badges: NodeStyleBadge[];
/** 光环 */
halo: any;
halo: NodeStyleHalo;
}

export interface ElementStatus {
[key: string]:
| boolean
| Partial<{
fill: string;
stroke: string;
opacity: string;
shadowColor: string;
shadowBlur: number;
// shadow 表示增加一圈类似阴影的东西,border 表示在外层增加一个
additionType: 'shadow' | 'border';
additionStyle: Partial<{
fill: string;
stroke: string;
opacity: string;
shadowColor: string;
shadowBlur: number;
}>;
}>;
export interface NodeStyleHalo {
/** 大小 */
size: number | [number] | [number, number];
/** 填充色 */
fill: string;
/** 包围边颜色 */
stroke: string;
/** 边框的宽度 */
lineWidth: number;
/** 透明度 */
opacity: number;
}

export interface ComboStyle {}

export interface Layout {
Expand Down

0 comments on commit f936bd9

Please sign in to comment.