thingsboard/ui-ngx/src/app/shared/models/units/luminous-intensity.ts

36 lines
1015 B
TypeScript
Raw Normal View History

2025-05-05 13:46:29 +03:00
///
/// Copyright © 2016-2025 The Thingsboard Authors
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may obtain a copy of the License at
///
/// http://www.apache.org/licenses/LICENSE-2.0
///
/// Unless required by applicable law or agreed to in writing, software
/// distributed under the License is distributed on an "AS IS" BASIS,
/// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
/// See the License for the specific language governing permissions and
/// limitations under the License.
///
2025-05-02 20:29:10 +03:00
2025-05-05 13:46:29 +03:00
import { TbMeasure, TbMeasureUnits } from '@shared/models/unit.models';
2025-05-02 20:29:10 +03:00
2025-05-05 13:46:29 +03:00
export type LuminousIntensityUnits = 'cd';
2025-05-02 20:29:10 +03:00
2025-05-05 13:46:29 +03:00
const METRIC: TbMeasureUnits<LuminousIntensityUnits> = {
2025-05-02 20:29:10 +03:00
units: {
'cd': {
name: 'unit.candela',
2025-05-05 13:46:29 +03:00
tags: ['light intensity'],
2025-05-02 20:29:10 +03:00
to_anchor: 1,
},
},
};
const measure: TbMeasure<LuminousIntensityUnits> = {
METRIC,
};
export default measure;