@zappar/zappar-babylonjs
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -50,3 +50,3 @@ import * as Zappar from "@zappar/zappar"; | ||
*/ | ||
declare type Source = HTMLImageElement | HTMLVideoElement | string; | ||
type Source = HTMLImageElement | HTMLVideoElement | string; | ||
/** | ||
@@ -57,3 +57,3 @@ * Rear and user camera source options. | ||
*/ | ||
declare type SourceOptions = { | ||
type SourceOptions = { | ||
rearCameraSource?: Source; | ||
@@ -69,3 +69,3 @@ userCameraSource?: Source; | ||
*/ | ||
declare type Options = Zappar.Pipeline | (Partial<{ | ||
type Options = Zappar.Pipeline | (Partial<{ | ||
pipeline: Zappar.Pipeline; | ||
@@ -72,0 +72,0 @@ zNear: number; |
@@ -172,3 +172,3 @@ /* eslint-disable prefer-destructuring */ | ||
// babylon 4 | ||
const internalTexture = new BABYLON.InternalTexture(this._engine, BABYLON.InternalTextureSource.Unknown, true); | ||
const internalTexture = new BABYLON.InternalTexture(this._engine, 0, true); | ||
internalTexture._webGLTexture = webglTexture; | ||
@@ -181,3 +181,11 @@ internalTexture.isReady = true; | ||
else { | ||
this.layer.texture._texture._hardwareTexture._webGLTexture = webglTexture; | ||
if (this.layer && this.layer.texture && this.layer.texture._texture) { | ||
this.layer.texture._texture._webGLTexture = webglTexture; | ||
} | ||
if (this.layer && | ||
this.layer.texture && | ||
this.layer.texture._texture && | ||
this.layer.texture._texture._hardwareTexture) { | ||
this.layer.texture._texture._hardwareTexture._webGLTexture = webglTexture; | ||
} | ||
} | ||
@@ -184,0 +192,0 @@ const view = this.pipeline.cameraFrameTextureMatrix(this._engine.getRenderWidth(), this._engine.getRenderHeight(), this._currentMirrorMode === CameraMirrorMode.Poses); |
/** | ||
* SDK version. | ||
*/ | ||
declare const VERSION = "2.1.3"; | ||
declare const VERSION = "2.1.4"; | ||
export default VERSION; |
/** | ||
* SDK version. | ||
*/ | ||
const VERSION = "2.1.3"; | ||
const VERSION = "2.1.4"; | ||
console.log(`Zappar for BabylonJS v${VERSION}`); | ||
export default VERSION; |
{ | ||
"name": "@zappar/zappar-babylonjs", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "BabylonJS wrappers for Zappar's computer vision library", | ||
@@ -39,40 +39,40 @@ "main": "lib/src/index.js", | ||
"devDependencies": { | ||
"@types/expect-puppeteer": "4.4.6", | ||
"@types/jest": "^27.4.1", | ||
"@types/expect-puppeteer": "^5.0.3", | ||
"@types/jest": "^29.5.3", | ||
"@types/jest-environment-puppeteer": "^5.0.0", | ||
"@types/jest-image-snapshot": "4.3.1", | ||
"@types/node": "15.3.0", | ||
"@types/puppeteer": "5.4.4", | ||
"@types/jest-image-snapshot": "^6.1.0", | ||
"@types/node": "^20.4.1", | ||
"@types/puppeteer": "^7.0.4", | ||
"@types/stats.js": "0.17.0", | ||
"@typescript-eslint/eslint-plugin": "4.28.5", | ||
"@typescript-eslint/parser": "4.28.5", | ||
"@zappar/jest-console-logs": "1.0.2", | ||
"babylonjs": "^5.0.3", | ||
"babylonjs-gui": "^5.0.3", | ||
"babylonjs-loaders": "^5.0.3", | ||
"copy-webpack-plugin": "8.1.1", | ||
"eslint": "7.31.0", | ||
"eslint-config-airbnb-base": "14.2.1", | ||
"eslint-config-prettier": "8.3.0", | ||
"eslint-plugin-import": "2.23.4", | ||
"eslint-plugin-prettier": "3.4.0", | ||
"eslint-plugin-tsdoc": "0.2.14", | ||
"eslint-webpack-plugin": "2.5.4", | ||
"@typescript-eslint/eslint-plugin": "^6.0.0", | ||
"@typescript-eslint/parser": "^6.0.0", | ||
"@zappar/jest-console-logs": "^1.1.1", | ||
"babylonjs": "^6.11.2", | ||
"babylonjs-gui": "^6.11.2", | ||
"babylonjs-loaders": "^6.11.2", | ||
"copy-webpack-plugin": "^11.0.0", | ||
"eslint": "^8.44.0", | ||
"eslint-config-airbnb-base": "^15.0.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-prettier": "^5.0.0", | ||
"eslint-plugin-tsdoc": "^0.2.17", | ||
"eslint-webpack-plugin": "^4.0.1", | ||
"file-loader": "^6.2.0", | ||
"html-webpack-plugin": "5.3.2", | ||
"html-webpack-plugin": "^5.5.3", | ||
"husky": "4.3.8", | ||
"jest": "^27.5.1", | ||
"jest-image-snapshot": "4.5.1", | ||
"jest-puppeteer": "5.0.4", | ||
"jest": "^29.6.1", | ||
"jest-image-snapshot": "^6.1.0", | ||
"jest-puppeteer": "^9.0.0", | ||
"lint-staged": "11.1.1", | ||
"prettier": "2.3.2", | ||
"puppeteer": "9.1.1", | ||
"prettier": "^3.0.0", | ||
"puppeteer": "^20.8.1", | ||
"stats.js": "0.17.0", | ||
"ts-jest": "^27.1.4", | ||
"ts-loader": "9.2.4", | ||
"typedoc": "^0.22.13", | ||
"typescript": "~4.6.2", | ||
"webpack": "5.47.1", | ||
"webpack-cli": "^4.9.1", | ||
"webpack-dev-server": "4.7.3", | ||
"ts-jest": "^29.1.1", | ||
"ts-loader": "^9.4.4", | ||
"typedoc": "^0.24.8", | ||
"typescript": "^5.1.6", | ||
"webpack": "^5.88.1", | ||
"webpack-cli": "^5.1.4", | ||
"webpack-dev-server": "^4.15.1", | ||
"worker-loader": "^3.0.8" | ||
@@ -79,0 +79,0 @@ }, |
@@ -64,3 +64,3 @@ # Zappar for Babylon.js | ||
<!-- Added by: zapparadmin, at: Thu Jul 6 14:40:22 BST 2023 --> | ||
<!-- Added by: zapparadmin, at: Tue Jul 11 13:10:49 BST 2023 --> | ||
@@ -105,3 +105,3 @@ <!--te--> | ||
```html | ||
<script src="https://libs.zappar.com/zappar-babylon/2.1.3/zappar-babylon.js"></script> | ||
<script src="https://libs.zappar.com/zappar-babylon/2.1.4/zappar-babylon.js"></script> | ||
``` | ||
@@ -108,0 +108,0 @@ |
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 too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
7701205
1669