-
Notifications
You must be signed in to change notification settings - Fork 208
/
AngleDescription.ts
31 lines (27 loc) · 1.23 KB
/
AngleDescription.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module Properties
*/
import { IModelApp } from "../IModelApp";
import { QuantityType } from "../quantity-formatting/QuantityFormatter";
import { FormattedQuantityDescription } from "./FormattedQuantityDescription";
/**
* Angle Property Description
* @beta
*/
export class AngleDescription extends FormattedQuantityDescription {
constructor(name?: string, displayLabel?: string, iconSpec?: string) {
const defaultName = "angle";
super(
name ? name : defaultName,
displayLabel ? displayLabel : IModelApp.localization.getLocalizedString("iModelJs:Properties.Angle"),
iconSpec,
);
}
public get formatterQuantityType(): QuantityType { return QuantityType.Angle; }
public get quantityType(): string { return "Angle"; }
public get parseError(): string { return IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseAngle"); }
}