UNPKG

@specs-feup/lara

Version:

A js port of the popular framework for building source-to-source compilers

22 lines 889 B
/** * ! If you are ever in need of using this class, please PLEASE refactor it. * ! Just do it. I did not have the time to do it myself and did not want to break compatibility with the old Margot APIs. */ export default class UnitModifier { private _factorTable; private _validModifiers; private _names; private _namesToModifier; private _base; constructor(base: string, baseModifier?: UnitModifier); getBase(): string; newModifier(modifier: string, name: string, factor: number): string; convert(value: number, fromModifier: string, toModifier: string): number; checkModifier(modifier: string, source: string): void; private _validModifierString; isValid(modifier: string): boolean; getModifierByName(name: string): string; values(): string[]; normalize(modifier: string): string; } //# sourceMappingURL=UnitModifier.d.ts.map