@sheetxl/react 0.8.0-beta.16 → 0.8.0-beta.17
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/browser/esm/{MmP_sX1FvMvViZZD.mjs → -mdWrNwKPMBQbhpW.mjs} +2 -2
- package/browser/esm/{BMlHmy5KHq4fpX89.mjs → 9YeNE9FbgAbj-kFJ.mjs} +1 -1
- package/browser/esm/{dAnrqhgO4VFyrocf.mjs → B0tm14veV7VbqCXF.mjs} +1 -1
- package/browser/esm/{hjwXRlBRxr2wVnGG.mjs → B1rrVGz1PwKbTLA2.mjs} +1 -1
- package/browser/esm/{D2ttaxNfmCgJPpIL.mjs → B7yfrZvX62qlpS-V.mjs} +1 -1
- package/browser/esm/{BuI1QOZfQOLRxv4Q.mjs → B9r44M1lVTxnLqBb.mjs} +1 -1
- package/browser/esm/{C8xSJkoMQ48a6FUE.mjs → BeVkpREgRD5DVvqq.mjs} +1 -1
- package/browser/esm/{UiFSvM9Z6y0t72hV.mjs → BxmM4_1EU7z1fS8J.mjs} +6 -6
- package/browser/esm/{DK2-0QyEDqx8d0XH.mjs → BzLeA0HlYOPeNbAo.mjs} +4 -4
- package/browser/esm/{CKxfHbnDDNWdSgCa.mjs → CNv5ABj97zChkI-j.mjs} +1 -1
- package/browser/esm/{DL8bI9YEl5Otd-ih.mjs → CWZ7Dx5SBWu4aU9Z.mjs} +1 -1
- package/browser/esm/{Bt2sBBEyKZJu0p0G.mjs → CWwumtsC8-1gwMAu.mjs} +2 -2
- package/browser/esm/{D4UxXbJprFoh8e8r.mjs → CYEzd5w4p9LRScYN.mjs} +1 -1
- package/browser/esm/{C1C6etLFfhuqi99X.mjs → CmDfYf-7BEMQKyqH.mjs} +1 -1
- package/browser/esm/{1nN0NNMaAIsgiI3e.mjs → DQ7lWEbxzkSksQvK.mjs} +2 -2
- package/browser/esm/{BDR2ekvOkyo3laAm.mjs → DcFFrmHW4tX2q1az.mjs} +3 -3
- package/browser/esm/{Ce1bW8Vmpp1o5nH7.mjs → Dm5_yXkbckf2odQK.mjs} +3 -3
- package/browser/esm/{ep5bfXSko9E1UYpO.mjs → DmIj68EaqzbpmhGu.mjs} +1 -1
- package/browser/esm/{DGAgjGwo1pLorNXf.mjs → E7Yhe921O7ju1JLF.mjs} +1 -1
- package/browser/esm/{CttfqXbX8QGBlLUy.mjs → Ip8RHzHhXWuXTW8Z.mjs} +6 -6
- package/browser/esm/{Z5bFuSFQeh75HMWA.mjs → NUXuZQHZmiYexulZ.mjs} +5 -5
- package/browser/esm/{DD8k94MkULtCDCqI.mjs → Z57bAJBcfLMsZG74.mjs} +3 -3
- package/browser/esm/chart.mjs +3 -3
- package/browser/esm/control.mjs +2 -2
- package/browser/esm/group.mjs +3 -3
- package/browser/esm/index.mjs +5578 -5504
- package/browser/esm/note.mjs +4 -4
- package/browser/esm/picture.mjs +2 -2
- package/browser/esm/{xnubiISd6zDiHAww.mjs → qmxmy7tirF1as3Xs.mjs} +1 -1
- package/browser/esm/shape.mjs +2 -2
- package/browser/esm/slicer.mjs +4 -4
- package/node/esm/{CeDLAkScaM4r3aRY.mjs → B-M8LEF1gQC4VTti.mjs} +1 -1
- package/node/esm/{CczY1geYlm7dZykP.mjs → BLyZ6mSICbKNrNXK.mjs} +1 -1
- package/node/esm/{gbWplmokh3BEFa8d.mjs → BN9TsBId0PUOF3YQ.mjs} +1 -1
- package/node/esm/{CZ4oenvKO_nsgqT3.mjs → BPEE8SA9ZAebcfZs.mjs} +1 -1
- package/node/esm/{BZxcC1cfoQJEQCbW.mjs → BXwXN7P_JyLZbQ1F.mjs} +1 -1
- package/node/esm/{OB-WWDXKQNnQq71Y.mjs → BzAvJXwmJZ2aBZff.mjs} +1 -1
- package/node/esm/{RfipyLtZiGFsXmFH.mjs → C8lBxk7g8FU777JZ.mjs} +2 -2
- package/node/esm/{CQyoYz8uAb2rwRgR.mjs → CXe6zO8r3qcKa8eD.mjs} +1 -1
- package/node/esm/{DBdfrbP95AgBwjj2.mjs → Cp8J0CabzCF6tfAx.mjs} +2 -2
- package/node/esm/{CaqQCNAPYBQPStW6.mjs → D1o8P8Vu5yBBWDkw.mjs} +2 -2
- package/node/esm/{BvtqxTJsH9qrs0oo.mjs → D4wcZkeFJ9g3E1Wx.mjs} +1 -1
- package/node/esm/{stixLaWCsDf8jtRL.mjs → D6T6RsUdqj-dsOrE.mjs} +1 -1
- package/node/esm/{DNioL3BfDain0oLO.mjs → DOmvQX0Ox-3oN9aN.mjs} +1 -1
- package/node/esm/{DYHX-Y0Lgclu8imk.mjs → DQ7xw--8XAi5NYEh.mjs} +2 -2
- package/node/esm/{B6FEw5vtIODLY_8C.mjs → DSA6_IsV7Vneo5Za.mjs} +5 -5
- package/node/esm/{CW9MYVxiw-BHoWOv.mjs → DdXBknb60h6u7ljS.mjs} +1 -1
- package/node/esm/{D1kwQ7kj4CIEHF6o.mjs → DrGBVKfXN46SccPc.mjs} +1 -1
- package/node/esm/{Cxg42ySbHoSgZz4m.mjs → SRhq2ObYt2tWPLDG.mjs} +1 -1
- package/node/esm/{DF1hQLrsJatoimsP.mjs → arYXYwcOVpS7tQUp.mjs} +1 -1
- package/node/esm/chart.mjs +2 -2
- package/node/esm/control.mjs +2 -2
- package/node/esm/group.mjs +3 -3
- package/node/esm/index.mjs +2690 -2616
- package/node/esm/note.mjs +4 -4
- package/node/esm/picture.mjs +5 -5
- package/node/esm/{BShOuK0OXwR9NSdj.mjs → roCYJ0G69HBpAkf3.mjs} +4 -4
- package/node/esm/shape.mjs +6 -6
- package/node/esm/slicer.mjs +4 -4
- package/package.json +7 -7
- package/resources/locales/de/table.cmd.json +4 -1
- package/resources/locales/en/table.cmd.json +4 -1
- package/types/src/border/useBorders.d.ts +20 -1
- package/types/src/layer/BorderLayer.d.ts +3 -0
- package/types/src/layer/SheetGridLineLayer.d.ts +18 -6
- package/types/src/layer/_sheetBorders.d.ts +6 -0
- package/types/src/layer/useSheetVisibleCells.d.ts +3 -4
package/node/esm/note.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.17
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import { t as o } from "./
|
|
9
|
-
import { t } from "./
|
|
7
|
+
import { t as e } from "./BXwXN7P_JyLZbQ1F.mjs";
|
|
8
|
+
import { t as o } from "./DOmvQX0Ox-3oN9aN.mjs";
|
|
9
|
+
import { t } from "./BPEE8SA9ZAebcfZs.mjs";
|
|
10
10
|
import { Color as r, IColor as n, IFont as i, IFontStyle as l, IStroke as a } from "@sheetxl/sdk";
|
|
11
11
|
import { forwardRef as s, memo as d, useReducer as c } from "react";
|
|
12
12
|
import { jsx as g } from "react/jsx-runtime";
|
package/node/esm/picture.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.17
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { t } from "./
|
|
8
|
-
import { n as e } from "./
|
|
9
|
-
import { t as o } from "./
|
|
10
|
-
import { i as r, r as i, t as n } from "./
|
|
7
|
+
import { t } from "./BXwXN7P_JyLZbQ1F.mjs";
|
|
8
|
+
import { n as e } from "./D6T6RsUdqj-dsOrE.mjs";
|
|
9
|
+
import { t as o } from "./DdXBknb60h6u7ljS.mjs";
|
|
10
|
+
import { i as r, r as i, t as n } from "./arYXYwcOVpS7tQUp.mjs";
|
|
11
11
|
import { forwardRef as l, memo as a, useEffect as s, useId as h, useMemo as d, useReducer as c, useRef as u, useState as p } from "react";
|
|
12
12
|
import { jsx as g, jsxs as f } from "react/jsx-runtime";
|
|
13
13
|
import { useSurfaceStateSetter as m } from "@sheetxl/grid-react";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.17
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
7
|
+
import { t as e } from "./BXwXN7P_JyLZbQ1F.mjs";
|
|
8
8
|
import { createContext as t, memo as n, useCallback as o, useEffect as r, useReducer as l, useRef as a, useState as i } from "react";
|
|
9
9
|
import { Fragment as s, jsx as c, jsxs as d } from "react/jsx-runtime";
|
|
10
10
|
import { LazyModules as u, defineLazyModule as p } from "@sheetxl/utils";
|
|
@@ -162,7 +162,7 @@ var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE
|
|
|
162
162
|
for (const e of [...I]) e();
|
|
163
163
|
}, E = !1, N = () => {
|
|
164
164
|
E || (E = !0, function(e) {
|
|
165
|
-
e("picture", () => import("./
|
|
165
|
+
e("picture", () => import("./C8lBxk7g8FU777JZ.mjs"), { select: (e) => e.PictureKind }), e("chart", () => import("./DQ7xw--8XAi5NYEh.mjs"), { select: (e) => e.ChartKind }), e("slicer", () => import("./BN9TsBId0PUOF3YQ.mjs"), { select: (e) => e.SlicerKind }), e("shape", () => import("./DSA6_IsV7Vneo5Za.mjs"), {
|
|
166
166
|
select: (e) => e.ShapeKind,
|
|
167
167
|
selectionShadow: !1
|
|
168
168
|
}), e("group", () => import("./group.mjs"), { select: ({ GroupEditor: e }) => (t) => c(e, {
|
|
@@ -174,7 +174,7 @@ var k = /* @__PURE__ */ new Map(), j = /* @__PURE__ */ new Map(), S = /* @__PURE
|
|
|
174
174
|
...o,
|
|
175
175
|
note: t.movable.getContent()
|
|
176
176
|
});
|
|
177
|
-
} }), e("error", () => import("./
|
|
177
|
+
} }), e("error", () => import("./B-M8LEF1gQC4VTti.mjs").then((e) => e.t), { select: ({ ErrorContentFrame: e }) => (t) => c(e, { ...t }) });
|
|
178
178
|
const t = (t, n) => {
|
|
179
179
|
e(t, () => import("./control.mjs"), { select: n });
|
|
180
180
|
};
|
package/node/esm/shape.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.17
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import { n as t } from "./
|
|
9
|
-
import { t as n } from "./
|
|
10
|
-
import { t as o } from "./
|
|
11
|
-
import { i as r, n as s, r as i, t as l } from "./
|
|
7
|
+
import { t as e } from "./BXwXN7P_JyLZbQ1F.mjs";
|
|
8
|
+
import { n as t } from "./D6T6RsUdqj-dsOrE.mjs";
|
|
9
|
+
import { t as n } from "./DOmvQX0Ox-3oN9aN.mjs";
|
|
10
|
+
import { t as o } from "./D4wcZkeFJ9g3E1Wx.mjs";
|
|
11
|
+
import { i as r, n as s, r as i, t as l } from "./arYXYwcOVpS7tQUp.mjs";
|
|
12
12
|
import { forwardRef as a, memo as p, useCallback as c, useEffect as d, useMemo as h, useReducer as u, useRef as m, useState as g } from "react";
|
|
13
13
|
import { jsx as f, jsxs as y } from "react/jsx-runtime";
|
|
14
14
|
import { messageKey as v } from "@sheetxl/utils";
|
package/node/esm/slicer.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.
|
|
2
|
+
* @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v0.8.0-beta.17
|
|
3
3
|
*
|
|
4
4
|
* (C) 2026-present SheetXL Inc. & Michael T. Ford
|
|
5
5
|
* License: SheetXL EULA — https://www.sheetxl.com/eula
|
|
6
6
|
*/
|
|
7
|
-
import { t as e } from "./
|
|
8
|
-
import { n as t } from "./
|
|
9
|
-
import { i as r, r as o, t as l } from "./
|
|
7
|
+
import { t as e } from "./BXwXN7P_JyLZbQ1F.mjs";
|
|
8
|
+
import { n as t } from "./D6T6RsUdqj-dsOrE.mjs";
|
|
9
|
+
import { i as r, r as o, t as l } from "./BzAvJXwmJZ2aBZff.mjs";
|
|
10
10
|
import { IFont as i } from "@sheetxl/sdk";
|
|
11
11
|
import { forwardRef as n, memo as s, useCallback as a, useEffect as c, useLayoutEffect as d, useMemo as h, useReducer as p, useRef as u, useState as m } from "react";
|
|
12
12
|
import { jsx as g, jsxs as f } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheetxl/react",
|
|
3
3
|
"description": "React - React components needed to build advanced grid and spreadsheet UIs.",
|
|
4
|
-
"version": "0.8.0-beta.
|
|
4
|
+
"version": "0.8.0-beta.17",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -89,11 +89,11 @@
|
|
|
89
89
|
"@dnd-kit/modifiers": "^9.0.0",
|
|
90
90
|
"@dnd-kit/sortable": "^10.0.0",
|
|
91
91
|
"@dnd-kit/utilities": "^3.2.2",
|
|
92
|
-
"@sheetxl/grid-react": "^0.8.0-beta.
|
|
93
|
-
"@sheetxl/io": "^0.8.0-beta.
|
|
94
|
-
"@sheetxl/sdk": "^0.8.0-beta.
|
|
95
|
-
"@sheetxl/utils": "^0.8.0-beta.
|
|
96
|
-
"@sheetxl/utils-react": "^0.8.0-beta.
|
|
92
|
+
"@sheetxl/grid-react": "^0.8.0-beta.17",
|
|
93
|
+
"@sheetxl/io": "^0.8.0-beta.17",
|
|
94
|
+
"@sheetxl/sdk": "^0.8.0-beta.17",
|
|
95
|
+
"@sheetxl/utils": "^0.8.0-beta.17",
|
|
96
|
+
"@sheetxl/utils-react": "^0.8.0-beta.17",
|
|
97
97
|
"clsx": "^2.1.1",
|
|
98
98
|
"echarts": "~6.1.0",
|
|
99
99
|
"react-merge-refs": "^3.0.2",
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
"react-dom": "^19.0.0"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
107
|
-
"@sheetxl/io-xlsx": "^0.8.0-beta.
|
|
107
|
+
"@sheetxl/io-xlsx": "^0.8.0-beta.17",
|
|
108
108
|
"@types/react": "^19.3.0",
|
|
109
109
|
"@types/react-dom": "^19.3.0"
|
|
110
110
|
}
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"tableStyleOptions": {
|
|
17
17
|
"label": "Tabellenformat",
|
|
18
|
-
"description": "Legt fest, welche Strukturelemente (Kopfzeile, Ergebniszeile, verbundene Zeilen/Spalten, Filter) die Tabelle anzeigt."
|
|
18
|
+
"description": "Legt fest, welche Strukturelemente (Kopfzeile, Ergebniszeile, verbundene Zeilen/Spalten, Filter) die Tabelle anzeigt.",
|
|
19
|
+
"groupLabels": {
|
|
20
|
+
"tableToolbar": "Format"
|
|
21
|
+
}
|
|
19
22
|
},
|
|
20
23
|
"tableTotalRowToggle": {
|
|
21
24
|
"label": "Tabellen-Ergebniszeile umschalten",
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
},
|
|
16
16
|
"tableStyleOptions": {
|
|
17
17
|
"label": "Table Style",
|
|
18
|
-
"description": "Toggle which structural elements (header, total, banded rows/columns, filter) the table shows."
|
|
18
|
+
"description": "Toggle which structural elements (header, total, banded rows/columns, filter) the table shows.",
|
|
19
|
+
"groupLabels": {
|
|
20
|
+
"tableToolbar": "Style"
|
|
21
|
+
}
|
|
19
22
|
},
|
|
20
23
|
"tableTotalRowToggle": {
|
|
21
24
|
"label": "Toggle Table Total Row",
|
|
@@ -140,7 +140,25 @@ export interface UseBorderOptions {
|
|
|
140
140
|
* `null` draws none.
|
|
141
141
|
*/
|
|
142
142
|
normalColumns?: BorderNormalLine | null;
|
|
143
|
+
/**
|
|
144
|
+
* Shared by layers that draw the same cells, so the cells are read into borders once for all of
|
|
145
|
+
* them. Layers share a read when `getVisibleCells` returns the same array and `getBorderAt`,
|
|
146
|
+
* `getMergeAt`, and `defaultColor` are the same.
|
|
147
|
+
*/
|
|
148
|
+
cache?: BordersCache;
|
|
143
149
|
}
|
|
150
|
+
declare const _BordersCacheBrand: unique symbol;
|
|
151
|
+
/**
|
|
152
|
+
* Lets several {@link useBorders} layers share the work of reading their cells into borders. Create
|
|
153
|
+
* one with {@link createBordersCache} and pass it to each layer as {@link UseBorderOptions.cache}.
|
|
154
|
+
*/
|
|
155
|
+
export interface BordersCache {
|
|
156
|
+
readonly [_BordersCacheBrand]: true;
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* A new {@link BordersCache}.
|
|
160
|
+
*/
|
|
161
|
+
export declare const createBordersCache: () => BordersCache;
|
|
144
162
|
export interface UseBorderResults {
|
|
145
163
|
/**
|
|
146
164
|
* Draws a pane's borders, or `null` when it has none.
|
|
@@ -156,5 +174,6 @@ export interface UseBorderResults {
|
|
|
156
174
|
* center of the double it meets, so two doubles open into each other where they cross, tee or
|
|
157
175
|
* turn a corner. Strokes that are not double are outside the mask and never cut.
|
|
158
176
|
*/
|
|
159
|
-
export declare const useBorders: ({ getBorderAt, getMergeAt, rendererBorder, getVisibleCells: propGetVisibleCells, forceThinBorder, defaultColor, mode, normalRows, normalColumns }: UseBorderOptions) => UseBorderResults;
|
|
177
|
+
export declare const useBorders: ({ getBorderAt, getMergeAt, rendererBorder, getVisibleCells: propGetVisibleCells, forceThinBorder, defaultColor, mode, normalRows, normalColumns, cache }: UseBorderOptions) => UseBorderResults;
|
|
178
|
+
export {};
|
|
160
179
|
//# sourceMappingURL=useBorders.d.ts.map
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IRange, IWorksheet, ICell } from '@sheetxl/sdk';
|
|
2
2
|
import { LayerProps, IGridPane } from '@sheetxl/grid-react';
|
|
3
|
+
import { BordersCache } from '../border';
|
|
3
4
|
export interface BorderLayerProps extends LayerProps {
|
|
4
5
|
/** Class for the borders host box (devtools identification). */
|
|
5
6
|
className?: string;
|
|
@@ -9,6 +10,8 @@ export interface BorderLayerProps extends LayerProps {
|
|
|
9
10
|
value?: ICell;
|
|
10
11
|
range?: IRange.Coords;
|
|
11
12
|
}[];
|
|
13
|
+
/** Shared with the {@link SheetGridLineLayer} that draws the same cells. */
|
|
14
|
+
bordersCache?: BordersCache;
|
|
12
15
|
}
|
|
13
16
|
export declare const BorderLayer: import('react').NamedExoticComponent<BorderLayerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
14
17
|
//# sourceMappingURL=BorderLayer.d.ts.map
|
|
@@ -1,10 +1,22 @@
|
|
|
1
|
-
import { IWorksheet, IWorksheetView } from '@sheetxl/sdk';
|
|
2
|
-
import { LayerProps } from '@sheetxl/grid-react';
|
|
1
|
+
import { ICell, IRange, IWorksheet, IWorksheetView } from '@sheetxl/sdk';
|
|
2
|
+
import { IGridPane, LayerProps } from '@sheetxl/grid-react';
|
|
3
|
+
import { BordersCache } from '../border';
|
|
3
4
|
export interface SheetGridLineLayerProps extends LayerProps {
|
|
4
5
|
/** The sheet whose gridlines are rendered. */
|
|
5
6
|
sheet: IWorksheet;
|
|
6
|
-
/** The sheet view — drives styling
|
|
7
|
+
/** The sheet view — drives styling and per-axis visibility. */
|
|
7
8
|
sheetView: IWorksheetView;
|
|
9
|
+
/**
|
|
10
|
+
* The cells in view, shared with the fill and border layers; their borders and their merges and
|
|
11
|
+
* overflow are what the lines break around.
|
|
12
|
+
*/
|
|
13
|
+
getVisibleCells: (pane: IGridPane) => {
|
|
14
|
+
cell: ICell.Coords;
|
|
15
|
+
value?: ICell;
|
|
16
|
+
range?: IRange.Coords;
|
|
17
|
+
}[];
|
|
18
|
+
/** Shared with the {@link BorderLayer} that draws the same cells. */
|
|
19
|
+
bordersCache?: BordersCache;
|
|
8
20
|
}
|
|
9
21
|
/**
|
|
10
22
|
* The sheet's gridline layer: the view's gridline wherever no cell border owns the edge, so a
|
|
@@ -12,9 +24,9 @@ export interface SheetGridLineLayerProps extends LayerProps {
|
|
|
12
24
|
* hides it. An axis whose Normal style has a border draws that border instead, in the
|
|
13
25
|
* {@link BorderLayer} (it is a border on every cell, and draws above the fills).
|
|
14
26
|
*
|
|
15
|
-
* Self-subscribes to `onStyleChange` (sheet) and `onZoomScaleChange` (view)
|
|
16
|
-
* per-axis visibility, and
|
|
17
|
-
*
|
|
27
|
+
* Self-subscribes to `onStyleChange` and `onLayoutChange` (sheet) and `onZoomScaleChange` (view)
|
|
28
|
+
* for the styling, per-axis visibility, and the cells it breaks around, and to data changes in its
|
|
29
|
+
* pane's visible range. One per pane.
|
|
18
30
|
*/
|
|
19
31
|
export declare const SheetGridLineLayer: import('react').MemoExoticComponent<(props: SheetGridLineLayerProps) => import("react").JSX.Element | null>;
|
|
20
32
|
//# sourceMappingURL=SheetGridLineLayer.d.ts.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { IBorders, ICell, IRange } from '@sheetxl/sdk';
|
|
2
|
+
/** The borders a visible cell draws. */
|
|
3
|
+
export declare const getSheetBorderAt: (value: ICell, _index: number) => IBorders;
|
|
4
|
+
/** A merged cell's extrusion is its merge (merged cells never overflow); `null` when not merged. */
|
|
5
|
+
export declare const getSheetMergeAt: (value: ICell, _index: number) => IRange.Coords | null;
|
|
6
|
+
//# sourceMappingURL=_sheetBorders.d.ts.map
|
|
@@ -8,12 +8,12 @@ export type SheetVisibleCell = {
|
|
|
8
8
|
/**
|
|
9
9
|
* What the scan should treat as "worth rendering". Each layer passes ONLY the flags its own output
|
|
10
10
|
* depends on — a flag change busts this hook's scan cache + token, so an unused flag would rebuild
|
|
11
|
-
* the caller for nothing (e.g.
|
|
11
|
+
* the caller for nothing (e.g. a layer that ignores zeros must not rebuild on a show-zeros toggle).
|
|
12
12
|
*/
|
|
13
13
|
export interface SheetVisibleCellsOptions {
|
|
14
14
|
/**
|
|
15
15
|
* Formula view: formula-only cells render (even valueless), and text-overflow extrusions are
|
|
16
|
-
* disabled (formulas never overflow-paint). Affects cells
|
|
16
|
+
* disabled (formulas never overflow-paint). Affects the cells and their extrusions.
|
|
17
17
|
* @defaultValue false
|
|
18
18
|
*/
|
|
19
19
|
showFormulas?: boolean;
|
|
@@ -53,8 +53,7 @@ export interface SheetVisibleCells {
|
|
|
53
53
|
* source flags change (e.g. `useModelSync(sheetView, ['onZoomScaleChange'])` — the view's setters all
|
|
54
54
|
* funnel through `_notifyAll`, which fires that event). Each caller (one per layer per pane) gets its
|
|
55
55
|
* OWN cache + subscription — the layers are deliberately decoupled, so a value edit re-renders only the
|
|
56
|
-
* layer(s) that asked, never the grid above them. Used by {@link SheetCellLayer}
|
|
57
|
-
* {@link SheetGridLineLayer}.
|
|
56
|
+
* layer(s) that asked, never the grid above them. Used by {@link SheetCellLayer}.
|
|
58
57
|
*/
|
|
59
58
|
export declare const useSheetVisibleCells: (sheet: IWorksheet, options?: SheetVisibleCellsOptions) => SheetVisibleCells;
|
|
60
59
|
//# sourceMappingURL=useSheetVisibleCells.d.ts.map
|