@easyv/config
Advanced tools
Comparing version 1.0.13 to 1.0.15
@@ -29,3 +29,3 @@ "use strict"; | ||
count: 3, | ||
angle: 30, | ||
angle: 0, | ||
wordBreak: 'keep-all' | ||
@@ -325,3 +325,4 @@ }, | ||
config: { | ||
span: 12 | ||
span: 12, | ||
suffix: '°' | ||
} | ||
@@ -328,0 +329,0 @@ }, { |
@@ -39,5 +39,3 @@ "use strict"; | ||
type: 'input', | ||
config: { | ||
tip: '格式使用半角字符,如2,2' | ||
} | ||
tip: '格式使用半角字符,如2,2' | ||
}, { | ||
@@ -44,0 +42,0 @@ rule: [['show', '$eq', true]], |
@@ -136,2 +136,8 @@ "use strict"; | ||
}); | ||
Object.defineProperty(exports, "interaction", { | ||
enumerable: true, | ||
get: function get() { | ||
return _interaction["default"]; | ||
} | ||
}); | ||
@@ -172,4 +178,6 @@ var _font = _interopRequireDefault(require("./font")); | ||
var _interaction = _interopRequireDefault(require("./interaction")); | ||
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); } | ||
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; } |
@@ -29,2 +29,7 @@ "use strict"; | ||
}, | ||
iconSize: { | ||
width: 10, | ||
height: 10 | ||
}, | ||
iconGap: 5, | ||
gridTemplate: { | ||
@@ -54,4 +59,12 @@ gridTemplateColumns: 3, | ||
font = _ref$font === void 0 ? defaultLegend.font : _ref$font, | ||
iconSize = _ref.iconSize, | ||
_ref$iconSize = _ref.iconSize; | ||
_ref$iconSize = _ref$iconSize === void 0 ? defaultLegend.iconSize : _ref$iconSize; | ||
var _ref$iconSize$width = _ref$iconSize.width, | ||
width = _ref$iconSize$width === void 0 ? defaultLegend.iconSize.width : _ref$iconSize$width, | ||
_ref$iconSize$height = _ref$iconSize.height, | ||
height = _ref$iconSize$height === void 0 ? defaultLegend.iconSize.height : _ref$iconSize$height, | ||
iconGap = _ref.iconGap, | ||
_ref$gridTemplate = _ref.gridTemplate; | ||
_ref$gridTemplate = _ref$gridTemplate === void 0 ? defaultLegend.gridTemplate : _ref$gridTemplate; | ||
@@ -93,2 +106,25 @@ var _ref$gridTemplate$gri = _ref$gridTemplate.gridTemplateColumns, | ||
type: 'textStyle' | ||
}, iconSize !== undefined && { | ||
name: 'iconSize', | ||
displayName: '图标尺寸', | ||
value: [{ | ||
name: 'width', | ||
displayName: '宽度', | ||
value: width, | ||
config: { | ||
span: 12 | ||
} | ||
}, { | ||
name: 'height', | ||
displayName: '高度', | ||
value: height, | ||
config: { | ||
span: 12 | ||
} | ||
}], | ||
type: 'group' | ||
}, iconGap !== undefined && { | ||
name: 'iconGap', | ||
displayName: '间距', | ||
value: iconGap | ||
}, { | ||
@@ -158,3 +194,5 @@ rule: [['show', '$eq', true]], | ||
}] | ||
}] | ||
}].filter(function (item) { | ||
return !!item; | ||
}) | ||
}; | ||
@@ -161,0 +199,0 @@ }; |
@@ -35,4 +35,3 @@ "use strict"; | ||
config: { | ||
span: 6, | ||
suffix: 'px' | ||
span: 6 | ||
} | ||
@@ -45,4 +44,3 @@ }, { | ||
config: { | ||
span: 6, | ||
suffix: 'px' | ||
span: 6 | ||
} | ||
@@ -55,4 +53,3 @@ }, { | ||
config: { | ||
span: 6, | ||
suffix: 'px' | ||
span: 6 | ||
} | ||
@@ -65,4 +62,3 @@ }, { | ||
config: { | ||
span: 6, | ||
suffix: 'px' | ||
span: 6 | ||
} | ||
@@ -69,0 +65,0 @@ }] |
@@ -559,4 +559,3 @@ "use strict"; | ||
connectNulls = _ref6$line$connectNul === void 0 ? defaultLineSeries.line.connectNulls : _ref6$line$connectNul, | ||
_ref6$line$lighter = _ref6$line.lighter, | ||
lineLighter = _ref6$line$lighter === void 0 ? defaultLineSeries.line.lighter : _ref6$line$lighter, | ||
lineLighter = _ref6$line.lighter, | ||
_ref6$label = _ref6.label, | ||
@@ -601,3 +600,5 @@ areaLabel = _ref6$label === void 0 ? defaultLineSeries.label : _ref6$label, | ||
connectNulls: connectNulls | ||
})), [lighter(lineLighter)]) | ||
})), [lineLighter && lighter(lineLighter)]).filter(function (item) { | ||
return !!item; | ||
}) | ||
}, (0, _.label)(areaLabel)], | ||
@@ -604,0 +605,0 @@ type: 'object' |
@@ -171,3 +171,3 @@ "use strict"; | ||
config: { | ||
suffix: 'ms' | ||
suffix: 's' | ||
} | ||
@@ -174,0 +174,0 @@ }, { |
{ | ||
"name": "@easyv/config", | ||
"version": "1.0.13", | ||
"version": "1.0.15", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,3 +8,3 @@ import { gridLine, tickLine, axisLine, extent, unit, translate, font } from '.'; | ||
format: { type: 'date', showType: 'MM月' }, | ||
appearance: { count: 3, angle: 30, wordBreak: 'keep-all' }, | ||
appearance: { count: 3, angle: 0, wordBreak: 'keep-all' }, | ||
translate: { x: 0, y: 0 }, | ||
@@ -311,2 +311,3 @@ font: defaultFont, | ||
span: 12, | ||
suffix: '°' | ||
}, | ||
@@ -313,0 +314,0 @@ }, |
@@ -28,5 +28,3 @@ const gridLine = { | ||
type: 'input', | ||
config: { | ||
tip: '格式使用半角字符,如2,2', | ||
}, | ||
tip: '格式使用半角字符,如2,2', | ||
}, | ||
@@ -33,0 +31,0 @@ { |
@@ -18,2 +18,3 @@ import font from './font'; | ||
import brush from './brush'; | ||
import interaction from './interaction'; | ||
@@ -42,2 +43,3 @@ export { | ||
brush, | ||
interaction, | ||
}; |
@@ -12,2 +12,7 @@ const { translate: translateConfig } = require('.'); | ||
}, | ||
iconSize: { | ||
width: 10, | ||
height: 10, | ||
}, | ||
iconGap: 5, | ||
gridTemplate: { | ||
@@ -30,2 +35,8 @@ gridTemplateColumns: 3, | ||
font = defaultLegend.font, | ||
iconSize, | ||
iconSize: { | ||
width = defaultLegend.iconSize.width, | ||
height = defaultLegend.iconSize.height, | ||
} = defaultLegend.iconSize, | ||
iconGap, | ||
gridTemplate: { | ||
@@ -63,2 +74,30 @@ gridTemplateColumns = defaultLegend.gridTemplate.gridTemplateColumns, | ||
}, | ||
iconSize !== undefined && { | ||
name: 'iconSize', | ||
displayName: '图标尺寸', | ||
value: [ | ||
{ | ||
name: 'width', | ||
displayName: '宽度', | ||
value: width, | ||
config: { | ||
span: 12, | ||
}, | ||
}, | ||
{ | ||
name: 'height', | ||
displayName: '高度', | ||
value: height, | ||
config: { | ||
span: 12, | ||
}, | ||
}, | ||
], | ||
type: 'group', | ||
}, | ||
iconGap !== undefined && { | ||
name: 'iconGap', | ||
displayName: '间距', | ||
value: iconGap, | ||
}, | ||
{ | ||
@@ -155,3 +194,3 @@ rule: [['show', '$eq', true]], | ||
}, | ||
], | ||
].filter((item) => !!item), | ||
}); |
@@ -24,3 +24,2 @@ const defaultMargin = { | ||
span: 6, | ||
suffix: 'px', | ||
}, | ||
@@ -35,3 +34,2 @@ }, | ||
span: 6, | ||
suffix: 'px', | ||
}, | ||
@@ -46,3 +44,2 @@ }, | ||
span: 6, | ||
suffix: 'px', | ||
}, | ||
@@ -57,3 +54,2 @@ }, | ||
span: 6, | ||
suffix: 'px', | ||
}, | ||
@@ -60,0 +56,0 @@ }, |
@@ -116,4 +116,4 @@ import { mapping, label } from '.'; | ||
config: { | ||
suffix: 'px' | ||
} | ||
suffix: 'px', | ||
}, | ||
}, | ||
@@ -126,4 +126,4 @@ patternHeight !== undefined && { | ||
config: { | ||
suffix: 'px' | ||
} | ||
suffix: 'px', | ||
}, | ||
}, | ||
@@ -513,3 +513,3 @@ { | ||
connectNulls = defaultLineSeries.line.connectNulls, | ||
lighter: lineLighter = defaultLineSeries.line.lighter, | ||
lighter: lineLighter, | ||
} = defaultLineSeries.line, | ||
@@ -554,4 +554,4 @@ label: areaLabel = defaultLineSeries.label, | ||
}), | ||
lighter(lineLighter), | ||
], | ||
lineLighter && lighter(lineLighter), | ||
].filter((item) => !!item), | ||
}, | ||
@@ -558,0 +558,0 @@ label(areaLabel), |
@@ -132,3 +132,3 @@ import { translate, margin } from '.'; | ||
config: { | ||
suffix: 'ms', | ||
suffix: 's', | ||
}, | ||
@@ -135,0 +135,0 @@ }, |
142294
41
4957