Skip to content

[Bug Report]: 小地图插件bug #2238

@xuxu-1997

Description

@xuxu-1997

发生了什么?

"@logicflow/core": "^2.0.16"
"@logicflow/extension": "^2.0.21",

自定义start组件,在initNodeData判断,当已经存在start,return,不创建,这样使用没有问题也不会出错,但是在开启小地图之后,就好出现这个错误:Uncaught Error: 找不到对应的节点,请确认是否已注册此类型节点。

`export class StartNodeModel extends HtmlNodeModel {
initNodeData(data) {
if (!nodeLimit_start(this)) return
super.initNodeData(data)
this.width = 40
this.height = 40
this.text.draggable = false // 不允许文本被拖动
this.text.editable = false // 不允许文本被编辑
this.text.x = data.x
this.text.y = data.y + 34
this.text.editable = false
this.properties.name = 'default'

limitConnect(this)

}`

Image

logicflow/core版本

2.0.16

logicflow/extension版本

2.0.21

logicflow/engine版本

No response

浏览器&环境

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions