@rowsncolumns/charts 28.1.16 → 28.1.18
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/Readme.md +18 -1
- package/dist/cjs/basic-chart/basic-chart.d.ts +1 -1
- package/dist/cjs/basic-chart/basic-chart.d.ts.map +1 -1
- package/dist/cjs/basic-chart/basic-chart.js +204 -172
- package/dist/cjs/components/editors/chart-editor.d.ts +7 -1
- package/dist/cjs/components/editors/chart-editor.d.ts.map +1 -1
- package/dist/cjs/components/editors/chart-editor.js +3 -2
- package/dist/cjs/components/editors/fields/text-format-fields.d.ts +5 -3
- package/dist/cjs/components/editors/fields/text-format-fields.d.ts.map +1 -1
- package/dist/cjs/components/editors/fields/text-format-fields.js +6 -6
- package/dist/cjs/config.d.ts +10 -0
- package/dist/cjs/config.d.ts.map +1 -1
- package/dist/cjs/config.js +45 -10
- package/dist/cjs/plotly/basic-chart/basic-chart.d.ts.map +1 -1
- package/dist/cjs/plotly/basic-chart/basic-chart.js +43 -4
- package/dist/cjs/types.d.ts +10 -0
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/cjs/utils/echarts-gl-loader.d.ts +6 -0
- package/dist/cjs/utils/echarts-gl-loader.d.ts.map +1 -1
- package/dist/cjs/utils/echarts-gl-loader.js +42 -1
- package/dist/cjs/utils/overrides.d.ts +20 -0
- package/dist/cjs/utils/overrides.d.ts.map +1 -1
- package/dist/cjs/utils/overrides.js +28 -7
- package/dist/cjs/utils/three-d.d.ts +12 -1
- package/dist/cjs/utils/three-d.d.ts.map +1 -1
- package/dist/cjs/utils/three-d.js +4 -1
- package/dist/esm/basic-chart/basic-chart.d.ts +1 -1
- package/dist/esm/basic-chart/basic-chart.d.ts.map +1 -1
- package/dist/esm/basic-chart/basic-chart.js +79 -56
- package/dist/esm/components/editors/chart-editor.d.ts +7 -1
- package/dist/esm/components/editors/chart-editor.d.ts.map +1 -1
- package/dist/esm/components/editors/chart-editor.js +4 -3
- package/dist/esm/components/editors/fields/text-format-fields.d.ts +5 -3
- package/dist/esm/components/editors/fields/text-format-fields.d.ts.map +1 -1
- package/dist/esm/components/editors/fields/text-format-fields.js +6 -6
- package/dist/esm/config.d.ts +10 -0
- package/dist/esm/config.d.ts.map +1 -1
- package/dist/esm/config.js +20 -0
- package/dist/esm/plotly/basic-chart/basic-chart.d.ts.map +1 -1
- package/dist/esm/plotly/basic-chart/basic-chart.js +44 -2
- package/dist/esm/types.d.ts +10 -0
- package/dist/esm/types.d.ts.map +1 -1
- package/dist/esm/utils/echarts-gl-loader.d.ts +6 -0
- package/dist/esm/utils/echarts-gl-loader.d.ts.map +1 -1
- package/dist/esm/utils/echarts-gl-loader.js +40 -0
- package/dist/esm/utils/overrides.d.ts +20 -0
- package/dist/esm/utils/overrides.d.ts.map +1 -1
- package/dist/esm/utils/overrides.js +22 -0
- package/dist/esm/utils/three-d.d.ts +12 -1
- package/dist/esm/utils/three-d.d.ts.map +1 -1
- package/dist/esm/utils/three-d.js +4 -1
- package/package.json +2 -2
package/Readme.md
CHANGED
|
@@ -60,6 +60,7 @@ const App = () => {
|
|
|
60
60
|
sheetObserver={sheetObserver}
|
|
61
61
|
onRequestEdit={onRequestEditChart}
|
|
62
62
|
onRequestCalculate={onRequestCalculate}
|
|
63
|
+
enable3D={enable3D}
|
|
63
64
|
/>
|
|
64
65
|
)}
|
|
65
66
|
>
|
|
@@ -73,9 +74,25 @@ const App = () => {
|
|
|
73
74
|
columnCount={columnCount}
|
|
74
75
|
getSheetName={getSheetName}
|
|
75
76
|
getSheetId={getSheetId}
|
|
77
|
+
enable3D={enable3D}
|
|
76
78
|
/>
|
|
77
79
|
</ChartEditorDialog>
|
|
78
80
|
</>
|
|
79
81
|
)
|
|
80
82
|
}
|
|
81
|
-
```
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### 3-D charts and Content-Security-Policy
|
|
86
|
+
|
|
87
|
+
`BAR_3D` / `LINE_3D` / `AREA_3D` / `SURFACE_3D` specs (Excel's 3-D chart
|
|
88
|
+
classes, kept on the spec as `sourceChartType`) render through `echarts-gl`,
|
|
89
|
+
which is lazy-loaded the first time one is drawn. `echarts-gl` needs WebGL
|
|
90
|
+
and — through `claygl`'s `new Function` — a page whose `script-src` allows
|
|
91
|
+
`'unsafe-eval'`. When either is missing the chart renders as its 2-D
|
|
92
|
+
fallback instead.
|
|
93
|
+
|
|
94
|
+
Pass `enable3D={false}` to both `ChartComponent` and `ChartEditor` to opt out
|
|
95
|
+
up front: `echarts-gl` is never loaded, every 3-D spec stays on its 2-D
|
|
96
|
+
fallback and the Chart editor hides the 3-D presets. The spec's
|
|
97
|
+
`sourceChartType` is left as authored, so an imported 3-D chart still exports
|
|
98
|
+
as one.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import type { EChartComponentProps } from "../types";
|
|
3
3
|
export type BasicChartProps = EChartComponentProps;
|
|
4
|
-
export declare const BasicChart: ({ width, height, chart, theme, isDarkMode, sheetId, readonly, getDomainValuesFromRange, getSeriesValuesFromRange, getFormattingFromRange, onDeleteChart, onUpdateChart, onRequestEdit, onRequestCalculate, isSelected, fieldButtons, locale, }: BasicChartProps) => React.JSX.Element;
|
|
4
|
+
export declare const BasicChart: ({ width, height, chart, theme, isDarkMode, sheetId, readonly, getDomainValuesFromRange, getSeriesValuesFromRange, getFormattingFromRange, onDeleteChart, onUpdateChart, onRequestEdit, onRequestCalculate, isSelected, fieldButtons, locale, enable3D, }: BasicChartProps) => React.JSX.Element;
|
|
5
5
|
//# sourceMappingURL=basic-chart.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic-chart.d.ts","sourceRoot":"","sources":["../../../basic-chart/basic-chart.tsx"],"names":[],"mappings":"AAkEA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"basic-chart.d.ts","sourceRoot":"","sources":["../../../basic-chart/basic-chart.tsx"],"names":[],"mappings":"AAkEA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAyTrD,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAiGnD,eAAO,MAAM,UAAU,GAAI,0PAmBxB,eAAe,sBA2wHjB,CAAC"}
|