{"_id":"@concord-consortium/rete-connection-plugin","_rev":"16-efe2e801a9834de66f4d5520f439f2b5","name":"@concord-consortium/rete-connection-plugin","dist-tags":{"latest":"0.9.0-cc.1"},"versions":{"0.9.0-cc.1":{"name":"@concord-consortium/rete-connection-plugin","version":"0.9.0-cc.1","author":{"name":"Vitaliy Stoliarov"},"license":"MIT","_id":"@concord-consortium/rete-connection-plugin@0.9.0-cc.1","maintainers":[{"name":"dlove","email":"dlove@concord.org"},{"name":"concordconsortium","email":"softwaredev@concord.org"},{"name":"scytacki","email":"scytacki@concord.org"},{"name":"dougmartin","email":"doug@dougmart.in"},{"name":"dstrawberrygirl","email":"chart@concord.org"},{"name":"sfentress","email":"sfentress@gmail.com"},{"name":"piotrjanik","email":"janikpiotrek@gmail.com"},{"name":"knowuh","email":"knowuh@gmail.com"},{"name":"kswenson","email":"kswenson@concord.org"}],"homepage":"https://github.com/retejs/connection-plugin#readme","bugs":{"url":"https://github.com/retejs/connection-plugin/issues"},"dist":{"shasum":"77f257dc20479857aa1281280e2b21ca2d0a7b85","tarball":"https://registry.npmjs.org/@concord-consortium/rete-connection-plugin/-/rete-connection-plugin-0.9.0-cc.1.tgz","fileCount":19,"integrity":"sha512-TyoXOs2UiEPCC4ea4/DCC603daA8KuVakgmVB/GMs/eO3X1V8jKPROGR653pUvTf3VL7LrJ4oIhOmztVzih1fw==","signatures":[{"sig":"MEUCIA8vqHeZzy7Ga3FPl3zgc65BVlJrfHdbju+yGUiEkN0sAiEAps9Jb4ZFLID3KUcJfLnIQBGYIGF53zavMotMod1Xi5Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":409991,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeFplQCRA9TVsSAnZWagAAmFQP/iN6QUpr8j+auoLMbVnZ\nNYhet8bRhmB8JJu4yC7YFDCh91b5YEgna+zsIeXSlZPkNyLm2zXtVTjFWu0F\nMpttjcUwNpDthePoKKqcn3eEZtN4nifTJA58l6O4pfoGrQdBJiOQ+f7Flcyd\nkgMiJd9B9+4nECisf9zSmpDGIX1DvA4PLZBnKNC/8F6NTVew3E6Ngzi/yL4Q\noHtada8e9PV4XTg7DnLE7ODohn276dXfr11nFhHnBR4AuoFmfiNdabB0s2QA\n0sbPf/i2QagdRfzA2UIKT6Hr8LzY10FSAc27U4/iNdGVzdTGxqam0c1awHqy\nrB7zMOxBX+cj0rc6AyzDQtsvH1MJ9F9mmr08g8OWk2GEqTKEi7R25s0en9KS\nO8pijrVbYp/S6tEn4fQnRbUuzB8snglzycOCkNK8HQGeUByBWrfGOpIj0lbp\n5Aenuw0cNYaXmA6ZYqY522+qFjqlsLU7MXCBfUICQ/xRgWib++aDGsLdUCOU\n+Sz4lKsOibckqXkY80/1qSr8CGqm/nVjT/oryvONhyq03UcsgeK0eFkmsRET\nENkrs9/v/+3LjgZVZC/qfhoEXYnbV5gp1b1Xl74eJnN5GVUlKkoOUGrxG6YW\nJvg4WAcIofaHvu/yvKUNKfvFWvHIi4mq8AO8V1aQ/6psm+WchbSasGQ25+5M\n+GFG\r\n=enDe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"build/connection-plugin.common.js","types":"types/index.d.ts","module":"build/connection-plugin.esm.js","gitHead":"91f0be4de6d2855aac367959eeac8d32482ce4e4","scripts":{"lint":"tsc","build":"rete --build rete.config.js","types":"tsc src/index.ts --target es5 --declaration --outDir ./types --downlevelIteration --emitDeclarationOnly","prebuild":"npm run lint && npm run types","build:dev":"rete --build rete.config.js --watch","prepublishOnly":"npm run build"},"_npmUser":{"name":"kswenson","email":"kswenson@concord.org"},"repository":{"url":"git+https://github.com/retejs/connection-plugin.git","type":"git"},"_npmVersion":"6.13.4","description":"Rete connection plugin ==== #### Rete.js plugin","directories":{},"_nodeVersion":"12.13.0","_hasShrinkwrap":false,"devDependencies":{"ts-node":"^8.0.2","rete-cli":"^0.6.0","typescript":"^3.3.3333","rollup-plugin-sass":"^1.2.2","@babel/preset-typescript":"^7.3.3","@concord-consortium/rete":"^1.4.2-cc.1"},"_npmOperationalInternal":{"tmp":"tmp/rete-connection-plugin_0.9.0-cc.1_1578539343569_0.30382646729073404","host":"s3://npm-registry-packages"}}},"time":{"created":"2020-01-09T03:09:03.433Z","modified":"2025-12-03T22:25:29.491Z","0.9.0-cc.1":"2020-01-09T03:09:03.758Z"},"bugs":{"url":"https://github.com/retejs/connection-plugin/issues"},"author":{"name":"Vitaliy Stoliarov"},"license":"MIT","homepage":"https://github.com/retejs/connection-plugin#readme","repository":{"url":"git+https://github.com/retejs/connection-plugin.git","type":"git"},"description":"Rete connection plugin ==== #### Rete.js plugin","maintainers":[{"email":"softwaredev@concord.org","name":"concordconsortium"},{"email":"scytacki@concord.org","name":"scytacki"},{"email":"doug@zoopdoop.com","name":"dougmartin"},{"email":"fristoe@gmail.com","name":"tealefristoe"},{"email":"kswenson@concord.org","name":"kswenson"},{"email":"emcelroy@concord.org","name":"emcelroy"}],"readme":"Rete connection plugin\n====\n#### Rete.js plugin\n\nInstall\n---\n```js\nimport ConnectionPlugin from 'rete-connection-plugin';\n\neditor.use(ConnectionPlugin);\n```\n\nEvents\n---\n\n```js\neditor.on('connectionpath', data => {\n    const {\n        points // array of numbers, e.g. [x1, y1, x2, y2]\n        connection, // Rete.Connection instance\n        d // string, d attribute of <path>\n    } = data;\n\n    data.d = `M ${x1} ${y1} ${x2} ${y2}`; // you can override the path curve\n});\n```\n\n```js\neditor.on('connectiondrop', io /* Input or Output */ => {\n    // triggered when the user drops picked connection\n});\n```\n\n```js\neditor.on('connectionpick', io /* Input or Output */ => {\n    // triggered when the user tries to pick a connection\n    // you can prevent it\n    return false;\n});\n\neditor.trigger('resetconnection'); // reset pseudo connection\n```","readmeFilename":"README.md"}