diff --git a/.config/rollup.config.js b/.config/rollup.config.js index f1dbf80e..599a93f3 100644 --- a/.config/rollup.config.js +++ b/.config/rollup.config.js @@ -8,7 +8,7 @@ export default [ name: 'jsMind', file: 'es6/jsmind.js', format: 'umd', - banner: '/**\n* @license BSD-3-Clause\n* @copyright 2014-2023 hizzgdev@163.com\n*\n* Project Home:\n* https://github.com/hizzgdev/jsmind/\n*/', + banner: '/**\n* @license BSD-3-Clause\n* @copyright 2014-2025 hizzgdev@163.com\n*\n* Project Home:\n* https://github.com/hizzgdev/jsmind/\n*/', sourcemap: true, }, plugins: [ @@ -27,7 +27,7 @@ export default [ output: { file: 'es6/jsmind.draggable-node.js', format: 'umd', - banner: '/**\n* @license BSD-3-Clause\n* @copyright 2014-2023 hizzgdev@163.com\n*\n* Project Home:\n* https://github.com/hizzgdev/jsmind/\n*/', + banner: '/**\n* @license BSD-3-Clause\n* @copyright 2014-2025 hizzgdev@163.com\n*\n* Project Home:\n* https://github.com/hizzgdev/jsmind/\n*/', sourcemap: true, globals: { jsmind: 'jsMind', @@ -50,7 +50,7 @@ export default [ output: { file: 'es6/jsmind.screenshot.js', format: 'umd', - banner: '/**\n* @license BSD-3-Clause\n* @copyright 2014-2023 hizzgdev@163.com\n*\n* Project Home:\n* https://github.com/hizzgdev/jsmind/\n*/', + banner: '/**\n* @license BSD-3-Clause\n* @copyright 2014-2025 hizzgdev@163.com\n*\n* Project Home:\n* https://github.com/hizzgdev/jsmind/\n*/', sourcemap: true, globals: { 'jsmind': 'jsMind', diff --git a/.vscode/project-words.txt b/.vscode/project-words.txt index 8be9ca19..fc9a65f8 100644 --- a/.vscode/project-words.txt +++ b/.vscode/project-words.txt @@ -1,2 +1,5 @@ -jsmind freemind +jmexpander +jmnode +jmnodes +jsmind diff --git a/LICENSE b/LICENSE index 0ca3d14b..51f85fd9 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright (c) 2014-2023, ZHANG ZHIGANG +Copyright (c) 2014-2025, ZHANG ZHIGANG All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: @@ -11,7 +11,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND -版权所有 (c) 2014-2023, 张志刚 +版权所有 (c) 2014-2025, 张志刚 保留一切权利。 在满足下列条件的前提下,授予使用者使用及再发布本软件的源代码或二进制形式的权利,无论是否修改皆然: diff --git a/README.md b/README.md index 7d7576be..9f760221 100644 --- a/README.md +++ b/README.md @@ -20,11 +20,11 @@ jsMind is mind map library built by javascript, it base on html5 canvas and svg. diff --git a/docs/en/1.usage.md b/docs/en/1.usage.md index 346ece58..1a45cc41 100644 --- a/docs/en/1.usage.md +++ b/docs/en/1.usage.md @@ -14,22 +14,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 - + - + ``` > CDNs in common use: [UNPKG](https://unpkg.com/jsmind/), [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.8.6/es6/jsmind.js -> - https://cdn.jsdelivr.net/npm/jsmind@0.8.6/es6/jsmind.js -> - https://jsd.onmicrosoft.cn/npm/jsmind@0.8.6/es6/jsmind.js +> - https://unpkg.com/jsmind@0.8.7/es6/jsmind.js +> - https://cdn.jsdelivr.net/npm/jsmind@0.8.7/es6/jsmind.js +> - https://jsd.onmicrosoft.cn/npm/jsmind@0.8.7/es6/jsmind.js > > 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 NPM](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/2.options.md b/docs/en/2.options.md index 46521e24..2a7a9071 100644 --- a/docs/en/2.options.md +++ b/docs/en/2.options.md @@ -12,6 +12,9 @@ 2.1. Introduction === +The page has been deprecated, and will not be updated any more, please refer to new [Options](options/index.md) page. +--- + The options object for jsMind was briefly mentioned in the example in the previous chapter: ```javascript diff --git a/docs/en/plugin-screenshot.md b/docs/en/plugin-screenshot.md index 7162ec8d..6b39094a 100644 --- a/docs/en/plugin-screenshot.md +++ b/docs/en/plugin-screenshot.md @@ -18,16 +18,16 @@ This feature can support to export mind maps as png images. ```html - + - + - + + ``` > 常用的 CDN 有 [UNPKG](https://unpkg.com/jsmind/),[jsDelivr](https://www.jsdelivr.com/package/npm/jsmind/),以及 jsDelivr 的[国内镜像](https://jsd.onmicrosoft.cn/npm/jsmind/)。文件路径大概像这样: -> - https://unpkg.com/jsmind@0.8.6/es6/jsmind.js -> - https://cdn.jsdelivr.net/npm/jsmind@0.8.6/es6/jsmind.js -> - https://jsd.onmicrosoft.cn/npm/jsmind@0.8.6/es6/jsmind.js +> - https://unpkg.com/jsmind@0.8.7/es6/jsmind.js +> - https://cdn.jsdelivr.net/npm/jsmind@0.8.7/es6/jsmind.js +> - https://jsd.onmicrosoft.cn/npm/jsmind@0.8.7/es6/jsmind.js > > 示例中url中都有版本号,强烈建议你在项目里也指明版本号,以避免版本升级给你的项目带来风险。访问 [NPM 上的 jsMind](https://www.npmjs.com/package/jsmind) 可以获取 jsmind 的最新版本号。 如果希望能够通过鼠标拖拽的方式移动节点,需要额外引用 jsmind.draggable-node.js 文件 ```html - + ``` 其次,要为 jsMind 准备一个容器,jsMind 将在这个容器里显示思维导图。可自行定义容器的id、大小及样式。 diff --git a/docs/zh/2.options.md b/docs/zh/2.options.md index e3c40775..6c2f3847 100644 --- a/docs/zh/2.options.md +++ b/docs/zh/2.options.md @@ -11,6 +11,9 @@ 2.1. 综述 === +此页面已过时,并将不会再更新,请访问新版的[选项](options/index.md)页面获取帮助。 +--- + 上一章的示例中简单提到了 jsMind 的 options 对象: ```javascript diff --git a/docs/zh/plugin-screenshot.md b/docs/zh/plugin-screenshot.md index 67203d80..59c266ca 100644 --- a/docs/zh/plugin-screenshot.md +++ b/docs/zh/plugin-screenshot.md @@ -20,16 +20,16 @@ ```html - + - + - + - + + - + + diff --git a/example/2_features_cn.html b/example/2_features_cn.html index 9d096986..d48c004a 100644 --- a/example/2_features_cn.html +++ b/example/2_features_cn.html @@ -7,7 +7,7 @@