zzz-pc-view 0.0.103 → 0.0.104
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zzz-pc-view",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.104",
|
|
4
4
|
"main": "src/index.umd.js",
|
|
5
5
|
"module": "src/index.es.js",
|
|
6
6
|
"types": "src/index.d.ts",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@types/crypto-js": "^4.2.2",
|
|
21
21
|
"qs": "^6.13.0",
|
|
22
22
|
"@types/qs": "^6.9.17",
|
|
23
|
-
"echarts": "^5.
|
|
23
|
+
"echarts": "^5.6.0",
|
|
24
24
|
"color-hash": "^2.0.2",
|
|
25
25
|
"@types/sortablejs": "^1.15.8",
|
|
26
26
|
"sortablejs": "^1.15.6",
|
package/src/index.es.js
CHANGED
|
@@ -1853,7 +1853,7 @@ const useInterval = (callback, ms) => {
|
|
|
1853
1853
|
};
|
|
1854
1854
|
const clearTimer = () => {
|
|
1855
1855
|
if (timer !== void 0) {
|
|
1856
|
-
|
|
1856
|
+
clearTimeout(timer);
|
|
1857
1857
|
timer = void 0;
|
|
1858
1858
|
}
|
|
1859
1859
|
};
|
|
@@ -1882,6 +1882,7 @@ const useHttpRequestInterval = (request, ms) => {
|
|
|
1882
1882
|
httpRequestPromise.catch((error) => {
|
|
1883
1883
|
if (error.code === ABORTED_CODE) {
|
|
1884
1884
|
isAbort = true;
|
|
1885
|
+
return;
|
|
1885
1886
|
}
|
|
1886
1887
|
return Promise.reject(error);
|
|
1887
1888
|
}).finally(() => {
|
|
@@ -2919,7 +2920,7 @@ const canvasUtils = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
2919
2920
|
const DATA_ZOOM_SIZE = 37;
|
|
2920
2921
|
const NUMBER_FONT_FAMILY = "Times New Roman";
|
|
2921
2922
|
const CN_TEXT_FONT_FAMILY = "宋体,SimSun,simsun";
|
|
2922
|
-
const EN_TEXT_FONT_FAMILY = "
|
|
2923
|
+
const EN_TEXT_FONT_FAMILY = "Times New Roman";
|
|
2923
2924
|
const useChartStyleConfig = (param) => {
|
|
2924
2925
|
const axisGap = param.axisGap ?? 6;
|
|
2925
2926
|
return {
|
|
@@ -3192,7 +3193,7 @@ const setLegend = (chartOption, dimensions, chartStyleConfig, legendSelected, to
|
|
|
3192
3193
|
(legendSize2, dimension) => {
|
|
3193
3194
|
const width = legendPaddings[1] + legendItemWidth + legendItemGap + measureText(dimension.name, legendFontSize, legendFontFamily).width;
|
|
3194
3195
|
legendSize2[0] += width;
|
|
3195
|
-
if (legendSize2[0] > legendWidth) {
|
|
3196
|
+
if (legendSize2[0] - legendPaddings[1] > legendWidth) {
|
|
3196
3197
|
legendSize2[1]++;
|
|
3197
3198
|
legendSize2[0] = width;
|
|
3198
3199
|
}
|