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
When scrolling the spreadsheet, the return of getMeta function is confusing after extending class MergedCell . It returns data or null .
⌨️ Code Snapshots
exportconstgetTempMergedCell=(allVisibleCells: DataCell[],sheet?: SpreadSheet,cellsInfos: MergedCellInfo[]=[],): TempMergedCell=>{const{ cellsMeta, cells, invisibleCellInfo }=getVisibleInfo(cellsInfos,allVisibleCells,);letviewMeta: ViewMeta|Node|undefined=cellsMeta;letmergedAllCells: DataCell[]=cells;// some cells are invisible and some cells are visibleconstisPartiallyVisible=invisibleCellInfo?.length>0&&invisibleCellInfo.length<cellsInfos.length;// 当 MergedCell 只有部分在可视区域时,在此获取 MergedCell 不在可视区域内的 cellsif(isPartiallyVisible){const{cells: invisibleCells,cellsMeta: invisibleMeta}=getInvisibleInfo(invisibleCellInfo,sheet!);viewMeta=viewMeta||invisibleMeta;mergedAllCells=cells.concat(invisibleCells);// this is the boob which will explode anytime}if(!isEmpty(cells)&&!viewMeta){// 如果没有指定合并后的文本绘制的位置,默认画在选择的第一个单元格内viewMeta=mergedAllCells[0]?.getMeta()asViewMeta;}return{cells: mergedAllCells,viewMeta: viewMetaasViewMeta,};};
When scolling the spreadsheet, invisibleCells may be any position includes top, bottom, left , right . But here , Simplely add it to the tail. So the viewMeta will be data or null .
mergedAllCells should be sorted by colIndex and rowIndex .
🔗 Reproduce Link
🤔 Steps to Reproduce
😊 Expected Behavior
viewMeta should be data anytimes
😅 Current Behavior
💻 System information
Environment
Info
System
Browser
The text was updated successfully, but these errors were encountered:
🏷 Version
Sheet Type
🖋 Description
When scrolling the spreadsheet, the return of getMeta function is confusing after extending class MergedCell . It returns data or null .
⌨️ Code Snapshots
When scolling the spreadsheet, invisibleCells may be any position includes top, bottom, left , right . But here , Simplely add it to the tail. So the viewMeta will be data or null .
mergedAllCells should be sorted by colIndex and rowIndex .
🔗 Reproduce Link
🤔 Steps to Reproduce
😊 Expected Behavior
viewMeta should be data anytimes
😅 Current Behavior
💻 System information
The text was updated successfully, but these errors were encountered: