remove edata
This commit is contained in:
parent
a199477b8a
commit
58607216fe
@ -254,13 +254,6 @@ body {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#edata{
|
|
||||||
position: absolute;
|
|
||||||
z-index:0;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#iconImages {
|
#iconImages {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@ -238,13 +238,6 @@ body {
|
|||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
#edata{
|
|
||||||
position: absolute;
|
|
||||||
z-index:0;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#iconImages {
|
#iconImages {
|
||||||
z-index: 0;
|
z-index: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|||||||
@ -415,8 +415,10 @@ editor.prototype.drawInitData = function (icons) {
|
|||||||
var fullWidth = ~~(sumWidth * ratio);
|
var fullWidth = ~~(sumWidth * ratio);
|
||||||
var fullHeight = ~~(maxHeight * ratio);
|
var fullHeight = ~~(maxHeight * ratio);
|
||||||
|
|
||||||
|
/*
|
||||||
if (fullWidth > edata.width) edata.style.width = (edata.width = fullWidth) / ratio + 'px';
|
if (fullWidth > edata.width) edata.style.width = (edata.width = fullWidth) / ratio + 'px';
|
||||||
edata.style.height = (edata.height = fullHeight) / ratio + 'px';
|
edata.style.height = (edata.height = fullHeight) / ratio + 'px';
|
||||||
|
*/
|
||||||
iconImages.style.width = (iconImages.width = fullWidth) / ratio + 'px';
|
iconImages.style.width = (iconImages.width = fullWidth) / ratio + 'px';
|
||||||
iconImages.style.height = (iconImages.height = fullHeight) / ratio + 'px';
|
iconImages.style.height = (iconImages.height = fullHeight) / ratio + 'px';
|
||||||
var dc = {drawImage:function(){
|
var dc = {drawImage:function(){
|
||||||
@ -644,6 +646,7 @@ editor.prototype.listen = function () {
|
|||||||
|
|
||||||
var iconLib=document.getElementById('iconLib');
|
var iconLib=document.getElementById('iconLib');
|
||||||
iconLib.onmousedown = function (e) {
|
iconLib.onmousedown = function (e) {
|
||||||
|
console.log("iconLib: ("+e.clientX+","+e.clientY+")");
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -957,7 +960,7 @@ editor.prototype.listen = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var dataSelection = document.getElementById('dataSelection');
|
var dataSelection = document.getElementById('dataSelection');
|
||||||
edata.onmousedown = function (e) {
|
iconLib.onmousedown = function (e) {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
var scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
|
var scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
|
||||||
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
|
||||||
|
|||||||
@ -258,7 +258,6 @@
|
|||||||
<div id="right" style="z-index:-1;opacity: 0;">
|
<div id="right" style="z-index:-1;opacity: 0;">
|
||||||
<div id="iconLib">
|
<div id="iconLib">
|
||||||
<div id="iconImages"></div>
|
<div id="iconImages"></div>
|
||||||
<canvas class='egameCanvas' id='edata' width='416' height='416'></canvas>
|
|
||||||
<div id="selectBox">
|
<div id="selectBox">
|
||||||
<div id='dataSelection' v-show="isSelected" v-cloak></div>
|
<div id='dataSelection' v-show="isSelected" v-cloak></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -305,7 +305,6 @@
|
|||||||
<div id="right">
|
<div id="right">
|
||||||
<div id="iconLib">
|
<div id="iconLib">
|
||||||
<div id="iconImages"></div>
|
<div id="iconImages"></div>
|
||||||
<canvas class='egameCanvas' id='edata' width='416' height='416'></canvas>
|
|
||||||
<div id="selectBox">
|
<div id="selectBox">
|
||||||
<div id='dataSelection' v-show="isSelected" v-cloak></div>
|
<div id='dataSelection' v-show="isSelected" v-cloak></div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user