How to use the jsplumb.importDefaults function in jsplumb

To help you get started, we’ve selected a few jsplumb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Agontuk / schema-designer / src / components / DrawRelationLine.js View on Github external
componentDidMount() {
        jsPlumb.importDefaults({
            Connector: ['Flowchart', { cornerRadius: 5 }],
            Anchor: ['Continuous', { faces: ['left', 'right'] }],
            ConnectionsDetachable: false,
            Container: document.body
        });

        // Needed for initial render from localStorage
        this.drawRelation();
    }
github GraphWalker / graphwalker-project / graphwalker-studio / src / main / webapp / scripts / tags / js / Studio.js View on Github external
jsp.ready(function () {

                jsp.importDefaults({
                    Endpoint: ['Dot', {radius: 2}],
                    Anchor: 'Continuous',
                    Connector: [
                        'StateMachine', {
                            curviness: 0,
                            proximityLimit: 260
                        }],
                    HoverPaintStyle: {strokeStyle: '#21cfdf', lineWidth: 1},
                    PaintStyle: {strokeStyle: '#325262', lineWidth: 1, dashstyle: "4 2"},
                    ConnectionOverlays: [
                        ['Arrow', {
                            location: 1,
                            id: 'arrow',
                            length: 12,
                            foldback: 0.1
                        }],