@opexa/portal-components 0.0.269 → 0.0.270
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.
|
@@ -131,10 +131,12 @@ function Video() {
|
|
|
131
131
|
}, [context.guideRef, context.maskRef]);
|
|
132
132
|
return (_jsxs("div", { className: twMerge('relative h-auto w-full overflow-hidden', !context.camera.data && !context.camera.error && !context.camera.loading
|
|
133
133
|
? 'block'
|
|
134
|
-
: 'hidden'), children: [_jsx("video", { ...context.camera.videoProps }), _jsx("svg", { className: "pointer-events-none absolute
|
|
134
|
+
: 'hidden'), children: [_jsx("video", { ...context.camera.videoProps }), _jsx("svg", { className: "pointer-events-none absolute inset-0 size-full", children: _jsx("defs", { children: _jsxs("mask", { id: id, maskUnits: "userSpaceOnUse", children: [_jsx("rect", { x: "0", y: "0", width: "101%", height: "101%", fill: "white" }), _jsx("rect", { x: maskBox.x, y: maskBox.y, width: maskBox.width, height: maskBox.height, fill: "black", rx: "8", ry: "8" })] }) }) }), _jsx("div", { ref: context.maskRef, className: "absolute inset-0 size-full bg-black/60 backdrop-blur-sm", style: {
|
|
135
135
|
mask: `url(#${id})`,
|
|
136
136
|
WebkitMask: `url(#${id})`,
|
|
137
137
|
maskRepeat: 'no-repeat',
|
|
138
138
|
WebkitMaskRepeat: 'no-repeat',
|
|
139
|
+
WebkitTransform: 'translateZ(0)',
|
|
140
|
+
willChange: 'transform',
|
|
139
141
|
} }), _jsx("div", { ref: context.guideRef, className: "border-utility-warning-700 pointer-events-none absolute left-1/2 top-1/2 z-10 aspect-[85.6/53.98] w-[calc(100%-1rem)] max-w-[24.688rem] -translate-x-1/2 -translate-y-1/2 rounded-md border-4 border-dashed transition-all duration-200" })] }));
|
|
140
142
|
}
|
|
@@ -159,11 +159,13 @@ function Video() {
|
|
|
159
159
|
: videoSize.width;
|
|
160
160
|
return (_jsxs("div", { className: twMerge('relative h-auto w-full overflow-hidden', !context.camera.data && !context.camera.error && !context.camera.loading
|
|
161
161
|
? 'block'
|
|
162
|
-
: 'hidden'), children: [_jsx("video", { ...context.camera.videoProps }), _jsx("svg", { className: "pointer-events-none absolute
|
|
162
|
+
: 'hidden'), children: [_jsx("video", { ...context.camera.videoProps }), _jsx("svg", { className: "pointer-events-none absolute inset-1 size-full", children: _jsx("defs", { children: _jsxs("mask", { id: id, maskUnits: "userSpaceOnUse", children: [_jsx("rect", { x: "0", y: "0", width: "101%", height: "101%", fill: "white" }), _jsx("rect", { x: maskBox.x, y: maskBox.y, width: maskBox.width, height: maskBox.height, fill: "black", rx: "8", ry: "8" })] }) }) }), _jsx("div", { ref: context.maskRef, className: "absolute inset-0 size-full bg-black/60 backdrop-blur-sm", style: {
|
|
163
163
|
mask: `url(#${id})`,
|
|
164
164
|
WebkitMask: `url(#${id})`,
|
|
165
165
|
maskRepeat: 'no-repeat',
|
|
166
166
|
WebkitMaskRepeat: 'no-repeat',
|
|
167
|
+
WebkitTransform: 'translateZ(0)',
|
|
168
|
+
willChange: 'transform',
|
|
167
169
|
} }), _jsx("div", { ref: context.guideRef, className: twMerge('border-utility-warning-700 absolute left-1/2 top-1/2 z-20 aspect-square -translate-x-1/2 -translate-y-1/2 rounded-md border-4 border-dashed', context.faceFound && 'border-utility-success-700', guideWidth <= 0 ? 'hidden' : 'block'), style: {
|
|
168
170
|
width: `calc(${guideWidth}px - 2rem)`,
|
|
169
171
|
} })] }));
|