From 1c7edf47e319a45578963a1b7e2f887c470eaaa4 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Wed, 11 Jan 2023 09:21:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=A1=A3=E6=96=B0=E5=A2=9E=E5=B8=B8?= =?UTF-8?q?=E8=A7=81=E9=94=99=E8=AF=AF=E8=A7=A3=E5=86=B3=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++++ README.zh-Hans.md | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index e10f8e8c..bdb11cfe 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,10 @@ and if you do not need to parse the `xmind` file, you can remove the `xmind` module. If you need it, you can try using other libraries to parse `xml` to `json`. +## Error `Getting bbox of element "text" is not possible: TypeError: Cannot read properties of undefined (reading 'apply')` + +The reason is that the installed version of `@svgdotjs/svg.js` is too high. You can manually reduce it to the version of `3.0.16`. + # API ## Instantiating diff --git a/README.zh-Hans.md b/README.zh-Hans.md index c562d622..a00fb688 100644 --- a/README.zh-Hans.md +++ b/README.zh-Hans.md @@ -129,6 +129,10 @@ import MindMap from "simple-mind-map/dist/simpleMindMap.umd.min" 如果需要二次开发,也就是必须要使用未打包代码的话,如果你不需要解析`xmind`文件的话,可以去除`xmind`模块,如果需要的话那么可以尝试换成其他的解析`xml`为`json`的库。 +## 2.报错`Getting bbox of element "text" is not possible: TypeError: Cannot read properties of undefined (reading 'apply')` + +原因为安装的`@svgdotjs/svg.js`版本太高,手动降到`3.0.16`版本即可。 + # API ## 实例化