【发布时间】:2021-09-27 08:43:24
【问题描述】:
当我添加类型为“Bezier”的连接器属性时,添加连接时会抛出
jsPlumb function failed : TypeError: Cannot read properties of undefined (reading 'resetBounds')
ERROR TypeError: Cannot read properties of undefined (reading 'canvas')
at BrowserJsPlumbInstance.setConnectorHover (jsplumb.browser-ui.es.js:4774)
我将以下属性添加到 addEndPoint
import {BezierConnector} from '@jsplumb/connector-bezier'
{
endpoint: {
type: DotEndpoint.type,
options:{
radius: 7
}
},
paintStyle: { fill: '#99cb3a' },
source: true,
connector:{
type:BezierConnector.type,
options:{
curviness:50
}
},
}
【问题讨论】: