Home Manual Reference Source Test Repository
public class | source

TunedAngle

Tunable angle. Angle is chosen depends on table name in configuration.

Example:

new TuneAngle(
     150,
     [151, 'table_1'],
     [148, 'table_2']
);

Constructor Summary

Public Constructor
public

constructor(defaultX: *)

Add multiple angles, add angle for each table.

Method Summary

Public Methods
public

Get angle depending on the chosen table in configuration.

Public Constructors

public constructor(defaultX: *) source

Add multiple angles, add angle for each table. It must has at least one angle which will be used as default. Other angles must have tag!

Params:

NameTypeAttributeDescription
defaultX *

{integer} - Default point X coordinate

Public Methods

public getAngle(): number source

Get angle depending on the chosen table in configuration.

Return:

number

Angle