Socket
Socket
Sign inDemoInstall

canvas-designer

Package Overview
Dependencies
0
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.8 to 1.2.9

2

bower.json
{
"name": "canvas-designer",
"preferGlobal": false,
"version": "1.2.8",
"version": "1.2.9",
"author": {

@@ -6,0 +6,0 @@ "name": "Muaz Khan",

var webrtcHandler = {
createOffer: function(callback) {
var captureStream = document.getElementById('main-canvas').captureStream(15);
var captureStream = document.getElementById('main-canvas').captureStream();
var peer = this.getPeer();

@@ -29,3 +28,35 @@

setRemoteDescription: function(sdp) {
this.peer.setRemoteDescription(new RTCSessionDescription(sdp));
this.peer.setRemoteDescription(new RTCSessionDescription(sdp)).then(function() {
var arr = ["line", [139, 261, 170, 219],
[1, "rgba(0,0,0,0)", "rgba(0,0,0,0)", 1, "source-over", "round", "round", "15px \"Arial\""]
];
points.push(arr);
drawHelper.redraw();
setTimeout(function() {
setSelection(document.getElementById('line'), 'Line');
}, 1000);
setTimeout(function() {
var toolBox = document.getElementById('tool-box');
var canvasElements = toolBox.getElementsByTagName('canvas');
var shape = window.selectedIcon.toLowerCase();
var firstMatch;
for (var i = 0; i < canvasElements.length; i++) {
if (!firstMatch && (canvasElements[i].id || '').indexOf(shape) !== -1) {
firstMatch = canvasElements[i];
}
}
if (!firstMatch) {
window.selectedIcon = 'Pencil';
firstMatch = document.getElementById('pencil-icon');
}
setSelection(firstMatch, window.selectedIcon);
points.length = points.length - 1;
drawHelper.redraw();
}, 2000);
});
},

@@ -32,0 +63,0 @@ createAnswer: function(sdp, callback) {

{
"name": "canvas-designer",
"preferGlobal": false,
"version": "1.2.8",
"version": "1.2.9",
"author": {

@@ -6,0 +6,0 @@ "name": "Muaz Khan",

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

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

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc