Skip to content
This repository has been archived by the owner on Feb 2, 2021. It is now read-only.

Commit

Permalink
disable anti aliasing
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Richter committed Apr 6, 2017
1 parent edaa402 commit 74c247d
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .idea/codeStyleSettings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added app/.DS_Store
Binary file not shown.
Binary file added app/js/.DS_Store
Binary file not shown.
3 changes: 2 additions & 1 deletion app/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var Map = function(value) {
this.canvas = document.getElementById(main.canvas);

this.context = this.canvas.getContext("2d");
this.context.imageSmoothingEnabled = false;

trackTransforms(this.context);

Expand All @@ -21,4 +22,4 @@ var Map = function(value) {
this[key] = value[key];
}
}
};
};
24 changes: 24 additions & 0 deletions app/js/map.js~
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/**
* The interactive base structure
* @class
* @param {object} value
*/
var Map = function(value) {
this._type = "map";

this.container = document.getElementById(main.canvas + "-container");

this.canvas = document.getElementById(main.canvas);

this.context = this.canvas.getContext("2d");

trackTransforms(this.context);

this.popupContainer = document.getElementById(main.canvas + "-popup-container");

for(var key in value) {
if(value.hasOwnProperty(key)) {
this[key] = value[key];
}
}
};

0 comments on commit 74c247d

Please sign in to comment.