@univerjs/engine-render v0.5.0-beta.1Docs


Class: ScrollTimer

Constructors

new ScrollTimer()

new ScrollTimer(
   _scene, 
   _scrollTimerType, 
   _thresholdAutoMove): ScrollTimer

Parameters

ParameterTypeDefault value
_sceneSceneundefined
_scrollTimerTypeScrollTimerTypeScrollTimerType.ALL
_thresholdAutoMoveIPaddingDataTHRESHOLD_TO_AUTO_MOVE

Returns

ScrollTimer

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:47

Accessors

offsetX

Get Signature

get offsetX(): number
Returns

number

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:59


offsetY

Get Signature

get offsetY(): number
Returns

number

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:63


scrollTimerType

Get Signature

get scrollTimerType(): ScrollTimerType
Returns

ScrollTimerType

Set Signature

set scrollTimerType(type): void
Parameters
ParameterType
typeScrollTimerType
Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:71

Methods

dispose()

dispose(): void

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:162


getActiveViewport()

getActiveViewport(): any

Returns

any

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:79


getScene()

getScene(): Scene

Returns

Scene

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:167


scrolling()

scrolling(
   offsetX, 
   offsetY, 
   scrollFunction): void

Parameters

ParameterType
offsetXnumber
offsetYnumber
scrollFunction(x?, y?) => void

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:152


setActiveViewport()

setActiveViewport(viewport): void

Parameters

ParameterType
viewportViewport

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:75


startScroll()

startScroll(
   offsetX, 
   offsetY, 
   targetViewport?): void

Parameters

ParameterType
offsetXnumber
offsetYnumber
targetViewport?any

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:83


stopScroll()

stopScroll(): void

Returns

void

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:158


create()

static create(
   scene, 
   scrollTimerType, 
   padding?): ScrollTimer

Parameters

ParameterTypeDefault value
sceneSceneundefined
scrollTimerTypeScrollTimerTypeScrollTimerType.ALL
padding?IPaddingDataundefined

Returns

ScrollTimer

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/scroll-timer.ts:55