retejs / connection-path-plugin

Home Page:https://retejs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Uncaught TypeError: Cannot read property 'line' of undefined at e.value (path-factory.js:13)

opened this issue · comments

I'm tried to use this from the browser, please help me understand what is wrong. If I copy the sample code from here i get t.install is not a function so i add .default but then bundle is not connected.

editor.use(ConnectionPathPlugin.default, {
    type: ConnectionPathPlugin.DEFAULT, // DEFAULT or LINEAR transformer
    transformer: () => ([x1, y1, x2, y2]) => [[x1, y1], [x2, y2]], // optional, custom transformer
    curve: 'M0,-100A100,100,0,0,1,100,0L0,0Z', // curve identifier
    options: { vertical: false, curvature: 0.4 }, // optional
    arrow: { color: '#C0CCDA', marker: 'M-5,-10 L-5,10 L20,0 z' }
});

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.