refactor: Change Position into enum (#48)
This commit is contained in:
+6
-1
@@ -6,7 +6,12 @@ export type Elements = Array<Node | Edge>;
|
||||
|
||||
export type Transform = [number, number, number];
|
||||
|
||||
export type Position = 'left' | 'top' | 'right' | 'bottom';
|
||||
export enum Position {
|
||||
Left = 'left',
|
||||
Top = 'top',
|
||||
Right = 'right',
|
||||
Bottom = 'bottom',
|
||||
}
|
||||
|
||||
export type XYPosition = {
|
||||
x: number;
|
||||
|
||||
Reference in New Issue
Block a user