From 1466fac99eaa343c82ca5e9f2b26ef491dc3e524 Mon Sep 17 00:00:00 2001 From: Sander Mertens Date: Thu, 17 Nov 2022 20:46:36 -0800 Subject: [PATCH] Add find in treeview button, improve treeview logic, improve treeview performance --- etc/css/style.css | 1 + etc/index.html | 3 ++- etc/js/app.js | 7 ++++++- etc/js/entity_inspector.js | 21 +++++++++++++++------ etc/js/entity_tree.js | 23 ++++++++++------------- 5 files changed, 34 insertions(+), 21 deletions(-) diff --git a/etc/css/style.css b/etc/css/style.css index ecb6f9d9..c80eec2d 100644 --- a/etc/css/style.css +++ b/etc/css/style.css @@ -718,6 +718,7 @@ span.inspector-button { padding-left: 10px; padding-right: 10px; cursor: pointer; + height: 18px; } span.inspector-button:hover { diff --git a/etc/index.html b/etc/index.html index 47fa3142..e5a572d2 100644 --- a/etc/index.html +++ b/etc/index.html @@ -85,7 +85,8 @@
+ +    + + -
diff --git a/etc/js/entity_tree.js b/etc/js/entity_tree.js index 06f5f004..a3596661 100644 --- a/etc/js/entity_tree.js +++ b/etc/js/entity_tree.js @@ -19,19 +19,14 @@ function subtree_height(entity_data) { Vue.component('entity-tree-item', { props: ['x', 'y', 'entity_data', 'selected_entity', 'width'], - mounted: function() { - this.expand = this.entity_data.expand; - }, data: function() { return { - expand: false, text_elem: undefined } }, methods: { toggle: function() { this.$emit('toggle', this.entity_data); - this.expand = this.entity_data.expand; }, search: function() { this.$emit('select_query', this.entity_data.path); @@ -73,7 +68,7 @@ Vue.component('entity-tree-item', {