@compass-framework/worksheet-layout 1.0.11 → 1.0.13
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/@types/HorizontalSegment.d.ts +6 -6
- package/@types/HorizontalSegmentBounds.d.ts +5 -0
- package/@types/ScrollGridDelta.d.ts +11 -0
- package/@types/ScrollPosition.d.ts +11 -0
- package/@types/ScrollRange.d.ts +27 -0
- package/@types/UIWorksheetLayoutDrawable.d.ts +24 -0
- package/@types/VerticalSegment.d.ts +6 -6
- package/@types/{VerticalBounds.d.ts → VerticalSegmentBounds.d.ts} +1 -1
- package/index.d.ts +2 -2
- package/package.json +1 -1
- package/@types/HorizontalBounds.d.ts +0 -5
- package/@types/UIWorksheetLayoutDrawable.ts +0 -20
- /package/@types/{UIWorksheetLayout.ts → UIWorksheetLayout.d.ts} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HorizontalSegmentBounds } from "./HorizontalSegmentBounds";
|
|
2
2
|
|
|
3
3
|
export interface HorizontalSegment {
|
|
4
|
-
|
|
4
|
+
getHorizontalScrollTop(): number
|
|
5
5
|
|
|
6
6
|
getHorizontalHeight(): number;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
getHorizontalScrollY(): number;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
getHorizontalStartRowNumber(): number;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
getHorizontalEndRowNumber(): number;
|
|
13
13
|
|
|
14
|
-
getHorizontalBounds():
|
|
14
|
+
getHorizontalBounds(): HorizontalSegmentBounds;
|
|
15
15
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class ScrollRange {
|
|
2
|
+
public set(range: ScrollRange): void;
|
|
3
|
+
|
|
4
|
+
public setStartColumnNumber(column: number): void;
|
|
5
|
+
|
|
6
|
+
public setEndRowNumber(row: number): void;
|
|
7
|
+
|
|
8
|
+
public setStartRowNumber(row: number): void;
|
|
9
|
+
|
|
10
|
+
public getStartRowNumber(): number;
|
|
11
|
+
|
|
12
|
+
public getStartColumnNumber(): number;
|
|
13
|
+
|
|
14
|
+
public getEndRowNumber(): number;
|
|
15
|
+
|
|
16
|
+
public getEndColumnNumber(): number;
|
|
17
|
+
|
|
18
|
+
public getScrollRangeWidth(): number;
|
|
19
|
+
|
|
20
|
+
public getScrollRangeHeight(): number;
|
|
21
|
+
|
|
22
|
+
public setEndColumnNumber(column: number): void;
|
|
23
|
+
|
|
24
|
+
public setScrollRangeHeight(height: number): void;
|
|
25
|
+
|
|
26
|
+
public setScrollRangeWidth(width: number): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Drawable, Canvas } from "@compass-framework/core";
|
|
2
|
+
import { ScrollGridDelta } from "./ScrollGridDelta";
|
|
3
|
+
import { ScrollRange } from "./ScrollRange";
|
|
4
|
+
import { ScrollPosition } from "./ScrollPosition";
|
|
5
|
+
|
|
6
|
+
export declare class UIWorksheetLayoutDrawable extends Drawable {
|
|
7
|
+
public draw(canvas: Canvas): void;
|
|
8
|
+
|
|
9
|
+
public getOpacity(): number;
|
|
10
|
+
|
|
11
|
+
public getScrollGridDelta(): ScrollGridDelta;
|
|
12
|
+
|
|
13
|
+
public getScrollRange(): ScrollRange;
|
|
14
|
+
|
|
15
|
+
public getScrollPosition(): ScrollPosition;
|
|
16
|
+
|
|
17
|
+
public setAlpha(alpha: number): void;
|
|
18
|
+
|
|
19
|
+
public setScrollPosition(scrollPosition: ScrollPosition): void;
|
|
20
|
+
|
|
21
|
+
public setScrollRange(scrollRange: ScrollRange): void;
|
|
22
|
+
|
|
23
|
+
public setScrollGridDelta(position: ScrollGridDelta): void;
|
|
24
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VerticalSegmentBounds } from "./VerticalSegmentBounds";
|
|
2
2
|
|
|
3
3
|
export interface VerticalSegment {
|
|
4
|
-
|
|
4
|
+
getVerticalScrollLeft(): number
|
|
5
5
|
|
|
6
6
|
getVerticalWidth(): number;
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
getVerticalBounds(): VerticalSegmentBounds;
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
getVerticalScrollX(): number;
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
getVerticalStartColumnNumber(): number;
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
getVerticalEndColumnNumber(): number;
|
|
15
15
|
}
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export * from "./@types/VerticalSegment"
|
|
2
2
|
export * from "./@types/HorizontalSegment"
|
|
3
|
-
export * from "./@types/
|
|
4
|
-
export * from "./@types/
|
|
3
|
+
export * from "./@types/HorizontalSegmentBounds"
|
|
4
|
+
export * from "./@types/VerticalSegmentBounds"
|
|
5
5
|
export * from "./@types/UIWorksheetLayout"
|
|
6
6
|
export * from "./@types/UIWorksheetLayoutDrawable"
|
package/package.json
CHANGED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Drawable,
|
|
3
|
-
Canvas,
|
|
4
|
-
} from "@compass-framework/core";
|
|
5
|
-
|
|
6
|
-
export class UIWorksheetLayoutDrawable extends Drawable {
|
|
7
|
-
public draw(canvas: Canvas): void {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
public render(startRow: number, startColumn: number, endRow: number, endColumn: number): void {
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
public getOpacity(): number {
|
|
15
|
-
return 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
public setAlpha(alpha: number): void {
|
|
19
|
-
}
|
|
20
|
-
}
|
|
File without changes
|