@vincentt-xr/sdk 2.0.0-alpha.7 → 2.0.0-alpha.9
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/GROUNDING.md +5651 -82
- package/README.md +1 -0
- package/dist/CanonicalHeadFrame-BHcWyaiK.js +1506 -0
- package/dist/CanonicalHeadFrame-D-_T1OMU.cjs +1 -0
- package/dist/DebuggerUI-7ngnJsBe.js +275 -0
- package/dist/DebuggerUI-CoglgKdO.cjs +1 -0
- package/dist/FaceRetouch-CLoTfrcs.js +1071 -0
- package/dist/FaceRetouch-J1lC1WbS.cjs +134 -0
- package/dist/FaceSurface-CHAMEeG1.cjs +1 -0
- package/dist/FaceSurface-DmP9AEeC.js +27 -0
- package/dist/SegmentationOverlay-D_FWkcyP.cjs +35 -0
- package/dist/SegmentationOverlay-vn5x_knv.js +6237 -0
- package/dist/SkeletonUtils-C2r90MtN.js +21 -0
- package/dist/SkeletonUtils-CddIup1F.cjs +1 -0
- package/dist/TextLabel-XE0rQSDn.cjs +2 -0
- package/dist/TextLabel-c9BCucOI.js +961 -0
- package/dist/assets/cache.d.ts +99 -0
- package/dist/assets/estimate.d.ts +11 -0
- package/dist/assets/gltfLoader.d.ts +16 -0
- package/dist/assets/index.d.ts +7 -0
- package/dist/assets/loaders.d.ts +43 -0
- package/dist/assets/react.d.ts +33 -0
- package/dist/body-pose/index.d.ts +521 -0
- package/dist/body-trigger/__fixtures__/syntheticBody.d.ts +83 -0
- package/dist/body-trigger/frame.d.ts +88 -0
- package/dist/body-trigger/index.d.ts +6 -0
- package/dist/body-trigger/moves.d.ts +235 -0
- package/dist/body-trigger/trigger.d.ts +75 -0
- package/dist/calibration/calibration.d.ts +75 -0
- package/dist/calibration/index.d.ts +6 -0
- package/dist/calibration/storage.d.ts +13 -0
- package/dist/calibration/types.d.ts +53 -0
- package/dist/calibration/useXRCalibration.d.ts +46 -0
- package/dist/camera/CameraPermissionGate.d.ts +26 -0
- package/dist/camera/devices.d.ts +26 -0
- package/dist/camera/index.d.ts +8 -0
- package/dist/camera/permission.d.ts +86 -0
- package/dist/camera/useCameraPermission.d.ts +35 -0
- package/dist/canonicalFace-BHwyCx1c.js +9 -0
- package/dist/canonicalFace-C83I225R.cjs +1 -0
- package/dist/capabilities/detect.d.ts +45 -0
- package/dist/capabilities/index.d.ts +5 -0
- package/dist/capabilities/types.d.ts +120 -0
- package/dist/capabilities/useXRCapabilities.d.ts +18 -0
- package/dist/compat/environment.d.ts +5 -0
- package/dist/compat/index.d.ts +4 -0
- package/dist/compat/run.d.ts +18 -0
- package/dist/compat/scenarios.d.ts +10 -0
- package/dist/compat/types.d.ts +101 -0
- package/dist/components/BodyInstruction/BodyPoseHint.d.ts +63 -0
- package/dist/components/BodyInstruction/index.d.ts +69 -0
- package/dist/components/BodyInstruction/useBodyPose.d.ts +23 -0
- package/dist/components/BodyTracker/index.d.ts +17 -0
- package/dist/components/BodyTrigger/index.d.ts +49 -0
- package/dist/components/Debugger/DebuggerProvider.d.ts +14 -1
- package/dist/components/Debugger/DebuggerUI.d.ts +3 -1
- package/dist/components/FaceAtlas/FaceAtlasLayer.d.ts +114 -0
- package/dist/components/FaceAtlas/MadeUpCamera.d.ts +80 -0
- package/dist/components/FaceAtlas/constants.d.ts +8 -0
- package/dist/components/FaceAtlas/index.d.ts +7 -0
- package/dist/components/FaceAtlas/useFaceAtlasSurface.d.ts +84 -0
- package/dist/components/FaceAtlas/useFaceSkin.d.ts +84 -0
- package/dist/components/FaceCharacter/ExternalFaceMesh.d.ts +109 -0
- package/dist/components/FaceCharacter/FaceExpressionController.d.ts +53 -0
- package/dist/components/FaceCharacter/FaceMorph.d.ts +71 -0
- package/dist/components/FaceCharacter/FacePiercing.d.ts +65 -0
- package/dist/components/FaceCharacter/FaceReprojection.d.ts +85 -0
- package/dist/components/FaceCharacter/FaceRig.d.ts +38 -0
- package/dist/components/FaceCharacter/FaceSurface.d.ts +49 -0
- package/dist/components/FaceCharacter/FaceSurfaceOccluder.d.ts +39 -0
- package/dist/components/FaceCharacter/PinToFaceMesh.d.ts +68 -0
- package/dist/components/FaceCharacter/index.d.ts +18 -0
- package/dist/components/FaceCharacter/useFaceReprojector.d.ts +10 -0
- package/dist/components/FaceInset/FaceInset.d.ts +68 -0
- package/dist/components/FaceInset/frame.d.ts +94 -0
- package/dist/components/FaceInset/index.d.ts +6 -0
- package/dist/components/FaceInset/material.d.ts +40 -0
- package/dist/components/FaceInset/useFaceInsetTexture.d.ts +37 -0
- package/dist/components/FaceInstruction/FaceExpressionHint.d.ts +43 -0
- package/dist/components/FaceInstruction/index.d.ts +56 -0
- package/dist/components/FaceInstruction/useFaceExpression.d.ts +20 -0
- package/dist/components/FaceLiquify/FaceLiquify.d.ts +49 -0
- package/dist/components/FaceLiquify/debug.d.ts +37 -0
- package/dist/components/FaceLiquify/frame.d.ts +55 -0
- package/dist/components/FaceLiquify/index.d.ts +10 -0
- package/dist/components/FaceLiquify/material.d.ts +39 -0
- package/dist/components/FaceLiquify/pass.d.ts +49 -0
- package/dist/components/FaceLiquify/presence.d.ts +25 -0
- package/dist/components/FaceLiquify/presets.d.ts +82 -0
- package/dist/components/FaceLiquify/selfTest.d.ts +66 -0
- package/dist/components/FaceLiquify/target.d.ts +85 -0
- package/dist/components/FaceLiquify/warp.d.ts +72 -0
- package/dist/components/FaceMesh/canonical/CanonicalFaceMeshRenderer.d.ts +37 -5
- package/dist/components/FaceMesh/canonical/geometryGroups.d.ts +21 -0
- package/dist/components/FaceMesh/canonical/parseCanonicalFaceModel.d.ts +21 -0
- package/dist/components/FaceMesh/canonical/shaders.d.ts +1 -1
- package/dist/components/FaceMesh/index.d.ts +2 -2
- package/dist/components/FaceRetouch/Background.d.ts +3 -1
- package/dist/components/FaceRetouch/FaceRetouch.d.ts +5 -0
- package/dist/components/FaceRetouch/renderState.d.ts +19 -0
- package/dist/components/FaceSwap/FaceMirror.d.ts +46 -0
- package/dist/components/FaceSwap/FaceSwap.d.ts +58 -0
- package/dist/components/FaceSwap/FaceTextureLayer.d.ts +72 -0
- package/dist/components/FaceSwap/faceSwapPlan.d.ts +91 -0
- package/dist/components/FaceSwap/index.d.ts +13 -0
- package/dist/components/FaceSwap/settings.d.ts +300 -0
- package/dist/components/FaceSwap/useFaceTexture.d.ts +35 -0
- package/dist/components/FaceSwap/useLiveFace.d.ts +38 -0
- package/dist/components/FaceSwap/useLiveFaceTexture.d.ts +31 -0
- package/dist/components/FaceWarp3D/FaceWarp3D.d.ts +50 -0
- package/dist/components/FaceWarp3D/index.d.ts +2 -3
- package/dist/components/Faceless/Faceless.d.ts +51 -0
- package/dist/components/Faceless/index.d.ts +2 -0
- package/dist/components/GestureListener/index.d.ts +11 -0
- package/dist/components/HairLock/HairLock.d.ts +39 -0
- package/dist/components/HairLock/index.d.ts +2 -0
- package/dist/components/HairLock/lockGeometry.d.ts +15 -0
- package/dist/components/HandCutout/index.d.ts +35 -0
- package/dist/components/HandInstruction/HandGestureHint.d.ts +70 -0
- package/dist/components/HandInstruction/index.d.ts +74 -0
- package/dist/components/HandInstruction/useHandGesture.d.ts +22 -0
- package/dist/components/HandRig/ForearmOccluder.d.ts +29 -0
- package/dist/components/HandRig/HandAttachment.d.ts +34 -0
- package/dist/components/HandRig/HandOccluder.d.ts +55 -0
- package/dist/components/HandRig/HandTattoo.d.ts +61 -0
- package/dist/components/HandRig/WristAttachment.d.ts +34 -0
- package/dist/components/HandRig/index.d.ts +101 -0
- package/dist/components/HandRig/useArmMask.d.ts +29 -0
- package/dist/components/HandRig/wristSolve.d.ts +69 -0
- package/dist/components/HandTouch/HandTouch.d.ts +62 -0
- package/dist/components/HandTouch/Touchable.d.ts +36 -0
- package/dist/components/HandTouch/index.d.ts +2 -0
- package/dist/components/HandTracker/index.d.ts +10 -0
- package/dist/components/HeadBinding/index.d.ts +14 -0
- package/dist/components/HeadOccluder/CanonicalHeadFrame.d.ts +22 -0
- package/dist/components/HeadOccluder/Earrings.d.ts +55 -0
- package/dist/components/HeadOccluder/HeadAttachment.d.ts +38 -0
- package/dist/components/HeadOccluder/NeckOccluder.d.ts +64 -0
- package/dist/components/HeadOccluder/earringPlacement.d.ts +31 -0
- package/dist/components/HeadOccluder/headAttachmentPoints.d.ts +69 -0
- package/dist/components/HeadOccluder/index.d.ts +57 -3
- package/dist/components/HeadOccluder/useCanonicalHeadFit.d.ts +36 -0
- package/dist/components/HeadOccluder/useLandmarkPoseFit.d.ts +80 -0
- package/dist/components/HolisticTracker/index.d.ts +69 -0
- package/dist/components/HolisticTracker/settings.d.ts +58 -0
- package/dist/components/HolisticTracker/signals.d.ts +49 -0
- package/dist/components/Instruction/HintStage.d.ts +29 -0
- package/dist/components/Instruction/InstructionCue.d.ts +126 -0
- package/dist/components/Instruction/gestureHold.d.ts +20 -0
- package/dist/components/Instruction/ghost.d.ts +129 -0
- package/dist/components/Instruction/hintBlend.d.ts +19 -0
- package/dist/components/Instruction/hintLook.d.ts +81 -0
- package/dist/components/Instruction/hintLoop.d.ts +36 -0
- package/dist/components/Instruction/index.d.ts +41 -0
- package/dist/components/Instruction/useGhostModel.d.ts +33 -0
- package/dist/components/Instruction/useInstructionHold.d.ts +72 -0
- package/dist/components/IrisEffect/IrisMaterial.d.ts +73 -0
- package/dist/components/IrisEffect/index.d.ts +51 -0
- package/dist/components/IrisEffect/settings.d.ts +117 -0
- package/dist/components/LipEffect/LipEffect.d.ts +27 -1
- package/dist/components/LipEffect/LipEffectMaterial.d.ts +95 -7
- package/dist/components/LipEffect/LipEffects.d.ts +12 -0
- package/dist/components/LipEffect/defaults.d.ts +46 -4
- package/dist/components/LipEffect/index.d.ts +11 -3
- package/dist/components/LipEffect/lipShading.d.ts +73 -0
- package/dist/components/LipEffect/settings.d.ts +375 -0
- package/dist/components/LipEffect/shader.d.ts +39 -0
- package/dist/components/LipEffect/types.d.ts +128 -9
- package/dist/components/LipEffect/useLipDesignTextures.d.ts +17 -0
- package/dist/components/LipEffect/uvGuide.d.ts +74 -0
- package/dist/components/Makeup/Blush.d.ts +18 -0
- package/dist/components/Makeup/Brows.d.ts +20 -0
- package/dist/components/Makeup/Contour.d.ts +17 -0
- package/dist/components/Makeup/Eyeliner.d.ts +20 -0
- package/dist/components/Makeup/Eyeshadow.d.ts +20 -0
- package/dist/components/Makeup/Highlighter.d.ts +18 -0
- package/dist/components/Makeup/MakeupDesign.d.ts +37 -0
- package/dist/components/Makeup/MakeupRegion.d.ts +132 -0
- package/dist/components/Makeup/constants.d.ts +44 -0
- package/dist/components/Makeup/design.d.ts +106 -0
- package/dist/components/Makeup/designSamples.d.ts +42 -0
- package/dist/components/Makeup/eyes.d.ts +114 -0
- package/dist/components/Makeup/fields.d.ts +10 -0
- package/dist/components/Makeup/geometry.d.ts +106 -0
- package/dist/components/Makeup/index.d.ts +26 -0
- package/dist/components/Makeup/looks.d.ts +28 -0
- package/dist/components/Makeup/material.d.ts +239 -0
- package/dist/components/Makeup/settings.d.ts +54 -0
- package/dist/components/Makeup/shades.d.ts +143 -0
- package/dist/components/Makeup/shapes.d.ts +27 -0
- package/dist/components/Makeup/skinTone.d.ts +135 -0
- package/dist/components/Makeup/types.d.ts +110 -0
- package/dist/components/Makeup/useMakeupSkinTone.d.ts +40 -0
- package/dist/components/Necklace/Necklace.d.ts +44 -0
- package/dist/components/Necklace/index.d.ts +1 -0
- package/dist/components/ParticleEmitter/ParticleEmitter.d.ts +69 -0
- package/dist/components/ParticleEmitter/index.d.ts +1 -0
- package/dist/components/PersonCutout/index.d.ts +50 -0
- package/dist/components/PersonCutout/personCutout.d.ts +16 -0
- package/dist/components/ScreenImage/components/ScreenImageBody.d.ts +1 -1
- package/dist/components/ScreenImage/index.d.ts +3 -1
- package/dist/components/ScreenImage/materials/ScreenImageBlendMaterial.d.ts +1 -1
- package/dist/components/ScreenImage/materials/ScreenImageMaskMaterial.d.ts +11 -0
- package/dist/components/ScreenImage/source.d.ts +6 -0
- package/dist/components/ScreenImage/types.d.ts +18 -0
- package/dist/components/SegmentationOverlay/SegmentationOverlay.d.ts +37 -0
- package/dist/components/SegmentationOverlay/SegmentationOverlayMaterial.d.ts +31 -0
- package/dist/components/SegmentationOverlay/index.d.ts +9 -0
- package/dist/components/SegmentationOverlay/maskTexture.d.ts +23 -0
- package/dist/components/SegmentationOverlay/providers.d.ts +72 -0
- package/dist/components/SegmentationOverlay/settings.d.ts +65 -0
- package/dist/components/ShoulderOccluder/index.d.ts +43 -0
- package/dist/components/ShoulderOccluder/useCanonicalTorsoFit.d.ts +24 -0
- package/dist/components/SpringSwing/SpringSwing.d.ts +22 -0
- package/dist/components/SpringSwing/index.d.ts +1 -0
- package/dist/components/XRProvider/index.d.ts +16 -2
- package/dist/components/XRScene/renderOutputTarget.d.ts +12 -0
- package/dist/components/XRViewport/hooks/useViewportExternalFaces.d.ts +1 -1
- package/dist/components/XRViewport/hooks/useViewportMediaSource.d.ts +1 -1
- package/dist/components/XRViewport/hooks/useViewportPipeline.d.ts +1 -1
- package/dist/components/index.d.ts +11 -0
- package/dist/config/index.d.ts +0 -1
- package/dist/constants/index.d.ts +4 -1
- package/dist/context-DTxSQvp4.js +13 -0
- package/dist/context-hA0Rb2Xa.cjs +1 -0
- package/dist/contexts-BH7PdKFS.cjs +1 -0
- package/dist/contexts-jak8-tND.js +667 -0
- package/dist/coordinates/feed.d.ts +52 -0
- package/dist/coordinates/index.d.ts +7 -0
- package/dist/coordinates/side.d.ts +40 -0
- package/dist/coordinates/spaces.d.ts +49 -0
- package/dist/coordinates/viewport.d.ts +22 -0
- package/dist/coordinates/world.d.ts +15 -0
- package/dist/debug-ui/default-setting.cjs +2 -2
- package/dist/debug-ui/face-swap-settings/index.d.ts +22 -0
- package/dist/debug-ui/gesture-settings/index.d.ts +14 -0
- package/dist/debug-ui/hierarchy-panel/index.d.ts +3 -2
- package/dist/debug-ui/holistic-tracker-settings/index.d.ts +16 -0
- package/dist/debug-ui/index.d.ts +18 -3
- package/dist/debug-ui/iris-effect-settings/index.d.ts +12 -0
- package/dist/debug-ui/lip-effect-settings/index.d.ts +15 -0
- package/dist/debug-ui/media-source/index.d.ts +1 -1
- package/dist/debug-ui/media-source/session.d.ts +30 -2
- package/dist/debug-ui/media-source.cjs +1 -1
- package/dist/debug-ui/media-source.js +1 -1
- package/dist/debug-ui/object-inspector-panel/index.d.ts +3 -2
- package/dist/debug-ui/product-hotspots/index.d.ts +25 -0
- package/dist/debug-ui/scene-editor/hierarchy-panel.d.ts +3 -1
- package/dist/debug-ui/scene-editor/inspector-panel.d.ts +3 -1
- package/dist/debug-ui/screen-image-settings/index.d.ts +3 -1
- package/dist/debug-ui/screen-text-settings/ScreenTextSettingsPanel.d.ts +1 -1
- package/dist/debug-ui/screen-text-settings/types.d.ts +2 -0
- package/dist/debug-ui/segmentation-overlay-settings/index.d.ts +12 -0
- package/dist/debug-ui/settings-panel/index.d.ts +6 -1
- package/dist/debug-ui/shared/debugWindow.d.ts +51 -0
- package/dist/debug-ui/xr-diagnostics/index.d.ts +26 -0
- package/dist/debug-ui.cjs +3 -3
- package/dist/debug-ui.js +2695 -2547
- package/dist/detector-K8aej4MB.js +59 -0
- package/dist/detector-ijypGtse.cjs +1 -0
- package/dist/entries/all.d.ts +3 -1
- package/dist/entries/core.d.ts +20 -2
- package/dist/entries/face-effects.d.ts +123 -9
- package/dist/entries/instructions.d.ts +48 -0
- package/dist/entries/internal.d.ts +2 -1
- package/dist/entries/low-level.d.ts +49 -3
- package/dist/entries/particles.d.ts +11 -0
- package/dist/entries/product.d.ts +11 -0
- package/dist/entries/tracking.d.ts +60 -2
- package/dist/face-atlas/attributes.d.ts +30 -0
- package/dist/face-atlas/eyes.d.ts +272 -0
- package/dist/face-atlas/faceAtlas.generated.d.ts +46 -0
- package/dist/face-atlas/glsl/atlasVertex.d.ts +46 -0
- package/dist/face-atlas/glsl/common.d.ts +55 -0
- package/dist/face-atlas/glsl/design.d.ts +49 -0
- package/dist/face-atlas/glsl/eyes.d.ts +73 -0
- package/dist/face-atlas/glsl/finish.d.ts +24 -0
- package/dist/face-atlas/glsl/format.d.ts +4 -0
- package/dist/face-atlas/glsl/index.d.ts +59 -0
- package/dist/face-atlas/glsl/shading.d.ts +15 -0
- package/dist/face-atlas/glsl/shapes.d.ts +66 -0
- package/dist/face-atlas/glsl/sparkle.d.ts +19 -0
- package/dist/face-atlas/glsl/uniforms.d.ts +106 -0
- package/dist/face-atlas/guide.d.ts +51 -0
- package/dist/face-atlas/index.d.ts +25 -0
- package/dist/face-atlas/lead.d.ts +117 -0
- package/dist/face-atlas/madeUpCamera.d.ts +125 -0
- package/dist/face-atlas/masks.d.ts +53 -0
- package/dist/face-atlas/obj.d.ts +69 -0
- package/dist/face-atlas/polylines.d.ts +63 -0
- package/dist/face-atlas/probe/FaceSkinProbe.d.ts +208 -0
- package/dist/face-atlas/probe/__fixtures__/emulate.d.ts +9 -0
- package/dist/face-atlas/probe/__fixtures__/face.d.ts +24 -0
- package/dist/face-atlas/probe/constants.d.ts +137 -0
- package/dist/face-atlas/probe/glsl.d.ts +43 -0
- package/dist/face-atlas/probe/lightFit.d.ts +108 -0
- package/dist/face-atlas/probe/schedule.d.ts +44 -0
- package/dist/face-atlas/probe/selfTest.d.ts +87 -0
- package/dist/face-atlas/probe/stats.d.ts +143 -0
- package/dist/face-atlas/probe/targets.d.ts +70 -0
- package/dist/face-atlas/probe/unwrap.d.ts +76 -0
- package/dist/face-atlas/quality.d.ts +28 -0
- package/dist/face-atlas/regions.d.ts +31 -0
- package/dist/face-atlas/registry.d.ts +252 -0
- package/dist/face-atlas/renderState.d.ts +86 -0
- package/dist/face-atlas/selfOcclusion.d.ts +62 -0
- package/dist/face-atlas/shading.d.ts +406 -0
- package/dist/face-atlas/shapes.d.ts +86 -0
- package/dist/face-atlas/sides.d.ts +41 -0
- package/dist/face-atlas/skinMask.d.ts +35 -0
- package/dist/face-atlas/surface.d.ts +155 -0
- package/dist/face-atlas/topology.d.ts +44 -0
- package/dist/face-character/__fixtures__/faceImageDetections.d.ts +25 -0
- package/dist/face-character/__fixtures__/faceNode.d.ts +22 -0
- package/dist/face-character/bindFaceModel.d.ts +106 -0
- package/dist/face-character/canonicalFace.d.ts +17 -0
- package/dist/face-character/canonicalFaceGeometry.d.ts +11 -0
- package/dist/face-character/canonicalFacePositions.d.ts +7 -0
- package/dist/face-character/driveFaceModel.d.ts +57 -0
- package/dist/face-character/expressionOutputs.d.ts +45 -0
- package/dist/face-character/faceExpressions.d.ts +104 -0
- package/dist/face-character/faceImageLandmarker.d.ts +93 -0
- package/dist/face-character/faceMeshBinding.d.ts +62 -0
- package/dist/face-character/faceMorph.d.ts +77 -0
- package/dist/face-character/faceMorphs.d.ts +46 -0
- package/dist/face-character/facePhoto.d.ts +138 -0
- package/dist/face-character/facePiercings.d.ts +116 -0
- package/dist/face-character/facePin.d.ts +131 -0
- package/dist/face-character/faceReprojection.d.ts +273 -0
- package/dist/face-character/faceReprojector.d.ts +171 -0
- package/dist/face-character/faceRig.d.ts +176 -0
- package/dist/face-character/faceSwapPresence.d.ts +85 -0
- package/dist/face-character/faceTexture.d.ts +169 -0
- package/dist/face-character/faceTextureBaker.d.ts +86 -0
- package/dist/face-character/faceTextureGuide.d.ts +106 -0
- package/dist/face-character/faceTextureStats.d.ts +298 -0
- package/dist/face-character/faceTransfer.d.ts +396 -0
- package/dist/face-character/faceTransferGeometry.d.ts +109 -0
- package/dist/face-character/faceTransferSelfTest.d.ts +94 -0
- package/dist/face-character/faceWarp3D.d.ts +101 -0
- package/dist/face-character/faceless.d.ts +79 -0
- package/dist/face-character/featureWarp.d.ts +28 -0
- package/dist/face-character/liveFaceRegistry.d.ts +370 -0
- package/dist/face-character/liveValue.d.ts +12 -0
- package/dist/face-character/memo.d.ts +15 -0
- package/dist/face-effects.cjs +2324 -1
- package/dist/face-effects.js +14208 -2268
- package/dist/face-expression/index.d.ts +182 -0
- package/dist/face-info/landmarks.d.ts +17 -3
- package/dist/face-info/types.d.ts +20 -3
- package/dist/gestures/definitions.d.ts +98 -0
- package/dist/gestures/detector.d.ts +87 -0
- package/dist/gestures/index.d.ts +8 -0
- package/dist/gestures/measures.d.ts +114 -0
- package/dist/gestures/settings.d.ts +49 -0
- package/dist/getFaceInfo-B1otSDMX.cjs +1 -0
- package/dist/getFaceInfo-Cu4xDWiL.js +62 -0
- package/dist/hand/armFit.d.ts +46 -0
- package/dist/hand/armMask.d.ts +178 -0
- package/dist/hand/handCutout.d.ts +23 -0
- package/dist/hand/handCutoutRegistry.d.ts +7 -0
- package/dist/hand/handGestures.d.ts +524 -0
- package/dist/hand/handPose.d.ts +98 -0
- package/dist/hand/handRigSolver.d.ts +159 -0
- package/dist/hand/handTattoo.d.ts +81 -0
- package/dist/hand/handTouch.d.ts +240 -0
- package/dist/hand/wrist.d.ts +44 -0
- package/dist/hand/wristFilter.d.ts +44 -0
- package/dist/hooks/selectors.d.ts +76 -1
- package/dist/hooks/useCalibrationFaceTracker.d.ts +1 -1
- package/dist/hooks/useFaceInfo.d.ts +13 -1
- package/dist/hooks/useFaceInfos.d.ts +1 -1
- package/dist/hooks/useFaceModelAcquisition.d.ts +38 -0
- package/dist/hooks/useGesture.d.ts +32 -0
- package/dist/hooks/useIrisTracking.d.ts +45 -0
- package/dist/hooks/useTrackerContext.d.ts +6 -0
- package/dist/hooks/useXRDiagnostics.d.ts +81 -0
- package/dist/hooks/useXRModel.d.ts +7 -0
- package/dist/hooks/useXRSession/facade.d.ts +42 -2
- package/dist/hooks/useXRSession/index.d.ts +2 -2
- package/dist/hooks/useXRSession/reason.d.ts +3 -1
- package/dist/hooks/useXRSession/registry.d.ts +14 -0
- package/dist/hooks/useXRSession/store.d.ts +52 -3
- package/dist/index-B1_TzJaI.js +1104 -0
- package/dist/index-BavF06C6.js +190 -0
- package/dist/index-BfFmpddl.cjs +21 -0
- package/dist/index-BuBzneeW.cjs +46 -0
- package/dist/index-CGsQWodV.cjs +1 -0
- package/dist/index-CIe7eCMH.js +3200 -0
- package/dist/index-CfSF8LXa.cjs +1 -0
- package/dist/index-D5GTzOzD.cjs +1 -0
- package/dist/index-DBhQzvVa.js +314 -0
- package/dist/index-DE17y0ZI.cjs +1 -0
- package/dist/index-JII7huPk.js +442 -0
- package/dist/index-tpCr9CLj.cjs +1 -0
- package/dist/index-w1S7fI2B.js +1432 -0
- package/dist/index-zGaqrz_K.js +188 -0
- package/dist/instructions.cjs +30 -0
- package/dist/instructions.js +1507 -0
- package/dist/{internal-Dmk1cTXq.js → internal-B90P-clC.js} +138 -119
- package/dist/internal-Cjinca64.cjs +1 -0
- package/dist/internal.cjs +1 -1
- package/dist/internal.js +15 -10
- package/dist/iris/compute.d.ts +27 -0
- package/dist/iris/index.d.ts +4 -0
- package/dist/iris/lead.d.ts +19 -0
- package/dist/iris/types.d.ts +89 -0
- package/dist/landmarkMask-BFDyBnKM.js +224 -0
- package/dist/landmarkMask-u7es2k4X.cjs +1 -0
- package/dist/landmarks-BlUqf5MZ.cjs +1 -0
- package/dist/landmarks-bftdwq6Z.js +76 -0
- package/dist/loaders-BGAUACsd.js +363 -0
- package/dist/loaders-BJ1_QCHt.cjs +1 -0
- package/dist/low-level.cjs +1 -1
- package/dist/low-level.js +1190 -675
- package/dist/main.cjs +1 -1
- package/dist/main.js +1190 -452
- package/dist/models/Base/index.d.ts +49 -0
- package/dist/models/Body/index.d.ts +3 -1
- package/dist/models/Face/constants.d.ts +8 -0
- package/dist/models/Face/index.d.ts +4 -12
- package/dist/models/Face/rotation.d.ts +18 -3
- package/dist/models/Hand/GestureTracking.d.ts +1 -1
- package/dist/models/Hand/HandTracking.d.ts +17 -1
- package/dist/models/Holistic/index.d.ts +49 -0
- package/dist/models/Holistic/result.d.ts +68 -0
- package/dist/models/Segmentation/index.d.ts +2 -0
- package/dist/models/SemanticSegmentation/index.d.ts +31 -0
- package/dist/models/SemanticSegmentation/presets.d.ts +28 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/nodeSource.d.ts +9 -0
- package/dist/particles/emission.d.ts +24 -0
- package/dist/particles/eyes.d.ts +24 -0
- package/dist/particles/glsl.d.ts +14 -0
- package/dist/particles/index.d.ts +10 -0
- package/dist/particles/motion.d.ts +42 -0
- package/dist/particles/presets.d.ts +12 -0
- package/dist/particles/ring.d.ts +58 -0
- package/dist/particles/selfTest.d.ts +53 -0
- package/dist/particles/settings.d.ts +127 -0
- package/dist/particles/shapes.d.ts +29 -0
- package/dist/particles/spawner.d.ts +60 -0
- package/dist/particles/system.d.ts +64 -0
- package/dist/particles.cjs +122 -0
- package/dist/particles.js +774 -0
- package/dist/product/ProductDimensions.d.ts +16 -0
- package/dist/product/ProductHotspot.d.ts +16 -0
- package/dist/product/ProductViewer.d.ts +9 -0
- package/dist/product/details.d.ts +53 -0
- package/dist/product/index.d.ts +14 -0
- package/dist/product/loadModelViewer.d.ts +4 -0
- package/dist/product/types.d.ts +71 -0
- package/dist/product/useProductAr.d.ts +37 -0
- package/dist/product/useProductDetails.d.ts +60 -0
- package/dist/product.cjs +1 -0
- package/dist/product.js +414 -0
- package/dist/providers-C8rE26Uf.js +366 -0
- package/dist/providers-DHsrhDI2.cjs +62 -0
- package/dist/quality/XRQualityController.d.ts +25 -0
- package/dist/quality/controller.d.ts +33 -0
- package/dist/quality/index.d.ts +6 -0
- package/dist/quality/types.d.ts +100 -0
- package/dist/quality/useXRQuality.d.ts +28 -0
- package/dist/render/renderPasses.d.ts +8 -0
- package/dist/render/sceneBeforeRender.d.ts +12 -0
- package/dist/{renderGroups-KZk6eRiY.js → renderGroups-B38pUaX2.js} +1 -1
- package/dist/{renderGroups-80H3DpTl.cjs → renderGroups-Cb_4Ar1Q.cjs} +1 -1
- package/dist/renderPasses-B6l8IpJv.js +1290 -0
- package/dist/renderPasses-dqmkft4P.cjs +158 -0
- package/dist/renderState-CJNmj5jz.js +39 -0
- package/dist/renderState-apSfg4eR.cjs +1 -0
- package/dist/scene-object.cjs +1 -1
- package/dist/scene-object.js +2 -2
- package/dist/segmentation-Cb3ouK6Z.js +1758 -0
- package/dist/segmentation-D9pYO6aR.cjs +1 -0
- package/dist/segmentation2d/faceMemory.d.ts +28 -0
- package/dist/segmentation2d/faceRegions.d.ts +24 -0
- package/dist/segmentation2d/index.d.ts +9 -0
- package/dist/segmentation2d/maskUv.d.ts +23 -0
- package/dist/segmentation2d/rasterize.d.ts +14 -0
- package/dist/segmentation2d/types.d.ts +52 -0
- package/dist/select-Ck5LGz-J.cjs +1 -0
- package/dist/select-pYRo_win.js +233 -0
- package/dist/selectors-C4X71aoD.cjs +1 -0
- package/dist/selectors-DmNaKIwE.js +196 -0
- package/dist/session-BrH8G7iJ.cjs +31 -0
- package/dist/session-DgA_z6O1.js +418 -0
- package/dist/settings-BJ7FMBsO.js +111 -0
- package/dist/settings-C63FMBlF.cjs +1 -0
- package/dist/similarityFit-BFqHND2e.cjs +1 -0
- package/dist/similarityFit-Bbz-R8AY.js +91 -0
- package/dist/spring/index.d.ts +2 -0
- package/dist/spring/spring.d.ts +69 -0
- package/dist/spring/swing.d.ts +54 -0
- package/dist/subjects/index.d.ts +2 -0
- package/dist/subjects/select.d.ts +62 -0
- package/dist/subjects/types.d.ts +55 -0
- package/dist/tracking-config/apply.d.ts +57 -0
- package/dist/tracking-config/index.d.ts +7 -0
- package/dist/tracking-config/resolve.d.ts +25 -0
- package/dist/tracking-config/storage.d.ts +8 -0
- package/dist/tracking-config/types.d.ts +106 -0
- package/dist/tracking-config/useXRTrackingConfig.d.ts +38 -0
- package/dist/tracking.cjs +10 -1
- package/dist/tracking.js +1326 -506
- package/dist/trigger-D0Pm9noT.cjs +49 -0
- package/dist/trigger-IQeys0oS.js +2128 -0
- package/dist/types/compositor.d.ts +21 -0
- package/dist/types/face.d.ts +20 -1
- package/dist/types/hand-tracking.d.ts +9 -0
- package/dist/types/holistic.d.ts +121 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/model.d.ts +22 -2
- package/dist/types/nodes.d.ts +47 -3
- package/dist/types/segmentation.d.ts +24 -0
- package/dist/types/session.d.ts +41 -3
- package/dist/updateThrottle-BseecYag.js +4 -0
- package/dist/updateThrottle-Of5Y4SVa.cjs +1 -0
- package/dist/useFaceInfo-BHDNCvsJ.cjs +1 -0
- package/dist/useFaceInfo-J4x7LsqL.js +76 -0
- package/dist/useFaceResultReader-BvEo5REG.js +61 -0
- package/dist/useFaceResultReader-DuaL1KJG.cjs +1 -0
- package/dist/useInstructionHold-DOu-RpCM.js +53 -0
- package/dist/useInstructionHold-DwJY1Alr.cjs +1 -0
- package/dist/useLandmarkPoseFit-Bg-h9BPb.cjs +1 -0
- package/dist/useLandmarkPoseFit-Bmb3h6Mw.js +87 -0
- package/dist/useXRCapabilities-Cr3RzuAW.cjs +1 -0
- package/dist/useXRCapabilities-Cxmlmpbd.js +30 -0
- package/dist/utils/canonicalRigidLandmarks.d.ts +8 -0
- package/dist/utils/fns.d.ts +6 -3
- package/dist/utils/headOccluderFit.d.ts +42 -0
- package/dist/utils/integrity.d.ts +21 -1
- package/dist/utils/resolveNumFaces.d.ts +13 -0
- package/dist/utils/shoulderOccluderFit.d.ts +38 -0
- package/dist/utils/similarityFit.d.ts +23 -0
- package/dist/utils/updateThrottle.d.ts +2 -0
- package/dist/utils/useStableUniforms.d.ts +18 -0
- package/dist/uv-BMFt19bg.cjs +1 -0
- package/dist/{index-ByoNj0QP.js → uv-DJU_XfmN.js} +15 -247
- package/docs/SDK_DOCUMENTATION.md +1 -2
- package/docs/api/adaptive-quality.mdx +104 -0
- package/docs/api/asset-lifecycle.mdx +78 -0
- package/docs/api/body-instructions.mdx +285 -0
- package/docs/api/body-triggers.mdx +234 -0
- package/docs/api/camera-permission.mdx +142 -0
- package/docs/api/coordinate-spaces.mdx +168 -0
- package/docs/api/cross-camera.mdx +89 -0
- package/docs/api/debug-ui-scene-editor.mdx +23 -2
- package/docs/api/diagnostics-calibration.mdx +97 -0
- package/docs/api/external-face-mesh.mdx +231 -0
- package/docs/api/face-actions.mdx +20 -16
- package/docs/api/face-attribute-expression.mdx +1 -1
- package/docs/api/face-binding-anchors.mdx +4 -2
- package/docs/api/face-character.mdx +157 -0
- package/docs/api/face-effects.mdx +9 -0
- package/docs/api/face-expression-controller.mdx +153 -0
- package/docs/api/face-info.mdx +17 -11
- package/docs/api/face-inset.mdx +204 -0
- package/docs/api/face-instructions.mdx +183 -0
- package/docs/api/face-liquify.mdx +196 -0
- package/docs/api/face-mesh.mdx +8 -9
- package/docs/api/face-morph.mdx +117 -0
- package/docs/api/face-painting.mdx +7 -0
- package/docs/api/face-reprojection.mdx +154 -0
- package/docs/api/face-retouching.mdx +18 -10
- package/docs/api/face-swap.mdx +350 -0
- package/docs/api/face-warp-3d.mdx +166 -0
- package/docs/api/faceless.mdx +143 -0
- package/docs/api/gestures.mdx +209 -0
- package/docs/api/hair.mdx +97 -0
- package/docs/api/hand-instructions.mdx +222 -0
- package/docs/api/hand-rig.mdx +535 -0
- package/docs/api/hand-touch.mdx +162 -0
- package/docs/api/head-occluder.mdx +563 -0
- package/docs/api/holistic-tracker.mdx +164 -0
- package/docs/api/instructions.mdx +323 -0
- package/docs/api/iris-tracking.mdx +247 -0
- package/docs/api/made-up-camera.mdx +131 -0
- package/docs/api/makeup-skin-tone.mdx +135 -0
- package/docs/api/makeup.mdx +353 -0
- package/docs/api/multi-subject.mdx +98 -0
- package/docs/api/particles.mdx +155 -0
- package/docs/api/person-cutout.mdx +136 -0
- package/docs/api/pin-to-face-mesh.mdx +274 -0
- package/docs/api/product-ar.mdx +114 -0
- package/docs/api/product-details.mdx +78 -0
- package/docs/api/screen-space-coordinates.mdx +4 -1
- package/docs/api/segmentation-overlay.mdx +301 -0
- package/docs/api/session-lifecycle.mdx +136 -0
- package/docs/api/trackers.mdx +5 -0
- package/docs/api/tracking-config.mdx +108 -0
- package/docs/docs.json +51 -1
- package/docs/examples/lip-shaders.mdx +273 -0
- package/docs/guides/face-atlas-template.svg +1 -0
- package/docs/guides/face-atlas-textures.mdx +186 -0
- package/docs/guides/face-texture-template.svg +1 -0
- package/docs/guides/harness-debug-ui.mdx +4 -4
- package/docs/guides/lip-effect-textures.mdx +368 -0
- package/docs/guides/lip-uv-template.png +0 -0
- package/docs/guides/lip-uv-template.svg +1 -0
- package/docs/guides/makeup-design-textures.mdx +109 -0
- package/docs/introduction.mdx +1 -2
- package/package.json +23 -1
- package/dist/DebuggerUI-B6bP6P9r.cjs +0 -1
- package/dist/DebuggerUI-BjOMr8q_.js +0 -269
- package/dist/FaceMeshRenderer-C5l6VLdO.cjs +0 -155
- package/dist/FaceMeshRenderer-wjAHrJzP.js +0 -1270
- package/dist/FaceRetouch-BkJzoA79.cjs +0 -134
- package/dist/FaceRetouch-DwbKQJAN.js +0 -551
- package/dist/components/FaceWarp3D/FaceWarp3DHead.d.ts +0 -15
- package/dist/components/FaceWarp3D/defaults.d.ts +0 -37
- package/dist/components/FaceWarp3D/warp.d.ts +0 -13
- package/dist/contexts-ByhzppYl.js +0 -663
- package/dist/contexts-Dr62It_K.cjs +0 -1
- package/dist/debug-ui/face-warp-3d/index.d.ts +0 -6
- package/dist/getFaceInfo-C4QpCQIY.js +0 -118
- package/dist/getFaceInfo-fA1bFBub.cjs +0 -1
- package/dist/index-9dlAQAhy.js +0 -1462
- package/dist/index-BjmTe9eM.cjs +0 -1
- package/dist/index-BpEf2BBb.cjs +0 -1
- package/dist/index-CyUUurQT.cjs +0 -1
- package/dist/index-DCiMbxC3.cjs +0 -1
- package/dist/index-DXT3WccE.js +0 -2089
- package/dist/index-DpI-qo5X.cjs +0 -17
- package/dist/index-DyVF4vEW.js +0 -111
- package/dist/index-VJ0SJwmG.js +0 -214
- package/dist/internal-Cq-TEQ5Y.cjs +0 -1
- package/dist/renderLayers-lDtL0_43.cjs +0 -1
- package/dist/renderLayers-zrK2pv5O.js +0 -13
- package/dist/renderPasses-BOoBSr8z.cjs +0 -21
- package/dist/renderPasses-BcquyVtu.js +0 -1500
- package/dist/selectors-B8H97CKA.js +0 -59
- package/dist/selectors-CZLKT2Iv.cjs +0 -1
- package/dist/session-CpkiK5YA.cjs +0 -31
- package/dist/session-DLFN_VII.js +0 -363
- package/dist/useFaceInfo-BJ8-_MOs.cjs +0 -1
- package/dist/useFaceInfo-Dk426LTu.js +0 -62
- package/dist/useFaceResults-CtetsO9M.js +0 -19
- package/dist/useFaceResults-wBJF3zyp.cjs +0 -1
package/dist/index-DXT3WccE.js
DELETED
|
@@ -1,2089 +0,0 @@
|
|
|
1
|
-
import { jsx as d, jsxs as W, Fragment as ge } from "react/jsx-runtime";
|
|
2
|
-
import { useThree as he, useFrame as se } from "@react-three/fiber";
|
|
3
|
-
import { useMemo as x, forwardRef as at, useEffect as te, useState as Ae, useRef as P, useCallback as be, useLayoutEffect as ot } from "react";
|
|
4
|
-
import * as B from "three";
|
|
5
|
-
import { Vector2 as st, Raycaster as lt, Ray as ct, Vector3 as _, Quaternion as We, Euler as At } from "three";
|
|
6
|
-
import { e as ht, a as Ne, u as Ie, S as dt, M as gt } from "./index-VJ0SJwmG.js";
|
|
7
|
-
import { z as ce, m as ft } from "./FaceMeshRenderer-wjAHrJzP.js";
|
|
8
|
-
import { W as O, U as ne, Z as Ue, X as Ve, s as ut, t as St, b as Xe, P as vt, L as mt, R as Ct, E as Et, Y as je, I as bt } from "./renderPasses-BcquyVtu.js";
|
|
9
|
-
import { d as It, j as yt, k as Tt, f as Bt, c as wt, S as pt } from "./contexts-ByhzppYl.js";
|
|
10
|
-
import { b as Qt, r as Mt } from "./index-ByoNj0QP.js";
|
|
11
|
-
import { T as xt, s as kt } from "./index-DyVF4vEW.js";
|
|
12
|
-
import { a as Lt } from "./useFaceInfo-Dk426LTu.js";
|
|
13
|
-
import { g as Ft, e as Yt, u as Wt } from "./index-9dlAQAhy.js";
|
|
14
|
-
import { useTexture as Xt } from "@react-three/drei";
|
|
15
|
-
const ie = {
|
|
16
|
-
width: 720,
|
|
17
|
-
height: 1280
|
|
18
|
-
}, Dt = (t = [0.5, 0.5]) => [
|
|
19
|
-
t[0] * 2 - 1,
|
|
20
|
-
t[1] * 2 - 1
|
|
21
|
-
], fe = ({
|
|
22
|
-
position: t = [0, 0],
|
|
23
|
-
size: e = [1, 1]
|
|
24
|
-
}) => {
|
|
25
|
-
const n = e[0] / 2, r = e[1] / 2;
|
|
26
|
-
return {
|
|
27
|
-
left: t[0] - n,
|
|
28
|
-
right: t[0] + n,
|
|
29
|
-
top: t[1] + r,
|
|
30
|
-
bottom: t[1] - r
|
|
31
|
-
};
|
|
32
|
-
}, Pt = ({
|
|
33
|
-
position: t = [0, 0],
|
|
34
|
-
size: e,
|
|
35
|
-
canvasSize: n = ie
|
|
36
|
-
}) => {
|
|
37
|
-
const r = n.width / 2 || ie.width / 2, a = n.height / 2 || ie.height / 2, i = e ?? [n.width, n.height];
|
|
38
|
-
return fe({
|
|
39
|
-
position: [t[0] / r, t[1] / a],
|
|
40
|
-
size: [i[0] / r, i[1] / a]
|
|
41
|
-
});
|
|
42
|
-
}, Ze = ({
|
|
43
|
-
coordinateSpace: t = "normalized",
|
|
44
|
-
canvasSize: e = ie,
|
|
45
|
-
position: n,
|
|
46
|
-
size: r,
|
|
47
|
-
fallbackAnchors: a
|
|
48
|
-
}) => a || (!n && !r ? fe({}) : t === "canvas" ? Pt({ position: n, size: r, canvasSize: e }) : fe({ position: n, size: r })), k = (t, e) => {
|
|
49
|
-
if (!Number.isFinite(t) || t <= 0) throw new RangeError(`${e} must be positive`);
|
|
50
|
-
return t;
|
|
51
|
-
}, Rt = (t, e) => {
|
|
52
|
-
const n = k(e.width, "root.width"), r = k(e.height, "root.height");
|
|
53
|
-
return !Number.isFinite(t.width) || !Number.isFinite(t.height) || t.width <= 0 || t.height <= 0 ? 0 : Math.min(t.width / n, t.height / r);
|
|
54
|
-
}, ye = (t, e, n, r) => e.width <= 0 || e.height <= 0 ? Object.assign(r, { x: 0, y: 0 }) : (k(n.width, "root.width"), k(n.height, "root.height"), r.x = (t.x / e.width - 0.5) * n.width, r.y = (0.5 - t.y / e.height) * n.height, r), Te = (t, e, n, r) => e.width <= 0 || e.height <= 0 ? Object.assign(r, { x: 0, y: 0 }) : (k(n.width, "root.width"), k(n.height, "root.height"), r.x = (t.x / n.width + 0.5) * e.width, r.y = (0.5 - t.y / n.height) * e.height, r), qe = ({
|
|
55
|
-
parentSize: t,
|
|
56
|
-
referencePixelsPerUnit: e = ne,
|
|
57
|
-
root: n = O
|
|
58
|
-
}) => Rt(t, n) * (ne / k(e, "referencePixelsPerUnit")), dr = (t, e) => t * qe(e), gr = (t, e) => {
|
|
59
|
-
const n = qe(e);
|
|
60
|
-
return n === 0 ? 0 : t / n;
|
|
61
|
-
}, fr = ({
|
|
62
|
-
point: t,
|
|
63
|
-
parentSize: e,
|
|
64
|
-
referencePixelsPerUnit: n = ne,
|
|
65
|
-
root: r = O,
|
|
66
|
-
target: a = { x: 0, y: 0 }
|
|
67
|
-
}) => {
|
|
68
|
-
if (e.width <= 0 || e.height <= 0) return Object.assign(a, { x: 0, y: 0 });
|
|
69
|
-
const i = ne / k(n, "referencePixelsPerUnit");
|
|
70
|
-
return a.x = t.x * (e.width / k(r.width, "root.width")) * i, a.y = t.y * (e.height / k(r.height, "root.height")) * i, a;
|
|
71
|
-
}, ur = ({
|
|
72
|
-
point: t,
|
|
73
|
-
parentSize: e,
|
|
74
|
-
referencePixelsPerUnit: n = ne,
|
|
75
|
-
root: r = O,
|
|
76
|
-
target: a = { x: 0, y: 0 }
|
|
77
|
-
}) => {
|
|
78
|
-
if (e.width <= 0 || e.height <= 0) return Object.assign(a, { x: 0, y: 0 });
|
|
79
|
-
const i = ne / k(n, "referencePixelsPerUnit");
|
|
80
|
-
return a.x = t.x / (e.width / k(r.width, "root.width") * i), a.y = t.y / (e.height / k(r.height, "root.height") * i), a;
|
|
81
|
-
}, Sr = ({
|
|
82
|
-
point: t,
|
|
83
|
-
rect: e,
|
|
84
|
-
root: n = O,
|
|
85
|
-
target: r = { x: 0, y: 0 }
|
|
86
|
-
}) => ye({ x: t.x - e.left, y: t.y - e.top }, e, n, r), vr = ({
|
|
87
|
-
point: t,
|
|
88
|
-
rect: e,
|
|
89
|
-
root: n = O,
|
|
90
|
-
target: r = { x: 0, y: 0 }
|
|
91
|
-
}) => (Te(t, e, n, r), r.x += e.left, r.y += e.top, r), _e = ({
|
|
92
|
-
point: t,
|
|
93
|
-
root: e = O,
|
|
94
|
-
target: n = { x: 0, y: 0 },
|
|
95
|
-
viewportSize: r
|
|
96
|
-
}) => ye(
|
|
97
|
-
{ x: t.x * r.width, y: t.y * r.height },
|
|
98
|
-
r,
|
|
99
|
-
e,
|
|
100
|
-
n
|
|
101
|
-
), mr = ({
|
|
102
|
-
point: t,
|
|
103
|
-
root: e = O,
|
|
104
|
-
target: n = { x: 0, y: 0 },
|
|
105
|
-
viewportSize: r
|
|
106
|
-
}) => r.width <= 0 || r.height <= 0 ? Object.assign(n, { x: 0, y: 0 }) : (Te(t, r, e, n), n.x /= r.width, n.y /= r.height, n), Cr = ({
|
|
107
|
-
point: t,
|
|
108
|
-
root: e = O,
|
|
109
|
-
target: n = { x: 0, y: 0 },
|
|
110
|
-
viewportSize: r
|
|
111
|
-
}) => _e({
|
|
112
|
-
point: { x: (t.x + 1) / 2, y: (1 - t.y) / 2 },
|
|
113
|
-
viewportSize: r,
|
|
114
|
-
root: e,
|
|
115
|
-
target: n
|
|
116
|
-
}), Er = ({
|
|
117
|
-
layout: t,
|
|
118
|
-
mirrored: e = !1,
|
|
119
|
-
point: n,
|
|
120
|
-
root: r = O,
|
|
121
|
-
target: a = { x: 0, y: 0 }
|
|
122
|
-
}) => {
|
|
123
|
-
if (t.scale <= 0) return Object.assign(a, { x: 0, y: 0 });
|
|
124
|
-
const i = t.offsetX + n.x * t.scale;
|
|
125
|
-
return ye(
|
|
126
|
-
{
|
|
127
|
-
x: e ? t.destination.width - i : i,
|
|
128
|
-
y: t.offsetY + n.y * t.scale
|
|
129
|
-
},
|
|
130
|
-
t.destination,
|
|
131
|
-
r,
|
|
132
|
-
a
|
|
133
|
-
);
|
|
134
|
-
}, br = ({
|
|
135
|
-
layout: t,
|
|
136
|
-
mirrored: e = !1,
|
|
137
|
-
point: n,
|
|
138
|
-
root: r = O,
|
|
139
|
-
target: a = { x: 0, y: 0 }
|
|
140
|
-
}) => {
|
|
141
|
-
if (t.scale <= 0) return Object.assign(a, { x: 0, y: 0 });
|
|
142
|
-
Te(n, t.destination, r, a);
|
|
143
|
-
const i = e ? t.destination.width - a.x : a.x;
|
|
144
|
-
return a.x = (i - t.offsetX) / t.scale, a.y = (a.y - t.offsetY) / t.scale, a;
|
|
145
|
-
}, le = new _(), De = new st(), Pe = new lt(), Ir = ({
|
|
146
|
-
camera: t,
|
|
147
|
-
point: e,
|
|
148
|
-
root: n = O,
|
|
149
|
-
target: r = { x: 0, y: 0, depth: 0 },
|
|
150
|
-
viewportSize: a
|
|
151
|
-
}) => (k(n.width, "root.width"), k(n.height, "root.height"), le.set(e.x, e.y, e.z).project(t), r.x = le.x * n.width / 2, r.y = le.y * n.height / 2, r.depth = le.z, r), yr = ({
|
|
152
|
-
camera: t,
|
|
153
|
-
point: e,
|
|
154
|
-
root: n = O,
|
|
155
|
-
target: r = new ct(),
|
|
156
|
-
viewportSize: a
|
|
157
|
-
}) => (k(n.width, "root.width"), k(n.height, "root.height"), De.set(e.x * 2 / n.width, e.y * 2 / n.height), Pe.setFromCamera(De, t), r.copy(Pe.ray)), Ot = ({ children: t, depth: e = 0 }) => {
|
|
158
|
-
const { camera: n, size: r } = he(), a = x(() => {
|
|
159
|
-
if (!n.isPerspectiveCamera)
|
|
160
|
-
return { width: 10, height: 10 };
|
|
161
|
-
const i = n, o = Math.abs(i.position.z - e), s = i.fov * Math.PI / 180, l = 2 * Math.tan(s / 2) * o;
|
|
162
|
-
return { width: l * (r.width / r.height), height: l };
|
|
163
|
-
}, [n, r, e]);
|
|
164
|
-
return /* @__PURE__ */ d(ht.Provider, { value: a, children: /* @__PURE__ */ d("group", { position: [0, 0, e], children: t }) });
|
|
165
|
-
}, $e = at(
|
|
166
|
-
({ texture: t, name: e, overlay: n, opacity: r, position: a, rotation: i, scale: o, visible: s, renderOrder: l }, c) => /* @__PURE__ */ W(
|
|
167
|
-
"mesh",
|
|
168
|
-
{
|
|
169
|
-
ref: c,
|
|
170
|
-
name: e,
|
|
171
|
-
position: a,
|
|
172
|
-
rotation: i,
|
|
173
|
-
scale: o,
|
|
174
|
-
visible: s,
|
|
175
|
-
renderOrder: l,
|
|
176
|
-
children: [
|
|
177
|
-
/* @__PURE__ */ d("planeGeometry", { args: [1, 1] }),
|
|
178
|
-
/* @__PURE__ */ d(
|
|
179
|
-
"meshBasicMaterial",
|
|
180
|
-
{
|
|
181
|
-
map: t,
|
|
182
|
-
transparent: !0,
|
|
183
|
-
opacity: r,
|
|
184
|
-
depthTest: !n,
|
|
185
|
-
depthWrite: !n
|
|
186
|
-
}
|
|
187
|
-
)
|
|
188
|
-
]
|
|
189
|
-
}
|
|
190
|
-
)
|
|
191
|
-
);
|
|
192
|
-
$e.displayName = "TextLabelMesh";
|
|
193
|
-
const Gt = {
|
|
194
|
-
color: "#ffffff",
|
|
195
|
-
strokeWidth: 0,
|
|
196
|
-
strokeOpacity: 1,
|
|
197
|
-
shadowBlur: 0,
|
|
198
|
-
shadowOffsetX: 0,
|
|
199
|
-
shadowOffsetY: 0,
|
|
200
|
-
shadowOpacity: 1,
|
|
201
|
-
fontWeight: "bold",
|
|
202
|
-
fontStyle: "normal",
|
|
203
|
-
fontFamily: "Arial, sans-serif",
|
|
204
|
-
fontSize: 48,
|
|
205
|
-
textAlign: "center",
|
|
206
|
-
verticalAlign: "center",
|
|
207
|
-
minFontSize: 12,
|
|
208
|
-
letterSpacing: 0,
|
|
209
|
-
lineSpacing: 0.3,
|
|
210
|
-
bgColor: "rgba(20,40,110,0.88)",
|
|
211
|
-
bgFillMode: "solid",
|
|
212
|
-
bgOpacity: 1,
|
|
213
|
-
bgFit: "full",
|
|
214
|
-
bgTextureFit: "cover",
|
|
215
|
-
bgTextureFlipX: !1,
|
|
216
|
-
bgTextureFlipY: !1,
|
|
217
|
-
borderWidth: 0,
|
|
218
|
-
borderRadius: 24,
|
|
219
|
-
padding: 32,
|
|
220
|
-
aspect: 2.5,
|
|
221
|
-
resolution: 512,
|
|
222
|
-
opacity: 1,
|
|
223
|
-
underline: !1,
|
|
224
|
-
strikethrough: !1,
|
|
225
|
-
bendPreset: "arc",
|
|
226
|
-
bendStrength: 0
|
|
227
|
-
}, ue = (t) => {
|
|
228
|
-
te(
|
|
229
|
-
() => () => {
|
|
230
|
-
t == null || t.dispose();
|
|
231
|
-
},
|
|
232
|
-
[t]
|
|
233
|
-
);
|
|
234
|
-
};
|
|
235
|
-
function Ht(t, e, n) {
|
|
236
|
-
return n === "left" ? e : n === "right" ? t - e : t / 2;
|
|
237
|
-
}
|
|
238
|
-
function Jt(t, e, n, r, a) {
|
|
239
|
-
return a === "top" ? e + n / 2 : a === "bottom" ? t - e - r + n / 2 : t / 2 - (r - n) / 2;
|
|
240
|
-
}
|
|
241
|
-
function zt(t, e, n, r) {
|
|
242
|
-
return r === "full" || n === "left" ? 0 : n === "right" ? t - e : (t - e) / 2;
|
|
243
|
-
}
|
|
244
|
-
function et(t, e, n, r) {
|
|
245
|
-
return `${t} ${e} ${n}px ${r}`;
|
|
246
|
-
}
|
|
247
|
-
function oe(t, e) {
|
|
248
|
-
const n = Math.max(0, Math.min(e, 1));
|
|
249
|
-
return t * n * 0.08;
|
|
250
|
-
}
|
|
251
|
-
function tt(t, e) {
|
|
252
|
-
const n = Math.max(0, Math.min(e, 1));
|
|
253
|
-
return t * (1.2 + n * 0.6);
|
|
254
|
-
}
|
|
255
|
-
function nt(t, e) {
|
|
256
|
-
"letterSpacing" in t && (t.letterSpacing = `${e}px`);
|
|
257
|
-
}
|
|
258
|
-
function rt(t) {
|
|
259
|
-
"letterSpacing" in t && (t.letterSpacing = "0px");
|
|
260
|
-
}
|
|
261
|
-
function re(t, e, n) {
|
|
262
|
-
nt(t, n);
|
|
263
|
-
const r = t.measureText(e).width;
|
|
264
|
-
return rt(t), r;
|
|
265
|
-
}
|
|
266
|
-
function Se(t, e, n, r) {
|
|
267
|
-
return Math.max(1, Math.floor((t - e * 2) / tt(n, r)));
|
|
268
|
-
}
|
|
269
|
-
function Kt(t, e, n, r, a) {
|
|
270
|
-
return e.length <= r && e.every((i) => re(t, i, a) <= n);
|
|
271
|
-
}
|
|
272
|
-
function ve(t, e, n, r, a, i, o, s) {
|
|
273
|
-
t.font = et(r, a, i, o);
|
|
274
|
-
const l = e.split(" "), c = [];
|
|
275
|
-
let A = "";
|
|
276
|
-
for (const f of l) {
|
|
277
|
-
const g = A ? `${A} ${f}` : f;
|
|
278
|
-
re(t, g, s) > n && A ? (c.push(A), A = f) : A = g;
|
|
279
|
-
}
|
|
280
|
-
return A && c.push(A), c;
|
|
281
|
-
}
|
|
282
|
-
function Re(t, e, n, r, a, i, o, s) {
|
|
283
|
-
const c = e.split(/\r?\n/).flatMap((A) => A.trim().length === 0 ? [""] : ve(
|
|
284
|
-
t,
|
|
285
|
-
A,
|
|
286
|
-
n,
|
|
287
|
-
r,
|
|
288
|
-
a,
|
|
289
|
-
i,
|
|
290
|
-
o,
|
|
291
|
-
s
|
|
292
|
-
));
|
|
293
|
-
return c.length > 0 ? c : [e];
|
|
294
|
-
}
|
|
295
|
-
function it(t, e, n, r, a) {
|
|
296
|
-
const i = r ? "..." : "";
|
|
297
|
-
let o = e.trimEnd();
|
|
298
|
-
for (; o.length > 0 && re(t, `${o}${i}`, a) > n; )
|
|
299
|
-
o = o.slice(0, -1).trimEnd();
|
|
300
|
-
return `${o}${i}`;
|
|
301
|
-
}
|
|
302
|
-
function me(t, e, n, r, a) {
|
|
303
|
-
return e.map((i, o) => {
|
|
304
|
-
if (re(t, i, a) <= n) return i;
|
|
305
|
-
const s = o === e.length - 1;
|
|
306
|
-
return it(
|
|
307
|
-
t,
|
|
308
|
-
i,
|
|
309
|
-
n,
|
|
310
|
-
r === "ellipsis" && s,
|
|
311
|
-
a
|
|
312
|
-
);
|
|
313
|
-
});
|
|
314
|
-
}
|
|
315
|
-
function Oe(t, e, n, r, a, i) {
|
|
316
|
-
if (e.length <= n)
|
|
317
|
-
return me(
|
|
318
|
-
t,
|
|
319
|
-
e,
|
|
320
|
-
r,
|
|
321
|
-
a ? "ellipsis" : "clip",
|
|
322
|
-
i
|
|
323
|
-
);
|
|
324
|
-
const o = e.slice(0, n), s = o[n - 1];
|
|
325
|
-
return o[n - 1] = it(
|
|
326
|
-
t,
|
|
327
|
-
s,
|
|
328
|
-
r,
|
|
329
|
-
a,
|
|
330
|
-
i
|
|
331
|
-
), me(
|
|
332
|
-
t,
|
|
333
|
-
o,
|
|
334
|
-
r,
|
|
335
|
-
a ? "ellipsis" : "clip",
|
|
336
|
-
i
|
|
337
|
-
);
|
|
338
|
-
}
|
|
339
|
-
function Nt(t) {
|
|
340
|
-
const {
|
|
341
|
-
ctx: e,
|
|
342
|
-
text: n,
|
|
343
|
-
explicitLines: r,
|
|
344
|
-
maxWidth: a,
|
|
345
|
-
maxHeight: i,
|
|
346
|
-
padding: o,
|
|
347
|
-
fontStyle: s,
|
|
348
|
-
fontWeight: l,
|
|
349
|
-
fontSize: c,
|
|
350
|
-
fontFamily: A,
|
|
351
|
-
letterSpacing: f,
|
|
352
|
-
lineSpacing: g,
|
|
353
|
-
overflow: S,
|
|
354
|
-
resizeToFit: v,
|
|
355
|
-
minFontSize: m
|
|
356
|
-
} = t;
|
|
357
|
-
let u = c, C = oe(u, f), b = r ?? Re(
|
|
358
|
-
e,
|
|
359
|
-
n,
|
|
360
|
-
a,
|
|
361
|
-
s,
|
|
362
|
-
l,
|
|
363
|
-
u,
|
|
364
|
-
A,
|
|
365
|
-
C
|
|
366
|
-
), E = Se(i, o, u, g);
|
|
367
|
-
const p = v === !0 || S === "shrink";
|
|
368
|
-
for (; p && !Kt(e, b, a, E, C) && u > m && (u = Math.max(m, u - 4), C = oe(u, f), b = r ?? Re(
|
|
369
|
-
e,
|
|
370
|
-
n,
|
|
371
|
-
a,
|
|
372
|
-
s,
|
|
373
|
-
l,
|
|
374
|
-
u,
|
|
375
|
-
A,
|
|
376
|
-
C
|
|
377
|
-
), E = Se(i, o, u, g), u !== m); )
|
|
378
|
-
;
|
|
379
|
-
return S === "ellipsis" ? b = Oe(
|
|
380
|
-
e,
|
|
381
|
-
b,
|
|
382
|
-
E,
|
|
383
|
-
a,
|
|
384
|
-
!0,
|
|
385
|
-
C
|
|
386
|
-
) : S === "clamp" || S === "shrink" ? b = Oe(
|
|
387
|
-
e,
|
|
388
|
-
b,
|
|
389
|
-
E,
|
|
390
|
-
a,
|
|
391
|
-
!1,
|
|
392
|
-
C
|
|
393
|
-
) : S !== "clip" && (b = me(e, b, a, void 0, C)), { fontSize: u, lines: b };
|
|
394
|
-
}
|
|
395
|
-
function Ut(t) {
|
|
396
|
-
const {
|
|
397
|
-
ctx: e,
|
|
398
|
-
text: n,
|
|
399
|
-
maxWidth: r,
|
|
400
|
-
maxHeight: a,
|
|
401
|
-
padding: i,
|
|
402
|
-
fontStyle: o,
|
|
403
|
-
fontWeight: s,
|
|
404
|
-
fontSize: l,
|
|
405
|
-
fontFamily: c,
|
|
406
|
-
letterSpacing: A,
|
|
407
|
-
lineSpacing: f
|
|
408
|
-
} = t;
|
|
409
|
-
let g = l, S = ve(
|
|
410
|
-
e,
|
|
411
|
-
n,
|
|
412
|
-
r,
|
|
413
|
-
o,
|
|
414
|
-
s,
|
|
415
|
-
g,
|
|
416
|
-
c,
|
|
417
|
-
oe(g, A)
|
|
418
|
-
);
|
|
419
|
-
const v = Se(a, i, g, f);
|
|
420
|
-
return S.length > v && (g = Math.max(12, Math.round(g * 0.75)), S = ve(
|
|
421
|
-
e,
|
|
422
|
-
n,
|
|
423
|
-
r,
|
|
424
|
-
o,
|
|
425
|
-
s,
|
|
426
|
-
g,
|
|
427
|
-
c,
|
|
428
|
-
oe(g, A)
|
|
429
|
-
)), { fontSize: g, lines: S };
|
|
430
|
-
}
|
|
431
|
-
function Ce(t, e) {
|
|
432
|
-
return typeof OffscreenCanvas < "u" ? new OffscreenCanvas(t, e) : (() => {
|
|
433
|
-
const n = document.createElement("canvas");
|
|
434
|
-
return n.width = t, n.height = e, n;
|
|
435
|
-
})();
|
|
436
|
-
}
|
|
437
|
-
function Vt(t, e) {
|
|
438
|
-
const n = e.width - e.padding * 2, a = Array.isArray(e.lines) || e.text.includes(`
|
|
439
|
-
`) || e.overflow !== void 0 || e.resizeToFit !== void 0 ? Nt({
|
|
440
|
-
ctx: t,
|
|
441
|
-
text: e.text,
|
|
442
|
-
explicitLines: e.lines,
|
|
443
|
-
maxWidth: n,
|
|
444
|
-
maxHeight: e.height,
|
|
445
|
-
padding: e.padding,
|
|
446
|
-
fontStyle: e.fontStyle,
|
|
447
|
-
fontWeight: e.fontWeight,
|
|
448
|
-
fontSize: e.fontSize,
|
|
449
|
-
fontFamily: e.fontFamily,
|
|
450
|
-
overflow: e.overflow,
|
|
451
|
-
resizeToFit: e.resizeToFit,
|
|
452
|
-
minFontSize: e.minFontSize,
|
|
453
|
-
letterSpacing: e.letterSpacing,
|
|
454
|
-
lineSpacing: e.lineSpacing
|
|
455
|
-
}) : Ut({
|
|
456
|
-
ctx: t,
|
|
457
|
-
text: e.text,
|
|
458
|
-
maxWidth: n,
|
|
459
|
-
maxHeight: e.height,
|
|
460
|
-
padding: e.padding,
|
|
461
|
-
fontStyle: e.fontStyle,
|
|
462
|
-
fontWeight: e.fontWeight,
|
|
463
|
-
fontSize: e.fontSize,
|
|
464
|
-
fontFamily: e.fontFamily,
|
|
465
|
-
letterSpacing: e.letterSpacing,
|
|
466
|
-
lineSpacing: e.lineSpacing
|
|
467
|
-
}), i = a.fontSize, o = a.lines;
|
|
468
|
-
t.font = et(e.fontStyle, e.fontWeight, i, e.fontFamily);
|
|
469
|
-
const s = oe(i, e.letterSpacing), l = tt(i, e.lineSpacing), c = Math.max(
|
|
470
|
-
i,
|
|
471
|
-
i + (o.length - 1) * l
|
|
472
|
-
), A = Jt(
|
|
473
|
-
e.height,
|
|
474
|
-
e.padding,
|
|
475
|
-
i,
|
|
476
|
-
c,
|
|
477
|
-
e.verticalAlign
|
|
478
|
-
), f = o.map(
|
|
479
|
-
(g) => re(t, g, s)
|
|
480
|
-
);
|
|
481
|
-
return {
|
|
482
|
-
fontSize: i,
|
|
483
|
-
resolvedLines: o,
|
|
484
|
-
letterSpacingPx: s,
|
|
485
|
-
lineHeight: l,
|
|
486
|
-
startY: A,
|
|
487
|
-
textBlockWidth: Math.min(
|
|
488
|
-
e.width,
|
|
489
|
-
Math.max(0, Math.max(...f, 0)) + e.padding * 2
|
|
490
|
-
),
|
|
491
|
-
textBlockHeight: Math.min(e.height, c + e.padding * 2),
|
|
492
|
-
textX: Ht(e.width, e.padding, e.textAlign)
|
|
493
|
-
};
|
|
494
|
-
}
|
|
495
|
-
function jt(t, e, n, r, a, i) {
|
|
496
|
-
t.beginPath(), t.moveTo(e + i, n), t.lineTo(e + r - i, n), t.quadraticCurveTo(e + r, n, e + r, n + i), t.lineTo(e + r, n + a - i), t.quadraticCurveTo(e + r, n + a, e + r - i, n + a), t.lineTo(e + i, n + a), t.quadraticCurveTo(e, n + a, e, n + a - i), t.lineTo(e, n + i), t.quadraticCurveTo(e, n, e + i, n), t.closePath();
|
|
497
|
-
}
|
|
498
|
-
function Ge(t, e, n) {
|
|
499
|
-
return typeof t != "number" || Number.isNaN(t) || t <= 0 ? e : Math.min(t, n);
|
|
500
|
-
}
|
|
501
|
-
function Zt(t, e) {
|
|
502
|
-
const n = zt(
|
|
503
|
-
e.canvasWidth,
|
|
504
|
-
e.panelWidth,
|
|
505
|
-
e.textAlign,
|
|
506
|
-
e.bgFit
|
|
507
|
-
), r = (e.canvasHeight - e.panelHeight) / 2, a = Math.min(e.borderRadius, Math.min(e.panelWidth, e.panelHeight) / 2);
|
|
508
|
-
jt(t, n, r, e.panelWidth, e.panelHeight, a), qt(t, {
|
|
509
|
-
panelX: n,
|
|
510
|
-
panelY: r,
|
|
511
|
-
panelWidth: e.panelWidth,
|
|
512
|
-
panelHeight: e.panelHeight,
|
|
513
|
-
bgColor: e.bgColor,
|
|
514
|
-
bgFillMode: e.bgFillMode,
|
|
515
|
-
bgOpacity: e.bgOpacity,
|
|
516
|
-
bgGradientStops: e.bgGradientStops,
|
|
517
|
-
bgTextureImage: e.bgTextureImage,
|
|
518
|
-
bgTextureFit: e.bgTextureFit,
|
|
519
|
-
bgTextureFlipX: e.bgTextureFlipX,
|
|
520
|
-
bgTextureFlipY: e.bgTextureFlipY
|
|
521
|
-
}), e.borderColor && e.borderWidth > 0 && (t.lineWidth = e.borderWidth, t.strokeStyle = e.borderColor, t.stroke());
|
|
522
|
-
}
|
|
523
|
-
function qt(t, e) {
|
|
524
|
-
if (t.save(), t.globalAlpha = Math.max(0, Math.min(e.bgOpacity, 1)), e.bgFillMode === "gradient" && e.bgGradientStops && e.bgGradientStops.length > 1) {
|
|
525
|
-
const n = t.createLinearGradient(
|
|
526
|
-
e.panelX,
|
|
527
|
-
e.panelY,
|
|
528
|
-
e.panelX + e.panelWidth,
|
|
529
|
-
e.panelY + e.panelHeight
|
|
530
|
-
);
|
|
531
|
-
[...e.bgGradientStops].sort((r, a) => r.position - a.position).forEach(
|
|
532
|
-
(r) => n.addColorStop(Math.max(0, Math.min(r.position, 1)), r.color)
|
|
533
|
-
), t.fillStyle = n, t.fill(), t.restore();
|
|
534
|
-
return;
|
|
535
|
-
}
|
|
536
|
-
if (e.bgTextureImage) {
|
|
537
|
-
t.clip(), _t(t, {
|
|
538
|
-
image: e.bgTextureImage,
|
|
539
|
-
x: e.panelX,
|
|
540
|
-
y: e.panelY,
|
|
541
|
-
width: e.panelWidth,
|
|
542
|
-
height: e.panelHeight,
|
|
543
|
-
fit: e.bgTextureFit,
|
|
544
|
-
flipX: e.bgTextureFlipX,
|
|
545
|
-
flipY: e.bgTextureFlipY
|
|
546
|
-
}), t.restore();
|
|
547
|
-
return;
|
|
548
|
-
}
|
|
549
|
-
t.fillStyle = e.bgColor, t.fill(), t.restore();
|
|
550
|
-
}
|
|
551
|
-
function _t(t, e) {
|
|
552
|
-
const { image: n, x: r, y: a, width: i, height: o, fit: s, flipX: l, flipY: c } = e, A = "naturalWidth" in n ? n.naturalWidth : "videoWidth" in n ? n.videoWidth : n.width, f = "naturalHeight" in n ? n.naturalHeight : "videoHeight" in n ? n.videoHeight : n.height;
|
|
553
|
-
let g = i, S = o, v = r, m = a;
|
|
554
|
-
if (s !== "stretch" && A > 0 && f > 0) {
|
|
555
|
-
const u = s === "cover" ? Math.max(i / A, o / f) : Math.min(i / A, o / f);
|
|
556
|
-
g = A * u, S = f * u, v = r + (i - g) / 2, m = a + (o - S) / 2;
|
|
557
|
-
}
|
|
558
|
-
t.save(), (l || c) && (t.translate(l ? r + i : 0, c ? a + o : 0), t.scale(l ? -1 : 1, c ? -1 : 1), v = l ? -(v - r) - g + r : v, m = c ? -(m - a) - S + a : m), t.drawImage(n, v, m, g, S), t.restore();
|
|
559
|
-
}
|
|
560
|
-
function $t(t, e, n, r, a, i) {
|
|
561
|
-
const o = a / 72, s = Math.abs(o), l = 1 - Math.min(1, Math.abs(e)), c = Math.min(1, Math.abs(e)), A = r <= 1 ? 0.5 : n / (r - 1), f = Math.sin(A * Math.PI * 2 - Math.PI / 2), g = Math.sin(A * Math.PI * 2.7 - Math.PI / 2) * (0.65 + A * 0.35), S = a * e * e, v = 2 * a * e / i, m = {
|
|
562
|
-
xOffset: 0,
|
|
563
|
-
yOffset: 0,
|
|
564
|
-
rotation: 0,
|
|
565
|
-
scaleX: 1,
|
|
566
|
-
scaleY: 1
|
|
567
|
-
};
|
|
568
|
-
switch (t) {
|
|
569
|
-
case "arc":
|
|
570
|
-
return { ...m, yOffset: S, rotation: Math.atan(v) };
|
|
571
|
-
case "arc-lower":
|
|
572
|
-
return {
|
|
573
|
-
...m,
|
|
574
|
-
yOffset: S * 0.55,
|
|
575
|
-
scaleY: Math.max(0.2, 1 + o * e * e * 0.45)
|
|
576
|
-
};
|
|
577
|
-
case "arc-upper":
|
|
578
|
-
return {
|
|
579
|
-
...m,
|
|
580
|
-
yOffset: -S * 0.55,
|
|
581
|
-
scaleY: Math.max(0.2, 1 - o * e * e * 0.45)
|
|
582
|
-
};
|
|
583
|
-
case "arch":
|
|
584
|
-
return { ...m, yOffset: S };
|
|
585
|
-
case "bulge":
|
|
586
|
-
return { ...m, scaleY: Math.max(0.2, 1 + o * l * 0.75) };
|
|
587
|
-
case "shell-lower":
|
|
588
|
-
return {
|
|
589
|
-
...m,
|
|
590
|
-
yOffset: a * 0.45 * A * l,
|
|
591
|
-
scaleY: Math.max(0.2, 1 + o * A * l)
|
|
592
|
-
};
|
|
593
|
-
case "shell-upper":
|
|
594
|
-
return {
|
|
595
|
-
...m,
|
|
596
|
-
yOffset: -a * 0.45 * (1 - A) * l,
|
|
597
|
-
scaleY: Math.max(0.2, 1 + o * (1 - A) * l)
|
|
598
|
-
};
|
|
599
|
-
case "flag":
|
|
600
|
-
return {
|
|
601
|
-
...m,
|
|
602
|
-
yOffset: a * 0.65 * g,
|
|
603
|
-
rotation: Math.atan(
|
|
604
|
-
a / Math.max(i, 1) * Math.cos(A * Math.PI * 2.7) * 1.6
|
|
605
|
-
)
|
|
606
|
-
};
|
|
607
|
-
case "wave":
|
|
608
|
-
return {
|
|
609
|
-
...m,
|
|
610
|
-
yOffset: a * 0.6 * f,
|
|
611
|
-
rotation: Math.atan(a / Math.max(i, 1) * Math.cos(A * Math.PI * 2) * 1.4)
|
|
612
|
-
};
|
|
613
|
-
case "fish":
|
|
614
|
-
return {
|
|
615
|
-
...m,
|
|
616
|
-
scaleX: Math.max(0.25, 1 - s * c * 0.55),
|
|
617
|
-
scaleY: Math.max(0.2, 1 + o * l)
|
|
618
|
-
};
|
|
619
|
-
case "rise":
|
|
620
|
-
return { ...m, yOffset: a * e };
|
|
621
|
-
case "fisheye":
|
|
622
|
-
return {
|
|
623
|
-
...m,
|
|
624
|
-
yOffset: a * 0.18 * e * l,
|
|
625
|
-
scaleX: Math.max(0.25, 1 + o * l * 0.7),
|
|
626
|
-
scaleY: Math.max(0.2, 1 + o * l * 0.7)
|
|
627
|
-
};
|
|
628
|
-
case "inflate":
|
|
629
|
-
return {
|
|
630
|
-
...m,
|
|
631
|
-
scaleX: Math.max(0.25, 1 + o * l * 0.6),
|
|
632
|
-
scaleY: Math.max(0.2, 1 + o * l * 0.6)
|
|
633
|
-
};
|
|
634
|
-
case "squeeze":
|
|
635
|
-
return { ...m, scaleY: Math.max(0.2, 1 - o * l * 0.8) };
|
|
636
|
-
case "twist":
|
|
637
|
-
return {
|
|
638
|
-
...m,
|
|
639
|
-
yOffset: a * e,
|
|
640
|
-
rotation: o * e * 0.45,
|
|
641
|
-
scaleY: Math.max(0.2, 1 + o * e * 0.25)
|
|
642
|
-
};
|
|
643
|
-
default:
|
|
644
|
-
return m;
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
function $(t, e, n, r, a, i, o = "arc", s = 0) {
|
|
648
|
-
if (s !== 0) {
|
|
649
|
-
en(t, e, n, r, a, i, o, s);
|
|
650
|
-
return;
|
|
651
|
-
}
|
|
652
|
-
nt(t, a), i === "fill" ? t.fillText(e, n, r) : t.strokeText(e, n, r), rt(t);
|
|
653
|
-
}
|
|
654
|
-
function en(t, e, n, r, a, i, o, s) {
|
|
655
|
-
const l = Array.from(e);
|
|
656
|
-
if (l.length === 0) return;
|
|
657
|
-
const c = l.map((C) => t.measureText(C).width), A = c.reduce((C, b) => C + b, 0) + a * Math.max(0, l.length - 1), f = t.textAlign, g = f === "right" ? n - A : f === "center" ? n - A / 2 : n, v = Math.max(-100, Math.min(s, 100)) / 100 * 72, m = Math.max(A / 2, 1);
|
|
658
|
-
let u = g;
|
|
659
|
-
for (let C = 0; C < l.length; C++) {
|
|
660
|
-
const b = l[C], E = c[C], p = u + E / 2, w = (p - g - A / 2) / m, y = $t(
|
|
661
|
-
o,
|
|
662
|
-
w,
|
|
663
|
-
C,
|
|
664
|
-
l.length,
|
|
665
|
-
v,
|
|
666
|
-
m
|
|
667
|
-
);
|
|
668
|
-
t.save(), t.translate(p + y.xOffset, r + y.yOffset), t.rotate(y.rotation), t.scale(y.scaleX, y.scaleY), t.textAlign = "center", i === "fill" ? t.fillText(b, 0, 0) : t.strokeText(b, 0, 0), t.restore(), u += E + a;
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
function He(t, e, n, r, a, i, o, s, l) {
|
|
672
|
-
const c = re(t, e, s), A = a === "center" ? n - c / 2 : a === "right" ? n - c : n, f = l === "underline" ? o * 0.42 : -o * 0.08, g = r + f;
|
|
673
|
-
t.save(), t.strokeStyle = i, t.lineWidth = Math.max(2, o * 0.06), t.lineCap = "round", t.beginPath(), t.moveTo(A, g), t.lineTo(A + c, g), t.stroke(), t.restore();
|
|
674
|
-
}
|
|
675
|
-
function tn(t, e) {
|
|
676
|
-
for (let n = 0; n < e.lines.length; n++) {
|
|
677
|
-
const r = e.lines[n], a = e.startY + n * e.lineHeight;
|
|
678
|
-
for (const i of e.shadowLayers)
|
|
679
|
-
t.save(), t.shadowColor = i.color, t.shadowBlur = i.blur, t.shadowOffsetX = i.offsetX ?? 0, t.shadowOffsetY = i.offsetY ?? 0, t.globalAlpha = i.opacity ?? 1, t.fillStyle = e.color, $(
|
|
680
|
-
t,
|
|
681
|
-
r,
|
|
682
|
-
e.textX,
|
|
683
|
-
a,
|
|
684
|
-
e.letterSpacingPx,
|
|
685
|
-
"fill",
|
|
686
|
-
e.bendPreset,
|
|
687
|
-
e.bendStrength
|
|
688
|
-
), t.restore();
|
|
689
|
-
for (const i of e.strokeLayers)
|
|
690
|
-
t.save(), t.lineJoin = "round", t.miterLimit = 2, t.lineWidth = i.width, t.strokeStyle = i.color, t.globalAlpha = i.opacity ?? 1, $(
|
|
691
|
-
t,
|
|
692
|
-
r,
|
|
693
|
-
e.textX,
|
|
694
|
-
a,
|
|
695
|
-
e.letterSpacingPx,
|
|
696
|
-
"stroke",
|
|
697
|
-
e.bendPreset,
|
|
698
|
-
e.bendStrength
|
|
699
|
-
), t.restore();
|
|
700
|
-
t.save(), t.fillStyle = e.color, t.globalAlpha = 1, $(
|
|
701
|
-
t,
|
|
702
|
-
r,
|
|
703
|
-
e.textX,
|
|
704
|
-
a,
|
|
705
|
-
e.letterSpacingPx,
|
|
706
|
-
"fill",
|
|
707
|
-
e.bendPreset,
|
|
708
|
-
e.bendStrength
|
|
709
|
-
), t.restore(), e.underline && He(
|
|
710
|
-
t,
|
|
711
|
-
r,
|
|
712
|
-
e.textX,
|
|
713
|
-
a,
|
|
714
|
-
e.textAlign,
|
|
715
|
-
e.color,
|
|
716
|
-
e.fontSize,
|
|
717
|
-
e.letterSpacingPx,
|
|
718
|
-
"underline"
|
|
719
|
-
), e.strikethrough && He(
|
|
720
|
-
t,
|
|
721
|
-
r,
|
|
722
|
-
e.textX,
|
|
723
|
-
a,
|
|
724
|
-
e.textAlign,
|
|
725
|
-
e.color,
|
|
726
|
-
e.fontSize,
|
|
727
|
-
e.letterSpacingPx,
|
|
728
|
-
"strikethrough"
|
|
729
|
-
);
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
function nn(t, e) {
|
|
733
|
-
const n = Math.max(0, Math.min(e.intensity, 1));
|
|
734
|
-
if (n <= 0) return;
|
|
735
|
-
const r = Math.max(0, Math.min(e.range, 1)), a = r * 72, i = Math.max(-0.5, Math.min(e.horizontalAngle, 0.5)) * 80, o = Math.max(-0.5, Math.min(e.verticalAngle, 0.5)) * 80;
|
|
736
|
-
for (let s = 0; s < e.lines.length; s++) {
|
|
737
|
-
const l = e.startY + s * e.lineHeight;
|
|
738
|
-
t.save(), t.globalAlpha = n, t.shadowColor = e.color, t.shadowBlur = a, t.shadowOffsetX = i, t.shadowOffsetY = o, e.style === "contoured" ? (t.lineJoin = "round", t.miterLimit = 2, t.lineWidth = Math.max(2, r * 42), t.strokeStyle = e.color, $(
|
|
739
|
-
t,
|
|
740
|
-
e.lines[s],
|
|
741
|
-
e.textX,
|
|
742
|
-
l,
|
|
743
|
-
e.letterSpacingPx,
|
|
744
|
-
"stroke",
|
|
745
|
-
e.bendPreset,
|
|
746
|
-
e.bendStrength
|
|
747
|
-
)) : (t.fillStyle = e.color, $(
|
|
748
|
-
t,
|
|
749
|
-
e.lines[s],
|
|
750
|
-
e.textX,
|
|
751
|
-
l,
|
|
752
|
-
e.letterSpacingPx,
|
|
753
|
-
"fill",
|
|
754
|
-
e.bendPreset,
|
|
755
|
-
e.bendStrength
|
|
756
|
-
)), t.restore();
|
|
757
|
-
}
|
|
758
|
-
}
|
|
759
|
-
function rn(t, e) {
|
|
760
|
-
const n = Ce(e.width, e.height), r = n.getContext("2d");
|
|
761
|
-
r.clearRect(0, 0, e.width, e.height), r.font = e.font, r.fillStyle = "#ffffff", r.textAlign = e.textAlign, r.textBaseline = "middle";
|
|
762
|
-
for (let o = 0; o < e.lines.length; o++)
|
|
763
|
-
$(
|
|
764
|
-
r,
|
|
765
|
-
e.lines[o],
|
|
766
|
-
e.textX,
|
|
767
|
-
e.startY + o * e.lineHeight,
|
|
768
|
-
e.letterSpacingPx,
|
|
769
|
-
"fill",
|
|
770
|
-
e.bendPreset,
|
|
771
|
-
e.bendStrength
|
|
772
|
-
);
|
|
773
|
-
const a = Ce(e.width, e.height), i = a.getContext("2d");
|
|
774
|
-
i.clearRect(0, 0, e.width, e.height), i.save(), i.globalAlpha = e.opacity, i.filter = e.blur > 0 ? `blur(${e.blur}px)` : "none", i.drawImage(n, e.offsetX, e.offsetY), i.restore(), i.globalCompositeOperation = "destination-in", i.drawImage(n, 0, 0), i.globalCompositeOperation = "source-in", i.globalAlpha = e.opacity, i.fillStyle = e.color, i.fillRect(0, 0, e.width, e.height), t.drawImage(a, 0, 0);
|
|
775
|
-
}
|
|
776
|
-
function an(t) {
|
|
777
|
-
const {
|
|
778
|
-
width: e,
|
|
779
|
-
height: n,
|
|
780
|
-
color: r,
|
|
781
|
-
strokeLayers: a,
|
|
782
|
-
strokeColor: i,
|
|
783
|
-
strokeWidth: o,
|
|
784
|
-
strokeOpacity: s,
|
|
785
|
-
shadowLayers: l,
|
|
786
|
-
innerShadow: c,
|
|
787
|
-
glow: A,
|
|
788
|
-
shadowColor: f,
|
|
789
|
-
shadowBlur: g,
|
|
790
|
-
shadowOffsetX: S,
|
|
791
|
-
shadowOffsetY: v,
|
|
792
|
-
shadowOpacity: m,
|
|
793
|
-
textAlign: u,
|
|
794
|
-
bgFillMode: C,
|
|
795
|
-
bgOpacity: b,
|
|
796
|
-
bgFit: E,
|
|
797
|
-
bgAutoSize: p,
|
|
798
|
-
bgWidth: w,
|
|
799
|
-
bgHeight: y,
|
|
800
|
-
bgGradientStops: L,
|
|
801
|
-
bgTextureImage: T,
|
|
802
|
-
bgTextureFit: h,
|
|
803
|
-
bgTextureFlipX: F,
|
|
804
|
-
bgTextureFlipY: z,
|
|
805
|
-
underline: H,
|
|
806
|
-
strikethrough: V,
|
|
807
|
-
bendPreset: K,
|
|
808
|
-
bendStrength: D
|
|
809
|
-
} = t;
|
|
810
|
-
let { fontSize: j, bgColor: U } = t;
|
|
811
|
-
const Z = [
|
|
812
|
-
...a ?? [],
|
|
813
|
-
...i && o > 0 ? [{ color: i, width: o, opacity: s }] : []
|
|
814
|
-
].filter((Y) => Y.width > 0), R = [
|
|
815
|
-
...l ?? [],
|
|
816
|
-
...f && (g > 0 || S !== 0 || v !== 0) ? [
|
|
817
|
-
{
|
|
818
|
-
color: f,
|
|
819
|
-
blur: g,
|
|
820
|
-
offsetX: S,
|
|
821
|
-
offsetY: v,
|
|
822
|
-
opacity: m
|
|
823
|
-
}
|
|
824
|
-
] : []
|
|
825
|
-
].filter((Y) => Y.blur > 0 || (Y.offsetX ?? 0) !== 0 || (Y.offsetY ?? 0) !== 0);
|
|
826
|
-
let X;
|
|
827
|
-
const N = Ce(e, n), M = N.getContext("2d");
|
|
828
|
-
M.clearRect(0, 0, e, n), M.fillStyle = r, M.textAlign = u, M.textBaseline = "middle";
|
|
829
|
-
const I = Vt(M, t);
|
|
830
|
-
if (j = I.fontSize, U !== "transparent") {
|
|
831
|
-
const Y = p === !0, q = Ge(
|
|
832
|
-
Y ? void 0 : w,
|
|
833
|
-
E === "text" || Y ? I.textBlockWidth : e,
|
|
834
|
-
e
|
|
835
|
-
), G = Ge(
|
|
836
|
-
Y ? void 0 : y,
|
|
837
|
-
E === "text" || Y ? I.textBlockHeight : n,
|
|
838
|
-
n
|
|
839
|
-
);
|
|
840
|
-
Zt(M, {
|
|
841
|
-
canvasWidth: e,
|
|
842
|
-
canvasHeight: n,
|
|
843
|
-
textAlign: u,
|
|
844
|
-
bgFit: E,
|
|
845
|
-
panelWidth: q,
|
|
846
|
-
panelHeight: G,
|
|
847
|
-
bgColor: U,
|
|
848
|
-
bgFillMode: C,
|
|
849
|
-
bgOpacity: b,
|
|
850
|
-
bgGradientStops: L,
|
|
851
|
-
bgTextureImage: T,
|
|
852
|
-
bgTextureFit: h,
|
|
853
|
-
bgTextureFlipX: F,
|
|
854
|
-
bgTextureFlipY: z,
|
|
855
|
-
borderColor: t.borderColor,
|
|
856
|
-
borderWidth: t.borderWidth,
|
|
857
|
-
borderRadius: t.borderRadius
|
|
858
|
-
});
|
|
859
|
-
}
|
|
860
|
-
return A && nn(M, {
|
|
861
|
-
lines: I.resolvedLines,
|
|
862
|
-
textX: I.textX,
|
|
863
|
-
startY: I.startY,
|
|
864
|
-
lineHeight: I.lineHeight,
|
|
865
|
-
letterSpacingPx: I.letterSpacingPx,
|
|
866
|
-
bendPreset: K,
|
|
867
|
-
bendStrength: D,
|
|
868
|
-
color: A.color,
|
|
869
|
-
style: A.style,
|
|
870
|
-
intensity: A.intensity ?? 0.5,
|
|
871
|
-
range: A.range ?? 0.5,
|
|
872
|
-
horizontalAngle: A.horizontalAngle ?? 0,
|
|
873
|
-
verticalAngle: A.verticalAngle ?? 0
|
|
874
|
-
}), tn(M, {
|
|
875
|
-
lines: I.resolvedLines,
|
|
876
|
-
textX: I.textX,
|
|
877
|
-
startY: I.startY,
|
|
878
|
-
lineHeight: I.lineHeight,
|
|
879
|
-
textAlign: u,
|
|
880
|
-
color: r,
|
|
881
|
-
fontSize: j,
|
|
882
|
-
letterSpacingPx: I.letterSpacingPx,
|
|
883
|
-
bendPreset: K,
|
|
884
|
-
bendStrength: D,
|
|
885
|
-
shadowLayers: R,
|
|
886
|
-
strokeLayers: Z,
|
|
887
|
-
underline: H,
|
|
888
|
-
strikethrough: V
|
|
889
|
-
}), c && rn(M, {
|
|
890
|
-
width: e,
|
|
891
|
-
height: n,
|
|
892
|
-
font: M.font,
|
|
893
|
-
lines: I.resolvedLines,
|
|
894
|
-
textX: I.textX,
|
|
895
|
-
startY: I.startY,
|
|
896
|
-
lineHeight: I.lineHeight,
|
|
897
|
-
letterSpacingPx: I.letterSpacingPx,
|
|
898
|
-
bendPreset: K,
|
|
899
|
-
bendStrength: D,
|
|
900
|
-
textAlign: u,
|
|
901
|
-
color: c.color,
|
|
902
|
-
opacity: c.opacity ?? 1,
|
|
903
|
-
blur: c.blur,
|
|
904
|
-
offsetX: c.offsetX ?? 0,
|
|
905
|
-
offsetY: c.offsetY ?? 0
|
|
906
|
-
}), X = new B.CanvasTexture(N), X.needsUpdate = !0, X;
|
|
907
|
-
}
|
|
908
|
-
function on(t, e) {
|
|
909
|
-
const {
|
|
910
|
-
lines: n,
|
|
911
|
-
color: r,
|
|
912
|
-
strokeLayers: a,
|
|
913
|
-
outlineEnabled: i,
|
|
914
|
-
strokeColor: o,
|
|
915
|
-
strokeWidth: s,
|
|
916
|
-
strokeOpacity: l,
|
|
917
|
-
shadowLayers: c,
|
|
918
|
-
shadowEnabled: A,
|
|
919
|
-
innerShadow: f,
|
|
920
|
-
glow: g,
|
|
921
|
-
shadowColor: S,
|
|
922
|
-
shadowBlur: v,
|
|
923
|
-
shadowOffsetX: m,
|
|
924
|
-
shadowOffsetY: u,
|
|
925
|
-
shadowOpacity: C,
|
|
926
|
-
fontWeight: b,
|
|
927
|
-
fontStyle: E,
|
|
928
|
-
fontFamily: p,
|
|
929
|
-
fontSize: w,
|
|
930
|
-
textAlign: y,
|
|
931
|
-
verticalAlign: L,
|
|
932
|
-
overflow: T,
|
|
933
|
-
resizeToFit: h,
|
|
934
|
-
minFontSize: F,
|
|
935
|
-
letterSpacing: z,
|
|
936
|
-
lineSpacing: H,
|
|
937
|
-
bgFillMode: V,
|
|
938
|
-
bgOpacity: K,
|
|
939
|
-
bgFit: D,
|
|
940
|
-
bgAutoSize: j,
|
|
941
|
-
bgWidth: U,
|
|
942
|
-
bgHeight: Z,
|
|
943
|
-
bgGradientStops: R,
|
|
944
|
-
bgTextureFit: X,
|
|
945
|
-
bgTextureFlipX: N,
|
|
946
|
-
bgTextureFlipY: M,
|
|
947
|
-
borderColor: I,
|
|
948
|
-
borderWidth: Y,
|
|
949
|
-
borderRadius: q,
|
|
950
|
-
padding: G,
|
|
951
|
-
aspect: Be,
|
|
952
|
-
resolution: de,
|
|
953
|
-
underline: we,
|
|
954
|
-
strikethrough: pe,
|
|
955
|
-
bendPreset: Qe,
|
|
956
|
-
bendStrength: Me
|
|
957
|
-
} = t, xe = x(
|
|
958
|
-
() => i === !1 ? [] : a,
|
|
959
|
-
[i, a]
|
|
960
|
-
), ke = x(
|
|
961
|
-
() => A === !1 ? [] : c,
|
|
962
|
-
[A, c]
|
|
963
|
-
), Le = void 0, Fe = x(
|
|
964
|
-
() => ({
|
|
965
|
-
text: e.text,
|
|
966
|
-
lines: n,
|
|
967
|
-
color: r,
|
|
968
|
-
strokeLayers: xe,
|
|
969
|
-
strokeColor: i === !1 ? void 0 : o,
|
|
970
|
-
strokeWidth: i === !1 ? 0 : s,
|
|
971
|
-
strokeOpacity: l,
|
|
972
|
-
shadowLayers: ke,
|
|
973
|
-
innerShadow: f,
|
|
974
|
-
glow: g,
|
|
975
|
-
shadowColor: A === !1 ? void 0 : S,
|
|
976
|
-
shadowBlur: A === !1 ? 0 : v,
|
|
977
|
-
shadowOffsetX: A === !1 ? 0 : m,
|
|
978
|
-
shadowOffsetY: A === !1 ? 0 : u,
|
|
979
|
-
shadowOpacity: C,
|
|
980
|
-
fontWeight: b,
|
|
981
|
-
fontStyle: E,
|
|
982
|
-
fontFamily: p,
|
|
983
|
-
fontSize: w,
|
|
984
|
-
textAlign: y,
|
|
985
|
-
verticalAlign: L,
|
|
986
|
-
overflow: T,
|
|
987
|
-
resizeToFit: h,
|
|
988
|
-
minFontSize: F,
|
|
989
|
-
letterSpacing: z,
|
|
990
|
-
lineSpacing: H,
|
|
991
|
-
bgColor: e.bgColor,
|
|
992
|
-
bgFillMode: V,
|
|
993
|
-
bgOpacity: K,
|
|
994
|
-
bgFit: D,
|
|
995
|
-
bgAutoSize: j,
|
|
996
|
-
bgWidth: U,
|
|
997
|
-
bgHeight: Z,
|
|
998
|
-
bgGradientStops: R,
|
|
999
|
-
bgTextureImage: Le,
|
|
1000
|
-
bgTextureFit: X,
|
|
1001
|
-
bgTextureFlipX: N,
|
|
1002
|
-
bgTextureFlipY: M,
|
|
1003
|
-
borderColor: I,
|
|
1004
|
-
borderWidth: Y,
|
|
1005
|
-
borderRadius: q,
|
|
1006
|
-
padding: G,
|
|
1007
|
-
height: de,
|
|
1008
|
-
width: Math.round(de * Math.max(Be, 0.1)),
|
|
1009
|
-
underline: we,
|
|
1010
|
-
strikethrough: pe,
|
|
1011
|
-
bendPreset: Qe,
|
|
1012
|
-
bendStrength: Me
|
|
1013
|
-
}),
|
|
1014
|
-
[
|
|
1015
|
-
e.text,
|
|
1016
|
-
e.bgColor,
|
|
1017
|
-
n,
|
|
1018
|
-
r,
|
|
1019
|
-
xe,
|
|
1020
|
-
i,
|
|
1021
|
-
o,
|
|
1022
|
-
s,
|
|
1023
|
-
l,
|
|
1024
|
-
ke,
|
|
1025
|
-
f,
|
|
1026
|
-
g,
|
|
1027
|
-
A,
|
|
1028
|
-
S,
|
|
1029
|
-
v,
|
|
1030
|
-
m,
|
|
1031
|
-
u,
|
|
1032
|
-
C,
|
|
1033
|
-
b,
|
|
1034
|
-
E,
|
|
1035
|
-
p,
|
|
1036
|
-
w,
|
|
1037
|
-
y,
|
|
1038
|
-
L,
|
|
1039
|
-
T,
|
|
1040
|
-
h,
|
|
1041
|
-
F,
|
|
1042
|
-
z,
|
|
1043
|
-
H,
|
|
1044
|
-
V,
|
|
1045
|
-
K,
|
|
1046
|
-
D,
|
|
1047
|
-
j,
|
|
1048
|
-
U,
|
|
1049
|
-
Z,
|
|
1050
|
-
R,
|
|
1051
|
-
Le,
|
|
1052
|
-
X,
|
|
1053
|
-
N,
|
|
1054
|
-
M,
|
|
1055
|
-
I,
|
|
1056
|
-
Y,
|
|
1057
|
-
q,
|
|
1058
|
-
G,
|
|
1059
|
-
Be,
|
|
1060
|
-
de,
|
|
1061
|
-
we,
|
|
1062
|
-
pe,
|
|
1063
|
-
Qe,
|
|
1064
|
-
Me
|
|
1065
|
-
]
|
|
1066
|
-
), Ye = x(() => an(Fe), [Fe]);
|
|
1067
|
-
return ue(Ye), Ye;
|
|
1068
|
-
}
|
|
1069
|
-
function sn(t) {
|
|
1070
|
-
const e = { ...Gt, ...t }, {
|
|
1071
|
-
text: n,
|
|
1072
|
-
bgColor: r,
|
|
1073
|
-
opacity: a,
|
|
1074
|
-
name: i,
|
|
1075
|
-
overlay: o = !0,
|
|
1076
|
-
position: s,
|
|
1077
|
-
rotation: l,
|
|
1078
|
-
scale: c,
|
|
1079
|
-
visible: A,
|
|
1080
|
-
renderOrder: f
|
|
1081
|
-
} = e, [g, S] = Ae(null), [v, m] = Ae(null), u = P(n);
|
|
1082
|
-
u.current !== n && (u.current = n, g !== null && S(null));
|
|
1083
|
-
const C = P(r);
|
|
1084
|
-
C.current !== r && (C.current = r, v !== null && m(null));
|
|
1085
|
-
const b = P(null), w = on(e, { text: g ?? n, bgColor: v ?? r });
|
|
1086
|
-
return te(() => {
|
|
1087
|
-
const y = b.current;
|
|
1088
|
-
if (y)
|
|
1089
|
-
return y.userData.setText = (L) => S(L), y.userData.setBgColor = (L) => m(L), () => {
|
|
1090
|
-
delete y.userData.setText, delete y.userData.setBgColor;
|
|
1091
|
-
};
|
|
1092
|
-
}, []), /* @__PURE__ */ d(
|
|
1093
|
-
$e,
|
|
1094
|
-
{
|
|
1095
|
-
ref: b,
|
|
1096
|
-
name: i,
|
|
1097
|
-
texture: w,
|
|
1098
|
-
overlay: o,
|
|
1099
|
-
opacity: a,
|
|
1100
|
-
position: s,
|
|
1101
|
-
rotation: l,
|
|
1102
|
-
scale: c,
|
|
1103
|
-
visible: A,
|
|
1104
|
-
renderOrder: f
|
|
1105
|
-
}
|
|
1106
|
-
);
|
|
1107
|
-
}
|
|
1108
|
-
function Ee(t, e) {
|
|
1109
|
-
return !Number.isFinite(t) || !Number.isFinite(e) || t <= 0 || e <= 0 ? [1, 1, 1] : Math.abs(t - e) < 1e-6 ? [1, 1, 1] : t > e ? [e / t, 1, 1] : [1, t / e, 1];
|
|
1110
|
-
}
|
|
1111
|
-
const ln = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAMgCAMAAADsrvZaAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAUpQTFRFqampbGxsb29vcHBwSUlJcXFxkJCQenp6dHR0cnJyo6Ojg4ODfHx8nZ2dn5+fqqqqtLS0q6urc3NzrKysra2trq6udXV1r6+veHh4eXl5d3d3i4uLqKioe3t7fX19p6enpaWldnZ2sLCwpqamfn5+hISEpKSkkZGRgYGBnp6ef39/hoaGoKCgjo6OsbGxoaGhl5eXgICAgoKCnJycjIyMoqKilZWVmpqaiIiImZmZh4eHlJSUlpaWm5ubioqKiYmJhYWFj4+PkpKSs7OzmJiYsrKyk5OTjY2NTk5OtbW1UVFRZGRkZmZmS0tLYWFhXFxcW1tbVFRUTExMVlZWbm5uWVlZU1NTY2NjV1dXaWlpUFBQa2trX19fZ2dnWFhYYmJiVVVVt7e3Xl5eampqWlpaurq6ZWVltra2UlJSYGBgXV1dTU1NaGhoubm5Zbx22AAAQndJREFUeJztnfd74kqatlnUZSQbW1YgmmiCbYJtnHN2+/SZM/FM2p3Z2Yk7G779/3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o9mB5x0IAibG3fRc8C7MlIEgYGLcY44H3oWZMhAETEzcJciiH2AIQcDEuPeezMFE1KeAIGBi3CvkRd6FmTIQBEyMewZ3nvaXfwQIAibGvcmjyrswUwaCgIlxr1COnLSwYEAQMDHubLvk/afPNRAETIx7/7nAuzBTBoKAifkflyBzcxLOB4EgYGLiPxsyH/sCPw4EAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYABBAGAAQQBgAEEAYBBOIIAsDRAEAAYQBAAGEAQABhAEAAYQBAAGEAQABhAEAAYQBAAGEAQABhAEAAYQBAAGEAQABhAEAAYQBAAGEAQABhAEAAYQBAAGLwvCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAApsT/B5IXXl4PVzuXAAAAAElFTkSuQmCC", cn = (t, e) => t || (e === "cover" ? "fill" : e === "stretch" ? "stretch" : "fit"), Je = (t, e) => {
|
|
1112
|
-
const [n, r] = Ee(t, e);
|
|
1113
|
-
return n === 1 && r === 1 ? [1, 1, 1] : n < 1 ? [1, 1 / n, 1] : [1 / r, 1, 1];
|
|
1114
|
-
}, An = (t, e, n, r, a, i, o) => {
|
|
1115
|
-
let s = [1, 1, 1], l = [1, 1, 1], c = [1, 1], A = [0, 0];
|
|
1116
|
-
switch (t) {
|
|
1117
|
-
case "fit":
|
|
1118
|
-
s = Ee(e, n), l = s;
|
|
1119
|
-
break;
|
|
1120
|
-
case "fitWidth":
|
|
1121
|
-
s = [1, e > 0 && n > 0 ? e / n : 1, 1], l = s;
|
|
1122
|
-
break;
|
|
1123
|
-
case "fitHeight":
|
|
1124
|
-
s = [e > 0 && n > 0 ? n / e : 1, 1, 1], l = s;
|
|
1125
|
-
break;
|
|
1126
|
-
case "center":
|
|
1127
|
-
s = i && o && i.width > 0 && i.height > 0 && o.width > 0 && o.height > 0 ? [o.width / i.width, o.height / i.height, 1] : Ee(e, n), l = s;
|
|
1128
|
-
break;
|
|
1129
|
-
case "fill":
|
|
1130
|
-
s = Je(e, n), l = s;
|
|
1131
|
-
break;
|
|
1132
|
-
case "fillAndCut":
|
|
1133
|
-
if (l = Je(e, n), n > e) {
|
|
1134
|
-
const f = e / n;
|
|
1135
|
-
c = [f, 1], A = [(1 - f) / 2, 0];
|
|
1136
|
-
} else if (n < e) {
|
|
1137
|
-
const f = n / e;
|
|
1138
|
-
c = [1, f], A = [0, (1 - f) / 2];
|
|
1139
|
-
}
|
|
1140
|
-
break;
|
|
1141
|
-
}
|
|
1142
|
-
return {
|
|
1143
|
-
meshScale: [s[0] * (r ? -1 : 1), s[1] * (a ? -1 : 1), 1],
|
|
1144
|
-
guideScale: l,
|
|
1145
|
-
repeat: c,
|
|
1146
|
-
offset: A
|
|
1147
|
-
};
|
|
1148
|
-
}, hn = (t, e) => t ?? (e ? { kind: "image", src: e } : { kind: "default" }), ee = (t) => {
|
|
1149
|
-
const e = t.image;
|
|
1150
|
-
return {
|
|
1151
|
-
width: (e == null ? void 0 : e.videoWidth) ?? (e == null ? void 0 : e.width) ?? 1,
|
|
1152
|
-
height: (e == null ? void 0 : e.videoHeight) ?? (e == null ? void 0 : e.height) ?? 1
|
|
1153
|
-
};
|
|
1154
|
-
}, dn = (t) => {
|
|
1155
|
-
const { width: e, height: n } = ee(t);
|
|
1156
|
-
return e > 0 && n > 0 ? e / n : 1;
|
|
1157
|
-
}, gn = /* @__PURE__ */ new Set([
|
|
1158
|
-
"overlay",
|
|
1159
|
-
"softLight",
|
|
1160
|
-
"hardLight",
|
|
1161
|
-
"difference",
|
|
1162
|
-
"exclusion"
|
|
1163
|
-
]), fn = {
|
|
1164
|
-
overlay: 0,
|
|
1165
|
-
softLight: 1,
|
|
1166
|
-
hardLight: 2,
|
|
1167
|
-
difference: 3,
|
|
1168
|
-
exclusion: 4
|
|
1169
|
-
}, un = (t) => {
|
|
1170
|
-
switch (t) {
|
|
1171
|
-
case "add":
|
|
1172
|
-
return { blending: B.AdditiveBlending };
|
|
1173
|
-
case "subtract":
|
|
1174
|
-
return { blending: B.SubtractiveBlending };
|
|
1175
|
-
case "multiply":
|
|
1176
|
-
return { blending: B.MultiplyBlending };
|
|
1177
|
-
case "screen":
|
|
1178
|
-
return {
|
|
1179
|
-
blending: B.CustomBlending,
|
|
1180
|
-
blendSrc: B.OneFactor,
|
|
1181
|
-
blendDst: B.OneMinusSrcColorFactor,
|
|
1182
|
-
blendEquation: B.AddEquation
|
|
1183
|
-
};
|
|
1184
|
-
case "lighten":
|
|
1185
|
-
return {
|
|
1186
|
-
blending: B.CustomBlending,
|
|
1187
|
-
blendSrc: B.OneFactor,
|
|
1188
|
-
blendDst: B.OneFactor,
|
|
1189
|
-
blendEquation: B.MaxEquation
|
|
1190
|
-
};
|
|
1191
|
-
case "darken":
|
|
1192
|
-
return {
|
|
1193
|
-
blending: B.CustomBlending,
|
|
1194
|
-
blendSrc: B.OneFactor,
|
|
1195
|
-
blendDst: B.OneFactor,
|
|
1196
|
-
blendEquation: B.MinEquation
|
|
1197
|
-
};
|
|
1198
|
-
default:
|
|
1199
|
-
return { blending: B.NormalBlending };
|
|
1200
|
-
}
|
|
1201
|
-
}, Sn = `
|
|
1202
|
-
varying vec2 vUv;
|
|
1203
|
-
void main(){vUv=uv;gl_Position=projectionMatrix*modelViewMatrix*vec4(position,1.0);}`, vn = `
|
|
1204
|
-
uniform sampler2D imageMap;uniform sampler2D backdropMap;uniform vec2 resolution;
|
|
1205
|
-
uniform vec3 tint;uniform float opacity;uniform float alphaTest;uniform int blendMode;varying vec2 vUv;
|
|
1206
|
-
float overlayChannel(float b,float s){return b<.5?2.*b*s:1.-2.*(1.-b)*(1.-s);}
|
|
1207
|
-
float hardLightChannel(float b,float s){return s<.5?2.*b*s:1.-2.*(1.-b)*(1.-s);}
|
|
1208
|
-
float softLightChannel(float b,float s){return s<.5?b-(1.-2.*s)*b*(1.-b):b+(2.*s-1.)*(sqrt(max(b,0.))-b);}
|
|
1209
|
-
vec3 applyAdvancedBlend(vec3 b,vec3 s){
|
|
1210
|
-
if(blendMode==0)return vec3(overlayChannel(b.r,s.r),overlayChannel(b.g,s.g),overlayChannel(b.b,s.b));
|
|
1211
|
-
if(blendMode==1)return vec3(softLightChannel(b.r,s.r),softLightChannel(b.g,s.g),softLightChannel(b.b,s.b));
|
|
1212
|
-
if(blendMode==2)return vec3(hardLightChannel(b.r,s.r),hardLightChannel(b.g,s.g),hardLightChannel(b.b,s.b));
|
|
1213
|
-
if(blendMode==3)return abs(b-s);return b+s-2.*b*s;}
|
|
1214
|
-
void main(){vec4 image=texture2D(imageMap,vUv)*vec4(tint,opacity);if(image.a<=alphaTest)discard;
|
|
1215
|
-
vec2 uv=gl_FragCoord.xy/max(resolution,vec2(1.));vec3 base=texture2D(backdropMap,uv).rgb;
|
|
1216
|
-
vec3 mixed=applyAdvancedBlend(base,image.rgb);gl_FragColor=vec4(mix(base,mixed,image.a),1.);}`, mn = () => {
|
|
1217
|
-
const t = document.createElement("canvas");
|
|
1218
|
-
t.width = 256, t.height = 256;
|
|
1219
|
-
const e = t.getContext("2d");
|
|
1220
|
-
if (!e) return new B.CanvasTexture(t);
|
|
1221
|
-
const n = e.createRadialGradient(96, 80, 10, 128, 128, 128);
|
|
1222
|
-
n.addColorStop(0, "#ffffff"), n.addColorStop(0.18, "#f8fafc"), n.addColorStop(0.44, "#cbd5e1"), n.addColorStop(0.72, "#475569"), n.addColorStop(1, "#0f172a"), e.fillStyle = n, e.fillRect(0, 0, t.width, t.height);
|
|
1223
|
-
const r = new B.CanvasTexture(t);
|
|
1224
|
-
return r.needsUpdate = !0, r;
|
|
1225
|
-
};
|
|
1226
|
-
function Cn({
|
|
1227
|
-
materialTexture: t,
|
|
1228
|
-
sourceTexture: e,
|
|
1229
|
-
onSourceSizeChange: n
|
|
1230
|
-
}) {
|
|
1231
|
-
const r = P(ee(e));
|
|
1232
|
-
return se(() => {
|
|
1233
|
-
t.needsUpdate = !0;
|
|
1234
|
-
const a = ee(e);
|
|
1235
|
-
(a.width !== r.current.width || a.height !== r.current.height) && (r.current = a, n(a));
|
|
1236
|
-
}), null;
|
|
1237
|
-
}
|
|
1238
|
-
const En = 999, bn = Math.PI / 180, In = yt([
|
|
1239
|
-
Bt
|
|
1240
|
-
]);
|
|
1241
|
-
function yn(t) {
|
|
1242
|
-
const [e, n] = Ae(null);
|
|
1243
|
-
return te(() => {
|
|
1244
|
-
if (n(null), !t || typeof document > "u") return;
|
|
1245
|
-
const r = new AbortController();
|
|
1246
|
-
let a;
|
|
1247
|
-
return In({ kind: "gif", src: t }, r.signal).then((i) => {
|
|
1248
|
-
a = i, n(i);
|
|
1249
|
-
}).catch((i) => {
|
|
1250
|
-
i instanceof DOMException && i.name === "AbortError" || console.warn("[xr-sdk] Failed to load GIF ScreenImage source", i);
|
|
1251
|
-
}), () => {
|
|
1252
|
-
r.abort(), Tt(a);
|
|
1253
|
-
};
|
|
1254
|
-
}, [t]), e;
|
|
1255
|
-
}
|
|
1256
|
-
function ze({
|
|
1257
|
-
name: t,
|
|
1258
|
-
source: e,
|
|
1259
|
-
src: n,
|
|
1260
|
-
fit: r,
|
|
1261
|
-
stretchMode: a,
|
|
1262
|
-
materialType: i = "unlit",
|
|
1263
|
-
blendMode: o = "normal",
|
|
1264
|
-
backdropTexture: s = null,
|
|
1265
|
-
rotation: l = 0,
|
|
1266
|
-
opacity: c = 1,
|
|
1267
|
-
color: A = "#ffffff",
|
|
1268
|
-
flipX: f = !1,
|
|
1269
|
-
flipY: g = !1,
|
|
1270
|
-
renderOrder: S = En,
|
|
1271
|
-
transparent: v = !0,
|
|
1272
|
-
alphaTest: m = 0,
|
|
1273
|
-
overlay: u = !0,
|
|
1274
|
-
visible: C,
|
|
1275
|
-
layoutSize: b
|
|
1276
|
-
}) {
|
|
1277
|
-
const { size: E } = he(), p = It(), w = hn(e, n), y = w.kind === "image" ? w.src : ln, L = Xt(y), T = yn(
|
|
1278
|
-
w.kind === "gif" ? w.src : void 0
|
|
1279
|
-
), h = w.kind === "texture" ? w.texture : w.kind === "gif" ? (T == null ? void 0 : T.texture) ?? L : L, F = Ne(), z = cn(a, r), [H, V] = Ae(
|
|
1280
|
-
() => ee(h)
|
|
1281
|
-
);
|
|
1282
|
-
te(() => {
|
|
1283
|
-
V(ee(h));
|
|
1284
|
-
}, [h]);
|
|
1285
|
-
const K = h instanceof B.VideoTexture || typeof HTMLCanvasElement < "u" && h.image instanceof HTMLCanvasElement, D = K ? H : ee(h), j = be(
|
|
1286
|
-
(G) => V(G),
|
|
1287
|
-
[]
|
|
1288
|
-
), U = D.width > 0 && D.height > 0 ? D.width / D.height : dn(h), Z = x(() => mn(), []), R = x(
|
|
1289
|
-
() => An(
|
|
1290
|
-
z,
|
|
1291
|
-
F,
|
|
1292
|
-
U,
|
|
1293
|
-
f,
|
|
1294
|
-
g,
|
|
1295
|
-
b,
|
|
1296
|
-
D
|
|
1297
|
-
),
|
|
1298
|
-
[z, F, U, f, g, b, D]
|
|
1299
|
-
), X = x(() => {
|
|
1300
|
-
const G = h.clone();
|
|
1301
|
-
return G.needsUpdate = !0, G.repeat.set(R.repeat[0], R.repeat[1]), G.offset.set(R.offset[0], R.offset[1]), G;
|
|
1302
|
-
}, [h, R.repeat, R.offset]);
|
|
1303
|
-
ue(X), ue(Z);
|
|
1304
|
-
const N = x(() => un(o), [o]), M = gn.has(o) ? o : null, I = s ?? (p == null ? void 0 : p.finalColorTexture) ?? (p == null ? void 0 : p.sceneColorTexture) ?? null, Y = M !== null && I !== null, q = x(
|
|
1305
|
-
() => ({
|
|
1306
|
-
imageMap: { value: X },
|
|
1307
|
-
backdropMap: { value: I },
|
|
1308
|
-
resolution: { value: new B.Vector2(E.width, E.height) },
|
|
1309
|
-
tint: { value: new B.Color(A) },
|
|
1310
|
-
opacity: { value: c },
|
|
1311
|
-
alphaTest: { value: m },
|
|
1312
|
-
blendMode: {
|
|
1313
|
-
value: M === null ? 0 : fn[M]
|
|
1314
|
-
}
|
|
1315
|
-
}),
|
|
1316
|
-
[
|
|
1317
|
-
M,
|
|
1318
|
-
m,
|
|
1319
|
-
I,
|
|
1320
|
-
E.height,
|
|
1321
|
-
E.width,
|
|
1322
|
-
A,
|
|
1323
|
-
X,
|
|
1324
|
-
c
|
|
1325
|
-
]
|
|
1326
|
-
);
|
|
1327
|
-
return /* @__PURE__ */ W("group", { visible: C, children: [
|
|
1328
|
-
K ? /* @__PURE__ */ d(
|
|
1329
|
-
Cn,
|
|
1330
|
-
{
|
|
1331
|
-
materialTexture: X,
|
|
1332
|
-
sourceTexture: h,
|
|
1333
|
-
onSourceSizeChange: j
|
|
1334
|
-
}
|
|
1335
|
-
) : null,
|
|
1336
|
-
/* @__PURE__ */ W(
|
|
1337
|
-
"mesh",
|
|
1338
|
-
{
|
|
1339
|
-
name: t,
|
|
1340
|
-
scale: R.meshScale,
|
|
1341
|
-
rotation: [0, 0, l * bn],
|
|
1342
|
-
renderOrder: S,
|
|
1343
|
-
children: [
|
|
1344
|
-
/* @__PURE__ */ d("planeGeometry", { args: [1, 1] }),
|
|
1345
|
-
Y ? /* @__PURE__ */ d(
|
|
1346
|
-
"shaderMaterial",
|
|
1347
|
-
{
|
|
1348
|
-
uniforms: q,
|
|
1349
|
-
vertexShader: Sn,
|
|
1350
|
-
fragmentShader: vn,
|
|
1351
|
-
transparent: !1,
|
|
1352
|
-
depthTest: !u,
|
|
1353
|
-
depthWrite: !u,
|
|
1354
|
-
toneMapped: !1
|
|
1355
|
-
}
|
|
1356
|
-
) : i === "standardPBR" ? /* @__PURE__ */ d(
|
|
1357
|
-
"meshStandardMaterial",
|
|
1358
|
-
{
|
|
1359
|
-
map: X,
|
|
1360
|
-
transparent: v || c < 1,
|
|
1361
|
-
opacity: c,
|
|
1362
|
-
color: A,
|
|
1363
|
-
alphaTest: m,
|
|
1364
|
-
depthTest: !u,
|
|
1365
|
-
depthWrite: !u,
|
|
1366
|
-
toneMapped: !1,
|
|
1367
|
-
roughness: 0.72,
|
|
1368
|
-
metalness: 0.08,
|
|
1369
|
-
emissive: A,
|
|
1370
|
-
emissiveIntensity: 0.18,
|
|
1371
|
-
...N
|
|
1372
|
-
}
|
|
1373
|
-
) : i === "matcap" ? /* @__PURE__ */ d(
|
|
1374
|
-
"meshMatcapMaterial",
|
|
1375
|
-
{
|
|
1376
|
-
map: X,
|
|
1377
|
-
matcap: Z,
|
|
1378
|
-
transparent: v || c < 1,
|
|
1379
|
-
opacity: c,
|
|
1380
|
-
color: A,
|
|
1381
|
-
alphaTest: m,
|
|
1382
|
-
depthTest: !u,
|
|
1383
|
-
depthWrite: !u,
|
|
1384
|
-
toneMapped: !1,
|
|
1385
|
-
...N
|
|
1386
|
-
}
|
|
1387
|
-
) : /* @__PURE__ */ d(
|
|
1388
|
-
"meshBasicMaterial",
|
|
1389
|
-
{
|
|
1390
|
-
map: X,
|
|
1391
|
-
transparent: v || c < 1,
|
|
1392
|
-
opacity: c,
|
|
1393
|
-
color: A,
|
|
1394
|
-
alphaTest: m,
|
|
1395
|
-
depthTest: !u,
|
|
1396
|
-
depthWrite: !u,
|
|
1397
|
-
toneMapped: !1,
|
|
1398
|
-
...N
|
|
1399
|
-
}
|
|
1400
|
-
)
|
|
1401
|
-
]
|
|
1402
|
-
}
|
|
1403
|
-
)
|
|
1404
|
-
] });
|
|
1405
|
-
}
|
|
1406
|
-
const Tn = { left: 0, right: 0, top: 0, bottom: 0 }, Bn = Math.PI / 180;
|
|
1407
|
-
function wn({
|
|
1408
|
-
anchors: t,
|
|
1409
|
-
offsets: e,
|
|
1410
|
-
pivot: n,
|
|
1411
|
-
rotation: r,
|
|
1412
|
-
children: a
|
|
1413
|
-
}) {
|
|
1414
|
-
const { width: i, height: o } = Ie(), s = x(
|
|
1415
|
-
() => ({ left: -1, right: 1, top: 1, bottom: -1, ...t }),
|
|
1416
|
-
[t]
|
|
1417
|
-
), l = x(() => ({ ...Tn, ...e }), [e]), c = x(
|
|
1418
|
-
() => wt(i, o, s, l, n),
|
|
1419
|
-
[o, n, s, l, i]
|
|
1420
|
-
), A = c.width > 0 && c.height > 0 ? c.width / c.height : null;
|
|
1421
|
-
return /* @__PURE__ */ d(
|
|
1422
|
-
"group",
|
|
1423
|
-
{
|
|
1424
|
-
position: [c.centerX - c.pivotX, c.centerY - c.pivotY, 0],
|
|
1425
|
-
rotation: [0, 0, r * Bn],
|
|
1426
|
-
scale: [c.width, c.height, 1],
|
|
1427
|
-
children: /* @__PURE__ */ d(dt.Provider, { value: A, children: a })
|
|
1428
|
-
}
|
|
1429
|
-
);
|
|
1430
|
-
}
|
|
1431
|
-
function pn({
|
|
1432
|
-
transform: t,
|
|
1433
|
-
guideLayer: e,
|
|
1434
|
-
onChange: n,
|
|
1435
|
-
children: r
|
|
1436
|
-
}) {
|
|
1437
|
-
return /* @__PURE__ */ d(
|
|
1438
|
-
Ue,
|
|
1439
|
-
{
|
|
1440
|
-
guideColor: "#22d3ee",
|
|
1441
|
-
guideLayer: e,
|
|
1442
|
-
transform: t,
|
|
1443
|
-
onChange: n,
|
|
1444
|
-
children: r
|
|
1445
|
-
}
|
|
1446
|
-
);
|
|
1447
|
-
}
|
|
1448
|
-
const Qn = {
|
|
1449
|
-
left: -1,
|
|
1450
|
-
right: 1,
|
|
1451
|
-
top: 1,
|
|
1452
|
-
bottom: -1
|
|
1453
|
-
}, Mn = {}, xn = [0.5, 0.5];
|
|
1454
|
-
[
|
|
1455
|
-
["Normal", "normal"],
|
|
1456
|
-
["Add", "add"],
|
|
1457
|
-
["Subtract", "subtract"],
|
|
1458
|
-
["Multiply", "multiply"],
|
|
1459
|
-
["Screen", "screen"],
|
|
1460
|
-
["Lighten", "lighten"],
|
|
1461
|
-
["Darken", "darken"],
|
|
1462
|
-
["Overlay", "overlay"],
|
|
1463
|
-
["Soft Light", "softLight"],
|
|
1464
|
-
["Hard Light", "hardLight"],
|
|
1465
|
-
["Difference", "difference"],
|
|
1466
|
-
["Exclusion", "exclusion"]
|
|
1467
|
-
].map(([t, e]) => ({ label: t, value: e }));
|
|
1468
|
-
const kn = (t) => [
|
|
1469
|
-
t[0] * 2 - 1,
|
|
1470
|
-
t[1] * 2 - 1
|
|
1471
|
-
], Ln = (t, e, n, r, a) => t || (!r && !a ? Qn : Ze({
|
|
1472
|
-
coordinateSpace: e,
|
|
1473
|
-
canvasSize: n ?? ie,
|
|
1474
|
-
position: r,
|
|
1475
|
-
size: a
|
|
1476
|
-
}));
|
|
1477
|
-
function Fn({
|
|
1478
|
-
anchors: t,
|
|
1479
|
-
coordinateSpace: e,
|
|
1480
|
-
canvasSize: n,
|
|
1481
|
-
position: r,
|
|
1482
|
-
size: a,
|
|
1483
|
-
offsets: i = Mn,
|
|
1484
|
-
pivot: o = xn,
|
|
1485
|
-
rotation: s = 0,
|
|
1486
|
-
transform: l,
|
|
1487
|
-
onScreenTransformChange: c,
|
|
1488
|
-
transformGuideLayer: A = "scene",
|
|
1489
|
-
...f
|
|
1490
|
-
}) {
|
|
1491
|
-
const g = x(
|
|
1492
|
-
() => Ln(t, e, n, r, a),
|
|
1493
|
-
[t, n, e, r, a]
|
|
1494
|
-
), S = x(() => kn(o), [o]);
|
|
1495
|
-
if (l) {
|
|
1496
|
-
const v = Ve(l);
|
|
1497
|
-
return v.enabled ? /* @__PURE__ */ d(
|
|
1498
|
-
pn,
|
|
1499
|
-
{
|
|
1500
|
-
guideLayer: A,
|
|
1501
|
-
transform: v,
|
|
1502
|
-
onChange: c,
|
|
1503
|
-
children: /* @__PURE__ */ d(
|
|
1504
|
-
ze,
|
|
1505
|
-
{
|
|
1506
|
-
...f,
|
|
1507
|
-
layoutSize: v.size,
|
|
1508
|
-
renderOrder: f.renderOrder ?? v.renderOrder,
|
|
1509
|
-
overlay: f.overlay ?? v.overlay,
|
|
1510
|
-
visible: f.visible ?? v.visible,
|
|
1511
|
-
rotation: 0
|
|
1512
|
-
}
|
|
1513
|
-
)
|
|
1514
|
-
}
|
|
1515
|
-
) : null;
|
|
1516
|
-
}
|
|
1517
|
-
return /* @__PURE__ */ d(
|
|
1518
|
-
wn,
|
|
1519
|
-
{
|
|
1520
|
-
anchors: g,
|
|
1521
|
-
offsets: i,
|
|
1522
|
-
pivot: S,
|
|
1523
|
-
rotation: s,
|
|
1524
|
-
children: /* @__PURE__ */ d(
|
|
1525
|
-
ze,
|
|
1526
|
-
{
|
|
1527
|
-
...f,
|
|
1528
|
-
layoutSize: a ? { width: a[0], height: a[1] } : void 0,
|
|
1529
|
-
rotation: 0
|
|
1530
|
-
}
|
|
1531
|
-
)
|
|
1532
|
-
}
|
|
1533
|
-
);
|
|
1534
|
-
}
|
|
1535
|
-
const Yn = 2.5, Wn = "#38bdf8", Xn = {
|
|
1536
|
-
top: { left: -0.92, right: 0.92, top: 0.92, bottom: 0.56 },
|
|
1537
|
-
center: { left: -0.92, right: 0.92, top: 0.18, bottom: -0.18 },
|
|
1538
|
-
bottom: { left: -0.92, right: 0.92, top: -0.56, bottom: -0.92 }
|
|
1539
|
-
};
|
|
1540
|
-
function Dn({
|
|
1541
|
-
bend: t,
|
|
1542
|
-
bendPreset: e,
|
|
1543
|
-
bendStrength: n
|
|
1544
|
-
}) {
|
|
1545
|
-
return {
|
|
1546
|
-
bendPreset: (t == null ? void 0 : t.preset) ?? e,
|
|
1547
|
-
bendStrength: (t == null ? void 0 : t.strength) ?? n
|
|
1548
|
-
};
|
|
1549
|
-
}
|
|
1550
|
-
function Pn({
|
|
1551
|
-
width: t,
|
|
1552
|
-
height: e
|
|
1553
|
-
}) {
|
|
1554
|
-
const n = Math.max(1, t), r = Math.max(1, e);
|
|
1555
|
-
return {
|
|
1556
|
-
aspect: n / r,
|
|
1557
|
-
resolution: r
|
|
1558
|
-
};
|
|
1559
|
-
}
|
|
1560
|
-
function Ke(t) {
|
|
1561
|
-
const e = Ne(), { bend: n, layoutSize: r, renderOrder: a, overlay: i = !0, ...o } = t, s = r ? Pn(r) : void 0, l = Math.max(
|
|
1562
|
-
(s == null ? void 0 : s.aspect) ?? e ?? Yn,
|
|
1563
|
-
0.1
|
|
1564
|
-
), c = Dn({
|
|
1565
|
-
bend: n,
|
|
1566
|
-
bendPreset: o.bendPreset,
|
|
1567
|
-
bendStrength: o.bendStrength
|
|
1568
|
-
});
|
|
1569
|
-
return /* @__PURE__ */ d(
|
|
1570
|
-
sn,
|
|
1571
|
-
{
|
|
1572
|
-
...o,
|
|
1573
|
-
aspect: l,
|
|
1574
|
-
resolution: (s == null ? void 0 : s.resolution) ?? o.resolution,
|
|
1575
|
-
...c,
|
|
1576
|
-
overlay: i,
|
|
1577
|
-
renderOrder: a
|
|
1578
|
-
}
|
|
1579
|
-
);
|
|
1580
|
-
}
|
|
1581
|
-
function Rn({
|
|
1582
|
-
transform: t,
|
|
1583
|
-
guideLayer: e,
|
|
1584
|
-
onChange: n,
|
|
1585
|
-
children: r
|
|
1586
|
-
}) {
|
|
1587
|
-
return /* @__PURE__ */ d(
|
|
1588
|
-
Ue,
|
|
1589
|
-
{
|
|
1590
|
-
guideColor: Wn,
|
|
1591
|
-
guideLayer: e,
|
|
1592
|
-
transform: t,
|
|
1593
|
-
onChange: n,
|
|
1594
|
-
children: r
|
|
1595
|
-
}
|
|
1596
|
-
);
|
|
1597
|
-
}
|
|
1598
|
-
function On(t = "center") {
|
|
1599
|
-
return Xn[t];
|
|
1600
|
-
}
|
|
1601
|
-
function Gn({
|
|
1602
|
-
anchors: t,
|
|
1603
|
-
coordinateSpace: e,
|
|
1604
|
-
canvasSize: n,
|
|
1605
|
-
position: r,
|
|
1606
|
-
size: a,
|
|
1607
|
-
transform: i,
|
|
1608
|
-
pivot: o,
|
|
1609
|
-
verticalAlign: s
|
|
1610
|
-
}) {
|
|
1611
|
-
return {
|
|
1612
|
-
resolvedAnchors: i != null && i.anchors ? i.anchors : t || (i != null && i.position || i != null && i.size || r || a ? Ze({
|
|
1613
|
-
coordinateSpace: (i == null ? void 0 : i.coordinateSpace) ?? e,
|
|
1614
|
-
canvasSize: (i == null ? void 0 : i.canvasSize) ?? n,
|
|
1615
|
-
position: (i == null ? void 0 : i.position) ?? r,
|
|
1616
|
-
size: (i == null ? void 0 : i.size) ?? a
|
|
1617
|
-
}) : On(s)),
|
|
1618
|
-
resolvedOffsets: i == null ? void 0 : i.offsets,
|
|
1619
|
-
resolvedPivot: Dt((i == null ? void 0 : i.pivot) ?? o ?? [0.5, 0.5])
|
|
1620
|
-
};
|
|
1621
|
-
}
|
|
1622
|
-
function Hn({
|
|
1623
|
-
anchors: t,
|
|
1624
|
-
coordinateSpace: e,
|
|
1625
|
-
canvasSize: n,
|
|
1626
|
-
offsets: r,
|
|
1627
|
-
pivot: a,
|
|
1628
|
-
position: i,
|
|
1629
|
-
rotation: o = 0,
|
|
1630
|
-
size: s,
|
|
1631
|
-
transform: l,
|
|
1632
|
-
screenTransform: c,
|
|
1633
|
-
onScreenTransformChange: A,
|
|
1634
|
-
transformGuideLayer: f = "scene",
|
|
1635
|
-
verticalAlign: g = "center",
|
|
1636
|
-
...S
|
|
1637
|
-
}) {
|
|
1638
|
-
const { resolvedAnchors: v, resolvedOffsets: m, resolvedPivot: u } = x(
|
|
1639
|
-
() => Gn({
|
|
1640
|
-
anchors: t,
|
|
1641
|
-
coordinateSpace: e,
|
|
1642
|
-
canvasSize: n,
|
|
1643
|
-
position: i,
|
|
1644
|
-
size: s,
|
|
1645
|
-
transform: l,
|
|
1646
|
-
pivot: a,
|
|
1647
|
-
verticalAlign: g
|
|
1648
|
-
}),
|
|
1649
|
-
[t, n, e, a, i, s, l, g]
|
|
1650
|
-
), C = (l == null ? void 0 : l.offsets) ?? r ?? m, b = (l == null ? void 0 : l.rotation) ?? o;
|
|
1651
|
-
if (c) {
|
|
1652
|
-
const E = Ve(c);
|
|
1653
|
-
return E.enabled ? /* @__PURE__ */ d(
|
|
1654
|
-
Rn,
|
|
1655
|
-
{
|
|
1656
|
-
guideLayer: f,
|
|
1657
|
-
transform: E,
|
|
1658
|
-
onChange: A,
|
|
1659
|
-
children: /* @__PURE__ */ d(
|
|
1660
|
-
Ke,
|
|
1661
|
-
{
|
|
1662
|
-
...S,
|
|
1663
|
-
layoutSize: E.size,
|
|
1664
|
-
verticalAlign: g,
|
|
1665
|
-
renderOrder: S.renderOrder ?? E.renderOrder,
|
|
1666
|
-
overlay: S.overlay ?? E.overlay,
|
|
1667
|
-
visible: S.visible ?? E.visible
|
|
1668
|
-
}
|
|
1669
|
-
)
|
|
1670
|
-
}
|
|
1671
|
-
) : null;
|
|
1672
|
-
}
|
|
1673
|
-
return /* @__PURE__ */ d(pt, { anchors: v, offsets: C, pivot: u, children: /* @__PURE__ */ d("group", { rotation: [0, 0, b * Math.PI / 180], children: /* @__PURE__ */ d(Ke, { ...S, verticalAlign: g }) }) });
|
|
1674
|
-
}
|
|
1675
|
-
const Jn = ({ settings: t, transform: e }) => {
|
|
1676
|
-
const n = x(
|
|
1677
|
-
() => /* @__PURE__ */ W("group", { name: "LightEditorGizmo", visible: t.showHelper, children: [
|
|
1678
|
-
/* @__PURE__ */ W("mesh", { renderOrder: 1e3, children: [
|
|
1679
|
-
/* @__PURE__ */ d("sphereGeometry", { args: [0.12, 12, 8] }),
|
|
1680
|
-
/* @__PURE__ */ d("meshBasicMaterial", { color: "#facc15", wireframe: !0, depthTest: !1, depthWrite: !1 })
|
|
1681
|
-
] }),
|
|
1682
|
-
/* @__PURE__ */ W("mesh", { position: [0, 0, -0.35], rotation: [Math.PI / 2, 0, 0], renderOrder: 1e3, children: [
|
|
1683
|
-
/* @__PURE__ */ d("coneGeometry", { args: [0.08, 0.45, 12] }),
|
|
1684
|
-
/* @__PURE__ */ d("meshBasicMaterial", { color: "#fde047", wireframe: !0, depthTest: !1, depthWrite: !1 })
|
|
1685
|
-
] })
|
|
1686
|
-
] }),
|
|
1687
|
-
[t.showHelper]
|
|
1688
|
-
);
|
|
1689
|
-
return t.enabled ? /* @__PURE__ */ W(ce, { value: e, children: [
|
|
1690
|
-
n,
|
|
1691
|
-
t.type === "ambient" ? /* @__PURE__ */ d("ambientLight", { color: t.color, intensity: t.intensity }) : null,
|
|
1692
|
-
t.type === "directional" ? /* @__PURE__ */ d(
|
|
1693
|
-
"directionalLight",
|
|
1694
|
-
{
|
|
1695
|
-
color: t.color,
|
|
1696
|
-
intensity: t.intensity,
|
|
1697
|
-
castShadow: t.castShadow
|
|
1698
|
-
}
|
|
1699
|
-
) : null,
|
|
1700
|
-
t.type === "point" ? /* @__PURE__ */ d(
|
|
1701
|
-
"pointLight",
|
|
1702
|
-
{
|
|
1703
|
-
color: t.color,
|
|
1704
|
-
intensity: t.intensity,
|
|
1705
|
-
distance: t.distance,
|
|
1706
|
-
decay: t.decay,
|
|
1707
|
-
castShadow: t.castShadow
|
|
1708
|
-
}
|
|
1709
|
-
) : null,
|
|
1710
|
-
t.type === "spot" ? /* @__PURE__ */ d(
|
|
1711
|
-
"spotLight",
|
|
1712
|
-
{
|
|
1713
|
-
color: t.color,
|
|
1714
|
-
intensity: t.intensity,
|
|
1715
|
-
distance: t.distance,
|
|
1716
|
-
angle: t.angle,
|
|
1717
|
-
penumbra: t.penumbra,
|
|
1718
|
-
decay: t.decay,
|
|
1719
|
-
castShadow: t.castShadow
|
|
1720
|
-
}
|
|
1721
|
-
) : null
|
|
1722
|
-
] }) : null;
|
|
1723
|
-
}, zn = ({
|
|
1724
|
-
source: t,
|
|
1725
|
-
target: e,
|
|
1726
|
-
settings: n
|
|
1727
|
-
}) => {
|
|
1728
|
-
if (!n.enabled || !e) return !1;
|
|
1729
|
-
const r = new We();
|
|
1730
|
-
if (n.mode === "point") {
|
|
1731
|
-
const i = new _();
|
|
1732
|
-
e.getWorldPosition(i), t.lookAt(i), r.copy(t.quaternion);
|
|
1733
|
-
} else
|
|
1734
|
-
e.getWorldQuaternion(r);
|
|
1735
|
-
const a = new We().setFromEuler(
|
|
1736
|
-
new At(
|
|
1737
|
-
n.offsetRotation.x * Math.PI / 180,
|
|
1738
|
-
n.offsetRotation.y * Math.PI / 180,
|
|
1739
|
-
n.offsetRotation.z * Math.PI / 180
|
|
1740
|
-
)
|
|
1741
|
-
);
|
|
1742
|
-
return t.quaternion.copy(r).multiply(a), !0;
|
|
1743
|
-
}, Kn = ({ target: t, settings: e, children: n }) => {
|
|
1744
|
-
const r = P(null);
|
|
1745
|
-
return se(() => {
|
|
1746
|
-
r.current && zn({ source: r.current, target: t, settings: e });
|
|
1747
|
-
}), /* @__PURE__ */ d("group", { ref: r, children: n });
|
|
1748
|
-
}, Nn = (t, e) => {
|
|
1749
|
-
let n = t;
|
|
1750
|
-
for (; n && n !== e; ) {
|
|
1751
|
-
if ("isTransformControls" in n && n.isTransformControls === !0) return !0;
|
|
1752
|
-
n = n.parent;
|
|
1753
|
-
}
|
|
1754
|
-
return !1;
|
|
1755
|
-
}, J = ({ children: t, layer: e }) => {
|
|
1756
|
-
const n = P(null), r = P(0), a = be(() => {
|
|
1757
|
-
e === void 0 || !n.current || n.current.traverse((i) => {
|
|
1758
|
-
Nn(i, n.current) || i.layers.set(e);
|
|
1759
|
-
});
|
|
1760
|
-
}, [e]);
|
|
1761
|
-
return ot(() => {
|
|
1762
|
-
a(), r.current = 2;
|
|
1763
|
-
}, [a, t]), se(() => {
|
|
1764
|
-
r.current <= 0 || (a(), r.current -= 1);
|
|
1765
|
-
}, -1e3), /* @__PURE__ */ d("group", { ref: n, children: t });
|
|
1766
|
-
}, Q = (t, e) => (t == null ? void 0 : t.type) === e, Un = (t) => null, ae = ({ children: t, inside: e }) => e ? /* @__PURE__ */ d(ge, { children: t }) : /* @__PURE__ */ d(Ot, { children: t }), Vn = ({
|
|
1767
|
-
children: t,
|
|
1768
|
-
insideScreenSpaceUI: e,
|
|
1769
|
-
objectRef: n,
|
|
1770
|
-
renderOrder: r,
|
|
1771
|
-
settings: a
|
|
1772
|
-
}) => /* @__PURE__ */ d(ae, { inside: e, children: /* @__PURE__ */ d(jn, { settings: a, renderOrder: r, objectRef: n, children: t }) }), jn = ({
|
|
1773
|
-
children: t,
|
|
1774
|
-
objectRef: e,
|
|
1775
|
-
renderOrder: n,
|
|
1776
|
-
settings: r
|
|
1777
|
-
}) => {
|
|
1778
|
-
const a = Ie();
|
|
1779
|
-
if (!r.enabled || !r.visible) return null;
|
|
1780
|
-
const i = je({ transform: r, parentSize: a });
|
|
1781
|
-
return /* @__PURE__ */ d(
|
|
1782
|
-
"group",
|
|
1783
|
-
{
|
|
1784
|
-
ref: e,
|
|
1785
|
-
position: i.center,
|
|
1786
|
-
rotation: i.rotation,
|
|
1787
|
-
scale: i.size,
|
|
1788
|
-
renderOrder: n ?? r.renderOrder,
|
|
1789
|
-
children: t
|
|
1790
|
-
}
|
|
1791
|
-
);
|
|
1792
|
-
}, Zn = ({
|
|
1793
|
-
anchor: t,
|
|
1794
|
-
children: e,
|
|
1795
|
-
insideScreenSpaceUI: n,
|
|
1796
|
-
objectRef: r,
|
|
1797
|
-
renderOrder: a,
|
|
1798
|
-
settings: i
|
|
1799
|
-
}) => /* @__PURE__ */ d(ae, { inside: n, children: /* @__PURE__ */ d(
|
|
1800
|
-
qn,
|
|
1801
|
-
{
|
|
1802
|
-
anchor: t,
|
|
1803
|
-
settings: i,
|
|
1804
|
-
renderOrder: a,
|
|
1805
|
-
objectRef: r,
|
|
1806
|
-
children: e
|
|
1807
|
-
}
|
|
1808
|
-
) }), qn = ({
|
|
1809
|
-
anchor: t,
|
|
1810
|
-
children: e,
|
|
1811
|
-
objectRef: n,
|
|
1812
|
-
renderOrder: r,
|
|
1813
|
-
settings: a
|
|
1814
|
-
}) => {
|
|
1815
|
-
const i = Lt({ targetFps: 24 }), { size: o } = he(), s = Ie(), l = P(null), c = P(new _()), A = P({
|
|
1816
|
-
pos: new _(),
|
|
1817
|
-
prevRaw: new _(),
|
|
1818
|
-
dxHat: new _(),
|
|
1819
|
-
initialized: !1
|
|
1820
|
-
}), f = P(!1), g = P({ x: 0, y: 0, z: 0, visibility: 0 }), S = P({ x: 0, y: 0 }), v = i ? Mt(
|
|
1821
|
-
t.target,
|
|
1822
|
-
i.landmarks,
|
|
1823
|
-
t.customAnchorPoint,
|
|
1824
|
-
g.current
|
|
1825
|
-
) : null, m = v ? _e({ point: v, viewportSize: o, target: S.current }) : null, u = m ? je({
|
|
1826
|
-
transform: {
|
|
1827
|
-
...a,
|
|
1828
|
-
position: {
|
|
1829
|
-
x: m.x + a.position.x + t.offset.x,
|
|
1830
|
-
y: m.y + a.position.y + t.offset.y
|
|
1831
|
-
}
|
|
1832
|
-
},
|
|
1833
|
-
parentSize: s
|
|
1834
|
-
}) : null;
|
|
1835
|
-
return se((C, b) => {
|
|
1836
|
-
const E = l.current;
|
|
1837
|
-
if (E) {
|
|
1838
|
-
if (E.visible = !!(u && a.enabled && a.visible), !u) {
|
|
1839
|
-
f.current = !1, A.current.initialized = !1;
|
|
1840
|
-
return;
|
|
1841
|
-
}
|
|
1842
|
-
c.current.set(u.center[0], u.center[1], t.offset.z), t.smoothing > 0 ? (kt(
|
|
1843
|
-
A.current,
|
|
1844
|
-
c.current,
|
|
1845
|
-
f.current ? b : 0,
|
|
1846
|
-
t.smoothing
|
|
1847
|
-
), E.position.copy(A.current.pos)) : E.position.copy(c.current), f.current = !0;
|
|
1848
|
-
}
|
|
1849
|
-
}), /* @__PURE__ */ d(
|
|
1850
|
-
"group",
|
|
1851
|
-
{
|
|
1852
|
-
ref: (C) => {
|
|
1853
|
-
l.current = C, n == null || n(C);
|
|
1854
|
-
},
|
|
1855
|
-
rotation: [
|
|
1856
|
-
(u == null ? void 0 : u.rotation[0]) ?? 0,
|
|
1857
|
-
(u == null ? void 0 : u.rotation[1]) ?? 0,
|
|
1858
|
-
((u == null ? void 0 : u.rotation[2]) ?? 0) + (t.followFaceRoll ? (i == null ? void 0 : i.pose.rotation.z) ?? 0 : 0)
|
|
1859
|
-
],
|
|
1860
|
-
scale: [
|
|
1861
|
-
a.size.width / 100 * a.scale2D.x,
|
|
1862
|
-
a.size.height / 100 * a.scale2D.y,
|
|
1863
|
-
1
|
|
1864
|
-
],
|
|
1865
|
-
renderOrder: r ?? a.renderOrder,
|
|
1866
|
-
children: e
|
|
1867
|
-
}
|
|
1868
|
-
);
|
|
1869
|
-
}, _n = ({
|
|
1870
|
-
editorMode: t = !1,
|
|
1871
|
-
faceMeshMaterialOverrides: e,
|
|
1872
|
-
fallback: n = Un,
|
|
1873
|
-
insideScreenSpaceUI: r = !1,
|
|
1874
|
-
objectId: a,
|
|
1875
|
-
onComponentChange: i,
|
|
1876
|
-
renderLayer: o,
|
|
1877
|
-
renderOrder: s,
|
|
1878
|
-
store: l
|
|
1879
|
-
}) => {
|
|
1880
|
-
const c = Ft(), A = Yt(), f = l.objects[a];
|
|
1881
|
-
if (!f || !f.enabled) return null;
|
|
1882
|
-
const g = ut(l, a).filter((h) => h.enabled), S = g.find((h) => h.type === "Transform"), v = g.find((h) => h.type === "ScreenTransform"), m = g.find((h) => h.type === "ScreenImage"), u = g.find((h) => h.type === "ScreenText"), C = g.find((h) => h.type === "ScreenShape"), b = g.find((h) => h.type === "MeshRenderer"), E = g.find((h) => h.type === "FaceMeshRenderer"), p = g.find((h) => h.type === "Light"), w = g.find((h) => h.type === "LookAt"), y = g.find((h) => h.type === "PinToMesh"), L = g.find((h) => h.type === "TrackingAnchor"), T = St(l, a).map((h) => /* @__PURE__ */ d(
|
|
1883
|
-
_n,
|
|
1884
|
-
{
|
|
1885
|
-
objectId: h.id,
|
|
1886
|
-
store: l,
|
|
1887
|
-
editorMode: t,
|
|
1888
|
-
renderOrder: s,
|
|
1889
|
-
renderLayer: o,
|
|
1890
|
-
onComponentChange: i,
|
|
1891
|
-
fallback: n,
|
|
1892
|
-
faceMeshMaterialOverrides: e,
|
|
1893
|
-
insideScreenSpaceUI: r || !!v
|
|
1894
|
-
},
|
|
1895
|
-
h.id
|
|
1896
|
-
));
|
|
1897
|
-
if (Q(S, "Transform") && Q(p, "Light"))
|
|
1898
|
-
return /* @__PURE__ */ d(J, { layer: o, children: /* @__PURE__ */ W("group", { ref: (h) => c(a, h), children: [
|
|
1899
|
-
/* @__PURE__ */ d(Jn, { settings: p.settings, transform: S.settings }),
|
|
1900
|
-
T
|
|
1901
|
-
] }) });
|
|
1902
|
-
if (Q(S, "Transform") && Q(b, "MeshRenderer")) {
|
|
1903
|
-
const h = Q(w, "LookAt") ? w.settings : Xe("LookAt", a).settings, F = h.inheritChildren ? T : null, z = h.inheritChildren ? null : T;
|
|
1904
|
-
return /* @__PURE__ */ d(J, { layer: o, children: /* @__PURE__ */ d("group", { ref: (H) => c(a, H), children: /* @__PURE__ */ d(
|
|
1905
|
-
vt,
|
|
1906
|
-
{
|
|
1907
|
-
target: Q(y, "PinToMesh") ? A(y.settings.targetObjectId) : null,
|
|
1908
|
-
settings: Q(y, "PinToMesh") ? y.settings : Xe("PinToMesh", a).settings,
|
|
1909
|
-
children: /* @__PURE__ */ W(
|
|
1910
|
-
ce,
|
|
1911
|
-
{
|
|
1912
|
-
value: S.settings,
|
|
1913
|
-
onChange: i ? (H) => i({ ...S, settings: H }) : void 0,
|
|
1914
|
-
children: [
|
|
1915
|
-
/* @__PURE__ */ W(
|
|
1916
|
-
Kn,
|
|
1917
|
-
{
|
|
1918
|
-
target: Q(w, "LookAt") ? A(w.settings.targetObjectId) : null,
|
|
1919
|
-
settings: h,
|
|
1920
|
-
children: [
|
|
1921
|
-
/* @__PURE__ */ d(gt, { value: b.settings, renderOrder: s }),
|
|
1922
|
-
F
|
|
1923
|
-
]
|
|
1924
|
-
}
|
|
1925
|
-
),
|
|
1926
|
-
z
|
|
1927
|
-
]
|
|
1928
|
-
}
|
|
1929
|
-
)
|
|
1930
|
-
}
|
|
1931
|
-
) }) });
|
|
1932
|
-
}
|
|
1933
|
-
if (Q(E, "FaceMeshRenderer"))
|
|
1934
|
-
return /* @__PURE__ */ d(J, { layer: o, children: /* @__PURE__ */ W("group", { ref: (h) => c(a, h), children: [
|
|
1935
|
-
/* @__PURE__ */ d(
|
|
1936
|
-
ft,
|
|
1937
|
-
{
|
|
1938
|
-
value: E.settings,
|
|
1939
|
-
materialOverride: e == null ? void 0 : e[E.id],
|
|
1940
|
-
transform: Q(S, "Transform") ? S.settings : void 0
|
|
1941
|
-
}
|
|
1942
|
-
),
|
|
1943
|
-
T
|
|
1944
|
-
] }) });
|
|
1945
|
-
if (Q(S, "Transform")) {
|
|
1946
|
-
if (Q(L, "TrackingAnchor")) {
|
|
1947
|
-
const h = L.settings;
|
|
1948
|
-
return /* @__PURE__ */ d(J, { layer: o, children: /* @__PURE__ */ d(Qt, { followFaceRoll: h.followFaceRoll, children: /* @__PURE__ */ d(
|
|
1949
|
-
xt,
|
|
1950
|
-
{
|
|
1951
|
-
target: h.target,
|
|
1952
|
-
customAnchorPoint: h.customAnchorPoint,
|
|
1953
|
-
offset: [h.offset.x, h.offset.y, h.offset.z],
|
|
1954
|
-
smoothing: h.smoothing,
|
|
1955
|
-
children: /* @__PURE__ */ d(
|
|
1956
|
-
ce,
|
|
1957
|
-
{
|
|
1958
|
-
objectRef: (F) => c(a, F),
|
|
1959
|
-
value: S.settings,
|
|
1960
|
-
children: T
|
|
1961
|
-
}
|
|
1962
|
-
)
|
|
1963
|
-
}
|
|
1964
|
-
) }) });
|
|
1965
|
-
}
|
|
1966
|
-
return /* @__PURE__ */ d(J, { layer: o, children: /* @__PURE__ */ d("group", { children: /* @__PURE__ */ d(
|
|
1967
|
-
ce,
|
|
1968
|
-
{
|
|
1969
|
-
objectRef: (h) => c(a, h),
|
|
1970
|
-
value: S.settings,
|
|
1971
|
-
onChange: i ? (h) => i({ ...S, settings: h }) : void 0,
|
|
1972
|
-
children: T
|
|
1973
|
-
}
|
|
1974
|
-
) }) });
|
|
1975
|
-
}
|
|
1976
|
-
if (Q(v, "ScreenTransform") && Q(m, "ScreenImage")) {
|
|
1977
|
-
const h = mt({
|
|
1978
|
-
screenSpaceUI: { enabled: !0 },
|
|
1979
|
-
screenImage: {
|
|
1980
|
-
...m.settings,
|
|
1981
|
-
screenTransform: v.settings
|
|
1982
|
-
}
|
|
1983
|
-
});
|
|
1984
|
-
return h.shouldRender ? /* @__PURE__ */ d(J, { layer: o, children: /* @__PURE__ */ d("group", { renderOrder: s, children: /* @__PURE__ */ W(ae, { inside: r, children: [
|
|
1985
|
-
/* @__PURE__ */ d(
|
|
1986
|
-
Fn,
|
|
1987
|
-
{
|
|
1988
|
-
...h.props,
|
|
1989
|
-
renderOrder: s ?? h.props.renderOrder,
|
|
1990
|
-
onScreenTransformChange: i ? (F) => i({ ...v, settings: F }) : void 0
|
|
1991
|
-
}
|
|
1992
|
-
),
|
|
1993
|
-
T
|
|
1994
|
-
] }) }) }) : null;
|
|
1995
|
-
}
|
|
1996
|
-
if (Q(v, "ScreenTransform") && Q(u, "ScreenText")) {
|
|
1997
|
-
const h = Ct({
|
|
1998
|
-
screenSpaceUI: { enabled: !0 },
|
|
1999
|
-
screenText: {
|
|
2000
|
-
...u.settings,
|
|
2001
|
-
screenTransform: v.settings
|
|
2002
|
-
}
|
|
2003
|
-
});
|
|
2004
|
-
return h.shouldRender ? /* @__PURE__ */ d(J, { layer: o, children: /* @__PURE__ */ d("group", { renderOrder: s, children: /* @__PURE__ */ W(ae, { inside: r, children: [
|
|
2005
|
-
/* @__PURE__ */ d(
|
|
2006
|
-
Hn,
|
|
2007
|
-
{
|
|
2008
|
-
...h.props,
|
|
2009
|
-
renderOrder: s ?? h.props.renderOrder,
|
|
2010
|
-
onScreenTransformChange: i ? (F) => i({ ...v, settings: F }) : void 0
|
|
2011
|
-
}
|
|
2012
|
-
),
|
|
2013
|
-
T
|
|
2014
|
-
] }) }) }) : null;
|
|
2015
|
-
}
|
|
2016
|
-
return Q(v, "ScreenTransform") && Q(C, "ScreenShape") ? /* @__PURE__ */ d(J, { layer: o, children: /* @__PURE__ */ d("group", { ref: (h) => c(a, h), renderOrder: s, children: /* @__PURE__ */ W(ae, { inside: r, children: [
|
|
2017
|
-
/* @__PURE__ */ d(
|
|
2018
|
-
Et,
|
|
2019
|
-
{
|
|
2020
|
-
name: f.name,
|
|
2021
|
-
settings: C.settings,
|
|
2022
|
-
transform: v.settings,
|
|
2023
|
-
renderOrder: s,
|
|
2024
|
-
onScreenTransformChange: i ? (h) => i({ ...v, settings: h }) : void 0
|
|
2025
|
-
}
|
|
2026
|
-
),
|
|
2027
|
-
T
|
|
2028
|
-
] }) }) }) : Q(v, "ScreenTransform") ? Q(L, "TrackingAnchor") ? /* @__PURE__ */ d(J, { layer: o, children: /* @__PURE__ */ d("group", { children: /* @__PURE__ */ d(
|
|
2029
|
-
Zn,
|
|
2030
|
-
{
|
|
2031
|
-
anchor: L.settings,
|
|
2032
|
-
settings: v.settings,
|
|
2033
|
-
renderOrder: s,
|
|
2034
|
-
insideScreenSpaceUI: r,
|
|
2035
|
-
objectRef: (h) => c(a, h),
|
|
2036
|
-
children: T
|
|
2037
|
-
}
|
|
2038
|
-
) }) }) : /* @__PURE__ */ d(J, { layer: o, children: /* @__PURE__ */ d("group", { children: /* @__PURE__ */ d(
|
|
2039
|
-
Vn,
|
|
2040
|
-
{
|
|
2041
|
-
settings: v.settings,
|
|
2042
|
-
renderOrder: s,
|
|
2043
|
-
insideScreenSpaceUI: r,
|
|
2044
|
-
objectRef: (h) => c(a, h),
|
|
2045
|
-
children: T
|
|
2046
|
-
}
|
|
2047
|
-
) }) }) : t ? /* @__PURE__ */ W(ge, { children: [
|
|
2048
|
-
T,
|
|
2049
|
-
n(
|
|
2050
|
-
`Object "${f.name}" has unsupported components: ${g.map((h) => h.type).join(", ")}`
|
|
2051
|
-
)
|
|
2052
|
-
] }) : T.length ? /* @__PURE__ */ d(ge, { children: T }) : null;
|
|
2053
|
-
}, Tr = ({ layers: t }) => {
|
|
2054
|
-
const { camera: e, gl: n, raycaster: r, scene: a } = he(), { session: i } = Wt(), o = be(
|
|
2055
|
-
() => bt({ renderer: n, scene: a, camera: e, layers: t }),
|
|
2056
|
-
[e, n, t, a]
|
|
2057
|
-
);
|
|
2058
|
-
return se(o, 1), te(() => {
|
|
2059
|
-
const s = r.layers.mask;
|
|
2060
|
-
return t.forEach((l) => r.layers.enable(l)), () => {
|
|
2061
|
-
r.layers.mask = s;
|
|
2062
|
-
};
|
|
2063
|
-
}, [t, r]), te(() => (i._setR3FState({ renderer: n, scene: a, camera: e, renderFrame: o }), () => i._setR3FState({ renderer: n, scene: a, camera: e })), [e, n, o, a, i]), null;
|
|
2064
|
-
};
|
|
2065
|
-
export {
|
|
2066
|
-
Jn as L,
|
|
2067
|
-
J as R,
|
|
2068
|
-
Ot as S,
|
|
2069
|
-
sn as T,
|
|
2070
|
-
Fn as a,
|
|
2071
|
-
Hn as b,
|
|
2072
|
-
Ee as c,
|
|
2073
|
-
Kn as d,
|
|
2074
|
-
_n as e,
|
|
2075
|
-
Tr as f,
|
|
2076
|
-
Sr as g,
|
|
2077
|
-
vr as h,
|
|
2078
|
-
br as i,
|
|
2079
|
-
mr as j,
|
|
2080
|
-
fr as k,
|
|
2081
|
-
yr as l,
|
|
2082
|
-
Er as m,
|
|
2083
|
-
_e as n,
|
|
2084
|
-
ur as o,
|
|
2085
|
-
gr as p,
|
|
2086
|
-
dr as s,
|
|
2087
|
-
Cr as t,
|
|
2088
|
-
Ir as w
|
|
2089
|
-
};
|