summaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/paletx/core/overlay/position/fake-viewport-ruler.ts
blob: 698aed1d200a07ae88565f5095f8f7528d44fb9f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
 * @license
 * Copyright Google Inc. All Rights Reserved.
 *
 * Use of this source code is governed by an MIT-style license that can be
 * found in the LICENSE file at https://angular.io/license
 */

/** @docs-private */
export class FakeViewportRuler {
  getViewportRect() {
	return {
		left: 0,
		top: 0,
		width: 1014,
		height: 686,
		bottom: 686,
		right: 1014
	};
  }

  getViewportScrollPosition() {
	return {top: 0, left: 0};
  }
}