You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
198 lines
3.9 KiB
JavaScript
198 lines
3.9 KiB
JavaScript
3 months ago
|
"use strict";
|
||
|
|
||
|
Object.defineProperty(exports, "__esModule", {
|
||
|
value: true
|
||
|
});
|
||
|
exports.radarAxisConfig = void 0;
|
||
|
var radarAxisConfig = {
|
||
|
/**
|
||
|
* @description Whether to display this radar axis
|
||
|
* @type {Boolean}
|
||
|
* @default show = true
|
||
|
*/
|
||
|
show: true,
|
||
|
|
||
|
/**
|
||
|
* @description Center point of radar axis
|
||
|
* @type {Array}
|
||
|
* @default center = ['50%','50%']
|
||
|
* @example center = ['50%','50%'] | [100, 100]
|
||
|
*/
|
||
|
center: ['50%', '50%'],
|
||
|
|
||
|
/**
|
||
|
* @description Radius of radar axis
|
||
|
* @type {String|Number}
|
||
|
* @default radius = '65%'
|
||
|
* @example radius = '65%' | 100
|
||
|
*/
|
||
|
radius: '65%',
|
||
|
|
||
|
/**
|
||
|
* @description Radar axis start angle
|
||
|
* @type {Number}
|
||
|
* @default startAngle = -Math.PI / 2
|
||
|
* @example startAngle = -Math.PI
|
||
|
*/
|
||
|
startAngle: -Math.PI / 2,
|
||
|
|
||
|
/**
|
||
|
* @description Radar axis split number
|
||
|
* @type {Number}
|
||
|
* @default splitNum = 5
|
||
|
*/
|
||
|
splitNum: 5,
|
||
|
|
||
|
/**
|
||
|
* @description Whether to enable polygon radar axis
|
||
|
* @type {Boolean}
|
||
|
* @default polygon = false
|
||
|
*/
|
||
|
polygon: false,
|
||
|
|
||
|
/**
|
||
|
* @description Axis label configuration
|
||
|
* @type {Object}
|
||
|
*/
|
||
|
axisLabel: {
|
||
|
/**
|
||
|
* @description Whether to display axis label
|
||
|
* @type {Boolean}
|
||
|
* @default show = true
|
||
|
*/
|
||
|
show: true,
|
||
|
|
||
|
/**
|
||
|
* @description Label gap between label and radar axis
|
||
|
* @type {Number}
|
||
|
* @default labelGap = 15
|
||
|
*/
|
||
|
labelGap: 15,
|
||
|
|
||
|
/**
|
||
|
* @description Label color (Hex|rgb|rgba), will cover style.fill
|
||
|
* @type {Array}
|
||
|
* @default color = []
|
||
|
*/
|
||
|
color: [],
|
||
|
|
||
|
/**
|
||
|
* @description Axis label default style configuration
|
||
|
* @type {Object}
|
||
|
* @default style = {Configuration Of Class Style}
|
||
|
*/
|
||
|
style: {
|
||
|
fill: '#333'
|
||
|
}
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* @description Axis line configuration
|
||
|
* @type {Object}
|
||
|
*/
|
||
|
axisLine: {
|
||
|
/**
|
||
|
* @description Whether to display axis line
|
||
|
* @type {Boolean}
|
||
|
* @default show = true
|
||
|
*/
|
||
|
show: true,
|
||
|
|
||
|
/**
|
||
|
* @description Line color (Hex|rgb|rgba), will cover style.stroke
|
||
|
* @type {Array}
|
||
|
* @default color = []
|
||
|
*/
|
||
|
color: [],
|
||
|
|
||
|
/**
|
||
|
* @description Axis label default style configuration
|
||
|
* @type {Object}
|
||
|
* @default style = {Configuration Of Class Style}
|
||
|
*/
|
||
|
style: {
|
||
|
stroke: '#999',
|
||
|
lineWidth: 1
|
||
|
}
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* @description Split line configuration
|
||
|
* @type {Object}
|
||
|
*/
|
||
|
splitLine: {
|
||
|
/**
|
||
|
* @description Whether to display split line
|
||
|
* @type {Boolean}
|
||
|
* @default show = true
|
||
|
*/
|
||
|
show: true,
|
||
|
|
||
|
/**
|
||
|
* @description Line color (Hex|rgb|rgba), will cover style.stroke
|
||
|
* @type {Array}
|
||
|
* @default color = []
|
||
|
*/
|
||
|
color: [],
|
||
|
|
||
|
/**
|
||
|
* @description Split line default style configuration
|
||
|
* @type {Object}
|
||
|
* @default style = {Configuration Of Class Style}
|
||
|
*/
|
||
|
style: {
|
||
|
stroke: '#d4d4d4',
|
||
|
lineWidth: 1
|
||
|
}
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* @description Split area configuration
|
||
|
* @type {Object}
|
||
|
*/
|
||
|
splitArea: {
|
||
|
/**
|
||
|
* @description Whether to display split area
|
||
|
* @type {Boolean}
|
||
|
* @default show = false
|
||
|
*/
|
||
|
show: false,
|
||
|
|
||
|
/**
|
||
|
* @description Area color (Hex|rgb|rgba), will cover style.stroke
|
||
|
* @type {Array}
|
||
|
* @default color = []
|
||
|
*/
|
||
|
color: ['#f5f5f5', '#e6e6e6'],
|
||
|
|
||
|
/**
|
||
|
* @description Split area default style configuration
|
||
|
* @type {Object}
|
||
|
* @default style = {Configuration Of Class Style}
|
||
|
*/
|
||
|
style: {}
|
||
|
},
|
||
|
|
||
|
/**
|
||
|
* @description Bar chart render level
|
||
|
* Priority rendering high level
|
||
|
* @type {Number}
|
||
|
* @default rLevel = -10
|
||
|
*/
|
||
|
rLevel: -10,
|
||
|
|
||
|
/**
|
||
|
* @description Radar axis animation curve
|
||
|
* @type {String}
|
||
|
* @default animationCurve = 'easeOutCubic'
|
||
|
*/
|
||
|
animationCurve: 'easeOutCubic',
|
||
|
|
||
|
/**
|
||
|
* @description Radar axis animation frame
|
||
|
* @type {Number}
|
||
|
* @default animationFrame = 50
|
||
|
*/
|
||
|
animationFrane: 50
|
||
|
};
|
||
|
exports.radarAxisConfig = radarAxisConfig;
|