Skip to content

Commit

Permalink
ui-charts: allow external picking element types
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Ser <[email protected]>
  • Loading branch information
emersion committed Mar 7, 2025
1 parent ce5a4c4 commit e3cfaec
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ui-charts/src/spaceTimeChart/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ export const LAYERS = ['background', 'graduations', 'paths', 'overlay', 'caption
export type LayerType = (typeof LAYERS)[number];

// PICKING SPECIFIC TYPES:
export type PickingElement =
| { type: 'point' }
| { type: 'segment' }
| { type: 'conflict' };
export type PickingElement = { type: string };
export type HoveredItem = { layer: PickingLayerType; element: PickingElement };

export type DrawingFunction = (
Expand Down

0 comments on commit e3cfaec

Please sign in to comment.