@univerjs/engine-render 0.7.0 → 0.8.0-beta.0
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 +534 -534
- package/lib/index.js +534 -534
- package/lib/types/shape/scroll-bar.d.ts +14 -12
- package/lib/umd/index.js +1 -1
- package/package.json +4 -4
|
@@ -6,28 +6,30 @@ import { Viewport } from '../viewport';
|
|
|
6
6
|
import { Rect } from './rect';
|
|
7
7
|
export interface IScrollBarProps {
|
|
8
8
|
mainScene?: Scene;
|
|
9
|
+
/** Margin between the track to the edge of the scrollable area. Default is 2px. */
|
|
9
10
|
thumbMargin?: number;
|
|
10
11
|
thumbLengthRatio?: number;
|
|
12
|
+
/** Background color of the thumb. */
|
|
11
13
|
thumbBackgroundColor?: string;
|
|
14
|
+
/** Background color of the thumb on hover. */
|
|
12
15
|
thumbHoverBackgroundColor?: string;
|
|
16
|
+
/** Background color of the thumb when active. */
|
|
13
17
|
thumbActiveBackgroundColor?: string;
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
|
|
18
|
+
/** Background color of the track. */
|
|
19
|
+
trackBackgroundColor?: string;
|
|
20
|
+
/** Background color of the track border. */
|
|
21
|
+
trackBorderColor?: string;
|
|
22
|
+
/** The thickness of a scrolling track (not scrolling thumb). */
|
|
17
23
|
barSize?: number;
|
|
18
|
-
/**
|
|
19
|
-
* The thickness of track border.
|
|
20
|
-
*/
|
|
24
|
+
/** The thickness of track border. */
|
|
21
25
|
barBorder?: number;
|
|
26
|
+
/** Enable the horizontal scroll bar. True by default. */
|
|
22
27
|
enableHorizontal?: boolean;
|
|
28
|
+
/** Enable the vertical scroll bar. True by default. */
|
|
23
29
|
enableVertical?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
* The min width of horizon thumb
|
|
26
|
-
*/
|
|
30
|
+
/** The min width of horizon thumb. Default is 17 px. */
|
|
27
31
|
minThumbSizeH?: number;
|
|
28
|
-
/**
|
|
29
|
-
* The min height of vertical thumb
|
|
30
|
-
*/
|
|
32
|
+
/** The min height of vertical thumb. Default is 17 px. */
|
|
31
33
|
minThumbSizeV?: number;
|
|
32
34
|
}
|
|
33
35
|
export declare class ScrollBar extends Disposable {
|