@equinor/fusion-react-hanging-garden 1.6.26 → 1.6.28
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/Garden.d.ts +1 -1
- package/dist/Garden.d.ts.map +1 -1
- package/dist/hooks/useHangingGardenData.d.ts +1 -1
- package/dist/hooks/useHangingGardenData.d.ts.map +1 -1
- package/dist/hooks/useHangingGardenErrorMessage.d.ts +1 -1
- package/dist/hooks/useHangingGardenErrorMessage.d.ts.map +1 -1
- package/dist/hooks/useHangingGardenGetData.d.ts +2 -2
- package/dist/hooks/useHangingGardenGetData.d.ts.map +1 -1
- package/dist/models/ExpandedColumn.d.ts +2 -2
- package/dist/models/ExpandedColumn.d.ts.map +1 -1
- package/dist/models/GardenData.d.ts +1 -1
- package/dist/models/GardenData.d.ts.map +1 -1
- package/dist/models/GardenDataError.d.ts +5 -5
- package/dist/models/GardenDataError.d.ts.map +1 -1
- package/dist/models/HangingGarden.d.ts +6 -6
- package/dist/models/HangingGarden.d.ts.map +1 -1
- package/dist/models/RenderContext.d.ts +6 -6
- package/dist/models/RenderContext.d.ts.map +1 -1
- package/dist/renderHooks/useColumn.d.ts +1 -1
- package/dist/renderHooks/useColumn.d.ts.map +1 -1
- package/dist/renderHooks/useGarden.d.ts +1 -1
- package/dist/renderHooks/useGarden.d.ts.map +1 -1
- package/dist/renderHooks/useGroupHeader.d.ts +1 -1
- package/dist/renderHooks/useGroupHeader.d.ts.map +1 -1
- package/dist/renderHooks/useHeader.d.ts +1 -1
- package/dist/renderHooks/useHeader.d.ts.map +1 -1
- package/dist/renderHooks/useItem.d.ts +1 -1
- package/dist/renderHooks/useItem.d.ts.map +1 -1
- package/dist/renderHooks/useItemDescription.d.ts +1 -1
- package/dist/renderHooks/useItemDescription.d.ts.map +1 -1
- package/dist/renderHooks/usePixiApp.d.ts +1 -1
- package/dist/renderHooks/usePixiApp.d.ts.map +1 -1
- package/dist/renderHooks/usePopover.d.ts +2 -2
- package/dist/renderHooks/usePopover.d.ts.map +1 -1
- package/dist/renderHooks/useRenderQueue.d.ts +1 -1
- package/dist/renderHooks/useRenderQueue.d.ts.map +1 -1
- package/dist/renderHooks/useScrolling.d.ts +1 -1
- package/dist/renderHooks/useScrolling.d.ts.map +1 -1
- package/dist/renderHooks/useTextNode.d.ts +1 -1
- package/dist/renderHooks/useTextNode.d.ts.map +1 -1
- package/dist/renderHooks/useTextureCaches.d.ts +8 -8
- package/dist/renderHooks/useTextureCaches.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/Garden.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
2
|
import { HangingGardenColumnIndex, GardenController } from './models/HangingGarden';
|
|
3
|
-
|
|
3
|
+
type GardenProps = {
|
|
4
4
|
provideController?: MutableRefObject<GardenController | null>;
|
|
5
5
|
};
|
|
6
6
|
declare const Garden: <T extends HangingGardenColumnIndex>({ provideController }: GardenProps) => JSX.Element;
|
package/dist/Garden.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Garden.d.ts","sourceRoot":"","sources":["../src/Garden.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAuB,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AA6BzG,
|
|
1
|
+
{"version":3,"file":"Garden.d.ts","sourceRoot":"","sources":["../src/Garden.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAmC,MAAM,OAAO,CAAC;AAC1E,OAAO,EAAE,wBAAwB,EAAuB,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AA6BzG,KAAK,WAAW,GAAG;IACjB,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;CAC/D,CAAC;AAEF,QAAA,MAAM,MAAM,8DAA+D,WAAW,KAAG,WA2DxF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -38,7 +38,7 @@ export const setItemSearchableValues = (commpkg: HandoverPackage) => ({
|
|
|
38
38
|
setItemSearchableValues
|
|
39
39
|
);
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
type UseHangingGardenData<T> = {
|
|
42
42
|
data: T[];
|
|
43
43
|
error: GardenDataError | null;
|
|
44
44
|
isFetching: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHangingGardenData.d.ts","sourceRoot":"","sources":["../../src/hooks/useHangingGardenData.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,
|
|
1
|
+
{"version":3,"file":"useHangingGardenData.d.ts","sourceRoot":"","sources":["../../src/hooks/useHangingGardenData.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAEH,KAAK,oBAAoB,CAAC,CAAC,IAAI;IAC7B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,cAAc,EAAE,OAAO,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,oBAAoB,sCACC,OAAO,iLAqExC,CAAC"}
|
|
@@ -14,7 +14,7 @@ import { GardenDataError, ErrorMessageProps } from '../models/GardenDataError';
|
|
|
14
14
|
* const { errorMessage } = useHangingGardenErrorMessage('handover', error, retry);
|
|
15
15
|
* return(<ErrorMessage {...errorMessage}>{children}</ErrorMessage>)
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
type UseHangingGardenErrorMessage = {
|
|
18
18
|
errorMessage: ErrorMessageProps | null;
|
|
19
19
|
};
|
|
20
20
|
export declare const useHangingGardenErrorMessage: (resourceName: string, error: GardenDataError | null, onTakeAction: () => void) => UseHangingGardenErrorMessage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHangingGardenErrorMessage.d.ts","sourceRoot":"","sources":["../../src/hooks/useHangingGardenErrorMessage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE/E;;;;;;;;;;;;;;GAcG;AAEH,
|
|
1
|
+
{"version":3,"file":"useHangingGardenErrorMessage.d.ts","sourceRoot":"","sources":["../../src/hooks/useHangingGardenErrorMessage.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAE/E;;;;;;;;;;;;;;GAcG;AAEH,KAAK,4BAA4B,GAAG;IAClC,YAAY,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,4BAA4B,iBACzB,MAAM,SACb,eAAe,GAAG,IAAI,gBACf,MAAM,IAAI,KACvB,4BA0EF,CAAC"}
|
|
@@ -13,12 +13,12 @@ import { HttpResponse } from '@equinor/fusion/lib/http/HttpClient';
|
|
|
13
13
|
* const data = await getData(currentContext.id, true);
|
|
14
14
|
*
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
type GetDataPromise<T> = {
|
|
17
17
|
data: T[];
|
|
18
18
|
cacheAge: Date;
|
|
19
19
|
cacheDurationInMinutes: number;
|
|
20
20
|
};
|
|
21
|
-
|
|
21
|
+
type UseHangingGardenGetData<T> = {
|
|
22
22
|
getData: (invalidateCache?: boolean) => Promise<GetDataPromise<T> | null>;
|
|
23
23
|
error: GardenDataError | null;
|
|
24
24
|
isFetching: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHangingGardenGetData.d.ts","sourceRoot":"","sources":["../../src/hooks/useHangingGardenGetData.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA0B,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGpF,OAAO,EAAgC,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACjG;;;;;;;;;;;;GAYG;AAEH,
|
|
1
|
+
{"version":3,"file":"useHangingGardenGetData.d.ts","sourceRoot":"","sources":["../../src/hooks/useHangingGardenGetData.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA0B,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGpF,OAAO,EAAgC,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACjG;;;;;;;;;;;;GAYG;AAEH,KAAK,cAAc,CAAC,CAAC,IAAI;IAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAAC,QAAQ,EAAE,IAAI,CAAC;IAAC,sBAAsB,EAAE,MAAM,CAAA;CAAE,CAAC;AAEvF,KAAK,uBAAuB,CAAC,CAAC,IAAI;IAChC,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC1E,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,uBAAuB,sCACF,OAAO,8DAmExC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type ExpandedColumn = {
|
|
2
2
|
isExpanded: boolean;
|
|
3
3
|
maxWidth: number;
|
|
4
4
|
index: number;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ExpandedColumns = Record<string, ExpandedColumn>;
|
|
7
7
|
//# sourceMappingURL=ExpandedColumn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExpandedColumn.d.ts","sourceRoot":"","sources":["../../src/models/ExpandedColumn.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ExpandedColumn.d.ts","sourceRoot":"","sources":["../../src/models/ExpandedColumn.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GardenData.d.ts","sourceRoot":"","sources":["../../src/models/GardenData.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"GardenData.d.ts","sourceRoot":"","sources":["../../src/models/GardenData.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC1B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,QAAQ,EAAE,IAAI,CAAC;IACf,sBAAsB,EAAE,MAAM,CAAC;CAChC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FusionApiErrorMessage } from '@equinor/fusion';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ErrorTypes = 'error' | 'accessDenied' | 'notFound' | 'noData' | 'failedDependency' | 'throttle';
|
|
4
|
+
export type ErrorMessageProps = {
|
|
5
5
|
hasError?: boolean;
|
|
6
6
|
errorType?: ErrorTypes;
|
|
7
7
|
message?: unknown;
|
|
@@ -12,12 +12,12 @@ export declare type ErrorMessageProps = {
|
|
|
12
12
|
action?: string;
|
|
13
13
|
onTakeAction?: (event?: React.SyntheticEvent<Element, Event>) => void;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
16
|
-
export
|
|
15
|
+
export type GardenDataErrorTypes = ErrorTypes | 'noCache' | 'NoDataAccess' | 'UnexpectedError';
|
|
16
|
+
export type GardenDataError = {
|
|
17
17
|
errorType: GardenDataErrorTypes;
|
|
18
18
|
errorResponse?: FusionApiErrorMessage | null;
|
|
19
19
|
};
|
|
20
|
-
export
|
|
20
|
+
export type ApiErrorGardenResponse = {
|
|
21
21
|
error: FusionApiErrorMessage & {
|
|
22
22
|
code: GardenDataErrorTypes;
|
|
23
23
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GardenDataError.d.ts","sourceRoot":"","sources":["../../src/models/GardenDataError.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,
|
|
1
|
+
{"version":3,"file":"GardenDataError.d.ts","sourceRoot":"","sources":["../../src/models/GardenDataError.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAExD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,cAAc,GAAG,UAAU,GAAG,QAAQ,GAAG,kBAAkB,GAAG,UAAU,CAAC;AAE5G,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,EAAE,KAAK,CAAC,KAAK,IAAI,CAAC;CACvE,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,SAAS,GAAG,cAAc,GAAG,iBAAiB,CAAC;AAE/F,MAAM,MAAM,eAAe,GAAG;IAC5B,SAAS,EAAE,oBAAoB,CAAC;IAChC,aAAa,CAAC,EAAE,qBAAqB,GAAG,IAAI,CAAC;CAC9C,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,qBAAqB,GAAG;QAC7B,IAAI,EAAE,oBAAoB,CAAC;KAC5B,CAAC;CACH,CAAC"}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { MutableRefObject } from 'react';
|
|
2
2
|
import { ItemRenderContext, HeaderRenderContext } from './RenderContext';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type HangingGardenColumnIndex = Record<string, unknown>;
|
|
4
|
+
export type ColumnGroupHeader = {
|
|
5
5
|
key: string;
|
|
6
6
|
type: 'groupHeader';
|
|
7
7
|
level: number;
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type HangingGardenColumn<T extends HangingGardenColumnIndex> = {
|
|
10
10
|
key: string;
|
|
11
11
|
data: T[] | HangingGardenColumn<T>[];
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type GardenController = {
|
|
14
14
|
clearGarden: () => void;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
16
|
+
export type ColorMode = 'Regular' | 'Color blind';
|
|
17
|
+
export type HangingGardenProps<T extends HangingGardenColumnIndex> = {
|
|
18
18
|
columns: HangingGardenColumn<T>[];
|
|
19
19
|
highlightedColumnKey: string | null;
|
|
20
20
|
highlightedItem: T | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HangingGarden.d.ts","sourceRoot":"","sources":["../../src/models/HangingGarden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEzE,
|
|
1
|
+
{"version":3,"file":"HangingGarden.d.ts","sourceRoot":"","sources":["../../src/models/HangingGarden.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AAEzE,MAAM,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AAE/D,MAAM,MAAM,iBAAiB,GAAG;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,mBAAmB,CAAC,CAAC,SAAS,wBAAwB,IAAI;IACpE,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,CAAC,EAAE,GAAG,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,SAAS,GAAG,aAAa,CAAC;AAElD,MAAM,MAAM,kBAAkB,CAAC,CAAC,SAAS,wBAAwB,IAAI;IACnE,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,CAAC;IAClC,oBAAoB,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,eAAe,EAAE,CAAC,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;IACxC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjE,mBAAmB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACzE,iBAAiB,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAAC;IAC9D,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,8BAA8B,CAAC,EAAE,OAAO,CAAC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as PIXI from 'pixi.js-legacy';
|
|
3
|
-
export
|
|
3
|
+
export type Position = {
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type Size = {
|
|
8
8
|
width: number;
|
|
9
9
|
height: number;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type RenderContext = {
|
|
12
12
|
container: PIXI.Container;
|
|
13
13
|
width: number;
|
|
14
14
|
height: number;
|
|
15
15
|
graphics: PIXI.Graphics;
|
|
16
16
|
createTextNode: (text: string, color: number) => PIXI.Sprite;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type HeaderRenderContext = RenderContext & {
|
|
19
19
|
isHighlighted: boolean;
|
|
20
20
|
isExpanded: boolean;
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type ItemRenderContext = RenderContext & {
|
|
23
23
|
createRect: (position: Position, size: Size, color: number) => void;
|
|
24
24
|
addDot: (color: number, position: Position, borderColor?: number) => void;
|
|
25
25
|
addPopover: (hitArea: PIXI.Rectangle, renderPopover: () => JSX.Element) => void;
|
|
26
26
|
enquedRender: (key: string, render: (context: ItemRenderContext) => void) => void;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type RenderItem = {
|
|
29
29
|
key: string;
|
|
30
30
|
render: (context: ItemRenderContext) => void;
|
|
31
31
|
context: ItemRenderContext;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderContext.d.ts","sourceRoot":"","sources":["../../src/models/RenderContext.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAEvC,
|
|
1
|
+
{"version":3,"file":"RenderContext.d.ts","sourceRoot":"","sources":["../../src/models/RenderContext.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAAG;IACrB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;IACxB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC,MAAM,CAAC;CAC9D,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,aAAa,GAAG;IAChD,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,aAAa,GAAG;IAC9C,UAAU,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpE,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1E,UAAU,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;IAChF,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,KAAK,IAAI,CAAC;CACnF,CAAC;AAEF,MAAM,MAAM,UAAU,GAAG;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC7C,OAAO,EAAE,iBAAiB,CAAC;CAC5B,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { HangingGardenColumn, HangingGardenColumnIndex } from '../models/Hanging
|
|
|
3
3
|
* This hook is used by the Garden and is not intended to be used or implemented
|
|
4
4
|
* outside the Garden component.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
type UseColumn<T extends HangingGardenColumnIndex> = {
|
|
7
7
|
renderColumn: (column: HangingGardenColumn<T>, index: number) => void;
|
|
8
8
|
};
|
|
9
9
|
declare const useColumn: <T extends HangingGardenColumnIndex>() => UseColumn<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useColumn.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useColumn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqB,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAM3G;;;GAGG;AAEH,
|
|
1
|
+
{"version":3,"file":"useColumn.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useColumn.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqB,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAM3G;;;GAGG;AAEH,KAAK,SAAS,CAAC,CAAC,SAAS,wBAAwB,IAAI;IACnD,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACvE,CAAC;AAEF,QAAA,MAAM,SAAS,wDA4Ed,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { HangingGardenColumnIndex } from '../models/HangingGarden';
|
|
|
8
8
|
* This hook is used by the Garden and is not intended to be used or implemented
|
|
9
9
|
* outside the Garden component.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type UseGarden = {
|
|
12
12
|
renderGarden: () => void;
|
|
13
13
|
};
|
|
14
14
|
declare const useGarden: <T extends HangingGardenColumnIndex>() => UseGarden;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGarden.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useGarden.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAuB,MAAM,yBAAyB,CAAC;AAExF;;;;;;;;GAQG;AAEH,
|
|
1
|
+
{"version":3,"file":"useGarden.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useGarden.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAuB,MAAM,yBAAyB,CAAC;AAExF;;;;;;;;GAQG;AAEH,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,SAAS,4CAA2C,SAmFzD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -5,7 +5,7 @@ import { HangingGardenColumnIndex } from '../models/HangingGarden';
|
|
|
5
5
|
* This hook is used by the Garden and is not intended to be used or implemented
|
|
6
6
|
* outside the Garden component.
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
type UseGroupHeader = {
|
|
9
9
|
renderGroupHeader: (key: string, index: number, columnIndex: number, level: number) => void;
|
|
10
10
|
};
|
|
11
11
|
declare const useGroupHeader: <T extends HangingGardenColumnIndex>() => UseGroupHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGroupHeader.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useGroupHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAuB,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAExF;;;;;GAKG;AAEH,
|
|
1
|
+
{"version":3,"file":"useGroupHeader.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useGroupHeader.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAuB,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAExF;;;;;GAKG;AAEH,KAAK,cAAc,GAAG;IACpB,iBAAiB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7F,CAAC;AAEF,QAAA,MAAM,cAAc,4CAA2C,cAgI9D,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { HangingGardenColumnIndex } from '../models/HangingGarden';
|
|
|
6
6
|
* This hook is used by the Garden and is not intended to be used or implemented
|
|
7
7
|
* outside the Garden component.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
type UseHeader = {
|
|
10
10
|
renderHeader: (key: string, index: number) => void;
|
|
11
11
|
};
|
|
12
12
|
declare const useHeader: <T extends HangingGardenColumnIndex>() => UseHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useHeader.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useHeader.tsx"],"names":[],"mappings":"AAKA,OAAO,EAA0C,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAG3G;;;;;;GAMG;AAEH,
|
|
1
|
+
{"version":3,"file":"useHeader.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useHeader.tsx"],"names":[],"mappings":"AAKA,OAAO,EAA0C,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAG3G;;;;;;GAMG;AAEH,KAAK,SAAS,GAAG;IACf,YAAY,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD,CAAC;AAEF,QAAA,MAAM,SAAS,4CAA2C,SAgJzD,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { HangingGardenColumnIndex } from '../models/HangingGarden';
|
|
|
8
8
|
* This hook is used by the Garden and is not intended to be used or implemented
|
|
9
9
|
* outside the Garden component.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type UseItem<T> = {
|
|
12
12
|
renderItem: (item: T, index: number, columnIndex: number) => void;
|
|
13
13
|
};
|
|
14
14
|
declare const useItem: <T extends HangingGardenColumnIndex>() => UseItem<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useItem.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAKnE;;;;;;;;GAQG;AACH,
|
|
1
|
+
{"version":3,"file":"useItem.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useItem.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAKnE;;;;;;;;GAQG;AACH,KAAK,OAAO,CAAC,CAAC,IAAI;IAChB,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACnE,CAAC;AAEF,QAAA,MAAM,OAAO,sDA4JZ,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { HangingGardenColumnIndex } from '../models/HangingGarden';
|
|
|
8
8
|
* This hook is used by the Garden and is not intended to be used or implemented
|
|
9
9
|
* outside the Garden component.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
type UseItemDescription<T> = {
|
|
12
12
|
renderItemDescription: (item: T, index: number, columnIndex: number) => void;
|
|
13
13
|
getRenderedItemDescription: (item: T) => PIXI.Container;
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useItemDescription.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useItemDescription.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAIvC,OAAO,EAAuB,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAExF;;;;;;;GAOG;AAEH,
|
|
1
|
+
{"version":3,"file":"useItemDescription.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useItemDescription.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAIvC,OAAO,EAAuB,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAExF;;;;;;;GAOG;AAEH,KAAK,kBAAkB,CAAC,CAAC,IAAI;IAC3B,qBAAqB,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7E,0BAA0B,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC;CACzD,CAAC;AAEF,QAAA,MAAM,kBAAkB,iEAmEvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -6,7 +6,7 @@ import * as PIXI from 'pixi.js-legacy';
|
|
|
6
6
|
* This hook is used by the Garden and is not intended to be used or implemented
|
|
7
7
|
* outside the Garden component.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
type UsePixiApp = {
|
|
10
10
|
pixiApp: React.MutableRefObject<PIXI.Application | null>;
|
|
11
11
|
};
|
|
12
12
|
declare const usePixiApp: (canvas: React.RefObject<HTMLCanvasElement> | null, container: React.RefObject<HTMLDivElement> | null, backgroundColor: number) => UsePixiApp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePixiApp.d.ts","sourceRoot":"","sources":["../../src/renderHooks/usePixiApp.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAEvC;;;;;GAKG;AACH,
|
|
1
|
+
{"version":3,"file":"usePixiApp.d.ts","sourceRoot":"","sources":["../../src/renderHooks/usePixiApp.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAEvC;;;;;GAKG;AACH,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC1D,CAAC;AAEF,QAAA,MAAM,UAAU,WACN,MAAM,SAAS,CAAC,iBAAiB,CAAC,GAAG,IAAI,aACtC,MAAM,SAAS,CAAC,cAAc,CAAC,GAAG,IAAI,mBAChC,MAAM,KACtB,UA4BF,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import * as PIXI from 'pixi.js-legacy';
|
|
3
|
-
export
|
|
3
|
+
export type UsePopover = {
|
|
4
4
|
popover: JSX.Element | null;
|
|
5
5
|
addPopover: (hitContainer: PIXI.Container, hitArea: PIXI.Rectangle, renderPopover: () => JSX.Element) => void;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type Popover = {
|
|
8
8
|
top: number;
|
|
9
9
|
left: number;
|
|
10
10
|
render: () => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePopover.d.ts","sourceRoot":"","sources":["../../src/renderHooks/usePopover.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAGvC,
|
|
1
|
+
{"version":3,"file":"usePopover.d.ts","sourceRoot":"","sources":["../../src/renderHooks/usePopover.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAGvC,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,EAAE,GAAG,CAAC,OAAO,GAAG,IAAI,CAAC;IAC5B,UAAU,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,MAAM,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC/G,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,GAAG,CAAC,OAAO,CAAC;CAC3B,CAAC;AAEF;;;;;;GAMG;AACH,QAAA,MAAM,UAAU,WAAY,MAAM,KAAG,UAgDpC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ItemRenderContext } from '..';
|
|
3
|
-
export
|
|
3
|
+
export type RenderQueue = {
|
|
4
4
|
enqueueRenderer: (key: string, render: (context: ItemRenderContext) => void, context: ItemRenderContext) => void;
|
|
5
5
|
processRenderQueue: () => void;
|
|
6
6
|
processRenderQueueAnimationFrame: React.MutableRefObject<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRenderQueue.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useRenderQueue.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,iBAAiB,EAAc,MAAM,IAAI,CAAC;AAEnD,
|
|
1
|
+
{"version":3,"file":"useRenderQueue.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useRenderQueue.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,iBAAiB,EAAc,MAAM,IAAI,CAAC;AAEnD,MAAM,MAAM,WAAW,GAAG;IACxB,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,IAAI,EAAE,OAAO,EAAE,iBAAiB,KAAK,IAAI,CAAC;IACjH,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,gCAAgC,EAAE,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;CAClE,CAAC;AAEF;;;;;GAKG;AACH,QAAA,MAAM,cAAc,QAAO,WAoE1B,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MutableRefObject, RefObject, UIEvent } from 'react';
|
|
2
2
|
import { ExpandedColumns } from '../models/ExpandedColumn';
|
|
3
3
|
import { HangingGardenColumn, HangingGardenColumnIndex } from '../models/HangingGarden';
|
|
4
|
-
export
|
|
4
|
+
export type Scroll<T extends HangingGardenColumnIndex> = {
|
|
5
5
|
isScrolling: MutableRefObject<boolean>;
|
|
6
6
|
scrollLeft: MutableRefObject<number>;
|
|
7
7
|
scrollTop: MutableRefObject<number>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useScrolling.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useScrolling.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAuB,OAAO,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAqB,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,
|
|
1
|
+
{"version":3,"file":"useScrolling.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useScrolling.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAuB,OAAO,EAAE,MAAM,OAAO,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAqB,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAG3G,MAAM,MAAM,MAAM,CAAC,CAAC,SAAS,wBAAwB,IAAI;IACvD,WAAW,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACvC,UAAU,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACrC,SAAS,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAC;IACpC,QAAQ,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,EAAE,YAAY,EAAE,MAAM,IAAI,KAAK,IAAI,CAAC;IACzE,yBAAyB,EAAE,CACzB,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,EACjC,oBAAoB,EAAE,MAAM,EAC5B,SAAS,EAAE,MAAM,EACjB,eAAe,CAAC,EAAE,eAAe,KAC9B,OAAO,CAAC;IACb,uBAAuB,EAAE,CACvB,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAAE,EACjC,eAAe,EAAE,CAAC,EAClB,SAAS,EAAE,MAAM,EACjB,eAAe,CAAC,EAAE,eAAe,KAC9B,OAAO,CAAC;CACd,CAAC;AACF;;;;;;GAMG;AACH,QAAA,MAAM,YAAY,+CACR,UAAU,iBAAiB,CAAC,GAAG,IAAI,aAChC,UAAU,cAAc,CAAC,GAAG,IAAI,iCAElC,MAAM,mCACkB,OAAO,cA0GzC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -6,7 +6,7 @@ import * as PIXI from 'pixi.js-legacy';
|
|
|
6
6
|
* This hook is used by the Garden and is not intended to be used or implemented
|
|
7
7
|
* outside the Garden component.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
type UseTextNode = {
|
|
10
10
|
createTextNode: (text: string, color: number) => PIXI.Sprite;
|
|
11
11
|
};
|
|
12
12
|
declare const useTextNode: () => UseTextNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTextNode.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useTextNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAIvC;;;;;;GAMG;AAEH,
|
|
1
|
+
{"version":3,"file":"useTextNode.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useTextNode.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAIvC;;;;;;GAMG;AAEH,KAAK,WAAW,GAAG;IACjB,cAAc,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC,MAAM,CAAC;CAC9D,CAAC;AAEF,QAAA,MAAM,WAAW,QAAO,WA8DvB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as PIXI from 'pixi.js-legacy';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
2
|
+
export type TEXTURE_CACHE_KEYS = 'headers' | 'items' | 'chars' | 'graphics' | 'descriptions' | 'masks' | 'texts' | 'rects';
|
|
3
|
+
export type RenderTextureCache = Record<string, PIXI.RenderTexture>;
|
|
4
|
+
export type TextureCache = Record<string, PIXI.Texture>;
|
|
5
|
+
export type ContainerCache = Record<string, PIXI.Container>;
|
|
6
|
+
export type GraphicsCache = Record<string, PIXI.RenderTexture>;
|
|
7
|
+
export type TooltipsCache = PIXI.Container;
|
|
8
|
+
export type TextureCaches = {
|
|
9
9
|
headers: ContainerCache;
|
|
10
10
|
items: ContainerCache;
|
|
11
11
|
chars: TextureCache;
|
|
@@ -15,7 +15,7 @@ export declare type TextureCaches = {
|
|
|
15
15
|
texts: RenderTextureCache;
|
|
16
16
|
rects: RenderTextureCache;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type Caches = {
|
|
19
19
|
clearTextureCaches: () => void;
|
|
20
20
|
clearItemTextureCaches: () => void;
|
|
21
21
|
addTextureToCache: (cacheKey: keyof TextureCaches, key: string, texture: PIXI.RenderTexture | PIXI.Texture | PIXI.Container | PIXI.Graphics) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTextureCaches.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useTextureCaches.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAEvC,
|
|
1
|
+
{"version":3,"file":"useTextureCaches.d.ts","sourceRoot":"","sources":["../../src/renderHooks/useTextureCaches.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAC;AAEvC,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,OAAO,GACP,OAAO,GACP,UAAU,GACV,cAAc,GACd,OAAO,GACP,OAAO,GACP,OAAO,CAAC;AAEZ,MAAM,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;AACpE,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;AACxD,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;AAC5D,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC;AAC/D,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC;AAE3C,MAAM,MAAM,aAAa,GAAG;IAC1B,OAAO,EAAE,cAAc,CAAC;IACxB,KAAK,EAAE,cAAc,CAAC;IACtB,KAAK,EAAE,YAAY,CAAC;IACpB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,YAAY,EAAE,cAAc,CAAC;IAC7B,KAAK,EAAE,aAAa,CAAC;IACrB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,KAAK,EAAE,kBAAkB,CAAC;CAC3B,CAAC;AAaF,MAAM,MAAM,MAAM,GAAG;IACnB,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,iBAAiB,EAAE,CACjB,QAAQ,EAAE,MAAM,aAAa,EAC7B,GAAG,EAAE,MAAM,EACX,OAAO,EAAE,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,KACxE,IAAI,CAAC;IACV,mBAAmB,EAAE,CACnB,QAAQ,EAAE,MAAM,aAAa,EAC7B,GAAG,EAAE,MAAM,KACR,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,QAAQ,CAAC;CACzE,CAAC;AACF;;;;;;;GAOG;AACH,QAAA,MAAM,gBAAgB,QAAO,MAkD5B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/fusion-react-hanging-garden",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.28",
|
|
4
4
|
"description": "component handling rendering of hanging gardens",
|
|
5
5
|
"author": "",
|
|
6
6
|
"homepage": "https://github.com/equinor/fusion-react-components/tree/master/packages/HangingGarden#readme",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"url": "https://github.com/equinor/fusion-react-components/issues"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@equinor/fusion-react-styles": "^0.5.
|
|
39
|
+
"@equinor/fusion-react-styles": "^0.5.7",
|
|
40
40
|
"@types/history": "4.x",
|
|
41
41
|
"date-fns": "2.28.0",
|
|
42
42
|
"history": "4.x",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"optional": true
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "f02b647462deeaa691af2c67278203f051b6098b"
|
|
65
65
|
}
|