From ee5c46eec58fb6418bf61815df3983c0bd1e07a2 Mon Sep 17 00:00:00 2001
From: Xuebin Dong
Date: Tue, 15 Nov 2022 23:02:08 +0800
Subject: [PATCH] position node in specific level
---
README.md | 4 +++
demo/index.html | 1 +
demo/level-offset.html | 57 ++++++++++++++++++++++++++++++++
dist/css/jquery.orgchart.css | 8 ++---
dist/css/jquery.orgchart.min.css | 2 +-
package-lock.json | 2 +-
package.json | 2 +-
src/css/jquery.orgchart.css | 8 ++---
8 files changed, 73 insertions(+), 11 deletions(-)
create mode 100755 demo/level-offset.html
diff --git a/README.md b/README.md
index 86317353..11ae11f7 100644
--- a/README.md
+++ b/README.md
@@ -133,6 +133,10 @@ It's not a big deal. You just turn to the method init().
No problem. With the help of ES6 Template literals, we can customize the any complex node structure rather than the common title and content sections.
+- [I want to position node in specific level. How can i do that ?](https://dabeng.github.io/OrgChart/level-offset.html)
+
+You need the solution based on new datasource structure with levelOffset prop + callback createNode() + CSS custom properties(variables)
+
### how to start up demos locally
- you have to install node.js v6+ because our unit tests are based on jsdom v11
diff --git a/demo/index.html b/demo/index.html
index 38086eff..0a56c34f 100755
--- a/demo/index.html
+++ b/demo/index.html
@@ -141,6 +141,7 @@
responsive design
template for internal structure of node
Highlight related nodes
+ position node in specific level
+
+
+
+
+
+
diff --git a/demo/level-offset.html b/demo/level-offset.html
new file mode 100755
index 00000000..bfaac546
--- /dev/null
+++ b/demo/level-offset.html
@@ -0,0 +1,57 @@
+
+
+