node-red-node-ui-webcam
Advanced tools
+1
-1
| { | ||
| "name": "node-red-node-ui-webcam", | ||
| "version": "0.2.0", | ||
| "version": "0.2.1", | ||
| "description": "A Node-RED ui node to capture images from a webcam.", | ||
@@ -5,0 +5,0 @@ "author": "Nick O'Leary", |
+2
-5
@@ -19,2 +19,3 @@ <!-- | ||
| defaults: { | ||
| name: {value: ''}, | ||
| group: {type: 'ui_group', required:true}, | ||
@@ -33,4 +34,3 @@ order: {value: 0}, | ||
| }}, | ||
| height: {value: 0}, | ||
| name: {value: ''}, | ||
| height: {value: 5}, | ||
| countdown: { value: false }, | ||
@@ -92,3 +92,2 @@ autoStart: { value: false }, | ||
| $("#node-input-showImage-enable").trigger("change"); | ||
| }, | ||
@@ -107,3 +106,2 @@ oneditsave: function() { | ||
| } | ||
| } | ||
@@ -161,3 +159,2 @@ }); | ||
| </div> | ||
| </div> | ||
@@ -164,0 +161,0 @@ <div class="form-row"> |
+6
-3
@@ -45,2 +45,4 @@ /** | ||
| height: 100%; | ||
| -webkit-transform: scaleX(-1); | ||
| transform: scaleX(-1); | ||
| } | ||
@@ -215,4 +217,2 @@ .ui-webcam-playback-container { | ||
| $scope.changeCamera = function(deviceId) { | ||
@@ -330,3 +330,6 @@ oldActiveCamera = activeCamera; | ||
| canvas.height = playbackEl.videoHeight; | ||
| canvas.getContext('2d').drawImage(playbackEl, 0, 0); | ||
| var ctx = canvas.getContext('2d'); | ||
| ctx.translate(playbackEl.videoWidth, 0); | ||
| ctx.scale(-1, 1); | ||
| ctx.drawImage(playbackEl, 0, 0); | ||
| var img = document.querySelector("img#ui_webcam_image_"+$scope.$id); | ||
@@ -333,0 +336,0 @@ img.src = canvas.toDataURL('image/'+($scope.config.format||'png')); |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
40563
0.55%387
1.31%1
Infinity%