Skip to content

Commit 352865a

Browse files
committed
fix variable not existing
1 parent 2899c72 commit 352865a

4 files changed

Lines changed: 5 additions & 8 deletions

File tree

src/JSTools.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var windowRatio;
2222
var canvasRatio;
2323
const toolBarHeight: number = 27;
2424
var canvasScale;
25-
function resizeCanvas(toolBarHeight: number){
25+
function resizeCanvas(){
2626
//Get Window Ratio
2727
windowRatio = window.innerWidth / (window.innerHeight - toolBarHeight);
2828
//Get Canvas Ratio

src/Monopoly/Initialization.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Place } from "./Classes";
2-
import { element, resizeCanvas, getCookie, toolBarHeight, backToIndex } from "../JSTools";
2+
import { element, resizeCanvas, getCookie, backToIndex } from "../JSTools";
33
import { setLanguage } from "../../resources/languages/Monopoly";
44

55
// <select> ONLOAD=
@@ -25,7 +25,7 @@ if (canvas == null) {
2525
}
2626
const ctx = canvas.getContext("2d");
2727
const canvasPadding = 10;
28-
resizeCanvas(toolBarHeight);
28+
resizeCanvas();
2929
const places: Place[] = [];
3030

3131
setLanguage(getCookie("language") as "pt" | "en")

src/Monopoly/entrypoint.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
import '../JSTools';
2-
import './Initialization';
3-
import './Classes';
41
import './Main';

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "ES6", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14+
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
1515
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
1616
// "jsx": "preserve", /* Specify what JSX code is generated. */
1717
// "libReplacement": true, /* Enable lib replacement. */
@@ -26,7 +26,7 @@
2626
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
2727

2828
/* Modules */
29-
"module": "ES6", /* Specify what module code is generated. */
29+
"module": "ESNext", /* Specify what module code is generated. */
3030
// "rootDir": "./", /* Specify the root folder within your source files. */
3131
"moduleResolution": "Node", /* Specify how TypeScript looks up a file from a given module specifier. */
3232
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */

0 commit comments

Comments
 (0)