API Reference
@univerjs
@univerjs/engine-render
classes
Scrolltimer

@univerjs/engine-render v0.4.2Docs


Class: ScrollTimer

Constructors

new ScrollTimer()

new ScrollTimer(
   _scene, 
   _scrollTimerType, 
   _padding?): ScrollTimer

Parameters

ParameterTypeDefault value
_sceneSceneundefined
_scrollTimerTypeScrollTimerTypeScrollTimerType.ALL
_padding?IPaddingDataundefined

Returns

ScrollTimer

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:47 (opens in a new tab)

Accessors

scrollTimerType

get scrollTimerType(): ScrollTimerType
set scrollTimerType(type): void

Parameters

ParameterType
typeScrollTimerType

Returns

ScrollTimerType

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:67 (opens in a new tab)

Methods

dispose()

dispose(): void

Returns

void

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:170 (opens in a new tab)


getActiveViewport()

getActiveViewport(): any

Returns

any

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:75 (opens in a new tab)


getScene()

getScene(): Scene

Returns

Scene

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:179 (opens in a new tab)


getViewportByCoord()

getViewportByCoord(scene?): undefined | Viewport

Parameters

ParameterType
scene?Scene

Returns

undefined | Viewport

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:175 (opens in a new tab)


scrolling()

scrolling(
   offsetX, 
   offsetY, 
   scrollFunction): void

Parameters

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

Returns

void

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:160 (opens in a new tab)


setActiveViewport()

setActiveViewport(viewport): void

Parameters

ParameterType
viewportViewport

Returns

void

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:71 (opens in a new tab)


startScroll()

startScroll(
   offsetX, 
   offsetY, 
   targetViewport?): void

Parameters

ParameterType
offsetXnumber
offsetYnumber
targetViewport?any

Returns

void

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:79 (opens in a new tab)


stopScroll()

stopScroll(): void

Returns

void

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:166 (opens in a new tab)


create()

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

Parameters

ParameterTypeDefault value
sceneanyundefined
scrollTimerTypeScrollTimerTypeScrollTimerType.ALL
padding?IPaddingDataundefined

Returns

ScrollTimer

Defined in

submodules/univer/packages/engine-render/src/scroll-timer.ts:59 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.