@lincle/react-native-minimap 0.4.0-next.10

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/LICENSE.md ADDED
@@ -0,0 +1,165 @@
1
+ GNU LESSER GENERAL PUBLIC LICENSE
2
+ Version 3, 29 June 2007
3
+
4
+ Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
5
+ Everyone is permitted to copy and distribute verbatim copies
6
+ of this license document, but changing it is not allowed.
7
+
8
+
9
+ This version of the GNU Lesser General Public License incorporates
10
+ the terms and conditions of version 3 of the GNU General Public
11
+ License, supplemented by the additional permissions listed below.
12
+
13
+ 0. Additional Definitions.
14
+
15
+ As used herein, "this License" refers to version 3 of the GNU Lesser
16
+ General Public License, and the "GNU GPL" refers to version 3 of the GNU
17
+ General Public License.
18
+
19
+ "The Library" refers to a covered work governed by this License,
20
+ other than an Application or a Combined Work as defined below.
21
+
22
+ An "Application" is any work that makes use of an interface provided
23
+ by the Library, but which is not otherwise based on the Library.
24
+ Defining a subclass of a class defined by the Library is deemed a mode
25
+ of using an interface provided by the Library.
26
+
27
+ A "Combined Work" is a work produced by combining or linking an
28
+ Application with the Library. The particular version of the Library
29
+ with which the Combined Work was made is also called the "Linked
30
+ Version".
31
+
32
+ The "Minimal Corresponding Source" for a Combined Work means the
33
+ Corresponding Source for the Combined Work, excluding any source code
34
+ for portions of the Combined Work that, considered in isolation, are
35
+ based on the Application, and not on the Linked Version.
36
+
37
+ The "Corresponding Application Code" for a Combined Work means the
38
+ object code and/or source code for the Application, including any data
39
+ and utility programs needed for reproducing the Combined Work from the
40
+ Application, but excluding the System Libraries of the Combined Work.
41
+
42
+ 1. Exception to Section 3 of the GNU GPL.
43
+
44
+ You may convey a covered work under sections 3 and 4 of this License
45
+ without being bound by section 3 of the GNU GPL.
46
+
47
+ 2. Conveying Modified Versions.
48
+
49
+ If you modify a copy of the Library, and, in your modifications, a
50
+ facility refers to a function or data to be supplied by an Application
51
+ that uses the facility (other than as an argument passed when the
52
+ facility is invoked), then you may convey a copy of the modified
53
+ version:
54
+
55
+ a) under this License, provided that you make a good faith effort to
56
+ ensure that, in the event an Application does not supply the
57
+ function or data, the facility still operates, and performs
58
+ whatever part of its purpose remains meaningful, or
59
+
60
+ b) under the GNU GPL, with none of the additional permissions of
61
+ this License applicable to that copy.
62
+
63
+ 3. Object Code Incorporating Material from Library Header Files.
64
+
65
+ The object code form of an Application may incorporate material from
66
+ a header file that is part of the Library. You may convey such object
67
+ code under terms of your choice, provided that, if the incorporated
68
+ material is not limited to numerical parameters, data structure
69
+ layouts and accessors, or small macros, inline functions and templates
70
+ (ten or fewer lines in length), you do both of the following:
71
+
72
+ a) Give prominent notice with each copy of the object code that the
73
+ Library is used in it and that the Library and its use are
74
+ covered by this License.
75
+
76
+ b) Accompany the object code with a copy of the GNU GPL and this license
77
+ document.
78
+
79
+ 4. Combined Works.
80
+
81
+ You may convey a Combined Work under terms of your choice that,
82
+ taken together, effectively do not restrict modification of the
83
+ portions of the Library contained in the Combined Work and reverse
84
+ engineering for debugging such modifications, if you also do each of
85
+ the following:
86
+
87
+ a) Give prominent notice with each copy of the Combined Work that
88
+ the Library is used in it and that the Library and its use are
89
+ covered by this License.
90
+
91
+ b) Accompany the Combined Work with a copy of the GNU GPL and this license
92
+ document.
93
+
94
+ c) For a Combined Work that displays copyright notices during
95
+ execution, include the copyright notice for the Library among
96
+ these notices, as well as a reference directing the user to the
97
+ copies of the GNU GPL and this license document.
98
+
99
+ d) Do one of the following:
100
+
101
+ 0) Convey the Minimal Corresponding Source under the terms of this
102
+ License, and the Corresponding Application Code in a form
103
+ suitable for, and under terms that permit, the user to
104
+ recombine or relink the Application with a modified version of
105
+ the Linked Version to produce a modified Combined Work, in the
106
+ manner specified by section 6 of the GNU GPL for conveying
107
+ Corresponding Source.
108
+
109
+ 1) Use a suitable shared library mechanism for linking with the
110
+ Library. A suitable mechanism is one that (a) uses at run time
111
+ a copy of the Library already present on the user's computer
112
+ system, and (b) will operate properly with a modified version
113
+ of the Library that is interface-compatible with the Linked
114
+ Version.
115
+
116
+ e) Provide Installation Information, but only if you would otherwise
117
+ be required to provide such information under section 6 of the
118
+ GNU GPL, and only to the extent that such information is
119
+ necessary to install and execute a modified version of the
120
+ Combined Work produced by recombining or relinking the
121
+ Application with a modified version of the Linked Version. (If
122
+ you use option 4d0, the Installation Information must accompany
123
+ the Minimal Corresponding Source and Corresponding Application
124
+ Code. If you use option 4d1, you must provide the Installation
125
+ Information in the manner specified by section 6 of the GNU GPL
126
+ for conveying Corresponding Source.)
127
+
128
+ 5. Combined Libraries.
129
+
130
+ You may place library facilities that are a work based on the
131
+ Library side by side in a single library together with other library
132
+ facilities that are not Applications and are not covered by this
133
+ License, and convey such a combined library under terms of your
134
+ choice, if you do both of the following:
135
+
136
+ a) Accompany the combined library with a copy of the same work based
137
+ on the Library, uncombined with any other library facilities,
138
+ conveyed under the terms of this License.
139
+
140
+ b) Give prominent notice with the combined library that part of it
141
+ is a work based on the Library, and explaining where to find the
142
+ accompanying uncombined form of the same work.
143
+
144
+ 6. Revised Versions of the GNU Lesser General Public License.
145
+
146
+ The Free Software Foundation may publish revised and/or new versions
147
+ of the GNU Lesser General Public License from time to time. Such new
148
+ versions will be similar in spirit to the present version, but may
149
+ differ in detail to address new problems or concerns.
150
+
151
+ Each version is given a distinguishing version number. If the
152
+ Library as you received it specifies that a certain numbered version
153
+ of the GNU Lesser General Public License "or any later version"
154
+ applies to it, you have the option of following the terms and
155
+ conditions either of that published version or of any later version
156
+ published by the Free Software Foundation. If the Library as you
157
+ received it does not specify a version number of the GNU Lesser
158
+ General Public License, you may choose any version of the GNU Lesser
159
+ General Public License ever published by the Free Software Foundation.
160
+
161
+ If the Library as you received it specifies that a proxy can decide
162
+ whether future versions of the GNU Lesser General Public License shall
163
+ apply, that proxy's public statement of acceptance of any version is
164
+ permanent authorization for you to choose that version for the
165
+ Library.
@@ -0,0 +1,3 @@
1
+ import { type MiniMapProps } from '../types';
2
+ declare const _default: import("react").NamedExoticComponent<MiniMapProps>;
3
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import MiniMapPlain from '../MiniMapPlain';
3
+ import { memo, useMemo } from 'react';
4
+ import { StyleSheet, useWindowDimensions } from 'react-native';
5
+ const { LincleMinimapContainerStyle } = StyleSheet.create({
6
+ LincleMinimapContainerStyle: {
7
+ alignItems: 'center',
8
+ bottom: 16,
9
+ justifyContent: 'center',
10
+ overflow: 'hidden',
11
+ position: 'absolute',
12
+ right: 16
13
+ },
14
+ LincleMinimapSizeStyle: {
15
+ bottom: 0,
16
+ left: 0,
17
+ pointerEvents: 'box-none',
18
+ position: 'absolute',
19
+ right: 0,
20
+ top: 0
21
+ }
22
+ });
23
+ const MiniMap = ({ gutter, height, node, style: givenStyle, width }) => {
24
+ const { height: lincleHeight, width: lincleWidth } = useWindowDimensions();
25
+ const style = useMemo(() => {
26
+ return Object.assign(Object.assign({}, LincleMinimapContainerStyle), givenStyle);
27
+ }, [
28
+ givenStyle
29
+ ]);
30
+ return (_jsx(MiniMapPlain, { gutter: gutter, height: height, lincleHeight: lincleHeight, lincleWidth: lincleWidth, node: node, style: style, width: width }));
31
+ };
32
+ MiniMap.displayName = 'LincleMiniMap';
33
+ export default memo(MiniMap);
@@ -0,0 +1,8 @@
1
+ type MiniMapNodeEllipseProps = {
2
+ readonly height: number;
3
+ readonly width: number;
4
+ readonly x: number;
5
+ readonly y: number;
6
+ };
7
+ declare const _default: import("react").NamedExoticComponent<MiniMapNodeEllipseProps>;
8
+ export default _default;
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { memo, useMemo } from 'react';
3
+ import { Ellipse } from 'react-native-svg';
4
+ const MiniMapNodeEllipse = ({ height, width, x, y }) => {
5
+ const cx = useMemo(() => {
6
+ return x + width / 2;
7
+ }, [
8
+ width,
9
+ x
10
+ ]);
11
+ const cy = useMemo(() => {
12
+ return y + height / 2;
13
+ }, [
14
+ height,
15
+ y
16
+ ]);
17
+ const rx = useMemo(() => {
18
+ return width / 2;
19
+ }, [
20
+ width
21
+ ]);
22
+ const ry = useMemo(() => {
23
+ return height / 2;
24
+ }, [
25
+ height
26
+ ]);
27
+ return (_jsx(Ellipse, { cx: cx, cy: cy, fill: 'rgba(0, 0, 0, 0.6)', rx: rx, ry: ry }));
28
+ };
29
+ MiniMapNodeEllipse.displayName = 'LincleMiniMapNodeEllipse';
30
+ export default memo(MiniMapNodeEllipse);
@@ -0,0 +1,8 @@
1
+ type MiniMapNodeRectangleProps = {
2
+ readonly height: number;
3
+ readonly width: number;
4
+ readonly x: number;
5
+ readonly y: number;
6
+ };
7
+ declare const _default: import("react").NamedExoticComponent<MiniMapNodeRectangleProps>;
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { memo } from 'react';
3
+ import { Rect } from 'react-native-svg';
4
+ const MiniMapNodeRectangle = ({ height, width, x, y }) => {
5
+ return (_jsx(Rect, { fill: 'rgba(0, 0, 0, 0.6)', height: height, width: width, x: x, y: y }));
6
+ };
7
+ MiniMapNodeRectangle.displayName = 'LincleMiniMapNodeRectangle';
8
+ export default memo(MiniMapNodeRectangle);
@@ -0,0 +1,4 @@
1
+ import { type MiniMapNodeProps } from '../types';
2
+ import { type FunctionComponent } from 'react';
3
+ declare const MiniMapNode: FunctionComponent<MiniMapNodeProps>;
4
+ export default MiniMapNode;
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import Ellipse from './Ellipse';
3
+ import Rectangle from './Rectangle';
4
+ import { useMemo } from 'react';
5
+ const MiniMapNode = ({ height, shape, width, x, y }) => {
6
+ const daShape = useMemo(() => {
7
+ return (shape === 'oval' ?
8
+ (_jsx(Ellipse, { height: height, width: width, x: x, y: y })) :
9
+ (_jsx(Rectangle, { height: height, width: width, x: x, y: y })));
10
+ }, [
11
+ height,
12
+ shape,
13
+ width,
14
+ x,
15
+ y
16
+ ]);
17
+ return daShape;
18
+ };
19
+ MiniMapNode.displayName = 'LincleMiniMapNode';
20
+ export default MiniMapNode;
@@ -0,0 +1,3 @@
1
+ import { type MiniMapPlainProps } from '../types';
2
+ declare const _default: import("react").NamedExoticComponent<MiniMapPlainProps>;
3
+ export default _default;
@@ -0,0 +1,54 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import MiniMapSvg from '../MiniMapSvg';
3
+ import { BlurView } from '@react-native-community/blur';
4
+ import { memo, useMemo } from 'react';
5
+ import { StyleSheet, View } from 'react-native';
6
+ const displayName = 'LincleMiniMap';
7
+ const { blurStyle, viewStyle: defaultViewStyle } = StyleSheet.create({
8
+ blurStyle: {
9
+ bottom: 0,
10
+ left: 0,
11
+ position: 'absolute',
12
+ right: 0,
13
+ top: 0
14
+ },
15
+ viewStyle: {
16
+ alignItems: 'center',
17
+ bottom: 16,
18
+ justifyContent: 'center',
19
+ overflow: 'hidden',
20
+ position: 'relative',
21
+ right: 16
22
+ }
23
+ });
24
+ const MiniMap = ({ gutter, height: givenMapWidth, lincleHeight = 0, lincleWidth = 0, node, style, width: givenMapHeight }) => {
25
+ const { height, width } = useMemo(() => {
26
+ const piWidth = lincleWidth / Math.PI;
27
+ const piHeight = lincleHeight / Math.PI;
28
+ const calcWidth = givenMapWidth !== null && givenMapWidth !== void 0 ? givenMapWidth : Math.min(lincleWidth - 32, Math.max(Math.min(piWidth, piHeight), 128));
29
+ const calcHeight = givenMapHeight !== null && givenMapHeight !== void 0 ? givenMapHeight : Math.min(lincleHeight - 32, Math.max(Math.min(piWidth, piHeight / 1.5), 128));
30
+ return {
31
+ height: calcWidth,
32
+ width: calcHeight
33
+ };
34
+ }, [
35
+ givenMapHeight,
36
+ givenMapWidth,
37
+ lincleHeight,
38
+ lincleWidth
39
+ ]);
40
+ const viewStyle = useMemo(() => {
41
+ return Object.assign(Object.assign({ height,
42
+ width }, defaultViewStyle), style);
43
+ }, [
44
+ height,
45
+ style,
46
+ width
47
+ ]);
48
+ return lincleWidth === 0 ||
49
+ lincleHeight === 0 ?
50
+ null :
51
+ (_jsxs(View, { style: viewStyle, children: [_jsx(BlurView, { blurAmount: 5, blurType: 'light', overlayColor: '', style: blurStyle }), _jsx(MiniMapSvg, { gutter: gutter, height: height, lincleHeight: lincleHeight, lincleWidth: lincleWidth, node: node, width: width })] }));
52
+ };
53
+ MiniMap.displayName = displayName;
54
+ export default memo(MiniMap);
@@ -0,0 +1,3 @@
1
+ import { type MiniMapSvgProps } from '../types';
2
+ declare const _default: import("react").NamedExoticComponent<MiniMapSvgProps>;
3
+ export default _default;
@@ -0,0 +1,135 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import Node from '../MiniMapNode';
3
+ import { useNodePositions, useScale, useTranslate } from '@lincle/react-native-interactive';
4
+ import { memo, useEffect, useMemo, useState } from 'react';
5
+ import { StyleSheet } from 'react-native';
6
+ import { Path, Svg } from 'react-native-svg';
7
+ const displayName = 'LincleMiniMap';
8
+ const { LincleMinimapSvg } = StyleSheet.create({
9
+ LincleMinimapSvg: {
10
+ alignItems: 'center',
11
+ backgroundColor: 'rgba(255 255 255 / 0.95%)',
12
+ cursor: 'pointer',
13
+ display: 'flex',
14
+ pointerEvents: 'auto'
15
+ }
16
+ });
17
+ const MiniMapSvg = ({ gutter: givenGutter = 8, height: mapHeight = 0, lincleHeight = 0, lincleWidth = 0, node: nodeFunction, width: mapWidth = 0 }) => {
18
+ const nodePositions = useNodePositions();
19
+ const { x: translateX, y: translateY } = useTranslate();
20
+ const scale = useScale();
21
+ const [nodes, setNodes] = useState();
22
+ const hasNodes = useMemo(() => {
23
+ return nodes && Object.keys(nodes).length;
24
+ }, [
25
+ nodes
26
+ ]);
27
+ const [nodeSize, setNodeSize] = useState();
28
+ useEffect(() => {
29
+ nodePositions === null || nodePositions === void 0 ? void 0 : nodePositions.subscribe(displayName, (newSize, newNodes) => {
30
+ setNodeSize(newSize);
31
+ setNodes(newNodes);
32
+ });
33
+ return () => {
34
+ nodePositions === null || nodePositions === void 0 ? void 0 : nodePositions.unsubscribe(displayName);
35
+ };
36
+ }, []);
37
+ const viewSize = useMemo(() => {
38
+ const height = lincleHeight / scale;
39
+ const left = -translateX / scale;
40
+ const top = -translateY / scale;
41
+ const width = lincleWidth / scale;
42
+ const bottom = top + height;
43
+ const right = left + width;
44
+ return {
45
+ bottom,
46
+ height,
47
+ left,
48
+ right,
49
+ top,
50
+ width
51
+ };
52
+ }, [
53
+ lincleHeight,
54
+ lincleWidth,
55
+ scale,
56
+ translateX,
57
+ translateY
58
+ ]);
59
+ const fullSize = useMemo(() => {
60
+ if (hasNodes &&
61
+ nodeSize) {
62
+ const bottom = Math.max(nodeSize.bottom, viewSize.bottom);
63
+ const left = Math.min(nodeSize.left, viewSize.left);
64
+ const right = Math.max(nodeSize.right, viewSize.right);
65
+ const top = Math.min(nodeSize.top, viewSize.top);
66
+ const height = bottom - top;
67
+ const width = right - left;
68
+ return {
69
+ bottom,
70
+ height,
71
+ left,
72
+ right,
73
+ top,
74
+ width
75
+ };
76
+ }
77
+ return viewSize;
78
+ }, [
79
+ hasNodes,
80
+ nodeSize,
81
+ viewSize
82
+ ]);
83
+ const viewMaskSize = useMemo(() => {
84
+ const scaledHeight = fullSize.height / mapHeight;
85
+ const scaledWidth = fullSize.width / mapWidth;
86
+ const viewScale = Math.max(scaledWidth, scaledHeight);
87
+ const viewHeight = viewScale * mapHeight;
88
+ const viewWidth = viewScale * mapWidth;
89
+ const gutter = givenGutter * viewScale;
90
+ const left = fullSize.left - (viewWidth - fullSize.width) / 2 - gutter;
91
+ const top = fullSize.top - (viewHeight - fullSize.height) / 2 - gutter;
92
+ const height = viewHeight + gutter * 2;
93
+ const width = viewWidth + gutter * 2;
94
+ const bottom = top + height;
95
+ const right = left + width;
96
+ return {
97
+ bottom,
98
+ gutter,
99
+ height,
100
+ left,
101
+ right,
102
+ top,
103
+ width
104
+ };
105
+ }, [
106
+ fullSize,
107
+ givenGutter,
108
+ mapHeight,
109
+ mapWidth
110
+ ]);
111
+ const Nodes = nodes ?
112
+ Object.keys(nodes).map((nodeId) => {
113
+ const node = nodes[nodeId];
114
+ return node ?
115
+ (nodeFunction ?
116
+ nodeFunction(node) :
117
+ (_jsx(Node, { height: node.height, shape: node.shape, width: node.width, x: node.x, y: node.y }, node.id))) :
118
+ null;
119
+ }) :
120
+ null;
121
+ const d = useMemo(() => {
122
+ return `M${viewMaskSize.left - viewMaskSize.gutter},${viewMaskSize.top - viewMaskSize.gutter}h${viewMaskSize.width + viewMaskSize.gutter * 2}v${viewMaskSize.height + viewMaskSize.gutter * 2}h${-viewMaskSize.width - viewMaskSize.gutter * 2}z M${viewSize.left},${viewSize.top}h${viewSize.width}v${viewSize.height}h${-viewSize.width}z`;
123
+ }, [
124
+ viewMaskSize,
125
+ viewSize
126
+ ]);
127
+ const viewBox = useMemo(() => {
128
+ return `${viewMaskSize.left} ${viewMaskSize.top} ${viewMaskSize.width} ${viewMaskSize.height}`;
129
+ }, [
130
+ viewMaskSize
131
+ ]);
132
+ return (_jsxs(Svg, { height: mapHeight, style: LincleMinimapSvg, viewBox: viewBox, width: mapWidth, children: [Nodes, _jsx(Path, { d: d, fill: 'rgba(204, 204, 204, 0.10)', fillRule: 'evenodd' })] }));
133
+ };
134
+ MiniMapSvg.displayName = displayName;
135
+ export default memo(MiniMapSvg);
@@ -0,0 +1,4 @@
1
+ export { default as MiniMap } from './MiniMap';
2
+ export { default as MiniMapNode } from './MiniMapNode';
3
+ export { default as MiniMapPlain } from './MiniMapPlain';
4
+ export { type MiniMapNodeProps, type MiniMapPlainProps, type MiniMapProps } from './types';
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export { default as MiniMap } from './MiniMap';
2
+ export { default as MiniMapNode } from './MiniMapNode';
3
+ export { default as MiniMapPlain } from './MiniMapPlain';
@@ -0,0 +1,27 @@
1
+ import { type Dimensions, type Shape } from '@lincle/react-shared';
2
+ import { type ReactElement } from 'react';
3
+ import { type ViewStyle } from 'react-native';
4
+ export type MiniMapProps = {
5
+ readonly gutter?: number;
6
+ readonly height?: number;
7
+ readonly node?: (dimensions: Dimensions) => ReactElement;
8
+ readonly style?: ViewStyle;
9
+ readonly width?: number;
10
+ };
11
+ export type MiniMapPlainProps = MiniMapProps & {
12
+ readonly lincleHeight: number;
13
+ readonly lincleWidth: number;
14
+ readonly style?: ViewStyle;
15
+ };
16
+ export type MiniMapSvgProps = MiniMapProps & {
17
+ readonly lincleHeight: number;
18
+ readonly lincleWidth: number;
19
+ readonly style?: ViewStyle;
20
+ };
21
+ export type MiniMapNodeProps = {
22
+ readonly height: number;
23
+ readonly shape?: Shape;
24
+ readonly width: number;
25
+ readonly x: number;
26
+ readonly y: number;
27
+ };
package/dist/types.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,106 @@
1
+ {
2
+ "name": "@lincle/react-native-minimap",
3
+ "title": "lincle react native minimap",
4
+ "license": "LGPL-3.0-or-later",
5
+ "version": "0.4.0-next.10",
6
+ "private": false,
7
+ "description": "A 'reactive' React node and edge generator",
8
+ "author": "wallzero @wallzeroblog (http://wallzero.com)",
9
+ "contributors": [
10
+ {
11
+ "name": "Connor Schlesiger",
12
+ "email": "connor@schlesiger.ca",
13
+ "position": "Initial and Lead Developer"
14
+ }
15
+ ],
16
+ "main": "dist/index.js",
17
+ "types": "dist/index.d.ts",
18
+ "files": [
19
+ "dist/",
20
+ "COPYING.md",
21
+ "COPYING.LESSER.md"
22
+ ],
23
+ "homepage": "https://gitlab.com/digested/lincle/tree/master/packages/react-native-minimap/",
24
+ "repository": {
25
+ "type": "git",
26
+ "url": "https://gitlab.com/digested/lincle.git"
27
+ },
28
+ "bugs": {
29
+ "url": "https://gitlab.com/digested/lincle/issues"
30
+ },
31
+ "scripts": {
32
+ "build": "run-s clean:dist build:prod",
33
+ "build:prod": "tsc -p ./tsconfig.json",
34
+ "build:watch": "run-s clean:dist build:prod build:watch:tsc",
35
+ "build:watch:tsc": "tsc -p ./tsconfig.json --watch --pretty --preserveWatchOutput",
36
+ "----------------------------------------------------------------": "",
37
+ "build:prod:config": "",
38
+ "---------------------------------------------------------------": "",
39
+ "lint": "run-p lint:es",
40
+ "lint:es": "eslint --resolve-plugins-relative-to . 'src/**/*.[jt]s?(x)' --ignore-pattern 'src/**/*.(d.ts|json)'",
41
+ "clean": "run-s clean:dist clean:node_modules",
42
+ "clean:node_modules": "rimraf node_modules yarn.lock package-lock.json",
43
+ "clean:dist": "rimraf dist"
44
+ },
45
+ "devDependencies": {
46
+ "@digest/eslint-config-jest": "^4.4.3",
47
+ "@digest/eslint-config-react": "^4.4.3",
48
+ "@digest/eslint-config-typescript": "^4.4.3",
49
+ "@digest/jest-junit": "^4.4.3",
50
+ "@digest/jest-react": "^4.4.3",
51
+ "@digest/jest-typescript": "^4.4.3",
52
+ "@digest/typescript": "^4.4.3",
53
+ "@openspacelabs/react-native-zoomable-view": "^2.1.6",
54
+ "@react-native-community/blur": "^4.4.0",
55
+ "@types/jest": "^29.5.12",
56
+ "@types/node": "^22.1.0",
57
+ "@types/react": "^18.3.3",
58
+ "@types/react-native": "^0.73.0",
59
+ "@types/react-test-renderer": "^18.3.0",
60
+ "cross-env": "^7.0.3",
61
+ "jest-environment-jsdom": "^29.7.0",
62
+ "jest-environment-jsdom-global": "^4.0.0",
63
+ "ncp": "^2.0.0",
64
+ "npm-run-all": "^4.1.5",
65
+ "react": "^18.3.1",
66
+ "react-native": "^0.74.5",
67
+ "react-native-draggable": "^3.3.0",
68
+ "react-native-reanimated": "^3.14.0",
69
+ "react-native-svg": "^15.4.0",
70
+ "react-test-renderer": "^18.3.1",
71
+ "rimraf": "^6.0.1"
72
+ },
73
+ "dependencies": {
74
+ "@lincle/react-native-interactive": "^0.4.0-next.10",
75
+ "@lincle/react-shared": "^0.4.0-next.10"
76
+ },
77
+ "peerDependencies": {
78
+ "@openspacelabs/react-native-zoomable-view": "^2.1.0",
79
+ "@react-native-community/blur": "^4.0.0",
80
+ "react": "^16.0.0 || ^17.0.0 || ^18.0.0",
81
+ "react-native": "^0.72.0",
82
+ "react-native-draggable": "^3.3.0",
83
+ "react-native-reanimated": "^3.0.0",
84
+ "react-native-svg": "^13.0.0"
85
+ },
86
+ "keywords": [
87
+ "library",
88
+ "lincle",
89
+ "typescript",
90
+ "react",
91
+ "reactjs",
92
+ "react-dom",
93
+ "react-native",
94
+ "reactive",
95
+ "react-draggable",
96
+ "interactive",
97
+ "graph",
98
+ "diagram",
99
+ "dag",
100
+ "acyclical graph",
101
+ "cyclical graph",
102
+ "dragndrop",
103
+ "drag"
104
+ ],
105
+ "gitHead": "c672cbc4ddbc1944133ea10ac26a4c04e7d8e3ba"
106
+ }