Class Size

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(w: number, h: number): Size

Constructor: OpenLayers.Size Create an instance of OpenLayers.Size

Parameters: w - {Number} width h - {Number} height

Parameters

  • w: number
  • h: number

Returns

Size

Properties

public CLASS_NAME: string

public h: number

APIProperty: h {Number} height

public w: number

APIProperty: w {Number} width

Methods

public clone(): Size

APIMethod: clone Create a clone of this size object

Returns: {} A new OpenLayers.Size object with the same w and h values

Returns

Size

public equals(sz: Size): boolean

APIMethod: equals Determine where this size is equal to another

Parameters: sz - {|Object} An OpenLayers.Size or an object with a 'w' and 'h' properties.

Returns: {Boolean} The passed in size has the same h and w properties as this one. Note that if sz passed in is null, returns false.

Parameters

Returns

boolean

public toString(): string

Method: toString Return the string representation of a size object

Returns: {String} The string representation of OpenLayers.Size object. (e.g. "w=55,h=66")

Returns

string