@compass-framework/worksheet-layout 1.0.51 → 1.0.53

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.
@@ -1,29 +1,12 @@
1
1
  import { Canvas, Drawable } from "@compass-framework/core";
2
- import { ScrollGridDelta } from "./ScrollGridDelta";
3
- import { ScrollRange } from "./ScrollRange";
4
- import { ScrollPosition } from "./ScrollPosition";
2
+ import { ViewportMetrics } from "./ViewportMetrics";
5
3
 
6
4
  export declare class UIWorksheetLayoutDrawable extends Drawable {
7
- public constructor();
8
- public constructor(drawable: Drawable);
9
-
10
- public render(canvas: Canvas): void;
5
+ public render(canvas: Canvas, metrics: ViewportMetrics): void;
11
6
 
12
7
  public draw(canvas: Canvas): void;
13
8
 
14
- public getScrollGridDelta(): ScrollGridDelta;
15
-
16
- public getScrollRange(): ScrollRange;
17
-
18
- public getScrollPosition(): ScrollPosition;
19
-
20
9
  public getOpacity(): number;
21
10
 
22
- public setScrollPosition(scrollPosition: ScrollPosition): void;
23
-
24
11
  public setAlpha(alpha: number): void;
25
-
26
- public setScrollRange(scrollRange: ScrollRange): void;
27
-
28
- public setScrollGridDelta(position: ScrollGridDelta): void;
29
12
  }
@@ -0,0 +1,25 @@
1
+ import { ScrollPosition } from "./ScrollPosition";
2
+ import { ScrollRange } from "./ScrollRange";
3
+ import { ScrollGridDelta } from "./ScrollGridDelta";
4
+
5
+ export declare class ViewportMetrics {
6
+ public getScrollPosition(): ScrollPosition;
7
+
8
+ public getScrollRange(): ScrollRange;
9
+
10
+ public getScrollGridDelta(): ScrollGridDelta;
11
+
12
+ public getViewportWidth(): number;
13
+
14
+ public getViewportHeight(): number;
15
+
16
+ public setViewportHeight(viewportHeight: number): void;
17
+
18
+ public setViewportWidth(viewportWidth: number): void;
19
+
20
+ public setScrollGridDelta(delta: ScrollGridDelta): void;
21
+
22
+ public setScrollRange(range: ScrollRange): void;
23
+
24
+ public setScrollPosition(position: ScrollPosition): void;
25
+ }
package/index.d.ts CHANGED
@@ -1,7 +1,11 @@
1
- export * from "./@types/VerticalSegment"
2
1
  export * from "./@types/HorizontalSegment"
3
2
  export * from "./@types/HorizontalSegmentBounds"
3
+ export * from "./@types/ScrollRange"
4
+ export * from "./@types/ScrollGridDelta"
5
+ export * from "./@types/ScrollPosition"
6
+ export * from "./@types/VerticalSegment"
4
7
  export * from "./@types/VerticalSegmentBounds"
8
+ export * from "./@types/ViewportMetrics"
5
9
  export * from "./@types/UIWorksheetLayout"
6
10
  export * from "./@types/UIWorksheetLayoutDrawable"
7
11
  export * from "./@types/UIWorksheetLayoutMultipleDrawable"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-framework/worksheet-layout",
3
- "version": "1.0.51",
3
+ "version": "1.0.53",
4
4
  "description": "@compass-framework/worksheet-layout public api",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",
@@ -11,7 +11,7 @@
11
11
  "access": "public"
12
12
  },
13
13
  "dependencies": {
14
- "@compass-framework/core": "1.2.46",
14
+ "@compass-framework/core": "1.2.48",
15
15
  "@compass-framework/library": "1.0.12"
16
16
  }
17
17
  }