@rowsncolumns/grid 13.3.0 → 13.4.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.
- package/dist/cjs/hooks/useImage.d.ts +13 -0
- package/dist/cjs/hooks/useImage.d.ts.map +1 -1
- package/dist/cjs/hooks/useImage.js +47 -15
- package/dist/cjs/index.d.ts +3 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +5 -1
- package/dist/esm/hooks/useImage.d.ts +13 -0
- package/dist/esm/hooks/useImage.d.ts.map +1 -1
- package/dist/esm/hooks/useImage.js +45 -15
- package/dist/esm/index.d.ts +3 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/package.json +1 -1
|
@@ -8,6 +8,19 @@ export interface UseImageResults {
|
|
|
8
8
|
height: number;
|
|
9
9
|
status: string;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Asks once more for every image whose load failed. A host calls it each time the page can reach
|
|
13
|
+
* the network again, so a picture that failed to load while offline draws without the sheet being
|
|
14
|
+
* reopened.
|
|
15
|
+
*
|
|
16
|
+
* - An image something still draws is requested again at once, and redraws when it loads.
|
|
17
|
+
* - A failed image nothing draws any more is forgotten, so it is requested when it is next drawn.
|
|
18
|
+
* - An image that loaded, or whose request is still running, is left alone.
|
|
19
|
+
*
|
|
20
|
+
* So each failed image costs at most one request per call, and nothing is retried on a timer.
|
|
21
|
+
* Each attempt uses a new element, so a browser that ignores a repeated `src` still asks again.
|
|
22
|
+
*/
|
|
23
|
+
export declare const retryFailedImages: () => void;
|
|
11
24
|
declare const useImage: ({ url, crossOrigin }: UseImageProps) => UseImageResults;
|
|
12
25
|
export default useImage;
|
|
13
26
|
//# sourceMappingURL=useImage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useImage.d.ts","sourceRoot":"","sources":["../../../hooks/useImage.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;
|
|
1
|
+
{"version":3,"file":"useImage.d.ts","sourceRoot":"","sources":["../../../hooks/useImage.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AA0DD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,QAAO,IAUpC,CAAC;AAEF,QAAA,MAAM,QAAQ,GAAI,sBAAsB,aAAa,oBAgDpD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,24 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.retryFailedImages = void 0;
|
|
3
4
|
var tslib_1 = require("tslib");
|
|
4
5
|
var react_1 = require("react");
|
|
5
6
|
// Global cache to share images across all component instances
|
|
6
7
|
var imageCache = new Map();
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var img = new Image();
|
|
13
|
-
img.crossOrigin = crossOrigin || "anonymous";
|
|
14
|
-
var entry = {
|
|
15
|
-
image: img,
|
|
16
|
-
status: "loading",
|
|
17
|
-
width: 0,
|
|
18
|
-
height: 0,
|
|
19
|
-
subscribers: new Set(),
|
|
20
|
-
};
|
|
21
|
-
imageCache.set(url, entry);
|
|
8
|
+
/** Starts the entry's image element loading `url`. */
|
|
9
|
+
var requestImage = function (url, entry) {
|
|
10
|
+
var img = entry.image;
|
|
11
|
+
img.crossOrigin = entry.crossOrigin;
|
|
12
|
+
entry.status = "loading";
|
|
22
13
|
var onload = function () {
|
|
23
14
|
entry.status = "loaded";
|
|
24
15
|
entry.width = img.width;
|
|
@@ -32,8 +23,49 @@ var loadImage = function (url, crossOrigin) {
|
|
|
32
23
|
img.addEventListener("load", onload);
|
|
33
24
|
img.addEventListener("error", onerror);
|
|
34
25
|
img.src = url;
|
|
26
|
+
};
|
|
27
|
+
var loadImage = function (url, crossOrigin) {
|
|
28
|
+
var existing = imageCache.get(url);
|
|
29
|
+
if (existing) {
|
|
30
|
+
return existing;
|
|
31
|
+
}
|
|
32
|
+
var entry = {
|
|
33
|
+
image: new Image(),
|
|
34
|
+
status: "loading",
|
|
35
|
+
width: 0,
|
|
36
|
+
height: 0,
|
|
37
|
+
crossOrigin: crossOrigin || "anonymous",
|
|
38
|
+
subscribers: new Set(),
|
|
39
|
+
};
|
|
40
|
+
imageCache.set(url, entry);
|
|
41
|
+
requestImage(url, entry);
|
|
35
42
|
return entry;
|
|
36
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* Asks once more for every image whose load failed. A host calls it each time the page can reach
|
|
46
|
+
* the network again, so a picture that failed to load while offline draws without the sheet being
|
|
47
|
+
* reopened.
|
|
48
|
+
*
|
|
49
|
+
* - An image something still draws is requested again at once, and redraws when it loads.
|
|
50
|
+
* - A failed image nothing draws any more is forgotten, so it is requested when it is next drawn.
|
|
51
|
+
* - An image that loaded, or whose request is still running, is left alone.
|
|
52
|
+
*
|
|
53
|
+
* So each failed image costs at most one request per call, and nothing is retried on a timer.
|
|
54
|
+
* Each attempt uses a new element, so a browser that ignores a repeated `src` still asks again.
|
|
55
|
+
*/
|
|
56
|
+
var retryFailedImages = function () {
|
|
57
|
+
imageCache.forEach(function (entry, url) {
|
|
58
|
+
if (entry.status !== "failed")
|
|
59
|
+
return;
|
|
60
|
+
if (entry.subscribers.size === 0) {
|
|
61
|
+
imageCache.delete(url);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
entry.image = new Image();
|
|
65
|
+
requestImage(url, entry);
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
exports.retryFailedImages = retryFailedImages;
|
|
37
69
|
var useImage = function (_a) {
|
|
38
70
|
var url = _a.url, crossOrigin = _a.crossOrigin;
|
|
39
71
|
var _b = tslib_1.__read((0, react_1.useState)(function () {
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ export * from "./hooks/useTooltip";
|
|
|
14
14
|
export * from "./hooks/useEditable";
|
|
15
15
|
export * from "./types";
|
|
16
16
|
export type { ImageProps } from "./Image";
|
|
17
|
+
export { retryFailedImages } from "./hooks/useImage";
|
|
18
|
+
export { default as useImage } from "./hooks/useImage";
|
|
19
|
+
export type { UseImageProps, UseImageResults } from "./hooks/useImage";
|
|
17
20
|
export * from "./utils";
|
|
18
21
|
export * from "./Context";
|
|
19
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EACL,WAAW,EACX,YAAY,IAAI,mBAAmB,EACpC,MAAM,eAAe,CAAC;AACvB,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,SAAS,MAAM,mBAAmB,CAAC;AAC1C,OAAO,OAAO,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,EACL,IAAI,EACJ,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,OAAO,E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AE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvE,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
package/dist/cjs/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Selection = exports.Image = exports.CellOverlayRenderer = exports.useFilter = exports.useUndo = exports.CellOverlay = exports.Cell = exports.CellRenderer = exports.Grid = void 0;
|
|
3
|
+
exports.useImage = exports.retryFailedImages = exports.Selection = exports.Image = exports.CellOverlayRenderer = exports.useFilter = exports.useUndo = exports.CellOverlay = exports.Cell = exports.CellRenderer = exports.Grid = void 0;
|
|
4
4
|
var tslib_1 = require("tslib");
|
|
5
5
|
var Cell_1 = require("./Cell");
|
|
6
6
|
Object.defineProperty(exports, "Cell", { enumerable: true, get: function () { return Cell_1.Cell; } });
|
|
@@ -25,5 +25,9 @@ tslib_1.__exportStar(require("./hooks/useUndo"), exports);
|
|
|
25
25
|
tslib_1.__exportStar(require("./hooks/useTooltip"), exports);
|
|
26
26
|
tslib_1.__exportStar(require("./hooks/useEditable"), exports);
|
|
27
27
|
tslib_1.__exportStar(require("./types"), exports);
|
|
28
|
+
var useImage_1 = require("./hooks/useImage");
|
|
29
|
+
Object.defineProperty(exports, "retryFailedImages", { enumerable: true, get: function () { return useImage_1.retryFailedImages; } });
|
|
30
|
+
var useImage_2 = require("./hooks/useImage");
|
|
31
|
+
Object.defineProperty(exports, "useImage", { enumerable: true, get: function () { return tslib_1.__importDefault(useImage_2).default; } });
|
|
28
32
|
tslib_1.__exportStar(require("./utils"), exports);
|
|
29
33
|
tslib_1.__exportStar(require("./Context"), exports);
|
|
@@ -8,6 +8,19 @@ export interface UseImageResults {
|
|
|
8
8
|
height: number;
|
|
9
9
|
status: string;
|
|
10
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* Asks once more for every image whose load failed. A host calls it each time the page can reach
|
|
13
|
+
* the network again, so a picture that failed to load while offline draws without the sheet being
|
|
14
|
+
* reopened.
|
|
15
|
+
*
|
|
16
|
+
* - An image something still draws is requested again at once, and redraws when it loads.
|
|
17
|
+
* - A failed image nothing draws any more is forgotten, so it is requested when it is next drawn.
|
|
18
|
+
* - An image that loaded, or whose request is still running, is left alone.
|
|
19
|
+
*
|
|
20
|
+
* So each failed image costs at most one request per call, and nothing is retried on a timer.
|
|
21
|
+
* Each attempt uses a new element, so a browser that ignores a repeated `src` still asks again.
|
|
22
|
+
*/
|
|
23
|
+
export declare const retryFailedImages: () => void;
|
|
11
24
|
declare const useImage: ({ url, crossOrigin }: UseImageProps) => UseImageResults;
|
|
12
25
|
export default useImage;
|
|
13
26
|
//# sourceMappingURL=useImage.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useImage.d.ts","sourceRoot":"","sources":["../../../hooks/useImage.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;
|
|
1
|
+
{"version":3,"file":"useImage.d.ts","sourceRoot":"","sources":["../../../hooks/useImage.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AA0DD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,iBAAiB,QAAO,IAUpC,CAAC;AAEF,QAAA,MAAM,QAAQ,GAAI,sBAAsB,aAAa,oBAgDpD,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import { useEffect, useState } from "react";
|
|
2
2
|
// Global cache to share images across all component instances
|
|
3
3
|
const imageCache = new Map();
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
const img = new Image();
|
|
10
|
-
img.crossOrigin = crossOrigin || "anonymous";
|
|
11
|
-
const entry = {
|
|
12
|
-
image: img,
|
|
13
|
-
status: "loading",
|
|
14
|
-
width: 0,
|
|
15
|
-
height: 0,
|
|
16
|
-
subscribers: new Set(),
|
|
17
|
-
};
|
|
18
|
-
imageCache.set(url, entry);
|
|
4
|
+
/** Starts the entry's image element loading `url`. */
|
|
5
|
+
const requestImage = (url, entry) => {
|
|
6
|
+
const img = entry.image;
|
|
7
|
+
img.crossOrigin = entry.crossOrigin;
|
|
8
|
+
entry.status = "loading";
|
|
19
9
|
const onload = () => {
|
|
20
10
|
entry.status = "loaded";
|
|
21
11
|
entry.width = img.width;
|
|
@@ -29,8 +19,48 @@ const loadImage = (url, crossOrigin) => {
|
|
|
29
19
|
img.addEventListener("load", onload);
|
|
30
20
|
img.addEventListener("error", onerror);
|
|
31
21
|
img.src = url;
|
|
22
|
+
};
|
|
23
|
+
const loadImage = (url, crossOrigin) => {
|
|
24
|
+
const existing = imageCache.get(url);
|
|
25
|
+
if (existing) {
|
|
26
|
+
return existing;
|
|
27
|
+
}
|
|
28
|
+
const entry = {
|
|
29
|
+
image: new Image(),
|
|
30
|
+
status: "loading",
|
|
31
|
+
width: 0,
|
|
32
|
+
height: 0,
|
|
33
|
+
crossOrigin: crossOrigin || "anonymous",
|
|
34
|
+
subscribers: new Set(),
|
|
35
|
+
};
|
|
36
|
+
imageCache.set(url, entry);
|
|
37
|
+
requestImage(url, entry);
|
|
32
38
|
return entry;
|
|
33
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* Asks once more for every image whose load failed. A host calls it each time the page can reach
|
|
42
|
+
* the network again, so a picture that failed to load while offline draws without the sheet being
|
|
43
|
+
* reopened.
|
|
44
|
+
*
|
|
45
|
+
* - An image something still draws is requested again at once, and redraws when it loads.
|
|
46
|
+
* - A failed image nothing draws any more is forgotten, so it is requested when it is next drawn.
|
|
47
|
+
* - An image that loaded, or whose request is still running, is left alone.
|
|
48
|
+
*
|
|
49
|
+
* So each failed image costs at most one request per call, and nothing is retried on a timer.
|
|
50
|
+
* Each attempt uses a new element, so a browser that ignores a repeated `src` still asks again.
|
|
51
|
+
*/
|
|
52
|
+
export const retryFailedImages = () => {
|
|
53
|
+
imageCache.forEach((entry, url) => {
|
|
54
|
+
if (entry.status !== "failed")
|
|
55
|
+
return;
|
|
56
|
+
if (entry.subscribers.size === 0) {
|
|
57
|
+
imageCache.delete(url);
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
entry.image = new Image();
|
|
61
|
+
requestImage(url, entry);
|
|
62
|
+
});
|
|
63
|
+
};
|
|
34
64
|
const useImage = ({ url, crossOrigin }) => {
|
|
35
65
|
const [state, setState] = useState(() => {
|
|
36
66
|
if (!url) {
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -14,6 +14,9 @@ export * from "./hooks/useTooltip";
|
|
|
14
14
|
export * from "./hooks/useEditable";
|
|
15
15
|
export * from "./types";
|
|
16
16
|
export type { ImageProps } from "./Image";
|
|
17
|
+
export { retryFailedImages } from "./hooks/useImage";
|
|
18
|
+
export { default as useImage } from "./hooks/useImage";
|
|
19
|
+
export type { UseImageProps, UseImageResults } from "./hooks/useImage";
|
|
17
20
|
export * from "./utils";
|
|
18
21
|
export * from "./Context";
|
|
19
22
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.tsx"],"names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,EACP,SAAS,EACT,mBAAmB,EACnB,KAAK,EACL,SAAS,GACV,CAAC;AACF,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC;AACxB,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,YAAY,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvE,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -13,5 +13,7 @@ export * from "./hooks/useUndo";
|
|
|
13
13
|
export * from "./hooks/useTooltip";
|
|
14
14
|
export * from "./hooks/useEditable";
|
|
15
15
|
export * from "./types";
|
|
16
|
+
export { retryFailedImages } from "./hooks/useImage";
|
|
17
|
+
export { default as useImage } from "./hooks/useImage";
|
|
16
18
|
export * from "./utils";
|
|
17
19
|
export * from "./Context";
|
package/package.json
CHANGED