@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
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
function
|
|
1
|
+
var r = Object.defineProperty;
|
|
2
|
+
var i = (e, s) => r(e, "name", { value: s, configurable: !0 });
|
|
3
|
+
function u(e, s, t) {
|
|
4
4
|
switch (t) {
|
|
5
5
|
case "color":
|
|
6
|
-
var
|
|
7
|
-
return
|
|
6
|
+
var o = e.getItemVisual(s, "style");
|
|
7
|
+
return o[e.getVisual("drawType")];
|
|
8
8
|
case "opacity":
|
|
9
9
|
return e.getItemVisual(s, "style").opacity;
|
|
10
10
|
case "symbol":
|
|
@@ -15,8 +15,8 @@ function c(e, s, t) {
|
|
|
15
15
|
process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + t);
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
|
|
19
|
-
function
|
|
18
|
+
i(u, "getItemVisualFromData");
|
|
19
|
+
function n(e, s) {
|
|
20
20
|
switch (s) {
|
|
21
21
|
case "color":
|
|
22
22
|
var t = e.getVisual("style");
|
|
@@ -31,8 +31,28 @@ function u(e, s) {
|
|
|
31
31
|
process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + s);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
i(n, "getVisualFromData");
|
|
35
|
+
function a(e, s, t, o) {
|
|
36
|
+
switch (t) {
|
|
37
|
+
case "color":
|
|
38
|
+
var l = e.ensureUniqueItemVisual(s, "style");
|
|
39
|
+
l[e.getVisual("drawType")] = o, e.setItemVisual(s, "colorFromPalette", !1);
|
|
40
|
+
break;
|
|
41
|
+
case "opacity":
|
|
42
|
+
e.ensureUniqueItemVisual(s, "style").opacity = o;
|
|
43
|
+
break;
|
|
44
|
+
case "symbol":
|
|
45
|
+
case "symbolSize":
|
|
46
|
+
case "liftZ":
|
|
47
|
+
e.setItemVisual(s, t, o);
|
|
48
|
+
break;
|
|
49
|
+
default:
|
|
50
|
+
process.env.NODE_ENV !== "production" && console.warn("Unknown visual type " + t);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
i(a, "setItemVisualFromData");
|
|
35
54
|
export {
|
|
36
|
-
|
|
37
|
-
|
|
55
|
+
u as getItemVisualFromData,
|
|
56
|
+
n as getVisualFromData,
|
|
57
|
+
a as setItemVisualFromData
|
|
38
58
|
};
|
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js.br
ADDED
|
Binary file
|
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/helper/index.js.gz
ADDED
|
Binary file
|
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualDefault/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=Object.defineProperty;var a=(i,t)=>n(i,"name",{value:t,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs");var r={get:a(function(i,t,o){var e=c.clone((v[i]||{})[t]);return o&&c.isArray(e)?e[e.length-1]:e},"get")},v={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};exports.default=r;
|
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualDefault/index.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var t = (e, a) => o(e, "name", { value: a, configurable: !0 });
|
|
3
|
+
import { clone as v, isArray as n } from "../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
4
|
+
var f = {
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
get: /* @__PURE__ */ t(function(e, a, c) {
|
|
9
|
+
var i = v((r[e] || {})[a]);
|
|
10
|
+
return c && n(i) ? i[i.length - 1] : i;
|
|
11
|
+
}, "get")
|
|
12
|
+
}, r = {
|
|
13
|
+
color: {
|
|
14
|
+
active: ["#006edd", "#e0ffff"],
|
|
15
|
+
inactive: ["rgba(0,0,0,0)"]
|
|
16
|
+
},
|
|
17
|
+
colorHue: {
|
|
18
|
+
active: [0, 360],
|
|
19
|
+
inactive: [0, 0]
|
|
20
|
+
},
|
|
21
|
+
colorSaturation: {
|
|
22
|
+
active: [0.3, 1],
|
|
23
|
+
inactive: [0, 0]
|
|
24
|
+
},
|
|
25
|
+
colorLightness: {
|
|
26
|
+
active: [0.9, 0.5],
|
|
27
|
+
inactive: [0, 0]
|
|
28
|
+
},
|
|
29
|
+
colorAlpha: {
|
|
30
|
+
active: [0.3, 1],
|
|
31
|
+
inactive: [0, 0]
|
|
32
|
+
},
|
|
33
|
+
opacity: {
|
|
34
|
+
active: [0.3, 1],
|
|
35
|
+
inactive: [0, 0]
|
|
36
|
+
},
|
|
37
|
+
symbol: {
|
|
38
|
+
active: ["circle", "roundRect", "diamond"],
|
|
39
|
+
inactive: ["none"]
|
|
40
|
+
},
|
|
41
|
+
symbolSize: {
|
|
42
|
+
active: [10, 50],
|
|
43
|
+
inactive: [0, 0]
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
f as default
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var F=Object.defineProperty;var t=(a,r)=>F(a,"name",{value:r,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.cjs"),v=require("../VisualMapping/index.cjs"),I=require("../helper/index.cjs");var x=f.each;function P(a){if(a){for(var r in a)if(a.hasOwnProperty(r))return!0}}t(P,"hasKeys");function O(a,r,o){var i={};return x(r,function(n){var u=i[n]=e();x(a[n],function(c,p){if(v.default.isValidType(p)){var l={type:p,visual:c};o&&o(l,n),u[p]=new v.default(l),p==="opacity"&&(l=f.clone(l),l.type="colorAlpha",u.__hidden.__alphaForOpacity=new v.default(l))}})}),i;function e(){var n=t(function(){},"Creater");n.prototype.__hidden=n.prototype;var u=new n;return u}t(e,"createMappings")}t(O,"createVisualMappings");function S(a,r,o){var i;f.each(o,function(e){r.hasOwnProperty(e)&&P(r[e])&&(i=!0)}),i&&f.each(o,function(e){r.hasOwnProperty(e)&&P(r[e])?a[e]=f.clone(r[e]):delete a[e]})}t(S,"replaceVisualOption");function b(a,r,o,i){var e={};return f.each(a,function(n){var u=v.default.prepareVisualTypes(r[n]);e[n]=u}),{progress:t(function(u,c){var p;i!=null&&(p=c.getDimensionIndex(i));function l(h){return I.getItemVisualFromData(c,s,h)}t(l,"getVisual");function q(h,D){I.setItemVisualFromData(c,s,h,D)}t(q,"setVisual");for(var s,w=c.getStore();(s=u.next())!=null;){var V=c.getRawDataItem(s);if(!(V&&V.visualMap===!1))for(var d=i!=null?w.get(p,s):s,y=o(d),m=r[y],M=e[y],g=0,A=M.length;g<A;g++){var _=M[g];m[_]&&m[_].applyVisual(d,l,q)}}},"progress")}}t(b,"incrementalApplyVisual");exports.createVisualMappings=O;exports.incrementalApplyVisual=b;exports.replaceVisualOption=S;
|
package/lib/node_modules/.pnpm/echarts@5.6.0/node_modules/echarts/lib/visual/visualSolution/index.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var i = (a, r) => C(a, "name", { value: r, configurable: !0 });
|
|
3
|
+
import { each as v, clone as w } from "../../../../../../zrender@5.6.1/node_modules/zrender/lib/core/util/index.js";
|
|
4
|
+
import s from "../VisualMapping/index.js";
|
|
5
|
+
import { getItemVisualFromData as K, setItemVisualFromData as R } from "../helper/index.js";
|
|
6
|
+
var I = v;
|
|
7
|
+
function M(a) {
|
|
8
|
+
if (a) {
|
|
9
|
+
for (var r in a)
|
|
10
|
+
if (a.hasOwnProperty(r))
|
|
11
|
+
return !0;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
i(M, "hasKeys");
|
|
15
|
+
function E(a, r, p) {
|
|
16
|
+
var t = {};
|
|
17
|
+
return I(r, function(e) {
|
|
18
|
+
var o = t[e] = n();
|
|
19
|
+
I(a[e], function(f, c) {
|
|
20
|
+
if (s.isValidType(c)) {
|
|
21
|
+
var u = {
|
|
22
|
+
type: c,
|
|
23
|
+
visual: f
|
|
24
|
+
};
|
|
25
|
+
p && p(u, e), o[c] = new s(u), c === "opacity" && (u = w(u), u.type = "colorAlpha", o.__hidden.__alphaForOpacity = new s(u));
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
}), t;
|
|
29
|
+
function n() {
|
|
30
|
+
var e = /* @__PURE__ */ i(function() {
|
|
31
|
+
}, "Creater");
|
|
32
|
+
e.prototype.__hidden = e.prototype;
|
|
33
|
+
var o = new e();
|
|
34
|
+
return o;
|
|
35
|
+
}
|
|
36
|
+
i(n, "createMappings");
|
|
37
|
+
}
|
|
38
|
+
i(E, "createVisualMappings");
|
|
39
|
+
function G(a, r, p) {
|
|
40
|
+
var t;
|
|
41
|
+
v(p, function(n) {
|
|
42
|
+
r.hasOwnProperty(n) && M(r[n]) && (t = !0);
|
|
43
|
+
}), t && v(p, function(n) {
|
|
44
|
+
r.hasOwnProperty(n) && M(r[n]) ? a[n] = w(r[n]) : delete a[n];
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
i(G, "replaceVisualOption");
|
|
48
|
+
function H(a, r, p, t) {
|
|
49
|
+
var n = {};
|
|
50
|
+
return v(a, function(e) {
|
|
51
|
+
var o = s.prepareVisualTypes(r[e]);
|
|
52
|
+
n[e] = o;
|
|
53
|
+
}), {
|
|
54
|
+
progress: /* @__PURE__ */ i(function(o, f) {
|
|
55
|
+
var c;
|
|
56
|
+
t != null && (c = f.getDimensionIndex(t));
|
|
57
|
+
function u(h) {
|
|
58
|
+
return K(f, l, h);
|
|
59
|
+
}
|
|
60
|
+
i(u, "getVisual");
|
|
61
|
+
function D(h, A) {
|
|
62
|
+
R(f, l, h, A);
|
|
63
|
+
}
|
|
64
|
+
i(D, "setVisual");
|
|
65
|
+
for (var l, F = f.getStore(); (l = o.next()) != null; ) {
|
|
66
|
+
var m = f.getRawDataItem(l);
|
|
67
|
+
if (!(m && m.visualMap === !1))
|
|
68
|
+
for (var V = t != null ? F.get(c, l) : l, _ = p(V), d = r[_], x = n[_], g = 0, P = x.length; g < P; g++) {
|
|
69
|
+
var y = x[g];
|
|
70
|
+
d[y] && d[y].applyVisual(V, u, D);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}, "progress")
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
i(H, "incrementalApplyVisual");
|
|
77
|
+
export {
|
|
78
|
+
E as createVisualMappings,
|
|
79
|
+
H as incrementalApplyVisual,
|
|
80
|
+
G as replaceVisualOption
|
|
81
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var B=Object.defineProperty;var f=(e,n)=>B(e,"name",{value:n,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../../core/LRU/index.cjs"),w=require("../../core/util/index.cjs");var H={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function h(e){return e=Math.round(e),e<0?0:e>255?255:e}f(h,"clampCssByte");function G(e){return e=Math.round(e),e<0?0:e>360?360:e}f(G,"clampCssAngle");function k(e){return e<0?0:e>1?1:e}f(k,"clampCssFloat");function b(e){var n=e;return n.length&&n.charAt(n.length-1)==="%"?h(parseFloat(n)/100*255):h(parseInt(n,10))}f(b,"parseCssInt");function g(e){var n=e;return n.length&&n.charAt(n.length-1)==="%"?k(parseFloat(n)/100):k(parseFloat(n))}f(g,"parseCssFloat");function I(e,n,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?e+(n-e)*t*6:t*2<1?n:t*3<2?e+(n-e)*(2/3-t)*6:e}f(I,"cssHueToRgb");function v(e,n,t){return e+(n-e)*t}f(v,"lerpNumber");function o(e,n,t,r,i){return e[0]=n,e[1]=t,e[2]=r,e[3]=i,e}f(o,"setRgba");function q(e,n){return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e}f(q,"copyRgba");var j=new T.default(20),x=null;function y(e,n){x&&q(x,n),x=j.put(e,x||n.slice())}f(y,"putToCache");function c(e,n){if(e){n=n||[];var t=j.get(e);if(t)return q(n,t);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in H)return q(n,H[r]),y(e,n),n;var i=r.length;if(r.charAt(0)==="#"){if(i===4||i===5){var l=parseInt(r.slice(1,4),16);if(!(l>=0&&l<=4095)){o(n,0,0,0,1);return}return o(n,(l&3840)>>4|(l&3840)>>8,l&240|(l&240)>>4,l&15|(l&15)<<4,i===5?parseInt(r.slice(4),16)/15:1),y(e,n),n}else if(i===7||i===9){var l=parseInt(r.slice(1,7),16);if(!(l>=0&&l<=16777215)){o(n,0,0,0,1);return}return o(n,(l&16711680)>>16,(l&65280)>>8,l&255,i===9?parseInt(r.slice(7),16)/255:1),y(e,n),n}return}var a=r.indexOf("("),d=r.indexOf(")");if(a!==-1&&d+1===i){var s=r.substr(0,a),u=r.substr(a+1,d-(a+1)).split(","),p=1;switch(s){case"rgba":if(u.length!==4)return u.length===3?o(n,+u[0],+u[1],+u[2],1):o(n,0,0,0,1);p=g(u.pop());case"rgb":if(u.length>=3)return o(n,b(u[0]),b(u[1]),b(u[2]),u.length===3?p:g(u[3])),y(e,n),n;o(n,0,0,0,1);return;case"hsla":if(u.length!==4){o(n,0,0,0,1);return}return u[3]=g(u[3]),M(u,n),y(e,n),n;case"hsl":if(u.length!==3){o(n,0,0,0,1);return}return M(u,n),y(e,n),n;default:return}}o(n,0,0,0,1)}}f(c,"parse");function M(e,n){var t=(parseFloat(e[0])%360+360)%360/360,r=g(e[1]),i=g(e[2]),l=i<=.5?i*(r+1):i+r-i*r,a=i*2-l;return n=n||[],o(n,h(I(a,l,t+1/3)*255),h(I(a,l,t)*255),h(I(a,l,t-1/3)*255),1),e.length===4&&(n[3]=e[3]),n}f(M,"hsla2rgba");function N(e){if(e){var n=e[0]/255,t=e[1]/255,r=e[2]/255,i=Math.min(n,t,r),l=Math.max(n,t,r),a=l-i,d=(l+i)/2,s,u;if(a===0)s=0,u=0;else{d<.5?u=a/(l+i):u=a/(2-l-i);var p=((l-n)/6+a/2)/a,L=((l-t)/6+a/2)/a,F=((l-r)/6+a/2)/a;n===l?s=F-L:t===l?s=1/3+p-F:r===l&&(s=2/3+L-p),s<0&&(s+=1),s>1&&(s-=1)}var R=[s*360,u,d];return e[3]!=null&&R.push(e[3]),R}}f(N,"rgba2hsla");function C(e,n){var t=c(e);if(t){for(var r=0;r<3;r++)t[r]=t[r]*(1-n)|0,t[r]>255?t[r]=255:t[r]<0&&(t[r]=0);return m(t,t.length===4?"rgba":"rgb")}}f(C,"lift");function P(e,n,t){if(!(!(n&&n.length)||!(e>=0&&e<=1))){t=t||[];var r=e*(n.length-1),i=Math.floor(r),l=Math.ceil(r),a=n[i],d=n[l],s=r-i;return t[0]=h(v(a[0],d[0],s)),t[1]=h(v(a[1],d[1],s)),t[2]=h(v(a[2],d[2],s)),t[3]=k(v(a[3],d[3],s)),t}}f(P,"fastLerp");function S(e,n,t){if(!(!(n&&n.length)||!(e>=0&&e<=1))){var r=e*(n.length-1),i=Math.floor(r),l=Math.ceil(r),a=c(n[i]),d=c(n[l]),s=r-i,u=m([h(v(a[0],d[0],s)),h(v(a[1],d[1],s)),h(v(a[2],d[2],s)),k(v(a[3],d[3],s))],"rgba");return t?{color:u,leftIndex:i,rightIndex:l,value:r}:u}}f(S,"lerp");function U(e,n,t,r){var i=c(e);if(e)return i=N(i),n!=null&&(i[0]=G(n)),t!=null&&(i[1]=g(t)),r!=null&&(i[2]=g(r)),m(M(i),"rgba")}f(U,"modifyHSL");function D(e,n){var t=c(e);if(t&&n!=null)return t[3]=k(n),m(t,"rgba")}f(D,"modifyAlpha");function m(e,n){if(!(!e||!e.length)){var t=e[0]+","+e[1]+","+e[2];return(n==="rgba"||n==="hsva"||n==="hsla")&&(t+=","+e[3]),n+"("+t+")"}}f(m,"stringify");function E(e,n){var t=c(e);return t?(.299*t[0]+.587*t[1]+.114*t[2])*t[3]/255+(1-t[3])*n:0}f(E,"lum");var O=new T.default(100);function J(e){if(w.isString(e)){var n=O.get(e);return n||(n=C(e,-.1),O.put(e,n)),n}else if(w.isGradientObject(e)){var t=w.extend({},e);return t.colorStops=w.map(e.colorStops,function(r){return{offset:r.offset,color:C(r.color,-.1)}}),t}return e}f(J,"liftColor");exports.fastLerp=P;exports.lerp=S;exports.lift=C;exports.liftColor=J;exports.lum=E;exports.modifyAlpha=D;exports.modifyHSL=U;exports.parse=c;exports.stringify=m;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
import
|
|
4
|
-
import { isString as
|
|
5
|
-
var
|
|
1
|
+
var j = Object.defineProperty;
|
|
2
|
+
var f = (e, n) => j(e, "name", { value: n, configurable: !0 });
|
|
3
|
+
import O from "../../core/LRU/index.js";
|
|
4
|
+
import { isString as B, isGradientObject as G, extend as N, map as U } from "../../core/util/index.js";
|
|
5
|
+
var L = {
|
|
6
6
|
transparent: [0, 0, 0, 0],
|
|
7
7
|
aliceblue: [240, 248, 255, 1],
|
|
8
8
|
antiquewhite: [250, 235, 215, 1],
|
|
@@ -152,172 +152,214 @@ var I = {
|
|
|
152
152
|
yellow: [255, 255, 0, 1],
|
|
153
153
|
yellowgreen: [154, 205, 50, 1]
|
|
154
154
|
};
|
|
155
|
-
function
|
|
156
|
-
return
|
|
155
|
+
function h(e) {
|
|
156
|
+
return e = Math.round(e), e < 0 ? 0 : e > 255 ? 255 : e;
|
|
157
157
|
}
|
|
158
|
-
|
|
159
|
-
function
|
|
160
|
-
return
|
|
158
|
+
f(h, "clampCssByte");
|
|
159
|
+
function D(e) {
|
|
160
|
+
return e = Math.round(e), e < 0 ? 0 : e > 360 ? 360 : e;
|
|
161
161
|
}
|
|
162
|
-
|
|
163
|
-
function
|
|
164
|
-
|
|
165
|
-
return e.length && e.charAt(e.length - 1) === "%" ? o(parseFloat(e) / 100 * 255) : o(parseInt(e, 10));
|
|
162
|
+
f(D, "clampCssAngle");
|
|
163
|
+
function k(e) {
|
|
164
|
+
return e < 0 ? 0 : e > 1 ? 1 : e;
|
|
166
165
|
}
|
|
167
|
-
|
|
168
|
-
function
|
|
169
|
-
var
|
|
170
|
-
return
|
|
166
|
+
f(k, "clampCssFloat");
|
|
167
|
+
function x(e) {
|
|
168
|
+
var n = e;
|
|
169
|
+
return n.length && n.charAt(n.length - 1) === "%" ? h(parseFloat(n) / 100 * 255) : h(parseInt(n, 10));
|
|
171
170
|
}
|
|
172
|
-
|
|
173
|
-
function
|
|
174
|
-
|
|
171
|
+
f(x, "parseCssInt");
|
|
172
|
+
function g(e) {
|
|
173
|
+
var n = e;
|
|
174
|
+
return n.length && n.charAt(n.length - 1) === "%" ? k(parseFloat(n) / 100) : k(parseFloat(n));
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
function
|
|
178
|
-
return n + (e -
|
|
176
|
+
f(g, "parseCssFloat");
|
|
177
|
+
function b(e, n, t) {
|
|
178
|
+
return t < 0 ? t += 1 : t > 1 && (t -= 1), t * 6 < 1 ? e + (n - e) * t * 6 : t * 2 < 1 ? n : t * 3 < 2 ? e + (n - e) * (2 / 3 - t) * 6 : e;
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
function
|
|
182
|
-
return
|
|
180
|
+
f(b, "cssHueToRgb");
|
|
181
|
+
function v(e, n, t) {
|
|
182
|
+
return e + (n - e) * t;
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
function
|
|
186
|
-
return
|
|
184
|
+
f(v, "lerpNumber");
|
|
185
|
+
function o(e, n, t, r, i) {
|
|
186
|
+
return e[0] = n, e[1] = t, e[2] = r, e[3] = i, e;
|
|
187
187
|
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
k && x(k, e), k = L.put(n, k || e.slice());
|
|
188
|
+
f(o, "setRgba");
|
|
189
|
+
function I(e, n) {
|
|
190
|
+
return e[0] = n[0], e[1] = n[1], e[2] = n[2], e[3] = n[3], e;
|
|
192
191
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
192
|
+
f(I, "copyRgba");
|
|
193
|
+
var T = new O(20), m = null;
|
|
194
|
+
function c(e, n) {
|
|
195
|
+
m && I(m, n), m = T.put(e, m || n.slice());
|
|
196
|
+
}
|
|
197
|
+
f(c, "putToCache");
|
|
198
|
+
function p(e, n) {
|
|
199
|
+
if (e) {
|
|
200
|
+
n = n || [];
|
|
201
|
+
var t = T.get(e);
|
|
198
202
|
if (t)
|
|
199
|
-
return
|
|
200
|
-
|
|
201
|
-
var
|
|
202
|
-
if (
|
|
203
|
-
return
|
|
204
|
-
var
|
|
205
|
-
if (
|
|
206
|
-
if (
|
|
207
|
-
var
|
|
208
|
-
if (!(
|
|
209
|
-
|
|
203
|
+
return I(n, t);
|
|
204
|
+
e = e + "";
|
|
205
|
+
var r = e.replace(/ /g, "").toLowerCase();
|
|
206
|
+
if (r in L)
|
|
207
|
+
return I(n, L[r]), c(e, n), n;
|
|
208
|
+
var i = r.length;
|
|
209
|
+
if (r.charAt(0) === "#") {
|
|
210
|
+
if (i === 4 || i === 5) {
|
|
211
|
+
var l = parseInt(r.slice(1, 4), 16);
|
|
212
|
+
if (!(l >= 0 && l <= 4095)) {
|
|
213
|
+
o(n, 0, 0, 0, 1);
|
|
210
214
|
return;
|
|
211
215
|
}
|
|
212
|
-
return
|
|
213
|
-
} else if (
|
|
214
|
-
var
|
|
215
|
-
if (!(
|
|
216
|
-
|
|
216
|
+
return o(n, (l & 3840) >> 4 | (l & 3840) >> 8, l & 240 | (l & 240) >> 4, l & 15 | (l & 15) << 4, i === 5 ? parseInt(r.slice(4), 16) / 15 : 1), c(e, n), n;
|
|
217
|
+
} else if (i === 7 || i === 9) {
|
|
218
|
+
var l = parseInt(r.slice(1, 7), 16);
|
|
219
|
+
if (!(l >= 0 && l <= 16777215)) {
|
|
220
|
+
o(n, 0, 0, 0, 1);
|
|
217
221
|
return;
|
|
218
222
|
}
|
|
219
|
-
return
|
|
223
|
+
return o(n, (l & 16711680) >> 16, (l & 65280) >> 8, l & 255, i === 9 ? parseInt(r.slice(7), 16) / 255 : 1), c(e, n), n;
|
|
220
224
|
}
|
|
221
225
|
return;
|
|
222
226
|
}
|
|
223
|
-
var
|
|
224
|
-
if (
|
|
225
|
-
var
|
|
226
|
-
switch (
|
|
227
|
+
var a = r.indexOf("("), d = r.indexOf(")");
|
|
228
|
+
if (a !== -1 && d + 1 === i) {
|
|
229
|
+
var s = r.substr(0, a), u = r.substr(a + 1, d - (a + 1)).split(","), y = 1;
|
|
230
|
+
switch (s) {
|
|
227
231
|
case "rgba":
|
|
228
|
-
if (
|
|
229
|
-
return
|
|
230
|
-
|
|
232
|
+
if (u.length !== 4)
|
|
233
|
+
return u.length === 3 ? o(n, +u[0], +u[1], +u[2], 1) : o(n, 0, 0, 0, 1);
|
|
234
|
+
y = g(u.pop());
|
|
231
235
|
case "rgb":
|
|
232
|
-
if (
|
|
233
|
-
return
|
|
234
|
-
|
|
236
|
+
if (u.length >= 3)
|
|
237
|
+
return o(n, x(u[0]), x(u[1]), x(u[2]), u.length === 3 ? y : g(u[3])), c(e, n), n;
|
|
238
|
+
o(n, 0, 0, 0, 1);
|
|
235
239
|
return;
|
|
236
240
|
case "hsla":
|
|
237
|
-
if (
|
|
238
|
-
|
|
241
|
+
if (u.length !== 4) {
|
|
242
|
+
o(n, 0, 0, 0, 1);
|
|
239
243
|
return;
|
|
240
244
|
}
|
|
241
|
-
return
|
|
245
|
+
return u[3] = g(u[3]), M(u, n), c(e, n), n;
|
|
242
246
|
case "hsl":
|
|
243
|
-
if (
|
|
244
|
-
|
|
247
|
+
if (u.length !== 3) {
|
|
248
|
+
o(n, 0, 0, 0, 1);
|
|
245
249
|
return;
|
|
246
250
|
}
|
|
247
|
-
return
|
|
251
|
+
return M(u, n), c(e, n), n;
|
|
248
252
|
default:
|
|
249
253
|
return;
|
|
250
254
|
}
|
|
251
255
|
}
|
|
252
|
-
|
|
256
|
+
o(n, 0, 0, 0, 1);
|
|
253
257
|
}
|
|
254
258
|
}
|
|
255
|
-
|
|
256
|
-
function
|
|
257
|
-
var t = (parseFloat(
|
|
258
|
-
return
|
|
259
|
+
f(p, "parse");
|
|
260
|
+
function M(e, n) {
|
|
261
|
+
var t = (parseFloat(e[0]) % 360 + 360) % 360 / 360, r = g(e[1]), i = g(e[2]), l = i <= 0.5 ? i * (r + 1) : i + r - i * r, a = i * 2 - l;
|
|
262
|
+
return n = n || [], o(n, h(b(a, l, t + 1 / 3) * 255), h(b(a, l, t) * 255), h(b(a, l, t - 1 / 3) * 255), 1), e.length === 4 && (n[3] = e[3]), n;
|
|
263
|
+
}
|
|
264
|
+
f(M, "hsla2rgba");
|
|
265
|
+
function E(e) {
|
|
266
|
+
if (e) {
|
|
267
|
+
var n = e[0] / 255, t = e[1] / 255, r = e[2] / 255, i = Math.min(n, t, r), l = Math.max(n, t, r), a = l - i, d = (l + i) / 2, s, u;
|
|
268
|
+
if (a === 0)
|
|
269
|
+
s = 0, u = 0;
|
|
270
|
+
else {
|
|
271
|
+
d < 0.5 ? u = a / (l + i) : u = a / (2 - l - i);
|
|
272
|
+
var y = ((l - n) / 6 + a / 2) / a, q = ((l - t) / 6 + a / 2) / a, C = ((l - r) / 6 + a / 2) / a;
|
|
273
|
+
n === l ? s = C - q : t === l ? s = 1 / 3 + y - C : r === l && (s = 2 / 3 + q - y), s < 0 && (s += 1), s > 1 && (s -= 1);
|
|
274
|
+
}
|
|
275
|
+
var F = [s * 360, u, d];
|
|
276
|
+
return e[3] != null && F.push(e[3]), F;
|
|
277
|
+
}
|
|
259
278
|
}
|
|
260
|
-
|
|
261
|
-
function
|
|
262
|
-
var t = p(
|
|
279
|
+
f(E, "rgba2hsla");
|
|
280
|
+
function R(e, n) {
|
|
281
|
+
var t = p(e);
|
|
263
282
|
if (t) {
|
|
264
|
-
for (var
|
|
265
|
-
t[
|
|
266
|
-
return
|
|
283
|
+
for (var r = 0; r < 3; r++)
|
|
284
|
+
t[r] = t[r] * (1 - n) | 0, t[r] > 255 ? t[r] = 255 : t[r] < 0 && (t[r] = 0);
|
|
285
|
+
return w(t, t.length === 4 ? "rgba" : "rgb");
|
|
267
286
|
}
|
|
268
287
|
}
|
|
269
|
-
|
|
270
|
-
function
|
|
271
|
-
if (!(!(
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
288
|
+
f(R, "lift");
|
|
289
|
+
function Q(e, n, t) {
|
|
290
|
+
if (!(!(n && n.length) || !(e >= 0 && e <= 1))) {
|
|
291
|
+
t = t || [];
|
|
292
|
+
var r = e * (n.length - 1), i = Math.floor(r), l = Math.ceil(r), a = n[i], d = n[l], s = r - i;
|
|
293
|
+
return t[0] = h(v(a[0], d[0], s)), t[1] = h(v(a[1], d[1], s)), t[2] = h(v(a[2], d[2], s)), t[3] = k(v(a[3], d[3], s)), t;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
f(Q, "fastLerp");
|
|
297
|
+
function W(e, n, t) {
|
|
298
|
+
if (!(!(n && n.length) || !(e >= 0 && e <= 1))) {
|
|
299
|
+
var r = e * (n.length - 1), i = Math.floor(r), l = Math.ceil(r), a = p(n[i]), d = p(n[l]), s = r - i, u = w([
|
|
300
|
+
h(v(a[0], d[0], s)),
|
|
301
|
+
h(v(a[1], d[1], s)),
|
|
302
|
+
h(v(a[2], d[2], s)),
|
|
303
|
+
k(v(a[3], d[3], s))
|
|
277
304
|
], "rgba");
|
|
278
305
|
return t ? {
|
|
279
|
-
color:
|
|
280
|
-
leftIndex:
|
|
281
|
-
rightIndex:
|
|
282
|
-
value:
|
|
283
|
-
} :
|
|
306
|
+
color: u,
|
|
307
|
+
leftIndex: i,
|
|
308
|
+
rightIndex: l,
|
|
309
|
+
value: r
|
|
310
|
+
} : u;
|
|
284
311
|
}
|
|
285
312
|
}
|
|
286
|
-
|
|
287
|
-
function
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
return
|
|
313
|
+
f(W, "lerp");
|
|
314
|
+
function X(e, n, t, r) {
|
|
315
|
+
var i = p(e);
|
|
316
|
+
if (e)
|
|
317
|
+
return i = E(i), n != null && (i[0] = D(n)), t != null && (i[1] = g(t)), r != null && (i[2] = g(r)), w(M(i), "rgba");
|
|
318
|
+
}
|
|
319
|
+
f(X, "modifyHSL");
|
|
320
|
+
function Y(e, n) {
|
|
321
|
+
var t = p(e);
|
|
322
|
+
if (t && n != null)
|
|
323
|
+
return t[3] = k(n), w(t, "rgba");
|
|
324
|
+
}
|
|
325
|
+
f(Y, "modifyAlpha");
|
|
326
|
+
function w(e, n) {
|
|
327
|
+
if (!(!e || !e.length)) {
|
|
328
|
+
var t = e[0] + "," + e[1] + "," + e[2];
|
|
329
|
+
return (n === "rgba" || n === "hsva" || n === "hsla") && (t += "," + e[3]), n + "(" + t + ")";
|
|
291
330
|
}
|
|
292
331
|
}
|
|
293
|
-
|
|
294
|
-
function
|
|
295
|
-
var t = p(
|
|
296
|
-
return t ? (0.299 * t[0] + 0.587 * t[1] + 0.114 * t[2]) * t[3] / 255 + (1 - t[3]) *
|
|
332
|
+
f(w, "stringify");
|
|
333
|
+
function Z(e, n) {
|
|
334
|
+
var t = p(e);
|
|
335
|
+
return t ? (0.299 * t[0] + 0.587 * t[1] + 0.114 * t[2]) * t[3] / 255 + (1 - t[3]) * n : 0;
|
|
297
336
|
}
|
|
298
|
-
|
|
299
|
-
var
|
|
300
|
-
function
|
|
301
|
-
if (
|
|
302
|
-
var
|
|
303
|
-
return
|
|
304
|
-
} else if (
|
|
305
|
-
var t =
|
|
306
|
-
return t.colorStops =
|
|
337
|
+
f(Z, "lum");
|
|
338
|
+
var H = new O(100);
|
|
339
|
+
function _(e) {
|
|
340
|
+
if (B(e)) {
|
|
341
|
+
var n = H.get(e);
|
|
342
|
+
return n || (n = R(e, -0.1), H.put(e, n)), n;
|
|
343
|
+
} else if (G(e)) {
|
|
344
|
+
var t = N({}, e);
|
|
345
|
+
return t.colorStops = U(e.colorStops, function(r) {
|
|
307
346
|
return {
|
|
308
|
-
offset:
|
|
309
|
-
color:
|
|
347
|
+
offset: r.offset,
|
|
348
|
+
color: R(r.color, -0.1)
|
|
310
349
|
};
|
|
311
350
|
}), t;
|
|
312
351
|
}
|
|
313
|
-
return
|
|
352
|
+
return e;
|
|
314
353
|
}
|
|
315
|
-
|
|
354
|
+
f(_, "liftColor");
|
|
316
355
|
export {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
356
|
+
Q as fastLerp,
|
|
357
|
+
W as lerp,
|
|
358
|
+
R as lift,
|
|
359
|
+
_ as liftColor,
|
|
360
|
+
Z as lum,
|
|
361
|
+
Y as modifyAlpha,
|
|
362
|
+
X as modifyHSL,
|
|
321
363
|
p as parse,
|
|
322
|
-
|
|
364
|
+
w as stringify
|
|
323
365
|
};
|
package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js.br
CHANGED
|
Binary file
|
package/lib/node_modules/.pnpm/zrender@5.6.1/node_modules/zrender/lib/tool/color/index.js.gz
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-6ec1e636"]]);exports.default=u;
|