@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
73 lines (72 loc) • 2.23 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.defaultIcon = exports.ETitleIconColor = exports.EArrangement = exports.defaultMetricStyle = exports.defaultDataConfig = exports.defaultProperty = exports.defaultLevels = exports.EThresholdBoundValue = exports.EColorMode = exports.Infinity = void 0;
var single_style_1 = require("./single-style");
// 将 Infinity 使用字符串类型可以保证保存的时候不会被转换为 null,同时进行大小判断的时候没有问题
exports.Infinity = 'Infinity';
var EColorMode;
(function (EColorMode) {
EColorMode["NORMAL"] = "normal";
EColorMode["INVERTED"] = "inverted";
})(EColorMode = exports.EColorMode || (exports.EColorMode = {}));
var EThresholdBoundValue;
(function (EThresholdBoundValue) {
EThresholdBoundValue["Min"] = "-\u221E";
EThresholdBoundValue["Max"] = "+\u221E";
})(EThresholdBoundValue = exports.EThresholdBoundValue || (exports.EThresholdBoundValue = {}));
exports.defaultLevels = [
{
key: 'level-critical',
name: '严重',
color: ''
},
{
key: 'level-warning',
name: '警告',
color: ''
},
{
key: 'level-normal',
name: '正常',
color: ''
},
{
key: 'level-offline',
name: '离线',
color: ''
}
];
exports.defaultProperty = {
width: 100,
height: 100,
titleFontSize: 18,
contentFontSize: 12
};
exports.defaultDataConfig = {
unit: ['none', 'none'],
precision: 2
};
exports.defaultMetricStyle = {
metric: '',
fontSize: 0,
prefix: single_style_1.InitSingleAffix,
suffix: single_style_1.InitSingleAffix,
showMetricName: true
};
var EArrangement;
(function (EArrangement) {
EArrangement["Col"] = "col";
EArrangement["Row"] = "row";
})(EArrangement = exports.EArrangement || (exports.EArrangement = {}));
var ETitleIconColor;
(function (ETitleIconColor) {
ETitleIconColor["Field"] = "field";
ETitleIconColor["System"] = "system";
})(ETitleIconColor = exports.ETitleIconColor || (exports.ETitleIconColor = {}));
exports.defaultIcon = {
open: false,
color: {
type: ETitleIconColor.Field
},
width: 20
};