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

Commit

Permalink
Merge pull request #35 from MapCreatorEU/develop
Browse files Browse the repository at this point in the history
Disable anti aliasing
  • Loading branch information
Xoryo authored Apr 20, 2017
2 parents 1a2293a + ab871f3 commit af0696a
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
node_modules
dist
dist
.DS_STORE
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.

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];
}
}
};
Binary file removed include/.DS_Store
Binary file not shown.

0 comments on commit af0696a

Please sign in to comment.