refactor(internals): use non enumerable props

This commit is contained in:
moklick
2022-05-26 19:55:03 +02:00
parent 03f0be62f7
commit 27b5de2d96
8 changed files with 41 additions and 22 deletions
+4 -3
View File
@@ -2,6 +2,7 @@ import { CSSProperties, MouseEvent as ReactMouseEvent } from 'react';
import { XYPosition, Position, CoordinateExtent } from './utils';
import { HandleElement } from './handles';
import { handleBoundsSymbol, isParentSymbol, zSymbol } from '../utils';
// interface for the user node items
export interface Node<T = any> {
@@ -28,9 +29,9 @@ export interface Node<T = any> {
// only used internally
positionAbsolute?: XYPosition;
z?: number;
handleBounds?: NodeHandleBounds;
isParent?: boolean;
[zSymbol]?: number;
[handleBoundsSymbol]?: NodeHandleBounds;
[isParentSymbol]?: boolean;
}
// props that get passed to a custom node