mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Add Debug flags
This commit is contained in:
14
js/id/id.js
14
js/id/id.js
@@ -215,6 +215,20 @@ window.iD = function () {
|
||||
};
|
||||
|
||||
|
||||
/* Debug */
|
||||
var debugTile = false, debugCollision = false;
|
||||
context.debugTile = function(_) {
|
||||
if (!arguments.length) return debugTile;
|
||||
debugTile = _;
|
||||
return context;
|
||||
};
|
||||
context.debugCollision = function(_) {
|
||||
if (!arguments.length) return debugCollision;
|
||||
debugCollision = _;
|
||||
return context;
|
||||
};
|
||||
|
||||
|
||||
/* Presets */
|
||||
var presets;
|
||||
context.presets = function(_) {
|
||||
|
||||
Reference in New Issue
Block a user