You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by sh...@apache.org on 2020/12/29 13:00:46 UTC

[incubator-echarts-examples] branch next updated: fix performance issues in object visualizer

This is an automated email from the ASF dual-hosted git repository.

shenyi pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-examples.git


The following commit(s) were added to refs/heads/next by this push:
     new d36aa94  fix performance issues in object visualizer
d36aa94 is described below

commit d36aa94b2dad86bfb9efa8cb2bb1db32d59de5af
Author: pissang <bm...@gmail.com>
AuthorDate: Tue Dec 29 20:40:55 2020 +0800

    fix performance issues in object visualizer
---
 package.json          | 2 +-
 src/editor/Editor.vue | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/package.json b/package.json
index eface5d..5bd2dc1 100644
--- a/package.json
+++ b/package.json
@@ -49,7 +49,7 @@
   },
   "dependencies": {
     "lodash": "^4.17.19",
-    "object-visualizer": "^3.1.1",
+    "@lang/object-visualizer": "^3.1.1",
     "resize-detector": "^0.2.2",
     "scroll-into-view": "^1.14.2",
     "sucrase": "^3.15.0",
diff --git a/src/editor/Editor.vue b/src/editor/Editor.vue
index 32d186f..95b33c2 100644
--- a/src/editor/Editor.vue
+++ b/src/editor/Editor.vue
@@ -186,7 +186,7 @@ export default {
             }
             else if (tab === 'full-option') {
                 mount(
-                    this.$refs.preview.getOption(),
+                    Object.freeze(this.$refs.preview.getOption()),
                     this.$el.querySelector('#option-outline'),
                     {
                         expandOnCreatedAndUpdated: (path) => {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org