Skip to content

Commit

Permalink
fix: update edge types file
Browse files Browse the repository at this point in the history
  • Loading branch information
baizn committed Jan 12, 2021
1 parent 3f1285c commit 16d8dca
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/graphin/src/typings/type.ts
Expand Up @@ -27,7 +27,7 @@ export interface RestNode {
/** 节点的样式,默认为默认样式 */
style: Partial<NodeStyle>;
/** 节点当前的状态 */
status: NodeStatus;
status: ElementStatus;
/** 布局的相关信息 */
layout: {
/** 度数 */
Expand All @@ -51,8 +51,9 @@ export interface RestEdge {
/** 边的类型 */
type?: string;
/** 边的数据 */
data: {};
style: Partial<EdgeStyle>;
/** 边当前的状态 */
status: ElementStatus;
layout: {
/** 边的弹簧长度,力导时使用 */
spring?: number;
Expand Down Expand Up @@ -242,7 +243,7 @@ export interface NodeStyle {
badges: NodeStyleBadge[];
}

export interface NodeStatus {
export interface ElementStatus {
[key: string]:
| boolean
| Partial<{
Expand Down

0 comments on commit 16d8dca

Please sign in to comment.