@univerjs/engine-render v0.4.2 • Docs
Class: ScrollBar
Extends
BaseScrollBar
Constructors
new ScrollBar()
new ScrollBar(view, props?): ScrollBar
Parameters
Parameter | Type |
---|---|
view | Viewport |
props ? | IScrollBarProps |
Returns
Overrides
BaseScrollBar.constructor
Defined in
submodules/univer/packages/engine-render/src/shape/scroll-bar.ts:76 (opens in a new tab)
Properties
Accessors
limitX
get limitX(): number
Returns
number
Inherited from
BaseScrollBar.limitX
Defined in
submodules/univer/packages/engine-render/src/shape/base-scroll-bar.ts:68 (opens in a new tab)
limitY
get limitY(): number
Returns
number
Inherited from
BaseScrollBar.limitY
Defined in
submodules/univer/packages/engine-render/src/shape/base-scroll-bar.ts:75 (opens in a new tab)
miniThumbRatioX
get miniThumbRatioX(): number
Returns
number
Inherited from
BaseScrollBar.miniThumbRatioX
Defined in
submodules/univer/packages/engine-render/src/shape/base-scroll-bar.ts:122 (opens in a new tab)
miniThumbRatioY
get miniThumbRatioY(): number
Returns
number
Inherited from
BaseScrollBar.miniThumbRatioY
Defined in
submodules/univer/packages/engine-render/src/shape/base-scroll-bar.ts:138 (opens in a new tab)
ratioScrollX
get ratioScrollX(): number
Returns
number
Inherited from
BaseScrollBar.ratioScrollX
Defined in
submodules/univer/packages/engine-render/src/shape/base-scroll-bar.ts:82 (opens in a new tab)
ratioScrollY
get ratioScrollY(): number
Returns
number
Inherited from
BaseScrollBar.ratioScrollY
Defined in
submodules/univer/packages/engine-render/src/shape/base-scroll-bar.ts:103 (opens in a new tab)
Methods
dispose()
dispose(): void
Returns
void
Overrides
BaseScrollBar.dispose
Defined in
submodules/univer/packages/engine-render/src/shape/scroll-bar.ts:93 (opens in a new tab)
disposeWithMe()
disposeWithMe(disposable): IDisposable
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
BaseScrollBar.disposeWithMe
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:96 (opens in a new tab)
ensureNotDisposed()
protected ensureNotDisposed(): void
Returns
void
Inherited from
BaseScrollBar.ensureNotDisposed
Defined in
submodules/univer/packages/core/src/shared/lifecycle.ts:100 (opens in a new tab)
hasHorizonThumb()
hasHorizonThumb(): boolean
Returns
boolean
Inherited from
BaseScrollBar.hasHorizonThumb
Defined in
submodules/univer/packages/engine-render/src/shape/base-scroll-bar.ts:188 (opens in a new tab)
hasVerticalThumb()
hasVerticalThumb(): boolean
Returns
boolean
Inherited from
BaseScrollBar.hasVerticalThumb
Defined in
submodules/univer/packages/engine-render/src/shape/base-scroll-bar.ts:192 (opens in a new tab)
makeDirty()
makeDirty(state): void
Parameters
Parameter | Type |
---|---|
state | boolean |
Returns
void
Overrides
BaseScrollBar.makeDirty
Defined in
submodules/univer/packages/engine-render/src/shape/scroll-bar.ts:151 (opens in a new tab)
makeViewDirty()
makeViewDirty(state): void
Parameters
Parameter | Type |
---|---|
state | boolean |
Returns
void
Defined in
submodules/univer/packages/engine-render/src/shape/scroll-bar.ts:161 (opens in a new tab)
pick()
pick(coord): null | Rect<IRectProps>
Parameters
Parameter | Type |
---|---|
coord | Vector2 |
Returns
null
| Rect
<IRectProps
>
Overrides
BaseScrollBar.pick
Defined in
submodules/univer/packages/engine-render/src/shape/scroll-bar.ts:166 (opens in a new tab)
render()
render(
ctx,
left,
top): void
Parameters
Parameter | Type | Default value |
---|---|---|
ctx | UniverRenderingContext | undefined |
left | number | 0 |
top | number | 0 |
Returns
void
Overrides
BaseScrollBar.render
Defined in
submodules/univer/packages/engine-render/src/shape/scroll-bar.ts:104 (opens in a new tab)
resize()
resize(
parentWidth,
parentHeight,
contentWidth,
contentHeight): void
Parameters
Parameter | Type | Default value |
---|---|---|
parentWidth | number | 0 |
parentHeight | number | 0 |
contentWidth | number | 0 |
contentHeight | number | 0 |
Returns
void
Overrides
BaseScrollBar.resize
Defined in
submodules/univer/packages/engine-render/src/shape/scroll-bar.ts:127 (opens in a new tab)
setProps()
setProps(props?): void
Parameters
Parameter | Type |
---|---|
props ? | IScrollBarProps |
Returns
void
Defined in
submodules/univer/packages/engine-render/src/shape/scroll-bar.ts:186 (opens in a new tab)
attachTo()
static attachTo(view, props?): ScrollBar
Parameters
Parameter | Type |
---|---|
view | Viewport |
props ? | IScrollBarProps |
Returns
Defined in
submodules/univer/packages/engine-render/src/shape/scroll-bar.ts:89 (opens in a new tab)