@lingshugroup/web-plus 1.8.7 → 1.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.js +47 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapLayer/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.js +46 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapSeries/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.js +159 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/HeatmapView/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/install/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/chart/heatmap/install/index.js +11 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.js +113 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousModel/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.js +388 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/ContinuousView/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.js +220 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseModel/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.js +120 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/PiecewiseView/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.js +166 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapModel/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.js +81 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/VisualMapView/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.js +28 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/helper/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/install/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/install/index.js +12 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installCommon/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installCommon/index.js +18 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapContinuous/index.js +12 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/installVisualMapPiecewise/index.js +12 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/preprocessor/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/preprocessor/index.js +24 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.js +54 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualEncoding/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualMapAction/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/component/visualMap/visualMapAction/index.js +19 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.cjs +1 -1
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.js +199 -165
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/model/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.cjs +1 -1
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js +129 -113
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/util/number/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.js +278 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/VisualMapping/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.cjs +1 -1
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js +30 -10
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualDefault/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualDefault/index.js +48 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.cjs +1 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.js +81 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.js.br +0 -0
- package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.js.gz +0 -0
- package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.cjs +1 -1
- package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js +165 -123
- package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js.br +0 -0
- package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js.gz +0 -0
- package/lib/packages/ls-components/components/chart/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/chart/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/chart/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/chart/Index.vue/index2.js +17 -13
- package/lib/packages/ls-components/components/chart/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/chart/Index.vue/index2.js.gz +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var h = (p, n) => S(p, "name", { value: n, configurable: !0 });
|
|
3
|
+
import { __extends as V } from "../../../../../../../tslib@2.3.0/node_modules/tslib/tslib.es6/index.js";
|
|
4
|
+
import { retrieve as b, each as y, bind as I, map as L, clone as T } from "../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
5
|
+
import k from "../VisualMapView/index.js";
|
|
6
|
+
import { createSymbol as A } from "../../../util/symbol/index.js";
|
|
7
|
+
import { box as G } from "../../../util/layout/index.js";
|
|
8
|
+
import { makeHighDownBatch as D, getItemAlign as C } from "../helper/index.js";
|
|
9
|
+
import { createTextStyle as P } from "../../../label/labelStyle/index.js";
|
|
10
|
+
import x from "../../../../../../../zrender@5.6.1/node_modules/zrender/lib/graphic/Group/index.js";
|
|
11
|
+
import w from "../../../../../../../zrender@5.6.1/node_modules/zrender/lib/graphic/Text/index.js";
|
|
12
|
+
var q = (
|
|
13
|
+
/** @class */
|
|
14
|
+
function(p) {
|
|
15
|
+
V(n, p);
|
|
16
|
+
function n() {
|
|
17
|
+
var e = p !== null && p.apply(this, arguments) || this;
|
|
18
|
+
return e.type = n.type, e;
|
|
19
|
+
}
|
|
20
|
+
return h(n, "PiecewiseVisualMapView"), n.prototype.doRender = function() {
|
|
21
|
+
var e = this.group;
|
|
22
|
+
e.removeAll();
|
|
23
|
+
var i = this.visualMapModel, t = i.get("textGap"), r = i.textStyleModel, o = r.getFont(), a = r.getTextColor(), l = this._getItemAlign(), s = i.itemSize, m = this._getViewData(), d = m.endsText, u = b(i.get("showLabel", !0), !d), M = !i.get("selectedMode");
|
|
24
|
+
d && this._renderEndsText(e, d[0], s, u, l), y(m.viewPieceList, function(f) {
|
|
25
|
+
var c = f.piece, v = new x();
|
|
26
|
+
v.onclick = I(this._onItemClick, this, c), this._enableHoverLink(v, f.indexInModelPieceList);
|
|
27
|
+
var g = i.getRepresentValue(c);
|
|
28
|
+
if (this._createItemSymbol(v, g, [0, 0, s[0], s[1]], M), u) {
|
|
29
|
+
var _ = this.visualMapModel.getValueState(g);
|
|
30
|
+
v.add(new w({
|
|
31
|
+
style: {
|
|
32
|
+
x: l === "right" ? -t : s[0] + t,
|
|
33
|
+
y: s[1] / 2,
|
|
34
|
+
text: c.text,
|
|
35
|
+
verticalAlign: "middle",
|
|
36
|
+
align: l,
|
|
37
|
+
font: o,
|
|
38
|
+
fill: a,
|
|
39
|
+
opacity: _ === "outOfRange" ? 0.5 : 1
|
|
40
|
+
},
|
|
41
|
+
silent: M
|
|
42
|
+
}));
|
|
43
|
+
}
|
|
44
|
+
e.add(v);
|
|
45
|
+
}, this), d && this._renderEndsText(e, d[1], s, u, l), G(i.get("orient"), e, i.get("itemGap")), this.renderBackground(e), this.positionGroup(e);
|
|
46
|
+
}, n.prototype._enableHoverLink = function(e, i) {
|
|
47
|
+
var t = this;
|
|
48
|
+
e.on("mouseover", function() {
|
|
49
|
+
return r("highlight");
|
|
50
|
+
}).on("mouseout", function() {
|
|
51
|
+
return r("downplay");
|
|
52
|
+
});
|
|
53
|
+
var r = /* @__PURE__ */ h(function(o) {
|
|
54
|
+
var a = t.visualMapModel;
|
|
55
|
+
a.option.hoverLink && t.api.dispatchAction({
|
|
56
|
+
type: o,
|
|
57
|
+
batch: D(a.findTargetDataIndices(i), a)
|
|
58
|
+
});
|
|
59
|
+
}, "onHoverLink");
|
|
60
|
+
}, n.prototype._getItemAlign = function() {
|
|
61
|
+
var e = this.visualMapModel, i = e.option;
|
|
62
|
+
if (i.orient === "vertical")
|
|
63
|
+
return C(e, this.api, e.itemSize);
|
|
64
|
+
var t = i.align;
|
|
65
|
+
return (!t || t === "auto") && (t = "left"), t;
|
|
66
|
+
}, n.prototype._renderEndsText = function(e, i, t, r, o) {
|
|
67
|
+
if (i) {
|
|
68
|
+
var a = new x(), l = this.visualMapModel.textStyleModel;
|
|
69
|
+
a.add(new w({
|
|
70
|
+
style: P(l, {
|
|
71
|
+
x: r ? o === "right" ? t[0] : 0 : t[0] / 2,
|
|
72
|
+
y: t[1] / 2,
|
|
73
|
+
verticalAlign: "middle",
|
|
74
|
+
align: r ? o : "center",
|
|
75
|
+
text: i
|
|
76
|
+
})
|
|
77
|
+
})), e.add(a);
|
|
78
|
+
}
|
|
79
|
+
}, n.prototype._getViewData = function() {
|
|
80
|
+
var e = this.visualMapModel, i = L(e.getPieceList(), function(a, l) {
|
|
81
|
+
return {
|
|
82
|
+
piece: a,
|
|
83
|
+
indexInModelPieceList: l
|
|
84
|
+
};
|
|
85
|
+
}), t = e.get("text"), r = e.get("orient"), o = e.get("inverse");
|
|
86
|
+
return (r === "horizontal" ? o : !o) ? i.reverse() : t && (t = t.slice().reverse()), {
|
|
87
|
+
viewPieceList: i,
|
|
88
|
+
endsText: t
|
|
89
|
+
};
|
|
90
|
+
}, n.prototype._createItemSymbol = function(e, i, t, r) {
|
|
91
|
+
var o = A(
|
|
92
|
+
// symbol will be string
|
|
93
|
+
this.getControllerVisual(i, "symbol"),
|
|
94
|
+
t[0],
|
|
95
|
+
t[1],
|
|
96
|
+
t[2],
|
|
97
|
+
t[3],
|
|
98
|
+
// color will be string
|
|
99
|
+
this.getControllerVisual(i, "color")
|
|
100
|
+
);
|
|
101
|
+
o.silent = r, e.add(o);
|
|
102
|
+
}, n.prototype._onItemClick = function(e) {
|
|
103
|
+
var i = this.visualMapModel, t = i.option, r = t.selectedMode;
|
|
104
|
+
if (r) {
|
|
105
|
+
var o = T(t.selected), a = i.getSelectedMapKey(e);
|
|
106
|
+
r === "single" || r === !0 ? (o[a] = !0, y(o, function(l, s) {
|
|
107
|
+
o[s] = s === a;
|
|
108
|
+
})) : o[a] = !o[a], this.api.dispatchAction({
|
|
109
|
+
type: "selectDataRange",
|
|
110
|
+
from: this.uid,
|
|
111
|
+
visualMapId: this.visualMapModel.id,
|
|
112
|
+
selected: o
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
}, n.type = "visualMap.piecewise", n;
|
|
116
|
+
}(k)
|
|
117
|
+
);
|
|
118
|
+
export {
|
|
119
|
+
q as default
|
|
120
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var q=Object.defineProperty;var v=(S,i)=>q(S,"name",{value:i,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const E=require("../../../../../../../tslib@2.3.0/node_modules/tslib/tslib.es6/index.cjs"),l=require("../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs"),T=require("../../../visual/visualDefault/index.cjs"),z=require("../../../visual/VisualMapping/index.cjs"),I=require("../../../visual/visualSolution/index.cjs"),A=require("../../../util/model/index.cjs"),D=require("../../../util/number/index.cjs"),F=require("../../../model/Component/index.cjs");var O=z.default.mapVisual,B=z.default.eachVisual,L=l.isArray,C=l.each,_=D.asc,w=D.linearMap,P=function(S){E.__extends(i,S);function i(){var t=S!==null&&S.apply(this,arguments)||this;return t.type=i.type,t.stateList=["inRange","outOfRange"],t.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],t.layoutMode={type:"box",ignoreSize:!0},t.dataBound=[-1/0,1/0],t.targetVisuals={},t.controllerVisuals={},t}return v(i,"VisualMapModel"),i.prototype.init=function(t,e,o){this.mergeDefaultAndTheme(t,o)},i.prototype.optionUpdated=function(t,e){var o=this.option;!e&&I.replaceVisualOption(o,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},i.prototype.resetVisual=function(t){var e=this.stateList;t=l.bind(t,this),this.controllerVisuals=I.createVisualMappings(this.option.controller,e,t),this.targetVisuals=I.createVisualMappings(this.option.target,e,t)},i.prototype.getItemSymbol=function(){return null},i.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return t==null||t==="all"?this.ecModel.eachSeries(function(o,n){e.push(n)}):e=A.normalizeToArray(t),e},i.prototype.eachTargetSeries=function(t,e){l.each(this.getTargetSeriesIndices(),function(o){var n=this.ecModel.getSeriesByIndex(o);n&&t.call(e,n)},this)},i.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(o){o===t&&(e=!0)}),e},i.prototype.formatValueText=function(t,e,o){var n=this.option,h=n.precision,a=this.dataBound,c=n.formatter,p;o=o||["<",">"],l.isArray(t)&&(t=t.slice(),p=!0);var s=e?t:p?[r(t[0]),r(t[1])]:r(t);if(l.isString(c))return c.replace("{value}",p?s[0]:s).replace("{value2}",p?s[1]:s);if(l.isFunction(c))return p?c(t[0],t[1]):c(t);if(p)return t[0]===a[0]?o[0]+" "+s[1]:t[1]===a[1]?o[1]+" "+s[0]:s[0]+" - "+s[1];return s;function r(f){return f===a[0]?"min":f===a[1]?"max":(+f).toFixed(Math.min(h,20))}},i.prototype.resetExtent=function(){var t=this.option,e=_([t.min,t.max]);this._dataExtent=e},i.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(e!=null)return t.getDimensionIndex(e);for(var o=t.dimensions,n=o.length-1;n>=0;n--){var h=o[n],a=t.getDimensionInfo(h);if(!a.isCalculationCoord)return a.storeDimIndex}},i.prototype.getExtent=function(){return this._dataExtent.slice()},i.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,o={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),h=e.controller||(e.controller={});l.merge(n,o),l.merge(h,o);var a=this.isCategory();c.call(this,n),c.call(this,h),p.call(this,n,"inRange","outOfRange"),s.call(this,h);function c(r){L(e.color)&&!r.inRange&&(r.inRange={color:e.color.slice().reverse()}),r.inRange=r.inRange||{color:t.get("gradientColor")}}v(c,"completeSingle");function p(r,f,x){var M=r[f],g=r[x];M&&!g&&(g=r[x]={},C(M,function(b,d){if(z.default.isValidType(d)){var m=T.default.get(d,"inactive",a);m!=null&&(g[d]=m,d==="color"&&!g.hasOwnProperty("opacity")&&!g.hasOwnProperty("colorAlpha")&&(g.opacity=[0,0]))}}))}v(p,"completeInactive");function s(r){var f=(r.inRange||{}).symbol||(r.outOfRange||{}).symbol,x=(r.inRange||{}).symbolSize||(r.outOfRange||{}).symbolSize,M=this.get("inactiveColor"),g=this.getItemSymbol(),b=g||"roundRect";C(this.stateList,function(d){var m=this.itemSize,u=r[d];u||(u=r[d]={color:a?M:[M]}),u.symbol==null&&(u.symbol=f&&l.clone(f)||(a?b:[b])),u.symbolSize==null&&(u.symbolSize=x&&l.clone(x)||(a?m[0]:[m[0],m[0]])),u.symbol=O(u.symbol,function(y){return y==="none"?b:y});var V=u.symbolSize;if(V!=null){var R=-1/0;B(V,function(y){y>R&&(R=y)}),u.symbolSize=O(V,function(y){return w(y,[0,R],[0,m[0]],!0)})}},this)}v(s,"completeController")},i.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},i.prototype.isCategory=function(){return!!this.option.categories},i.prototype.setSelected=function(t){},i.prototype.getSelected=function(){return null},i.prototype.getValueState=function(t){return null},i.prototype.getVisualMeta=function(t){return null},i.type="visualMap",i.dependencies=["series"],i.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},i}(F.default);exports.default=P;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
var T = Object.defineProperty;
|
|
2
|
+
var d = (v, i) => T(v, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { __extends as F } from "../../../../../../../tslib@2.3.0/node_modules/tslib/tslib.es6/index.js";
|
|
4
|
+
import { bind as B, each as E, isArray as A, isString as L, isFunction as $, merge as I, clone as z } from "../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
5
|
+
import w from "../../../visual/visualDefault/index.js";
|
|
6
|
+
import V from "../../../visual/VisualMapping/index.js";
|
|
7
|
+
import { replaceVisualOption as W, createVisualMappings as C } from "../../../visual/visualSolution/index.js";
|
|
8
|
+
import { normalizeToArray as H } from "../../../util/model/index.js";
|
|
9
|
+
import { asc as K, linearMap as P } from "../../../util/number/index.js";
|
|
10
|
+
import k from "../../../model/Component/index.js";
|
|
11
|
+
var O = V.mapVisual, G = V.eachVisual, N = A, D = E, U = K, _ = P, it = (
|
|
12
|
+
/** @class */
|
|
13
|
+
function(v) {
|
|
14
|
+
F(i, v);
|
|
15
|
+
function i() {
|
|
16
|
+
var t = v !== null && v.apply(this, arguments) || this;
|
|
17
|
+
return t.type = i.type, t.stateList = ["inRange", "outOfRange"], t.replacableOptionKeys = ["inRange", "outOfRange", "target", "controller", "color"], t.layoutMode = {
|
|
18
|
+
type: "box",
|
|
19
|
+
ignoreSize: !0
|
|
20
|
+
}, t.dataBound = [-1 / 0, 1 / 0], t.targetVisuals = {}, t.controllerVisuals = {}, t;
|
|
21
|
+
}
|
|
22
|
+
return d(i, "VisualMapModel"), i.prototype.init = function(t, e, o) {
|
|
23
|
+
this.mergeDefaultAndTheme(t, o);
|
|
24
|
+
}, i.prototype.optionUpdated = function(t, e) {
|
|
25
|
+
var o = this.option;
|
|
26
|
+
!e && W(o, t, this.replacableOptionKeys), this.textStyleModel = this.getModel("textStyle"), this.resetItemSize(), this.completeVisualOption();
|
|
27
|
+
}, i.prototype.resetVisual = function(t) {
|
|
28
|
+
var e = this.stateList;
|
|
29
|
+
t = B(t, this), this.controllerVisuals = C(this.option.controller, e, t), this.targetVisuals = C(this.option.target, e, t);
|
|
30
|
+
}, i.prototype.getItemSymbol = function() {
|
|
31
|
+
return null;
|
|
32
|
+
}, i.prototype.getTargetSeriesIndices = function() {
|
|
33
|
+
var t = this.option.seriesIndex, e = [];
|
|
34
|
+
return t == null || t === "all" ? this.ecModel.eachSeries(function(o, n) {
|
|
35
|
+
e.push(n);
|
|
36
|
+
}) : e = H(t), e;
|
|
37
|
+
}, i.prototype.eachTargetSeries = function(t, e) {
|
|
38
|
+
E(this.getTargetSeriesIndices(), function(o) {
|
|
39
|
+
var n = this.ecModel.getSeriesByIndex(o);
|
|
40
|
+
n && t.call(e, n);
|
|
41
|
+
}, this);
|
|
42
|
+
}, i.prototype.isTargetSeries = function(t) {
|
|
43
|
+
var e = !1;
|
|
44
|
+
return this.eachTargetSeries(function(o) {
|
|
45
|
+
o === t && (e = !0);
|
|
46
|
+
}), e;
|
|
47
|
+
}, i.prototype.formatValueText = function(t, e, o) {
|
|
48
|
+
var n = this.option, m = n.precision, a = this.dataBound, c = n.formatter, p;
|
|
49
|
+
o = o || ["<", ">"], A(t) && (t = t.slice(), p = !0);
|
|
50
|
+
var s = e ? t : p ? [r(t[0]), r(t[1])] : r(t);
|
|
51
|
+
if (L(c))
|
|
52
|
+
return c.replace("{value}", p ? s[0] : s).replace("{value2}", p ? s[1] : s);
|
|
53
|
+
if ($(c))
|
|
54
|
+
return p ? c(t[0], t[1]) : c(t);
|
|
55
|
+
if (p)
|
|
56
|
+
return t[0] === a[0] ? o[0] + " " + s[1] : t[1] === a[1] ? o[1] + " " + s[0] : s[0] + " - " + s[1];
|
|
57
|
+
return s;
|
|
58
|
+
function r(u) {
|
|
59
|
+
return u === a[0] ? "min" : u === a[1] ? "max" : (+u).toFixed(Math.min(m, 20));
|
|
60
|
+
}
|
|
61
|
+
}, i.prototype.resetExtent = function() {
|
|
62
|
+
var t = this.option, e = U([t.min, t.max]);
|
|
63
|
+
this._dataExtent = e;
|
|
64
|
+
}, i.prototype.getDataDimensionIndex = function(t) {
|
|
65
|
+
var e = this.option.dimension;
|
|
66
|
+
if (e != null)
|
|
67
|
+
return t.getDimensionIndex(e);
|
|
68
|
+
for (var o = t.dimensions, n = o.length - 1; n >= 0; n--) {
|
|
69
|
+
var m = o[n], a = t.getDimensionInfo(m);
|
|
70
|
+
if (!a.isCalculationCoord)
|
|
71
|
+
return a.storeDimIndex;
|
|
72
|
+
}
|
|
73
|
+
}, i.prototype.getExtent = function() {
|
|
74
|
+
return this._dataExtent.slice();
|
|
75
|
+
}, i.prototype.completeVisualOption = function() {
|
|
76
|
+
var t = this.ecModel, e = this.option, o = {
|
|
77
|
+
inRange: e.inRange,
|
|
78
|
+
outOfRange: e.outOfRange
|
|
79
|
+
}, n = e.target || (e.target = {}), m = e.controller || (e.controller = {});
|
|
80
|
+
I(n, o), I(m, o);
|
|
81
|
+
var a = this.isCategory();
|
|
82
|
+
c.call(this, n), c.call(this, m), p.call(this, n, "inRange", "outOfRange"), s.call(this, m);
|
|
83
|
+
function c(r) {
|
|
84
|
+
N(e.color) && !r.inRange && (r.inRange = {
|
|
85
|
+
color: e.color.slice().reverse()
|
|
86
|
+
}), r.inRange = r.inRange || {
|
|
87
|
+
color: t.get("gradientColor")
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
d(c, "completeSingle");
|
|
91
|
+
function p(r, u, S) {
|
|
92
|
+
var x = r[u], f = r[S];
|
|
93
|
+
x && !f && (f = r[S] = {}, D(x, function(M, h) {
|
|
94
|
+
if (V.isValidType(h)) {
|
|
95
|
+
var g = w.get(h, "inactive", a);
|
|
96
|
+
g != null && (f[h] = g, h === "color" && !f.hasOwnProperty("opacity") && !f.hasOwnProperty("colorAlpha") && (f.opacity = [0, 0]));
|
|
97
|
+
}
|
|
98
|
+
}));
|
|
99
|
+
}
|
|
100
|
+
d(p, "completeInactive");
|
|
101
|
+
function s(r) {
|
|
102
|
+
var u = (r.inRange || {}).symbol || (r.outOfRange || {}).symbol, S = (r.inRange || {}).symbolSize || (r.outOfRange || {}).symbolSize, x = this.get("inactiveColor"), f = this.getItemSymbol(), M = f || "roundRect";
|
|
103
|
+
D(this.stateList, function(h) {
|
|
104
|
+
var g = this.itemSize, l = r[h];
|
|
105
|
+
l || (l = r[h] = {
|
|
106
|
+
color: a ? x : [x]
|
|
107
|
+
}), l.symbol == null && (l.symbol = u && z(u) || (a ? M : [M])), l.symbolSize == null && (l.symbolSize = S && z(S) || (a ? g[0] : [g[0], g[0]])), l.symbol = O(l.symbol, function(y) {
|
|
108
|
+
return y === "none" ? M : y;
|
|
109
|
+
});
|
|
110
|
+
var b = l.symbolSize;
|
|
111
|
+
if (b != null) {
|
|
112
|
+
var R = -1 / 0;
|
|
113
|
+
G(b, function(y) {
|
|
114
|
+
y > R && (R = y);
|
|
115
|
+
}), l.symbolSize = O(b, function(y) {
|
|
116
|
+
return _(y, [0, R], [0, g[0]], !0);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}, this);
|
|
120
|
+
}
|
|
121
|
+
d(s, "completeController");
|
|
122
|
+
}, i.prototype.resetItemSize = function() {
|
|
123
|
+
this.itemSize = [parseFloat(this.get("itemWidth")), parseFloat(this.get("itemHeight"))];
|
|
124
|
+
}, i.prototype.isCategory = function() {
|
|
125
|
+
return !!this.option.categories;
|
|
126
|
+
}, i.prototype.setSelected = function(t) {
|
|
127
|
+
}, i.prototype.getSelected = function() {
|
|
128
|
+
return null;
|
|
129
|
+
}, i.prototype.getValueState = function(t) {
|
|
130
|
+
return null;
|
|
131
|
+
}, i.prototype.getVisualMeta = function(t) {
|
|
132
|
+
return null;
|
|
133
|
+
}, i.type = "visualMap", i.dependencies = ["series"], i.defaultOption = {
|
|
134
|
+
show: !0,
|
|
135
|
+
// zlevel: 0,
|
|
136
|
+
z: 4,
|
|
137
|
+
seriesIndex: "all",
|
|
138
|
+
min: 0,
|
|
139
|
+
max: 200,
|
|
140
|
+
left: 0,
|
|
141
|
+
right: null,
|
|
142
|
+
top: null,
|
|
143
|
+
bottom: 0,
|
|
144
|
+
itemWidth: null,
|
|
145
|
+
itemHeight: null,
|
|
146
|
+
inverse: !1,
|
|
147
|
+
orient: "vertical",
|
|
148
|
+
backgroundColor: "rgba(0,0,0,0)",
|
|
149
|
+
borderColor: "#ccc",
|
|
150
|
+
contentColor: "#5793f3",
|
|
151
|
+
inactiveColor: "#aaa",
|
|
152
|
+
borderWidth: 0,
|
|
153
|
+
padding: 5,
|
|
154
|
+
// 接受数组分别设定上右下左边距,同css
|
|
155
|
+
textGap: 10,
|
|
156
|
+
precision: 0,
|
|
157
|
+
textStyle: {
|
|
158
|
+
color: "#333"
|
|
159
|
+
// 值域文字颜色
|
|
160
|
+
}
|
|
161
|
+
}, i;
|
|
162
|
+
}(k)
|
|
163
|
+
);
|
|
164
|
+
export {
|
|
165
|
+
it as default
|
|
166
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var y=Object.defineProperty;var s=(n,o)=>y(n,"name",{value:o,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const M=require("../../../../../../../tslib@2.3.0/node_modules/tslib/tslib.es6/index.cjs"),m=require("../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs");require("../../../util/graphic/index.cjs");const V=require("../../../util/format/index.cjs"),b=require("../../../util/layout/index.cjs"),c=require("../../../visual/VisualMapping/index.cjs"),q=require("../../../view/Component/index.cjs"),w=require("../../../../../../../zrender@5.6.1/node_modules/zrender/lib/graphic/shape/Rect/index.cjs");var _=function(n){M.__extends(o,n);function o(){var e=n!==null&&n.apply(this,arguments)||this;return e.type=o.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return s(o,"VisualMapView"),o.prototype.init=function(e,i){this.ecModel=e,this.api=i},o.prototype.render=function(e,i,t,r){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,i,t,r)},o.prototype.renderBackground=function(e){var i=this.visualMapModel,t=V.normalizeCssArray(i.get("padding")||0),r=e.getBoundingRect();e.add(new w.default({z2:-1,silent:!0,shape:{x:r.x-t[3],y:r.y-t[0],width:r.width+t[3]+t[1],height:r.height+t[0]+t[2]},style:{fill:i.get("backgroundColor"),stroke:i.get("borderColor"),lineWidth:i.get("borderWidth")}}))},o.prototype.getControllerVisual=function(e,i,t){t=t||{};var r=t.forceState,p=this.visualMapModel,u={};if(i==="color"){var h=p.get("contentColor");u.color=h}function g(a){return u[a]}s(g,"getter");function f(a,l){u[a]=l}s(f,"setter");var d=p.controllerVisuals[r||p.getValueState(e)],v=c.default.prepareVisualTypes(d);return m.each(v,function(a){var l=d[a];t.convertOpacityToAlpha&&a==="opacity"&&(a="colorAlpha",l=d.__alphaForOpacity),c.default.dependsOn(a,i)&&l&&l.applyVisual(e,g,f)}),u[i]},o.prototype.positionGroup=function(e){var i=this.visualMapModel,t=this.api;b.positionElement(e,i.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})},o.prototype.doRender=function(e,i,t,r){},o.type="visualMap",o}(q.default);exports.default=_;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var s = (n, i) => v(n, "name", { value: i, configurable: !0 });
|
|
3
|
+
import { __extends as y } from "../../../../../../../tslib@2.3.0/node_modules/tslib/tslib.es6/index.js";
|
|
4
|
+
import { each as M } from "../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
5
|
+
import "../../../util/graphic/index.js";
|
|
6
|
+
import { normalizeCssArray as V } from "../../../util/format/index.js";
|
|
7
|
+
import { positionElement as w } from "../../../util/layout/index.js";
|
|
8
|
+
import h from "../../../visual/VisualMapping/index.js";
|
|
9
|
+
import b from "../../../view/Component/index.js";
|
|
10
|
+
import x from "../../../../../../../zrender@5.6.1/node_modules/zrender/lib/graphic/shape/Rect/index.js";
|
|
11
|
+
var _ = (
|
|
12
|
+
/** @class */
|
|
13
|
+
function(n) {
|
|
14
|
+
y(i, n);
|
|
15
|
+
function i() {
|
|
16
|
+
var t = n !== null && n.apply(this, arguments) || this;
|
|
17
|
+
return t.type = i.type, t.autoPositionValues = {
|
|
18
|
+
left: 1,
|
|
19
|
+
right: 1,
|
|
20
|
+
top: 1,
|
|
21
|
+
bottom: 1
|
|
22
|
+
}, t;
|
|
23
|
+
}
|
|
24
|
+
return s(i, "VisualMapView"), i.prototype.init = function(t, e) {
|
|
25
|
+
this.ecModel = t, this.api = e;
|
|
26
|
+
}, i.prototype.render = function(t, e, o, r) {
|
|
27
|
+
if (this.visualMapModel = t, t.get("show") === !1) {
|
|
28
|
+
this.group.removeAll();
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
this.doRender(t, e, o, r);
|
|
32
|
+
}, i.prototype.renderBackground = function(t) {
|
|
33
|
+
var e = this.visualMapModel, o = V(e.get("padding") || 0), r = t.getBoundingRect();
|
|
34
|
+
t.add(new x({
|
|
35
|
+
z2: -1,
|
|
36
|
+
silent: !0,
|
|
37
|
+
shape: {
|
|
38
|
+
x: r.x - o[3],
|
|
39
|
+
y: r.y - o[0],
|
|
40
|
+
width: r.width + o[3] + o[1],
|
|
41
|
+
height: r.height + o[0] + o[2]
|
|
42
|
+
},
|
|
43
|
+
style: {
|
|
44
|
+
fill: e.get("backgroundColor"),
|
|
45
|
+
stroke: e.get("borderColor"),
|
|
46
|
+
lineWidth: e.get("borderWidth")
|
|
47
|
+
}
|
|
48
|
+
}));
|
|
49
|
+
}, i.prototype.getControllerVisual = function(t, e, o) {
|
|
50
|
+
o = o || {};
|
|
51
|
+
var r = o.forceState, u = this.visualMapModel, l = {};
|
|
52
|
+
if (e === "color") {
|
|
53
|
+
var c = u.get("contentColor");
|
|
54
|
+
l.color = c;
|
|
55
|
+
}
|
|
56
|
+
function f(a) {
|
|
57
|
+
return l[a];
|
|
58
|
+
}
|
|
59
|
+
s(f, "getter");
|
|
60
|
+
function g(a, p) {
|
|
61
|
+
l[a] = p;
|
|
62
|
+
}
|
|
63
|
+
s(g, "setter");
|
|
64
|
+
var d = u.controllerVisuals[r || u.getValueState(t)], m = h.prepareVisualTypes(d);
|
|
65
|
+
return M(m, function(a) {
|
|
66
|
+
var p = d[a];
|
|
67
|
+
o.convertOpacityToAlpha && a === "opacity" && (a = "colorAlpha", p = d.__alphaForOpacity), h.dependsOn(a, e) && p && p.applyVisual(t, f, g);
|
|
68
|
+
}), l[e];
|
|
69
|
+
}, i.prototype.positionGroup = function(t) {
|
|
70
|
+
var e = this.visualMapModel, o = this.api;
|
|
71
|
+
w(t, e.getBoxLayoutParams(), {
|
|
72
|
+
width: o.getWidth(),
|
|
73
|
+
height: o.getHeight()
|
|
74
|
+
});
|
|
75
|
+
}, i.prototype.doRender = function(t, e, o, r) {
|
|
76
|
+
}, i.type = "visualMap", i;
|
|
77
|
+
}(b)
|
|
78
|
+
);
|
|
79
|
+
export {
|
|
80
|
+
_ as default
|
|
81
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var m=Object.defineProperty;var h=(a,t)=>m(a,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs"),s=require("../../../util/layout/index.cjs");var c=[["left","right","width"],["top","bottom","height"]];function x(a,t,e){var r=a.option,o=r.align;if(o!=null&&o!=="auto")return o;for(var v={width:t.getWidth(),height:t.getHeight()},l=r.orient==="horizontal"?1:0,g=c[l],f=[0,null,10],u={},n=0;n<3;n++)u[c[1-l][n]]=f[n],u[g[n]]=n===2?e[0]:r[g[n]];var i=[["x","width",3],["y","height",0]][l],d=s.getLayoutRect(u,v,r.padding);return g[(d.margin[i[2]]||0)+d[i[0]]+d[i[1]]*.5<v[i[1]]*.5?0:1]}h(x,"getItemAlign");function y(a,t){return p.each(a||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),a}h(y,"makeHighDownBatch");exports.getItemAlign=x;exports.makeHighDownBatch=y;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
var p = Object.defineProperty;
|
|
2
|
+
var h = (e, t) => p(e, "name", { value: t, configurable: !0 });
|
|
3
|
+
import { each as x } from "../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
4
|
+
import { getLayoutRect as I } from "../../../util/layout/index.js";
|
|
5
|
+
var f = [["left", "right", "width"], ["top", "bottom", "height"]];
|
|
6
|
+
function s(e, t, n) {
|
|
7
|
+
var a = e.option, o = a.align;
|
|
8
|
+
if (o != null && o !== "auto")
|
|
9
|
+
return o;
|
|
10
|
+
for (var v = {
|
|
11
|
+
width: t.getWidth(),
|
|
12
|
+
height: t.getHeight()
|
|
13
|
+
}, l = a.orient === "horizontal" ? 1 : 0, d = f[l], m = [0, null, 10], g = {}, r = 0; r < 3; r++)
|
|
14
|
+
g[f[1 - l][r]] = m[r], g[d[r]] = r === 2 ? n[0] : a[d[r]];
|
|
15
|
+
var i = [["x", "width", 3], ["y", "height", 0]][l], u = I(g, v, a.padding);
|
|
16
|
+
return d[(u.margin[i[2]] || 0) + u[i[0]] + u[i[1]] * 0.5 < v[i[1]] * 0.5 ? 0 : 1];
|
|
17
|
+
}
|
|
18
|
+
h(s, "getItemAlign");
|
|
19
|
+
function k(e, t) {
|
|
20
|
+
return x(e || [], function(n) {
|
|
21
|
+
n.dataIndex != null && (n.dataIndexInside = n.dataIndex, n.dataIndex = null), n.highlightKey = "visualMap" + (t ? t.componentIndex : "");
|
|
22
|
+
}), e;
|
|
23
|
+
}
|
|
24
|
+
h(k, "makeHighDownBatch");
|
|
25
|
+
export {
|
|
26
|
+
s as getItemAlign,
|
|
27
|
+
k as makeHighDownBatch
|
|
28
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var l=Object.defineProperty;var i=(e,t)=>l(e,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../extension/index.cjs"),n=require("../installVisualMapContinuous/index.cjs"),u=require("../installVisualMapPiecewise/index.cjs");function a(e){s.use(n.install),s.use(u.install)}i(a,"install");exports.install=a;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var i = (t, s) => r(t, "name", { value: s, configurable: !0 });
|
|
3
|
+
import { use as l } from "../../../extension/index.js";
|
|
4
|
+
import { install as o } from "../installVisualMapContinuous/index.js";
|
|
5
|
+
import { install as a } from "../installVisualMapPiecewise/index.js";
|
|
6
|
+
function p(t) {
|
|
7
|
+
l(o), l(a);
|
|
8
|
+
}
|
|
9
|
+
i(p, "install");
|
|
10
|
+
export {
|
|
11
|
+
p as install
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var l=Object.defineProperty;var i=(u,e)=>l(u,"name",{value:e,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("../visualMapAction/index.cjs"),n=require("../visualEncoding/index.cjs"),t=require("../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs"),c=require("../preprocessor/index.cjs");var a=!1;function s(u){a||(a=!0,u.registerSubTypeDefaulter("visualMap",function(e){return!e.categories&&(!(e.pieces?e.pieces.length>0:e.splitNumber>0)||e.calculable)?"continuous":"piecewise"}),u.registerAction(r.visualMapActionInfo,r.visualMapActionHander),t.each(n.visualMapEncodingHandlers,function(e){u.registerVisual(u.PRIORITY.VISUAL.COMPONENT,e)}),u.registerPreprocessor(c.default))}i(s,"installCommon");exports.default=s;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var a = (r, e) => l(r, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { visualMapActionInfo as u, visualMapActionHander as n } from "../visualMapAction/index.js";
|
|
4
|
+
import { visualMapEncodingHandlers as o } from "../visualEncoding/index.js";
|
|
5
|
+
import { each as t } from "../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
6
|
+
import c from "../preprocessor/index.js";
|
|
7
|
+
var i = !1;
|
|
8
|
+
function M(r) {
|
|
9
|
+
i || (i = !0, r.registerSubTypeDefaulter("visualMap", function(e) {
|
|
10
|
+
return !e.categories && (!(e.pieces ? e.pieces.length > 0 : e.splitNumber > 0) || e.calculable) ? "continuous" : "piecewise";
|
|
11
|
+
}), r.registerAction(u, n), t(o, function(e) {
|
|
12
|
+
r.registerVisual(r.PRIORITY.VISUAL.COMPONENT, e);
|
|
13
|
+
}), r.registerPreprocessor(c));
|
|
14
|
+
}
|
|
15
|
+
a(M, "installCommon");
|
|
16
|
+
export {
|
|
17
|
+
M as default
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=Object.defineProperty;var o=(e,t)=>n(e,"name",{value:t,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../ContinuousModel/index.cjs"),l=require("../ContinuousView/index.cjs"),u=require("../installCommon/index.cjs");function r(e){e.registerComponentModel(i.default),e.registerComponentView(l.default),u.default(e)}o(r,"install");exports.install=r;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var n = (o, t) => i(o, "name", { value: t, configurable: !0 });
|
|
3
|
+
import m from "../ContinuousModel/index.js";
|
|
4
|
+
import e from "../ContinuousView/index.js";
|
|
5
|
+
import r from "../installCommon/index.js";
|
|
6
|
+
function f(o) {
|
|
7
|
+
o.registerComponentModel(m), o.registerComponentView(e), r(o);
|
|
8
|
+
}
|
|
9
|
+
n(f, "install");
|
|
10
|
+
export {
|
|
11
|
+
f as install
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var o=Object.defineProperty;var t=(e,i)=>o(e,"name",{value:i,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../PiecewiseModel/index.cjs"),l=require("../PiecewiseView/index.cjs"),r=require("../installCommon/index.cjs");function u(e){e.registerComponentModel(n.default),e.registerComponentView(l.default),r.default(e)}t(u,"install");exports.install=u;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var e = (o, i) => m(o, "name", { value: i, configurable: !0 });
|
|
3
|
+
import n from "../PiecewiseModel/index.js";
|
|
4
|
+
import t from "../PiecewiseView/index.js";
|
|
5
|
+
import l from "../installCommon/index.js";
|
|
6
|
+
function w(o) {
|
|
7
|
+
o.registerComponentModel(n), o.registerComponentView(t), l(o);
|
|
8
|
+
}
|
|
9
|
+
e(w, "install");
|
|
10
|
+
export {
|
|
11
|
+
w as install
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var f=Object.defineProperty;var u=(i,s)=>f(i,"name",{value:s,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs");var l=e.each;function v(i){var s=i&&i.visualMap;e.isArray(s)||(s=s?[s]:[]),l(s,function(a){if(a){t(a,"splitList")&&!t(a,"pieces")&&(a.pieces=a.splitList,delete a.splitList);var n=a.pieces;n&&e.isArray(n)&&l(n,function(r){e.isObject(r)&&(t(r,"start")&&!t(r,"min")&&(r.min=r.start),t(r,"end")&&!t(r,"max")&&(r.max=r.end))})}})}u(v,"visualMapPreprocessor");function t(i,s){return i&&i.hasOwnProperty&&i.hasOwnProperty(s)}u(t,"has");exports.default=v;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var f = (r, s) => l(r, "name", { value: s, configurable: !0 });
|
|
3
|
+
import { isArray as u, each as h, isObject as m } from "../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
4
|
+
var e = h;
|
|
5
|
+
function d(r) {
|
|
6
|
+
var s = r && r.visualMap;
|
|
7
|
+
u(s) || (s = s ? [s] : []), e(s, function(i) {
|
|
8
|
+
if (i) {
|
|
9
|
+
t(i, "splitList") && !t(i, "pieces") && (i.pieces = i.splitList, delete i.splitList);
|
|
10
|
+
var n = i.pieces;
|
|
11
|
+
n && u(n) && e(n, function(a) {
|
|
12
|
+
m(a) && (t(a, "start") && !t(a, "min") && (a.min = a.start), t(a, "end") && !t(a, "max") && (a.max = a.end));
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
f(d, "visualMapPreprocessor");
|
|
18
|
+
function t(r, s) {
|
|
19
|
+
return r && r.hasOwnProperty && r.hasOwnProperty(s);
|
|
20
|
+
}
|
|
21
|
+
f(t, "has");
|
|
22
|
+
export {
|
|
23
|
+
d as default
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var S=Object.defineProperty;var u=(t,r)=>S(t,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs"),h=require("../../../visual/visualSolution/index.cjs"),m=require("../../../visual/VisualMapping/index.cjs"),y=require("../../../visual/helper/index.cjs");var C=[{createOnAllSeries:!0,reset:u(function(t,r){var n=[];return r.eachComponent("visualMap",function(e){var a=t.pipelineContext;!e.isTargetSeries(t)||a&&a.large||n.push(h.incrementalApplyVisual(e.stateList,e.targetVisuals,p.bind(e.getValueState,e),e.getDataDimensionIndex(t.getData())))}),n},"reset")},{createOnAllSeries:!0,reset:u(function(t,r){var n=t.getData(),e=[];r.eachComponent("visualMap",function(a){if(a.isTargetSeries(t)){var s=a.getVisualMeta(p.bind(T,null,t,a))||{stops:[],outerColors:[]},i=a.getDataDimensionIndex(n);i>=0&&(s.dimension=i,e.push(s))}}),t.getData().setVisual("visualMeta",e)},"reset")}];function T(t,r,n,e){for(var a=r.targetVisuals[e],s=m.default.prepareVisualTypes(a),i={color:y.getVisualFromData(t.getData(),"color")},o=0,f=s.length;o<f;o++){var c=s[o],g=a[c==="opacity"?"__alphaForOpacity":c];g&&g.applyVisual(n,V,v)}return i.color;function V(l){return i[l]}function v(l,D){i[l]=D}}u(T,"getColorVisual");exports.visualMapEncodingHandlers=C;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
var D = Object.defineProperty;
|
|
2
|
+
var s = (t, e) => D(t, "name", { value: e, configurable: !0 });
|
|
3
|
+
import { bind as c } from "../../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
4
|
+
import { incrementalApplyVisual as h } from "../../../visual/visualSolution/index.js";
|
|
5
|
+
import C from "../../../visual/VisualMapping/index.js";
|
|
6
|
+
import { getVisualFromData as y } from "../../../visual/helper/index.js";
|
|
7
|
+
var L = [
|
|
8
|
+
{
|
|
9
|
+
createOnAllSeries: !0,
|
|
10
|
+
reset: /* @__PURE__ */ s(function(t, e) {
|
|
11
|
+
var n = [];
|
|
12
|
+
return e.eachComponent("visualMap", function(a) {
|
|
13
|
+
var r = t.pipelineContext;
|
|
14
|
+
!a.isTargetSeries(t) || r && r.large || n.push(h(a.stateList, a.targetVisuals, c(a.getValueState, a), a.getDataDimensionIndex(t.getData())));
|
|
15
|
+
}), n;
|
|
16
|
+
}, "reset")
|
|
17
|
+
},
|
|
18
|
+
// Only support color.
|
|
19
|
+
{
|
|
20
|
+
createOnAllSeries: !0,
|
|
21
|
+
reset: /* @__PURE__ */ s(function(t, e) {
|
|
22
|
+
var n = t.getData(), a = [];
|
|
23
|
+
e.eachComponent("visualMap", function(r) {
|
|
24
|
+
if (r.isTargetSeries(t)) {
|
|
25
|
+
var o = r.getVisualMeta(c(S, null, t, r)) || {
|
|
26
|
+
stops: [],
|
|
27
|
+
outerColors: []
|
|
28
|
+
}, i = r.getDataDimensionIndex(n);
|
|
29
|
+
i >= 0 && (o.dimension = i, a.push(o));
|
|
30
|
+
}
|
|
31
|
+
}), t.getData().setVisual("visualMeta", a);
|
|
32
|
+
}, "reset")
|
|
33
|
+
}
|
|
34
|
+
];
|
|
35
|
+
function S(t, e, n, a) {
|
|
36
|
+
for (var r = e.targetVisuals[a], o = C.prepareVisualTypes(r), i = {
|
|
37
|
+
color: y(t.getData(), "color")
|
|
38
|
+
// default color.
|
|
39
|
+
}, u = 0, f = o.length; u < f; u++) {
|
|
40
|
+
var g = o[u], l = r[g === "opacity" ? "__alphaForOpacity" : g];
|
|
41
|
+
l && l.applyVisual(n, m, V);
|
|
42
|
+
}
|
|
43
|
+
return i.color;
|
|
44
|
+
function m(p) {
|
|
45
|
+
return i[p];
|
|
46
|
+
}
|
|
47
|
+
function V(p, v) {
|
|
48
|
+
i[p] = v;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
s(S, "getColorVisual");
|
|
52
|
+
export {
|
|
53
|
+
L as visualMapEncodingHandlers
|
|
54
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var i=Object.defineProperty;var t=(e,a)=>i(e,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var c={type:"selectDataRange",event:"dataRangeSelected",update:"update"},o=t(function(e,a){a.eachComponent({mainType:"visualMap",query:e},function(n){n.setSelected(e.selected)})},"visualMapActionHander");exports.visualMapActionHander=o;exports.visualMapActionInfo=c;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
var c = Object.defineProperty;
|
|
2
|
+
var t = (e, a) => c(e, "name", { value: a, configurable: !0 });
|
|
3
|
+
var p = {
|
|
4
|
+
type: "selectDataRange",
|
|
5
|
+
event: "dataRangeSelected",
|
|
6
|
+
// FIXME use updateView appears wrong
|
|
7
|
+
update: "update"
|
|
8
|
+
}, u = /* @__PURE__ */ t(function(e, a) {
|
|
9
|
+
a.eachComponent({
|
|
10
|
+
mainType: "visualMap",
|
|
11
|
+
query: e
|
|
12
|
+
}, function(n) {
|
|
13
|
+
n.setSelected(e.selected);
|
|
14
|
+
});
|
|
15
|
+
}, "visualMapActionHander");
|
|
16
|
+
export {
|
|
17
|
+
u as visualMapActionHander,
|
|
18
|
+
p as visualMapActionInfo
|
|
19
|
+
};
|