Skip to main content
Version: v1

IRelativePosition Interface

A position specified relative to a segment.

Signature

export interface IRelativePosition

Properties

PropertyModifiersTypeDescription
beforeoptionalbooleanIf true, insert before the specified segment. If false or not defined, insert after the specified segment.
idoptionalstringString identifier specifying a segment.
offsetoptionalnumberA positive number >= 1. If before is false, offset is added to the position. If before is true, offset is subtracted from the position.

Property Details

before

If true, insert before the specified segment. If false or not defined, insert after the specified segment.

Signature

before?: boolean;

Type: boolean

id

String identifier specifying a segment.

Signature

id?: string;

Type: string

offset

A positive number >= 1. If before is false, offset is added to the position. If before is true, offset is subtracted from the position.

Signature

offset?: number;

Type: number