Skip to content

Commit 20f440a

Browse files
committed
Add remove function to Splay. Improve message feedback.
1 parent 9b2631b commit 20f440a

23 files changed

+865
-2938
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# TreePlayground
22
A tool to generate, visualize and manipulate various kind of tree structures.
33

4-
To run the program, you only need to download contents in folder 'dist'.
4+
To run the program, you only need to download contents in folder 'dist', or Visit http://192.144.210.149/
55

66
No compatibility testing. Functions are only guaranteed in Chrome.
77

8-
若要运行程序, 只需要下载文件夹"dist"中的内容即可(项目容量很小, 也可全部下载).
8+
若要运行程序, 只需要下载文件夹"dist"中的内容即可本地运行. 也可直接访问 http://192.144.210.149/
99

1010
没有测试兼容性, 只能保证chorme浏览器下正常运行.
1111

dist/TreePlayground.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
</head>
1212

1313
<body>
14+
<div id="header" style="position: fixed; left: 0; top: 0;">
15+
<p style="color: gray">请使用chrome浏览器</p>
16+
</div>
1417
<div id="TreePlayground" @mousemove='onTPMouseMove($event)' @touchmove='onTPMouseMove($event)'>
1518
<!-- Top Toolbar -->
1619
<div class="top-toolbar">
@@ -48,8 +51,8 @@ <h4>Scale: <label v-text="commonParams.treeScale + '%'"></h4>
4851
<div class="right-message">{{ messages.right }}</div>
4952
<!-- Internal Tree Nodes -->
5053
<binnode v-for="(node, ind) in structInfo.nodes" :node="node" :key="'node' + ind"
51-
:class="{'active-node': node.active, 'visited-node': node.visited}" @remove-below="onRemoveBelow"
52-
@remove-one="onRemoveOne" @intr-update="onIntrUpdate">
54+
:class="{'active-node': node.active, 'visited-node': node.visited, 'deprecated-node': node.deprecated}"
55+
@remove-below="onRemoveBelow" @remove-one="onRemoveOne" @intr-update="onIntrUpdate">
5356
</binnode>
5457
<!-- External Tree Nodes -->
5558
<extr-binnode v-show="showExtr" v-for="(node, ind) in structInfo.extrNodes" :node="node"
@@ -71,6 +74,7 @@ <h4>Scale: <label v-text="commonParams.treeScale + '%'"></h4>
7174
<div id="footer" style="position: fixed; left: 0; bottom: 0;">Copyright @ 2020 NitroMelon
7275
<a href="https://github.com/hwc0919/TreePlayground" target="_blank">Source Code</a>
7376
<a href="https://github.com/hwc0919/TreePlayground/issues" target="_blank">Bug report</a>
77+
喜欢的话<a href="https://github.com/hwc0919/TreePlayground/stargazers" target="_blank">&nearhk;给个赞</a>
7478
</div>
7579
<script src="./bundle.js"></script>
7680
</body>

0 commit comments

Comments
 (0)