related-ui-components 1.6.2 → 1.6.4
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/lib/commonjs/app.js +114 -253
- package/lib/commonjs/app.js.map +1 -1
- package/lib/commonjs/components/ScratchCard/ScratchCard.js +137 -94
- package/lib/commonjs/components/ScratchCard/ScratchCard.js.map +1 -1
- package/lib/module/app.js +120 -257
- package/lib/module/app.js.map +1 -1
- package/lib/module/components/ScratchCard/ScratchCard.js +149 -99
- package/lib/module/components/ScratchCard/ScratchCard.js.map +1 -1
- package/lib/typescript/commonjs/app.d.ts.map +1 -1
- package/lib/typescript/commonjs/components/ScratchCard/ScratchCard.d.ts.map +1 -1
- package/lib/typescript/module/app.d.ts.map +1 -1
- package/lib/typescript/module/components/ScratchCard/ScratchCard.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/app.tsx +99 -198
- package/src/components/ScratchCard/ScratchCard.tsx +179 -114
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import React, { useEffect,
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import React, { useState, useEffect, useCallback // Import useCallback
|
|
4
|
+
} from "react";
|
|
5
|
+
import { Canvas, Group, Image, Mask, Path, Rect, Skia, useImage, Text, useFont, notifyChange
|
|
6
|
+
// Import SkPath type
|
|
7
|
+
// Import SkFont type
|
|
8
|
+
// Import SkImage type
|
|
9
|
+
} from "@shopify/react-native-skia";
|
|
10
|
+
import { View, StyleSheet
|
|
11
|
+
|
|
12
|
+
// Optional: for ignoring specific logs if needed
|
|
13
|
+
} from "react-native";
|
|
14
|
+
// Import runOnJS and useSharedValue
|
|
15
|
+
import { runOnJS, useSharedValue } from "react-native-reanimated";
|
|
16
|
+
import { Gesture, GestureDetector, GestureHandlerRootView } from "react-native-gesture-handler";
|
|
17
|
+
|
|
18
|
+
// Ignore specific warning if it appears, related to path mutation - use cautiously
|
|
19
|
+
// LogBox.ignoreLogs(['Skia: SkPath.Make()']);
|
|
8
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
21
|
const ScratchCard = ({
|
|
10
22
|
style,
|
|
11
23
|
children,
|
|
12
|
-
image
|
|
24
|
+
image,
|
|
13
25
|
brushStrokeWidth = 50,
|
|
14
26
|
revealThreshold = 0.8,
|
|
15
27
|
width = 300,
|
|
@@ -21,133 +33,171 @@ const ScratchCard = ({
|
|
|
21
33
|
textFontSize = 16,
|
|
22
34
|
onScratched
|
|
23
35
|
}) => {
|
|
24
|
-
const
|
|
25
|
-
const
|
|
36
|
+
const loadedImg = useImage(image);
|
|
37
|
+
const loadedFont = useFont(textFont, textFontSize);
|
|
26
38
|
const [[areaWidth, areaHeight], setSize] = useState([0, 0]);
|
|
27
39
|
const [isScratched, setScratched] = useState(false);
|
|
28
|
-
const
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
const [isLayoutReady, setLayoutReady] = useState(false);
|
|
41
|
+
const isThresholdReached = useSharedValue(false);
|
|
42
|
+
const path = useSharedValue(Skia.Path.Make());
|
|
43
|
+
useEffect(() => {
|
|
44
|
+
path.value = Skia.Path.Make();
|
|
45
|
+
isThresholdReached.value = false;
|
|
46
|
+
setScratched(false);
|
|
47
|
+
}, [areaWidth, areaHeight]);
|
|
48
|
+
const handleLayout = useCallback(event => {
|
|
49
|
+
const {
|
|
50
|
+
width: newWidth,
|
|
51
|
+
height: newHeight
|
|
52
|
+
} = event.nativeEvent.layout;
|
|
53
|
+
if (newWidth > 0 && newHeight > 0) {
|
|
54
|
+
if (newWidth !== areaWidth || newHeight !== areaHeight) {
|
|
55
|
+
setSize([newWidth, newHeight]);
|
|
56
|
+
}
|
|
57
|
+
if (!isLayoutReady) {
|
|
58
|
+
setLayoutReady(true);
|
|
39
59
|
}
|
|
60
|
+
} else {
|
|
61
|
+
setLayoutReady(false);
|
|
40
62
|
}
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
63
|
+
}, [areaWidth, areaHeight, isLayoutReady]);
|
|
64
|
+
const revealCardOnJS = useCallback(() => {
|
|
65
|
+
setScratched(true);
|
|
66
|
+
onScratched?.();
|
|
67
|
+
}, [onScratched]);
|
|
45
68
|
const pan = Gesture.Pan().averageTouches(true).maxPointers(1).onBegin(e => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
69
|
+
if (!isLayoutReady) return;
|
|
70
|
+
try {
|
|
71
|
+
const newPath = path.value.copy();
|
|
72
|
+
newPath.moveTo(e.x, e.y);
|
|
73
|
+
newPath.lineTo(e.x + 0.001, e.y + 0.001);
|
|
74
|
+
path.value = newPath;
|
|
75
|
+
notifyChange(path);
|
|
76
|
+
} catch (error) {
|
|
77
|
+
console.error("ScratchCard: Error in onBegin:", error);
|
|
78
|
+
}
|
|
49
79
|
}).onChange(e => {
|
|
80
|
+
if (!isLayoutReady || isThresholdReached.value) return;
|
|
50
81
|
try {
|
|
51
|
-
|
|
52
|
-
|
|
82
|
+
const newPath = path.value.copy();
|
|
83
|
+
newPath.lineTo(e.x, e.y);
|
|
84
|
+
path.value = newPath;
|
|
53
85
|
notifyChange(path);
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
86
|
+
const bounds = path.value.getBounds();
|
|
87
|
+
if (!bounds || areaWidth <= 0 || areaHeight <= 0) {
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
const scratchedArea = bounds.width * bounds.height;
|
|
91
|
+
const totalArea = areaWidth * areaHeight;
|
|
92
|
+
if (totalArea > 0 && scratchedArea / totalArea > revealThreshold) {
|
|
93
|
+
if (!isThresholdReached.value) {
|
|
94
|
+
isThresholdReached.value = true;
|
|
95
|
+
runOnJS(revealCardOnJS)();
|
|
96
|
+
}
|
|
97
|
+
}
|
|
65
98
|
} catch (error) {
|
|
66
|
-
console.
|
|
99
|
+
console.error("ScratchCard: Error in onChange (UI Thread):", error);
|
|
67
100
|
}
|
|
68
|
-
|
|
69
|
-
// checkScratchProgress();
|
|
70
101
|
});
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
102
|
+
const textMetrics = React.useMemo(() => {
|
|
103
|
+
if (loadedFont && text && areaWidth > 0 && areaHeight > 0) {
|
|
104
|
+
const metrics = loadedFont.measureText(text);
|
|
105
|
+
const textX = areaWidth / 2 - metrics.width / 2;
|
|
106
|
+
const textY = areaHeight / 2 + metrics.height / 3;
|
|
107
|
+
return {
|
|
108
|
+
x: textX,
|
|
109
|
+
y: textY,
|
|
110
|
+
width: metrics.width,
|
|
111
|
+
height: metrics.height
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
return null;
|
|
115
|
+
}, [loadedFont, text, areaWidth, areaHeight]);
|
|
116
|
+
const canRenderCanvas = isLayoutReady && areaWidth > 0 && areaHeight > 0;
|
|
117
|
+
return /*#__PURE__*/_jsx(GestureHandlerRootView, {
|
|
118
|
+
style: {
|
|
119
|
+
justifyContent: "center",
|
|
120
|
+
alignContent: "center"
|
|
74
121
|
},
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
children:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
children: /*#__PURE__*/_jsx(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
width: areaWidth,
|
|
110
|
-
height: areaHeight
|
|
111
|
-
}) : /*#__PURE__*/_jsxs(Group, {
|
|
112
|
-
children: [/*#__PURE__*/_jsx(Rect, {
|
|
122
|
+
children: /*#__PURE__*/_jsxs(View, {
|
|
123
|
+
onLayout: handleLayout,
|
|
124
|
+
style: [styles.container, style, {
|
|
125
|
+
width,
|
|
126
|
+
height
|
|
127
|
+
}],
|
|
128
|
+
children: [/*#__PURE__*/_jsx(View, {
|
|
129
|
+
style: styles.content,
|
|
130
|
+
children: children
|
|
131
|
+
}), !isScratched && canRenderCanvas && /*#__PURE__*/_jsx(GestureDetector, {
|
|
132
|
+
gesture: pan,
|
|
133
|
+
children: /*#__PURE__*/_jsx(Canvas, {
|
|
134
|
+
style: styles.canvas,
|
|
135
|
+
children: /*#__PURE__*/_jsx(Mask, {
|
|
136
|
+
mode: "luminance",
|
|
137
|
+
mask: /*#__PURE__*/_jsxs(Group, {
|
|
138
|
+
children: [/*#__PURE__*/_jsx(Rect, {
|
|
139
|
+
x: 0,
|
|
140
|
+
y: 0,
|
|
141
|
+
width: areaWidth,
|
|
142
|
+
height: areaHeight,
|
|
143
|
+
color: "white"
|
|
144
|
+
}), /*#__PURE__*/_jsx(Path, {
|
|
145
|
+
path: path,
|
|
146
|
+
color: "black",
|
|
147
|
+
style: "stroke",
|
|
148
|
+
strokeJoin: "round",
|
|
149
|
+
strokeCap: "round",
|
|
150
|
+
strokeWidth: brushStrokeWidth
|
|
151
|
+
})]
|
|
152
|
+
}),
|
|
153
|
+
children: loadedImg ? /*#__PURE__*/_jsx(Image, {
|
|
154
|
+
image: loadedImg,
|
|
155
|
+
fit: "cover",
|
|
113
156
|
x: 0,
|
|
114
157
|
y: 0,
|
|
115
158
|
width: areaWidth,
|
|
116
|
-
height: areaHeight
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
159
|
+
height: areaHeight
|
|
160
|
+
}) : /*#__PURE__*/_jsxs(Group, {
|
|
161
|
+
children: [/*#__PURE__*/_jsx(Rect, {
|
|
162
|
+
x: 0,
|
|
163
|
+
y: 0,
|
|
164
|
+
width: areaWidth,
|
|
165
|
+
height: areaHeight,
|
|
166
|
+
color: backgroundColor
|
|
167
|
+
}), loadedFont && textMetrics && text ? /*#__PURE__*/_jsx(Text, {
|
|
168
|
+
x: textMetrics.x,
|
|
169
|
+
y: textMetrics.y,
|
|
170
|
+
text: text,
|
|
171
|
+
color: textFontColor,
|
|
172
|
+
font: loadedFont
|
|
173
|
+
}) : null]
|
|
174
|
+
})
|
|
125
175
|
})
|
|
126
176
|
})
|
|
127
|
-
})
|
|
128
|
-
})
|
|
177
|
+
})]
|
|
178
|
+
})
|
|
129
179
|
});
|
|
130
180
|
};
|
|
131
181
|
const styles = StyleSheet.create({
|
|
132
182
|
container: {
|
|
133
183
|
position: "relative",
|
|
134
|
-
overflow: "hidden"
|
|
135
|
-
width: "100%",
|
|
136
|
-
height: "100%"
|
|
184
|
+
overflow: "hidden"
|
|
137
185
|
},
|
|
138
186
|
content: {
|
|
139
187
|
position: "absolute",
|
|
140
188
|
top: 0,
|
|
141
189
|
left: 0,
|
|
142
190
|
width: "100%",
|
|
143
|
-
height: "100%"
|
|
191
|
+
height: "100%",
|
|
192
|
+
zIndex: 1
|
|
144
193
|
},
|
|
145
194
|
canvas: {
|
|
146
195
|
position: "absolute",
|
|
147
196
|
top: 0,
|
|
148
197
|
left: 0,
|
|
149
198
|
width: "100%",
|
|
150
|
-
height: "100%"
|
|
199
|
+
height: "100%",
|
|
200
|
+
zIndex: 2
|
|
151
201
|
}
|
|
152
202
|
});
|
|
153
203
|
export default ScratchCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useEffect","
|
|
1
|
+
{"version":3,"names":["React","useState","useEffect","useCallback","Canvas","Group","Image","Mask","Path","Rect","Skia","useImage","Text","useFont","notifyChange","View","StyleSheet","runOnJS","useSharedValue","Gesture","GestureDetector","GestureHandlerRootView","jsx","_jsx","jsxs","_jsxs","ScratchCard","style","children","image","brushStrokeWidth","revealThreshold","width","height","backgroundColor","text","textFont","textFontColor","textFontSize","onScratched","loadedImg","loadedFont","areaWidth","areaHeight","setSize","isScratched","setScratched","isLayoutReady","setLayoutReady","isThresholdReached","path","Make","value","handleLayout","event","newWidth","newHeight","nativeEvent","layout","revealCardOnJS","pan","Pan","averageTouches","maxPointers","onBegin","e","newPath","copy","moveTo","x","y","lineTo","error","console","onChange","bounds","getBounds","scratchedArea","totalArea","textMetrics","useMemo","metrics","measureText","textX","textY","canRenderCanvas","justifyContent","alignContent","onLayout","styles","container","content","gesture","canvas","mode","mask","color","strokeJoin","strokeCap","strokeWidth","fit","font","create","position","overflow","top","left","zIndex"],"sourceRoot":"..\\..\\..\\..\\src","sources":["components/ScratchCard/ScratchCard.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAEVC,QAAQ,EACRC,SAAS,EACTC,WAAW,CAAE;AAAA,OACR,OAAO;AACd,SACEC,MAAM,EACNC,KAAK,EACLC,KAAK,EACLC,IAAI,EACJC,IAAI,EACJC,IAAI,EACJC,IAAI,EACJC,QAAQ,EACRC,IAAI,EACJC,OAAO,EACPC;AACQ;AACA;AACC;AAAA,OACJ,4BAA4B;AACnC,SAEEC,IAAI,EAEJC;;AAEQ;AAAA,OACH,cAAc;AACrB;AACA,SAASC,OAAO,EAAEC,cAAc,QAAQ,yBAAyB;AACjE,SACEC,OAAO,EACPC,eAAe,EACfC,sBAAsB,QACjB,8BAA8B;;AAErC;AACA;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAkBA,MAAMC,WAAuC,GAAGA,CAAC;EAC/CC,KAAK;EACLC,QAAQ;EACRC,KAAK;EACLC,gBAAgB,GAAG,EAAE;EACrBC,eAAe,GAAG,G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,EAAE,MAAM;IACd0E,MAAM,EAAE;EACV,CAAC;EACDd,MAAM,EAAE;IACNU,QAAQ,EAAE,UAAU;IACpBE,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACP1E,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACd0E,MAAM,EAAE;EACV;AACF,CAAC,CAAC;AAEF,eAAejF,WAAW","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AA0BhD,MAAM,CAAC,OAAO,UAAU,GAAG,sBAiF1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScratchCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScratchCard/ScratchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ScratchCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScratchCard/ScratchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AAiBf,OAAO,EACL,SAAS,EAET,SAAS,EAET,kBAAkB,EAEnB,MAAM,cAAc,CAAC;AAYtB,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwL3C,CAAC;AAyBF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"app.d.ts","sourceRoot":"","sources":["../../../src/app.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AA0BhD,MAAM,CAAC,OAAO,UAAU,GAAG,sBAiF1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScratchCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScratchCard/ScratchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"ScratchCard.d.ts","sourceRoot":"","sources":["../../../../../src/components/ScratchCard/ScratchCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAKN,MAAM,OAAO,CAAC;AAiBf,OAAO,EACL,SAAS,EAET,SAAS,EAET,kBAAkB,EAEnB,MAAM,cAAc,CAAC;AAYtB,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAC3B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;CAC1B,CAAC;AAEF,QAAA,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAwL3C,CAAC;AAyBF,eAAe,WAAW,CAAC"}
|