-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added [email protected] Added font-family and font-size tools.
- Loading branch information
Showing
12 changed files
with
538 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
|
||
language: node_js | ||
node_js: | ||
- "0.11" | ||
install: npm install | ||
before_script: | ||
- npm install grunt-cli | ||
- npm install grunt | ||
- npm install grunt-cli@0.1.13 -g | ||
- npm install grunt@0.4.5 | ||
- grunt | ||
after_failure: npm install && grunt | ||
matrix: | ||
fast_finish: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"name": "canvas-designer", | ||
"preferGlobal": false, | ||
"version": "1.0.4", | ||
"author": { | ||
"name": "Muaz Khan", | ||
"email": "[email protected]", | ||
"url": "http://www.muazkhan.com/" | ||
}, | ||
"description": "Collaborative, extendable, JavaScript Canvas2D drawing tool, supporting dozens of builtin tools.", | ||
"main": "server.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/muaz-khan/Canvas-Designer.git" | ||
}, | ||
"keywords": [ | ||
"canvas-designer", | ||
"drawing", | ||
"tool", | ||
"canvas2d", | ||
"javascript", | ||
"muaz", | ||
"muaz-khan" | ||
], | ||
"analyze": false, | ||
"license": "MIT", | ||
"readmeFilename": "README.md", | ||
"bugs": { | ||
"url": "https://github.com/muaz-khan/Canvas-Designer/issues", | ||
"email": "[email protected]" | ||
}, | ||
"homepage": "https://www.webrtc-experiment.com/Canvas-Designer/", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules" | ||
], | ||
"_from": "canvas-designer@", | ||
"devDependencies": { | ||
"grunt": "0.4.5", | ||
"grunt-cli": "0.1.13", | ||
"load-grunt-tasks": "3.3.0", | ||
"grunt-contrib-concat": "0.5.1", | ||
"grunt-contrib-uglify": "0.9.2", | ||
"grunt-jsbeautifier": "0.2.10", | ||
"grunt-bump": "0.6.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
var browserFakeUserAgent = 'Fake/5.0 (FakeOS) AppleWebKit/123 (KHTML, like Gecko) Fake/12.3.4567.89 Fake/123.45'; | ||
|
||
(function(that) { | ||
if (typeof window !== 'undefined') { | ||
return; | ||
} | ||
|
||
if (typeof window === 'undefined' && typeof global !== 'undefined') { | ||
global.navigator = { | ||
userAgent: browserFakeUserAgent, | ||
getUserMedia: function() {} | ||
}; | ||
|
||
/*global window:true */ | ||
that.window = global; | ||
} else if (typeof window === 'undefined') { | ||
// window = this; | ||
} | ||
|
||
if (typeof document === 'undefined') { | ||
/*global document:true */ | ||
that.document = {}; | ||
|
||
document.createElement = document.captureStream = document.mozCaptureStream = function() { | ||
return {}; | ||
}; | ||
} | ||
|
||
if (typeof location === 'undefined') { | ||
/*global location:true */ | ||
that.location = { | ||
protocol: 'file:', | ||
href: '', | ||
hash: '' | ||
}; | ||
} | ||
|
||
if (typeof screen === 'undefined') { | ||
/*global screen:true */ | ||
that.screen = { | ||
width: 0, | ||
height: 0 | ||
}; | ||
} | ||
})(typeof global !== 'undefined' ? global : window); | ||
|
||
if (typeof CanvasDesigner !== 'undefined') { | ||
window.CanvasDesigner = CanvasDesigner; | ||
|
||
if (typeof module !== 'undefined' /* && !!module.exports*/ ) { | ||
module.exports = CanvasDesigner; | ||
} | ||
|
||
if (typeof define === 'function' && define.amd) { | ||
define('CanvasDesigner', [], function() { | ||
return CanvasDesigner; | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "canvas-designer", | ||
"preferGlobal": false, | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"author": { | ||
"name": "Muaz Khan", | ||
"email": "[email protected]", | ||
|
Oops, something went wrong.