Removed the old canvas element
This commit is contained in:
parent
25ffb2f736
commit
4c104ab1fb
@ -1,5 +1,4 @@
|
|||||||
var ronin = new Ronin();
|
var ronin = new Ronin();
|
||||||
ronin.canvas.element = document.getElementById('workspace');
|
|
||||||
ronin.overlay.element = document.getElementById('overlay');
|
ronin.overlay.element = document.getElementById('overlay');
|
||||||
ronin.surface.element = document.getElementById('surface');
|
ronin.surface.element = document.getElementById('surface');
|
||||||
ronin.widget.element = document.getElementById('widget');
|
ronin.widget.element = document.getElementById('widget');
|
||||||
|
@ -4,7 +4,6 @@ function Ronin()
|
|||||||
|
|
||||||
this.widget = new Widget();
|
this.widget = new Widget();
|
||||||
|
|
||||||
this.canvas = new Canvas("@");
|
|
||||||
this.overlay = new Overlay("|");
|
this.overlay = new Overlay("|");
|
||||||
this.brush = new Brush(">");
|
this.brush = new Brush(">");
|
||||||
this.fileload = new FileLoad("/");
|
this.fileload = new FileLoad("/");
|
||||||
@ -20,7 +19,6 @@ function Ronin()
|
|||||||
|
|
||||||
this.cursor = new Cursor();
|
this.cursor = new Cursor();
|
||||||
|
|
||||||
this.modules[this.canvas.rune] = this.canvas;
|
|
||||||
this.modules[this.overlay.rune] = this.overlay;
|
this.modules[this.overlay.rune] = this.overlay;
|
||||||
this.modules[this.brush.rune] = this.brush;
|
this.modules[this.brush.rune] = this.brush;
|
||||||
this.modules[this.fileload.rune] = this.fileload;
|
this.modules[this.fileload.rune] = this.fileload;
|
||||||
@ -45,7 +43,7 @@ function Ronin()
|
|||||||
|
|
||||||
this.position_in_window = function(p)
|
this.position_in_window = function(p)
|
||||||
{
|
{
|
||||||
return new Position(p.x + parseFloat(ronin.surface.element.style.left) + parseFloat(ronin.canvas.element.style.left),p.y + parseFloat(ronin.surface.element.style.top) + parseFloat(ronin.canvas.element.style.top));
|
return new Position(p.x + parseFloat(ronin.surface.element.style.left),p.y + parseFloat(ronin.surface.element.style.top));
|
||||||
}
|
}
|
||||||
|
|
||||||
this.timestamp = function()
|
this.timestamp = function()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user