From 834747698062d7af6b2e01c748c27f380196eba6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BB=8E=E6=99=BA=E6=B4=B2?= <1543046129@qq.com>
Date: Mon, 13 Sep 2021 21:35:59 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E5=8F=AF=E4=BB=A5foc?=
=?UTF-8?q?us=E8=8A=82=E7=82=B9=E7=9A=84=E5=87=BD=E6=95=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
demoV2/Layouter/BinaryTree.js | 2 +-
demoV2/Layouter/LinkList.js | 2 +-
demoV2/demo2.html | 113 +++++++++++++++++++++++++---------
dist/sv.js | 2 +-
src/Model/modelData.ts | 20 ++++++
src/View/container/main.ts | 33 +++++++---
src/View/renderer.ts | 16 +++--
src/View/viewManager.ts | 10 ++-
src/engine.ts | 13 ++--
9 files changed, 156 insertions(+), 55 deletions(-)
diff --git a/demoV2/Layouter/BinaryTree.js b/demoV2/Layouter/BinaryTree.js
index e2bf9b2..69f05c0 100644
--- a/demoV2/Layouter/BinaryTree.js
+++ b/demoV2/Layouter/BinaryTree.js
@@ -7,7 +7,7 @@ SV.registerLayouter('BinaryTree', {
default: {
type: 'binary-tree-node',
size: [60, 30],
- label: '[id]',
+ label: '[data]',
style: {
fill: '#b83b5e',
stroke: "#333",
diff --git a/demoV2/Layouter/LinkList.js b/demoV2/Layouter/LinkList.js
index 651388b..0ea0b85 100644
--- a/demoV2/Layouter/LinkList.js
+++ b/demoV2/Layouter/LinkList.js
@@ -18,7 +18,7 @@ SV.registerLayouter('LinkList', {
element: {
default: {
type: 'link-list-node',
- label: '[id]',
+ label: '[data]',
size: [60, 30],
style: {
stroke: '#333',
diff --git a/demoV2/demo2.html b/demoV2/demo2.html
index 2b2e117..6fdc881 100644
--- a/demoV2/demo2.html
+++ b/demoV2/demo2.html
@@ -79,6 +79,7 @@