Skip to content

Commit 56f5d5d

Browse files
authored
Merge branch 'master' into master
2 parents f27bc27 + 4713b96 commit 56f5d5d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+14358
-9869
lines changed

.gitignore

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,22 @@
1-
# Folders to ignore
1+
# compiled output
2+
/demo/js
3+
/demo/css/font-awesome.min.css
4+
/demo/css/jquery.orgchart.css
5+
/demo/fonts
6+
7+
# Coverage directory used by tools like istanbul
8+
coverage
9+
10+
# Bower dependency directory (https://bower.io/)
211
bower_components
3-
node_modules
412

13+
# Logs
14+
logs
15+
*.log
16+
npm-debug.log*
17+
18+
# Dependency directories
19+
node_modules/
520

6-
# Numerous always-ignore extensions
7-
*.log
21+
# System Files
22+
.DS_Store

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
language: node_js
2-
node_js: "stable"
2+
3+
node_js: "8"
34

45
before_install:
56
- stty cols 80

README.md

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
![OrgChart](http://dabeng.github.io/OrgChart/img/orgchart-heading.png)
22

3-
# [Native JavaScript(ES6) Version](http://github.com/dabeng/OrgChart.js)
3+
# [Vue.js Version](https://github.com/dabeng/vue-orgchart)
4+
# [ES6 Version](http://github.com/dabeng/OrgChart.js)
45
# [Web Components Version](http://github.com/dabeng/OrgChart-Webcomponents)
56

67
## Foreword
@@ -17,7 +18,12 @@
1718
- Supports exporting chart as a picture or pdf document.
1819
- Supports pan and zoom
1920
- Users can adopt multiple solutions to build up a huge organization chart(please refer to multiple-layers or hybrid layout sections)
20-
- touch-enabled plugin for mobile divice
21+
- touch-enabled plugin for mobile device
22+
23+
## CDN
24+
Users could find the related CDN support for OrgChart's CSS and JavaScript.
25+
26+
https://cdnjs.com/libraries/orgchart
2127

2228
## Installation
2329
Of course, you can directly use the standalone build by including dist/js/jquery.orgchart.js and dist/css/jquery.orgchart.css in your webapps.
@@ -34,7 +40,7 @@ $ npm install orgchart
3440
```
3541
require('orgchart') will load orgchart plugin onto the jQuery object. The orgchart module itself does not export anything.
3642

37-
## [Demo](https://rawgit.com/dabeng/OrgChart/master/demo/index.html)      [All demos in one page](http://dabeng.github.io/OrgChart/)
43+
## [Demos on github](https://rawgit.com/dabeng/OrgChart/master/demo/index.html)      [Demos on codepen.io](https://codepen.io/collection/AWxGVb/)
3844
### online demos
3945
- [using ul datasource](https://rawgit.com/dabeng/OrgChart/master/demo/ul-datasource.html)(this feature comes from [Tobyee's good idea:blush:](https://github.com/dabeng/OrgChart/issues/1))
4046

@@ -88,7 +94,7 @@ Users are allowed to drag & drop the nodes of orgchart when option "draggable" i
8894

8995
Furthermore, users can make use of option dropCriteria to inject their custom limitations on drag & drop. As shown below, we don't want an manager employee to be under a engineer under no circumstance.
9096

91-
- [I want a method that can decribe the hierarchy of orgchart](https://rawgit.com/dabeng/OrgChart/master/demo/get-hierarchy.html)
97+
- [I want a method that can describe the hierarchy of orgchart](https://rawgit.com/dabeng/OrgChart/master/demo/get-hierarchy.html)
9298

9399
That's where getHierarchy() comes in.
94100

@@ -215,10 +221,10 @@ var oc = $('#chartContainerId').orgchart(options);
215221
<td>nodeId</td><td>string</td><td>no</td><td>"id"</td><td>It sets one property of datasource as unique identifier of every orgchart node.</td>
216222
</tr>
217223
<tr>
218-
<td>nodeTemplate</td><td>function</td><td>no</td><td></td><td>It's a template generation function used to customize any complex internal structure of node. It recieves only one parameter: "data" stands for json datasoure which will be use to render one node.</td>
224+
<td>nodeTemplate</td><td>function</td><td>no</td><td></td><td>It's a template generation function used to customize any complex internal structure of node. It receives only one parameter: "data" stands for json datasoure which will be use to render one node.</td>
219225
</tr>
220226
<tr>
221-
<td>createNode</td><td>function</td><td>no</td><td></td><td>It's a callback function used to customize every orgchart node. It recieves two parameters: "$node" stands for jquery object of single node div; "data" stands for datasource of single node.</td>
227+
<td>createNode</td><td>function</td><td>no</td><td></td><td>It's a callback function used to customize every orgchart node. It receives two parameters: "$node" stands for jquery object of single node div; "data" stands for datasource of single node.</td>
222228
</tr>
223229
<tr>
224230
<td>exportButton</td><td>boolean</td><td>no</td><td>false</td><td>It enable the export button for orgchart.</td>
@@ -239,7 +245,7 @@ var oc = $('#chartContainerId').orgchart(options);
239245
<td>dropCriteria</td><td>function</td><td>no</td><td></td><td>Users can construct their own criteria to limit the relationships between dragged node and drop zone. Furtherly, this function accept three arguments(draggedNode, dragZone, dropZone) and just only return boolen values.</td>
240246
</tr>
241247
<tr>
242-
<td>initCompleted</td><td>function</td><td>no</td><td></td><td>It can often be useful to know when your table has fully been initialised, data loaded and rendered, particularly when using an ajax data source. It recieves one parament: "$chart" stands for jquery object of initialised chart.</td>
248+
<td>initCompleted</td><td>function</td><td>no</td><td></td><td>It can often be useful to know when your table has fully been initialised, data loaded and rendered, particularly when using an ajax data source. It receives one parament: "$chart" stands for jquery object of initialised chart.</td>
243249
</tr>
244250
</tbody>
245251
</table>

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "orgchart",
3-
"version": "2.1.1",
3+
"version": "2.1.3",
44
"homepage": "https://github.com/dabeng/OrgChart",
55
"authors": [
66
"dabeng <[email protected]>"

demo/ajax-datasource.html

100644100755
File mode changed.

demo/bottom2top.html

100644100755
File mode changed.

demo/center-on-selected-node.html

100644100755
File mode changed.

demo/color-coded.html

100644100755
File mode changed.

demo/css/font-awesome.min.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)