[Feat]: 支持自定义React/Vue节点在minimap显示
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the feature / 功能描述
目前可以通过自定义shape可以支持自定义React/Vue节点在minimap显示(不知道还有有哪些潜在问题)
plugins: [
{
type: 'minimap',
shape: (id, elType, target) => {
if (target.constructor.name === 'VueNode' || target.constructor.name === 'ReactNode') {
return target;
}
return target.getShape('key').cloneNode(true);
},
},
]
希望在minimap中添加 canvas.destroyChildren();保证自定义React/Vue节点卸载
### Are you willing to contribute? / 是否愿意参与贡献?
✅ Yes / 是
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue points to the minimap plugin's custom shape callback and requests canvas.destroyChildren() so custom React/Vue nodes are unloaded. Start by locating the minimap implementation and tracing how custom nodes are created and removed. Done means custom nodes unload correctly without breaking ordinary minimap shapes; no file or test is named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- data-visualization, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100