From 2689847c6bf123ebb3f474ff834b9f0d74ad76c2 Mon Sep 17 00:00:00 2001 From: Zhigang Zhang Date: Mon, 16 Oct 2023 14:22:37 +0800 Subject: [PATCH] upgrade to 0.7.4 (#512) --- README.md | 6 +++--- docs/en/1.usage.md | 12 ++++++------ docs/en/experimental-features.md | 6 +++--- docs/zh/1.usage.md | 12 ++++++------ docs/zh/experimental-features.md | 6 +++--- example/1_basic.html | 6 +++--- example/1_basic_cn.html | 6 +++--- example/2_features.html | 8 ++++---- example/2_features_cn.html | 8 ++++---- example/3_requirejs.html | 8 ++++---- package-lock.json | 4 ++-- package.json | 2 +- src/jsmind.common.js | 2 +- 13 files changed, 43 insertions(+), 43 deletions(-) diff --git a/README.md b/README.md index 2e59b63d..3bab1365 100644 --- a/README.md +++ b/README.md @@ -26,15 +26,15 @@ The ES6 version of jsMind has been launched, and legacy version has been depreca diff --git a/docs/en/1.usage.md b/docs/en/1.usage.md index d5b723c2..c12aa099 100644 --- a/docs/en/1.usage.md +++ b/docs/en/1.usage.md @@ -13,22 +13,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 - + - + ``` > 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.7.3/es6/jsmind.js -> - https://cdn.jsdelivr.net/npm/jsmind@0.7.3/es6/jsmind.js -> - https://jsd.onmicrosoft.cn/npm/jsmind@0.7.3/es6/jsmind.js +> - https://unpkg.com/jsmind@0.7.4/es6/jsmind.js +> - https://cdn.jsdelivr.net/npm/jsmind@0.7.4/es6/jsmind.js +> - https://jsd.onmicrosoft.cn/npm/jsmind@0.7.4/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 [jsMind on NPS](https://www.npmjs.com/package/jsmind) to get the latest version number of jsMind. Add script jsmind.draggable-node.js for enabling draggable node feature. ```html - + ``` The second, a div element should be in your HTML as container diff --git a/docs/en/experimental-features.md b/docs/en/experimental-features.md index dd763aa5..c1ecfb66 100644 --- a/docs/en/experimental-features.md +++ b/docs/en/experimental-features.md @@ -16,16 +16,16 @@ This feature can support to export mind maps as png images. ```html - + - + - + + ``` > CDN:其它可用的 CDN 还有 [jsDelivr](https://www.jsdelivr.com/package/npm/jsmind/),以及 jsDelivr 的[国内镜像](https://jsd.onmicrosoft.cn/npm/jsmind/)。文件路径大概像这样: -> - https://unpkg.com/jsmind@0.7.3/es6/jsmind.js -> - https://cdn.jsdelivr.net/npm/jsmind@0.7.3/es6/jsmind.js -> - https://jsd.onmicrosoft.cn/npm/jsmind@0.7.3/es6/jsmind.js +> - https://unpkg.com/jsmind@0.7.4/es6/jsmind.js +> - https://cdn.jsdelivr.net/npm/jsmind@0.7.4/es6/jsmind.js +> - https://jsd.onmicrosoft.cn/npm/jsmind@0.7.4/es6/jsmind.js > 版本:上面的示例url中都有版本号,强烈建议你在项目里也指明版本号,以避免版本升级给你的项目带来风险。访问 [NPS 上的 jsMind](https://www.npmjs.com/package/jsmind) 可以获取 jsmind 的最新版本号。 如果希望能够通过鼠标拖拽的方式移动节点,需要额外引用 jsmind.draggable-node.js 文件 ```html - + ``` 其次,要为 jsMind 准备一个容器,jsMind 将在这个容器里显示思维导图。可自行定义容器的id、大小及样式。 diff --git a/docs/zh/experimental-features.md b/docs/zh/experimental-features.md index d1694574..89db9e8d 100644 --- a/docs/zh/experimental-features.md +++ b/docs/zh/experimental-features.md @@ -17,16 +17,16 @@ ```html - + - + - + - + + - + + diff --git a/example/2_features_cn.html b/example/2_features_cn.html index f687a567..a411c881 100644 --- a/example/2_features_cn.html +++ b/example/2_features_cn.html @@ -7,7 +7,7 @@