File

projects/wms-framework/src/lib/models/controls/PointModel.ts

Description

Model class to represent Point.

Index

Properties
  • Public Optional X
  • Public Optional Y

Constructor

constructor(X?: number, Y?: number)
Parameters :
Name Type Optional
X number Yes
Y number Yes

Properties

Public Optional X
Type : number
Public Optional Y
Type : number
export class PointModel {
  constructor(public X?: number, public Y?: number) {
    if (typeof this.X === 'undefined') {
      this.X = 0;
    }
    if (typeof this.Y === 'undefined') {
      this.Y = 0;
    }
  }
}

result-matching ""

    No results matching ""