Comparing version 5.1.1 to 5.2.0-alphaChromeExtension-alpha-816
import { FaceData } from "./faceData"; | ||
import { FootData } from "./footData"; | ||
import { WristData } from "./wristData"; | ||
/** | ||
@@ -28,2 +29,8 @@ * Callbacks from DeepAR notifying events. | ||
/** | ||
* Passes the information about the detected wrist. If this callback is set, it will get called every frame. | ||
* NOTE: This callback is only called when the SDK does wrist tracking. For example, you laded some effect that uses wrist tracking (watch-try-on effects). But if no effect is loaded this callback will not get called because the SDK is not performing wrist tracking. | ||
* @param wristData Information about the wrist. | ||
*/ | ||
onWristTracked?: (wristData: WristData) => void; | ||
/** | ||
* Called when foot tracking is fully initialized. | ||
@@ -41,2 +48,8 @@ * Be sure to check {@link DeepAR.isFootTrackingInitialized} before setting this callback. | ||
/** | ||
* Called when wrist tracking is fully initialized. | ||
* Be sure to check {@link DeepAR.isWristTrackingInitialized} before setting this callback. | ||
* Because this callback is called only once. So if you set this callback after the wrist tracking is initialized, it will not be called again. | ||
*/ | ||
onWristTrackingInitialized?: () => void; | ||
/** | ||
* Called when the animation player transitions to a new state. | ||
@@ -43,0 +56,0 @@ * @param newState Name of the new state that is being transitioned to. |
@@ -268,3 +268,3 @@ import { ARTouchInfo } from "./touchType"; | ||
* But this method will start loading the segmentation immediately. | ||
* To start initializing foot tracking as soon as possible pass "segmentationInit" hint in the {@link initialize} function (see {@link DeepARParams}). <br><br> | ||
* To start initializing segmentation as soon as possible pass "segmentationInit" hint in the {@link initialize} function (see {@link DeepARParams}). <br><br> | ||
* | ||
@@ -280,2 +280,6 @@ * If the segmentation is already initialized it will do nothing. | ||
/** | ||
* Check weather the wrist tracking is initialized. | ||
*/ | ||
isWristTrackingInitialized(): boolean; | ||
/** | ||
* Display profiling metrics on preview. | ||
@@ -324,2 +328,8 @@ * @param enabled | ||
showColliders(enabled: boolean): void; | ||
/** | ||
* Sets the preview zoom. | ||
* | ||
* @param zoomLevel Floating point number determining how much to zoom in. Value <= 1 will disable zoom. Example, value 2.0 puts 2x zoom. | ||
*/ | ||
setZoom(zoomLevel: number): void; | ||
} |
@@ -120,2 +120,35 @@ /** | ||
/** | ||
* Foot tracking module paths and options. | ||
*/ | ||
wristTrackingConfig?: { | ||
/** | ||
* Path to the pose libPoseEstimation.wasm file, e.g. "/path/to/deepar/wasm/libPoseEstimation.wasm". | ||
*/ | ||
poseEstimationWasmPath?: string; | ||
/** | ||
* Path to the detector model, e.g. "/path/to/deepar/models/foot/foot-detector.bin". | ||
*/ | ||
detectorPath?: string; | ||
/** | ||
* Path to the tracker model, e.g. "/path/to/deepar/models/foot/foot-tracker.bin". | ||
*/ | ||
trackerPath?: string; | ||
/** | ||
* Path to the foot model object file, e.g. "/path/to/deepar/models/foot/foot-model.obj". | ||
*/ | ||
objPath?: string; | ||
/** | ||
* Path to tfjs-backend-wasm.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm.wasm" | ||
*/ | ||
tfjsBackendWasmPath?: string; | ||
/** | ||
* Path to tfjs-backend-wasm-simd.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm-simd.wasm" | ||
*/ | ||
tfjsBackendWasmSimdPath?: string; | ||
/** | ||
* Path to tfjs-backend-wasm-threaded-simd.wasm file, e.g. "path/to/deepar/wasm/tfjs-backend-wasm-threaded-simd.wasm" | ||
*/ | ||
tfjsBackendWasmThreadedSimdPath?: string; | ||
}; | ||
/** | ||
* Path to deepar.wasm file. Something like "/path/to/deepar/wasm/deepar.wasm". | ||
@@ -122,0 +155,0 @@ */ |
/** | ||
* DeepAR Web SDK version. | ||
*/ | ||
declare const version = "5.1.1"; | ||
declare const version = "5.2.0-alphaChromeExtension-alpha-816"; | ||
export { version }; |
{ | ||
"name": "deepar", | ||
"version": "5.1.1", | ||
"version": "5.2.0-alphaChromeExtension-alpha-816", | ||
"description": "The official DeepAR Web SDK", | ||
@@ -5,0 +5,0 @@ "main": "js/deepar.esm.js", |
@@ -1,1 +0,1 @@ | ||
DeepAR SDK version: v5.1.1 | ||
DeepAR SDK version: v5.2.0-alphaChromeExtension-alpha-816 |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 2 instances in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31138530
38
8472
2
56