File tree Expand file tree Collapse file tree 3 files changed +9
-11
lines changed
Expand file tree Collapse file tree 3 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 1- import {
2- DraggingPositionEvaluator ,
3- HoveringPosition ,
4- } from './DraggingPositionEvaluator' ;
1+ import { DraggingPositionEvaluator } from './DraggingPositionEvaluator' ;
52import {
63 DraggingPosition ,
4+ HoveringPosition ,
75 LinearItem ,
86 TreeEnvironmentContextProps ,
97 TreeItem ,
Original file line number Diff line number Diff line change 11import * as React from 'react' ;
22import {
33 DraggingPosition ,
4+ HoveringPosition ,
45 TreeEnvironmentContextProps ,
56 TreeItem ,
67} from '../types' ;
78import { useGetGetParentOfLinearItem } from './useGetParentOfLinearItem' ;
89import { isOutsideOfContainer } from './layoutUtils' ;
910import { DraggingPositionEvaluation } from './DraggingPositionEvaluation' ;
1011
11- // TODO move out
12- export type HoveringPosition = {
13- linearIndex : number ;
14- offset : 'bottom' | 'top' | undefined ;
15- indentation : number ;
16- } ;
17-
1812// TODO move back into hook?
1913export class DraggingPositionEvaluator {
2014 private env : TreeEnvironmentContextProps ;
Original file line number Diff line number Diff line change @@ -519,3 +519,9 @@ export interface LiveDescriptors {
519519 */
520520 programmaticallyDraggingTarget : string ;
521521}
522+
523+ export type HoveringPosition = {
524+ linearIndex : number ;
525+ offset : 'bottom' | 'top' | undefined ;
526+ indentation : number ;
527+ } ;
You can’t perform that action at this time.
0 commit comments