packages/datasheet/src/pc/components/konva_grid/readme.md
This module is a Canvas version of the grid view, the main purpose is to improve the rendering performance of the grid, the underlying rendering engine is currently provided by the Konva drawing framework.
This module contains two main blocks:
It contains some business components, such as CellValue, statistics columns, column headers and other components.
.tsx files:Rendering-related hooks, designed to export rendering components of various small modules for the caller to assemble..ts files: MouseEvent、touchEvent etc. events.Two base models are included.
Handle grid layout-related logic, based on GridLayout derived from the GroupTabLayout, BlankRowLayout, AddRowLayout and RecordRowLayout four classes, respectively responsible for group group header, blank row, add row and record row layout.
The GridCoordinate and GanttCoordinate classes are derived from the Coordinate base coordinate system class and are responsible for the coordinate layout of the table view and Gantt view respectively.
Contains some common helper functions, such as get string width and cache, get cached image, custom Shape for drawing base method, etc.