deepar 5.0.0-alpha-2 → 5.0.0-alpha-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -49,7 +49,7 @@ export declare class DeepAR {
49
49
  *
50
50
  * @param effect A path (URL) to the AR effect file or an ArrayBuffer object of an already fetched AR effect file.
51
51
  * @param effectOptions Effect options.
52
- * @param effectOptions.slot Default value is "mask" if slot is not given. Slot is a container for a given AR effect. When replacing the already loaded AR effect, call switchEffect with that same slot. To remove AR effect entirely, call {@link clearEffect} with the same slot.
52
+ * @param effectOptions.slot Default value is "DEFAULT_SLOT" if slot is not given. Slot is a container for a given AR effect. When replacing the already loaded AR effect, call switchEffect with that same slot. To remove AR effect entirely, call {@link clearEffect} with the same slot.
53
53
  * @param effectOptions.face If AR effect is face filter, select to which face to attach it to. The value should be between 0 and 3. Default value is 0.
54
54
  *
55
55
  *
@@ -77,7 +77,7 @@ export declare class DeepAR {
77
77
  }): Promise<void>;
78
78
  /**
79
79
  * Clears the given slot of any loaded effects.
80
- * @param slot The effect slot name.
80
+ * @param slot The effect slot name. Default is "DEFAULT_SLOT".
81
81
  */
82
82
  clearEffect(slot?: string): void;
83
83
  /**
@@ -160,7 +160,7 @@ export declare class DeepAR {
160
160
  * Pauses the DeepAR processing and rendering on canvas.
161
161
  * @param isPause If true, DeepAR will pause. Otherwise, it will resume processing and rendering.
162
162
  */
163
- pause(isPause: boolean): void;
163
+ setPaused(isPause: boolean): void;
164
164
  /**
165
165
  * Changes a node or component bool parameter of the currently loaded effect. For more details about changeParameter API read our docs <a href="https://docs.deepar.ai/guides-and-tutorials/changing-filter-parameters-from-code">here</a>.
166
166
  * @param gameObject The name of the node from DeepAR Studio. If multiple nodes share the same name, only the first one will be affected.
@@ -39,4 +39,10 @@ export interface DeepARCallbacks {
39
39
  * @param newState Name of the new state that is being transitioned to.
40
40
  */
41
41
  onAnimationTransitionedToState?: (newState: string) => void;
42
+ /**
43
+ * An internal callback called on every render().
44
+ * @param canvas A canvas containing input camera image that DeepAR used for rendering/tracking.
45
+ * @internal
46
+ */
47
+ __deeparRendered?: (canvas: HTMLCanvasElement) => void;
42
48
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * DeepAR Web SDK version.
3
3
  */
4
- declare const version = "5.0.0-alpha-2";
4
+ declare const version = "5.0.0-alpha-4";
5
5
  export { version };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deepar",
3
- "version": "5.0.0-alpha-2",
3
+ "version": "5.0.0-alpha-4",
4
4
  "description": "The official DeepAR Web SDK",
5
5
  "main": "js/deepar.esm.js",
6
6
  "jsdelivr": "js/deepar.js",
package/wasm/deepar.wasm CHANGED
Binary file