Skip to content

Commit 286f11b

Browse files
committed
version update
1 parent 0ea2046 commit 286f11b

8 files changed

+208
-13
lines changed

README.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,14 @@ Note: when users use ajaxURL option to build orghchart, they must use json datas
6666

6767
Here, we need the help from [html2canvas](https://github.com/niklasvh/html2canvas).
6868

69-
Besides, if you wanna export a pdf format, you need to introduce jspdf as shown bellow:
70-
```html
71-
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.debug.js"></script>
72-
```
73-
7469
**Note:**
7570

7671
(1) if you wanna export something in IE or Edge, please introduce [es6-promise.auto.js](https://github.com/stefanpenner/es6-promise) firstly.
7772

7873
(2) if your OS is windows, please check your display scaling settings. For the perfact exported picture, you'd better adjust "Change the size of text, apps, and other items" to 100%.(thanks for [sayamkrai](https://github.com/sayamkrai)'s [exploration](https://github.com/dabeng/OrgChart/issues/152))
7974

75+
(3) Besides, if you wanna export a pdf format or your orgchart includes picture, you have to introduce [jspdf](https://github.com/MrRio/jsPDF) and set "exportFileextension" option to "pdf".
76+
8077
- [I wanna itegrate organization chart with geographic information](https://rawgit.com/dabeng/OrgChart/master/demo/integrate-map.html)
8178

8279
Here, we fall back on [OpenLayers](https://github.com/openlayers/ol3). It's the most aewsome open-source js library for Web GIS you sholdn't miss.

bower.json

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

demo/export-chart.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<!-- the following reference is specific for IE -->
1919
<script type="text/javascript" src="https://cdn.rawgit.com/stefanpenner/es6-promise/master/dist/es6-promise.auto.min.js"></script>
2020
<script type="text/javascript" src="js/html2canvas.min.js"></script>
21-
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.debug.js"></script>
21+
<script type="text/javascript" src="js/jspdf.min.js"></script>
2222
<script type="text/javascript" src="js/jquery.orgchart.min.js"></script>
2323
<script type="text/javascript">
2424
$(function() {

demo/js/jspdf.min.js

+172
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/option-createNode.html

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
<div id="chart-container"></div>
4343

4444
<script type="text/javascript" src="js/jquery.min.js"></script>
45-
<script type="text/javascript" src="js/html2canvas.min.js"></script>
4645
<script type="text/javascript" src="js/jquery.orgchart.min.js"></script>
4746
<script type="text/javascript">
4847
$(function() {

gulpfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ gulp.task('vendorAssets', function() {
9191
var vendorJS = gulp.src([
9292
'node_modules/jquery/dist/jquery.min.js',
9393
'node_modules/jquery-mockjax/dist/jquery.mockjax.min.js',
94-
'node_modules/html2canvas/dist/html2canvas.min.js'
94+
'node_modules/html2canvas/dist/html2canvas.min.js',
95+
'node_modules/jspdf/dist/jspdf.min.js'
9596
])
9697
.pipe(gulp.dest(paths.demoJSFolder));
9798

package-lock.json

+26-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "orgchart",
3-
"version": "2.0.6",
3+
"version": "2.0.7",
44
"description": "Simple and direct organization chart(tree-like hierarchy) plugin based on pure DOM and jQuery.",
55
"main": "./dist/js/jquery.orgchart.js",
66
"style": [
@@ -32,10 +32,11 @@
3232
},
3333
"homepage": "https://github.com/dabeng/OrgChart#readme",
3434
"dependencies": {
35-
"jquery": "~3.2.1",
3635
"font-awesome": "^4.6.3",
36+
"html2canvas": "^0.5.0-beta4",
37+
"jquery": "~3.2.1",
3738
"jquery-mockjax": "^2.2.0",
38-
"html2canvas": "^0.5.0-beta4"
39+
"jspdf": "^1.3.5"
3940
},
4041
"devDependencies": {
4142
"browser-sync": "^2.18.13",

0 commit comments

Comments
 (0)