|
@@ -45,14 +45,7 @@ window.grendCAD = (function grendCAD() {
|
|
width: 200px;
|
|
width: 200px;
|
|
height: 200px;
|
|
height: 200px;
|
|
background: rgba(0, 0, 0, .3);
|
|
background: rgba(0, 0, 0, .3);
|
|
- border-radius: 5px;
|
|
|
|
- background-image: url('./images/map_1.png');
|
|
|
|
- path {
|
|
|
|
- opacity: 0;
|
|
|
|
- }
|
|
|
|
- g.sign>path {
|
|
|
|
- opacity: 1;
|
|
|
|
- }
|
|
|
|
|
|
+ border-radius: 5px;
|
|
}
|
|
}
|
|
|
|
|
|
.cad > div {
|
|
.cad > div {
|
|
@@ -80,14 +73,6 @@ window.grendCAD = (function grendCAD() {
|
|
height: 100px;
|
|
height: 100px;
|
|
background: rgba(0, 0, 0, .3);
|
|
background: rgba(0, 0, 0, .3);
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
- background-image: url('./images/map_1.png');
|
|
|
|
- background-size: cover;
|
|
|
|
- path {
|
|
|
|
- opacity: 0;
|
|
|
|
- }
|
|
|
|
- g.sign>path {
|
|
|
|
- opacity: 1;
|
|
|
|
- }
|
|
|
|
}
|
|
}
|
|
.img {
|
|
.img {
|
|
width: 90%;
|
|
width: 90%;
|
|
@@ -134,11 +119,6 @@ window.grendCAD = (function grendCAD() {
|
|
loadScript(function () {
|
|
loadScript(function () {
|
|
let [$layer, $img] = loadDOM($parent)
|
|
let [$layer, $img] = loadDOM($parent)
|
|
|
|
|
|
- $layer.addEventListener('click', () => {
|
|
|
|
- console.log(12)
|
|
|
|
- $img.src = './images/map_2.png'
|
|
|
|
- $img.style.display = $img.style.display === 'block' ? 'none' : 'block'
|
|
|
|
- })
|
|
|
|
|
|
|
|
$layer.style.visibility = 'hidden'
|
|
$layer.style.visibility = 'hidden'
|
|
window.cad = structureCAD({
|
|
window.cad = structureCAD({
|
|
@@ -164,7 +144,7 @@ window.grendCAD = (function grendCAD() {
|
|
if (point && dire) {
|
|
if (point && dire) {
|
|
window.cad.setSign(point, dire)
|
|
window.cad.setSign(point, dire)
|
|
}
|
|
}
|
|
- $layer.style.visibility = 'visible'
|
|
|
|
|
|
+ $layer.style.visibility = 'hidden'
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})()
|
|
})()
|