-
-
Notifications
You must be signed in to change notification settings - Fork 860
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
259 additions
and
174 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,27 @@ | ||
[Table of Contents](index.md) | ||
|
||
* [1. Usage](1.usage.md) | ||
* [2. Options](2.options.md) | ||
* [3. Operation](3.operation.md) | ||
* [Usage](1.usage.md) | ||
* [Options](2.options.md) | ||
* [Operation](3.operation.md) | ||
* [Experimental Features *](experimental-features.md) | ||
* [Screenshot (Export as Image)](plugin-screenshot.md) | ||
* [Contribution](4.contribution.md) | ||
* [Development Guide](5.development.md) | ||
|
||
> Special note: These experimental features are not guaranteed to continue to exist in subsequent versions, nor are their API compatibility guaranteed. If experimental features are used in your project, please upgrade jsmind with caution in the future. | ||
Export Image/Screenshot | ||
Experimental Features | ||
=== | ||
This feature can support to export mind maps as png images. | ||
|
||
```html | ||
|
||
<!-- style --> | ||
<link type="text/css" rel="stylesheet" href="https://unpkg.com/jsmind@0.7.4/style/jsmind.css" /> | ||
|
||
<!-- jsMind --> | ||
<script type="text/javascript" src="https://unpkg.com/jsmind@0.7.4/es6/jsmind.js"></script> | ||
|
||
<!-- dependency of screenshot --> | ||
<script type="text/javascript" src="https://unpkg.com/dom-to-image@2.6.0/dist/dom-to-image.min.js" ></script> | ||
Some contents in the documents are annotated with `experimental`, indicating that those features are currently in experimental stage, which means those features may be changed in the future. The experimental features are neither guaranteed to continue to exist in subsequent versions, nor guaranteed their backward compatibility. If any experimental feature is used in your project, you'd better test them carefully when you upgrade jsmind in the future. | ||
|
||
<!-- screenshot plugin --> | ||
<script type="text/javascript" src="https://unpkg.com/jsmind@0.7.4/es6/jsmind.screenshot.js"></script> | ||
|
||
List of Experimental Features: | ||
|
||
<script> | ||
var jm = new jsMind(options); | ||
jm.show(mind_data); | ||
// export current mindmap to an image | ||
jm.shoot() | ||
</script> | ||
- [Screenshot (Export as Image)](plugin-screenshot.md) | ||
|
||
``` | ||
|
||
If you use npm, please install `jsmind` and `dom-to-image` | ||
|
||
```bash | ||
npm install jsmind | ||
npm install dom-to-image | ||
``` | ||
|
||
And then use it the same way on the page. | ||
|
||
```html | ||
<script> | ||
import domtoimage from 'dom-to-image'; | ||
import jsMind from 'jsmind' | ||
import 'jsmind/screenshot' | ||
import 'jsmind/style/jsmind.css' | ||
copyright notice | ||
=== | ||
|
||
// ... | ||
Reproduction and deduction are prohibited. | ||
|
||
var jm = new jsMind(options); | ||
jm.show(mind_data); | ||
// export current mindmap to an image | ||
jm.shoot() | ||
</script> | ||
``` | ||
The jsMind project is still being updated and the corresponding documentation is updated at the same time as the version is updated. In order to avoid confusion to the user, it is forbidden to reprint this document without written permission and to make changes of any kind to this document. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
[Table of Contents](index.md) | ||
|
||
* [Usage](1.usage.md) | ||
* [Options](2.options.md) | ||
* [Operation](3.operation.md) | ||
* [Experimental Features](experimental-features.md) | ||
* [Screenshot (Export as Image) *](plugin-screenshot.md) | ||
* [Contribution](4.contribution.md) | ||
* [Development Guide](5.development.md) | ||
|
||
Screenshot (Export as Image) <sup>[experimental](experimental-features.md)</sup> | ||
=== | ||
|
||
> It's strongly recommended that you read [Experimental Features](experimental-features.md) to fully understand the risks before using this feature. | ||
This feature can support to export mind maps as png images. | ||
|
||
```html | ||
|
||
<!-- style --> | ||
<link type="text/css" rel="stylesheet" href="https://unpkg.com/jsmind@0.7.4/style/jsmind.css" /> | ||
|
||
<!-- jsMind --> | ||
<script type="text/javascript" src="https://unpkg.com/jsmind@0.7.4/es6/jsmind.js"></script> | ||
|
||
<!-- dependency of screenshot --> | ||
<script type="text/javascript" src="https://unpkg.com/dom-to-image@2.6.0/dist/dom-to-image.min.js" ></script> | ||
|
||
<!-- screenshot plugin --> | ||
<script type="text/javascript" src="https://unpkg.com/jsmind@0.7.4/es6/jsmind.screenshot.js"></script> | ||
|
||
|
||
<script> | ||
var jm = new jsMind(options); | ||
jm.show(mind_data); | ||
// export current mindmap to an image | ||
jm.shoot() | ||
</script> | ||
|
||
``` | ||
|
||
If you use npm, please install `jsmind` and `dom-to-image` | ||
|
||
```bash | ||
npm install jsmind | ||
npm install dom-to-image | ||
``` | ||
|
||
And then use it the same way on the page. | ||
|
||
```html | ||
<script> | ||
import domtoimage from 'dom-to-image'; | ||
import jsMind from 'jsmind' | ||
import 'jsmind/screenshot' | ||
import 'jsmind/style/jsmind.css' | ||
// ... | ||
var jm = new jsMind(options); | ||
jm.show(mind_data); | ||
// export current mindmap to an image | ||
jm.shoot() | ||
</script> | ||
``` | ||
|
||
copyright notice | ||
=== | ||
|
||
Reproduction and deduction are prohibited. | ||
|
||
The jsMind project is still being updated and the corresponding documentation is updated at the same time as the version is updated. In order to avoid confusion to the user, it is forbidden to reprint this document without written permission and to make changes of any kind to this document. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
## 中文 | ||
|
||
* [目录](zh/index.md) | ||
* [1. 基本用法](zh/1.usage.md) | ||
* [2. 选项](zh/2.options.md) | ||
* [3. 界面操控](zh/3.operation.md) | ||
* [基本用法](zh/1.usage.md) | ||
* [选项](zh/2.options.md) | ||
* [界面操控](zh/3.operation.md) | ||
* [实验性功能](zh/experimental-features.md) | ||
* [参与贡献](zh/4.contribution.md) | ||
* [贡献代码指南](zh/5.development.md) | ||
|
||
## English | ||
|
||
* [Table of Contents](en/index.md) | ||
* [1. Usage](en/1.usage.md) | ||
* [2. Options](en/2.options.md) | ||
* [3. API / Operation](en/3.operation.md) | ||
* [Usage](en/1.usage.md) | ||
* [Options](en/2.options.md) | ||
* [API / Operation](en/3.operation.md) | ||
* [Experimental Features](en/experimental-features.md) | ||
* [Contribution](en/4.contribution.md) | ||
* [Development Guide](en/5.development.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.