Interface IRange

Index

Properties

Methods

Properties

public constructor: IRangeStatic

public end: IPoint

public start: IPoint

Methods

public add(object: IPoint[]): IRange

Parameters

Returns

IRange

public add(object: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }): IRange

Parameters

  • object: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }

Returns

IRange

public add(object: { start: number[]; end: TextBuffer.IPoint; }): IRange

Parameters

  • object: { start: number[]; end: TextBuffer.IPoint; }

Returns

IRange

public add(object: { start: { row: number; column: number; }; end: TextBuffer.IPoint; }): IRange

Parameters

  • object: { start: { row: number; column: number; }; end: TextBuffer.IPoint; }

Returns

IRange

public add(object: { start: TextBuffer.IPoint; end: number[]; }): IRange

Parameters

  • object: { start: TextBuffer.IPoint; end: number[]; }

Returns

IRange

public add(object: { start: number[]; end: number[]; }): IRange

Parameters

  • object: { start: number[]; end: number[]; }

Returns

IRange

public add(object: { start: { row: number; column: number; }; end: number[]; }): IRange

Parameters

  • object: { start: { row: number; column: number; }; end: number[]; }

Returns

IRange

public add(object: { start: TextBuffer.IPoint; end: { row: number; column: number; }; }): IRange

Parameters

  • object: { start: TextBuffer.IPoint; end: { row: number; column: number; }; }

Returns

IRange

public add(object: { start: number[]; end: { row: number; column: number; }; }): IRange

Parameters

  • object: { start: number[]; end: { row: number; column: number; }; }

Returns

IRange

public add(object: { start: { row: number; column: number; }; end: { row: number; column: number; }; }): IRange

Parameters

  • object: { start: { row: number; column: number; }; end: { row: number; column: number; }; }

Returns

IRange

public compare(object: IPoint[]): number

Parameters

Returns

number

public compare(object: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }): number

Parameters

  • object: { start: TextBuffer.IPoint; end: TextBuffer.IPoint; }

Returns

number

public compare(object: { start: number[]; end: TextBuffer.IPoint; }): number

Parameters

  • object: { start: number[]; end: TextBuffer.IPoint; }

Returns

number

public compare(object: { start: { row: number; column: number; }; end: TextBuffer.IPoint; }): number

Parameters

  • object: { start: { row: number; column: number; }; end: TextBuffer.IPoint; }

Returns

number

public compare(object: { start: TextBuffer.IPoint; end: number[]; }): number

Parameters

  • object: { start: TextBuffer.IPoint; end: number[]; }

Returns

number

public compare(object: { start: number[]; end: number[]; }): number

Parameters

  • object: { start: number[]; end: number[]; }

Returns

number

public compare(object: { start: { row: number; column: number; }; end: number[]; }): number

Parameters

  • object: { start: { row: number; column: number; }; end: number[]; }

Returns

number

public compare(object: { start: TextBuffer.IPoint; end: { row: number; column: number; }; }): number

Parameters

  • object: { start: TextBuffer.IPoint; end: { row: number; column: number; }; }

Returns

number

public compare(object: { start: number[]; end: { row: number; column: number; }; }): number

Parameters

  • object: { start: number[]; end: { row: number; column: number; }; }

Returns

number

public compare(object: { start: { row: number; column: number; }; end: { row: number; column: number; }; }): number

Parameters

  • object: { start: { row: number; column: number; }; end: { row: number; column: number; }; }

Returns

number

public containsPoint(point: IPoint, exclusive: boolean): boolean

Parameters

  • point: IPoint
  • exclusive: boolean

Returns

boolean

public containsPoint(point: Array<number>, exclusive: boolean): boolean

Parameters

  • point: Array<number>
  • exclusive: boolean

Returns

boolean

public containsPoint(point: { row: number; column: number; }, exclusive: boolean): boolean

Parameters

  • point: { row: number; column: number; }
  • exclusive: boolean

Returns

boolean

public containsRange(otherRange: IRange, exclusive: boolean): boolean

Parameters

  • otherRange: IRange
  • exclusive: boolean

Returns

boolean

public copy(): IRange

Returns

IRange

public coversSameRows(other: IRange): boolean

Parameters

Returns

boolean

public freeze(): IRange

Returns

IRange

public getRowCount(): number

Returns

number

public getRows(): Array<number>

Returns

Array<number>

public intersectsRow(row: number): boolean

Parameters

  • row: number

Returns

boolean

public intersectsRowRange(startRow: number, endRow: number): boolean

Parameters

  • startRow: number
  • endRow: number

Returns

boolean

public intersectsWith(otherRange: IRange): boolean

Parameters

Returns

boolean

public isEmpty(): boolean

Returns

boolean

public isEqual(other: IRange): boolean

Parameters

Returns

boolean

public isEqual(other: IPoint[]): boolean

Parameters

Returns

boolean

public isSingleLine(): boolean

Returns

boolean

public serialize(): Array<number[]>

Returns

Array<number[]>

public toDelta(): IPoint

Returns

IPoint

public translate(startPoint: IPoint, endPoint: IPoint): IRange

Parameters

Returns

IRange

public translate(startPoint: IPoint): IRange

Parameters

Returns

IRange

public union(otherRange: IRange): IRange

Parameters

Returns

IRange