mapscreenr
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -1,1 +0,1 @@ | ||
var typedoc = typedoc || {};typedoc.search = typedoc.search || {};typedoc.search.data = {"kinds":{"1":"External module","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method"},"rows":[{"id":0,"kind":1,"name":"\"IMapScreenr\"","url":"modules/_imapscreenr_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"IVariableFunctions","url":"interfaces/_imapscreenr_.ivariablefunctions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IMapScreenr\""},{"id":2,"kind":256,"name":"IVariables","url":"interfaces/_imapscreenr_.ivariables.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IMapScreenr\""},{"id":3,"kind":256,"name":"IMapScreenrSettings","url":"interfaces/_imapscreenr_.imapscreenrsettings.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IMapScreenr\""},{"id":4,"kind":1024,"name":"width","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#width","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":5,"kind":1024,"name":"height","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#height","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":6,"kind":1024,"name":"variableFunctions","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#variablefunctions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":7,"kind":1024,"name":"variableArgs","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#variableargs","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":8,"kind":1024,"name":"variables","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#variables","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":9,"kind":1024,"name":"scope","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#scope","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":10,"kind":256,"name":"IMapScreenr","url":"interfaces/_imapscreenr_.imapscreenr.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IMapScreenr\""},{"id":11,"kind":1024,"name":"top","url":"interfaces/_imapscreenr_.imapscreenr.html#top","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":12,"kind":1024,"name":"right","url":"interfaces/_imapscreenr_.imapscreenr.html#right","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":13,"kind":1024,"name":"bottom","url":"interfaces/_imapscreenr_.imapscreenr.html#bottom","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":14,"kind":1024,"name":"left","url":"interfaces/_imapscreenr_.imapscreenr.html#left","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":15,"kind":1024,"name":"middleX","url":"interfaces/_imapscreenr_.imapscreenr.html#middlex","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":16,"kind":1024,"name":"middleY","url":"interfaces/_imapscreenr_.imapscreenr.html#middley","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":17,"kind":1024,"name":"width","url":"interfaces/_imapscreenr_.imapscreenr.html#width","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":18,"kind":1024,"name":"height","url":"interfaces/_imapscreenr_.imapscreenr.html#height","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":19,"kind":1024,"name":"variableFunctions","url":"interfaces/_imapscreenr_.imapscreenr.html#variablefunctions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":20,"kind":1024,"name":"variableArgs","url":"interfaces/_imapscreenr_.imapscreenr.html#variableargs","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":21,"kind":1024,"name":"variables","url":"interfaces/_imapscreenr_.imapscreenr.html#variables","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":22,"kind":2048,"name":"clearScreen","url":"interfaces/_imapscreenr_.imapscreenr.html#clearscreen","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":23,"kind":2048,"name":"setMiddleX","url":"interfaces/_imapscreenr_.imapscreenr.html#setmiddlex","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":24,"kind":2048,"name":"setMiddleY","url":"interfaces/_imapscreenr_.imapscreenr.html#setmiddley","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":25,"kind":2048,"name":"setVariables","url":"interfaces/_imapscreenr_.imapscreenr.html#setvariables","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":26,"kind":2048,"name":"setVariable","url":"interfaces/_imapscreenr_.imapscreenr.html#setvariable","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":27,"kind":2048,"name":"shift","url":"interfaces/_imapscreenr_.imapscreenr.html#shift","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":28,"kind":2048,"name":"shiftX","url":"interfaces/_imapscreenr_.imapscreenr.html#shiftx","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":29,"kind":2048,"name":"shiftY","url":"interfaces/_imapscreenr_.imapscreenr.html#shifty","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":30,"kind":1,"name":"\"MapScreenr\"","url":"modules/_mapscreenr_.html","classes":"tsd-kind-external-module"},{"id":31,"kind":128,"name":"MapScreenr","url":"classes/_mapscreenr_.mapscreenr.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"MapScreenr\""},{"id":32,"kind":1024,"name":"variableFunctions","url":"classes/_mapscreenr_.mapscreenr.html#variablefunctions","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":33,"kind":1024,"name":"variableArgs","url":"classes/_mapscreenr_.mapscreenr.html#variableargs","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":34,"kind":1024,"name":"top","url":"classes/_mapscreenr_.mapscreenr.html#top","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":35,"kind":1024,"name":"right","url":"classes/_mapscreenr_.mapscreenr.html#right","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":36,"kind":1024,"name":"bottom","url":"classes/_mapscreenr_.mapscreenr.html#bottom","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":37,"kind":1024,"name":"left","url":"classes/_mapscreenr_.mapscreenr.html#left","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":38,"kind":1024,"name":"middleX","url":"classes/_mapscreenr_.mapscreenr.html#middlex","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":39,"kind":1024,"name":"middleY","url":"classes/_mapscreenr_.mapscreenr.html#middley","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":40,"kind":1024,"name":"width","url":"classes/_mapscreenr_.mapscreenr.html#width","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":41,"kind":1024,"name":"height","url":"classes/_mapscreenr_.mapscreenr.html#height","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":42,"kind":1024,"name":"variables","url":"classes/_mapscreenr_.mapscreenr.html#variables","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":43,"kind":1024,"name":"scope","url":"classes/_mapscreenr_.mapscreenr.html#scope","classes":"tsd-kind-property tsd-parent-kind-class tsd-is-private","parent":"\"MapScreenr\".MapScreenr"},{"id":44,"kind":512,"name":"constructor","url":"classes/_mapscreenr_.mapscreenr.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":45,"kind":2048,"name":"clearScreen","url":"classes/_mapscreenr_.mapscreenr.html#clearscreen","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":46,"kind":2048,"name":"setMiddleX","url":"classes/_mapscreenr_.mapscreenr.html#setmiddlex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":47,"kind":2048,"name":"setMiddleY","url":"classes/_mapscreenr_.mapscreenr.html#setmiddley","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":48,"kind":2048,"name":"setVariables","url":"classes/_mapscreenr_.mapscreenr.html#setvariables","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":49,"kind":2048,"name":"setVariable","url":"classes/_mapscreenr_.mapscreenr.html#setvariable","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":50,"kind":2048,"name":"shift","url":"classes/_mapscreenr_.mapscreenr.html#shift","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":51,"kind":2048,"name":"shiftX","url":"classes/_mapscreenr_.mapscreenr.html#shiftx","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":52,"kind":2048,"name":"shiftY","url":"classes/_mapscreenr_.mapscreenr.html#shifty","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"}]}; | ||
var typedoc = typedoc || {};typedoc.search = typedoc.search || {};typedoc.search.data = {"kinds":{"1":"External module","128":"Class","256":"Interface","512":"Constructor","1024":"Property","2048":"Method"},"rows":[{"id":0,"kind":1,"name":"\"IMapScreenr\"","url":"modules/_imapscreenr_.html","classes":"tsd-kind-external-module"},{"id":1,"kind":256,"name":"IVariableFunctions","url":"interfaces/_imapscreenr_.ivariablefunctions.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IMapScreenr\""},{"id":2,"kind":256,"name":"IVariables","url":"interfaces/_imapscreenr_.ivariables.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IMapScreenr\""},{"id":3,"kind":256,"name":"IMapScreenrSettings","url":"interfaces/_imapscreenr_.imapscreenrsettings.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IMapScreenr\""},{"id":4,"kind":1024,"name":"width","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#width","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":5,"kind":1024,"name":"height","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#height","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":6,"kind":1024,"name":"variableFunctions","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#variablefunctions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":7,"kind":1024,"name":"variableArgs","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#variableargs","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":8,"kind":1024,"name":"variables","url":"interfaces/_imapscreenr_.imapscreenrsettings.html#variables","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenrSettings"},{"id":9,"kind":256,"name":"IMapScreenr","url":"interfaces/_imapscreenr_.imapscreenr.html","classes":"tsd-kind-interface tsd-parent-kind-external-module","parent":"\"IMapScreenr\""},{"id":10,"kind":1024,"name":"top","url":"interfaces/_imapscreenr_.imapscreenr.html#top","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":11,"kind":1024,"name":"right","url":"interfaces/_imapscreenr_.imapscreenr.html#right","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":12,"kind":1024,"name":"bottom","url":"interfaces/_imapscreenr_.imapscreenr.html#bottom","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":13,"kind":1024,"name":"left","url":"interfaces/_imapscreenr_.imapscreenr.html#left","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":14,"kind":1024,"name":"middleX","url":"interfaces/_imapscreenr_.imapscreenr.html#middlex","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":15,"kind":1024,"name":"middleY","url":"interfaces/_imapscreenr_.imapscreenr.html#middley","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":16,"kind":1024,"name":"width","url":"interfaces/_imapscreenr_.imapscreenr.html#width","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":17,"kind":1024,"name":"height","url":"interfaces/_imapscreenr_.imapscreenr.html#height","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":18,"kind":1024,"name":"variableFunctions","url":"interfaces/_imapscreenr_.imapscreenr.html#variablefunctions","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":19,"kind":1024,"name":"variableArgs","url":"interfaces/_imapscreenr_.imapscreenr.html#variableargs","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":20,"kind":1024,"name":"variables","url":"interfaces/_imapscreenr_.imapscreenr.html#variables","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":21,"kind":2048,"name":"clearScreen","url":"interfaces/_imapscreenr_.imapscreenr.html#clearscreen","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":22,"kind":2048,"name":"setMiddleX","url":"interfaces/_imapscreenr_.imapscreenr.html#setmiddlex","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":23,"kind":2048,"name":"setMiddleY","url":"interfaces/_imapscreenr_.imapscreenr.html#setmiddley","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":24,"kind":2048,"name":"setVariables","url":"interfaces/_imapscreenr_.imapscreenr.html#setvariables","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":25,"kind":2048,"name":"setVariable","url":"interfaces/_imapscreenr_.imapscreenr.html#setvariable","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":26,"kind":2048,"name":"shift","url":"interfaces/_imapscreenr_.imapscreenr.html#shift","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":27,"kind":2048,"name":"shiftX","url":"interfaces/_imapscreenr_.imapscreenr.html#shiftx","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":28,"kind":2048,"name":"shiftY","url":"interfaces/_imapscreenr_.imapscreenr.html#shifty","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"\"IMapScreenr\".IMapScreenr"},{"id":29,"kind":1,"name":"\"MapScreenr\"","url":"modules/_mapscreenr_.html","classes":"tsd-kind-external-module"},{"id":30,"kind":128,"name":"MapScreenr","url":"classes/_mapscreenr_.mapscreenr.html","classes":"tsd-kind-class tsd-parent-kind-external-module","parent":"\"MapScreenr\""},{"id":31,"kind":1024,"name":"variableFunctions","url":"classes/_mapscreenr_.mapscreenr.html#variablefunctions","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":32,"kind":1024,"name":"variableArgs","url":"classes/_mapscreenr_.mapscreenr.html#variableargs","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":33,"kind":1024,"name":"top","url":"classes/_mapscreenr_.mapscreenr.html#top","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":34,"kind":1024,"name":"right","url":"classes/_mapscreenr_.mapscreenr.html#right","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":35,"kind":1024,"name":"bottom","url":"classes/_mapscreenr_.mapscreenr.html#bottom","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":36,"kind":1024,"name":"left","url":"classes/_mapscreenr_.mapscreenr.html#left","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":37,"kind":1024,"name":"middleX","url":"classes/_mapscreenr_.mapscreenr.html#middlex","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":38,"kind":1024,"name":"middleY","url":"classes/_mapscreenr_.mapscreenr.html#middley","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":39,"kind":1024,"name":"width","url":"classes/_mapscreenr_.mapscreenr.html#width","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":40,"kind":1024,"name":"height","url":"classes/_mapscreenr_.mapscreenr.html#height","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":41,"kind":1024,"name":"variables","url":"classes/_mapscreenr_.mapscreenr.html#variables","classes":"tsd-kind-property tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":42,"kind":512,"name":"constructor","url":"classes/_mapscreenr_.mapscreenr.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":43,"kind":2048,"name":"clearScreen","url":"classes/_mapscreenr_.mapscreenr.html#clearscreen","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":44,"kind":2048,"name":"setMiddleX","url":"classes/_mapscreenr_.mapscreenr.html#setmiddlex","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":45,"kind":2048,"name":"setMiddleY","url":"classes/_mapscreenr_.mapscreenr.html#setmiddley","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":46,"kind":2048,"name":"setVariables","url":"classes/_mapscreenr_.mapscreenr.html#setvariables","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":47,"kind":2048,"name":"setVariable","url":"classes/_mapscreenr_.mapscreenr.html#setvariable","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":48,"kind":2048,"name":"shift","url":"classes/_mapscreenr_.mapscreenr.html#shift","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":49,"kind":2048,"name":"shiftX","url":"classes/_mapscreenr_.mapscreenr.html#shiftx","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"},{"id":50,"kind":2048,"name":"shiftY","url":"classes/_mapscreenr_.mapscreenr.html#shifty","classes":"tsd-kind-method tsd-parent-kind-class","parent":"\"MapScreenr\".MapScreenr"}]}; |
@@ -38,6 +38,2 @@ /** | ||
variables?: IVariables; | ||
/** | ||
* A scope to run functions in, if not this IMapScreenr. | ||
*/ | ||
scope?: any; | ||
} | ||
@@ -44,0 +40,0 @@ /** |
@@ -51,6 +51,2 @@ import { IMapScreenr, IMapScreenrSettings, IVariableFunctions, IVariables } from "./IMapScreenr"; | ||
/** | ||
* A scope to run functions in, if not this MapScreenr. | ||
*/ | ||
private scope; | ||
/** | ||
* Resets the MapScreenr. All members of the settings argument are copied | ||
@@ -57,0 +53,0 @@ * to the MapScreenr itself, though only width and height are required. |
@@ -1,2 +0,2 @@ | ||
define(["require","exports"],function(t,i){"use strict";var e=function(){function t(t){if(this.variables={},"undefined"==typeof t)throw new Error("No settings object given to MapScreenr.");if("undefined"==typeof t.width)throw new Error("No width given to MapScreenr.");if("undefined"==typeof t.height)throw new Error("No height given to MapScreenr.");if(t.variables)for(var i in t.variables)t.variables.hasOwnProperty(i)&&(this.variables[i]=t.variables[i]);this.height=t.height,this.width=t.width,this.scope=t.scope||this,this.variableFunctions=t.variableFunctions||{},this.variableArgs=t.variableArgs||[]}return t.prototype.clearScreen=function(){this.left=0,this.top=0,this.right=this.width,this.bottom=this.height,this.setMiddleX(),this.setMiddleY(),this.setVariables()},t.prototype.setMiddleX=function(){this.middleX=(this.left+this.right)/2},t.prototype.setMiddleY=function(){this.middleY=(this.top+this.bottom)/2},t.prototype.setVariables=function(){for(var t in this.variableFunctions)this.variableFunctions.hasOwnProperty(t)&&this.setVariable(t)},t.prototype.setVariable=function(t,i){this.variables[t]=1===arguments.length?this.variableFunctions[t].apply(this.scope,this.variableArgs):i},t.prototype.shift=function(t,i){t&&this.shiftX(t),i&&this.shiftY(i)},t.prototype.shiftX=function(t){this.left+=t,this.right+=t},t.prototype.shiftY=function(t){this.top+=t,this.bottom+=t},t}();i.MapScreenr=e}); | ||
define(["require","exports"],function(t,i){"use strict";var e=function(){function t(t){if(this.variables={},"undefined"==typeof t)throw new Error("No settings object given to MapScreenr.");if(!t.width)throw new Error("No width given to MapScreenr.");if(!t.height)throw new Error("No height given to MapScreenr.");if(t.variables)for(var i in t.variables)t.variables.hasOwnProperty(i)&&(this.variables[i]=t.variables[i]);this.height=t.height,this.width=t.width,this.variableFunctions=t.variableFunctions||{},this.variableArgs=t.variableArgs||[]}return t.prototype.clearScreen=function(){this.left=0,this.top=0,this.right=this.width,this.bottom=this.height,this.setMiddleX(),this.setMiddleY(),this.setVariables()},t.prototype.setMiddleX=function(){this.middleX=(this.left+this.right)/2},t.prototype.setMiddleY=function(){this.middleY=(this.top+this.bottom)/2},t.prototype.setVariables=function(){for(var t in this.variableFunctions)this.variableFunctions.hasOwnProperty(t)&&this.setVariable(t)},t.prototype.setVariable=function(t,i){this.variables[t]=1===arguments.length?this.variableFunctions[t].apply(this,this.variableArgs):i},t.prototype.shift=function(t,i){t&&this.shiftX(t),i&&this.shiftY(i)},t.prototype.shiftX=function(t){this.left+=t,this.right+=t},t.prototype.shiftY=function(t){this.top+=t,this.bottom+=t},t}();i.MapScreenr=e}); | ||
//# sourceMappingURL=MapScreenr.js.map |
{ | ||
"name": "mapscreenr", | ||
"description": "A flexible container for map attributes and viewport.", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Josh Goldberg", |
@@ -5,4 +5,4 @@ { | ||
"name": "MapScreenr", | ||
"version": "0.6.1" | ||
"version": "0.6.2" | ||
} | ||
} |
@@ -38,6 +38,2 @@ /** | ||
variables?: IVariables; | ||
/** | ||
* A scope to run functions in, if not this IMapScreenr. | ||
*/ | ||
scope?: any; | ||
} | ||
@@ -44,0 +40,0 @@ /** |
@@ -44,7 +44,2 @@ /** | ||
variables?: IVariables; | ||
/** | ||
* A scope to run functions in, if not this IMapScreenr. | ||
*/ | ||
scope?: any; | ||
} | ||
@@ -51,0 +46,0 @@ |
@@ -51,6 +51,2 @@ import { IMapScreenr, IMapScreenrSettings, IVariableFunctions, IVariables } from "./IMapScreenr"; | ||
/** | ||
* A scope to run functions in, if not this MapScreenr. | ||
*/ | ||
private scope; | ||
/** | ||
* Resets the MapScreenr. All members of the settings argument are copied | ||
@@ -57,0 +53,0 @@ * to the MapScreenr itself, though only width and height are required. |
@@ -21,6 +21,6 @@ define(["require", "exports"], function (require, exports) { | ||
} | ||
if (typeof settings.width === "undefined") { | ||
if (!settings.width) { | ||
throw new Error("No width given to MapScreenr."); | ||
} | ||
if (typeof settings.height === "undefined") { | ||
if (!settings.height) { | ||
throw new Error("No height given to MapScreenr."); | ||
@@ -37,3 +37,2 @@ } | ||
this.width = settings.width; | ||
this.scope = settings.scope || this; | ||
this.variableFunctions = settings.variableFunctions || {}; | ||
@@ -86,3 +85,3 @@ this.variableArgs = settings.variableArgs || []; | ||
this.variables[name] = arguments.length === 1 | ||
? this.variableFunctions[name].apply(this.scope, this.variableArgs) | ||
? this.variableFunctions[name].apply(this, this.variableArgs) | ||
: value; | ||
@@ -127,2 +126,2 @@ }; | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk1hcFNjcmVlbnIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7SUFJQTs7T0FFRztJQUNIO1FBNkRJOzs7OztXQUtHO1FBQ0gsb0JBQW1CLFFBQTZCO1lBaEJoRDs7ZUFFRztZQUNJLGNBQVMsR0FBZSxFQUFFLENBQUM7WUFjOUIsRUFBRSxDQUFDLENBQUMsT0FBTyxRQUFRLEtBQUssV0FBVyxDQUFDLENBQUMsQ0FBQztnQkFDbEMsTUFBTSxJQUFJLEtBQUssQ0FBQyx5Q0FBeUMsQ0FBQyxDQUFDO1lBQy9ELENBQUM7WUFDRCxFQUFFLENBQUMsQ0FBQyxPQUFPLFFBQVEsQ0FBQyxLQUFLLEtBQUssV0FBVyxDQUFDLENBQUMsQ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GluZyBib3guXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBib3R0b206IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIExlZnQgYm9yZGVyIG1lYXN1cmVtZW50IG9mIHRoZSBib3VuZGluZyBib3guXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBsZWZ0OiBudW1iZXI7XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBDb25zdGFudCBob3Jpem9udGFsIG1pZHBvaW50IG9mIHRoZSBib3VuZGluZyBib3gsIGVxdWFsIHRvIChsZWZ0ICsgcmlnaHQpIC8gMi5cclxuICAgICAqL1xyXG4gICAgcHVibGljIG1pZGRsZVg6IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIENvbnN0YW50IHZlcnRpY2FsIG1pZHBvaW50IG9mIHRoZSBib3VuZGluZyBib3gsIGVxdWFsIHRvICh0b3AgKyBib3R0b20pIC8gMi5cclxuICAgICAqL1xyXG4gICAgcHVibGljIG1pZGRsZVk6IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIENvbnN0YW50IHdpZHRoIG9mIHRoZSBib3VuZGluZyBib3guXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyB3aWR0aDogbnVtYmVyO1xyXG5cclxuICAgIC8qKlxyXG4gICAgICogQ29uc3RhbnQgaGVpZ2h0IG9mIHRoZSBib3VuZGluZyBib3guXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBoZWlnaHQ6IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIEFzc29ydGVkIGtub3duIHZhcmlhYmxlcywga2V5ZWQgYnkgbmFtZS5cclxuICAgICAqL1xyXG4gICAgcHVibGljIHZhcmlhYmxlczogSVZhcmlhYmxlcyA9IHt9O1xyXG5cclxuICAgIC8qKlxyXG4gICAgICogQSBzY29wZSB0byBydW4gZnVuY3Rpb25zIGluLCBpZiBub3QgdGhpcyBNYXBTY3JlZW5yLlxyXG4gICAgICov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ICBpZiAoZHgpIHtcclxuICAgICAgICAgICAgdGhpcy5zaGlmdFgoZHgpO1xyXG4gICAgICAgIH1cclxuXHJcbiAgICAgICAgaWYgKGR5KSB7XHJcbiAgICAgICAgICAgIHRoaXMuc2hpZnRZKGR5KTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBTaGlmdHMgdGhlIE1hcFNjcmVlbnIgaG9yaXpvbnRhbGx5IGJ5IGNoYW5naW5nIGxlZnQgYW5kIHJpZ2h0IGJ5IHRoZSBkeC5cclxuICAgICAqIFxyXG4gICAgICogQHBhcmFtIGR4ICAgSG93IGZhciB0byBzY3JvbGwgaG9yaXpvbnRhbGx5LlxyXG4gICAgICovXHJcbiAgICBwdWJsaWMgc2hpZnRYKGR4OiBudW1iZXIpOiB2b2lkIHtcclxuICAgICAgICB0aGlzLmxlZnQgKz0gZHg7XHJcbiAgICAgICAgdGhpcy5yaWdodCArPSBkeDtcclxuICAgIH1cclxuXHJcbiAgICAvKipcclxuICAgICAqIFNoaWZ0cyB0aGUgTWFwU2NyZWVuciB2ZXJ0aWNhbGx5IGJ5IGNoYW5naW5nIHRvcCBhbmQgYm90dG9tIGJ5IHRoZSBkeS5cclxuICAgICAqIFxyXG4gICAgICogQHBhcmFtIGR5ICAgSG93IGZhciB0byBzY3JvbGwgdmVydGljYWxseS5cclxuICAgICAqL1xyXG4gICAgcHVibGljIHNoaWZ0WShkeTogbnVtYmVyKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy50b3AgKz0gZHk7XHJcbiAgICAgICAgdGhpcy5ib3R0b20gKz0gZHk7XHJcbiAgICB9XHJcbn1cclxuIl19 | ||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIk1hcFNjcmVlbnIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7SUFJQTs7T0FFRztJQUNIO1FBd0RJOzs7OztXQUtHO1FB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AgICAgKiBSaWdodCBib3JkZXIgbWVhc3VyZW1lbnQgb2YgdGhlIGJvdW5kaW5nIGJveC5cclxuICAgICAqL1xyXG4gICAgcHVibGljIHJpZ2h0OiBudW1iZXI7XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBCb3R0b20gYm9yZGVyIG1lYXN1cmVtZW50IG9mIHRoZSBib3VuZGluZyBib3guXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBib3R0b206IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIExlZnQgYm9yZGVyIG1lYXN1cmVtZW50IG9mIHRoZSBib3VuZGluZyBib3guXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBsZWZ0OiBudW1iZXI7XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBDb25zdGFudCBob3Jpem9udGFsIG1pZHBvaW50IG9mIHRoZSBib3VuZGluZyBib3gsIGVxdWFsIHRvIChsZWZ0ICsgcmlnaHQpIC8gMi5cclxuICAgICAqL1xyXG4gICAgcHVibGljIG1pZGRsZVg6IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIENvbnN0YW50IHZlcnRpY2FsIG1pZHBvaW50IG9mIHRoZSBib3VuZGluZyBib3gsIGVxdWFsIHRvICh0b3AgKyBib3R0b20pIC8gMi5cclxuICAgICAqL1xyXG4gICAgcHVibGljIG1pZGRsZVk6IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIENvbnN0YW50IHdpZHRoIG9mIHRoZSBib3VuZGluZyBib3guXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyB3aWR0aDogbnVtYmVyO1xyXG5cclxuICAgIC8qKlxyXG4gICAgICogQ29uc3RhbnQgaGVpZ2h0IG9mIHRoZSBib3VuZGluZyBib3guXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBoZWlnaHQ6IG51bWJlcjtcclxuXHJcbiAgICAvKipcclxuICAgICAqIEFzc29ydGVkIGtub3duIHZhcmlhYmx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IGlmIChkeSkge1xyXG4gICAgICAgICAgICB0aGlzLnNoaWZ0WShkeSk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogU2hpZnRzIHRoZSBNYXBTY3JlZW5yIGhvcml6b250YWxseSBieSBjaGFuZ2luZyBsZWZ0IGFuZCByaWdodCBieSB0aGUgZHguXHJcbiAgICAgKiBcclxuICAgICAqIEBwYXJhbSBkeCAgIEhvdyBmYXIgdG8gc2Nyb2xsIGhvcml6b250YWxseS5cclxuICAgICAqL1xyXG4gICAgcHVibGljIHNoaWZ0WChkeDogbnVtYmVyKTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5sZWZ0ICs9IGR4O1xyXG4gICAgICAgIHRoaXMucmlnaHQgKz0gZHg7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBTaGlmdHMgdGhlIE1hcFNjcmVlbnIgdmVydGljYWxseSBieSBjaGFuZ2luZyB0b3AgYW5kIGJvdHRvbSBieSB0aGUgZHkuXHJcbiAgICAgKiBcclxuICAgICAqIEBwYXJhbSBkeSAgIEhvdyBmYXIgdG8gc2Nyb2xsIHZlcnRpY2FsbHkuXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyBzaGlmdFkoZHk6IG51bWJlcik6IHZvaWQge1xyXG4gICAgICAgIHRoaXMudG9wICs9IGR5O1xyXG4gICAgICAgIHRoaXMuYm90dG9tICs9IGR5O1xyXG4gICAgfVxyXG59XHJcbiJdfQ== |
@@ -65,7 +65,2 @@ import { | ||
/** | ||
* A scope to run functions in, if not this MapScreenr. | ||
*/ | ||
private scope: any; | ||
/** | ||
* Resets the MapScreenr. All members of the settings argument are copied | ||
@@ -80,6 +75,6 @@ * to the MapScreenr itself, though only width and height are required. | ||
} | ||
if (typeof settings.width === "undefined") { | ||
if (!settings.width) { | ||
throw new Error("No width given to MapScreenr."); | ||
} | ||
if (typeof settings.height === "undefined") { | ||
if (!settings.height) { | ||
throw new Error("No height given to MapScreenr."); | ||
@@ -98,3 +93,2 @@ } | ||
this.width = settings.width; | ||
this.scope = settings.scope || this; | ||
this.variableFunctions = settings.variableFunctions || {}; | ||
@@ -154,3 +148,3 @@ this.variableArgs = settings.variableArgs || []; | ||
this.variables[name] = arguments.length === 1 | ||
? this.variableFunctions[name].apply(this.scope, this.variableArgs) | ||
? this.variableFunctions[name].apply(this, this.variableArgs) | ||
: value; | ||
@@ -157,0 +151,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
513207
2623