@easyv/config
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -0,0 +0,0 @@ # Changelog |
const config = require('./lib'); | ||
module.exports = config; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -484,2 +484,3 @@ "use strict"; | ||
show: true, | ||
sameColor: false, | ||
font: (0, _.font)() | ||
@@ -489,2 +490,3 @@ }, | ||
show: true, | ||
sameColor: false, | ||
precision: 0, | ||
@@ -499,2 +501,3 @@ font: (0, _.font)(), | ||
show: true, | ||
sameColor: false, | ||
font: (0, _.font)(), | ||
@@ -531,2 +534,4 @@ translate: { | ||
showName = _ref9$current$name$sh === void 0 ? defaultCurrent.current.name.show : _ref9$current$name$sh, | ||
_ref9$current$name$sa = _ref9$current$name.sameColor, | ||
nameColor = _ref9$current$name$sa === void 0 ? defaultCurrent.current.name.sameColor : _ref9$current$name$sa, | ||
_ref9$current$name$fo = _ref9$current$name.font, | ||
@@ -540,10 +545,12 @@ nameFont = _ref9$current$name$fo === void 0 ? defaultCurrent.current.name.font : _ref9$current$name$fo, | ||
showPercent = _ref9$current$percent2 === void 0 ? defaultCurrent.current.percent.show : _ref9$current$percent2, | ||
_ref9$current$percent3 = _ref9$current$percent.precision, | ||
precision = _ref9$current$percent3 === void 0 ? defaultCurrent.current.percent.precision : _ref9$current$percent3, | ||
_ref9$current$percent4 = _ref9$current$percent.font, | ||
percentFont = _ref9$current$percent4 === void 0 ? defaultCurrent.current.percent.font : _ref9$current$percent4, | ||
_ref9$current$percent5 = _ref9$current$percent.translate; | ||
_ref9$current$percent5 = _ref9$current$percent5 === void 0 ? defaultCurrent.current.percent.translate : _ref9$current$percent5; | ||
var percentTranslateX = _ref9$current$percent5.x, | ||
percentTranslateY = _ref9$current$percent5.y, | ||
_ref9$current$percent3 = _ref9$current$percent.sameColor, | ||
percentColor = _ref9$current$percent3 === void 0 ? defaultCurrent.current.percent.sameColor : _ref9$current$percent3, | ||
_ref9$current$percent4 = _ref9$current$percent.precision, | ||
precision = _ref9$current$percent4 === void 0 ? defaultCurrent.current.percent.precision : _ref9$current$percent4, | ||
_ref9$current$percent5 = _ref9$current$percent.font, | ||
percentFont = _ref9$current$percent5 === void 0 ? defaultCurrent.current.percent.font : _ref9$current$percent5, | ||
_ref9$current$percent6 = _ref9$current$percent.translate; | ||
_ref9$current$percent6 = _ref9$current$percent6 === void 0 ? defaultCurrent.current.percent.translate : _ref9$current$percent6; | ||
var percentTranslateX = _ref9$current$percent6.x, | ||
percentTranslateY = _ref9$current$percent6.y, | ||
_ref9$current$value = _ref9$current.value; | ||
@@ -553,2 +560,4 @@ _ref9$current$value = _ref9$current$value === void 0 ? defaultCurrent.current.value : _ref9$current$value; | ||
showValue = _ref9$current$value$s === void 0 ? defaultCurrent.current.value.show : _ref9$current$value$s, | ||
_ref9$current$value$s2 = _ref9$current$value.sameColor, | ||
valueColor = _ref9$current$value$s2 === void 0 ? defaultCurrent.current.value.sameColor : _ref9$current$value$s2, | ||
_ref9$current$value$f = _ref9$current$value.font, | ||
@@ -560,14 +569,14 @@ valueFont = _ref9$current$value$f === void 0 ? defaultCurrent.current.value.font : _ref9$current$value$f, | ||
valueTranslateY = _ref9$current$value$t.y, | ||
_ref9$current$value$s2 = _ref9$current$value.suffix; | ||
_ref9$current$value$s2 = _ref9$current$value$s2 === void 0 ? defaultCurrent.current.value.suffix : _ref9$current$value$s2; | ||
var _ref9$current$value$s3 = _ref9$current$value$s2.show, | ||
showSuffix = _ref9$current$value$s3 === void 0 ? defaultCurrent.current.value.suffix.show : _ref9$current$value$s3, | ||
_ref9$current$value$s4 = _ref9$current$value$s2.text, | ||
text = _ref9$current$value$s4 === void 0 ? defaultCurrent.current.value.suffix.text : _ref9$current$value$s4, | ||
_ref9$current$value$s5 = _ref9$current$value$s2.fontSize, | ||
fontSize = _ref9$current$value$s5 === void 0 ? defaultCurrent.current.value.suffix.fontSize : _ref9$current$value$s5, | ||
_ref9$current$value$s6 = _ref9$current$value$s2.translate; | ||
_ref9$current$value$s6 = _ref9$current$value$s6 === void 0 ? defaultCurrent.current.value.suffix.translate : _ref9$current$value$s6; | ||
var suffixTranslateX = _ref9$current$value$s6.x, | ||
suffixTranslateY = _ref9$current$value$s6.y; | ||
_ref9$current$value$s3 = _ref9$current$value.suffix; | ||
_ref9$current$value$s3 = _ref9$current$value$s3 === void 0 ? defaultCurrent.current.value.suffix : _ref9$current$value$s3; | ||
var _ref9$current$value$s4 = _ref9$current$value$s3.show, | ||
showSuffix = _ref9$current$value$s4 === void 0 ? defaultCurrent.current.value.suffix.show : _ref9$current$value$s4, | ||
_ref9$current$value$s5 = _ref9$current$value$s3.text, | ||
text = _ref9$current$value$s5 === void 0 ? defaultCurrent.current.value.suffix.text : _ref9$current$value$s5, | ||
_ref9$current$value$s6 = _ref9$current$value$s3.fontSize, | ||
fontSize = _ref9$current$value$s6 === void 0 ? defaultCurrent.current.value.suffix.fontSize : _ref9$current$value$s6, | ||
_ref9$current$value$s7 = _ref9$current$value$s3.translate; | ||
_ref9$current$value$s7 = _ref9$current$value$s7 === void 0 ? defaultCurrent.current.value.suffix.translate : _ref9$current$value$s7; | ||
var suffixTranslateX = _ref9$current$value$s7.x, | ||
suffixTranslateY = _ref9$current$value$s7.y; | ||
return { | ||
@@ -591,2 +600,8 @@ name: 'current', | ||
rule: [['show', '$eq', true]], | ||
name: 'sameColor', | ||
displayName: '颜色跟随', | ||
value: nameColor, | ||
type: 'boolean' | ||
}, { | ||
rule: [['show', '$eq', true]], | ||
name: 'font', | ||
@@ -618,2 +633,8 @@ displayName: '文本样式', | ||
rule: [['show', '$eq', true]], | ||
name: 'sameColor', | ||
displayName: '颜色跟随', | ||
value: percentColor, | ||
type: 'boolean' | ||
}, { | ||
rule: [['show', '$eq', true]], | ||
name: 'font', | ||
@@ -633,2 +654,8 @@ displayName: '文本样式', | ||
rule: [['show', '$eq', true]], | ||
name: 'sameColor', | ||
displayName: '颜色跟随', | ||
value: valueColor, | ||
type: 'boolean' | ||
}, { | ||
rule: [['show', '$eq', true]], | ||
name: 'font', | ||
@@ -635,0 +662,0 @@ displayName: '文本样式', |
{ | ||
"name": "@easyv/config", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ import { multiColor, font } from './'; |
@@ -0,0 +0,0 @@ import { gridLine, tickLine, axisLine, unit, font } from '.'; |
@@ -0,0 +0,0 @@ const axisLine = { |
@@ -0,0 +0,0 @@ const defaultBrush = { |
@@ -0,0 +0,0 @@ const defaultDimension = { |
@@ -0,0 +0,0 @@ const extent = { |
@@ -0,0 +0,0 @@ const defaultFont = { |
@@ -0,0 +0,0 @@ const gridLine = { |
@@ -0,0 +0,0 @@ import show, { showRule } from './show'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ import { translate, font, extent, showRule } from '.'; |
@@ -0,0 +0,0 @@ const { |
@@ -0,0 +0,0 @@ const defaultMapping = { fieldName: '', displayName: '' }; |
@@ -0,0 +0,0 @@ const defaultMargin = { |
@@ -0,0 +0,0 @@ const defaultMultiColor = { |
@@ -463,5 +463,6 @@ import { | ||
gap: 45, | ||
name: { show: true, font: font() }, | ||
name: { show: true, sameColor: false, font: font() }, | ||
percent: { | ||
show: true, | ||
sameColor: false, | ||
precision: 0, | ||
@@ -473,2 +474,3 @@ font: font(), | ||
show: true, | ||
sameColor: false, | ||
font: font(), | ||
@@ -491,2 +493,3 @@ translate: { x: 0, y: 0 }, | ||
show: showName = defaultCurrent.current.name.show, | ||
sameColor: nameColor = defaultCurrent.current.name.sameColor, | ||
font: nameFont = defaultCurrent.current.name.font, | ||
@@ -498,2 +501,3 @@ translate: nameTranslate, | ||
show: showPercent = defaultCurrent.current.percent.show, | ||
sameColor: percentColor = defaultCurrent.current.percent.sameColor, | ||
precision = defaultCurrent.current.percent.precision, | ||
@@ -506,2 +510,3 @@ font: percentFont = defaultCurrent.current.percent.font, | ||
show: showValue = defaultCurrent.current.value.show, | ||
sameColor: valueColor = defaultCurrent.current.value.sameColor, | ||
font: valueFont = defaultCurrent.current.value.font, | ||
@@ -542,2 +547,9 @@ translate: { x: valueTranslateX, y: valueTranslateY } = defaultCurrent | ||
rule: [['show', '$eq', true]], | ||
name: 'sameColor', | ||
displayName: '颜色跟随', | ||
value: nameColor, | ||
type: 'boolean' | ||
}, | ||
{ | ||
rule: [['show', '$eq', true]], | ||
name: 'font', | ||
@@ -580,2 +592,9 @@ displayName: '文本样式', | ||
rule: [['show', '$eq', true]], | ||
name: 'sameColor', | ||
displayName: '颜色跟随', | ||
value: percentColor, | ||
type: 'boolean' | ||
}, | ||
{ | ||
rule: [['show', '$eq', true]], | ||
name: 'font', | ||
@@ -601,2 +620,9 @@ displayName: '文本样式', | ||
rule: [['show', '$eq', true]], | ||
name: 'sameColor', | ||
displayName: '颜色跟随', | ||
value: valueColor, | ||
type: 'boolean' | ||
}, | ||
{ | ||
rule: [['show', '$eq', true]], | ||
name: 'font', | ||
@@ -603,0 +629,0 @@ displayName: '文本样式', |
@@ -0,0 +0,0 @@ |
@@ -0,0 +0,0 @@ import { mapping, label, multiColor } from '.'; |
@@ -0,0 +0,0 @@ const defaultShadow = { |
@@ -0,0 +0,0 @@ export default (show = false) => ({ |
@@ -0,0 +0,0 @@ const defaultTickLine = { |
@@ -0,0 +0,0 @@ import { translate, margin } from '.'; |
@@ -0,0 +0,0 @@ export default (x = 0, y = 0) => ({ |
@@ -0,0 +0,0 @@ const { translate } = require('.'); |
Sorry, the diff of this file is not supported yet
315828
10781