Skip to content

Commit

Permalink
fix: support user defined property in date props
Browse files Browse the repository at this point in the history
fix #84
  • Loading branch information
budlion committed Apr 20, 2020
1 parent 0be1540 commit 49d0076
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/graphin/src/types.ts
Expand Up @@ -133,6 +133,9 @@ export interface Node {
/** 节点度数 */
degree?: number;
searchTypes?: string[];

/** User Defined Propery */
[key: string]: any;
}

export interface NodeLayoutType {
Expand Down Expand Up @@ -175,6 +178,9 @@ export interface Edge {
id?: string;
/** 边的弹簧长度,力导时使用 */
spring?: number;

/** User Defined Property */
[key: string]: any;
}
export type NodeData = Node['data'];
export type EdgeData = Edge['data'];
Expand Down

0 comments on commit 49d0076

Please sign in to comment.