@@ -14,13 +14,11 @@ import { GlobalMouseMoveMonitor } from 'vs/base/browser/globalMouseMoveMonitor';
1414 */
1515export class PageCoordinates {
1616 _pageCoordinatesBrand : void ;
17- public readonly x : number ;
18- public readonly y : number ;
1917
20- constructor ( x : number , y : number ) {
21- this . x = x ;
22- this . y = y ;
23- }
18+ constructor (
19+ public readonly x : number ,
20+ public readonly y : number
21+ ) { }
2422
2523 public toClientCoordinates ( ) : ClientCoordinates {
2624 return new ClientCoordinates ( this . x - dom . StandardWindow . scrollX , this . y - dom . StandardWindow . scrollY ) ;
@@ -37,13 +35,10 @@ export class PageCoordinates {
3735export class ClientCoordinates {
3836 _clientCoordinatesBrand : void ;
3937
40- public readonly clientX : number ;
41- public readonly clientY : number ;
42-
43- constructor ( clientX : number , clientY : number ) {
44- this . clientX = clientX ;
45- this . clientY = clientY ;
46- }
38+ constructor (
39+ public readonly clientX : number ,
40+ public readonly clientY : number
41+ ) { }
4742
4843 public toPageCoordinates ( ) : PageCoordinates {
4944 return new PageCoordinates ( this . clientX + dom . StandardWindow . scrollX , this . clientY + dom . StandardWindow . scrollY ) ;
@@ -56,17 +51,12 @@ export class ClientCoordinates {
5651export class EditorPagePosition {
5752 _editorPagePositionBrand : void ;
5853
59- public readonly x : number ;
60- public readonly y : number ;
61- public readonly width : number ;
62- public readonly height : number ;
63-
64- constructor ( x : number , y : number , width : number , height : number ) {
65- this . x = x ;
66- this . y = y ;
67- this . width = width ;
68- this . height = height ;
69- }
54+ constructor (
55+ public readonly x : number ,
56+ public readonly y : number ,
57+ public readonly width : number ,
58+ public readonly height : number
59+ ) { }
7060}
7161
7262export function createEditorPagePosition ( editorViewDomNode : HTMLElement ) : EditorPagePosition {
0 commit comments