1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2024-05-28 08:41:30 +00:00

added typescript to dev deps

This commit is contained in:
Steven Hugg 2018-07-05 21:37:19 -05:00
parent 62f5303107
commit a518f0f2ad
3 changed files with 7 additions and 7 deletions

View File

@ -4,6 +4,7 @@
"author": "Steven Hugg",
"dependencies": {},
"devDependencies": {
"typescript": "^2.9.2",
"@types/jquery": "^3.3.4",
"mocha": "^3.2.0",
"mocha-phantomjs": "^4.1.0",

View File

@ -501,12 +501,6 @@ function clearBreakpoint() {
showMemory();
}
function jumpToLine(ed, i) {
var t = ed.charCoords({line: i, ch: 0}, "local").top;
var middleHeight = ed.getScrollerElement().offsetHeight / 2;
ed.scrollTo(null, t - middleHeight - 5);
}
function resetAndDebug() {
if (platform.setupDebug && platform.readAddress) { // TODO??
clearBreakpoint();

View File

@ -13,7 +13,12 @@ var pixeditframe;
// TODO: functions
var inspectVariable;
var jumpToLine;
function jumpToLine(ed, i:number) {
var t = ed.charCoords({line: i, ch: 0}, "local").top;
var middleHeight = ed.getScrollerElement().offsetHeight / 2;
ed.scrollTo(null, t - middleHeight - 5);
}
// TODO: remove some calls of global functions
function SourceEditor(path, mode) {