UNPKG

@itwin/core-frontend

Version:
36 lines 1.77 kB
"use strict"; /*--------------------------------------------------------------------------------------------- * 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 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.AngleDescription = void 0; const IModelApp_1 = require("../IModelApp"); const QuantityFormatter_1 = require("../quantity-formatting/QuantityFormatter"); const FormattedQuantityDescription_1 = require("./FormattedQuantityDescription"); /** * Angle Property Description * @beta */ class AngleDescription extends FormattedQuantityDescription_1.FormattedQuantityDescription { constructor(name, displayLabel, iconSpec, kindOfQuantityName) { const defaultName = "angle"; super({ name: name ? name : defaultName, displayLabel: displayLabel ? displayLabel : IModelApp_1.IModelApp.localization.getLocalizedString("iModelJs:Properties.Angle"), kindOfQuantityName: kindOfQuantityName ? kindOfQuantityName : "AecUnits.ANGLE", iconSpec }); } get formatterQuantityType() { return QuantityFormatter_1.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_1.IModelApp.localization.getLocalizedString("iModelJs:Properties.UnableToParseAngle"); } } exports.AngleDescription = AngleDescription; //# sourceMappingURL=AngleDescription.js.map