rapid-spreadjs 1.0.85 → 1.0.86
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 +9 -2
- 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 +9 -2
- 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.cjs.js
CHANGED
|
@@ -8597,8 +8597,9 @@ const EChartsUtils = {
|
|
|
8597
8597
|
* @param sheet 工作表对象
|
|
8598
8598
|
* @param config 折线配置
|
|
8599
8599
|
* @param isHideChart 是否隐藏图表
|
|
8600
|
+
* @param isConsoleData 是否输出各个数据
|
|
8600
8601
|
*/
|
|
8601
|
-
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) {
|
|
8602
|
+
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) {
|
|
8602
8603
|
if (config.chartIdStr && config.chartIdStr.length > 0) {
|
|
8603
8604
|
config.chartId = config.chartIdStr;
|
|
8604
8605
|
}
|
|
@@ -8686,8 +8687,9 @@ const EChartsUtils = {
|
|
|
8686
8687
|
* @param sheet 工作表对象
|
|
8687
8688
|
* @param config 图表配置
|
|
8688
8689
|
* @param isHideChart 是否隐藏图表
|
|
8690
|
+
* @param isConsoleData 是否输出各个数据
|
|
8689
8691
|
*/
|
|
8690
|
-
initChart: (spread, sheet, config, isHideChart = false) => {
|
|
8692
|
+
initChart: (spread, sheet, config, isHideChart = false, isConsoleData = false) => {
|
|
8691
8693
|
// 此时可能ECharts所在的div还没有渲染(如浮动元素还没有在可视区域的时候是不会创建的)
|
|
8692
8694
|
if (document.getElementById(config.chartId + '_ec') == null) {
|
|
8693
8695
|
return null;
|
|
@@ -8755,6 +8757,11 @@ const EChartsUtils = {
|
|
|
8755
8757
|
useDirtyRect: false,
|
|
8756
8758
|
});
|
|
8757
8759
|
}
|
|
8760
|
+
if (isConsoleData) {
|
|
8761
|
+
console.log('config:', config);
|
|
8762
|
+
console.log('xDataArr:', xDataArr);
|
|
8763
|
+
console.log('yDataArr:', yDataArr);
|
|
8764
|
+
}
|
|
8758
8765
|
let option;
|
|
8759
8766
|
if (config.chartType == 10) {
|
|
8760
8767
|
option = EChartsUtilsAll.chart10(config, xDataArr, yDataArr, sheet);
|