Skip to content

Commit

Permalink
update version to 0.7.0 (#496)
Browse files Browse the repository at this point in the history
  • Loading branch information
hizzgdev authored Sep 2, 2023
1 parent 780f009 commit 3e3d263
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 23 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jsMind is mind map library built by javascript, it base on html5 canvas and svg.
- [jsMind on Github](https://github.com/hizzgdev/jsmind)
- [国内镜像 - Gitee](https://gitee.com/hizzgdev/jsmind)

## ES6 Version Update
## !! BREAK CHANGE - Legacy Version is Deprecated !!

ES6 版本现已发布,详情请查阅 [es6/README.md](es6/README.md)
ES6 版本现已发布,老版本已下线,详情请查阅 [es6/README.md](es6/README.md)

The ES6 version of jsMind has been launched. see details from [es6/README-en.md](es6/README-en.md)
The ES6 version of jsMind has been launched, and legacy version has been deprecated. see details from [es6/README-en.md](es6/README-en.md)

## Get Started

Expand All @@ -26,15 +26,15 @@ The ES6 version of jsMind has been launched. see details from [es6/README-en.md]
<link
type="text/css"
rel="stylesheet"
href="//cdn.jsdelivr.net/npm/jsmind@0.6.4/style/jsmind.css"
href="//cdn.jsdelivr.net/npm/jsmind@0.7.0/style/jsmind.css"
/>
<script
type="text/javascript"
src="//cdn.jsdelivr.net/npm/jsmind@0.6.4/es6/jsmind.js"
src="//cdn.jsdelivr.net/npm/jsmind@0.7.0/es6/jsmind.js"
></script>
<!--
enable draggable node feature
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/jsmind@0.6.4/es6/jsmind.draggable-node.js"></script>
<script type="text/javascript" src="//cdn.jsdelivr.net/npm/jsmind@0.7.0/es6/jsmind.draggable-node.js"></script>
-->
</head>
<body>
Expand Down
12 changes: 6 additions & 6 deletions docs/en/1.usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,22 @@
At first, 2 files (jsmind.css and jsmind.js) are required. Here we link to the resources on the CDN. It is recommended to use the latest version.

```html
<link type="text/css" rel="stylesheet" href="https://unpkg.com/jsmind@0.6.4/style/jsmind.css" />
<link type="text/css" rel="stylesheet" href="https://unpkg.com/jsmind@0.7.0/style/jsmind.css" />

<script type="text/javascript" src="https://unpkg.com/jsmind@0.6.4/es6/jsmind.js"></script>
<script type="text/javascript" src="https://unpkg.com/jsmind@0.7.0/es6/jsmind.js"></script>

```
> CDN: other available CDNs are [jsDelivr](https://www.jsdelivr.com/package/npm/jsmind/), and [the mirror of jsDelivr in China](https://jsd.onmicrosoft.cn/npm/jsmind/). the resource urls would look like:
> - https://unpkg.com/jsmind@0.6.4/es6/jsmind.js
> - https://cdn.jsdelivr.net/npm/jsmind@0.6.4/es6/jsmind.js
> - https://jsd.onmicrosoft.cn/npm/jsmind@0.6.4/es6/jsmind.js
> - https://unpkg.com/jsmind@0.7.0/es6/jsmind.js
> - https://cdn.jsdelivr.net/npm/jsmind@0.7.0/es6/jsmind.js
> - https://jsd.onmicrosoft.cn/npm/jsmind@0.7.0/es6/jsmind.js
> Version: the version number appear in the url of CDN. It's strongly recommended that you also specify the version number in your project to avoid the risks that caused by version upgrades. Access the [Release page](https://github.com/hizzgdev/jsmind/releases) to get the latest version number of jsMind.
Add script jsmind.draggable-node.js for enabling draggable node feature.

```html
<script type="text/javascript" src="https://unpkg.com/jsmind@0.6.4/es6/jsmind.draggable-node.js"></script>
<script type="text/javascript" src="https://unpkg.com/jsmind@0.7.0/es6/jsmind.draggable-node.js"></script>
```

The second, a div element should be in your HTML as container
Expand Down
12 changes: 6 additions & 6 deletions docs/zh/1.usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@


```html
<link type="text/css" rel="stylesheet" href="https://unpkg.com/jsmind@0.6.4/style/jsmind.css" />
<link type="text/css" rel="stylesheet" href="https://unpkg.com/jsmind@0.7.0/style/jsmind.css" />

<script type="text/javascript" src="https://unpkg.com/jsmind@0.6.4/es6/jsmind.js"></script>
<script type="text/javascript" src="https://unpkg.com/jsmind@0.7.0/es6/jsmind.js"></script>
```

> CDN:其它可用的 CDN 还有 [jsDelivr](https://www.jsdelivr.com/package/npm/jsmind/),以及 jsDelivr 的[国内镜像](https://jsd.onmicrosoft.cn/npm/jsmind/)。文件路径大概像这样:
> - https://unpkg.com/jsmind@0.6.4/es6/jsmind.js
> - https://cdn.jsdelivr.net/npm/jsmind@0.6.4/es6/jsmind.js
> - https://jsd.onmicrosoft.cn/npm/jsmind@0.6.4/es6/jsmind.js
> - https://unpkg.com/jsmind@0.7.0/es6/jsmind.js
> - https://cdn.jsdelivr.net/npm/jsmind@0.7.0/es6/jsmind.js
> - https://jsd.onmicrosoft.cn/npm/jsmind@0.7.0/es6/jsmind.js
> 版本:上面的示例url中都有版本号,强烈建议你在项目里也指明版本号,以避免版本升级给你的项目带来风险。访问 [Release 页面](https://github.com/hizzgdev/jsmind/releases) 可以获取 jsmind 的最新版本号。
如果希望能够通过鼠标拖拽的方式移动节点,需要额外引用 jsmind.draggable-node.js 文件

```html
<script type="text/javascript" src="https://unpkg.com/jsmind@0.6.4/es6/jsmind.draggable-node.js"></script>
<script type="text/javascript" src="https://unpkg.com/jsmind@0.7.0/es6/jsmind.draggable-node.js"></script>
```

其次,要为 jsMind 准备一个容器,jsMind 将在这个容器里显示思维导图。可自行定义容器的id、大小及样式。
Expand Down
2 changes: 1 addition & 1 deletion example/3_requirejs.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
meta: {
name: 'jsMind example',
author: '[email protected]',
version: '0.6.5',
version: '0.7.0',
},
format: 'node_tree',
data: {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jsmind",
"version": "0.6.5",
"version": "0.7.0",
"description": "jsMind is a pure javascript library for mindmap, it base on html5 canvas. jsMind was released under BSD license, you can embed it in any project, if only you observe the license.",
"main": "es6/jsmind.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/jsmind.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* https://github.com/hizzgdev/jsmind/
*/

export const __version__ = '0.6.5';
export const __version__ = '0.7.0';
export const __author__ = '[email protected]';

if (typeof String.prototype.startsWith != 'function') {
Expand Down

0 comments on commit 3e3d263

Please sign in to comment.