思维导图节点添加编辑工具后如何监听节点内容的改变?
Open
feature 💡
good first issue
oscp
- Dominant language
- TypeScript
- Stars
- 6.7k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
### 问题描述
我的例子就是简单复用了官网中思维导图的样例,然后在增加了 节点编辑工具。但我仔细翻阅了官网的change方法,也做了各种尝试,发现无法在编辑节点时监听到值的变化。我只能在双击事件中开始一个监听,并在点击画布空白事件中关闭监听,并通过graph.toJSON()方法手动过滤并维护渲染这个思维导图的data数据,以实现前端的暂时保存。
### 重现链接
暂无
### 重现步骤
暂无
### 预期行为
暂无
### 平台
- 操作系统: [ Windows]
- 网页浏览器: [Google Chrome]
- X6 版本: [2.11.1]
### 屏幕截图或视频(可选)
_No response_
### 补充说明(可选)
_No response_
Contributor guide
Research direction
Start by reviewing the X6 2.11.1 change API and the node editing-tool behavior described in the issue. Confirm whether editing exposes a documented content-change event, and define the documentation or example needed so users can detect edits without manually tracking double-click and canvas-click events.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- frontend
- Issue type
- Documentation
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100