通过索引而不是位置获取列宽

Get the column width by index instead of position

我想通过索引而不是位置来获取列宽。

要获取当前查看的列的宽度,我可以使用它。

bodyLayer.getColumnWidthByPosition(columnPosition)

是否可以通过索引获取列宽?这将允许我获取不在视口内的列的列宽。我想遍历每一列并获得它的宽度。

这只有在像DataLayer这样的更深层次上操作时才有可能。 ViewportLayer 不会 return 您当前不可见的列的任何宽度。这将违反 ViewportLayer 的设计。