rapid-spreadjs 1.0.85 → 1.0.87
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/dist/index.cjs.js +10 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs.min.js +1 -1
- package/dist/index.cjs.min.js.map +1 -1
- package/dist/index.esm.js +10 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.min.js +1 -1
- package/dist/index.esm.min.js.map +1 -1
- package/dist/utils/echarts.d.ts +4 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -8575,8 +8575,9 @@ const EChartsUtils = {
|
|
|
8575
8575
|
* @param sheet 工作表对象
|
|
8576
8576
|
* @param config 折线配置
|
|
8577
8577
|
* @param isHideChart 是否隐藏图表
|
|
8578
|
+
* @param isConsoleData 是否输出各个数据
|
|
8578
8579
|
*/
|
|
8579
|
-
create: (GC_1, spread_1, sheet_1, config_1, ...args_1) => __awaiter(void 0, [GC_1, spread_1, sheet_1, config_1, ...args_1], void 0, function* (GC, spread, sheet, config, isHideChart = false) {
|
|
8580
|
+
create: (GC_1, spread_1, sheet_1, config_1, ...args_1) => __awaiter(void 0, [GC_1, spread_1, sheet_1, config_1, ...args_1], void 0, function* (GC, spread, sheet, config, isHideChart = false, isConsoleData = false) {
|
|
8580
8581
|
if (config.chartIdStr && config.chartIdStr.length > 0) {
|
|
8581
8582
|
config.chartId = config.chartIdStr;
|
|
8582
8583
|
}
|
|
@@ -8647,7 +8648,7 @@ const EChartsUtils = {
|
|
|
8647
8648
|
return new Promise((resolve, reject) => {
|
|
8648
8649
|
setTimeout(() => {
|
|
8649
8650
|
// 初始化图表并获取ECharts对象
|
|
8650
|
-
resolve({ ecObj: EChartsUtils.initChart(spread, sheet, config, isHideChart) });
|
|
8651
|
+
resolve({ ecObj: EChartsUtils.initChart(spread, sheet, config, isHideChart, isConsoleData) });
|
|
8651
8652
|
}, 10);
|
|
8652
8653
|
});
|
|
8653
8654
|
};
|
|
@@ -8664,8 +8665,9 @@ const EChartsUtils = {
|
|
|
8664
8665
|
* @param sheet 工作表对象
|
|
8665
8666
|
* @param config 图表配置
|
|
8666
8667
|
* @param isHideChart 是否隐藏图表
|
|
8668
|
+
* @param isConsoleData 是否输出各个数据
|
|
8667
8669
|
*/
|
|
8668
|
-
initChart: (spread, sheet, config, isHideChart = false) => {
|
|
8670
|
+
initChart: (spread, sheet, config, isHideChart = false, isConsoleData = false) => {
|
|
8669
8671
|
// 此时可能ECharts所在的div还没有渲染(如浮动元素还没有在可视区域的时候是不会创建的)
|
|
8670
8672
|
if (document.getElementById(config.chartId + '_ec') == null) {
|
|
8671
8673
|
return null;
|
|
@@ -8733,6 +8735,11 @@ const EChartsUtils = {
|
|
|
8733
8735
|
useDirtyRect: false,
|
|
8734
8736
|
});
|
|
8735
8737
|
}
|
|
8738
|
+
if (isConsoleData) {
|
|
8739
|
+
console.log('config:', config);
|
|
8740
|
+
console.log('xDataArr:', xDataArr);
|
|
8741
|
+
console.log('yDataArr:', yDataArr);
|
|
8742
|
+
}
|
|
8736
8743
|
let option;
|
|
8737
8744
|
if (config.chartType == 10) {
|
|
8738
8745
|
option = EChartsUtilsAll.chart10(config, xDataArr, yDataArr, sheet);
|