@univerjs/sheets-ui v0.5.4


Interface: IScrollState

Defined in: submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:23

Extended by

Properties

PropertyTypeDescriptionDefined in
offsetXnumberoffsetX from startRow, coordinate same as viewport, not scrollbarsubmodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:27
offsetYnumberoffsetY from startColumn, coordinate same as viewport, not scrollbarsubmodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:31
sheetViewStartColumnnumberCurrent start column in viewportMain in canvas, NOT the first column of visible area of current viewport after freeze. e.g. If no freeze, it’s the same as startColumn in current viewport. If freeze, this value is smaller than the first column of visible area. Just pretend that viewMainLeft does not exist. e.g. If column A ~ C is frozen, the first column of viewMain is D, but sheetViewStartColumn still 0.submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:47
sheetViewStartRownumberCurrent start row in viewportMain in canvas, NOT the first row of visible area of current viewport after freeze. e.g. If no freeze, it’s the same as startRow in current viewport. If freeze, this value is smaller than the first row of visible area. Just pretend that viewMainTop does not exist. e.g. If row 1 ~ 2 is frozen, the first row if viewMain is 3, but sheetViewStartRow still 0.submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:39