From 732d92d10bf6894d78e46fec7b92b519b8089410 Mon Sep 17 00:00:00 2001 From: moklick Date: Thu, 26 May 2022 19:56:41 +0200 Subject: [PATCH] chore(types): cleanup --- src/types/nodes.ts | 2 +- src/utils/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/nodes.ts b/src/types/nodes.ts index ed289dd6..1971714a 100644 --- a/src/types/nodes.ts +++ b/src/types/nodes.ts @@ -26,9 +26,9 @@ export interface Node { zIndex?: number; extent?: 'parent' | CoordinateExtent; expandParent?: boolean; + positionAbsolute?: XYPosition; // only used internally - positionAbsolute?: XYPosition; [zSymbol]?: number; [handleBoundsSymbol]?: NodeHandleBounds; [isParentSymbol]?: boolean; diff --git a/src/utils/index.ts b/src/utils/index.ts index 490a0338..89857c11 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -41,6 +41,6 @@ export const getBoundsofRects = (rect1: Rect, rect2: Rect): Rect => export const isNumeric = (n: any): n is number => !isNaN(n) && isFinite(n); -export const handleBoundsSymbol = Symbol('handleBound'); +export const handleBoundsSymbol = Symbol('handleBounds'); export const zSymbol = Symbol('z'); export const isParentSymbol = Symbol('isParent');