@rowsncolumns/charts 27.0.34 → 28.1.0

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.
Files changed (193) hide show
  1. package/dist/cjs/atoms/pivot-chart.atom.d.ts +14 -0
  2. package/dist/cjs/atoms/pivot-chart.atom.d.ts.map +1 -0
  3. package/dist/cjs/atoms/pivot-chart.atom.js +9 -0
  4. package/dist/cjs/basic-chart/basic-chart.d.ts +1 -1
  5. package/dist/cjs/basic-chart/basic-chart.d.ts.map +1 -1
  6. package/dist/cjs/basic-chart/basic-chart.js +863 -371
  7. package/dist/cjs/components/dialogs/pivot-chart-dialog.d.ts +39 -0
  8. package/dist/cjs/components/dialogs/pivot-chart-dialog.d.ts.map +1 -0
  9. package/dist/cjs/components/dialogs/pivot-chart-dialog.js +100 -0
  10. package/dist/cjs/components/editors/chart-editor.d.ts +13 -1
  11. package/dist/cjs/components/editors/chart-editor.d.ts.map +1 -1
  12. package/dist/cjs/components/editors/chart-editor.js +225 -59
  13. package/dist/cjs/config.d.ts.map +1 -1
  14. package/dist/cjs/config.js +149 -12
  15. package/dist/cjs/hooks/use-charts.d.ts +21 -6
  16. package/dist/cjs/hooks/use-charts.d.ts.map +1 -1
  17. package/dist/cjs/hooks/use-charts.js +13 -1
  18. package/dist/cjs/hooks/use-on-create-chart.d.ts.map +1 -1
  19. package/dist/cjs/hooks/use-on-create-chart.js +7 -1
  20. package/dist/cjs/hooks/use-on-move-chart-to-sheet.d.ts +12 -0
  21. package/dist/cjs/hooks/use-on-move-chart-to-sheet.d.ts.map +1 -0
  22. package/dist/cjs/hooks/use-on-move-chart-to-sheet.js +26 -0
  23. package/dist/cjs/hooks/use-on-move-chart.d.ts +1 -1
  24. package/dist/cjs/hooks/use-on-move-chart.d.ts.map +1 -1
  25. package/dist/cjs/hooks/use-on-move-chart.js +2 -2
  26. package/dist/cjs/hooks/use-on-resize-chart.d.ts +1 -1
  27. package/dist/cjs/hooks/use-on-resize-chart.d.ts.map +1 -1
  28. package/dist/cjs/hooks/use-on-resize-chart.js +2 -2
  29. package/dist/cjs/index.d.ts +11 -0
  30. package/dist/cjs/index.d.ts.map +1 -1
  31. package/dist/cjs/index.js +34 -1
  32. package/dist/cjs/interface/create-chart.d.ts.map +1 -1
  33. package/dist/cjs/interface/create-chart.js +33 -42
  34. package/dist/cjs/interface/delete-chart.d.ts.map +1 -1
  35. package/dist/cjs/interface/delete-chart.js +4 -0
  36. package/dist/cjs/interface/move-chart-to-sheet.d.ts +13 -0
  37. package/dist/cjs/interface/move-chart-to-sheet.d.ts.map +1 -0
  38. package/dist/cjs/interface/move-chart-to-sheet.js +136 -0
  39. package/dist/cjs/interface/move-chart.d.ts +2 -2
  40. package/dist/cjs/interface/move-chart.d.ts.map +1 -1
  41. package/dist/cjs/interface/move-chart.js +7 -1
  42. package/dist/cjs/interface/resize-chart.d.ts +2 -2
  43. package/dist/cjs/interface/resize-chart.d.ts.map +1 -1
  44. package/dist/cjs/interface/resize-chart.js +7 -1
  45. package/dist/cjs/interface/update-chart.d.ts.map +1 -1
  46. package/dist/cjs/interface/update-chart.js +4 -0
  47. package/dist/cjs/plotly/basic-chart/basic-chart.d.ts +1 -1
  48. package/dist/cjs/plotly/basic-chart/basic-chart.d.ts.map +1 -1
  49. package/dist/cjs/plotly/basic-chart/basic-chart.js +970 -585
  50. package/dist/cjs/plotly/basic-chart/helpers.d.ts.map +1 -1
  51. package/dist/cjs/plotly/basic-chart/helpers.js +3 -0
  52. package/dist/cjs/tsconfig.cjs.tsbuildinfo +1 -1
  53. package/dist/cjs/types.d.ts +7 -0
  54. package/dist/cjs/types.d.ts.map +1 -1
  55. package/dist/cjs/utils/axis-number-format.d.ts +69 -0
  56. package/dist/cjs/utils/axis-number-format.d.ts.map +1 -0
  57. package/dist/cjs/utils/axis-number-format.js +217 -0
  58. package/dist/cjs/utils/category-levels.d.ts +27 -0
  59. package/dist/cjs/utils/category-levels.d.ts.map +1 -0
  60. package/dist/cjs/utils/category-levels.js +80 -0
  61. package/dist/cjs/utils/chart-image.d.ts +8 -0
  62. package/dist/cjs/utils/chart-image.d.ts.map +1 -0
  63. package/dist/cjs/utils/chart-image.js +28 -0
  64. package/dist/cjs/utils/chart-orientation.d.ts +67 -0
  65. package/dist/cjs/utils/chart-orientation.d.ts.map +1 -0
  66. package/dist/cjs/utils/chart-orientation.js +265 -0
  67. package/dist/cjs/utils/chart-spec-utils.d.ts +3 -0
  68. package/dist/cjs/utils/chart-spec-utils.d.ts.map +1 -1
  69. package/dist/cjs/utils/chart-spec-utils.js +12 -4
  70. package/dist/cjs/utils/chart-styles.d.ts +75 -0
  71. package/dist/cjs/utils/chart-styles.d.ts.map +1 -0
  72. package/dist/cjs/utils/chart-styles.js +283 -0
  73. package/dist/cjs/utils/empty-cells.d.ts +30 -0
  74. package/dist/cjs/utils/empty-cells.d.ts.map +1 -0
  75. package/dist/cjs/utils/empty-cells.js +91 -0
  76. package/dist/cjs/utils/overrides.d.ts +6 -1
  77. package/dist/cjs/utils/overrides.d.ts.map +1 -1
  78. package/dist/cjs/utils/overrides.js +19 -7
  79. package/dist/cjs/utils/pie-explosion.d.ts +30 -0
  80. package/dist/cjs/utils/pie-explosion.d.ts.map +1 -0
  81. package/dist/cjs/utils/pie-explosion.js +55 -0
  82. package/dist/cjs/utils/plotly-click.d.ts +34 -0
  83. package/dist/cjs/utils/plotly-click.d.ts.map +1 -0
  84. package/dist/cjs/utils/plotly-click.js +49 -0
  85. package/dist/cjs/utils/plotly-surface.d.ts +14 -0
  86. package/dist/cjs/utils/plotly-surface.d.ts.map +1 -0
  87. package/dist/cjs/utils/plotly-surface.js +64 -0
  88. package/dist/cjs/utils/plotly-title.d.ts +12 -0
  89. package/dist/cjs/utils/plotly-title.d.ts.map +1 -0
  90. package/dist/cjs/utils/plotly-title.js +24 -0
  91. package/dist/cjs/utils/series-click.d.ts +39 -0
  92. package/dist/cjs/utils/series-click.d.ts.map +1 -0
  93. package/dist/cjs/utils/series-click.js +75 -0
  94. package/dist/cjs/utils/three-d.d.ts +17 -1
  95. package/dist/cjs/utils/three-d.d.ts.map +1 -1
  96. package/dist/cjs/utils/three-d.js +32 -4
  97. package/dist/esm/atoms/pivot-chart.atom.d.ts +14 -0
  98. package/dist/esm/atoms/pivot-chart.atom.d.ts.map +1 -0
  99. package/dist/esm/atoms/pivot-chart.atom.js +4 -0
  100. package/dist/esm/basic-chart/basic-chart.d.ts +1 -1
  101. package/dist/esm/basic-chart/basic-chart.d.ts.map +1 -1
  102. package/dist/esm/basic-chart/basic-chart.js +680 -178
  103. package/dist/esm/components/dialogs/pivot-chart-dialog.d.ts +39 -0
  104. package/dist/esm/components/dialogs/pivot-chart-dialog.d.ts.map +1 -0
  105. package/dist/esm/components/dialogs/pivot-chart-dialog.js +89 -0
  106. package/dist/esm/components/editors/chart-editor.d.ts +13 -1
  107. package/dist/esm/components/editors/chart-editor.d.ts.map +1 -1
  108. package/dist/esm/components/editors/chart-editor.js +164 -20
  109. package/dist/esm/config.d.ts.map +1 -1
  110. package/dist/esm/config.js +149 -12
  111. package/dist/esm/hooks/use-charts.d.ts +21 -6
  112. package/dist/esm/hooks/use-charts.d.ts.map +1 -1
  113. package/dist/esm/hooks/use-charts.js +13 -1
  114. package/dist/esm/hooks/use-on-create-chart.d.ts.map +1 -1
  115. package/dist/esm/hooks/use-on-create-chart.js +7 -1
  116. package/dist/esm/hooks/use-on-move-chart-to-sheet.d.ts +12 -0
  117. package/dist/esm/hooks/use-on-move-chart-to-sheet.d.ts.map +1 -0
  118. package/dist/esm/hooks/use-on-move-chart-to-sheet.js +19 -0
  119. package/dist/esm/hooks/use-on-move-chart.d.ts +1 -1
  120. package/dist/esm/hooks/use-on-move-chart.d.ts.map +1 -1
  121. package/dist/esm/hooks/use-on-move-chart.js +2 -2
  122. package/dist/esm/hooks/use-on-resize-chart.d.ts +1 -1
  123. package/dist/esm/hooks/use-on-resize-chart.d.ts.map +1 -1
  124. package/dist/esm/hooks/use-on-resize-chart.js +2 -2
  125. package/dist/esm/index.d.ts +11 -0
  126. package/dist/esm/index.d.ts.map +1 -1
  127. package/dist/esm/index.js +14 -0
  128. package/dist/esm/interface/create-chart.d.ts.map +1 -1
  129. package/dist/esm/interface/create-chart.js +36 -58
  130. package/dist/esm/interface/delete-chart.d.ts.map +1 -1
  131. package/dist/esm/interface/delete-chart.js +4 -0
  132. package/dist/esm/interface/move-chart-to-sheet.d.ts +13 -0
  133. package/dist/esm/interface/move-chart-to-sheet.d.ts.map +1 -0
  134. package/dist/esm/interface/move-chart-to-sheet.js +126 -0
  135. package/dist/esm/interface/move-chart.d.ts +2 -2
  136. package/dist/esm/interface/move-chart.d.ts.map +1 -1
  137. package/dist/esm/interface/move-chart.js +7 -1
  138. package/dist/esm/interface/resize-chart.d.ts +2 -2
  139. package/dist/esm/interface/resize-chart.d.ts.map +1 -1
  140. package/dist/esm/interface/resize-chart.js +7 -1
  141. package/dist/esm/interface/update-chart.d.ts.map +1 -1
  142. package/dist/esm/interface/update-chart.js +4 -0
  143. package/dist/esm/plotly/basic-chart/basic-chart.d.ts +1 -1
  144. package/dist/esm/plotly/basic-chart/basic-chart.d.ts.map +1 -1
  145. package/dist/esm/plotly/basic-chart/basic-chart.js +858 -463
  146. package/dist/esm/plotly/basic-chart/helpers.d.ts.map +1 -1
  147. package/dist/esm/plotly/basic-chart/helpers.js +3 -0
  148. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  149. package/dist/esm/types.d.ts +7 -0
  150. package/dist/esm/types.d.ts.map +1 -1
  151. package/dist/esm/utils/axis-number-format.d.ts +69 -0
  152. package/dist/esm/utils/axis-number-format.d.ts.map +1 -0
  153. package/dist/esm/utils/axis-number-format.js +170 -0
  154. package/dist/esm/utils/category-levels.d.ts +27 -0
  155. package/dist/esm/utils/category-levels.d.ts.map +1 -0
  156. package/dist/esm/utils/category-levels.js +65 -0
  157. package/dist/esm/utils/chart-image.d.ts +8 -0
  158. package/dist/esm/utils/chart-image.d.ts.map +1 -0
  159. package/dist/esm/utils/chart-image.js +24 -0
  160. package/dist/esm/utils/chart-orientation.d.ts +67 -0
  161. package/dist/esm/utils/chart-orientation.d.ts.map +1 -0
  162. package/dist/esm/utils/chart-orientation.js +234 -0
  163. package/dist/esm/utils/chart-spec-utils.d.ts +3 -0
  164. package/dist/esm/utils/chart-spec-utils.d.ts.map +1 -1
  165. package/dist/esm/utils/chart-spec-utils.js +10 -2
  166. package/dist/esm/utils/chart-styles.d.ts +75 -0
  167. package/dist/esm/utils/chart-styles.d.ts.map +1 -0
  168. package/dist/esm/utils/chart-styles.js +357 -0
  169. package/dist/esm/utils/empty-cells.d.ts +30 -0
  170. package/dist/esm/utils/empty-cells.d.ts.map +1 -0
  171. package/dist/esm/utils/empty-cells.js +67 -0
  172. package/dist/esm/utils/overrides.d.ts +6 -1
  173. package/dist/esm/utils/overrides.d.ts.map +1 -1
  174. package/dist/esm/utils/overrides.js +14 -2
  175. package/dist/esm/utils/pie-explosion.d.ts +30 -0
  176. package/dist/esm/utils/pie-explosion.d.ts.map +1 -0
  177. package/dist/esm/utils/pie-explosion.js +43 -0
  178. package/dist/esm/utils/plotly-click.d.ts +34 -0
  179. package/dist/esm/utils/plotly-click.d.ts.map +1 -0
  180. package/dist/esm/utils/plotly-click.js +44 -0
  181. package/dist/esm/utils/plotly-surface.d.ts +14 -0
  182. package/dist/esm/utils/plotly-surface.d.ts.map +1 -0
  183. package/dist/esm/utils/plotly-surface.js +45 -0
  184. package/dist/esm/utils/plotly-title.d.ts +12 -0
  185. package/dist/esm/utils/plotly-title.d.ts.map +1 -0
  186. package/dist/esm/utils/plotly-title.js +20 -0
  187. package/dist/esm/utils/series-click.d.ts +39 -0
  188. package/dist/esm/utils/series-click.d.ts.map +1 -0
  189. package/dist/esm/utils/series-click.js +66 -0
  190. package/dist/esm/utils/three-d.d.ts +17 -1
  191. package/dist/esm/utils/three-d.d.ts.map +1 -1
  192. package/dist/esm/utils/three-d.js +29 -3
  193. package/package.json +16 -12
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ /**
3
+ * plotly click → chart selection (rowsncolumns/spreadsheet#668 C-37 / C-38).
4
+ *
5
+ * The plotly renderer is interactive with `layout.dragmode: false`: plotly
6
+ * reports `plotly_click` but never starts a drag, so a body drag reaches
7
+ * the embed's move handler instead. plotly does not track that drag either
8
+ * and treats the mouseup as a click, so the caller compares the click's
9
+ * pointer position with where the pointer went down.
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.resolvePlotlyClickSelection = exports.wasDragged = exports.CLICK_DRAG_TOLERANCE_PX = void 0;
13
+ /** Pointer travel (px) beyond which a mouseup is a drag, not a click. */
14
+ exports.CLICK_DRAG_TOLERANCE_PX = 3;
15
+ var wasDragged = function (pointerDown, clickEvent) {
16
+ if (!pointerDown || !clickEvent)
17
+ return false;
18
+ var clientX = clickEvent.clientX, clientY = clickEvent.clientY;
19
+ if (typeof clientX !== "number" || typeof clientY !== "number")
20
+ return false;
21
+ return (Math.abs(clientX - pointerDown.x) > exports.CLICK_DRAG_TOLERANCE_PX ||
22
+ Math.abs(clientY - pointerDown.y) > exports.CLICK_DRAG_TOLERANCE_PX);
23
+ };
24
+ exports.wasDragged = wasDragged;
25
+ /**
26
+ * The `spec.series` entry (and data point) a plotly click lands on. Traces
27
+ * tagged with `meta.rncSeriesIndex` resolve through the tag; untagged ones
28
+ * map by curve position while it fits; anything else is not a series.
29
+ */
30
+ var resolvePlotlyClickSelection = function (points, seriesCount) {
31
+ var _a;
32
+ var point = points === null || points === void 0 ? void 0 : points[0];
33
+ if (!point)
34
+ return undefined;
35
+ var meta = (_a = point.data) === null || _a === void 0 ? void 0 : _a.meta;
36
+ var seriesIndex = typeof (meta === null || meta === void 0 ? void 0 : meta.rncSeriesIndex) === "number"
37
+ ? meta.rncSeriesIndex
38
+ : point.curveNumber < seriesCount
39
+ ? point.curveNumber
40
+ : undefined;
41
+ if (seriesIndex === undefined || seriesIndex >= seriesCount) {
42
+ return undefined;
43
+ }
44
+ var dataIndex = point.pointNumber;
45
+ return typeof dataIndex === "number" && dataIndex >= 0
46
+ ? { seriesIndex: seriesIndex, dataIndex: dataIndex }
47
+ : { seriesIndex: seriesIndex };
48
+ };
49
+ exports.resolvePlotlyClickSelection = resolvePlotlyClickSelection;
@@ -0,0 +1,14 @@
1
+ /**
2
+ * plotly traces for Excel's Surface family (rowsncolumns/spreadsheet#668
3
+ * C-33): `surface3DChart` (3-D Surface) is a WebGL `surface`, `surfaceChart`
4
+ * (Contour) is the same height grid seen from above as an SVG `contour`.
5
+ * Both take z as one row per series, one column per category.
6
+ */
7
+ import { type ThreeDSeriesInput } from "./three-d";
8
+ export type SurfaceToken = "SURFACE" | "SURFACE_3D";
9
+ /** plotly `colorscale` — the shared surface ramp spread over 0..1. */
10
+ export declare const surfaceColorscale: () => Array<[number, string]>;
11
+ /** The z matrix (series rows × category columns) plotly's grid traces take. */
12
+ export declare const buildSurfaceZ: (series: ThreeDSeriesInput[]) => number[][];
13
+ export declare const buildPlotlySurfaceTrace: (token: SurfaceToken, series: ThreeDSeriesInput[], categories: string[], seriesNames: string[], seriesNumberFormats?: (string | undefined)[]) => Record<string, unknown>;
14
+ //# sourceMappingURL=plotly-surface.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plotly-surface.d.ts","sourceRoot":"","sources":["../../../utils/plotly-surface.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAIL,KAAK,iBAAiB,EACvB,MAAM,WAAW,CAAC;AAEnB,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,YAAY,CAAC;AAEpD,sEAAsE;AACtE,eAAO,MAAM,iBAAiB,QAAO,KAAK,CAAC,CAAC,MAAM,EAAE,MAAM,CAAC,CAIvD,CAAC;AAEL,+EAA+E;AAC/E,eAAO,MAAM,aAAa,GAAI,QAAQ,iBAAiB,EAAE,KAAG,MAAM,EAAE,EASnE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,OAAO,YAAY,EACnB,QAAQ,iBAAiB,EAAE,EAC3B,YAAY,MAAM,EAAE,EACpB,aAAa,MAAM,EAAE,EACrB,sBAAqB,CAAC,MAAM,GAAG,SAAS,CAAC,EAAO,KAC/C,MAAM,CAAC,MAAM,EAAE,OAAO,CAwBxB,CAAC"}
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /**
3
+ * plotly traces for Excel's Surface family (rowsncolumns/spreadsheet#668
4
+ * C-33): `surface3DChart` (3-D Surface) is a WebGL `surface`, `surfaceChart`
5
+ * (Contour) is the same height grid seen from above as an SVG `contour`.
6
+ * Both take z as one row per series, one column per category.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ exports.buildPlotlySurfaceTrace = exports.buildSurfaceZ = exports.surfaceColorscale = void 0;
10
+ var tslib_1 = require("tslib");
11
+ var axis_number_format_1 = require("./axis-number-format");
12
+ var three_d_1 = require("./three-d");
13
+ /** plotly `colorscale` — the shared surface ramp spread over 0..1. */
14
+ var surfaceColorscale = function () {
15
+ return three_d_1.SURFACE_COLOR_RAMP.map(function (color, index) { return [
16
+ index / Math.max(1, three_d_1.SURFACE_COLOR_RAMP.length - 1),
17
+ color,
18
+ ]; });
19
+ };
20
+ exports.surfaceColorscale = surfaceColorscale;
21
+ /** The z matrix (series rows × category columns) plotly's grid traces take. */
22
+ var buildSurfaceZ = function (series) {
23
+ var e_1, _a;
24
+ var categoryCount = (0, three_d_1.getCategoryCount)(series);
25
+ var rows = series.map(function () {
26
+ return new Array(categoryCount).fill(0);
27
+ });
28
+ try {
29
+ for (var _b = tslib_1.__values((0, three_d_1.buildSurfaceData)(series)), _c = _b.next(); !_c.done; _c = _b.next()) {
30
+ var _d = tslib_1.__read(_c.value, 3), x = _d[0], y = _d[1], z = _d[2];
31
+ rows[y][x] = z;
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ return rows;
42
+ };
43
+ exports.buildSurfaceZ = buildSurfaceZ;
44
+ var buildPlotlySurfaceTrace = function (token, series, categories, seriesNames, seriesNumberFormats) {
45
+ if (seriesNumberFormats === void 0) { seriesNumberFormats = []; }
46
+ var z = (0, exports.buildSurfaceZ)(series);
47
+ // Hover text formats each cell with its series' own source cells.
48
+ var text = z.map(function (row, y) {
49
+ return row.map(function (value) { return (0, axis_number_format_1.formatAxisValue)(seriesNumberFormats[y], value); });
50
+ });
51
+ var shared = {
52
+ z: z,
53
+ x: categories,
54
+ y: seriesNames,
55
+ text: text,
56
+ colorscale: (0, exports.surfaceColorscale)(),
57
+ showscale: true,
58
+ hovertemplate: "%{y}<br>%{x}: %{text}<extra></extra>",
59
+ meta: { rncSeriesIndex: 0 },
60
+ };
61
+ return token === "SURFACE"
62
+ ? tslib_1.__assign(tslib_1.__assign({ type: "contour" }, shared), { contours: { coloring: "heatmap", showlines: true }, line: { width: 1 } }) : tslib_1.__assign({ type: "surface" }, shared);
63
+ };
64
+ exports.buildPlotlySurfaceTrace = buildPlotlySurfaceTrace;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * The chart title text for a plotly layout. Plotly's `layout.title.font`
3
+ * carries family / size / colour but no weight or style, while the title
4
+ * text itself is rendered as pseudo-HTML — so an authored bold / italic
5
+ * (`titleTextFormat`, from OOXML `<a:rPr b="1" i="1">`) is emitted as `<b>`
6
+ * / `<i>` tags around the text, which plotly renders (#668 C-51).
7
+ */
8
+ export declare const plotlyTitleText: (title: string | null | undefined, format?: {
9
+ bold?: boolean | null;
10
+ italic?: boolean | null;
11
+ } | null) => string | undefined;
12
+ //# sourceMappingURL=plotly-title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plotly-title.d.ts","sourceRoot":"","sources":["../../../utils/plotly-title.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,SAAS;IAAE,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,KACjE,MAAM,GAAG,SAYX,CAAC"}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.plotlyTitleText = void 0;
4
+ /**
5
+ * The chart title text for a plotly layout. Plotly's `layout.title.font`
6
+ * carries family / size / colour but no weight or style, while the title
7
+ * text itself is rendered as pseudo-HTML — so an authored bold / italic
8
+ * (`titleTextFormat`, from OOXML `<a:rPr b="1" i="1">`) is emitted as `<b>`
9
+ * / `<i>` tags around the text, which plotly renders (#668 C-51).
10
+ */
11
+ var plotlyTitleText = function (title, format) {
12
+ if (title === undefined || title === null) {
13
+ return undefined;
14
+ }
15
+ var text = title;
16
+ if (format === null || format === void 0 ? void 0 : format.italic) {
17
+ text = "<i>".concat(text, "</i>");
18
+ }
19
+ if (format === null || format === void 0 ? void 0 : format.bold) {
20
+ text = "<b>".concat(text, "</b>");
21
+ }
22
+ return text;
23
+ };
24
+ exports.plotlyTitleText = plotlyTitleText;
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Maps a click inside a rendered chart back to the `spec.series` entry it
3
+ * belongs to, so the grid can highlight that series' source range like
4
+ * Excel does when a series is selected.
5
+ */
6
+ /**
7
+ * echarts series id for `spec.series[specIndex]`. `sourceIndex` is `0` for the
8
+ * base series — a series drawn from several ranges renders as ONE echarts
9
+ * series over their union (Excel). Base series carry it so a click resolves
10
+ * without depending on the order overlays (trendlines, error bars) are
11
+ * appended in.
12
+ */
13
+ export declare const chartSeriesId: (specIndex: number, sourceIndex: number) => string;
14
+ /**
15
+ * The `spec.series` index a tagged echarts series id carries, or
16
+ * `undefined` for untagged (overlay / echarts auto) ids.
17
+ */
18
+ export declare const chartSeriesSpecIndex: (id: string | null | undefined) => number | undefined;
19
+ /**
20
+ * The data point a chart click lands on, as a category index into the
21
+ * series' source range, or `undefined` when the click has no per-point
22
+ * meaning (a radar item is a whole series; overlays carry none).
23
+ */
24
+ export declare const resolveClickedDataIndex: (params: SeriesClickParams | null | undefined) => number | undefined;
25
+ export type SeriesClickParams = {
26
+ seriesId?: string | null;
27
+ seriesIndex?: number | null;
28
+ seriesType?: string | null;
29
+ dataIndex?: number | null;
30
+ };
31
+ /**
32
+ * The `spec.series` index a chart click lands on, or `undefined` when the
33
+ * click cannot be attributed to a series (overlay, connector, empty area).
34
+ * Tagged base series resolve through their id; a radar chart is one echarts
35
+ * series whose data items are the spec series; other untagged series
36
+ * (pie slices, stock roles, waterfall bars…) map by position while it fits.
37
+ */
38
+ export declare const resolveClickedSeriesIndex: (params: SeriesClickParams | null | undefined, seriesCount: number) => number | undefined;
39
+ //# sourceMappingURL=series-click.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"series-click.d.ts","sourceRoot":"","sources":["../../../utils/series-click.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,WAAW,MAAM,EAAE,aAAa,MAAM,WAClB,CAAC;AAEnD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,KAC5B,MAAM,GAAG,SAMX,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,uBAAuB,GAClC,QAAQ,iBAAiB,GAAG,IAAI,GAAG,SAAS,KAC3C,MAAM,GAAG,SAMX,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,GACpC,QAAQ,iBAAiB,GAAG,IAAI,GAAG,SAAS,EAC5C,aAAa,MAAM,KAClB,MAAM,GAAG,SAmBX,CAAC"}
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ /**
3
+ * Maps a click inside a rendered chart back to the `spec.series` entry it
4
+ * belongs to, so the grid can highlight that series' source range like
5
+ * Excel does when a series is selected.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.resolveClickedSeriesIndex = exports.resolveClickedDataIndex = exports.chartSeriesSpecIndex = exports.chartSeriesId = void 0;
9
+ var SERIES_ID_PREFIX = "rnc-series-";
10
+ /**
11
+ * echarts series id for `spec.series[specIndex]`. `sourceIndex` is `0` for the
12
+ * base series — a series drawn from several ranges renders as ONE echarts
13
+ * series over their union (Excel). Base series carry it so a click resolves
14
+ * without depending on the order overlays (trendlines, error bars) are
15
+ * appended in.
16
+ */
17
+ var chartSeriesId = function (specIndex, sourceIndex) {
18
+ return "".concat(SERIES_ID_PREFIX).concat(specIndex, "-").concat(sourceIndex);
19
+ };
20
+ exports.chartSeriesId = chartSeriesId;
21
+ /**
22
+ * The `spec.series` index a tagged echarts series id carries, or
23
+ * `undefined` for untagged (overlay / echarts auto) ids.
24
+ */
25
+ var chartSeriesSpecIndex = function (id) {
26
+ if (typeof id !== "string" || !id.startsWith(SERIES_ID_PREFIX)) {
27
+ return undefined;
28
+ }
29
+ var specIndex = Number.parseInt(id.slice(SERIES_ID_PREFIX.length), 10);
30
+ return Number.isFinite(specIndex) ? specIndex : undefined;
31
+ };
32
+ exports.chartSeriesSpecIndex = chartSeriesSpecIndex;
33
+ /**
34
+ * The data point a chart click lands on, as a category index into the
35
+ * series' source range, or `undefined` when the click has no per-point
36
+ * meaning (a radar item is a whole series; overlays carry none).
37
+ */
38
+ var resolveClickedDataIndex = function (params) {
39
+ if (!params || params.seriesType === "radar")
40
+ return undefined;
41
+ var dataIndex = params.dataIndex;
42
+ return typeof dataIndex === "number" && dataIndex >= 0
43
+ ? dataIndex
44
+ : undefined;
45
+ };
46
+ exports.resolveClickedDataIndex = resolveClickedDataIndex;
47
+ /**
48
+ * The `spec.series` index a chart click lands on, or `undefined` when the
49
+ * click cannot be attributed to a series (overlay, connector, empty area).
50
+ * Tagged base series resolve through their id; a radar chart is one echarts
51
+ * series whose data items are the spec series; other untagged series
52
+ * (pie slices, stock roles, waterfall bars…) map by position while it fits.
53
+ */
54
+ var resolveClickedSeriesIndex = function (params, seriesCount) {
55
+ if (!params)
56
+ return undefined;
57
+ var id = typeof params.seriesId === "string" ? params.seriesId : "";
58
+ if (id.startsWith(SERIES_ID_PREFIX)) {
59
+ var specIndex = (0, exports.chartSeriesSpecIndex)(id);
60
+ return specIndex !== undefined && specIndex < seriesCount
61
+ ? specIndex
62
+ : undefined;
63
+ }
64
+ if (params.seriesType === "radar") {
65
+ var dataIndex = params.dataIndex;
66
+ return typeof dataIndex === "number" && dataIndex < seriesCount
67
+ ? dataIndex
68
+ : undefined;
69
+ }
70
+ var seriesIndex = params.seriesIndex;
71
+ return typeof seriesIndex === "number" && seriesIndex < seriesCount
72
+ ? seriesIndex
73
+ : undefined;
74
+ };
75
+ exports.resolveClickedSeriesIndex = resolveClickedSeriesIndex;
@@ -16,8 +16,12 @@
16
16
  * - LINE_3D -> `line3D` (one polyline per series at its series-index depth)
17
17
  * - AREA_3D -> `line3D` (echarts-gl has no area3D; the polyline keeps the
18
18
  * authored depth layout)
19
- * - SURFACE / SURFACE_3D -> `surface` (values grid as z-heights over the
19
+ * - SURFACE_3D -> `surface` (values grid as z-heights over the
20
20
  * categories × series plane)
21
+ * - SURFACE -> null (Excel's Contour is the top-down view of the same
22
+ * grid; the renderer draws it as a 2-D heatmap over
23
+ * categories × series — `buildContourData` — with
24
+ * no WebGL involved)
21
25
  * - PIE_3D -> null (echarts-gl has no pie3D; the renderer keeps the
22
26
  * existing 2-D pie fallback rather than faking it)
23
27
  */
@@ -48,6 +52,18 @@ export declare const is3DSpec: (spec: {
48
52
  * - non-3-D / unknown tokens.
49
53
  */
50
54
  export declare const resolve3DRenderKind: (sourceChartType?: string | null) => ThreeDRenderKind | null;
55
+ /** Excel's Contour: the surface grid seen from above, as a flat heatmap. */
56
+ export declare const isContourSpec: (spec: {
57
+ sourceChartType?: string | null;
58
+ } | null | undefined) => boolean;
59
+ /** One heatmap cell: [category index, series index, value]; `"-"` is an empty cell. */
60
+ export type ContourPoint = [number, number, number | "-"];
61
+ /**
62
+ * Flatten the categories × series value matrix into echarts `heatmap`
63
+ * data. Unlike `buildSurfaceData` (which needs a full grid of heights)
64
+ * an empty cell stays empty (`"-"`) instead of dropping to 0.
65
+ */
66
+ export declare const buildContourData: (series: ThreeDSeriesInput[]) => ContourPoint[];
51
67
  export type ThreeDSeriesInput = {
52
68
  /** Resolved series display name (legend / y-axis label). */
53
69
  name: string;
@@ -1 +1 @@
1
- {"version":3,"file":"three-d.d.ts","sourceRoot":"","sources":["../../../utils/three-d.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,QAAA,MAAM,cAAc,8EAOV,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,wDAAwD;AACxD,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAI9D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAChC,kBAAkB,MAAM,GAAG,IAAI,KAC9B,gBAAgB,GAAG,IAIrB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GACnB,MAAM;IAAE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,KAC3D,OAAgE,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,kBAAkB,MAAM,GAAG,IAAI,KAC9B,gBAAgB,GAAG,IAcrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,MAAM,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC;CACvC,CAAC;AAEF,wDAAwD;AACxD,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAKnD,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,GAAI,QAAQ,iBAAiB,EAAE,KAAG,MACO,CAAC;AAEvE;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,iBAAiB,EAAE,KAAG,WAAW,EAUvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,iBAAiB,EAAE,KAC1B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,WAAW,EAAE,CAAA;CAAE,EASpC,CAAC;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,iBAAiB,EAAE,KAC1B,WAAW,EAcb,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,EAAE,KAAG,CAAC,MAAM,EAAE,MAAM,CASrE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAY/C,CAAC"}
1
+ {"version":3,"file":"three-d.d.ts","sourceRoot":"","sources":["../../../utils/three-d.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,QAAA,MAAM,cAAc,8EAOV,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/D,wDAAwD;AACxD,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAI9D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAChC,kBAAkB,MAAM,GAAG,IAAI,KAC9B,gBAAgB,GAAG,IAIrB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GACnB,MAAM;IAAE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,KAC3D,OAAgE,CAAC;AAEpE;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,GAC9B,kBAAkB,MAAM,GAAG,IAAI,KAC9B,gBAAgB,GAAG,IAcrB,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,aAAa,GACxB,MAAM;IAAE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,GAAG,IAAI,GAAG,SAAS,KAC3D,OAAqE,CAAC;AAEzE,uFAAuF;AACvF,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,GAAG,CAAC,CAAC;AAE1D;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,iBAAiB,EAAE,KAC1B,YAAY,EAcd,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,4DAA4D;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,MAAM,EAAE,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC;CACvC,CAAC;AAEF,wDAAwD;AACxD,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAKnD,8DAA8D;AAC9D,eAAO,MAAM,gBAAgB,GAAI,QAAQ,iBAAiB,EAAE,KAAG,MACO,CAAC;AAEvE;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,iBAAiB,EAAE,KAAG,WAAW,EAUvE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAC5B,QAAQ,iBAAiB,EAAE,KAC1B;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,WAAW,EAAE,CAAA;CAAE,EASpC,CAAC;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,iBAAiB,EAAE,KAC1B,WAAW,EAcb,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,QAAQ,WAAW,EAAE,KAAG,CAAC,MAAM,EAAE,MAAM,CASrE,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAAS,MAAM,EAY/C,CAAC"}
@@ -17,13 +17,17 @@
17
17
  * - LINE_3D -> `line3D` (one polyline per series at its series-index depth)
18
18
  * - AREA_3D -> `line3D` (echarts-gl has no area3D; the polyline keeps the
19
19
  * authored depth layout)
20
- * - SURFACE / SURFACE_3D -> `surface` (values grid as z-heights over the
20
+ * - SURFACE_3D -> `surface` (values grid as z-heights over the
21
21
  * categories × series plane)
22
+ * - SURFACE -> null (Excel's Contour is the top-down view of the same
23
+ * grid; the renderer draws it as a 2-D heatmap over
24
+ * categories × series — `buildContourData` — with
25
+ * no WebGL involved)
22
26
  * - PIE_3D -> null (echarts-gl has no pie3D; the renderer keeps the
23
27
  * existing 2-D pie fallback rather than faking it)
24
28
  */
25
29
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.SURFACE_COLOR_RAMP = exports.getValueExtent = exports.buildSurfaceData = exports.buildLine3DSeries = exports.buildBar3DData = exports.getCategoryCount = exports.resolve3DRenderKind = exports.is3DSpec = exports.normalize3DSourceType = void 0;
30
+ exports.SURFACE_COLOR_RAMP = exports.getValueExtent = exports.buildSurfaceData = exports.buildLine3DSeries = exports.buildBar3DData = exports.getCategoryCount = exports.buildContourData = exports.isContourSpec = exports.resolve3DRenderKind = exports.is3DSpec = exports.normalize3DSourceType = void 0;
27
31
  var tslib_1 = require("tslib");
28
32
  var THREE_D_TOKENS = [
29
33
  "BAR_3D",
@@ -68,15 +72,39 @@ var resolve3DRenderKind = function (sourceChartType) {
68
72
  case "LINE_3D":
69
73
  case "AREA_3D":
70
74
  return "line3D";
71
- case "SURFACE":
72
75
  case "SURFACE_3D":
73
76
  return "surface";
74
77
  default:
75
- // PIE_3D and non-3-D tokens: keep the 2-D fallback rendering.
78
+ // SURFACE (contour — drawn flat), PIE_3D and non-3-D tokens: keep
79
+ // the 2-D rendering.
76
80
  return null;
77
81
  }
78
82
  };
79
83
  exports.resolve3DRenderKind = resolve3DRenderKind;
84
+ /** Excel's Contour: the surface grid seen from above, as a flat heatmap. */
85
+ var isContourSpec = function (spec) { return (0, exports.normalize3DSourceType)(spec === null || spec === void 0 ? void 0 : spec.sourceChartType) === "SURFACE"; };
86
+ exports.isContourSpec = isContourSpec;
87
+ /**
88
+ * Flatten the categories × series value matrix into echarts `heatmap`
89
+ * data. Unlike `buildSurfaceData` (which needs a full grid of heights)
90
+ * an empty cell stays empty (`"-"`) instead of dropping to 0.
91
+ */
92
+ var buildContourData = function (series) {
93
+ var categoryCount = (0, exports.getCategoryCount)(series);
94
+ var points = [];
95
+ series.forEach(function (entry, seriesIndex) {
96
+ for (var categoryIndex = 0; categoryIndex < categoryCount; categoryIndex++) {
97
+ var value = entry.values[categoryIndex];
98
+ points.push([
99
+ categoryIndex,
100
+ seriesIndex,
101
+ isFiniteNumber(value) ? value : "-",
102
+ ]);
103
+ }
104
+ });
105
+ return points;
106
+ };
107
+ exports.buildContourData = buildContourData;
80
108
  var isFiniteNumber = function (value) {
81
109
  return typeof value === "number" && Number.isFinite(value);
82
110
  };
@@ -0,0 +1,14 @@
1
+ import type { CellInterface, SelectionArea } from "@rowsncolumns/common-types";
2
+ import type { SelectionAttributes } from "@rowsncolumns/spreadsheet";
3
+ /** Insert → PivotChart: where the chart goes and what the user had selected. */
4
+ export type PivotChartRequest = {
5
+ sheetId: number;
6
+ activeCell: CellInterface;
7
+ selections: SelectionArea<SelectionAttributes>[];
8
+ };
9
+ export declare const pivotChartRequestAtom: import("jotai").PrimitiveAtom<PivotChartRequest | undefined> & {
10
+ init: PivotChartRequest | undefined;
11
+ };
12
+ export declare const usePivotChartRequest: () => [PivotChartRequest | undefined, (args_0: PivotChartRequest | ((prev: PivotChartRequest | undefined) => PivotChartRequest | undefined) | undefined) => void];
13
+ export declare const useSetPivotChartRequest: () => (args_0: PivotChartRequest | ((prev: PivotChartRequest | undefined) => PivotChartRequest | undefined) | undefined) => void;
14
+ //# sourceMappingURL=pivot-chart.atom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pivot-chart.atom.d.ts","sourceRoot":"","sources":["../../../atoms/pivot-chart.atom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGrE,gFAAgF;AAChF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,aAAa,CAAC;IAC1B,UAAU,EAAE,aAAa,CAAC,mBAAmB,CAAC,EAAE,CAAC;CAClD,CAAC;AAEF,eAAO,MAAM,qBAAqB;;CAEjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,mKAAuC,CAAC;AACzE,eAAO,MAAM,uBAAuB,kIAA0C,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { atom, useAtom, useSetAtom } from "jotai";
2
+ export const pivotChartRequestAtom = atom(undefined);
3
+ export const usePivotChartRequest = () => useAtom(pivotChartRequestAtom);
4
+ export const useSetPivotChartRequest = () => useSetAtom(pivotChartRequestAtom);
@@ -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, onDeleteChart, onRequestEdit, onRequestCalculate, isSelected, }: 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, }: 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":"AAqDA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAiNrD,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC;AA+DnD,eAAO,MAAM,UAAU,GAAI,mLAcxB,eAAe,sBAolFjB,CAAC"}
1
+ {"version":3,"file":"basic-chart.d.ts","sourceRoot":"","sources":["../../../basic-chart/basic-chart.tsx"],"names":[],"mappings":"AA4DA,OAAO,KAAiD,MAAM,OAAO,CAAC;AAEtE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AA0PrD,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC;AAkEnD,eAAO,MAAM,UAAU,GAAI,wOAiBxB,eAAe,sBAmuGjB,CAAC"}