UNPKG

@itwin/core-frontend

Version:
32 lines 1.53 kB
/*--------------------------------------------------------------------------------------------- * 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, displayLabel, iconSpec, kindOfQuantityName) { const defaultName = "angle"; super({ name: name ? name : defaultName, displayLabel: displayLabel ? displayLabel : IModelApp.localization.getLocalizedString("iModelJs:Properties.Angle"), kindOfQuantityName: kindOfQuantityName ? kindOfQuantityName : "AecUnits.ANGLE", iconSpec }); } get formatterQuantityType() { return QuantityType.Angle; } /** * @deprecated in 5.0 - will not be removed until after 2026-06-13. Use the `kindOfQuantityName` property instead. */ get quantityType() { return "Angle"; } get parseError() { return IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseAngle"); } } //# sourceMappingURL=AngleDescription.js.map