基本重构完成

底层渲染库舍弃 zrender,换为 antvG6
This commit is contained in:
Phenom
2021-04-06 21:45:11 +08:00
parent b886f33d9e
commit 72fcf5394a
36 changed files with 1860 additions and 1401 deletions
+45
View File
@@ -0,0 +1,45 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DEMO</title>
<style>
* {
padding: 0;
margin: 0;
user-select: none;
}
.container {
width: 100%;
height: 600px;
background-color: #fafafa;
}
</style>
</head>
<body>
<div class="container" id="container"></div>
<button id="btn">change</button>
<span id="pos"></span>
<script src="./../dist/sv.js"></script>
<script src="./dataStruct/BinaryTree.js"></script>
<script src="./demo.js"></script>
<script>
const container = document.getElementById('container'),
pos = document.getElementById('pos');
container.addEventListener('mousemove', e => {
let x = e.offsetX, y = e.offsetY;
pos.innerHTML = `${x},${y}`;
});
</script>
</body>
</html>