You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched the Github Issues for similar issues, but did not find anything.
Problem
I hope to be able to set the corresponding selection based on the currently obtained rows and columns directly below the mouse, plus my own calculations. It may be multiple rows and columns, following the movement of the mouse.
Solution
step 1: Get the row and column of the cells directly under the mouse based on the coordinates on the screen where the current mouse is located.
step2: Calculate the selection range based on the cell row and column information obtained in the first step, and set the selection range to be displayed in the sheet.
The text was updated successfully, but these errors were encountered:
Pay attention to the next version of Facade update. After getting the cell information through onCellPointerMove, you can perform customized operations.
univerAPI.getSheetHooks().onCellPointerMove((cell)=>{// Get the cell currently pointed by the mouseconsole.log(cell);})
Initial checklist
Problem
I hope to be able to set the corresponding selection based on the currently obtained rows and columns directly below the mouse, plus my own calculations. It may be multiple rows and columns, following the movement of the mouse.
Solution
step 1: Get the row and column of the cells directly under the mouse based on the coordinates on the screen where the current mouse is located.
step2: Calculate the selection range based on the cell row and column information obtained in the first step, and set the selection range to be displayed in the sheet.
The text was updated successfully, but these errors were encountered: