remove edata

This commit is contained in:
oc 2019-01-16 22:27:29 +08:00
parent a199477b8a
commit 58607216fe
5 changed files with 4 additions and 17 deletions

View File

@ -254,13 +254,6 @@ body {
overflow: auto;
}
#edata{
position: absolute;
z-index:0;
left: 0;
top: 0;
}
#iconImages {
z-index: 0;
overflow: hidden;

View File

@ -238,13 +238,6 @@ body {
overflow: auto;
}
#edata{
position: absolute;
z-index:0;
left: 0;
top: 0;
}
#iconImages {
z-index: 0;
overflow: hidden;

View File

@ -415,8 +415,10 @@ editor.prototype.drawInitData = function (icons) {
var fullWidth = ~~(sumWidth * ratio);
var fullHeight = ~~(maxHeight * ratio);
/*
if (fullWidth > edata.width) edata.style.width = (edata.width = fullWidth) / ratio + 'px';
edata.style.height = (edata.height = fullHeight) / ratio + 'px';
*/
iconImages.style.width = (iconImages.width = fullWidth) / ratio + 'px';
iconImages.style.height = (iconImages.height = fullHeight) / ratio + 'px';
var dc = {drawImage:function(){
@ -644,6 +646,7 @@ editor.prototype.listen = function () {
var iconLib=document.getElementById('iconLib');
iconLib.onmousedown = function (e) {
console.log("iconLib: ("+e.clientX+","+e.clientY+")");
e.stopPropagation();
}
@ -957,7 +960,7 @@ editor.prototype.listen = function () {
}
var dataSelection = document.getElementById('dataSelection');
edata.onmousedown = function (e) {
iconLib.onmousedown = function (e) {
e.stopPropagation();
var scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;

View File

@ -258,7 +258,6 @@
<div id="right" style="z-index:-1;opacity: 0;">
<div id="iconLib">
<div id="iconImages"></div>
<canvas class='egameCanvas' id='edata' width='416' height='416'></canvas>
<div id="selectBox">
<div id='dataSelection' v-show="isSelected" v-cloak></div>
</div>

View File

@ -305,7 +305,6 @@
<div id="right">
<div id="iconLib">
<div id="iconImages"></div>
<canvas class='egameCanvas' id='edata' width='416' height='416'></canvas>
<div id="selectBox">
<div id='dataSelection' v-show="isSelected" v-cloak></div>
</div>