Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Feat]: 支持自定义React/Vue节点在minimap显示 #7429

@Child-qjj

Description

@Child-qjj

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 / 是

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature 💡A new feature request or an enhancement proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions