New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@zappar/zappar-threejs

Package Overview
Dependencies
Maintainers
11
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zappar/zappar-threejs - npm Package Compare versions

Comparing version 0.3.38 to 0.3.39

16

CHANGELOG.md
# Changelog
## [0.3.38] - 2021-03-07
## [0.3.39] - 2022-02-29
### Fixed
- Addressed texture encoding issues for the camera background texture with recent three.js versions.
## [0.3.38] - 2022-03-07
### Changed

@@ -9,3 +15,3 @@

## [0.3.37] - 2021-02-15
## [0.3.37] - 2022-02-15

@@ -16,3 +22,3 @@ ### Changed

## [0.3.36] - 2021-02-11
## [0.3.36] - 2022-02-11

@@ -23,3 +29,3 @@ ### Changed

## [0.3.35] - 2021-02-11
## [0.3.35] - 2022-02-11

@@ -30,3 +36,3 @@ ### Changed

## [0.3.34] - 2021-02-08
## [0.3.34] - 2022-02-08

@@ -33,0 +39,0 @@ ### Fixed

@@ -240,3 +240,3 @@ "use strict";

this.backgroundTexture.MirrorMode = this.currentMirrorMode;
this.backgroundTexture.update(renderer, this.pipeline);
this.backgroundTexture.updateFromPipeline(renderer, this.pipeline);
}

@@ -243,0 +243,0 @@ // eslint-disable-next-line no-underscore-dangle

@@ -9,3 +9,8 @@ import { Pipeline } from "@zappar/zappar";

MirrorMode: CameraMirrorMode;
isVideoTexture: boolean;
/**
* Override three.js update function since we update the camera texture ourselves.
*/
update(): void;
/**
* Processes camera frames and updates the texture.

@@ -15,3 +20,3 @@ * @param renderer - The Three.js WebGL renderer.

*/
update(renderer: THREE.WebGLRenderer, pipeline: Pipeline): void;
updateFromPipeline(renderer: THREE.WebGLRenderer, pipeline: Pipeline): void;
}

@@ -13,4 +13,9 @@ "use strict";

this.MirrorMode = camera_1.CameraMirrorMode.None;
this.isVideoTexture = true;
}
/**
* Override three.js update function since we update the camera texture ourselves.
*/
update() { } // eslint-disable-line class-methods-use-this
/**
* Processes camera frames and updates the texture.

@@ -20,3 +25,4 @@ * @param renderer - The Three.js WebGL renderer.

*/
update(renderer, pipeline) {
updateFromPipeline(renderer, pipeline) {
this.encoding = renderer.outputEncoding;
pipeline.cameraFrameUploadGL();

@@ -26,3 +32,2 @@ const texture = pipeline.cameraFrameTextureGL();

return;
this.encoding = renderer.outputEncoding;
// Update the underlying WebGL texture of the ThreeJS texture object

@@ -29,0 +34,0 @@ // to the one provided by the Zappar library

/**
* SDK version.
*/
export declare const VERSION = "0.3.38";
export declare const VERSION = "0.3.39";

@@ -7,2 +7,2 @@ "use strict";

*/
exports.VERSION = "0.3.38";
exports.VERSION = "0.3.39";
{
"name": "@zappar/zappar-threejs",
"version": "0.3.38",
"version": "0.3.39",
"description": "ThreeJS wrappers for Zappar's computer vision library",

@@ -43,3 +43,3 @@ "main": "lib/index.js",

"@types/node": "17.0.16",
"@types/three": "0.137.0",
"@types/three": "^0.139.0",
"@typescript-eslint/eslint-plugin": "5.11.0",

@@ -66,3 +66,3 @@ "@typescript-eslint/parser": "5.11.0",

"puppeteer": "13.2.0",
"three": "0.137.5",
"three": "^0.139.0",
"ts-jest": "27.1.3",

@@ -69,0 +69,0 @@ "ts-loader": "9.2.6",

@@ -71,3 +71,3 @@ # Zappar for ThreeJS

<!-- Added by: zapparadmin, at: Mon Mar 7 12:57:27 GMT 2022 -->
<!-- Added by: zapparadmin, at: Tue Mar 29 15:13:29 BST 2022 -->

@@ -103,3 +103,3 @@ <!--te-->

Download the bundle from:
<https://libs.zappar.com/zappar-threejs/0.3.38/zappar-threejs.zip>
<https://libs.zappar.com/zappar-threejs/0.3.39/zappar-threejs.zip>

@@ -117,3 +117,3 @@ Unzip into your web project and reference from your HTML like this:

```html
<script src="https://libs.zappar.com/zappar-threejs/0.3.38/zappar-threejs.js"></script>
<script src="https://libs.zappar.com/zappar-threejs/0.3.39/zappar-threejs.js"></script>
```

@@ -120,0 +120,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc