(p, forwardedRef)
| 701 | }; |
| 702 | |
| 703 | const DataEditorImpl: React.ForwardRefRenderFunction<DataEditorRef, DataEditorProps> = (p, forwardedRef) => { |
| 704 | const [gridSelectionInner, setGridSelectionInner] = React.useState<GridSelection>(emptyGridSelection); |
| 705 | |
| 706 | const [overlay, setOverlay] = React.useState<{ |
| 707 | target: Rectangle; |
| 708 | content: GridCell; |
| 709 | theme: FullTheme; |
| 710 | initialValue: string | undefined; |
| 711 | cell: Item; |
| 712 | highlight: boolean; |
| 713 | forceEditMode: boolean; |
| 714 | }>(); |
| 715 | const searchInputRef = React.useRef<HTMLInputElement | null>(null); |
| 716 | const canvasRef = React.useRef<HTMLCanvasElement | null>(null); |
| 717 | const [mouseState, setMouseState] = React.useState<MouseState>(); |
| 718 | const scrollRef = React.useRef<HTMLDivElement | null>(null); |
| 719 | const lastSent = React.useRef<[number, number]>(); |
| 720 | |
| 721 | const safeWindow = typeof window === "undefined" ? null : window; |
| 722 | |
| 723 | const { |
| 724 | imageEditorOverride, |
| 725 | getRowThemeOverride, |
| 726 | markdownDivCreateNode, |
| 727 | width, |
| 728 | height, |
| 729 | columns: columnsIn, |
| 730 | rows, |
| 731 | getCellContent, |
| 732 | onCellClicked, |
| 733 | onCellActivated, |
| 734 | onFillPattern, |
| 735 | onFinishedEditing, |
| 736 | coercePasteValue, |
| 737 | drawHeader: drawHeaderIn, |
| 738 | drawCell: drawCellIn, |
| 739 | editorBloom, |
| 740 | onHeaderClicked, |
| 741 | onColumnProposeMove, |
| 742 | spanRangeBehavior = "default", |
| 743 | onGroupHeaderClicked, |
| 744 | onCellContextMenu, |
| 745 | className, |
| 746 | onHeaderContextMenu, |
| 747 | getCellsForSelection: getCellsForSelectionIn, |
| 748 | onGroupHeaderContextMenu, |
| 749 | onGroupHeaderRenamed, |
| 750 | onCellEdited, |
| 751 | onCellsEdited, |
| 752 | onSearchResultsChanged: onSearchResultsChangedIn, |
| 753 | searchResults, |
| 754 | onSearchValueChange, |
| 755 | searchValue, |
| 756 | onKeyDown: onKeyDownIn, |
| 757 | onKeyUp: onKeyUpIn, |
| 758 | keybindings: keybindingsIn, |
| 759 | editOnType = true, |
| 760 | onRowAppended, |
nothing calls this directly
no test coverage detected
searching dependent graphs…