@ssafy-mhk/e-ver 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/garment/fitMotion.d.ts +3 -0
- package/dist/garment/trackedModelTransform.d.ts +1 -0
- package/dist/index.d.ts +0 -8
- package/dist/index.es.js +922 -1026
- package/dist/index.umd.js +1 -1
- package/dist/pose/coordinateTransform.d.ts +2 -0
- package/package.json +4 -4
- package/dist/components/AvatarModel.d.ts +0 -11
- package/dist/components/CameraView.d.ts +0 -15
- package/dist/components/EverProvider.d.ts +0 -9
- package/dist/components/GarmentModel.d.ts +0 -10
- package/dist/components/ever-context.d.ts +0 -9
- package/dist/hooks/useBodyMeasurer.d.ts +0 -20
- package/dist/hooks/useBodyMeasurer.test.d.ts +0 -1
- package/dist/hooks/usePoseMapper.d.ts +0 -8
- package/dist/hooks/usePoseMapper.test.d.ts +0 -1
- package/dist/store/useEverStore.d.ts +0 -22
- package/dist/store/useEverStore.test.d.ts +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { NormalizedLandmark } from "@mediapipe/tasks-vision";
|
|
2
2
|
import * as THREE from "three";
|
|
3
|
+
import type { PoseRig } from "../types/pose";
|
|
3
4
|
interface StableShoulderWidthInput {
|
|
4
5
|
projectedShoulderWidth: number;
|
|
5
6
|
projectedTorsoHeight: number;
|
|
@@ -14,5 +15,7 @@ interface GarmentRootOrientationInput {
|
|
|
14
15
|
}
|
|
15
16
|
export declare function computeFacingAwareShoulderWidth(shoulderWidth: number, torsoHeight: number, bodyYaw: number): number;
|
|
16
17
|
export declare function computeStableShoulderWidth({ projectedShoulderWidth, projectedTorsoHeight, bodyYaw, worldLandmarks, }: StableShoulderWidthInput): number;
|
|
18
|
+
export declare function computeGarmentGroupYaw(poseRig: PoseRig | null): number;
|
|
19
|
+
export declare function computeGarmentGroupRoll(leftShoulder: Pick<NormalizedLandmark, "x" | "y">, rightShoulder: Pick<NormalizedLandmark, "x" | "y">, bodyYaw: number): number;
|
|
17
20
|
export declare function computeGarmentRootQuaternion({ leftShoulder, rightShoulder, leftHip, rightHip, }: GarmentRootOrientationInput, target?: THREE.Quaternion): THREE.Quaternion | null;
|
|
18
21
|
export {};
|
|
@@ -38,3 +38,4 @@ export interface TrackedModelTransformOptions {
|
|
|
38
38
|
}
|
|
39
39
|
export declare function createTrackedModelTransformScratch(): TrackedModelTransformScratch;
|
|
40
40
|
export declare function updateTrackedModelTransform(fitProfile: GarmentFitProfile, landmarks: NormalizedLandmark[], viewportWidth: number, viewportHeight: number, scratch: TrackedModelTransformScratch, options?: TrackedModelTransformOptions): boolean;
|
|
41
|
+
export declare function applyTrackedModelTransform(target: THREE.Object3D, scratch: TrackedModelTransformScratch): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
export * from "./store/useEverStore";
|
|
2
|
-
export * from "./components/EverProvider";
|
|
3
|
-
export * from "./components/ever-context";
|
|
4
1
|
export * from "./components/EverCanvas";
|
|
5
2
|
export * from "./components/EverFittingScene";
|
|
6
3
|
export * from "./components/EverTrackedGarment";
|
|
7
|
-
export * from "./components/CameraView";
|
|
8
|
-
export * from "./components/AvatarModel";
|
|
9
|
-
export * from "./components/GarmentModel";
|
|
10
4
|
export * from "./components/TrackedGarmentPoseDriver";
|
|
11
5
|
export * from "./components/WebcamPlaneBackground";
|
|
12
6
|
export * from "./hooks/usePoseTracker";
|
|
13
|
-
export * from "./hooks/usePoseMapper";
|
|
14
|
-
export * from "./hooks/useBodyMeasurer";
|
|
15
7
|
export * from "./hooks/useMeasurement";
|
|
16
8
|
export * from "./hooks/useWebcam";
|
|
17
9
|
export * from "./hooks/useEverFitting";
|