mirror of
https://github.com/viliusle/miniPaint.git
synced 2026-02-06 13:11:51 +00:00
mouse/res info update
This commit is contained in:
parent
af9d2c67e3
commit
98c030f6d8
@ -45,10 +45,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="block" id="mouse_info">
|
||||
<span style="font-weight:bold;min-width:45px;display:block;float:left;" class="trn">Size:</span>
|
||||
<span style="font-weight:bold;min-width:38px;display:block;float:left;" class="trn">Size:</span>
|
||||
<span id="mouse_info_size"></span><br />
|
||||
|
||||
<span style="font-weight:bold;min-width:45px;display:block;float:left;" class="trn">Mouse:</span>
|
||||
<span style="font-weight:bold;min-width:38px;display:block;float:left;font-size:10px;" class="trn">Mouse:</span>
|
||||
<span id="mouse_info_mouse"></span><br />
|
||||
|
||||
<div style="display:none;" id="mouse_info_selected">
|
||||
|
||||
10
js/layers.js
10
js/layers.js
@ -512,6 +512,8 @@ function LAYER_CLASS() {
|
||||
//show
|
||||
document.getElementById('layers').innerHTML = html;
|
||||
}
|
||||
if(this.layers.length == 0)
|
||||
document.getElementById('layers').innerHTML = '';
|
||||
};
|
||||
this.shake = function (i, nr) {
|
||||
var step = 3;
|
||||
@ -549,7 +551,13 @@ function LAYER_CLASS() {
|
||||
x = EVENTS.mouse.x;
|
||||
y = EVENTS.mouse.y;
|
||||
}
|
||||
document.getElementById('mouse_info_mouse').innerHTML = x + ", " + y;
|
||||
if(EVENTS.mouse.valid == true){
|
||||
document.getElementById('mouse_info_mouse').innerHTML = x + "x" + y;
|
||||
}
|
||||
else{
|
||||
//mouse is not inside canvas
|
||||
document.getElementById('mouse_info_mouse').innerHTML = '';
|
||||
}
|
||||
|
||||
//show selected area info
|
||||
if (DRAW.select_data != false) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user