Skip to content

Commit

Permalink
Merge pull request #5 from Demonstrandum/devel
Browse files Browse the repository at this point in the history
Added  functionality for namespaces
  • Loading branch information
Fredrik authored Oct 7, 2018
2 parents b17e53d + 72e535f commit 71be585
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/BasicCanvas.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export const clone = obj => Object.assign(Object.create(Object.getPrototypeOf(obj)), console);

const use = (namespace, global=window) => Object.assign(global, namespace);
window.use = use;

Math.TAU = 2 * Math.PI;
Math.HALF_PI = Math.PI * 0.5;
Number.prototype.roundTo = function (dp) {
Expand Down

1 comment on commit 71be585

@vercel
Copy link

@vercel vercel bot commented on 71be585 Oct 7, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully aliased the URL https://basiccanvas-qvkfjnljco.now.sh to the following alias.

Please sign in to comment.