@univerjs/engine-render 0.5.3 → 0.5.4-experimental.20250114-7c09c35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +3274 -3263
- package/lib/types/shape/base-scroll-bar.d.ts +5 -0
- package/lib/types/shape/scroll-bar.d.ts +11 -0
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
- package/LICENSE +0 -176
|
@@ -9,6 +9,9 @@ export interface IScrollBarProps {
|
|
|
9
9
|
thumbBackgroundColor?: string;
|
|
10
10
|
thumbHoverBackgroundColor?: string;
|
|
11
11
|
thumbActiveBackgroundColor?: string;
|
|
12
|
+
/**
|
|
13
|
+
* The thickness of a scrolling bar.
|
|
14
|
+
*/
|
|
12
15
|
barSize?: number;
|
|
13
16
|
barBackgroundColor?: string;
|
|
14
17
|
barBorder?: number;
|
|
@@ -16,6 +19,8 @@ export interface IScrollBarProps {
|
|
|
16
19
|
enableHorizontal?: boolean;
|
|
17
20
|
enableVertical?: boolean;
|
|
18
21
|
mainScene?: Scene;
|
|
22
|
+
minThumbSizeH?: number;
|
|
23
|
+
minThumbSizeV?: number;
|
|
19
24
|
}
|
|
20
25
|
export declare abstract class BaseScrollBar extends Disposable {
|
|
21
26
|
enableHorizontal: boolean;
|
|
@@ -14,6 +14,9 @@ export declare class ScrollBar extends BaseScrollBar {
|
|
|
14
14
|
private _horizonPointerUpSub;
|
|
15
15
|
private _verticalPointerMoveSub;
|
|
16
16
|
private _verticalPointerUpSub;
|
|
17
|
+
/**
|
|
18
|
+
* The thickness of a scrolling bar.
|
|
19
|
+
*/
|
|
17
20
|
barSize: number;
|
|
18
21
|
barBorder: number;
|
|
19
22
|
thumbMargin: number;
|
|
@@ -26,6 +29,14 @@ export declare class ScrollBar extends BaseScrollBar {
|
|
|
26
29
|
thumbActiveBackgroundColor: string;
|
|
27
30
|
barBackgroundColor: string;
|
|
28
31
|
barBorderColor: string;
|
|
32
|
+
/**
|
|
33
|
+
* The min width of horizon thumb.
|
|
34
|
+
*/
|
|
35
|
+
minThumbSizeH: number;
|
|
36
|
+
/**
|
|
37
|
+
* The min height of vertical thumb.
|
|
38
|
+
*/
|
|
39
|
+
minThumbSizeV: number;
|
|
29
40
|
private _eventSub;
|
|
30
41
|
constructor(view: Viewport, props?: IScrollBarProps);
|
|
31
42
|
static attachTo(view: Viewport, props?: IScrollBarProps): ScrollBar;
|