Skip to content

Commit

Permalink
Canvas-Designer, Chrome-Extensions, ConcatenateBlobs, Conversation.js…
Browse files Browse the repository at this point in the history
…, DataChannel.js, DetectRTC, Ffmpeg-asm.js demos, FileBufferReader demos, getStats.js, meeting.js demo, MultiRTC, part-fo-screen demo, Record-Entire-Meeting, RecordRTC, RTCMultiConnection v2.2.2 and v3, socket.io demo and screen.js updated.
  • Loading branch information
muaz-khan committed Mar 18, 2016
1 parent 26c3db7 commit 17d7f53
Show file tree
Hide file tree
Showing 233 changed files with 23,125 additions and 12,159 deletions.
8 changes: 5 additions & 3 deletions Canvas-Designer/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ module.exports = function(grunt) {
scope: 'devDependencies'
});

var banner = '// Last time updated: <%= grunt.template.today("UTC:yyyy-mm-dd h:MM:ss TT Z") %>\n\n';

// configure project
grunt.initConfig({
// make node configurations available
Expand All @@ -15,7 +17,7 @@ module.exports = function(grunt) {
options: {
stripBanners: true,
separator: '\n',
banner: '// Last time updated at <%= grunt.template.today("dddd, mmmm dS, yyyy, h:MM:ss TT") %> \n\n'
banner: banner
},
dist: {
src: [
Expand All @@ -32,7 +34,7 @@ module.exports = function(grunt) {
'dev/line-handler.js',
'dev/rect-handler.js',
'dev/quadratic-handler.js',
'bezier-handler.js',
'dev/bezier-handler.js',
'dev/file-selector.js',
'dev/image-handler.js',
'dev/events-handler.js',
Expand All @@ -48,7 +50,7 @@ module.exports = function(grunt) {
uglify: {
options: {
mangle: false,
banner: '// Last time updated at <%= grunt.template.today("dddd, mmmm dS, yyyy, h:MM:ss TT") %> \n\n'
banner: banner
},
my_target: {
files: {
Expand Down
6 changes: 3 additions & 3 deletions Canvas-Designer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ E.g. (Please don't forget replacing `1.0.0` with latest version)

```html
<!-- 1st step -->
<script src="https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.0/canvas-designer-widget.js"></script>
<script src="https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.2/canvas-designer-widget.js"></script>

<!-- 2nd step -->
<script>
// both links are mandatory
// widget.html will internally use widget.js
CanvasDesigner.widgetHtmlURL = 'https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.0/widget.html'; // you can place this file anywhere
CanvasDesigner.widgetJsURL = 'https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.0/widget.js'; // you can place this file anywhere
CanvasDesigner.widgetHtmlURL = 'https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.2/widget.html'; // you can place this file anywhere
CanvasDesigner.widgetJsURL = 'https://github.com/muaz-khan/Canvas-Designer/releases/download/1.0.2/widget.js'; // you can place this file anywhere
</script>

<!-- 3rd i.e. last step -->
Expand Down
5 changes: 3 additions & 2 deletions Canvas-Designer/canvas-designer-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ var CanvasDesigner = (function() {
}
}

window.addEventListener('message', onMessage, false);

return {
appendTo: function(parentNode) {
iframe = document.createElement('iframe');
Expand All @@ -49,6 +47,9 @@ var CanvasDesigner = (function() {
iframe.style.height = '100%';
iframe.style.border = 0;
parentNode.appendChild(iframe);

window.removeEventListener('message', onMessage);
window.addEventListener('message', onMessage, false);
},
destroy: function() {
if(iframe) {
Expand Down
33 changes: 0 additions & 33 deletions Canvas-Designer/dev/arc-handler.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// -------------------------------------------------------------

var arcHandler = {

// -------------------------------------------------------------

global: {
ismousedown: false,
prevX: 0,
Expand All @@ -15,9 +10,6 @@ var arcHandler = {
arcRangeContainer: null,
arcRange: null
},

// -------------------------------------------------------------

mousedown: function(e) {
var g = this.global;

Expand All @@ -29,9 +21,6 @@ var arcHandler = {

g.ismousedown = true;
},

// -------------------------------------------------------------

mouseup: function(e) {
var g = this.global;

Expand Down Expand Up @@ -75,9 +64,6 @@ var arcHandler = {

this.fixAllPoints();
},

// -------------------------------------------------------------

mousemove: function(e) {
var g = this.global;

Expand All @@ -100,9 +86,6 @@ var arcHandler = {
}
}
},

// -------------------------------------------------------------

fixAllPoints: function() {
var toFixed = this.toFixed;

Expand All @@ -117,9 +100,6 @@ var arcHandler = {
}
}
},

// -------------------------------------------------------------

init: function() {
var markIsClockwise = find('is-clockwise'),
g = this.global;
Expand Down Expand Up @@ -148,9 +128,6 @@ var arcHandler = {
addEvent(arcRange, 'keydown', this.arcRangeHandler);
addEvent(arcRange, 'focus', this.arcRangeHandler);
},

// -------------------------------------------------------------

arcRangeHandler: function(e) {
var g = arcHandler.global,
arcRange = g.arcRange;
Expand All @@ -174,15 +151,9 @@ var arcHandler = {
}
}
},

// -------------------------------------------------------------

toFixed: function(input) {
return Number(input).toFixed(1);
},

// -------------------------------------------------------------

end: function() {
var g = this.global;

Expand All @@ -194,10 +165,6 @@ var arcHandler = {

drawHelper.redraw();
}

// -------------------------------------------------------------
};

arcHandler.init();

// -------------------------------------------------------------
22 changes: 0 additions & 22 deletions Canvas-Designer/dev/bezier-handler.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
// -------------------------------------------------------------

var bezierHandler = {

// -------------------------------------------------------------

global: {
ismousedown: false,
prevX: 0,
Expand All @@ -18,9 +13,6 @@ var bezierHandler = {
isSecondStep: false,
isLastStep: false
},

// -------------------------------------------------------------

mousedown: function(e) {
var g = this.global;

Expand All @@ -46,9 +38,6 @@ var bezierHandler = {
g.isLastStep = true;
}
},

// -------------------------------------------------------------

mouseup: function(e) {
var g = this.global;

Expand All @@ -63,9 +52,6 @@ var bezierHandler = {
g.isSecondStep = true;
}
},

// -------------------------------------------------------------

mousemove: function(e) {
var x = e.pageX - canvas.offsetLeft,
y = e.pageY - canvas.offsetTop;
Expand All @@ -86,9 +72,6 @@ var bezierHandler = {
drawHelper.bezier(tempContext, [g.prevX, g.prevY, g.firstControlPointX, g.firstControlPointY, g.secondControlPointX, g.secondControlPointY, x, y]);
}
},

// -------------------------------------------------------------

end: function(x, y) {
var g = this.global;

Expand All @@ -107,9 +90,4 @@ var bezierHandler = {

points[points.length] = ['bezier', [g.prevX, g.prevY, g.firstControlPointX, g.firstControlPointY, g.secondControlPointX, g.secondControlPointY, x, y], drawHelper.getOptions()];
}

// -------------------------------------------------------------

};

// -------------------------------------------------------------
Loading

0 comments on commit 17d7f53

Please sign in to comment.