mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-22 14:33:51 +00:00
added typescript to dev deps
This commit is contained in:
parent
62f5303107
commit
a518f0f2ad
@ -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",
|
||||
|
@ -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();
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user