Interface: IViewportScrollState
Defined in: submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:50
Extends
Properties
Property | Type | Description | Inherited from | Defined in |
---|---|---|---|---|
offsetX | number | offsetX from startRow, coordinate same as viewport, not scrollbar | IScrollState .offsetX | submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:27 |
offsetY | number | offsetY from startColumn, coordinate same as viewport, not scrollbar | IScrollState .offsetY | submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:31 |
scrollX | number | scroll value in scrollbar | - | submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:52 |
scrollY | number | scroll value in scrollbar | - | submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:54 |
sheetViewStartColumn | number | Current 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. | IScrollState .sheetViewStartColumn | submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:47 |
sheetViewStartRow | number | Current 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. | IScrollState .sheetViewStartRow | submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:39 |
viewportScrollX | number | scroll value on viewport | - | submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:56 |
viewportScrollY | number | scroll value on viewport | - | submodules/univer/packages/sheets-ui/src/services/scroll-manager.service.ts:58 |