1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- var echarts = require("../../echarts");
- var zrUtil = require("zrender/lib/core/util");
- var featureManager = require("./featureManager");
- var ToolboxModel = echarts.extendComponentModel({
- type: 'toolbox',
- layoutMode: {
- type: 'box',
- ignoreSize: true
- },
- optionUpdated: function () {
- ToolboxModel.superApply(this, 'optionUpdated', arguments);
- zrUtil.each(this.option.feature, function (featureOpt, featureName) {
- var Feature = featureManager.get(featureName);
- Feature && zrUtil.merge(featureOpt, Feature.defaultOption);
- });
- },
- defaultOption: {
- show: true,
- z: 6,
- zlevel: 0,
- orient: 'horizontal',
- left: 'right',
- top: 'top',
-
-
- backgroundColor: 'transparent',
- borderColor: '#ccc',
- borderRadius: 0,
- borderWidth: 0,
- padding: 5,
- itemSize: 15,
- itemGap: 8,
- showTitle: true,
- iconStyle: {
- borderColor: '#666',
- color: 'none'
- },
- emphasis: {
- iconStyle: {
- borderColor: '#3E98C5'
- }
- },
-
-
- tooltip: {
- show: false
- }
- }
- });
- var _default = ToolboxModel;
- module.exports = _default;
|