{"_id":"@blocksuite/connector","_rev":"154-cc0b2b5e8d5645a9d8e650d378373fdb","name":"@blocksuite/connector","dist-tags":{"latest":"0.6.0","nightly":"0.0.0-20230629103121-76e6587d-nightly"},"versions":{"0.5.0-alpha.2":{"name":"@blocksuite/connector","version":"0.5.0-alpha.2","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.5.0-alpha.2","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"3d6dcda17ad6b9a91bb11a7ebfa0114ab78edc04","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.5.0-alpha.2.tgz","fileCount":106,"integrity":"sha512-GWXY/ADaSKDKllVpFBpJ8mlnrZV1hFdFbbRCW3hrrbyUdtpgTsqlaFJEfKA+t1hRB4TOywxc4jQLI6aNTPIuKA==","signatures":[{"sig":"MEUCIGRZT1GKMAlkUcqOZQb19WhMTlSAY07MOH/AQ/KakjSRAiEA5kGAuQj9EHszGEwf12Ds7tzbOd+P6WnkV8efXuZqUPE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184395,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLjSVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmph2Q//aZk4cMf6RvPzq01Z8Xz5/Ou1uzj8iEWCXI7+hOOBbeWs9quP\r\nx/kseEqTFib/s1po2Md8GS6gc91o7GM64DxoC/CVChdwCrxCo9eQU0cwAwld\r\nvO3HAcdK1qJ3YaTgpLqFysBsDuCZ1LBT0jLh01rDcYnQbKyT5V6qsljqWKC6\r\npJVP8gvKfnwQSn0CpiWTUw6iHhToDvW2ZcplRBNJxvEVEIe1L0kG9RQz4q9A\r\nNvbZNgVmNc1Xsw/RHdQMiB+mA9WyxYRKcxwaqnR4OtCWO5OqfTAkSWAqCe2R\r\nqgKiuDhW9A+/1lgs+jzRE9TYuMXjR7EIdbhGQI1e3yYFkTvLYCtz2HRxxS19\r\nYmnfn5OjWDhDt37DR7Gc4i+hZOcRmVyGt+uR9n2Su938GU1fcIFbna3a/Ipn\r\nckqIwyLsUKlySIuY0HqbR1sGLh54iFDFbKVK3YiGhVyrZ3yQkT/9wHPsT7Gp\r\nAb/XVBtzpiV+0nPJSF+AGRoDQl5O9fqiRvGOyEpnI9DuFAsJc/oBcUHwrTPZ\r\nkBZBTYGS/UewaPWbVm+QZNMfw8zPR47+RUBMbEGK3Z7b8fKua2z5G/kHFeGb\r\nUwDIvjQ94jXFr8iQnAkluu1TdJwzBrSKNHKFfX3dqmBZtFGUPUcxQLbSyWKa\r\n+SoWKU3WhCwmDTqfNWBuzFrOya0dFtdJ5XE=\r\n=y1t1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.5.0-alpha.2.tgz","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/1c902f8c99191a693fbd201d52dc762c/blocksuite-connector-0.5.0-alpha.2.tgz","_integrity":"sha512-GWXY/ADaSKDKllVpFBpJ8mlnrZV1hFdFbbRCW3hrrbyUdtpgTsqlaFJEfKA+t1hRB4TOywxc4jQLI6aNTPIuKA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.5.0-alpha.2_1680749717011_0.17127554417588176","host":"s3://npm-registry-packages"}},"0.0.0-20230406032111-01cf598b-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230406032111-01cf598b-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230406032111-01cf598b-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"1014c0ebc4352ed96e57526b3a7fe12e7e6365f4","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230406032111-01cf598b-nightly.tgz","fileCount":106,"integrity":"sha512-1gAIBXwzlfwxl4SqexMygZMTpmwO0wXmVNGN6+v1ujRIrBC9YWISmRCQEeZcpZz0LlYJSwbIv+uRklDvp0LYlw==","signatures":[{"sig":"MEUCIEHoO36HdnXIf7JnNGRWUmj/PJTCO+47+6+ijy8/aEHkAiEAiHiDgIv2O99kCke4ApiK43czmYia7K57XjfwbEN7sbA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184419,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLkQHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoEcxAAiV5FNzcoOaMDd3VVb+8RBGc23NF661Zn2wQP8NQdiHKyBrCb\r\n7wOMRD3+grYNPasnTHZrXNMVYb9+adDRrO5qPjlFO0bIIAU0eFgqa/eyFpp7\r\ne/dbhTgQRCQ2IVF6SIhTumBjjmf++OgIwRN51jW2PUipLh4iynS+8olh/rDd\r\n1wlGV+HmDii3pzmHd/RV/mkLAKlIpTcLDCMi02xea2Q7op5D4h3T/Glz3MY8\r\nAecTIsd+X+FsW1YHvotcjKu+BThDUwCAtYVyQGP9MigIYua65o0TWJgcsz3M\r\naHHnUzTXEWsUycTLOVO1t4ix3W9bXDVxUQ4W1hEyHXXPxY4JACrGiGyWBCKK\r\nLzbQocmhBjGuO4HGjfUMNkaDyhiygv5QrMbBXX02+wQNXcTanDg490DnKTCv\r\nflI91TS6Hx8es6QDUb/awqli8vpAqhZ7/aGwqKDtHsSyY259lgIRbWoyp3rd\r\ntQqth7OgwncECi6x8Q/fJEh7E9jUQDwRMPufTqttrm8SfNxivSeesDV8icHl\r\ny21YOwHOEi0NjidNNc+zEeIyZVezjhJyv5Uv79hA8PXZPJ9x8zjuug1y4eri\r\nNKNyb3syvICG0BAf8zU6gT/AJ8Gw4fSwNgPThkddICINdNc9+MyysrJdEwb3\r\n4N6X36JhJhdQryqca89dwCWhIg/gMc63mTA=\r\n=Pgcs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230406032111-01cf598b-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/d07456b0289a3b096ff14516aaa7f59a/blocksuite-connector-0.0.0-20230406032111-01cf598b-nightly.tgz","_integrity":"sha512-1gAIBXwzlfwxl4SqexMygZMTpmwO0wXmVNGN6+v1ujRIrBC9YWISmRCQEeZcpZz0LlYJSwbIv+uRklDvp0LYlw==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230406032111-01cf598b-nightly_1680753671426_0.94386817026982","host":"s3://npm-registry-packages"}},"0.0.0-20230406182220-0e8dac41-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230406182220-0e8dac41-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230406182220-0e8dac41-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"b6b21949b091ae1436bed75b75bec60af4bb06b2","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230406182220-0e8dac41-nightly.tgz","fileCount":106,"integrity":"sha512-DqZ/NarCZf6TtThy+iA+HKjEyzgCNCieL1+vnhqDl9vjWy2vAvi2wXoCPvhgG9b1/7dNXkNhHyyYophP6btjbA==","signatures":[{"sig":"MEUCIC4XsBjS5LKQgp8cIcyz/bEfLvE25ttULyNKA4U5e1acAiEAptNSd1GgPpjgf9F/IUR/IYpjzJ6HsahmD/R0dZhvhpA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184419,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkL2JQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoU4A//TIELUj5FJEkJoIzrP5xbpJreUVBhpQ00vz6rYrI6Nb5PW0Hb\r\ngztB4+3iJudJjwznv+oEOtHErU/0VhaEcslaY9yz9jwXXzss+Ywix04Mm/tM\r\nGJBbe1FLr7PE+g++1OSPU51Zv/SYmoCLb5RobZSnTAqGdtU6fOo7PKN6Dfgy\r\n9E7qle6ZH1RP9ZqmL+6spblWSRA1JgFzu9+v0TdcSC49qFSL6kghqVMQ2zTD\r\n+s/MbeXzRivPFCO0qQJWJ4LLWa7KQ5ZLqQlU8mrfPe90KBbn0+GtGCJqnhWh\r\nFP8/j/impKEw5pJM0lV51ERxZH0PYiGOEijECD7XdaWY6Vpfi/3GRxu7unPH\r\nd7/Vf0SZC9xcEPbQo9lFVElB0XB3rR+LCk1/OaceyOpTNJXUSo9RutHcmFzZ\r\nAnZWuI/eW0CbgpGvwdjvztHr1rttOmcxYD05kYC7vb0cM3hl7GL9w8A3qd1M\r\nrvG7MdfPqiszIbBQ/DQBoL7r009260fq5hFp24h12cBDy/UCCkbIefCNosuQ\r\nIKfGn1lfDv1WWEoJ0DD+w8hNW+swfU8yNfsfNOf7YU1Cl4laQ7l2slBBJi7f\r\nRLVdzpPV13EDmRQG93nzHLJBDQMIK4rYmUcM05d0kYI5Jhx5HqOs4Q1lIPuu\r\ngJTBdFEYmBMTbziRkBG7IRFmisiWLM/tk3M=\r\n=e3ZQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230406182220-0e8dac41-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/d6522bb22c7f1911ee76954aa98f2686/blocksuite-connector-0.0.0-20230406182220-0e8dac41-nightly.tgz","_integrity":"sha512-DqZ/NarCZf6TtThy+iA+HKjEyzgCNCieL1+vnhqDl9vjWy2vAvi2wXoCPvhgG9b1/7dNXkNhHyyYophP6btjbA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230406182220-0e8dac41-nightly_1680826960652_0.7250056927092341","host":"s3://npm-registry-packages"}},"0.0.0-20230407050457-3cd70505-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230407050457-3cd70505-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230407050457-3cd70505-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"dfff631cb7ff5db508a5b492a922c305cd04845c","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230407050457-3cd70505-nightly.tgz","fileCount":106,"integrity":"sha512-WZyaXklC2RSdYncG7tb0nB3By9vROQicTg98FsHfwTZlVcYx7pJPDZBt5ATfJn0iCssbjNgrW6F7s5KwCKLzEg==","signatures":[{"sig":"MEQCIEVTYOsJIf0DFZAl0kDtyUiPviu0RxQagvRdofakiOW7AiBEiHSFld93frvZHRF6QfUewR1M5QP7hNpKyP8mahw3Uw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkL8FsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmromw/+Pm9P9OGIFxfU7KEVC2omnvQSb/wMq5GsyXdUD1MaDid2NDqx\r\nA8Mi2h5YXFMEOdy/kzMttq4sIsAyXSgv0/1yQ2NEFrZMRyBXxsx0O74L2X1z\r\nfHpUhW34+SzrXO+hrzANWiOiyF3dgCMp2WawC6NJnH62ksBjUw7rJPQ0I8fz\r\nob31/FbJdqigVGwO69GEHFNLHMYwOX2aZQTC9/GOg/b6F7HfhXHxQV7/xbMx\r\ncBHueHuQLRy9jZwYDe4lxy4ot+VAvN8bMS4oSMNqLynO84KChTV67UfJC6Y6\r\nsbWOyLIts64nGyaUK6tn7H0kNDuEcr3LEXxP1lKLrVnn0p4u/GqjEZqavqnv\r\nBSaiqjtalgH0k+QABvjsn7qd+5dp0Ey9hvvGsBFKcoqBxRGMbrbBZgTgyFUO\r\ncJbFoCvoAWJgg/DLo1fFXxJhGsIQ4lvqImNVunGgxtFON4UtoTxdbw14Fr/5\r\n/Fs8bPKGymA+0oKNwWh+Mg8fkfDgExOTrACH+Ju6CZc14kIRX42OtKdl7Kn9\r\nnw+9aBBSN19d4m+7HL8uOXLT0E2yu+3s0oSMHRWRRJ/IQIgKxYNzw3tIra4/\r\nfyav66UCH8nfKMG+LuwVjR2eKwfQ3Zaeix0dpWOI6tgFmVd4rYISRDM55qao\r\n4kmZDnxLoWEuG2A1LlanvWNIPQR5m65EVuA=\r\n=VcLm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230407050457-3cd70505-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/88bce2b2dd395cb5751e5006990cd54e/blocksuite-connector-0.0.0-20230407050457-3cd70505-nightly.tgz","_integrity":"sha512-WZyaXklC2RSdYncG7tb0nB3By9vROQicTg98FsHfwTZlVcYx7pJPDZBt5ATfJn0iCssbjNgrW6F7s5KwCKLzEg==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230407050457-3cd70505-nightly_1680851307858_0.49743859424582215","host":"s3://npm-registry-packages"}},"0.0.0-20230407072653-ba36ca29-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230407072653-ba36ca29-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230407072653-ba36ca29-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"611f1802d56e159de044ac4802dd87b70eba825b","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230407072653-ba36ca29-nightly.tgz","fileCount":106,"integrity":"sha512-vRQvHtiSVvPqd6s3Dv41MJ91a80kNNNhn5chMJJRHQIpqDQw2cW5phNREaOAeG1/Jn85RL0coB6GPnOm7Ks7IQ==","signatures":[{"sig":"MEQCIEjZ+hqRS3cULhTi/lGacvR0bDzw4RahJZ5dXEFOa6lSAiAJuromCzTAVFm3qbHmRgFiUsASLCHY3tOJg9G8dPIXNg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkL8aIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqoow//ZrpRI+uRZehn9XQGuuSzbNnSVqiNPlJU1l77hcf3+hg4H2GU\r\nTm8Tiu/YKvRsBG6uwC93CicocYHCfzkWq7mVvIAFJTXesU9SPLRViuSovgEE\r\nr3AAhZ38W70JY8FVXlzvwB29lGbSdvyGDVsIvTR24WbLJxEr5ZOZhALpUS9p\r\nXrOHb3tJDVfYZtxHMssIc7jJ0z7FtXeX75Lf6aArT+LR6uJ7B0oIL+WI2BDu\r\nzntuiTyB9XqSZUyudgbGRYHSojeM1eqBp+l194tMsgU9nkBoKL/Kt97YHqvN\r\nmNqolXT9bntOf4B+Lpn98Km4nSAnG5T00UM3r4Z+DX6TxgPigP+6O0DIBq71\r\ns3ZYGD+jjpWNIgSPmCbk55HHiDbZdkeQhrL3W6DjUzojFZCEOTUlgF8pRf3j\r\n6AtVIfBwfK/eNJsuAM6stCR1GY+2C4lNafLEm0utWFriZPCXwoJNkCpr/rpt\r\ngzM/PId+jRIVPQwn3NOngdkQwgC0DKRTW0GcSxK2aKiGaDwkMAZh2QQjU0TL\r\ntXbkM5odtxAOkbxvoUurBSAoj2AdSmckrGO08Ck7YzWdhVsMX76o0Db9Z5QK\r\nyF7jtfkxmNhyLuFfr9dHoLJ3XtwPySHxKVUt4NKZ4rG3g1kpRVQZr6QMCS0Z\r\nWNQIH6JJJifAaZ3q0sWtMnbA7DoKroEGsjY=\r\n=eIof\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230407072653-ba36ca29-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/01145e9e4c67165aabd47bc52fa321eb/blocksuite-connector-0.0.0-20230407072653-ba36ca29-nightly.tgz","_integrity":"sha512-vRQvHtiSVvPqd6s3Dv41MJ91a80kNNNhn5chMJJRHQIpqDQw2cW5phNREaOAeG1/Jn85RL0coB6GPnOm7Ks7IQ==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230407072653-ba36ca29-nightly_1680852616279_0.2415376695055924","host":"s3://npm-registry-packages"}},"0.0.0-20230407131929-c9a6bb18-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230407131929-c9a6bb18-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230407131929-c9a6bb18-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"007e6795b01b408e4ceda1e0c80fa897de2046c7","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230407131929-c9a6bb18-nightly.tgz","fileCount":106,"integrity":"sha512-Llfv419nRhOPWvYj4NE9NF7hlpqZCdkfyDTiVbfQ9O1q6ffzR8M4tHEzSWaJ9ndZlA60hWMXcPaDpj5xf1JzOw==","signatures":[{"sig":"MEUCIBoNpmEfRduWGlwyX1NjaO5HMjSA1hnW1/2BW8LWzzp5AiEAxarhK18OY+6imnPXHTtC9J8Phkx0nHi9g3m78DKqZDQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMLPkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmodJg/+NY7PWNGbFu+vW7duXz0UgjuLci5zx0BLZL6yYkK443/dqAcq\r\n+sIgh0Z8WluC8ySzawTNNjAOq08TK553ey36gcCvyqlWebHsJR4sRli+C/Yg\r\ngVFrJcxQi9psWduHyZmi9w6ZX+bQh6/p9d/Zocrdi24bIS1REObmMpXBx4Lq\r\nUcHCDqALYWtOwH+aDq/oIOXQ2nZxgmM6gXUzElm1btKWtyBSi/Zi9e2deVtt\r\nKFzmL6UJfrEnNd//pOquOv4KkVtyw0Dn0XJcaQorjh9ptCB8/03grIuDcELX\r\nOVlAG4cNBBdzE3it00Rkou7AgZbG2JbetXch/MYKu7Tf4jEDCqa3YFRJcC8V\r\nUPTAkZIP3KvP4MKWfYEiXVwyTCA0lHtphYGVZjir7/P1hWRoGtXk+8oUwb8s\r\nSMkpYTmGvSj2Jk4cd++n+MT5Jla5iy6OMX+Foqe6q74/QcJbZWeiix5DfC/5\r\noVTROOOnZV9MMUtXELhR+JkIW6GmmfKQETu6hlO96VuOLtapp+v08NwrerUz\r\n6llTE9nkp4iXEpnWxsFZAimPWmcLoFMVN6hRb5/8IAd3bSDxo3/a46+Pm8nR\r\nAA9RP9E/NfbmsvkVL4mpe9z06xOWstFY/g1mv4GMuqyW6lH+vALhvvFr+K9u\r\n+FnYQKYya/r3bNchG30krLZOafhowTWzJ20=\r\n=CAxs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230407131929-c9a6bb18-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/051f3ac00115dae3a9d798d7289cffb1/blocksuite-connector-0.0.0-20230407131929-c9a6bb18-nightly.tgz","_integrity":"sha512-Llfv419nRhOPWvYj4NE9NF7hlpqZCdkfyDTiVbfQ9O1q6ffzR8M4tHEzSWaJ9ndZlA60hWMXcPaDpj5xf1JzOw==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230407131929-c9a6bb18-nightly_1680913380596_0.5820327785242854","host":"s3://npm-registry-packages"}},"0.0.0-20230408172438-a2855a6e-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230408172438-a2855a6e-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230408172438-a2855a6e-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"12f38cbc86eb95ac22d343e0f6153c287dface5e","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230408172438-a2855a6e-nightly.tgz","fileCount":106,"integrity":"sha512-E2bQ983RlWoFHfjtnuovk6vQPCdNOyqQ6UeJm/z5PVBqlJf+5fi6WOUzW+WFN5euLRfVyr6j68bjUXDrOYjBkA==","signatures":[{"sig":"MEYCIQCGJPmHsDDLQyCshXm3yL+p9usjtpzIZDLU9PX4kwOuwQIhAN3pk7VUAor1R4MIR/dX6G0/EXvBhfDtNIv210SereF3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkMgYNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoNgQ//fRA6mulwms0ee0ZD5d/uf4offnHYPWBJHLTGDF22T+V5tF/r\r\noESrPpHR+oZnsDbmCo5Te2YzYVXz82bECw0UrxKXEcxbMbwg1W37x4n0w0mZ\r\nfKXh+EvSxrFbJ3cDERCt7YiV8EMueGuEQ9JlyyvysbYqG7QDuTeejEq9e5Az\r\nV4w3i6ZLhJooTf0AsvjHAgm0DjFV1NEPt6GNP23d0X9N5c/JJZF77WwIcLMH\r\nqHbPvw85XW/m6hYA5LVqPZTEDY/CvS5eoagHyJ6WjTZ/XIikUz3BwLj+zikk\r\n4Gr7V4sSCVP0qpupa0kG+QKRfoiv3WFW7vyWWo0Z8ZH4lZVYYqqMDC5n3YKq\r\njj7oZOl1yAZCW+I8hTgGV61DleXkMvse1CoMkgU0kVpVzEK8NUjH0OMRbxe9\r\nthAZaInJLBFL3NlQ10jStdF+to3vtP9XmFXbJIPBDnOgjxOAnGur5PYR6mrp\r\nOsm7LXSdRF0rnLQhbpnHWuMcA3qSrADidY7LRAWMeD9znaaOgA4kY7iXGPrS\r\na4LnCL9qh2V8weeeW8Mse6Cz8ufDE9J+pcKwuX2YSAzeCqUoUxQc4iMtPUjx\r\ncSr4J2gfflQTG6bZwX1PI9Q6CSYoSsyfG+VYCOTvVBhrc4l/2D181GQyRot/\r\nKAEFwjh9i9HiZ1OpNP1CUv5uLC2xKL9vRrI=\r\n=80Jp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230408172438-a2855a6e-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/82913d8188ff4bfa67d816a72aec3990/blocksuite-connector-0.0.0-20230408172438-a2855a6e-nightly.tgz","_integrity":"sha512-E2bQ983RlWoFHfjtnuovk6vQPCdNOyqQ6UeJm/z5PVBqlJf+5fi6WOUzW+WFN5euLRfVyr6j68bjUXDrOYjBkA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230408172438-a2855a6e-nightly_1680999948883_0.38749499928362585","host":"s3://npm-registry-packages"}},"0.0.0-20230409084303-221991d4-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230409084303-221991d4-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230409084303-221991d4-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"c1ab33f2492fb72b2c605757cc94aa99fee53705","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230409084303-221991d4-nightly.tgz","fileCount":106,"integrity":"sha512-7nSTzy0q3UiDbxLvRrCf5T7sa91/eNvptLq9x8mb4FPFKMLIUgs5NqKn1QHNTuDmY7tHueSZVcL51Tl2yJ/6eg==","signatures":[{"sig":"MEYCIQDz5aew4UqrF0SRfGLfW64rb1uP3GdeiliFzZ6APww75gIhAP7k85XMNXxyzvM5n8EWtJlYM6a1/WiN5Sye2yg61Vxu","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkM1d3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTxhAAj1rnZ/ZswC0doqxf4ghfJyCln1Wx4O0CCV6OX1+DUQy13RB+\r\n0PriapAOSKjNRHNGz+tDC3/+WJtB9DCxx/XLfNHdtWesqc7Au0PhYsMz4Wy5\r\nvOIYsAL2V8/vM5k3aNZ1P//7RHenoPZtFAeag6lF5h/GjCT3deKWOi/Izn4q\r\n6DRQ/ldMoxFfUnJpOQ71MoT9RCd8IV063aIZUF48pdd2bOMH0YJAFAkrX6p9\r\nPaB0Zft/PUs4gxMu87UHRfOkjnXRt0LAaIITmZ1jff/XBCCoKizK8oaVDOVF\r\nPhZeTV6NSe/7dDp/PixutRPEVadFeDVy/QH0dfTkq0YOJ/1OjBHoCMv0Nqvi\r\nlWnhVF2cvV0P5yRrAoFDm1BXORr1z4GTR8+liSjxpWlI3cmxiwxwMiHEXIvc\r\noxKAHU/iT4Fu7yOf2Wz+nrzss2hBe6JOixX+DM13h7zJyyfqe9McjTRyrQUe\r\njWIDcxJsAQBihhzGjuIUMuNkhGxtajuyY+SiPjg6wWHM9esl8fYt2kev3NtZ\r\npPVP0SNhMvykpBoI5q5gAWPlnoi5gn0wv+frKhDq62hAGhKrOJPJPh3MBn1r\r\ntWRVFacoaZnZU7L/foGLdwB/26QLB34nSGpGpPbFCoIeFYa9ygK4feQYAmWx\r\nzLfj6jS8jrFVfhnFnOzitDo/dgFeKbbIx2w=\r\n=s9yp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230409084303-221991d4-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/a83f99ec8479634ead3238ed10233483/blocksuite-connector-0.0.0-20230409084303-221991d4-nightly.tgz","_integrity":"sha512-7nSTzy0q3UiDbxLvRrCf5T7sa91/eNvptLq9x8mb4FPFKMLIUgs5NqKn1QHNTuDmY7tHueSZVcL51Tl2yJ/6eg==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230409084303-221991d4-nightly_1681086327379_0.33277551814488504","host":"s3://npm-registry-packages"}},"0.0.0-20230410103618-089e5b37-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230410103618-089e5b37-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230410103618-089e5b37-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"779d2b3dab97da939da237bc9c4ecea33cd45ae6","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230410103618-089e5b37-nightly.tgz","fileCount":106,"integrity":"sha512-IegTnQMfNeNS6jVml5oQZASCMSMN5H+UE8+z4fS61TVtFAqQ5iwP2J1+vq4V3GjEdJuvS7Ngdd9pJJK9aKsMpg==","signatures":[{"sig":"MEUCIQCfZpEScg14ZhlJnQrfkN73KzntWy2BYsgyPmlMktB4QAIgPpuGYVctxi6tSSCFW5e6ftmonHZZeIbvga4UXI+zO+E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNKjMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpC0Q/8Ci1mz88vozp0wgAJGHznLKy4wSRsjB5LjcjG7ojUHZqmG8xt\r\nNTuolXwIBJfXEIUcdfplwqCECTd+1JBNp324BaERsyHenUL2IEKsjrXM1/w1\r\nO8HxvACArlmhWyrHvaPbeildsNagOIoDosZgKEfafmAGFefZngfJsix7A8lw\r\nlIRimFNFraf0FhY5wVgskk1lMmrImIkUlnkBV+dZGE3/n0Hv+lF5lCzazfVM\r\nBnGcU+SPGa+iKS2GlFaCw2/mCnxGnqHhQEnTlbcq5YFYGGXPAy4YRMLNrPNJ\r\nef8BpoJMaoAhVVMJkSJ8Rsp6kjaP3uTu1bva378AhBkBJD3rRwPHURElFHC4\r\nOqcalfESoCX2LH9wF9/V5qsGYNa9YJWx5qyvqESwBLZS+oPH9oNbplFV4p1g\r\n9sbNj+Qw325YsZ3JKPefUXxVqElI8rBGre+6a7EJJVVLBp5V+BfaqKwvANdH\r\nVxdasUloi+sBCEMeP/4GVMbInKKyn+cepgnqlYY55hbxPXzzqUPLXtAD2b+i\r\nHemlutHt0bGt3DFbH/pn5C/uJbtkC2GqRl9JB62eWVE3LWYaLJwx+CR3NCQz\r\n5cYBKNoUsOwV8IojL8XASE9WndroSQ1Qm7Fmrymw23Hm9B+jhIvZ7Lv5bfpx\r\n4AjTVwZfDsSRkwKu0ZMIOaWroDCrrLXe4/4=\r\n=1U3J\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230410103618-089e5b37-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/0a258fb0ad112aaf137a15bae58c80b3/blocksuite-connector-0.0.0-20230410103618-089e5b37-nightly.tgz","_integrity":"sha512-IegTnQMfNeNS6jVml5oQZASCMSMN5H+UE8+z4fS61TVtFAqQ5iwP2J1+vq4V3GjEdJuvS7Ngdd9pJJK9aKsMpg==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230410103618-089e5b37-nightly_1681172683844_0.5232246405652583","host":"s3://npm-registry-packages"}},"0.5.0-alpha.3":{"name":"@blocksuite/connector","version":"0.5.0-alpha.3","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.5.0-alpha.3","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"f7bfb423a783e7d949c5eec51baf27dc8e168d03","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.5.0-alpha.3.tgz","fileCount":106,"integrity":"sha512-2hOEvzv4MRWIdZ2gDgymKpSAnZfeGPyWuoY8B8wQvdxxANEjydcenx/es0gi9vwj87xGUpek817KZCi/U/AG1g==","signatures":[{"sig":"MEQCIDBA+omsR+DMoDvnaU/rblcn7Vev3hlPcoRkNheyNPu3AiBffvzElNALUkmaBkpbMnrFf9qqKiw0L2Ay7oWJkRY0ZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNOfCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcBw/8C3Df3YFOJoOQ3L5GI8L6MGzpejwlIZkIVIgDf+8NfV++d0YS\r\n5DkjL7nhshlpF6Zketqs+z4ZibVEpQ6d3FsekR8cs9F0lyPNou1yB08PT+FC\r\nxZKrgcw997D5XNxJpwKxIYAChjaIW7mVXn2KoPUp4/D6NqeMq4+2z8XcUF1I\r\nZ9sGgZJqBYZqlhdB52YLjF+yFuHhSqEraNDWczKRXYfXaL6jtQ6C5bOY+W91\r\nhEzn5VNG1s4PwRSe9UYO/7EYMJdhp9rZ5u2k7ELeAncFUbgYB+9a0EWlquXc\r\ntVQhOFkNdkUjMDRy0oLAaohvScRV8QRkOb5AfSZr0mdaPC5b0T73LlUNbWXW\r\n9P+9Ly87zhscJGGXMIgmCJkX9NzINiElA2jqA/Xmm0/Ppu4focIXnaPDRPqN\r\nJZlk6ym2VYqsQH32gaXjkkaY/MjgbEx4piEHE2hCw2ndm/xhqiD814lMC3xO\r\nS3eyMOPBJ9uQJnkNIM5Nj1sUr9IRVRnP3x6sARmxJZHDa4KtCuiDUMxr4kz3\r\n7+ANe2NJP8eKpxSJNEHTw2te+gXK2g4mJncDsunEuH2OmAhcEjNTi6sfK6bT\r\n9ZVcVvfzV+0+r6e4FsKcYnHUF2NuRtX5TFhSQwzKR/hIWtBceq+FYH48ueCS\r\nA8h1xeBHxhyMzMIPUFI95LXtQ+v162BWFTY=\r\n=OwWg\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.5.0-alpha.3.tgz","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/36b43f8787352fe5fd3d762dde0b8213/blocksuite-connector-0.5.0-alpha.3.tgz","_integrity":"sha512-2hOEvzv4MRWIdZ2gDgymKpSAnZfeGPyWuoY8B8wQvdxxANEjydcenx/es0gi9vwj87xGUpek817KZCi/U/AG1g==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.5.0-alpha.3_1681188802145_0.31743969644762027","host":"s3://npm-registry-packages"}},"0.0.0-20230411141436-ec6b051d-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230411141436-ec6b051d-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230411141436-ec6b051d-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"021311dc740eb7e23a7b679ae7d233ee412f6b3d","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230411141436-ec6b051d-nightly.tgz","fileCount":106,"integrity":"sha512-VHd8YZdY6K8OnqBgjziKFG7gHM8nxUZLsdECNPn3G6jueqomlH8FtrRsO42p6ZWT05KgF9yNWjELR+WZRvlZlQ==","signatures":[{"sig":"MEQCIDcJVY2D7I3dnCFlh7VzURPpUNgJBqqUHexceVAIp9NsAiAZOqlXfUQQGFKUjPAjMFc/rReG+TEIoPYT4UD+CJsl7w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNWxCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHvg/9GNJ9xdp+ulg49NGB2f7bWxCUnC/Zb//YH5ykpbzgeeyx9QNg\r\nyCxTXQlrooKU0qqyEFu23o18sebqQaAjjJAUz+jU0PIIRcCDIYMKsT190D6i\r\nohNvnCbqEr3BLB76B3ijypXsXyE1Xr+yCak6FiXzQM4h9PjvyE2cbCG/kvnt\r\nYD14RBOOndG25SzWt058+zGA2NO+QNfCf8QVwWEyDwX0bbD5qdz+k3JPAUvD\r\nsGiv8tcevTmkvvDWnMpUbdqnYveziD7FvwppI9S8FcsbCpWaH2FMFkIwyCuK\r\n3inByvouGnr6yGOhJSeY3AmZafi9yKt4vthNxyeRMD97qijDiqnhz3nnmeXr\r\nJ4fArrJI/DnJangPH3jZhsrS5wbrP8lqPK629l2x+cUux9dK1XV5dhSTApHt\r\nacUV4hu6861GlZkQAEZtIPRFX3MIVCJG2yQL4f8fdvJbNMvyD/IB+vrbPbBs\r\nNgQ52ERCLr6sywH/e9bqppaYrsii5uV9EuGLF/yol5Uhjvf8JGByd7ULD7t/\r\nw6NDlXBIFO2jWqZjZhW6UlQlgOJuaoKYTFrmPlsKPXZAhVPVfn2CCLm7ekMB\r\n0KOGZ2oTLU0l61ge1Pp4wOYGPq7dfjb6CoKiXB1WffseDMvQ8Zl4TzExQvTg\r\nq9mUkjNsfklVvaLXsmHGO0+qKrOocEuOWGc=\r\n=ISSQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230411141436-ec6b051d-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/fd27c0253029310a07a2a6c3f32c2dd7/blocksuite-connector-0.0.0-20230411141436-ec6b051d-nightly.tgz","_integrity":"sha512-VHd8YZdY6K8OnqBgjziKFG7gHM8nxUZLsdECNPn3G6jueqomlH8FtrRsO42p6ZWT05KgF9yNWjELR+WZRvlZlQ==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230411141436-ec6b051d-nightly_1681222722683_0.12214907474551828","host":"s3://npm-registry-packages"}},"0.0.0-20230411151359-929de326-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230411151359-929de326-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230411151359-929de326-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"32b0f1fdbb03a5aeee0242af7570cb7c7611bc11","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230411151359-929de326-nightly.tgz","fileCount":106,"integrity":"sha512-dMtJXNgCPevMPKVCn9kpt8XM6OMFR/gGFDadnUCuI3hsaKOxNlItTulaGOMdeSfCaatxMBcOkd3gVzuSbu2I3w==","signatures":[{"sig":"MEUCIFqS2AnYbcGnccqcBPagDnLHm9JgOazZMDdIWqo/nQTDAiEAlqaKOGKyEEwjMpBN3WzpF1Ky2iuAfawzGH43cw8tZE4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNfpNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoYDw//TZPHvY9DGzvgZJeZaA1A8e8cQev2q1Z+T9trQq4ILNrtO2/u\r\nIccJx9Dqmud6Aoze4GaKULcJ/gKpq4s5W9dvmBZ0FN4pJagUFxW8fmZL8vuN\r\nBcNNYKOUzmmdvpI9RiWviy5LTsF7hVDOyCSDgjt5y0QyVcbM0cU8iGvMLRdV\r\ntE1vajkNLObu3g5FtwH0rs/c8XY5hnx97Y8ibyFPPDQR8Jh3n3KXW0t7h7cc\r\n+CkG3/avZOalLb+nu10hgnmggfo+tw1hABZNmc76nFJIlxo+0Cdr1u7MUICK\r\nt3hAieX9oHEFX+xacgm2yL859F6itvBJJcLwi/f3+cUMa4bs9eq2SvjELmTS\r\n5qylIs+GygBOsKyQzjSxCS29WdBzj1/tSpNX3HMLBDDC0B17QjTarq9G7RQy\r\nQRzsdmGWxzH20E1imKsFDYAg2+6B4SxFhYDlUlgQ5IOhE8Bum6tWKRvlgLDc\r\nwMBtNhnisgIF4ygKUYmKidcHrxjUwI11IfWV/ebUwCZkG0R1qnCJiUdRC8PY\r\n4KZrOpIqJdw2i7GvvbRJQWjilFTkKnZkPQbHlgZdiVvao71HtDFP2o4eFvyt\r\nIxmvRlJJRMGmFB+IzfCCrt5VCTSvbqrFMyCMB3spqMcLoSqdln1/f8oqv9Zq\r\nLB0iyx+VVpvaTe23Djp/ve6jrSxlurD9CzY=\r\n=UloM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230411151359-929de326-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/d39810d2e7097688b3a2abe5788cd5b1/blocksuite-connector-0.0.0-20230411151359-929de326-nightly.tgz","_integrity":"sha512-dMtJXNgCPevMPKVCn9kpt8XM6OMFR/gGFDadnUCuI3hsaKOxNlItTulaGOMdeSfCaatxMBcOkd3gVzuSbu2I3w==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230411151359-929de326-nightly_1681259084767_0.25064422507954376","host":"s3://npm-registry-packages"}},"0.0.0-20230412041719-76e5b5b9-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230412041719-76e5b5b9-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230412041719-76e5b5b9-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"92eb5b58ebaed86b29448a4a744e2b8ab6209b29","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230412041719-76e5b5b9-nightly.tgz","fileCount":106,"integrity":"sha512-AMRrdpyLfEUegd8YkVAN/0+4ruw2/lwiW34Fc28JZyJ45/AwflxDFuLRNKU/HV7LXFsfP9y0fxnCMO5hUfLlrA==","signatures":[{"sig":"MEUCIQCKiUySi6YAAVPFeoAqfvWdrez7cjZFNGuPEIslg004WAIgbbTM9AIl7esvYZy7Fagn5cOZoMcHbyRnfOk53/e7MvM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNjqOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqsfg//eWt3tK/dwUDl5t5SFYNMK87ZDTsCL1HKa2/erVpoBomKuHQY\r\nZa5rwQoMadM29ODzlZcJxWOElLnL/1svbApzU2j/RJqd/a6DSBIKjN0cfLPY\r\niOydBAxIOfQNLmkd1czSMgboZnPiscqV8QkOB35/4GgCQKPZwdU1ycUnPeFh\r\nNknw1g3e0Al4bAYzQgL8LKktUOGXaYjzSpcn/J5f7Dkk7yuaYYgvWEMhkBcI\r\nL36Fdz4k8Ks01oJR/oYxdgHpIwiEcCuOQImaL58vH8lHkYDQLRsUXBrTyhSf\r\nXpzsfTpBJDqPZVPNwurJnSzehXRH3ZuyANORFYa604OOuw7gILswP2CpW72K\r\na+QFwuqghbarp5OytnkQWO62CRD11FhHIlbya3FRWk1vtuLC9O67oRCbBk/J\r\nni5GSjIxefdnNtJ+s7/fv5h29AOSgF+27ZzH9m2PNb+oKz3xAvtmIUqqJznH\r\n1xxadQic6A5E4hRgSGFFfE1czvQPvgG9fS9sG3NVUEpxW5uiE2VxSDAGeeds\r\n3lonZUA68P2Bg4P/tJ9q/DwxFMHnyhrdRinWVLSsZiDq87RrpHt0yrNEFQDP\r\nDOF+dlbkveqByt1sXC2NNmST4zBdMyjgtFYQU2qE1QY+MjPnVlEvbxoJX4c2\r\nZmKjGDhTpI599LmnQZJZCQYmoGvBUAJU49s=\r\n=eKw8\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230412041719-76e5b5b9-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/19f960b5285eb3bde2c8a953aba9a89e/blocksuite-connector-0.0.0-20230412041719-76e5b5b9-nightly.tgz","_integrity":"sha512-AMRrdpyLfEUegd8YkVAN/0+4ruw2/lwiW34Fc28JZyJ45/AwflxDFuLRNKU/HV7LXFsfP9y0fxnCMO5hUfLlrA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230412041719-76e5b5b9-nightly_1681275534564_0.33363111131093115","host":"s3://npm-registry-packages"}},"0.0.0-20230412114309-05fc8eec-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230412114309-05fc8eec-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230412114309-05fc8eec-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"cdfec077eb7fa7d1a638926f184c203feb7c1dc8","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230412114309-05fc8eec-nightly.tgz","fileCount":106,"integrity":"sha512-qaMDlE2FHLXWzkaz7+w6ZANbcZP6WNaGPlSNGnrkpJmdV5/hucjSViObtl/+BcwAlIg1BhWiKvOFqLjLy0LzpA==","signatures":[{"sig":"MEUCIDd2eTt+L+lFBjVDRz/A1ZD2S2mSOS8izt+o5Gd7P1tdAiEAqIXQw6vmlsXPwL8OOKpRGt0HVhjrQ+eXN90nVQ5rD+U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184626,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkN0tfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqt1Q/7BXPtRS2Jeq+c/xbvRptnh5yjWYMEtH/21FXmDtYz3qnE0F5s\r\nLEtSEfd/GUAswVN6f5x2vrHEhamU4Aksdp5rjSi3C7BBUze6UJasyvV0rCA7\r\nLPiup3e/HgTALafKnUTLVSOH8jqsd2P8azol77zNkwFvqVqGW41km09yIzMc\r\no+hCszLwqyfSIi7/PnxCYOmdmPL7ea5yoifnEyHDeQN0EXcf0ON002XO49KY\r\nLnxZTEbZJ1s6WvNK2rqL8UMA26+00hVeQy/DNJDFa6MkuRTP6TJKZdXYn3ty\r\nLW2IFm/yjLIwhTYllYMR2roUrXKAkjWScNgJgo9kUKBU6y6ICwb6W/LgJRqy\r\nogVUq+fg8Z3BKLbuQFYrm5tlaTVG35vWBui0hFZIMLgvXz3B8EYvoc7dSNwC\r\nToxIMZI0qNAzerCozQW+zhifriOKjXTPEFkN77CroBdNNC17bZkz9blZObqW\r\npulz5U+rBCrgaIXAOfq/jLrR8VaqUHB1GLbQo/X2kYUXdmlBD+i1/rQ5mmg6\r\nHJIFDGW5dYvn8LVpWrCi5WVDADhnxRWJJNnjyIysWnEfXl7k4PUQe1WnTpTO\r\n9EXvNBeIastNyuiLH+/gO3VKm57064EVb3VwxCV9Q1RRhhTg+Bna620vUpPM\r\nmVyFx7YyxtpapOGUnMGYIHJQdBHsaofZazc=\r\n=UTJz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230412114309-05fc8eec-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/48dfee52ecf03ab4f9860acde1649ea3/blocksuite-connector-0.0.0-20230412114309-05fc8eec-nightly.tgz","_integrity":"sha512-qaMDlE2FHLXWzkaz7+w6ZANbcZP6WNaGPlSNGnrkpJmdV5/hucjSViObtl/+BcwAlIg1BhWiKvOFqLjLy0LzpA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230412114309-05fc8eec-nightly_1681345375464_0.6488678810457098","host":"s3://npm-registry-packages"}},"0.0.0-20230413112150-e058f87e-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230413112150-e058f87e-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230413112150-e058f87e-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"42494ab30e7d956ffc469f3907bf39e96d2a2797","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230413112150-e058f87e-nightly.tgz","fileCount":106,"integrity":"sha512-//ivcWXlnYU8s/+pquExbEVGmwHzM2Q3FFWLj8F5aAH9Ex9IBOqHIow1pzIjzxPbg+033dGnuY5ge6xPrqDNeg==","signatures":[{"sig":"MEUCIQDO6X4IboL4uPIZLZQqxPazh2aMpnLVPGReaHPItjCsAgIgQoIKecCxhr+d7vYikyvZwlNeX9/ld1hL/C5YWxmRjbE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOAZ8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovghAAiLmMScxIUg/FNBtaC3pvzYJhdACQN1vKRo6/5ipR2U9nXlqo\r\nrNb9KOuqj6i9kZkL71wVuiJ7jqgq+EBqd+qufdTVJe/BVmTokvEEFPz3Aok5\r\n7C6rvAEoFPsh7L0uvoN/itPbmsAz1GaEcHld4uESk0jC5Kq7uUAFh1OVy8eD\r\nJqCfv8CdckNEhGI6EydOS5hLQDfUG/Iebt2no4i9BxDGdabOuhK0M2IJTHBk\r\nQUVJIU18q/K/VpMCOEhcFAPkA1ZjzqvFx68lKX11SkbYobgipLQKHSKblrXa\r\nmNj77Xn7PRJSfZXVc2To9UjxEXDSJQFSL8Vn9BczZV4LTqswMBI9l3hsV8we\r\n3ex6sxWfNRAqidSgj7l+0HgvtRtyKEAViJVz1dwXCuxIcKffy/9quSVxMPNF\r\n8uvJCMk9gdIDtLYn1RS/WpiG4p1R3aa+0TmADq/yoemg1lebvD/Ixw+igl68\r\n7/EgoyEmHJNWPPW6+K/vHMCTQ9E9ir9KQ5MNMwWH9DZxf+4qS3Lj/61YRVF7\r\nv2s0AaRjPcbo/bnVFK2WSCYqPHq3vJVaYgmuF5FCnJdvuSfzCTPseV0gjSPi\r\nl4zqkkX9iJp2nlp7TtLHcPR2DZhNtJH+lSxGqxr5FDay/kVcmsH73XK1lgCn\r\nlXWBmQ26Ww84Gn9HpqSh9CF/CZlSAB90yno=\r\n=Ojoe\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230413112150-e058f87e-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/47d0cffc5e28f88e9a57902df27b5b8b/blocksuite-connector-0.0.0-20230413112150-e058f87e-nightly.tgz","_integrity":"sha512-//ivcWXlnYU8s/+pquExbEVGmwHzM2Q3FFWLj8F5aAH9Ex9IBOqHIow1pzIjzxPbg+033dGnuY5ge6xPrqDNeg==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230413112150-e058f87e-nightly_1681393276111_0.7865959660497897","host":"s3://npm-registry-packages"}},"0.0.0-20230413190748-4d32b79a-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230413190748-4d32b79a-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230413190748-4d32b79a-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"c8da1804a22cbe12b0ce4eaf4a4655a91de0ae07","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230413190748-4d32b79a-nightly.tgz","fileCount":106,"integrity":"sha512-Rx985vgKLJ5RlemG2XQPKHMjGv8O4uG/NZYLm9t4vIuTJ+xTyLE3ixN3b34BJyO4NKLpy08IpMsI1Y+ksY468A==","signatures":[{"sig":"MEUCIHwRYHDosJxS4Mm/UjQW1aRusbI+fatYBsCqLQRZvXFQAiEAnj4PFKdShPZfPndb5xziSDqnnZW3pIqak5Rde6n7now=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOJz1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpHSQ/9E67vS5heYc1mk8HFHeqSLqt4EqCPD8z0rX6buyFoeHQDtoxG\r\nwxnROHUDGjH+BC3aRRVE+mwH++Hjs84Cd9d0SQOgkSU6fcMjyIlPWwxegUmc\r\nXKsFd6/lYcALqpyXFxBB/SZ0gBQqM0BWYGHO5Z8++F+4cpqm79AxqAOaur2i\r\nBVVQMhNcVJ854sYMnkkWOzuPpBdIVYxCofu2OZV5QMlgpYoBzXWy1pQTcaJp\r\nemG+Rp9PYl7pOv3pmci1kepsMYZ8i0zPyLus+T0uf4KNssUveRillogZZ6dA\r\n6V4YCWziBJaGiaJNnHgf6mMTu1yQWrJmztKO9kiMTdTh98rxSy3AHtyKgWXq\r\noB93NJ7zC5j2q1m2XX9v1954ZWMGy99ajT7+TaYJu263HsHZ9gRQdvecELdu\r\n/K8mSE4BypD2YncQQ3JUvqZtly5lab50hcMYr/MNvs1RvoZCK3grQroHn0k2\r\nTtVv+CFcGV/RBX7jSx5AJ7ZonuefEcNztkSLVRz8DgtbPjfSNsIU8TLaNFMi\r\nVplsZTtpU5glG4uZ5LBLVgxaObwgXHrZLqAvHoha629Lorv9P2SERK5LpMnZ\r\ngRfOHY/MubZU8iOz8kmZ7QNsQQb0Mu3fcYqxgeB0y9NUM5g918S+3PTD1ChA\r\nscH4xZlqFr5U/R3UivCquAt4yuqxPCIfWjU=\r\n=IQE+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230413190748-4d32b79a-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/20b8fbdbc355642f191dd99762a4dcc8/blocksuite-connector-0.0.0-20230413190748-4d32b79a-nightly.tgz","_integrity":"sha512-Rx985vgKLJ5RlemG2XQPKHMjGv8O4uG/NZYLm9t4vIuTJ+xTyLE3ixN3b34BJyO4NKLpy08IpMsI1Y+ksY468A==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230413190748-4d32b79a-nightly_1681431796982_0.5729469226921666","host":"s3://npm-registry-packages"}},"0.0.0-20230414143749-f98f3e94-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230414143749-f98f3e94-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230414143749-f98f3e94-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"0bf1fb37167d07b28a6277a10a6e580a061f66c9","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230414143749-f98f3e94-nightly.tgz","fileCount":106,"integrity":"sha512-fr/MbnJuPvsgPKe7KiALP2LHjAM83lo9gXXoDPxOyfQtGSNrM7ywk2WH/OEUFbC9bKuQMv1iq9CnPTXVLmSWqA==","signatures":[{"sig":"MEUCIQCfY27JEU3fsjKss1CXQHyT/9XuxOLs4cUoxCRJPsJbGgIgIQ0A7JtOGYnz/v+7GHGSRyrnYgmlYAufBPDeYL1BSMg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkOe8sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrY0w//RUZ1UdstjzFcqjp9/54yyL7j3jUBPn/5ALziAlXNRRHEd9rV\r\ns0GQGn+G+HseztiK/8L4v0elUWWEHGFBrKoAxr2BdEYGzR/OgPnbBl9xUBr/\r\n5U8xE4fxcq68V3vpGXeWCdXQrdQwXLS0ynBvAAtGxPVqivxvQD82KYg/GHf1\r\nLkIJ3508aizQ/jIZUTFfvLA1duz3l4TjnLbJFxJhftqDUMS0LxRJ7e5w3bBZ\r\nQHoegJiLgKHhgCo3SCpcqGRPhISC8Hsu8L102vso0giKpin24MhQMaL5asSI\r\n8yrhN+9K0Zo9hcvVR60xmBEp3LCjopGZvBPbsrcptrfXkewvIocQ/0TWIwAM\r\nSPlTskL6Jkg5Ne7iMbUVVPRmPQerfoyCRCk8kT3sB61Gazae5qMNkp5A2xZv\r\n/m1W3xerfxY+U9Unt3d4S253W14Ai9kufbGStHTnulIRIG8KgTVk0VKj/QVn\r\nBYZTd1PNOsXhnO4/swBPIpJa5b/bfNJZSl+l1fPSw7ov0llP/kRr+XfnYEbQ\r\nOz/eaEeOLA1NkiEmorBA413YX9h5WFVvcHH3DFrJOf9wmiEQctifif57/Vi7\r\nZh1RqYm1v1PTlpkho9G6BsBCF6q5oCiclW4YStTwQJ/oo4sP8DjY8pnAY8gS\r\nleBTYXz3gdR4cB+32Hq49IIwXJEsnNvzx/U=\r\n=9uOy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230414143749-f98f3e94-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/bb0d4cfcf6aa38225654f1826095a7f6/blocksuite-connector-0.0.0-20230414143749-f98f3e94-nightly.tgz","_integrity":"sha512-fr/MbnJuPvsgPKe7KiALP2LHjAM83lo9gXXoDPxOyfQtGSNrM7ywk2WH/OEUFbC9bKuQMv1iq9CnPTXVLmSWqA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230414143749-f98f3e94-nightly_1681518380060_0.9575730241668385","host":"s3://npm-registry-packages"}},"0.0.0-20230416000648-f322ab85-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230416000648-f322ab85-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230416000648-f322ab85-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"1406cda75621aff3f9b085bdcbd8d219ee8fb63d","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230416000648-f322ab85-nightly.tgz","fileCount":106,"integrity":"sha512-e2ZjZtX9+1QUPfa8Mapl9aQYgn6pa4/6rhQOWCHM5Cgmr+fK2y0rbGjAjvjqZJg+Q8gO7yBkdLEDIzxsKxo0RA==","signatures":[{"sig":"MEYCIQDVutGVUAPI+1xCty8yi33KcYRpoo+ddTeCIeG5MKtKMgIhANXkgTA3NtbhblVxd8c8h2PXTRWoQi94I/RjJwy8vgtH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkO0CKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr+3Q/+O2CQavw9GRfdSpHdNPGKsOFduQhbV+XMvnQr+uq1Q/jetxKk\r\n4+inUZxPRHVwxD0Jukqq9SVOp84q4kdz6AOh+yDiYBP3QqXrRtKNtPtR08TA\r\nmG2xtWpoZAFAN0mBGWuVrHpVkPMax+6zIjgyTUyqEWtGhWfKalYE+3xeR0iM\r\ndCGPD4INR0YtVsBtQ7cuu54F12UtxEnzUDDDq2Q7WQqentiCLe/VixGvPgRL\r\naQTOkYvPMaPM68e1yOGsT4yE24O5uTEd5PlSPfX9+8uhAmbIRpiApDIrX/tf\r\nWSJFZFAwJYgcDcXfDZCl9IPo36J0FvPI3E5iisyaHQTS5h0HZ+/yWaDEUclk\r\ne8/6XT57VclaNF36Id8WGbap/7qFEDSzmKQK8N2NPPA2e7Gx+CRdJ/zwJvUY\r\nrl1KilMSA0U6qQoXUFzSfVgivyK1AiNjUxmr35Fa48ldrSfXs4Wl1jjY+yb7\r\nwMMEBXMYuT4qhQr30672P3k2izMy6RbGhdbQDitw/Vfq0nQDHsLfyHM+u3fo\r\nINed3E/36AQa4fbC9e7uV+i0chtUp69bnK3/L+9mCQ+o6U5MaEkjR7P73rbg\r\nQbqIIsBIPEi8WXeD9zWOrH164O8yILUUQfO+8JsHQjadZBitj2IZFsoxqfp+\r\nyJiU+zdn/hZKFG+L2Ykfr0CNFPQzZEwUu74=\r\n=SGKp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230416000648-f322ab85-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/ffde43ec690b269fb9a5415b401bdad9/blocksuite-connector-0.0.0-20230416000648-f322ab85-nightly.tgz","_integrity":"sha512-e2ZjZtX9+1QUPfa8Mapl9aQYgn6pa4/6rhQOWCHM5Cgmr+fK2y0rbGjAjvjqZJg+Q8gO7yBkdLEDIzxsKxo0RA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230416000648-f322ab85-nightly_1681604745865_0.581445661991113","host":"s3://npm-registry-packages"}},"0.0.0-20230416194015-c6ae6f0f-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230416194015-c6ae6f0f-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230416194015-c6ae6f0f-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"9105b4ca7b2ca6c31cba9a0f697de77ab4fc5e16","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230416194015-c6ae6f0f-nightly.tgz","fileCount":106,"integrity":"sha512-MOzDorVcbs/64NCPZOJqoIwmZcn0+K4a/1UK44VgKmSYSXnMqxJ3YQeYemBW70vHNKEO5tAqhdupD5DdmfQTsQ==","signatures":[{"sig":"MEYCIQCHVCyVDxGKLOEic8hDRmhJla3lb6ZQbyO0TeShkyeM3gIhAJYlVkxt9U/Ev90EyJewnetxK25LdW7fVGItGObWDLJV","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPJGqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp/SRAAkICTiwnap0b5sayc1jvXzzD/lpCauazQa4D5U/E43Sgrn6qG\r\n5L3i0mWf1FcX4o1Xx7jE299E8CAdyU7dH5HvPyZKVeimo+aHISPCZfPizApW\r\nnOAwQTZfSL9JuZXH34OmbVUp2sMoO0mdpIkoUmbmsozptwYlvmZx30YD6oWC\r\nTc/Do3t18zgfS2jd6wq+f3ZRT6ZIyWi96iSIJT7aQQpL25v0aAgUzgjGInfw\r\nVMpj2+MGyrCaxGAAf6fwLD4wwxe8rE8eQLAbXZoobrBFFTodjrKc5a4pN0ht\r\nZjV7BdTnhXGkeL9a9YbDW7jPrOHHazijfvoNjhND6TVcyOROyNMm4AP3EBSi\r\nL6Vq0fED62IJMtJVnNheHzkHVegdO7m+IP3gZIEZPimuA/+mZZGqHcDDzaxu\r\ntYKzFyBc0fgqXyWNgOkO1aJCZ4UFSyW63sxgOsOrS9wFB5AGNOIsPZ8k8I7l\r\nYw6yj/2K0TlEbs/a+tGUzYm7qqOnUBrOgOobocakxku1Pza06Y2w1Y0C5bVf\r\nHxcaPzwkLS0tOAyBFeyJAv2trD5mZkchknYzyFAC3u99oghslfiCHnSE2J08\r\nxouSRIoojcaeh8kiLI2F+ljFiumNp6ixzVsr2HYTb/2yXYzF8wFervPX7c0P\r\nqpxu0SCOc4rD4WBWExpSYfzE3Z1vASFerqM=\r\n=HVYh\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230416194015-c6ae6f0f-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/7ab753175fe9ce97766cdcee903b9498/blocksuite-connector-0.0.0-20230416194015-c6ae6f0f-nightly.tgz","_integrity":"sha512-MOzDorVcbs/64NCPZOJqoIwmZcn0+K4a/1UK44VgKmSYSXnMqxJ3YQeYemBW70vHNKEO5tAqhdupD5DdmfQTsQ==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230416194015-c6ae6f0f-nightly_1681691050555_0.2342083128768797","host":"s3://npm-registry-packages"}},"0.0.0-20230417100332-c673f663-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230417100332-c673f663-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230417100332-c673f663-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"0e4b8cd532edf6a38e3fde1cc9987d4e86e0de4b","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230417100332-c673f663-nightly.tgz","fileCount":106,"integrity":"sha512-712Hr5VxqgOBH37eVRt4cXhwvZOyJwTBS+CRJfmu35GkUlSXUV3+fn7Lz7Wb7C9qsPyqxXK1aPcv+PGTmSZP/A==","signatures":[{"sig":"MEUCIBczGj/xRzc+ri2S31iO/5EVVc+LL4rb/iGfpzwkPbXlAiEA/2EzFaQTTducqJ8fpnOEVAY+eQXEPWU3jw/igZUvVQo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPeMTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvhhAApEhvM6ONRx1LnO3pXxoL6T47bxwN9zT8aBTt1waFzhiOrJ8x\r\n13syGwvGB23S5inPcvuL4+pq0KJiilgfd0/KzD/D+K/Tv0C9GpzoBDeSmeSt\r\nYOVR8kpy8rEF61NlRXYHWZib4dcLqgAs8a/E80z08Tej8bhtn7WyaxL4f/Ku\r\n9L/88ABYOa+PnEwq3xLOCywHjESp/8r06uQ2Ng3NvECeVzmNgi2rJtJbfSVC\r\nPbsXnJsEvyuT0E2Vze/Cuv+uClTTjgkFhfWkd3nrDQFeh4pZcsejjju9AFmX\r\n0gwhccU7l7tmyAsjXmcAewTYVM6zhIOuswQNs73b6uQbhJlVFb/wkdjD/1H7\r\nfxuxLeE8zP6vTyQ3ICD1+IAWbtssStML7CKoWld8BBWQb88X9YhExQP71JcF\r\n4Fe0WvlJpCy0xTIkFqnPZ1q+c8lfohLBJTgqM2SXeM+oamqzO0I+6C6z1Wx5\r\nfdNdQMoAmIO2cFmPGQlRRiKxHsqxU0wZl1A/+D4cK+lovVRkuVegQ/0wIGhc\r\nZ7sIDXu5clZqt6SXgu4idlCc+nLq/Fw3pOjcjbvbQrN4MpqQSMQwbscJb5RF\r\nJ8qU6GG65M779e1Mye31/7d6tuYKSuYDCxWOP1jeKjKuNeThYyzHxTEccg9X\r\ngN+QeseEE417wZBoDwpwV+IkgZsVwykG6jI=\r\n=MI9x\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230417100332-c673f663-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/faa3fa2cd623f5444eaa37b9815fef9c/blocksuite-connector-0.0.0-20230417100332-c673f663-nightly.tgz","_integrity":"sha512-712Hr5VxqgOBH37eVRt4cXhwvZOyJwTBS+CRJfmu35GkUlSXUV3+fn7Lz7Wb7C9qsPyqxXK1aPcv+PGTmSZP/A==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230417100332-c673f663-nightly_1681777427428_0.6842255089263962","host":"s3://npm-registry-packages"}},"0.0.0-20230418192708-038c287a-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230418192708-038c287a-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230418192708-038c287a-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"79b6c37058672e2a24c6349780d6f44bbf302a22","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230418192708-038c287a-nightly.tgz","fileCount":106,"integrity":"sha512-MYxVhpg84MdYXmbDs22C3V9A5NRWEpJpsXadAb3pXOj8V0r2POSb0Gu4Ezw9UsUyG8zUglLhBjZhQMQkEzOrlw==","signatures":[{"sig":"MEYCIQCJSJRaYXvrWSHDtIAUMgmkoo7dp/l/Qqp9euV5GrzKCwIhAKuNeczCybnrM7ntq6wHCH47A5n3IhwpktAo8lUXVoG6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPzUGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmov5g//XTEg0tiBgCX7iXTGBx1PmRCUhnrkEmmmHUPhUQfpRql7rNos\r\nCN8nTeZ/yXcYRbMAaGHNTCFZSTrVlBXui9WHfge1CBL22bPT/2lMKJ30x6P1\r\nw1FTvgGxzqerO+o1s9T5TOQrgpGDwVk1Fcv6Tdo4DnceIQCGwCnagyaGw4eu\r\nEMqOp11Vqoa+K41vh+HqkSA7jvK0g9PdvOlGgOPqrYBDtpzr5B7x63nzw6eJ\r\nPislwy98DAL3SBzVX4UgOHS3CGeoZHfnSqPrblAfNeRwfrcrbvReRgIb7Yoj\r\nJ9Jhu5yt+crUDTyu+TIIGD0rZlI71XgqZWxAfiPUjOhIa9GIpSMyrnHpdoWL\r\nWa623CgHOnrUHZYew+0h16iRlrxg5g+4H86nYfH55EAum2IOW1NxU+OSZ4YE\r\nhKnnGp/G3grBtRbdYADeqiE8vj0ZPJzKe3SdQRcCvPIrk/wjm7Z2DF9s28h8\r\no2fwy4GWwmVMmSwj3IAiziI+rI8fZvUWVQv2vvZRtr0QaVxIDFjpY2IIoiMa\r\nPzaG1zxJ55RFjfJILaVoirGeYtOUj6Mmr4h1pLzOEo393djB5hXgsagxPdQx\r\nzuzi7QTVi7zCWXc8I2pVfAGhYsFdxez94ANiaR+K6d08G1485oFMXwmVCYJz\r\nZZfFFsbM0mdlftMqYUv/xXjYUIhdBuyW8LI=\r\n=2DLw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230418192708-038c287a-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/bfc42175ee31192b0bc42456402e6ad9/blocksuite-connector-0.0.0-20230418192708-038c287a-nightly.tgz","_integrity":"sha512-MYxVhpg84MdYXmbDs22C3V9A5NRWEpJpsXadAb3pXOj8V0r2POSb0Gu4Ezw9UsUyG8zUglLhBjZhQMQkEzOrlw==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230418192708-038c287a-nightly_1681863942413_0.12199010067273286","host":"s3://npm-registry-packages"}},"0.0.0-20230419181152-90833057-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230419181152-90833057-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230419181152-90833057-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"648df1fb78568bbb22789712a8db0d97c4e51e90","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230419181152-90833057-nightly.tgz","fileCount":106,"integrity":"sha512-8nJ0q17Zr9B7FC+ae4LrvoML6O+niUPmRsi8f52srwCdcmxU2ZBcxhisvsDK5Dtm5KdLeOv5QXWQnmsuZroe+Q==","signatures":[{"sig":"MEQCIF/xLCrIzMDT2oheOhlpYQl0uozXDRF79oN2Fe+7NenrAiBvI+Ki/HIUUEWp0JMWMdsTrBvwt0nANnShKKDIe5s3XA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQC/5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoU6A//Yn/Omnptb1dQE7wRrpIdKH2sXvpVbRn6xfZ+fpSWvxo+CESA\r\nEVVmP5+/fq2F18LoWsDo72Rklzq8+D6SAAYM8fpgz3oz+qvbKk8ySx57Qp1b\r\nd0ny+B2XLBuzx+GuD6/psIIdKY0cUKU1KQ0EfkZ3K3ARdF9aNtD6jdohCYX+\r\ndrHfFzARdfUs36IY63uBSc0TvQMP+gNkiL5o2daA2uQb0zGYubw8E8XF8ZvY\r\nn9UdEAL66vpKsXjWS/3FrAHzpdZxCMY6yBrvkVtcCKY5icG9FqrmDscgi2/O\r\n6xlf+PL43+cXpR1k6oyCThmcM3wOYo1ORDjA1y13mZ2V6Yx3O9rI1Tn920go\r\n5bFb3rMt7fU3rf1thG3Qm5tY1JGDyX++deEVd8cwjiOJxmP6k+fMaK9UJJTt\r\nNVdfHYTCp9XBXjbsWZlAFiJYJv5jy/lC30oxXW0tHVpRlEjrj2nuNOVnjESl\r\nt90Wm5J3tQV4MOHE4KTjAZvzH/YUVkrMalbQUVzUxN+HH+1r5WNPbXy9C3Hh\r\nFMnCLs80NtGXN0P7MioMcwa4hHaeUH23DG1TqJV75EA/XR0V+UiRtf2adcU/\r\n/Ocs6MWfmZMfGK1dcGYXiO71x7NwwlQIRXp+9Gy3YsQlrUw4Lk73mOMltoOW\r\nkIrw4gk1VqmfruvEaFcMhofnzTtj/Z8jQZU=\r\n=lh2/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230419181152-90833057-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/88b13411f892229855105b3c83e9ff20/blocksuite-connector-0.0.0-20230419181152-90833057-nightly.tgz","_integrity":"sha512-8nJ0q17Zr9B7FC+ae4LrvoML6O+niUPmRsi8f52srwCdcmxU2ZBcxhisvsDK5Dtm5KdLeOv5QXWQnmsuZroe+Q==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230419181152-90833057-nightly_1681928185477_0.5656378800429291","host":"s3://npm-registry-packages"}},"0.0.0-20230419181455-be5e9007-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230419181455-be5e9007-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230419181455-be5e9007-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"f555a2c59b9d247e96185b77f9f59f7007a0c269","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230419181455-be5e9007-nightly.tgz","fileCount":106,"integrity":"sha512-KJ6X0VBtbkOnj8DiUyb+12ekp4v7X67zykFkgwrghi5FA/vdURtwJlKDtwhzY5vblLUKyji3uDAqqqEIOmF4YA==","signatures":[{"sig":"MEUCICN5/DIglDk/HfEMNAp8wV3jGsyXgeP6LsnMuI5AVrJmAiEAvCTPhbK4S5BqFRuLx4eY42j1stfn6UnAZX13WLB5sog=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQDB0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmowThAAkXXzFPcVGtIwH18fbxeZrsPX38snj3oZpqFriflyrykXHpYy\r\ndRLBEfyI4zOOnTvCusLjuiQnXZEPB4UdsIvWcudDxkrTuwThIgfEIZq4qdjg\r\njBvzzbTUV5I+gooT+/B7d/Hh2+28k4muGZW7v5XdkemV+ANfaSZuinwzKAtd\r\nrtCRlsA5YJEPp8p31q223UuUwEn3Ju02OnKUtPf2g3MdmGBFHZabfvGFeMFh\r\nVCAliDRWwGw+bFHOZoiUSDjdtGP5ipgbfTMjc4xmC9/NvJTfhg+KFlrrtTiA\r\n/982HLKNuG7ZWFVL/xMlAOdKYvqzE0to/4k9kjuvEWW+TLF350v5kb/K/d5c\r\nhXGv8Fv7gW9nZlEq7IrhjaX1T3h5gc3/unItI5wiu+VV99SRbr7UMPntEvKw\r\nQK9Clxt25+ppNN4fDLmXl6EmuVSSXMIA76eeWRxNIBvJZP87nsdh5eOos08t\r\ny6eSuGVBsxPo/m5sGKwcUAqktIpHCLg9O79n3FE86V5kzaKC6w/whSX52exu\r\nFA/k8PH9vFgTUYkOBPt5F2/Lqo/qH9BfD55D+wx43woLqVI9Urd/s6QxEBwy\r\nI4d0x+roLA11KJbCGJ6I0RYSxgzLOIuApbDGCBKHbGPD6VKtnmeG6v6O8q9/\r\nt3bQWb954digoi3yfTC7kPthI4gO7cqz74E=\r\n=toZL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230419181455-be5e9007-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/20b21cabccf3d0651ac42060f6616fd9/blocksuite-connector-0.0.0-20230419181455-be5e9007-nightly.tgz","_integrity":"sha512-KJ6X0VBtbkOnj8DiUyb+12ekp4v7X67zykFkgwrghi5FA/vdURtwJlKDtwhzY5vblLUKyji3uDAqqqEIOmF4YA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230419181455-be5e9007-nightly_1681928308119_0.9557950272733635","host":"s3://npm-registry-packages"}},"0.0.0-20230419082004-ba4cb881-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230419082004-ba4cb881-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230419082004-ba4cb881-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"b06ba669151a71a0fdc12fb6c11529cf394d337a","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230419082004-ba4cb881-nightly.tgz","fileCount":106,"integrity":"sha512-UgnQJq/8AO00wc3xzPKV7W+Es1Sk1Uu+qxH6pdR9VWDN0JPdwt1KZ6MyQHlaegLbwn+ZIeUKcp2Mtr64golB8g==","signatures":[{"sig":"MEYCIQCOUC0OdP+6wOfDOCcKRHOmQO8XXuqYtbFFu6AJfA19AgIhAI1pisa+OQ/DAM8qkLV0QMgVoS5ofMD/uatmDquplMd8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQIYvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzDw//aKcM4XWHYCg9eLrOMydwzYyrmcq877a18gzq+TV9B+HTUNHG\r\nFj9n41c/z8BdM9SjlrEpQqvlnF3G8hSVqAWhmQCQ7COWA1NQe32tdMdfX6ic\r\nVs7sYBo9mbPLu0Xwv7iMWW8+QX9OWDL0ciT4PIBgQhNrP4UBt8doVCfIXvcb\r\n1Lb05P0dXIGXcUAIB/VkLyGazBOGJkO4lNiCrlVSLCEAV36RU80rMe4J0meQ\r\nUAjQNHRAWnGSOK2z6/MSh27CUR4Oyn3riKhZ1uC4vKAqZDOdpg1MadKTD9oJ\r\niQkoXtVVFhZuiDH8fjTcIbkVDYxaUwxMAamJmBEHjFs+IF3FQmTnR6rI58cu\r\n8MjN24LPGH4CdWkpqxKa0+tAV5b7giUV4+V5geVzNg4O4NYIhbL5fV5u0Ob1\r\n3hf6s2fqiP9gTvPiPS5OkAXMdLrj8DU/elryBGqbOgnA7Vlw7atZydYEsB/f\r\nN8fORtgwAtj5IzicL5Ot1UHJEXWGcsWinszwJ+qK/MBPfEMBKP8f3pJvmkZX\r\n09faIZHZdl+RcoAjRnMyRX8lRMdrGa/NWkkFU8xyJTnHQMXDevTKeHmb7u7U\r\nALGBjYgjRGAbEtYXwtIbgtBColNRcwvcL8O3r89Xa5jpGAWD6UK4eibi9dIu\r\ntnb1IApt8TE1p0Jvxpl3mZkSDynsdaaC96E=\r\n=/GRz\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230419082004-ba4cb881-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/c2b4338462e1e00a891b54da48768a51/blocksuite-connector-0.0.0-20230419082004-ba4cb881-nightly.tgz","_integrity":"sha512-UgnQJq/8AO00wc3xzPKV7W+Es1Sk1Uu+qxH6pdR9VWDN0JPdwt1KZ6MyQHlaegLbwn+ZIeUKcp2Mtr64golB8g==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230419082004-ba4cb881-nightly_1681950255067_0.2820332291088572","host":"s3://npm-registry-packages"}},"0.0.0-20230419224531-580687ea-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230419224531-580687ea-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230419224531-580687ea-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"d8de4bb2bfcc85f1c604c8887162abbacb338dc4","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230419224531-580687ea-nightly.tgz","fileCount":106,"integrity":"sha512-t+kNf5UCuXvpQ3/1lp749+RmiBQOYoNGs/lygJa0mVYtU0JmLUNN6umZWxcKXAJjheIX0gsNL+yJk7LXcv6mAA==","signatures":[{"sig":"MEQCIEYvZQMI7q5ijkCQzlc/Zcxk8cGZ7sEtGZAMydhWSYSpAiASP6Cjbr8kUb8c4b0oA8SQfbLRRPpNbRYkbv7hDVWZEA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQJ3nACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp5mw//Wsvn6HX/F11+GI+/qDWNrPqBBZdd3VfX0NYtNXizn60vNfvd\r\n/hqCA3JhelowP+9OPB1Da2vAk395M4kGpCj5sWF+Xjph+m2q/wSUs2owmpi7\r\n59Gsv4skVBTqIM015mnGZjhVBiPk5U4BoMuMIUBuODuw3YfIMPwv0ceZ+g5G\r\nfwiDC1H9TNH3yjBKFLH3E6H40HRymMidZ3CKZ5m0c91NfzOzvCrbkuC3wjm4\r\nsDMtyTn1cLwdtLra3tgGmk/LrDu+xEe8NR4PVE5XDlTZPcBf1BmtcvoR+2mr\r\n/XBYu7zTwJ5nJG2biL4YVREtronfQcjd52RbIYf3l2BoTXMck1Q6Xld3xOJH\r\nbClIUrC+3nCPphEP1QyRmaFsAJRs7wUkslbeED3If3syIlVTAVToTALGCq61\r\n8m3rm0fVW4YIVd6dlKYpeFMojjuXx5j35I7t99hEIVdD1Kprccgt3ylMGZd7\r\nw9KtAJvpo74shain+PPggSRxas4oQJ1AEqe91dz4zVbMTDMsgF6G78HneA8F\r\nu5p2xM2vO0Tw2QpCJ9MOxGWox/Uydg8U0bUndb0YR9X4sXceUGVZtqO+Z8Cp\r\n2OsG2g7hMP24phaN9Wz9m9DfzXe9UZiFupnFmC+tpdpW3GUmYFEqLn+r35A0\r\nNGJO5chTEahizEDYfCbME6Hj16zOIguHP6s=\r\n=UZ2t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230419224531-580687ea-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/b1c92b47cddd13ad657097ae968ce281/blocksuite-connector-0.0.0-20230419224531-580687ea-nightly.tgz","_integrity":"sha512-t+kNf5UCuXvpQ3/1lp749+RmiBQOYoNGs/lygJa0mVYtU0JmLUNN6umZWxcKXAJjheIX0gsNL+yJk7LXcv6mAA==","_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230419224531-580687ea-nightly_1681956326788_0.06818065487214331","host":"s3://npm-registry-packages"}},"0.0.0-20230420021507-17b3de01-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420021507-17b3de01-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420021507-17b3de01-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"55e4a5b873e3b9115fdfd335f5993a3e7f3a5263","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420021507-17b3de01-nightly.tgz","fileCount":106,"integrity":"sha512-Hz0lkrsPBlyQ7vtJLrrsrZZywb1aCg88l5HQUVNEyMPCDA37Q7UkNWafKLQBGrsd1z317/QL0y92EyqTKb3HPA==","signatures":[{"sig":"MEUCIEEtQwWXHXlIZB1OdaEdsL/VOB2XyeqIIkyqx/xyVfJ3AiEAu0RTNkwfBlarilvlggt7CqXtLsk+zrpEwdjnjR55Vek=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQKFhACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpenA//fWyATdVCpPacc5+J8fhnnnC2gNaf+/sW5jlae9HnOBaWKzsd\r\nsDSEL4ByR+BkBZp3zdwCUjML5r+jGV3I6Fd88pAEHP82ndSvqVhyYchsAwJh\r\nQbolzyVUj9I9ySGGy6tFp6ezIo/IyHLACwH6wN2SdJJ8JesIGk4uLqzWT3Wq\r\nac0fgrW6R2wO3+w8OO/qp2hEswdcDdfIYOckO+YLPbVHPHxGdlU4adRwLmIP\r\nauplJpeL3E7M9AMFdHzm1TgoGows914hRk2uDVwK9ySyG4638/KwDstjuB94\r\nHmIhxHZdwz1jdQVvFQip/aSjuKsNZgx+ThI48u7E4ay7RuL19Q6OBl9xsu9e\r\n5ngm27jizBXSEvy5faTrgP5O3IahLv/2PbPLLcK3u4o68lcEqORJ6WyUdFJQ\r\nhW/Y/MCnZGEq1n6IhuxBxxqJ4VVuEdqJJC7GJ+OnIWd52p0DEVJAI+xRFzyD\r\n3iuZR/JmGazvnWTYZa1H2Ip9ebx0ryV3pnb3loJ+/KrL8oVfwNavmPTX5iSL\r\ngDlHYRuEdO2GNOzOBQAZy6BJ2Chat4eUUzdAIsLJBdBtXNq/tqfHojJBS9MZ\r\nGWexFb3gVSfXz3GNU/ixBIMTsfvAk3mlhJ5j8qAnSNTe2CV24L5qvJs1egJl\r\nG5zU01sdLGtwI8bltXnH29iDTDtkgmfC/tM=\r\n=dvJx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420021507-17b3de01-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/5cbebb8bad85754734c5699506652bd2/blocksuite-connector-0.0.0-20230420021507-17b3de01-nightly.tgz","_integrity":"sha512-Hz0lkrsPBlyQ7vtJLrrsrZZywb1aCg88l5HQUVNEyMPCDA37Q7UkNWafKLQBGrsd1z317/QL0y92EyqTKb3HPA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420021507-17b3de01-nightly_1681957217513_0.7260051686753644","host":"s3://npm-registry-packages"}},"0.0.0-20230420032755-9499a5df-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420032755-9499a5df-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420032755-9499a5df-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"1fcb578d036ae7e97d4e9f246eabe2bed5398596","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420032755-9499a5df-nightly.tgz","fileCount":106,"integrity":"sha512-TltcJUy1Du0KJg8eSz7gJxd8NqmFSeyw0f0S3mXhGO79i282ldEpe1G6MT6rxhKEE2Cpk/vN+EtauSEe1c0WSw==","signatures":[{"sig":"MEQCIEsgpAX05DYPjWY3VrVuAErTEKI/0IlK756QkSxhCRzgAiAiQmBBgiqLRfbXwL7BW25fyPpgHHkqzJhlCwhWxBpWiA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQLJUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqclQ//XNgF6m00nQ97BgDR7smaNceZ3nb/SjDrujQbv+J2sCaLyu6L\r\n7oUh31k8UgO4tn7bT8Cxv6dZ5KuzVpisuMiWf/806DVvdmEkhpxvAIKrEaRn\r\n4wrO/RsS2CB/aZGcelxcwCEFHHSEMfGtVHw9XYoOUBt+VnCb5hH+tAa/BWxZ\r\n0ETxBUP58RWtffL2QkG6ABxFO6ZR+/GDtasN6e1B+DulKfERyjxbOWQwmDeK\r\nje/HVfBc3MQOd6/JpGG4sfUzq9r4CooGX8NuLLISpFJZjFrg7kD1e29ox98Q\r\nq18viQ+L0/vnL48cjonO9ZsDwctq+oAGoDAWPF1y2aizeJ1MvcRay/UQZr1s\r\niuGT0KKpaHbwdIJhtZT8aN88TDqf+cgUnJ9rtZU3LmcyjQjMMbHrTcMlo2UL\r\njgpkRQfhgI7Ivug1b8FIvZfSyFOw9CUi1FL2Vv6QpjXar2WMjQrBmqGi+xjP\r\nuSy7YVvO839ZUfxHuRtUrbAftSTLzI7qX+QJ7C2VFXKca1T5omZ/FjmfwHdg\r\nL5h6e6c+jke+/Dimmm1bcxPzLtqzT1KjVQVlM44WO+3kJXSKhfO/eD7IMAcs\r\nDwFc55aSrK0Eho14LhGMCHh58yE1LmNJ8CqzAQnqIGSU+cBox8Ue1uxdWcF5\r\nT3GhQzywhsu6xq8I3mDHycIAnsVql1io3Pc=\r\n=SN7y\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420032755-9499a5df-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/2cce63afd165995aa603bf18831eb17c/blocksuite-connector-0.0.0-20230420032755-9499a5df-nightly.tgz","_integrity":"sha512-TltcJUy1Du0KJg8eSz7gJxd8NqmFSeyw0f0S3mXhGO79i282ldEpe1G6MT6rxhKEE2Cpk/vN+EtauSEe1c0WSw==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420032755-9499a5df-nightly_1681961556196_0.5428276709687476","host":"s3://npm-registry-packages"}},"0.0.0-20230420033423-a474fdef-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420033423-a474fdef-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420033423-a474fdef-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"2d530cbf6c57c0f7fb26eecbb3c9f178da7d2a5c","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420033423-a474fdef-nightly.tgz","fileCount":106,"integrity":"sha512-hcpbh3rRolp6+8etSIUjhlIgOZzjJMLSvTYrsBgg6Gxzh/vqRiGK2K2m69V4cFlXEMbsCTOtFVsp851ezkkfzQ==","signatures":[{"sig":"MEQCIBsDfN2tv+f4CuWenkaSKKTtVW9uwQ/0Qtc9MKUJKgGBAiBEktp/7xuIY/pkxHpTTWm10A8sceP2EBaxN6tLdIAWpA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQLOMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNFRAAhQStYEe+aJooJER2WEbLskm7pINd90zvNekrWSxXtsLeDxgv\r\n7wxJHC3b8NVmR3GMX5B2NQ8PlaKTiVoksDvtcR64HiHIu3+b9Sk5LidVbrPh\r\n9kFUfds04WH5xLiUgE41T3tqUt93at6JNIMDWGZfUPu3i/KWOamRsNeIgeW3\r\nE1kGqF742PrfXIDt0RG0tp8yoUz6KyPClRlQgLETT3U0+c1bveBzF++h20Kx\r\nqIgqlSZ1pkcKr8134dMuBp2O52YMrS6oa9WnlLfQabBieSROR4SHOEOCQA/+\r\nj6+jBYF+nNH+gJnUyZ+OGTWG51OTFeov00ofS24gaWz9ujMUmgnnnac85DML\r\nKD+tk9GE4lONSNzIBuN/MZrlw4/rXXjtYeVReBwmz1Q0yxe6PvpV6eQOd3I6\r\nHdmDeCr8jiKG/rXg7oeeW0o46/MzKtXpJcaWshMBTQ7XwO3yJKLIiZxNKBd8\r\nnX9xDH55Uu36kIYTy36NStO0uBp+pkk1DJ6P/fWMLCoeW2o1ME8qzPkry5Ws\r\nQaPpv9KDmwvG4DH3OIev3pbbrA8Z05kwRXBZXuXGgX2caW/d4Y87EeSEwc/L\r\nYZ8x2b0szX71R6QlCTlFuPA6Chyyz0ZzuZQZBYvNo46YW/2EAd9bGykkJAOR\r\nGQ53ExuE2Tr1HNr1q0beULQrj0uAK/p20Ck=\r\n=tcvI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420033423-a474fdef-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/7a521a78d79cad3711ff53f5561bae75/blocksuite-connector-0.0.0-20230420033423-a474fdef-nightly.tgz","_integrity":"sha512-hcpbh3rRolp6+8etSIUjhlIgOZzjJMLSvTYrsBgg6Gxzh/vqRiGK2K2m69V4cFlXEMbsCTOtFVsp851ezkkfzQ==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420033423-a474fdef-nightly_1681961868513_0.30965856189207464","host":"s3://npm-registry-packages"}},"0.0.0-20230420034403-72a706b3-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420034403-72a706b3-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420034403-72a706b3-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"54c7282ca7d4605b5e97de16cbafc338cf93e5ad","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420034403-72a706b3-nightly.tgz","fileCount":106,"integrity":"sha512-XMtagLDyfVRpUfQ3xe+dXf2XTfaMDUoFtSJTKJwFcCIl9FP7FtQzuS/xv296yR60ClOJEi4/mFw46xFBHZdOeA==","signatures":[{"sig":"MEUCIQC4WFrzCXY9y59y2UhS52K2PRaf0Arh402f74IZlrwtugIgVBbhDPMB8DMjrfkZMcoaqiz8EobtflzH5kIHUbIbbKE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQLYnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpUlw//UAtiwjycrcKfnHe3Y/7jNUix5cv0msM+nNOcDYXagp7jlnjC\r\nm1pgAcO7gM4eKdB6gl204NZiY7czAZOZuLyc+q7IPKf2SP6WcV6aExBTSd5V\r\nwG5dja13fir/329Gg1WxBcb1yfH8kKU22I9gOY85ML2VG08qmugVJD2y8tkl\r\nijovyNfTqqatzguUckIYSWSHQsdnPbOKy2AegGrAvseFg0kj+Yi4VUQqf0H4\r\n2qdA+How0E4TBFpd5mcOsqgwuDQOGu+RzLomDK4nsQ7GTOpcNJutftFj8n7Q\r\nqfSEcG+Y+4tGuyZ3bxbPoXgB73bneqyARH8sAmoI8GEJ9abId43C3sW6vtOQ\r\n8Mj4LK5RtyKDNjXul1GHAZS/gU2B5lUjDbuPpPC/Y2HZua/4s+oc6VCOIQza\r\nlHzvfkurHt2NlfTgED033aYm3EwQfoeFfLEX89v6MSb47IPOEkC41h+rMadF\r\nIG3AvB+4lwQKFUre5QFqm+IUEpmNfTLOzSL7XfJbq3dZg0iG+jud+xC7DXl1\r\nC6rRWZWaDk9bqsciALInpJTV3/iq36nwal6t3CTKBgAGhNBgRlOb32uHixWI\r\n8v2z6xhV8Si0UuGVKgwLHNPjULq9Z5NOlO2sl1K2jooSnGH0wAoBpTduG80p\r\nGd3LoMfQWPBsdZFVQk3I3v0Ya9OAq7RdtGc=\r\n=NWw4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420034403-72a706b3-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/7e48b2783bcadf1cac9df83eedc7c6c5/blocksuite-connector-0.0.0-20230420034403-72a706b3-nightly.tgz","_integrity":"sha512-XMtagLDyfVRpUfQ3xe+dXf2XTfaMDUoFtSJTKJwFcCIl9FP7FtQzuS/xv296yR60ClOJEi4/mFw46xFBHZdOeA==","_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420034403-72a706b3-nightly_1681962535670_0.02186301368986432","host":"s3://npm-registry-packages"}},"0.0.0-20230420040504-2cbea2d3-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420040504-2cbea2d3-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420040504-2cbea2d3-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"e06d15f4a55a75b7de71721f9c7dc47c7db3f89d","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420040504-2cbea2d3-nightly.tgz","fileCount":106,"integrity":"sha512-10fWgg9KHzeqpeJGfg83P/s/yzpU9ND68JX/yL0xBE2iTw++qFin1ohy/lzrpXUXpvqXp6nzJjMJg5U04R2POg==","signatures":[{"sig":"MEUCIQDHU2Gyjx6agE6fBerXLmoVINej0RIB0m3HbFt2fjI7qQIgeRB1J5F+wLBaEDZgF+lNsIHR24hCST0cQnch9UBJtE8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQLrbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpaTA//S0W8HW+Fbhw4OOvp0DKyPE9s9WW4J9yW+Rt+d/tdluY5t9+O\r\nr+2Fxd5skR3pwM1EdYawPrEY4ztVEl2nxpB8FejmgfWO+oqEYa0xB+LsF2Pr\r\nYkPKPS0CA4Tm+RkO5FPSJ3IHUwvEBEAhayJLs7H1XEKJ5gi3oDJUe4EUJZgu\r\ne2p8+aoWQsjAnT/vH8d+e7pI8vA1i0z7tEOPJF88HwfbxAqIwqLcpq9g4cf0\r\nEbPRndqHZOw0OcabNXLpVEH7rNWH3xxybiUh/qKkBExjU6qUyo0NTOFnPgW5\r\njkjQlcglgqBsE65XmQ+Caus5d5u1eKTuFydVlIeRryL3BhetrAAY/9etKOnk\r\niDv7HyH+W4ckS1AdnsmCrS35aMAFXUqfS+WBzZx6j3UtqI1bcFSOi0NQdqqo\r\ngtdClWtAsc5APv8rWzfjmrJBVD/ADRWt8h79HQ6D1vdi9UpWQD8km6q5jAfv\r\n6lRrazQClnop0BNqV4dx2Wspp/pdb4mXG6CtNKSCbAO01vv2RqMqUDyvBeDh\r\ntMwMl2N1/hZ2uDicZ9RZAlQNXXzGO+uLTYgjqIbDrUEuVxZqeYSc02Wh0mtN\r\nmtkbxZ3oNo0G1k04P3/s7HS1MAjNN6i0OZaU17gz8EXRULHecJVndmghQOE+\r\nT+5zQ12ih9QZTaYvMoaC2z0P/JtlVo2cEKI=\r\n=yOHi\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420040504-2cbea2d3-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/0e0404f6bab8e491a2d867639c7b7c93/blocksuite-connector-0.0.0-20230420040504-2cbea2d3-nightly.tgz","_integrity":"sha512-10fWgg9KHzeqpeJGfg83P/s/yzpU9ND68JX/yL0xBE2iTw++qFin1ohy/lzrpXUXpvqXp6nzJjMJg5U04R2POg==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420040504-2cbea2d3-nightly_1681963739627_0.14782104675030383","host":"s3://npm-registry-packages"}},"0.0.0-20230420041641-17d0b170-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420041641-17d0b170-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420041641-17d0b170-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"e8dc9b1f1331b25d31377e5441078f377027834b","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420041641-17d0b170-nightly.tgz","fileCount":106,"integrity":"sha512-nBwLb2RT34ufx83gw0dvs6fa1fzCIffrhkQf3Bo665iWj10PUBPkPKVywipnnS5Fyp2g2MzLQ0uEsDyj4rj+HA==","signatures":[{"sig":"MEUCID+i8eH+UcA/CyQkE0Lj2BmSEMl03YaP/4NMsjaQWRazAiEAgYiRfgL2Mc58cy0KavhydMlv8dUIcGlEAZwRLe2F25M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQL1sACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmovIhAAmjKOqZ+tcDPH55UOkyHPkdF/+aCVEXzOWXNT+EY7au1UEN0M\r\no/5WFxTmRjFRujGaZmfZ4IPnNI2UD2eKRTN2JdUGRUrxnthlPOuVV6KS3IL2\r\nrH6uqBzGwy7usR+opmgnemXxC8JZ5/hFGs0KwqnI0uvIQsYb8rtnEohOFz5Z\r\nYEDgF6KNdH9GrrWDZrXSyATBlrFn0+zaBvLgZrPizeh4fGykJVOa24fSevX0\r\niCzYBPivsBovSLBUrVcto8nPAvN7xVG5DDhT8378zfp+jeF7+j93+FhyWu9m\r\n/k5RH5JFC1NDpJPsdI9Th4Ib3MFjysiKBj/FrW4Byr+OOlUPZ6oUSvjhUp1d\r\nxF9UGng6j9rXUR4j3iVNV3dsb/XRAdn7REd3XFJcShqW/RsyWukU8QNsHpkr\r\nGEGohUsbriaFB1A5Rv+bDTPntaoRIUEAYtJRoPOl7G53yJGfS/WoI3nc3NKZ\r\n0KpI8LLWnMo4v2XZkDiwZzyfM+4L1DX/VsrJA4nk2nl7arYJKHMDBJsu3mch\r\nTaqQwaPlNuFTtpRRW5eck+DsX4tnjIYCP4jZOOfjKFCrZQeDr/az/4zBC4TU\r\n1AhIadcCLeOU9aQXg7tWfweRsCvKRtLvI829PCh3ZAi1DrIfwwT49Z4IOyon\r\nzmZ3MLt0yvukSlBCHXFVnnRIZ/C090OgxvY=\r\n=clqS\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420041641-17d0b170-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/c5e96588dcfe27bd9980a3ffa1b4097a/blocksuite-connector-0.0.0-20230420041641-17d0b170-nightly.tgz","_integrity":"sha512-nBwLb2RT34ufx83gw0dvs6fa1fzCIffrhkQf3Bo665iWj10PUBPkPKVywipnnS5Fyp2g2MzLQ0uEsDyj4rj+HA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420041641-17d0b170-nightly_1681964396196_0.2416606517193698","host":"s3://npm-registry-packages"}},"0.0.0-20230420045705-6253d7b9-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420045705-6253d7b9-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420045705-6253d7b9-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"e6ffb4aa378df78dad5a018229fa20503f20787a","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420045705-6253d7b9-nightly.tgz","fileCount":106,"integrity":"sha512-uYx0SQ/+7lk3g3onZ7QhduA9c47wIo49lpbj4UB+E9F5A5DajxhFozxT0fTW3vxImNtmJEhUjzAmCBjdf3VuRw==","signatures":[{"sig":"MEUCICEBAGtCOd9djti8wjUdOPuYZ1iqmZeX/XswhFHi8yu4AiEA2mVUxc7qM16/yI0F4xVzdxvup5xQ7XcHmY5dmBkfjBU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQMdKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVeRAAnDjAZE100RMC/pXGxoQ0mMjuHG9NF3vlUjLdkkdR+FmQAFtI\r\nCKVJQ4USgUZ3Mmklx/FRVj1x2hCJCYxT7cAa/X3E1LTUOHk4ErvOCh1NVlph\r\nhl3WALVQtwW4nn5hESzPolIJY5SqZNFd5m3OcQDEU3i7UcA+WcRnZRkjlbL8\r\nE8bw5+QGidispi1J1ACCcaSgSAdpB/2ydiGtJO500c/CJwh7p+f7hCtO1/40\r\nexee9uZJ5nASS+cphCeU7ocM0DKzbwllsTHgojkLMqAvWw/V03wtjV8a2oZz\r\nzFF7H+NIBLpO/RN+CRXNKRB9WqSHVkE7Gxam+02dhJeBeqIPcycioxv9o6Dc\r\nZLTKhkQYvxFLUcxzk7SZmTGcYjsA6pCQ4/IxqNUCIo+9JjgVZwTvvzYeO+/N\r\nPIJTPDbIx20NmhgDztIErFl3A86zDCuJ95j6rCPSv0z2vvMqUPtnTqXGDHsV\r\nPJ8xA8pBOjSKzH766Yz6kyaxUmqKnIkYWXxIeP2oGr6Vi+R0VYls7pJoA/4z\r\nWajNNakiD/A0jp9j4WbnEkhmTsqDt9LNZromlOuASoJDEq4Eczn4dnA9m23R\r\nUOD3Rn5gVzThQMYCHr4nuLWYfRcJwsHSreQkZ2MYH74lr0BKuItjQ2+hdAkf\r\nfaRiKuUqhCNDHD/0ZxEv13j8yfjktvWuH80=\r\n=EPKt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420045705-6253d7b9-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/c131fa5d04097841b20768133999d6c0/blocksuite-connector-0.0.0-20230420045705-6253d7b9-nightly.tgz","_integrity":"sha512-uYx0SQ/+7lk3g3onZ7QhduA9c47wIo49lpbj4UB+E9F5A5DajxhFozxT0fTW3vxImNtmJEhUjzAmCBjdf3VuRw==","_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420045705-6253d7b9-nightly_1681966922013_0.4502960585697777","host":"s3://npm-registry-packages"}},"0.0.0-20230420050902-d9ba4793-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420050902-d9ba4793-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420050902-d9ba4793-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"85e7c6c24e297bbac8293a4e84cbcecfed0d3982","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420050902-d9ba4793-nightly.tgz","fileCount":106,"integrity":"sha512-kC8BpbiQcBkmFq1ev2rCjnLIXm8/PCcE2ZHtcXlJXXQLVpuC9pk3cPA+o3nt7XFY7Q52sRk9JI1H/wDV9GZYyw==","signatures":[{"sig":"MEUCIQDxb3DmfQXFkCxxcTMIOiItMrbX/ftz6OOfQ6Ho1LK7KQIgCmYOFgcqpf8qJ380vvckP8HvirI7/fsRY/qKt6i6PY8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQMmpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp0Ow/+PioaRRIcyts9+QxUSd+F3GWURTYevUshsUA2Ava62lQN9WBs\r\ndpUl6V8y2LuJ8PQU6IcrdkiWM8XPNQMr/KFV1LTARC44cNE0rCIqoUfCBtU9\r\nPjk/T2nlW52JoI1L2Zv/x08/5o9C835Au3wpV2rKAmaAYMvOMKvA3wkLH4Tw\r\n2QVCbXEfHMiS5XzVv+Cmih0wlgCzRMe3LLbZse/qvGQFDJS7rbQTXBaAVNsY\r\n4DPSmJ3HozmiEboJBIR/QQk7ey3BVPkDjWDnoNI+LZmNrO+LE9HfzYHf0z09\r\nFvHFeI3wlUq2U/SEcG0xjv+MnAk2C0t7gGDz2gSzGhoJTpO9tues+pQMb+kv\r\nJhWWxUH9blI2zul+HeCtk6096K0K6OIROe9FjZKKN/m3x7ww1z/05/2QqC10\r\nEAKOBmI9mIzauR4doNpUdJJMUhnyt48Lw0cyHK/bWvscp1/Gkql8I9Wb1pPP\r\nU9INuehHqf4bOzvx1XWuaT4Lc3fymbx0ox5lDhvNykhyVApFxbNwsIT18OAG\r\nWJhW9yVHHCOslwWzKrcwD03I76nXwa2O+39xiY5XZ4Fi4cNJeUtBSQRQJXXJ\r\nwgoMawyTBscUb1ybFCO8x12GgcPHV261iTpngx2kR0hSHtOaWf6yBSXVG62s\r\n4qUhiHT0hAKJCZPM/NJ0mTzum8tl89qKVwo=\r\n=uKlo\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420050902-d9ba4793-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/667087fa8d7688f7b050eacbb6f66789/blocksuite-connector-0.0.0-20230420050902-d9ba4793-nightly.tgz","_integrity":"sha512-kC8BpbiQcBkmFq1ev2rCjnLIXm8/PCcE2ZHtcXlJXXQLVpuC9pk3cPA+o3nt7XFY7Q52sRk9JI1H/wDV9GZYyw==","_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420050902-d9ba4793-nightly_1681967529198_0.805763351086731","host":"s3://npm-registry-packages"}},"0.0.0-20230420051213-c7ac2850-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420051213-c7ac2850-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420051213-c7ac2850-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"e48b5781183af41b173b6dd9533ca773caec692a","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420051213-c7ac2850-nightly.tgz","fileCount":106,"integrity":"sha512-arJoMhl/MfB28C7O02rUMt6TjAdmKvOjEoMc8Yiunnvb6d581qULI6TmWChIl+PnAeh8BLyLvQZr0/c5Ojw1BA==","signatures":[{"sig":"MEUCIBBhVEpUTSo8t9OJrGZekVJbI/VOSIbvholI8qIhF2FIAiEAyVG3s49HxFZLQ9Kfu/TUCx1jtuY6ugILTyIJ5KYbWVQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQMpzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmosdw//TEwfze42ZZxSsFY+PPNfxpKCmsyN69rkLc7DxQCX9oPPgVGu\r\nGktlqabSNtG8ScnG6lenTkeYnRFTC+JU/bMiZkZPC19Ue1YJwfkStCNPXuMd\r\nnM4cjhGNTBsxv4rZ6Ve5owukDUBfsiCpt1GjKFdu8cJPQ/nlOMHEXmsR6DTl\r\ntYmvyz7atrP3NBBmu1tXOxrJZhbhXWk4qNX3jTrUHZCjuvcUI58nM6ZNmNGs\r\nvqFTYeN3r0OoaVLxz4OVqZI3AnSSv/+6PmZeXqkQ9lim3pIvupAotA259zw2\r\n67pSeI/bU9IoleUx/JFjjX3uRyESHFin4BgTzwsRYsLvIk/Qi4CZyHj+pdM7\r\n+7hpEl3aks750PNld7xrTgcjVl0yXyosxd1+9aWuUJUmBa9C1JMPpEC51Q43\r\nRngIP+HiYpfw6uI2QVC1EFZ/Vfzs8crS9gprPZM4CYH1ZpeSY0+jBMkZFm43\r\naWuS2bGjzSiKuHe7f/R8iGCIYjU8xEelqIldNGRsZR2QY1iFz49wiuUlrnyL\r\nBTzsEUhiknbAV4z5yT2/bromlkgv6LeOK99Xfkpf75aHRF6LvBj3burhg6YW\r\nqBfOtZZH3oYiTzMqHTMOCqDz6T0+nKTyfqPcfpPwD3c0WkVfe5Qj7BuOpYwc\r\nH/Rlc27hzHUVPXkgVRF//QMzcCzEftknlTA=\r\n=l46n\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420051213-c7ac2850-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/328bfc83736ff58793ba0ae8fb1ed8f1/blocksuite-connector-0.0.0-20230420051213-c7ac2850-nightly.tgz","_integrity":"sha512-arJoMhl/MfB28C7O02rUMt6TjAdmKvOjEoMc8Yiunnvb6d581qULI6TmWChIl+PnAeh8BLyLvQZr0/c5Ojw1BA==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420051213-c7ac2850-nightly_1681967731707_0.09767540201910196","host":"s3://npm-registry-packages"}},"0.0.0-20230420052205-f8710675-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420052205-f8710675-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420052205-f8710675-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"db3981d7777b873ed78b22c5c1b10bc1fdfda167","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420052205-f8710675-nightly.tgz","fileCount":106,"integrity":"sha512-xhD1wPztcWJWGBBLoNRXA+rgEuSFDbXjwvh3e3X0wks1cGuVr8bNnrCHzT11hQX4AjQMqrOXxOdR5M6ohcmYtQ==","signatures":[{"sig":"MEUCIQDmiO01ZYziQSFMcXB2Q1j710kuaXCwmklJsY8ELD9vGgIgfo33lthWnB4/tlv6MgDS/eShntRFozoGySyGzkR6LBQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQMzeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrw/A/9H0ijmn2m66N7TlFzKBQyxeqWmdfGUjXkFKA1N3QUI+VWcobV\r\nuniElBD1YHgNcvSX4rVXGXGQBY3M0iTAcclPbuRXO5t0zciZHow5p2Dy3V6N\r\nlMTWpDvx1AbLAhBkxVZLuUo892tVzDscuvQfiqfJ+n3YoLFqQ0VRkT6qPlW2\r\n1WhItS5aT6UF+W8Jm8hLVcGbe77iAL1AgUEDiHwo7nlgecdSDrd+7M1fP18B\r\nk4BQCdgEpsYxejDTnsAoNjNuV/sYxEzl3wawR22bnFeil0zfF9rSTD1c5TSc\r\noayde6PQ6d7rH6MykJKLa5czqjajfe/XrAGOUdqeLJYMzajkkUxGefxcmAZm\r\nrxeKHtyFOVak42HZufZMzCh0NUQJlyrm9lO0OlLkEg43k2Xg9aZRlDhjgSTo\r\nkkVQyWv7rw4X1aC4ARaKJUfc8htcMrRyy5kf6OPpRsxzVeJfkgnK8QyBon71\r\n1vxApepIzM9p+Sa5oFlnzEGLoTQGIz1KDXwdOB0IlNRZnPpACtYfexTsAY7C\r\nVnAkYoms/RiBwTyF/5/TxBZFJMfaor+Chea1FGgo3bnEFToeuzCPVVyd36tA\r\nNIFBlOoRexzZApZeF73UkaHilS/gI1tmYbCGxBhC6mA7INHd1KBlHs1NxU8x\r\n4h9GvnsAv1og/eez47lM/ICnfWAr3tsbn2M=\r\n=mkxr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420052205-f8710675-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/24c3f6632508d3aaa17cc287015ae72a/blocksuite-connector-0.0.0-20230420052205-f8710675-nightly.tgz","_integrity":"sha512-xhD1wPztcWJWGBBLoNRXA+rgEuSFDbXjwvh3e3X0wks1cGuVr8bNnrCHzT11hQX4AjQMqrOXxOdR5M6ohcmYtQ==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420052205-f8710675-nightly_1681968350687_0.16126153312560354","host":"s3://npm-registry-packages"}},"0.0.0-20230420053507-ac78edf2-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420053507-ac78edf2-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420053507-ac78edf2-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"ebe8a9b71d1023f6c6bfa0d10f1677cdb2ceb124","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420053507-ac78edf2-nightly.tgz","fileCount":106,"integrity":"sha512-NK+6RGbhMEjeCVIS9QK5urxs6TcLFwy4tnQ+cVC2puT4+OA9G8JQqhlje/KaNUeyBx74vVoFXU/9uKiQRLIchg==","signatures":[{"sig":"MEQCIHvnneX0/9dTYTCzdMbX/Hm8exhYgg2S8P7CSjm99pNeAiB/tMq4FOz46JcmjJLplFtjVHF0p/csnzpnls3PhQAWmQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQNAKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4dRAAk9ZocI7S8jIMBdkUOh4g8qcX2eK8z5vAv9mTcgFt2mfFFyUt\r\nvwS3ZWTOduSPB2KJxbXTXaEthEztlT9jozKr++kGHIL9894rOf/xvtSZwATQ\r\nptNZBrjF4ZuV2tq9YGGixGxrWBrwg+LnvyIi0hKuwxaBgf/3249wQ4JWewsT\r\nzzD8YdoYCunCSVE3P2aTIjWtLL2F0IeA0UXVnijrSonkLKe06z0l+eLw6npy\r\nGKYshV3lmktR+X1WnFn/kl8KYmGQrrTP6YatCz9YcPLVQALr9vrTeqtgS8RY\r\nR9NVpp16jhkgaHVpaFhj8FU4yFDMcN6IxPnMnmHmfI3XYZq23NVnlj/Dosa9\r\nMCmf7v6B3hWGEvLsGSrcVo0N0ZCP1vR6kG97jsYHP5m1TiOqfRHXGUEB9Spu\r\nNVLHDi91v5QiFwVB6WJQsh3DT5L+kG3GyR1Dwj+2Mf2Yl2sHiPkyFdkZJD+v\r\nr3Xw1w40A677d3LGiWdtFoEy3xRoia39V3T8EamjJBCYUKMqz1rNM5pFX8yK\r\nM8p79/l4XZ5Nxr1/REElqrANQy1Lhjz3+/jtwmccptiq3b6CwGbvxt17zIRD\r\ndTxgFJj+ElNAmGq3VgApH1cB2MYOnPY4LM9QPUy6Qh/ANwvBzffZ4TmL/DOi\r\nukFu38flx5M6/BsXrU3if4ALTytqCRzwZJ8=\r\n=xXbr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420053507-ac78edf2-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/f516eeae0b3452d52c2c952dea49ffd9/blocksuite-connector-0.0.0-20230420053507-ac78edf2-nightly.tgz","_integrity":"sha512-NK+6RGbhMEjeCVIS9QK5urxs6TcLFwy4tnQ+cVC2puT4+OA9G8JQqhlje/KaNUeyBx74vVoFXU/9uKiQRLIchg==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420053507-ac78edf2-nightly_1681969162019_0.20691062296527396","host":"s3://npm-registry-packages"}},"0.0.0-20230420060121-36f39072-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420060121-36f39072-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420060121-36f39072-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"d22d060f306f4e0f5e807b25123dd6d44ba9354b","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420060121-36f39072-nightly.tgz","fileCount":106,"integrity":"sha512-pV1kzz/LvG8L3O7zeKsivt6sGT6PBNpy/emaE3ZEAZYxA/SAWb7d3DZHBhYRkIPpcdRLaMOYK4SfbBC7eo0Jhg==","signatures":[{"sig":"MEUCICKzpozVzXnxLqoMS0eo08/kJSIAvHmmJcFSLImVCtLPAiEAutmSGNvfsTx13Eg1Onmhy6E1i/uv0men1XrgnyOp5bY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQNYTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXXw/9GzBPohNKClcr/qWAgURtHMz2tN4DKI6ZgY6dyHhOshJ1NcXj\r\n8Uo866+o811U4tWMQYSfhl5ZNx2yBJ1fpCwWSrSONtZrygPq/mH7FDw6FJA7\r\nZipH/hoaHsgJ84KhumXEsg/dWIKAEL1XopKtCCaDYKh1DTJZZ9n+JWe3w3U4\r\nwmtqnIxl3et4jfgDYK+GoSQk1yVnprn66o6P1G7+OScHHtV7zde4G5FArTR8\r\ndpBJ2JqXttLx3vC+ULOan6DNcfMlt09JX6DBb5Ls6GMv0xUm+zMPRIVodaFd\r\nDGvO909czz12sqfdFD8IzVY5up25ePAn6vxPc0B9jeDRseHUk+HBN5Ev73KK\r\naWgsDgtpEwUdfxdBaXPnt2SbDAfl/mCoZFLi611VpxlEzm/lX8fUiSr6AK0i\r\n5L61aT8ffTfKDDkZ9glNZVxlSnSiwWxmBzmZhCeAecKsUDKPTIWY35RyNzXA\r\n5ZRlSzQxJsNk4tNTj+3Ugn3H+0M7MmeGT91XEEoSOXysM5svPjEAve0Q5/g5\r\n1/y8lcaI3ZgWgAEiMrlkCwpA7zE1ttfJlxFNOqSiwdfrt8ewy00zMDvU5Y0M\r\nOUoSOtAepyr1A1TczrLIny2is5FPmaIfN77xohP5KKKfKc/ChvoGOFGUaP2q\r\ngKvoTL9sscQB5QuaA4SP3DY0aTO77wxYm7w=\r\n=PKWH\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420060121-36f39072-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/8ecb3eaea0ae705f4b4ce7ccc6a5756a/blocksuite-connector-0.0.0-20230420060121-36f39072-nightly.tgz","_integrity":"sha512-pV1kzz/LvG8L3O7zeKsivt6sGT6PBNpy/emaE3ZEAZYxA/SAWb7d3DZHBhYRkIPpcdRLaMOYK4SfbBC7eo0Jhg==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420060121-36f39072-nightly_1681970707528_0.6946344296378184","host":"s3://npm-registry-packages"}},"0.0.0-20230420061122-b8699818-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420061122-b8699818-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420061122-b8699818-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"6e9a53737c02f26dbf29c845c8a5d7367aa14724","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420061122-b8699818-nightly.tgz","fileCount":106,"integrity":"sha512-DSVePdjNOq5o/u+uYqRbnQm4qcQSieCRUmHPt4y3JW8lHTnfpx+IiekEBX+xky0pQbDBgV1lkMtilL0wJM41Jw==","signatures":[{"sig":"MEUCIFGZ+EXsr6V/QfqW4DNvrpLFtk7/FBOZVYWiMCTavfr4AiEAmPq2oGdPRNH4CEPwWZgWBu67ArzGFeVg9jPvlwdDqWI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQNjzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrp1A/+KuX0JqJw450MwcMBXoPhFjo9+67O4MkAGTdQfsFTHgVQ/+Ak\r\nXU+wrELEi6/LUbycYHWFJwuqvMbloJqNZoXP5B7v4Lwk+1OzSMnUiQM0DDBA\r\nUuUsLDsG41gmzk9O6idEGzRymj1MQDYsRp0HBxsqWyvjR5fiY8g6FNypvtCq\r\nHXmdNsAcBtN83gJJyWg/0070WYfxsENxp7dF3iuwvxJxqE+hTDpwLJPCdkAN\r\naGz0O0TYaDEEbux80a5GuVvoI3TD9ck7jid/YBzho9FuDbqCrhosHzD1BqTM\r\nu3cEEuhn0qH5i5EnXeJ4yLB1Se2fyix95ocj8sHi+67DFi0t0xKOzF2bTzMM\r\n6NZwn8X/VGHZkwSjlIpjHWEgEfvkWilo2MlybzUU0OLZwCCgVTvbf80r2weo\r\nHh7seVEXCsrGxYRwHhsNiBmzh9QTALxlfBErVwu6JIEoM6+yN51lhSvWNjw3\r\nVKyETR2UU3CKkP2xEgFkykK6gmtGRYOhJF8q3HrFCauj2i6pdvtx0e7qpCFD\r\nHHxgu8wxRBMl4XonoLoZyPPpt6+Tfd0O5jT36v46tsjXtH3bhYH3wx3bPSx1\r\nvcIanaDdKQtOfoONh5dDRk+upgCEaFBS0AugHtckQ+RKAn0adKcCZX0Ez8AV\r\nx8dkv8JsgUvLLlJ6A1oJ+fqFIgAXV6OwZCI=\r\n=Uezt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420061122-b8699818-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/4847f9a31721a580bd4cbc9300e95fa9/blocksuite-connector-0.0.0-20230420061122-b8699818-nightly.tgz","_integrity":"sha512-DSVePdjNOq5o/u+uYqRbnQm4qcQSieCRUmHPt4y3JW8lHTnfpx+IiekEBX+xky0pQbDBgV1lkMtilL0wJM41Jw==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420061122-b8699818-nightly_1681971443587_0.63580143844876","host":"s3://npm-registry-packages"}},"0.0.0-20230420070517-e32016cd-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420070517-e32016cd-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420070517-e32016cd-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"0c0f659b8e6358bc980e3e665f45c2313f2114bd","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420070517-e32016cd-nightly.tgz","fileCount":106,"integrity":"sha512-r3XbCP2vQE0yaIrsZC59Ny5khKnKz10XEp69kUpOI6z2JbpG4IX5DGE6r4AhaXSScI9+wv7sLrkmZwqFwHS+uQ==","signatures":[{"sig":"MEUCIQCWwbvaiemjyUD/AcQncGz8joYGnDSKxV+Uk5jYfVFEuQIgJ/KMj6L2XOWAWAxBfBJY5OY3ODRHU64uHZdhrSA+oCQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQOUuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpjjA//QxF79IZ0dZscXc0lh3VatR+CX+epXEQ3aw0cNe0OM9BqDaiM\r\ne35WPMrbkcl0+UKPyZIaKI0BQ0PnoTNwfXrKprTIfbmfnq5ZRooRy2bAwfuV\r\n/eBS7rsxK2TVxiAEavJRSPQnv+mar5BrJ/j1ptTZYCSa4/r7esc1jbfDVFT3\r\nLETldilMMithTZatfgpvWW/IuKq0sMTpg1aMA43obee2xx9M6ns4KgAfZB2R\r\np14i1UoYNqR3nYT4vcvZVW/Fb3PI7mttRcirYaeKze8/S8kDkSdSeOX6q4lf\r\n/scUEVXzmPrRFlzQmXAq0dpltF5NNC+7w+d1B578inVrG8/eUChWNWvIDSNq\r\n6ce1sVCTqULUORdnjYbHER7cWL+sZUK4ftqCPfdSd8+iYt1/kxDqsqNrTHyS\r\n+b3sbgxB91dc56wYnG/jgr1yBzZhIz5uN6WbeW+g606BohdbnKaRBVqOKc/i\r\nBLkD3hQiFRVLn7GgylVIXsSd+RG1uV7KjnhDWnZraB1AXoBZ1V/a0pKjCXec\r\nLsTSbLGwXYF741gV0IFKBplCKXzOXHvlsrCZvNJLXKk8++rTSZoGOS4cm9AT\r\nhvWnlyjfFNNWkqBnF5cxNPgxKqkSgzIkBvXMCms9QgzoTKhdHL+xGOrLxO/9\r\nG+XPHmlxh79V4qjIKJBnmTab5bpda3Ue0oI=\r\n=Ka6k\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420070517-e32016cd-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/f48da24a9e403f801240215562256d0c/blocksuite-connector-0.0.0-20230420070517-e32016cd-nightly.tgz","_integrity":"sha512-r3XbCP2vQE0yaIrsZC59Ny5khKnKz10XEp69kUpOI6z2JbpG4IX5DGE6r4AhaXSScI9+wv7sLrkmZwqFwHS+uQ==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420070517-e32016cd-nightly_1681974573759_0.05902447107352038","host":"s3://npm-registry-packages"}},"0.0.0-20230420070759-dbe39fdf-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420070759-dbe39fdf-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420070759-dbe39fdf-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"7d1ab0ef40658345c73012e1851e49326e84b2a8","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420070759-dbe39fdf-nightly.tgz","fileCount":106,"integrity":"sha512-RRHxWOmO0XABCcMVERuYdC5LcRsxLIAdUXKjCOuvsKCXeY5KGkxoYIeqFcQ7WbUGp64cXGeqAP1kuWJZpSLlXQ==","signatures":[{"sig":"MEUCIDqZMRkp0w9Vi8nmmFLtnsroZjbLkNO/RkOPMcrso8bSAiEAjHp2DlqpRx8o+uNDDgcE15YO8DFAf9/9FjmWHWpETvs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQOVnACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqxAg//R6PEWFrL2N7QkKkAi/sHVOuUcn+xec/zDXDNN3fFhjvMCqNo\r\nqbGaP54SslPD7r/LePoi0QUTGOm7EBTniM2dulUMXkc5Lubh/ZGVoJcTxS53\r\nzQVS1CISyLGm5+SV38uj+Q8pz0D0RLgcwx8ytuhMW1U8DlRFa3j0w1/it27W\r\n7m9En7p/UHnOW0c/f3Uxdyz8I/e65+uEeY5VXO+q+/0o37inBnAaa7DH+jlT\r\n8FNL41Rmm92u7tWAFsrbw2w9VeFb/KS60yf3GiQoHtl1BpytIr4sA4ipU2+W\r\nR5zpg1te7rrCknpI3DJtx8P52uKVJVXDWXGAAA73dVw+5hjN/PvY7ju5heRt\r\nTZBnUKZ6ZpVvPJwlJff9msBRF8NbK+nAUqNw3VTYY90pKgmQSfLtN80Wb4JJ\r\nUju3z3qkUZ1w1/ciPDFzFuaOzsvgmfie4zGNi78MHqIla3aOg2pTp4KH1fSu\r\nSo3OTrOmvGKia+/q6tIBqESPyKjsAkDwS7o14AyY5m7/z8yayg5+afu7iBhj\r\nGxgfCUxwQH2yAK9+QYSQgbTg8qTVh6/ZyAmM+0ohdNxZ4TjTmqLmnL/5bjM5\r\nLoJVQMmQ8HkWLuol7sCg6s1qmlk+cgHxouxo37IRO75r2PwmiuieoK147zSZ\r\n57A7+JP+9wdtW2po3WPv5U05jhW1am1NLjs=\r\n=Sm1t\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420070759-dbe39fdf-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/e5d038bc09293f457413d322d171dea1/blocksuite-connector-0.0.0-20230420070759-dbe39fdf-nightly.tgz","_integrity":"sha512-RRHxWOmO0XABCcMVERuYdC5LcRsxLIAdUXKjCOuvsKCXeY5KGkxoYIeqFcQ7WbUGp64cXGeqAP1kuWJZpSLlXQ==","_npmVersion":"9.5.0","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.15.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420070759-dbe39fdf-nightly_1681974630958_0.03659286403691775","host":"s3://npm-registry-packages"}},"0.0.0-20230420160324-857b396c-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420160324-857b396c-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420160324-857b396c-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"92ee4ba1fbc3ab0b2874850ec5265f7a0ba4bfd9","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420160324-857b396c-nightly.tgz","fileCount":106,"integrity":"sha512-Y6YrBE+QPWlXIq2HF4Vvc2iAdvFHG8HYB44pGZlq5RRhZgM8dDGZ1vwCPcjqVuHhTNwKJwhaWXLuJkRIXdi15A==","signatures":[{"sig":"MEUCID39GZrl5OFGL5gscj6w1rRM0rHsR35asTBb7Fr0CKzrAiEAzzZHF76Gs0cPTfg7bK/0stu0Zmceqj5ukiO3KMYYYRA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQWORACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpuUw//bpXFUOm/0RSSRsQFbewi1vl/z9dPXb10+AL0CQ6xEfX6CtqD\r\nCTrvDwpDs7J8FGGSvWqbTs/9G1nFY7ty7ZKIDPp9uIF7eaoxWJ5V9lGoSl0f\r\nFH3On5RiK8mYGPphKO9OhD6NbX5oB2ectBQAsaYpziT0Ndb3tCjXv1qjHx7z\r\nbXe2OTN5q0MXIT0bIndADI2jl/N4fwrXL2XPgD0xdKysrheTF5T3aJrnbY4L\r\nd1YURBnGrQT2afup6aJTUl4YkmGSse4cTeLeDNz4JH3JvlIzILePku5Nd59r\r\nhZiQNi4C+JFu5vCo6J3AQSIsDbu+6ZcQ0/1rIwxYQw3/FgU8udnMLecSRF7y\r\nEspq+qJEr5AUyItHXwWI3+9uKRpEvlaIoJqBryNbfDbIjjwBn51iGwKaNBVx\r\nQ4pIVsuSBL6NNgA1YUZkM0bqcb6oGibVJRU2YY96XOUsiQghvsh1m6vzEWQh\r\nBw+nG/FflvXZyeii5buPZ3NnFDB0Yf+vgkTJ4SLb646yarU4iljV9EPORtQt\r\nteEUzGghGFRVXE4OOu/vRTCfSdGxjOyp3PanK7OYsVlg+OfMVa617kS3Uaf1\r\nNpsxtDY5q3oC4a+uanTwTacvMLZeJuF+5w7u/crV2VLTJ5ePaXm+hOgrPMK1\r\nACp7B8M3u0Ai/HwViUGatTkrVzXDRLjc6kM=\r\n=LpEq\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420160324-857b396c-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/ed3364f8bc71d34637792810ff694f1e/blocksuite-connector-0.0.0-20230420160324-857b396c-nightly.tgz","_integrity":"sha512-Y6YrBE+QPWlXIq2HF4Vvc2iAdvFHG8HYB44pGZlq5RRhZgM8dDGZ1vwCPcjqVuHhTNwKJwhaWXLuJkRIXdi15A==","_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420160324-857b396c-nightly_1682006929665_0.885001002298853","host":"s3://npm-registry-packages"}},"0.0.0-20230420194752-2980755e-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420194752-2980755e-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420194752-2980755e-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"59c0b695f58951525f257fd519e6a3a83ec9af55","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420194752-2980755e-nightly.tgz","fileCount":106,"integrity":"sha512-VoKu+mPZKz39Yk1GlzEqVS+6B16kLvhbkyhtsHbMl6zn+bUejeTarkIbpDBkRiYb0LNvidukjPmfBIOX8gHwUA==","signatures":[{"sig":"MEUCIQDyV86fd8zAcFGTvE70t8qek4q3u0degCGvsoHMevyDZgIgKpADbTN+QE8XmkwwU6oo4QS3ctuZbSvjCp6LcZfV3b4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184703,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQZeZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3IQ//VUc8M4+NZohdJQO6PN1oUVLEfSXjP9uqMFxnP3vYSk4JTsqq\r\nRNQ0Ep+Xx2OmS5ApBfT9bnFz4JgyuEK2OBsjTOKYjbcw+zW5lV0IAMDyF+JF\r\nboCKpWO0Z9MKbS7cr/MxLZLe2ETGfxH1FzaG0+3cENubYc0PngmG8DWRYCK5\r\npbSoiNRGNqw4mKY0Ujs9yuSAyVSvL8gQlP4GkySj21CxAwBbDYRaZBXHdWXN\r\n4F2Mh7uNuEKdKCpW7P11A56k4L8xwioLLhs6Fhzv2GlU2h9+6gYeib0ZhobZ\r\ngdiDjevwo2JLciPxKVCebMyNotUxymW/F6rbRCnPshJOSzagrl+ftjJJLi6s\r\nvRsZRa6nrU1ZoBg3Fts+TVs1ie1jcbMd7jvxH78lsjMHLhGhBSFl/dwfTc/M\r\noQr4Qo1Y6ugBC2bmEj/GaGNm4+vTonXBtqKQQ+j+K/u99Yx/lBlNC0RdVM65\r\njfDHaUHoYKr3XI2STvRDRUCvAKAe+aPtpcgZ3rfDz85fWjB0oJM0OtrbjaJL\r\nQSjI5ccWZDyABT10vuOEUKLQWxxQ5vXt2aLVKNqxVjL8AwdsfMZ0YsvsbdnH\r\nrK7861H//AnF7aAxteAlhQ3/kzIFeJMpIs79J5RhDT1YH4NsWOiYBZzhJy/m\r\nkuOOj0sOaXOf9GyNPEuqh4ycvtFBDQooZh8=\r\n=yfYa\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420194752-2980755e-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/a9151f07cb3201faf5021a7e837cfd22/blocksuite-connector-0.0.0-20230420194752-2980755e-nightly.tgz","_integrity":"sha512-VoKu+mPZKz39Yk1GlzEqVS+6B16kLvhbkyhtsHbMl6zn+bUejeTarkIbpDBkRiYb0LNvidukjPmfBIOX8gHwUA==","_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420194752-2980755e-nightly_1682020249279_0.6464457941642494","host":"s3://npm-registry-packages"}},"0.0.0-20230420210727-85b7de79-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230420210727-85b7de79-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230420210727-85b7de79-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"0277f6211f3ea6cef32b1c9e4522bc119f99f3d7","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230420210727-85b7de79-nightly.tgz","fileCount":106,"integrity":"sha512-USgoLPhnXqWYURI68A/g9JY/oA/oWGGTHSsgW5FQp3HF3fTTBvQa9Ev4w+QdiMQb1hcgyfEp3AKSd7F5DAaEqQ==","signatures":[{"sig":"MEUCIHvWq2jIg5mbteBbPgkRjTqYkBk+ojc+yKjN+hocoNixAiEA1ycRolM6SkEfsr1f8wTOx3LbMI1XaoiQDyyGqTe/6TA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQdelACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrWLw/+OMaMCiMopgpe/hvRQqQ08qzFfvRSGKxRuZEeJZHxPHjRLljt\r\nxc1hPuM0XJB2xVRXFBkvnDysrTNs7xW+FQuYD9NoB29hjx+EKndKxT9bs6yW\r\nKxHBAgE4ZPzsFyXjxiQoI7Gax1laQzqfzpwYaohNdrXkF0Pxvtd9gtOTjxwG\r\noM04bwYwDWbmQJULb+jmUdqm1aEblxrwJ4C91yUnWLNe0U0gFgxBUATmDP76\r\nXR3MisFDX6i3SyxKKc/s5o88HjJlapUgRAzdz39kI4E6mfllMiVF3LbgjqNw\r\n4hfm9BdKRLfuXX/ZD49WhHEi5Vr6ZZdojwTAnjCie7Gla0m7phQtVlgJ1PFx\r\nU57J+nBret90tQYxItiTuNzIqycZFdVvw8odtVemodLXT7EK+4T+FZrtA724\r\nvKGrOr0+1FT8RFzKYxjSFyJaSch2u5e4QuDwQg4O6RTafXAVDmPzO8CIAycF\r\nPymBAsVfbXcWqf92JVj8dRJVAyH2hH5NUHIXNAuDBzDpSrhvYwUXOKusMyv8\r\nya8ZlM58nxberMPr8wj4HYjYWKPox5L0ofv1sa4Y9l3u8DDEV62QekEnrYsx\r\n3AkVPKQXFM0PeUgwyb6xhPt+s3AGzXSYn7esfBzWoolu8LXo5L/bP+VEq92L\r\nXCGgoIcGvHKlm7X4Ki4r/8T0yX/u5L8PfUQ=\r\n=JKg/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230420210727-85b7de79-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/8a3e4768070a5872c213bf7ec1a19de2/blocksuite-connector-0.0.0-20230420210727-85b7de79-nightly.tgz","_integrity":"sha512-USgoLPhnXqWYURI68A/g9JY/oA/oWGGTHSsgW5FQp3HF3fTTBvQa9Ev4w+QdiMQb1hcgyfEp3AKSd7F5DAaEqQ==","_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230420210727-85b7de79-nightly_1682036645464_0.593558136700052","host":"s3://npm-registry-packages"}},"0.0.0-20230421132835-1c52a918-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230421132835-1c52a918-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230421132835-1c52a918-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"dist":{"shasum":"68c2a7bf19ba0ffe5bd59669b9292941fa61a46e","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230421132835-1c52a918-nightly.tgz","fileCount":106,"integrity":"sha512-IMeDOBihvqpHzxfadEvDrowzm2xhx0Z9uovYfD8ytrfJ4y5Fk/sWmnjh6QpYLsb1go467V1/AD0LtOK3GZmDhA==","signatures":[{"sig":"MEQCICU13X6SKue33tviCgm58HvhxS5zRWAqoHEO+DLG3kJiAiBiAySDkbN5iIZ+5oMC7kJ/Jjc/7GkUvUFcXxvQIKsFnw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":184931,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQykiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmro6w/+OnwFH/a9mVq1t6XwDfPvSc+M9sZxYADN3Ie+d0HOpubIz00y\r\nD5v/F3MDVXREoEDAnU2aa/XON9qSz15HXX+Cu2+q4ul8e/veyDLiVzBVvnM0\r\nn9aE8VR3Nvd0xw2zLMDa1S0PLhgXU4ju+0B8PRpfjOdAx6x7sFU+bMkH6XZm\r\nxwVkoWhqyqcrWrsnC2LavuOT63ncCvnpYJr5TqISwGyGxRPkA1xNWj6LBliL\r\nMs6yVfF12vqVgypx0khWf5v75lolrk/+gHAyzBZEqyuvpvjaGvZfN7ZHTEs7\r\nRvSv7rlSKyAKOFlSZs6xIdkrBH/urp6IxynyKsguIJR6L4G1RfwdmGxVEDqu\r\n27FKleyd3SoNwyKldMeYOdxkqk3YYeRuf/+Le8IKimGaVGUHhxu0zNFIxOIe\r\nTfNqfDjqie/CBcQtnr7il0TQK1VlovC9eECxhbbHX0KAGUR+TZEuQ1ut1ac4\r\nNA5a8EOxj/EK3BmLFQe1DVenK7JnGZ72E/WXMPBT+uj9/bPc+sOFzjBeAqGG\r\nnQCKeWQVGKKrM12o1jqBGMpiScFRAuxreraV2McanAvkZ2bleAjev4J6gOmD\r\n4srMHdIUnrSVYUSMl5fiRPWDSZ3CHw/GvudIt7QZ2HRYiIx0E/f70AQdMhaL\r\nsxOdpx8XqvgEGBwY69NbS9+iIcDFbF4M1/Q=\r\n=ly3+\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230421132835-1c52a918-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/12e9902ad5edab2391e501c8dcfcb474/blocksuite-connector-0.0.0-20230421132835-1c52a918-nightly.tgz","_integrity":"sha512-IMeDOBihvqpHzxfadEvDrowzm2xhx0Z9uovYfD8ytrfJ4y5Fk/sWmnjh6QpYLsb1go467V1/AD0LtOK3GZmDhA==","_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230421132835-1c52a918-nightly_1682123041873_0.811033834674117","host":"s3://npm-registry-packages"}},"0.0.0-20230422015719-7b64b527-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230422015719-7b64b527-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230422015719-7b64b527-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"2673041d47e0cee2d414e1295d5cdf7ad76bc25a","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230422015719-7b64b527-nightly.tgz","fileCount":106,"integrity":"sha512-yi3s52DtJo8JFwQT2+5snBvbWHZR2K1DhvmAw324hJB6O8/bqtRFYiIgSyncaNQUr0BhWSeZ15337IBVNHaRFw==","signatures":[{"sig":"MEUCIQDYb4redm43ENK4ZIPp/Ji3t63sJpks9uda3qIjR7jrKgIgbdwRMJPruexFbjoqXKcgvjgmwZhoaP6RIqCSbUA2LyY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230422015719-7b64b527-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":184974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQz+iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGsA/+MnOA/OZ2AYtJh151jhFRWojbS0YkbASSKQjdvkAKcp0j6xCM\r\nn+P05wkZ8VTmsq+mqCLyaT4EjtJPyypWEVRKbIW8MpLIAqgaYah/jhX7UsWb\r\ncV0Wr+xfIV2GKZXKTyyvHpCE5tqyAFufnZA0wxN0fiWkIbUVTnDZfVZFg/bp\r\na88ZXD2o3w984z1c4NzXMTsAdtBX9H3NEB2AGyAyCFIKGq+jalZJXqxSpxnl\r\n2baCHlv0OOzgJ1H+K8mf2y6ITZl/4WgsKNUPIqnT7b194MEVbTcOAjJP30iJ\r\n7zxwlwgZhncv2ig/YjPXKVwNJq5E9KWUPDrG98/+lQE7vdhVBw5bYNNnjTqj\r\nTHRljF9bvFmmIytYf2QGl4dKT/JIbzdVRLQ1RdmzZT4a4SAqfh5e1crv1hk9\r\nHy5R+eqvdPXdhSazWJwKBDMgJ9BZ0xrdNblLS8kr/9TP8gedIch5Q38qqQRY\r\nHdIB1qXDKSOKetlk9/jQbz13HPBUzFSauy2Uz6hZbOx4Fcly7xVA/LCM34dL\r\namPM5tIAxBFoRYml0mfXOSBetIJ5+SL/W4W0uhfEdnAV4bPgMJ2nHQDwAC2+\r\nqqGORxW5RLc4xXaiRWHwT9vw/sfReOVH1m5QBOUu+uTlfcKDa0TfOc4XI7HZ\r\n/IwMFsb43w3Yz9IlaPpA0A/sGZIskqejUi8=\r\n=uszb\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230422015719-7b64b527-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/74e9ebb19ec9f1248066fdf11b4ea221/blocksuite-connector-0.0.0-20230422015719-7b64b527-nightly.tgz","_integrity":"sha512-yi3s52DtJo8JFwQT2+5snBvbWHZR2K1DhvmAw324hJB6O8/bqtRFYiIgSyncaNQUr0BhWSeZ15337IBVNHaRFw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230422015719-7b64b527-nightly_1682128802253_0.9169575146161433","host":"s3://npm-registry-packages"}},"0.5.0-alpha.4":{"name":"@blocksuite/connector","version":"0.5.0-alpha.4","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.5.0-alpha.4","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"b7778ea13794a26b193905847d51fff75e6876f1","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.5.0-alpha.4.tgz","fileCount":106,"integrity":"sha512-IfI3NLKV55NpNrfnNZ6b6aXpqQibISU4BKbZBZqku+2/iQe6/cDP5qBDRykYex2iN3kNDp6mVSJoVLZ9BxP/GQ==","signatures":[{"sig":"MEUCIEslKvh+KS6qi1eFyV3hJRHo7nK3PkEttWdsOUd/lHkVAiEAlF/n4iCZcqfAqkPbZYdb5gzY1TUHgEf03Snmy7qUpwM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.5.0-alpha.4","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":184950,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQ0GCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo76g/+Np1vNoReGO4unOppcVoQFMoQTMS2MC+MNgU1xFcrq+xHLFQI\r\n6YNlGFKa6GblViIu6PAVvGRtFgis5hI84E+MAiopCNh0YCSIOmLJIImGX8xI\r\nKmJWU2ei7cBF33zkm+A28zEfrouAUZMLObdaTVAUsGPUafW3lDWSUKP6zfYr\r\nzBiLOqYNe4Ffb0mfsrvY3EvDItLRzBoP/GZdm7sZS2ulyPWtEpEh0chKULsw\r\n1+GlRq3t4Y8OFUkdBI+foiRdDfhHV/7KHafOdAVHPpLV3fbd5XGFc6rj6+TQ\r\ntcbIkznV2B0t7dmyQcUFND++Ivrkr35OvZSiv64ZSysY49E/jP2oJFR/J7IZ\r\n8KxOche14xfwhYlncD0OY6SlTz9BkZJlPDR4/i/28T3e/QIRqBM6OZx3eE0l\r\ngFzosrA9YULBrK6mFLywPWOxtgpVj62d7Kp1oIjS12EYHIh549THAqKqL80q\r\nI4D48MhGnoAo5ZpNwdtcwM4Yty0R+tDqOubtdSnzrvCtHcBoLiGv0hMI+GSN\r\nuAOyGEJbTz7/oolZSmLHZCRUxNUhIRdqjT0g80Xj5HMze8Uq4KrtBzEVzL/U\r\nNAJhFP/sOVFBAJbnu6OQR5uPKaVqDWHnRohJiSUIhpUDDoz2DVGX06pXd1m8\r\nXezceVePJyyJ9hMnKJXgcEGWYYR3U5VV8oQ=\r\n=MD0/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.5.0-alpha.4.tgz","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/4f480b4905ae45da3a4fa47938c76502/blocksuite-connector-0.5.0-alpha.4.tgz","_integrity":"sha512-IfI3NLKV55NpNrfnNZ6b6aXpqQibISU4BKbZBZqku+2/iQe6/cDP5qBDRykYex2iN3kNDp6mVSJoVLZ9BxP/GQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.5.0-alpha.4_1682129282389_0.4306988130228877","host":"s3://npm-registry-packages"}},"0.0.0-20230422231131-3de18e87-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230422231131-3de18e87-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230422231131-3de18e87-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"1cc4b2f8a2a8093130018d3ecfd7af09308286e6","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230422231131-3de18e87-nightly.tgz","fileCount":106,"integrity":"sha512-C030r+J1Abjb+LxEgXqG69DXv23nYRgHui2DqZQ7ixgpo7Z/Uq/Q4NpwPb0AW2AzQmMCUJZ9j2XPujlyqo2B+Q==","signatures":[{"sig":"MEQCIBCAq/PPPVWJbEduqYMZawow6jiWOZMG62SJ6z/BLYtlAiAwvyCetzCINM+Nv25f9Sj4eo3mN3AH4K5wcRsgNMv+aA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230422231131-3de18e87-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":184974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRHsWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoQvA//Tyrwt0vEBBYXbn0eWl0ZykRmVtSaodNKzIwWsKNvue29Id/d\r\n2dVnpZ5DZRxkMqnO6+iSozCye1UYbxBqdpVJYZOM5DgYwz2RzzJQGqvwcfXO\r\nc8h519Cb1TBhrSkah6RQLc145d1qcovynmkAHid+CxktyDf9s96BXZq+7dWC\r\nay0VCBXJ8bfaLjM5rTR26COCLpPUdohd020jv9Mfc0s+NsbE4cbUctPQykC7\r\n0Hsgt8Ors02gntqrsKr8jyUbJT1tTW2ZEijFzxtD8CsHFjmZulw+wjDoVreN\r\nBJZadtAtq6kbtzTigsMqClAf/U/uGN1H229brmoiT/Ziv4zkMSCcochsdRNy\r\nSiRyzLkO3+ASw3/OPqpRyHc3g/AEuzie3i1Ez4sGFtZ1y09W7+n60kMufigo\r\nKvmOkyHGgfAYEwGVA10TO1SAIhVX2S/khOR/ywPXVnE3dK59XtXBt1yfswf/\r\n5ttPENvMZKnPhloQzNRpr4uxEE1pDrv7TpibNPnFTCstJVKzO9ynzzAzqE24\r\nM/f1pwumHhhRRR4uhtcNiiaGX37NmGc8cZpp2w01t6jlpTwE/4plqd3EW5hI\r\nTVcgjiVAYaJdk5dvPYzT7QEHNLmmk6fzgP7C6JOMniFLn3zvmMs7OThuQz2z\r\noacafa0shLDXC+56JH4WXjx7sHVQqetwE7g=\r\n=paDE\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230422231131-3de18e87-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/d7b580dc32bda47fc632a12e5942a2d9/blocksuite-connector-0.0.0-20230422231131-3de18e87-nightly.tgz","_integrity":"sha512-C030r+J1Abjb+LxEgXqG69DXv23nYRgHui2DqZQ7ixgpo7Z/Uq/Q4NpwPb0AW2AzQmMCUJZ9j2XPujlyqo2B+Q==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230422231131-3de18e87-nightly_1682209558256_0.05603437068710737","host":"s3://npm-registry-packages"}},"0.0.0-20230423223855-b6c34d9e-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230423223855-b6c34d9e-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230423223855-b6c34d9e-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"fa9d91a975d076caeac22cbd024e00c3da33824f","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230423223855-b6c34d9e-nightly.tgz","fileCount":106,"integrity":"sha512-sQikiNAoS/CrYb6Z3xuqLCSlklMgKe6R+BmAxWBUKJD1WfJ4vmK+QuFU4HarxeKegCwnR84At/Wq9nbeASKXXw==","signatures":[{"sig":"MEYCIQCnNZ5/pl9okNpys0n3+mLpBon3OSRGevyVpz3/xbGbmAIhANg7XnxhVmNTTUY57yEuKPh1XoGlVn8y/f7gzsLLck48","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230423223855-b6c34d9e-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":184974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRcx/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqfXQ//RLf/kuoVlsuF/huSw2WX2hf5zJwIrtoyoiLmcu1Ds6GphNWD\r\nSw5H/cT2faApHnQ23LNVl3JPS+tVaWF+ilUV3u8JQEDIj6gOrDn0nHhFvaJ3\r\nE3QUPVrSbvHaTUd+mu1tozybKMGyQzCY14A6axdCey1lFvNAmJZfU1bp6txM\r\n8SgvTvntX6ydjc2U94SSfUkHMAq3yXEDn8mO050qqQ2yRBhArFZLoSAomoQx\r\nJ/H9WmhS1+U9J24sgNCSxuzj+j4YURE/vSNIpxERC+mFPd4Bsxmz+WCEq358\r\nxopFBT3HIbj9kMpZ6U4AcbrYgzvPxoaPklUESsWOYGsdTJ6o49RCv2I+fnss\r\n5X8FCx8sTFyhtuWLlP6OQ5JtI0JCGBA7E+e7/9MfCPwD84UCRsubEi3FhVWC\r\ntokWlmolFMuQXuWTscDKR27BmangmHBEKi8I6xI4oUIujbhzQCnIFQSMXviv\r\nXpwd0hSmq3yqNVwVXaM+vMrHhF2dW6E6DCq7OqZATvO0HWQ4065ZdsDJKREr\r\nmrrcMuPL2jRzUQDI2bh2scY4GuzkRS/DSZk7QBVGW0PlOX+Ny1g7kWtaqpka\r\n0n4PE3JcSlr0pd18ZVVulwUOQLoGpBGM1tRz146EXOFZZuuhtng+ACss8Mgl\r\nHR28WQGwHHGhY23tGiu+4xel1u2MplDUEy4=\r\n=T7d4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230423223855-b6c34d9e-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/9b193750c9407ab9e695bf203a8beec5/blocksuite-connector-0.0.0-20230423223855-b6c34d9e-nightly.tgz","_integrity":"sha512-sQikiNAoS/CrYb6Z3xuqLCSlklMgKe6R+BmAxWBUKJD1WfJ4vmK+QuFU4HarxeKegCwnR84At/Wq9nbeASKXXw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230423223855-b6c34d9e-nightly_1682295934912_0.4550001505294139","host":"s3://npm-registry-packages"}},"0.0.0-20230424194949-ff9cc9dd-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230424194949-ff9cc9dd-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230424194949-ff9cc9dd-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"b8a25849338c5c0cc1e90c60aa9161bfd0b42b34","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230424194949-ff9cc9dd-nightly.tgz","fileCount":106,"integrity":"sha512-dhpfk7/0C88f9CKftPa4kT5mG71RF73XdcMCMZiuV8/WHyYPdyWak3MEJb+1gfP9WMs9I7AlJtODlNntemr6iA==","signatures":[{"sig":"MEUCIBgoIjF58yI70UDOkhKtyEAmeNIXXjPeQRESHy5vQZ0hAiEAl588bPcR4usCRkBUpOmKasJrrNJii+bNMQ5TmeURdXY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230424194949-ff9cc9dd-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":184974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkRx2gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmryJQ/7B32KhkqLRZBhxheclDAlrgIQe0L2jE3p3cc2c+RvgSafcYMQ\r\nskXtsKRWd9WcY5Lxa4XMsqeZUs7ILULbwZJGjaMYEKvoolunJkh0+WwrxFZn\r\nKEc4FcrEfyYMuizYYBh32JqYFsE/x9idt1GnWjB44iqhZANQlDtLQOp80jKD\r\n28Nr3A6o4VqBPg64iSvMyI4Fc2V9hYzA0VEn0aaX4L19jA9AVMTfQd1Dk9Z9\r\nr9xPpvY5UAx5OLYOrevTBDYYLcuungttnGJmIGiIXrcCH9p9dFlAezvapVus\r\n/m2aPwnR59h59DTU5LE14qixP5R88JjEMmsSfIJvBTRUUvnWX7BNM0Pngrmr\r\nlQZD6kBWnZfEmKTUc0z0RtM4DAGEmT5z7H0ulOJjnH5rjprmTqicvrcLpYED\r\nl0P8i/HtyofSm+1rS0tu7DsLNzNFey7fSJhZSOjNr3xok8eT0zZT2Ea3fZtM\r\no7nZ3kwM5hOy7xqetfHFWSa6Yhkc0PZbUx06Rz9lFWbf9rWxega4NXnrhkfF\r\nX5v9GjOMvCZYxOB6LFkyNO+Eo123ENB/F+pCmdxSjuvzY3LgqHvXL9CPiDpp\r\na4ujacPDj6ZwkN9EG2olkIDpFrYUNSMazACCp+xtQ1CLu5splvykitwCrolO\r\n1GUiAWu1jqVXseAGjhHa++BN5UTrw15Bt60=\r\n=mhgt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230424194949-ff9cc9dd-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/af3ac147ee3f772c30c19f732970cbb2/blocksuite-connector-0.0.0-20230424194949-ff9cc9dd-nightly.tgz","_integrity":"sha512-dhpfk7/0C88f9CKftPa4kT5mG71RF73XdcMCMZiuV8/WHyYPdyWak3MEJb+1gfP9WMs9I7AlJtODlNntemr6iA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230424194949-ff9cc9dd-nightly_1682382240111_0.2386971201555348","host":"s3://npm-registry-packages"}},"0.5.0":{"name":"@blocksuite/connector","version":"0.5.0","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.5.0","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"e315eaa9886c0c3ee2f5d4ef226fe11ab141a310","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.5.0.tgz","fileCount":106,"integrity":"sha512-IUO7LeVJDlWF13S74VyeMlNmqI+QSRLmLljfpL9Qk97sbbTqzCED5Qtp8fSDMJNmL8aKbuHyH6+vG9EPDygnpQ==","signatures":[{"sig":"MEQCIHyGbM/yw9BYSfDOn+YtPqiHNMpWFqaywgYcJ0ea1LaEAiBrVHXxlrKlrN2IYiPIpYB+b7JhW3nFzbWg/6tw+myiCQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.5.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":184942,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSANyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrsQQ/+Iw2PVZsOMpkANznv5qnnEY9Ns9pPe2B5x5rcBoKTCMFFXvkm\r\nwakNDC9VwNxPNQWtNBG0lXJ+eZN3Mjv54uRDl4Szn+XKvHs2QCHkFrMnvJm5\r\n947gxuXyDmy62mY5IDiH8t2sl0serHKGTe7t2GJeJ5TDmJV+pAEaZHNzl0Ap\r\nlz0PfM3J6G2YIJwhaqcbZEoyTlp6AkVbF1VrWAVKNVPb9o9/w4EPRwygN4aE\r\nS8B7UNVU/522tRJV6JSl4iDgwfY43lu0hxl02q7LQLJUOkpIU+pI24SSkCH1\r\n6yX08J4Q1MVLKVtebS6syhdK7gh8DfjJ3hP+Ak4T+zol4q5QdLB08eYbkhG9\r\nPHDrix3PjktnWf1s6mtHcOTEX3YtEstnXeZHoDmfa13OYqBFDU2lB2ICffJZ\r\nMuN819OgIkI+3RXSXFXcHFSD6kK1dp76leduDBf+KWbhi2dhMVXO98psX26T\r\nTYi4HvZk4nkTj0jsaRaadSKG5DVWR93vQ+y564TYalTUa+T7umR3mkqMU8Wj\r\neji6J9wq3u2j9BGl/dFRdzTrmBOaqaikuZUSsPGsMMxTxa6cTKYm/4sA48vc\r\nr3Cat3r9C6YZAckBbHQR8VmuJz6yds5Md+ACUYa8C0hXqnfh2CUfmEIqgoBG\r\no8UnXjE9himPk4rD4N64tjbmyXqEFhSc480=\r\n=A7pM\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.5.0.tgz","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/1d81b544ba76d0d0b9fa9d67af016a6d/blocksuite-connector-0.5.0.tgz","_integrity":"sha512-IUO7LeVJDlWF13S74VyeMlNmqI+QSRLmLljfpL9Qk97sbbTqzCED5Qtp8fSDMJNmL8aKbuHyH6+vG9EPDygnpQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.5.0_1682441073684_0.9882248063965817","host":"s3://npm-registry-packages"}},"0.0.0-20230425164216-4b5fafd7-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230425164216-4b5fafd7-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230425164216-4b5fafd7-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"14c3ee084d89518b7146e756dc57058c4a4deed1","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230425164216-4b5fafd7-nightly.tgz","fileCount":106,"integrity":"sha512-/mfE8VFt5/t24V8WRoO2CwcDsHcK8RqCcV2ml1JLhkIda3ZbWguWfSCWiJEawV5zYxwlij5dOG2vM55YRLSdag==","signatures":[{"sig":"MEYCIQCJyBCWv/vd3dMYA07GAX5VLQ40yOkOC07rc0ydnQsTugIhALwf3RfM0fOVXZJxWrEo2lYr0LCHtvFUeIptppI8R+6D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230425164216-4b5fafd7-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":184974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSG9EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpo4A//Xi+Q5EqOwjtYesGFA3tn2MnxOAz0ouVJy0FBYq5a1wlVoNnq\r\nv/qEdudqDCXGWQvFgptR3Kb7P9ts9vJDA0Ms0vKuIPWTVjBUydn0nSSlpM45\r\nT5xrMQ76fOnC9wAjNpAYqfF+kE38DypIAM6/2facb3huKNKtOsE38LC2dQ/t\r\n7qUc44pjXKxYattVDVpXlF1tZ3mzM5jmJfB1urhSsfvbgCoQg4su4DYQYTWc\r\nxaExvuVPNG4CZbSe7zgrVRr+3swlJoja7d/69S6yKQoXYLU8QRRAzFTEpOce\r\nUuhwjxqXO/8XZZaRjy0sjMUc78IPpc69lDHruyRYcrqi6JvQscbtilADDswV\r\noZYmpEkFxoukEDxgsc8IaGK38uuo5T3fD0gwwuh5iToI32lRxRLCCPSlm3UC\r\nfKTbfbPJwoHRYvU5FSGZMKK2UU5Y5UoH7ivbhZ6whaQrwjMW4E3qHGuDe/lv\r\nKzSG2g4c2Z3wGR3f105/KJS45frHqWiOpYPt0xanabN3nHODz96A6NzpAPG6\r\nf0Fduo8Immib41aO6wZdIxM0dbNg90AQUmIXj30oB3rGwCqto5V8PYgIO9M4\r\n7TPGN04jAsRgstIHSOT1d5NPudeDCjKT9AV5BKHuHu81J7ZALZ1+SrM1p7h2\r\nKIzaZ06E5vg/lLcm8qOFpgH3hyRqmgDmpow=\r\n=Hlez\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230425164216-4b5fafd7-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/20ac5d9ed2d3b580e35e6d613420bfe8/blocksuite-connector-0.0.0-20230425164216-4b5fafd7-nightly.tgz","_integrity":"sha512-/mfE8VFt5/t24V8WRoO2CwcDsHcK8RqCcV2ml1JLhkIda3ZbWguWfSCWiJEawV5zYxwlij5dOG2vM55YRLSdag==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230425164216-4b5fafd7-nightly_1682468676118_0.2571106943102426","host":"s3://npm-registry-packages"}},"0.0.0-20230426054154-cbe3dbce-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230426054154-cbe3dbce-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230426054154-cbe3dbce-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"c0665d0a22749dddc4f13f0ad5be88bef78aa6ce","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230426054154-cbe3dbce-nightly.tgz","fileCount":106,"integrity":"sha512-d0YQ8C8a36drbcPSOCcUYHP2gGcOr31EUj6iaBo0uhO+kXzImDvULxj0ClNk6Rm4B0v5Glv0BE3F8hc9vTafGg==","signatures":[{"sig":"MEQCIHAo9hhYINryfwRE5ZYEAItPSGxsdMrlm6E39N5tarzkAiBIxju667wi7UVu6ljqrdWtBnZ+NlkAXAuVybr8DlW8rw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230426054154-cbe3dbce-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":184974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSMUrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPhBAAgp7nzn0mssvcqCwluVsnqGqsgCDrO11X+12OP/uFrJbO/P2m\r\nQNu5D+zB9r15SNH1uYph8u+O40CkP3vvbiT43mCg0hE+iqVMZzKOoY/8uoLg\r\nuBGlrb9+Bqvd05BuJW9ohxD6uNS7wDkqRyf9iPELK5uEjy4BXFOXY5mFxcMI\r\nHniWFTIcWe2EGNuuvHAP7hOq1vSwR07xA4aeCYpaB92op37zZWp6Ta/LRZkx\r\ncJ+a1OCTSa40Fgs5+g+HD9JkP11/lT2hlzNJYbIohES/dZB1bhTh9OfEhj7a\r\n5QKovhEEEhdkaZbMR5H8Wak9x27KlrfMY4gj8NHfH3Fre7STN2jFNzArBSUc\r\n9r+T3XyUk1Z/IAqrqH42vNxqgWRkLS8a3kXx9q2NcvfcS6/m7W/hwMjSRGVn\r\nwxgI2xU0tOCZif55YY6ZU+Rq8m4hLMBHoESCsAvVTcOT3ZxTsHHvcwArx89p\r\nLLUKZmQQ9MF++AScP7TpoC61sh0zkJ22oQxTir7G3tHRLnuIcjU/f3f2g3CY\r\nFVHNFOsCNxEdUnEXnI3KiDo2AwTzPtJ511Uxsl97+wbQ01BlYFZA8BkjSCnv\r\nFve2zjqto4RO9/LaNKcttIpytpRxnZSpDpokqMPqC2dw8DwM2KSiyWl/DeJo\r\nSoWOKeDSEXNb5kHr+G2weu0Xe8LeL43zwI0=\r\n=MTFp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230426054154-cbe3dbce-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/dd6c79685bf6ee1f5e37c604a004a006/blocksuite-connector-0.0.0-20230426054154-cbe3dbce-nightly.tgz","_integrity":"sha512-d0YQ8C8a36drbcPSOCcUYHP2gGcOr31EUj6iaBo0uhO+kXzImDvULxj0ClNk6Rm4B0v5Glv0BE3F8hc9vTafGg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230426054154-cbe3dbce-nightly_1682490666772_0.5443087015394799","host":"s3://npm-registry-packages"}},"0.0.0-20230426131617-7a934ba6-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230426131617-7a934ba6-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230426131617-7a934ba6-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"c6b4072c5cff03e1eb95a1a451282b0931d823ac","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230426131617-7a934ba6-nightly.tgz","fileCount":106,"integrity":"sha512-acQzB/V/9pPGcf2G82ic5Ena+j/LMMwDrnrR57eqQQS4a0CDgxfPC6/9M+VgtJxg7xE19cbhjkTv1TlOrkUR+w==","signatures":[{"sig":"MEUCIQCeiKa3jvgsBI4XvKFER/WImzP0xTKlPY8KrgldoEN4RQIgOxQu7yM/6Qib59MiLPik+LJilcXxI79ddn+C9tHOdyw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230426131617-7a934ba6-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":184974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkScE9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoVeg//XogSL5TYGNbRCS2A80v755wwtYFPHapYXW+P1DQvi5Mw/xtB\r\nQU/WdaZaKspZ1CyrCZQPJHwPViPnJFueffvCye34riT8aIbugbpJu6CHrmqT\r\ntKEJi3CtYWc8lirTmb+InteEbKxx4UkaFgKA60qrpfbleZ4Rb0icBX4Ghv3W\r\nkL2hv6nPpJEvLj/deojJVLRXar3gB8yCUt8jKGKP0O7UkVAXiDsRPKc+dgX7\r\n/wz4AOjrk2I//JCvo4k7V8o6+N+DId53x6SLKjYAHvIEZ+hz+AxF7yveULbh\r\n25sv3RaUbx27GTn8fbDTItwhqnt7tjEXCZqtLxaCTu98DefjvRXFirY4E1Fy\r\nD35HmcgIdDzVWF79dxS6C7DPCu4vQtdNNbGV+3pjWD5csRzX61JiS1ZA0oot\r\nBlUXmGYox3R1stowvGu8Nr79e8OYfUSbc/bXuhTUDrDxGbllYyXz2hMhWksu\r\nm4Vkk03BAicfgG/DWRxsQOR5xnK0mLQoQWEO2Zk/G3uKV8ZFQvxKcABq2otm\r\nNjdAOlxeRQc8kBhLydnUhwqDpeCgbJ6GwhoIKjzS36axnNjOoHg9atQtm/W5\r\nY4LlEf2lveYdqXJxENo51jpaTFkrRCJz/BD/HJmaPc87+GzljGJouXnngq9m\r\nc5Nbsf1HT7KmoVCy1wALrAA9p8MJfxbc/Ls=\r\n=5lfn\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230426131617-7a934ba6-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/62e7502f9f69d1fcc0a4ecec3c5b97ce/blocksuite-connector-0.0.0-20230426131617-7a934ba6-nightly.tgz","_integrity":"sha512-acQzB/V/9pPGcf2G82ic5Ena+j/LMMwDrnrR57eqQQS4a0CDgxfPC6/9M+VgtJxg7xE19cbhjkTv1TlOrkUR+w==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230426131617-7a934ba6-nightly_1682555196767_0.060531679280692696","host":"s3://npm-registry-packages"}},"0.0.0-20230427041825-7fff957d-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230427041825-7fff957d-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230427041825-7fff957d-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"f4f57114ca40e30068554061ae07870a795c2d29","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230427041825-7fff957d-nightly.tgz","fileCount":106,"integrity":"sha512-Pos0Bsygozrfz4/za1akF0z2jnXIdweMAHbX0dX9T9WAPcxZwTUYvl9qU0Sl2paqgLBAGg0W4fo1kR2Dl/Uz8g==","signatures":[{"sig":"MEUCIQCmsYVTp+JpqBHKnXPyU2NO7PhpeABbkvjX0PW5UupY7QIgBEJynm5TgdCy5b8aLz/P0uXdNqUhSHxAF2gX6GWgXlA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230427041825-7fff957d-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSfuRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoPdA/5AQ0CAFLeguPHqdicV3gDNKiqdRLveGJK80Qh69J5TRFFYJ+G\r\n3S4kqC1O2/Hed7Vqv6Rh784UsrHWJX3UUnV3UFmzUULEDTQo3QaJOOrVuT66\r\nQyglgp23E/XuhppNpuFHdAqzxoy3oo+Zo4SfdkYRFRyCKbny0Yykze8+sRkq\r\nH7VKkdZaeKIR/HCYWtVVOd6wrh380ddDR/wUizFuJj028Mkd3pwXlKDwKnnF\r\ne5ROeZsRpUv52HxJutSous9gLCXoCM8OrQ7wLxW/a5zfezPpHhHKNqr/pucf\r\n18M9qHFy8/PCI4aTFZCv7zgkZ2z3EpLYZ3vgUFIOnAPt0oiYGTLUPXALDCSp\r\nqw308yemui/zArfwLQeemLs0BLz5YHcwqbtSJb/ZJBH8TXWJghtcSoyhaeaz\r\n2vwndF5VNHchex3eXAPY5eoDCt/v9ia7yBwRpmHcxoMcB+pPdJkn9Ha+KFAg\r\nVUq7dEJXvU7NVWNjeVKNXVLQ3/1e1mCYHjR0T7SLOHExfxzJmjXpz3qld4W8\r\nPD1zRDtdtcLPCHPbgbtOU1SY42IYERnbeI+UM5Qmm5dpz4a6W1GweBcn3NGN\r\nSPLUFDRGAHhaCIrP1QlcTMtDA6tURbWCq2AyWTMpJRJrFUqe3f9n9sl9gzsE\r\nYrpJxmyBmiR9NpZ3WHRhUw2Cj1FWN6qw5ME=\r\n=AQbs\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230427041825-7fff957d-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/f61dacebb0c06c36b6462f3c7423bbf1/blocksuite-connector-0.0.0-20230427041825-7fff957d-nightly.tgz","_integrity":"sha512-Pos0Bsygozrfz4/za1akF0z2jnXIdweMAHbX0dX9T9WAPcxZwTUYvl9qU0Sl2paqgLBAGg0W4fo1kR2Dl/Uz8g==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230427041825-7fff957d-nightly_1682570129379_0.01402323761365154","host":"s3://npm-registry-packages"}},"0.0.0-20230427114705-ffcc5be0-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230427114705-ffcc5be0-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230427114705-ffcc5be0-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"7fe4d5b3d3a0d7098b0f759cfd980121e6e811ad","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230427114705-ffcc5be0-nightly.tgz","fileCount":106,"integrity":"sha512-hqMvAIhxolp7Ll31+dlbTxozAHch+vmvgytqaVP/uAODuakRIwL/lvC/FylkpK6zuNkpaJJzTvIw1ypuF3AX8Q==","signatures":[{"sig":"MEUCIH3dvve5g9AkaB76tEIm8qRvVUn+11FaKHBZcxfLrUqlAiEAyCmrDfQ8B0TI1dHK1GsILOJx3ETeuediPh9sYfFcPjc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230427114705-ffcc5be0-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSxKMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpqUg//XNTgVZ5DK5rKksViaM9eoPXtGrq7P/Y16nNK49BxWwIPga4/\r\nrZHzh43FlFmjWp35w1Rh22nl4n0bNH/P/hIeBYIAooo0hwBF1NeCZA793Fz/\r\nKQdYWPA68wmnkzTOsFQ3BoTSbQDEGQkzLErGaUJVDnLONoBkfyAZJlOCCJLe\r\nOj2yqO3gchD5c71/TkypsVIecyxvUxA1Hkjr9jSYf+A7hsWXiHPNCWteTEFa\r\nx9ihTzDbhCBi+GJGNx4PCCLTcoqmzmofmqm+tojzinb+dZ07mXFYumavTl1m\r\ndWUy4m9UafhG86P9r7Dp7ucTDl6H82XP1QaanfzZGeYN7tm/Tf2HooVoKLOX\r\nYneGEWNB8zdL6+s2FTlPhl9YdFdHn41FnQaKvTtYtmd9pnr5LdmmxC40t0IS\r\n2igWgULMYqkBDuqc+uN9edH8O3zXPLcMxDIrWbD3HTH9SIfkSXcXhw5pGVyw\r\nIflyLZpRJbbUA4S+468NywlgevXjRXvw1MkEc5OkAvwPsvMnsEz7gHUNVk0+\r\nzdaDuR3zhylKXcmvrvMgqoz1Lgbc/ORCxs0Ax0eiHMOBmNX1FEndBi6i3+c8\r\nUfJd5mSoPEg5bvAXdlbyPUxCmpDzgKBuA7Q7FfDSm7aYk+qF64cfvM3GZyCh\r\neg+wxsHQ54TlJzyqCDj4C/FoxlHN0pqkLig=\r\n=/Nu1\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230427114705-ffcc5be0-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/132c851efa5c6317a764dcb6a5189dad/blocksuite-connector-0.0.0-20230427114705-ffcc5be0-nightly.tgz","_integrity":"sha512-hqMvAIhxolp7Ll31+dlbTxozAHch+vmvgytqaVP/uAODuakRIwL/lvC/FylkpK6zuNkpaJJzTvIw1ypuF3AX8Q==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230427114705-ffcc5be0-nightly_1682641547609_0.4135393649720982","host":"s3://npm-registry-packages"}},"0.0.0-20230428070346-4bed88f0-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230428070346-4bed88f0-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230428070346-4bed88f0-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"ce7c82efb67ca73f925cd4319d499973888c5c2c","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230428070346-4bed88f0-nightly.tgz","fileCount":106,"integrity":"sha512-mjuoIn4e3Si5XKEii7saUhmdbho2d+y9KAJ/MIihRWXOICzQT6UgeJOEUu3qg/FA6aXTu73g8j0cJZSYAhB9QA==","signatures":[{"sig":"MEYCIQC4IMeQszCy9HJuXNcdJPlbEBbIIA5cco7WBQWVW9biYgIhAIQfOJczScm3lHzFwsNqnzePzv/hg1iY19mjgYiSBjyJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230428070346-4bed88f0-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkS3DjACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/jg/9GQAMwqa/pn84TqJaKx7gsjin7KRjeTcvpt9eCS2siuGueOy1\r\nuTUOZsjJretX0orfVgF6jJLCAbJVJobIoeLeUSkCMAj/2A1Wv8wWmv7Uce6c\r\nNST5ZK6vhlSU9yMdrex/+d+71lmwEaNhvThLdr1emVsjShy+zvcTBaJNn2Lb\r\nGL+Sa8jLX4zRTGxeKAwggmLbcRddLk4AdcJlCUbCKQz8KyxVacGd0U+gC5vr\r\nFJ/gBNd+V0lb9u3ZXmpVGldNG/lRIgrrIJuXT/3RPcHdFV6UkDF94xEnjyiA\r\nxh0jf1L2QZHi0cR+hyZMw3/wGPx5Hc71fFFoJ//S0z+tk/3xXrMPepdM9e6Z\r\nUqoA7Ku8h2pbjTT6MoaQfJ2dwxLakNueWj26kAOfphJIj0B4rsMX/FHoZHqH\r\nLNrbNDh5cjhPIqCYE2BAu553Qzzy/KjicKde7e0q5ZcePDvO49/lY3zZljLz\r\nc7TEyTNdlSrnSq++jT4JcQMKOhpJhHd2H3WXZxdpWbrZPccn1Fi5ynYc2NHc\r\nRDMmPa0zKk0ESxiFewdCzroX8EShX+1M/mZM2dLWh+HJEheq4Yt8zj0U4/ro\r\nTEngDmncbxGDk/phrqTKLBkQJZodj8yGdmAyU0F174PNdrOo/+4czihcFPG0\r\nZ0Qq8//WzbIDpxzUHzv41HAKRVUn0AGjkKY=\r\n=daRp\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230428070346-4bed88f0-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/9732038552da78e3cd2f2ed5201aa147/blocksuite-connector-0.0.0-20230428070346-4bed88f0-nightly.tgz","_integrity":"sha512-mjuoIn4e3Si5XKEii7saUhmdbho2d+y9KAJ/MIihRWXOICzQT6UgeJOEUu3qg/FA6aXTu73g8j0cJZSYAhB9QA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230428070346-4bed88f0-nightly_1682665698649_0.4514592668302013","host":"s3://npm-registry-packages"}},"0.0.0-20230428133133-9f290178-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230428133133-9f290178-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230428133133-9f290178-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"9d3837fccf96a3044d850f53ee1e7a9f466271da","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230428133133-9f290178-nightly.tgz","fileCount":106,"integrity":"sha512-xkTptRWZv0GOYW08bH4Q6z8Kh8kUHzREF7iZfgMI/PxxH3+FG8SsD5WpuIfkqRHf1C4IIOtoqKvf+75KY9ggxg==","signatures":[{"sig":"MEYCIQCrKxfFL+8BGgarfMKPSWpL/0he+8cDKQb0V3i4pUtqLgIhANfcuWZBM6wNxfWWpW4t2WO682x1sj1c8/umnkZ0ysK/","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230428133133-9f290178-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTGOFACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpyKg//TPwAEonET2Q6P+IoBASneNIGn62fHdMNjF9NdAJnaw1wDGhf\r\ntHjE5sjlc27YKwcSMSTeaNBrA8cjCWBpftDRFCVZQ5KDqXLSYrgEkvzIE8qa\r\nxP9O7WVE6wQhwrIfCA7w+cK1cbWMF6KBNqPzfNt4YT6+xUCcSzMbmoRAlAB4\r\nxGZaNo9RdKAVS9th9t5+A+uRTDsumg2wEjCKstRfTxEM0p3C4WuvLcvUhKGW\r\na4l3Qr97oZgHzFKH5EeVV5ugphAtz9OJj8gyR1nRDCSSJSKN0VVeIlbGg2QY\r\nvyJlKTCH4SG6Ec1mDF+zd8kDjjQRNyk1twVFwlN4FGI01jWd0dPuf72e0H1t\r\nXhjmG7j5mv4J+snk2kgacGFYv9Lf/YlBIrJBnyMNId26oXoK/pdy13jnSQxp\r\nbKBc9MKDqJILeMiYdAfLyRmNyIgNK5ZfD30059FkzYRtfQ+TBgiVSsFPBJB+\r\nmG7sRB5N57qnFAdqCj8t0hh/nm4nObiKu5NZ24DL0ZalqaftL3YeulFkN3Ig\r\n4f1QbMyVMe8CWAmUIhkZcZGGvsbUnApHWn+kOo1cuE0RZK0VvGoy9Vkffp1R\r\nD3Fw/zjOGcQHKtzOmwIGgC64mPhMYRaoGviF1NNgsygeJYI2YuRQwK046phk\r\neevm5MycWM73t04lvS3ZYKAcTiZPDt377g8=\r\n=LdP/\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230428133133-9f290178-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/9c2096c33992a5097937262e7e3ba85e/blocksuite-connector-0.0.0-20230428133133-9f290178-nightly.tgz","_integrity":"sha512-xkTptRWZv0GOYW08bH4Q6z8Kh8kUHzREF7iZfgMI/PxxH3+FG8SsD5WpuIfkqRHf1C4IIOtoqKvf+75KY9ggxg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230428133133-9f290178-nightly_1682727813258_0.9740132548141212","host":"s3://npm-registry-packages"}},"0.0.0-20230429153208-4ac043ec-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230429153208-4ac043ec-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230429153208-4ac043ec-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"8a7819a1aae42d0d53ff5b297c6aad7af2efda21","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230429153208-4ac043ec-nightly.tgz","fileCount":106,"integrity":"sha512-quTyYnWO75tr4n46hFnaj4TyfQZMLE8zPcr941oNRNzljnLPfoZvQD5VTWyup5U1rDgBf3IJqEQAKD1kKgPvvg==","signatures":[{"sig":"MEQCIDaR4hVqVnzgenn9wnLXC6fEieKQLot23ShC6hdpxN1OAiBW2AF5m6iTjoR+LLM495Hy/5NcqQ4EeI7+rcpKf0vlsw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230429153208-4ac043ec-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTbXCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrk0w//fc0+FaUJ4AuL0wKlOZbChXi2szeoIJupaId6Hulp2TvCfJKF\r\nTJv7ZytVXbPJksJfMQ346wKUqCTG8IDPpE6EHoLM7jPwNWYtnwADJxUa0ur7\r\nLdUKco5FyYrPHGJmCpngH57r0eNjyoMcXjsmDJs9/dYh+Kyh7f0xh71UQbjL\r\nRmLJywXBVO5i7EOv0bZwzEDJnc4aBsOALBMrKEcUIv3Ht/Dwotz0/8Y+NvTi\r\nrmC02oKOSTyvjgjU9hdFfYJbrvB+XXjsamLvhbXNUSRYu+FDq5z8LvT3OXQy\r\nFpvlHOPaNo9Yy/XrbIgAeQFAxiv9Cx8yVQYHS+ADEbPH+6TVW+QbdKF+Ok87\r\nrRbFcs3twTdvZukfaB3AORDt3m3kztZ3R1WJphUZYmMuDMVE9LyavNzfGJ3c\r\nUOZq8T0z7w/h6NNVtTcl151ogQI+ODsbcUZKr8NdxsAQlVtU5XgZ/ckFstxM\r\ninRLgcFLeNRbQFnscUmFBBqsdCPK7649FS6MIk9wOTRlk7B04Gikgm6PoDQe\r\nzLn4GIUEjNZg8hUGaGHtqYy/ndkgrpQrdV4toJoJGv45ts3En7T3hS0ZOAhO\r\np6qbKjBiWxSUd5AzhiMFDwvJOceBVHbkWDjVn2cclncjOgMZqMvOpjCPkMSz\r\nxal/XM9+c9CdgIWGmhg6vFlDnDGu5f0QEm8=\r\n=1kDU\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230429153208-4ac043ec-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/8e73c9a5229598d4a1ba52a44e437eec/blocksuite-connector-0.0.0-20230429153208-4ac043ec-nightly.tgz","_integrity":"sha512-quTyYnWO75tr4n46hFnaj4TyfQZMLE8zPcr941oNRNzljnLPfoZvQD5VTWyup5U1rDgBf3IJqEQAKD1kKgPvvg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230429153208-4ac043ec-nightly_1682814402538_0.04511010512328961","host":"s3://npm-registry-packages"}},"0.0.0-20230430074810-e05a7cd0-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230430074810-e05a7cd0-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230430074810-e05a7cd0-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"615d1fd1f0f318442b73c65e0298bf9ee36039d8","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230430074810-e05a7cd0-nightly.tgz","fileCount":106,"integrity":"sha512-2pPFPEysvtq9Iflo0noUX2JktkgYBWwU/tPEaS+Stw0g1g3kCPHn6NnEl6AsreWoS40KLm6rU7VVnqt4jQjSVg==","signatures":[{"sig":"MEUCIQDkvsv1uofwo8lGPJzRhNO+bYZLqJcuVBtEBsyrQKIKnwIgDkQhuUASXR2T+vEnLXSHg7RGkTDaVNFTBFc5yTUYMEY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230430074810-e05a7cd0-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkTwcHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9EBAAkHXvu0QE/IlRknIT0B3k+9JBKLpxFtGAfS5gbJX2thfV9qUS\r\nessbqkYQdcLJv/i2TMVkY0Zt+E0TfSsTlp1ayuCzS/rl+Be/U35hHu9jDumW\r\nL6VIJ8GMLE/f24zIm8ja6MnsXM3s4JnHr3QXguy+WQEcQBNmCp9xV7k/ULhL\r\nOtQu8YB3mpFYU0We1389qjbRPdccW19RRx5lSAGIRzdj/uYLgBC7akzOsT5Z\r\nUteLGGxTybjZ2v6T3MSAuQF5XyXaJfAYj0M1OvD+nrkEIYoSmq1twga/n2GR\r\n79kq57cqOmEe1zOfoZU5FyHWmvcU0SVYfpqu67IKC3iyZyzUTVfshPAqwYPe\r\nwXZOvwIUuXkGNxaLraB/8JEaSfwmguZWwbU89TgWeDb32lTh4F14W7z6XUkc\r\n/5Wy2KQEJm048BkNoB6hWWJ6XVl+WPUPYbECeHEDO5iRLxJfjOD8Fxeygpm8\r\n5XbJR89N1iKzeYJKU8J644j/19Ixo14wPN6zbvXBe3FrbqhnvZQ5wlsdF2Qa\r\nTI0O+HeOLJdhU4BilNpn1IxkIRaenIQVvceNMYuYtinRx2N744alIcExZvlD\r\nATHzK8Sw3r3kWc05a7RP4tmQDBOqJXEtmc1uEQ3xEDgK4CPLLqbsQgT58y34\r\n/fjc0c/IXseJUo/ERdkW51qkEiajEEkCfTQ=\r\n=01rm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230430074810-e05a7cd0-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/85e91dd4abdda2fc1500cc2a2ae06962/blocksuite-connector-0.0.0-20230430074810-e05a7cd0-nightly.tgz","_integrity":"sha512-2pPFPEysvtq9Iflo0noUX2JktkgYBWwU/tPEaS+Stw0g1g3kCPHn6NnEl6AsreWoS40KLm6rU7VVnqt4jQjSVg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230430074810-e05a7cd0-nightly_1682900743407_0.7797843798573065","host":"s3://npm-registry-packages"}},"0.0.0-20230501021333-90d9a4af-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230501021333-90d9a4af-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230501021333-90d9a4af-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"1689230fb0c7336e142838298a32382c8d7aa827","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230501021333-90d9a4af-nightly.tgz","fileCount":106,"integrity":"sha512-osmRyZju5osfNRwExxEq7Qre897UorpjcDF7paGXgnNc80SEHL18/tLYD4Akr/zwJB847tClJWb9H5b3bDw0FA==","signatures":[{"sig":"MEYCIQCNVtNqh30MlJWo6gZ7WPfEGBcjkuImm9Q/2IuU35WnGgIhAMcV74gSexw6fw8RzgqkHuCHPP0KChIB3I/lwfbnbbTD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230501021333-90d9a4af-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUFgTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpTcw//fFsg6IZLhA15lvsuEvzvhgJOTAUqLBNi1Hdfn+WYE3sLvWJN\r\nUF0pX80oOs6LrBPG5m5CDjUEQEr6jl6Sv3UY2ZG/a1DSq5uYy2wTBUz2a00e\r\nhuoRZNykRmD0QlNhJG2y3dFgjYc5QdJjSZjsWwX5/PEehz2HMbZVtKAj+3Ol\r\nCKecx0OpGVlNQDxEbuT3FnPjTiySJuHymD3lodTU8dx4RvDZ7DyU1fD2d9rS\r\n5doGw/TFt9UrbeODyYAQELC9kYMylUswcZDTCnW94S0FF4ogY2wRLnDQeaG1\r\nTMw8Z26CRgt8DR8cFlgACfn5dGXUOGrCDEPOmJ8gwVI3HmYLb1F1NC66gB7K\r\nAn1eSIp+C4mid3pnRFdFfbpO9Ne/mVnAmGBa0fEImWP4Su04r/izRCqTAqWj\r\nV35vDlIH+wPobRWDCYY7GW9SL3tBzqR9j1IAvjfHX9ZgipXIjllV4IfDf0n9\r\nhwlBqv4zVBilNyhUqEz4f4Du8Is3in3+rl4j0okPi5GGIXS08Bs7hRy6lVjX\r\nguklVCvKmYjMansVIvUGqySAP25KUBYLgY11rPR4IQW2iz6zYvHkZqbno98k\r\nB+9m7HZoNBD/m+M6/pHvBNIjlbQ8EgOD+HCRwU2zuDl25YIIq8iyMNkfmV18\r\nD/C9gu7rD1JauASwvexwHJMIyK5Ozi2yzu8=\r\n=jUtQ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230501021333-90d9a4af-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/355a8e5bfc35364a534febb63f220b84/blocksuite-connector-0.0.0-20230501021333-90d9a4af-nightly.tgz","_integrity":"sha512-osmRyZju5osfNRwExxEq7Qre897UorpjcDF7paGXgnNc80SEHL18/tLYD4Akr/zwJB847tClJWb9H5b3bDw0FA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230501021333-90d9a4af-nightly_1682987027382_0.6554432754446442","host":"s3://npm-registry-packages"}},"0.0.0-20230502232311-bfe52748-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230502232311-bfe52748-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230502232311-bfe52748-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"16747ea9ee99560e9064565871728d2c46dd0b68","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230502232311-bfe52748-nightly.tgz","fileCount":106,"integrity":"sha512-xIpt1vkSWT5fGvwLj3LrJylMntiRnbYgy3F7VtUawHi1+iss8Wyd2k53CANCmEMlPPdwYDxRxL8s17loSJYp/g==","signatures":[{"sig":"MEYCIQDk7R54gTkTF4ls87Oq6fufKTTMF7MGNsxLVtm4gT5kQAIhAMK4eofVIBAge2OQfTxNjzLjGmnpWL0lQGC/HrVpsFsk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230502232311-bfe52748-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUamCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGNw/7BzsvGwPJmgqcXIKLYuL2K8M0H3HfkPFXr2qu6I3HJAeM5/lY\r\n0+5DDoISJxgIznVqLWhFGnKq/JMpdqSMTF7H/xSw2LWuCZlpJfKSlURfKIlg\r\nt7aWuw3jOfjvnrII0e2mU1A37IdJ61a0fgJvOSaCRL6lr9Kvd6BzdnXEWg4F\r\nYX9VSe0H3q9uCu2vR+3bskSoXJvjEd8xA3vrwZTRyPUvYHoIwoyxw+2Juguf\r\n/zv8nS2ShXkC2CkU8AYtjgSt3faHyc2wjSfQT0bUMrvxT2LwdIwBhwaykftJ\r\n3HuVP9zWnRRwSnzR2RHmqkOTllL7zPK6ZiKujVaqfRIWvCTvY2KyXiHciKGW\r\nOKQh7TL6rj/mRBTXhsIvQZpzXJ7QYMCTWJ/QAHl2s+jRyRffmwLxuvJoJHYL\r\nkB6ChRMNUTSM1seRAuhrh9Rn+iLqKAk79gr7GEaHaVP051JoHCKDlZz7P2ek\r\nhZWISyIN12fFUKy64F7yjn/PxGMG5JlSUrJ3KIF4DP/MfAJpxLcsnCcRadnd\r\niD1COEjyI7hJG31+VXqaoXbb9hN4jCROiyEYcy5fP6nf8kE2QD4KlaB/3EV7\r\n6M9C7GKBGRFK6HQtpvMNWZrBU+iSWZg8LjvSt6pXnpUecqODMxohwnn2NBoi\r\ngKVcz7FrJFGVUeNWjRPUwqelPjGgNngkfw4=\r\n=Bh7m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230502232311-bfe52748-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/1f92ed2257d7efee127336672c012693/blocksuite-connector-0.0.0-20230502232311-bfe52748-nightly.tgz","_integrity":"sha512-xIpt1vkSWT5fGvwLj3LrJylMntiRnbYgy3F7VtUawHi1+iss8Wyd2k53CANCmEMlPPdwYDxRxL8s17loSJYp/g==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230502232311-bfe52748-nightly_1683073410248_0.3247661470636103","host":"s3://npm-registry-packages"}},"0.0.0-20230503040956-5c49643f-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230503040956-5c49643f-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230503040956-5c49643f-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"fb44d3d352e8729a9700fee3a5c1224d8b34b7ef","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230503040956-5c49643f-nightly.tgz","fileCount":106,"integrity":"sha512-srWHFeQt8HG/MYnjUoSpQEu40gQGEpjtkANMIwMpyle/qSbWq5VIJP03oA1o7/rhvub36wKUMXEa/JaTHixzNg==","signatures":[{"sig":"MEUCIQDa6hvhxsbkEbRWx+zNfEj9QHCBQ89OsjeTEa6xpJC6hQIgenYuoko3aktGLf9SCR9LAxzQJ8AG5vn2UyTCKzuu93I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230503040956-5c49643f-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUvsgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpksxAApC0pNpgQyBRgp2qV6lgg0BKKPW1ycx4tx8Qd15ZKp/gDVFt5\r\nbU/A7m2m+kp/qCwyNeMQU+J5Loy0NU9j/TdiwwNG2IQo19G+JOyl3ovDhhFi\r\nwfSHqO5xoW8T63HKb10EeBnR4lVGIaZf9Ggj4Xw9dbztueY6isZuPPZT6rYp\r\nDyM7mmV/eRJ0er6nYS3vWPuYqOCLe1SflOmrClvIC5dpwwbGmzDkL/JnWJiz\r\nLMqqHUX2Jh6ew65J9J1YxwpBh9tYDplKpo2Dowg5pMs0iaD5G1yaCk03Tujv\r\nT9izsZwOXrkumqsHdZO06xSqaWykvynRLUGyXcEovLbcTucsnEb/vwfAPG9p\r\nUkNqOInpEpIQ6kDy+SzqoskmUIOYgRSAghSCIkK1JmHLCca5n0FbtRuaHcdv\r\nkVF9xixmhxh0loaG98Tg+/EDr8P0F/vVhIeTlctt0Tjdu86DOtiKel+VH0/7\r\n8Dd22X0M2ezGWW0RzCfEOrLwvQ3tE/ZBuw9/D2l2wepJXGkjCCTHUf2K9iIz\r\nDCS4/3FVkD0hPlbv//gsYjilPjDwSZ9HkEAdIkBIv6pU3MUhUiSnUy58ektv\r\nfnX9ZlZJaPZm6i7y421Q9rDLyeKNSOpwZtx0vOoaucRlT/QBWLFvSynE8i8J\r\nGZf26MjoiezpWOg1pYGltK1y8109Tv+Msuc=\r\n=WZGI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230503040956-5c49643f-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/b536b76f4c4026be37446ff9b9956d56/blocksuite-connector-0.0.0-20230503040956-5c49643f-nightly.tgz","_integrity":"sha512-srWHFeQt8HG/MYnjUoSpQEu40gQGEpjtkANMIwMpyle/qSbWq5VIJP03oA1o7/rhvub36wKUMXEa/JaTHixzNg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230503040956-5c49643f-nightly_1683159840401_0.8709864138366383","host":"s3://npm-registry-packages"}},"0.0.0-20230504140113-3a4b0abb-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230504140113-3a4b0abb-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230504140113-3a4b0abb-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"6e8a3a9406cf6effc3fd80a249d9775746d5fcfc","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230504140113-3a4b0abb-nightly.tgz","fileCount":106,"integrity":"sha512-7Lp38EIpmK7cU+WqePk4d/VdXEUyebCD6pTx6FX73Dmcm6X5NmGqW6P+C+HI5PAgGWza1WsroEQINuBANHHrHA==","signatures":[{"sig":"MEQCIGmlXwik7AoS666aEpLeJ3q4ZjKuMiKF+qjBvei7DXwUAiA+cVeozMcDEWnXrqkvKhWXO1+/lYvTReKyUbKG5KykfQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230504140113-3a4b0abb-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkVEyRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqEkg/+J2o5L8WQw/Mhsk/ZhOTdk2x7+J8N0Hh+19MY9rQuJ9gw6HjE\r\nJ8TOr1CwC6ccYUaphopvDtSOhL6nhVMKZs4eRypKhRhpR5yMVO4On2CHIqt2\r\nLKq7VAlke3uya7iKRLTVwUMT4I9c8qrcL/x3kvnoq9Bs5diBoRA199zq1wWS\r\nuTHE+MRQKG4vH3dJvQOU40tPb7fpgF5TF3XppJh3QuVDwpCa7VBbfRm9qW+6\r\nNmaIuXz27G8Wu3BgyZRxMeaUn/vkDuuYCr5ONb8tzodVKUcCrl7C22nCuD7D\r\nN8/6ZUG+WNiKZvkdQs7bbiw45kgArNHI2mt1Y1MlMtQQy4bMkr5t64MQKTmv\r\nSG1KuoDl8Bn2Ul1pzVY4YhXLlyej3a5b67cjvn7KqpTCsQxdu637xOIP2kEN\r\neIkTbjqqwkpHv1ruAQnv+zpPm9MhH9L5obFvlVMtecErg1ChL19B01agTiFS\r\nJJ2EKPU36YvFwRnzXOIGrDGkjjnHFN2eYnIUv0HXsz6Fl/ivk1RT8yI15gGK\r\nztgT5lymn1RV97qP/IzhbTPsHAV2lPUnGNbI0MH474K52/Rvr1TYh9s4gc2a\r\nK4VJoBOIYkpUhGBII/48D7z50w2t50On5Og1y9E50W7V6hmZO2UogoehYCwr\r\ne+q70UtlWVfr/H/M4lzivCSaaRHztVejjNY=\r\n=ZrTx\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230504140113-3a4b0abb-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/4df64295ecbf4a6b6fb64820b208d730/blocksuite-connector-0.0.0-20230504140113-3a4b0abb-nightly.tgz","_integrity":"sha512-7Lp38EIpmK7cU+WqePk4d/VdXEUyebCD6pTx6FX73Dmcm6X5NmGqW6P+C+HI5PAgGWza1WsroEQINuBANHHrHA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230504140113-3a4b0abb-nightly_1683246224607_0.3935568085640353","host":"s3://npm-registry-packages"}},"0.0.0-20230505225643-03f75e5e-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230505225643-03f75e5e-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230505225643-03f75e5e-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"51d0f21df32755813cec9548f7a8a30c18f0520c","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230505225643-03f75e5e-nightly.tgz","fileCount":106,"integrity":"sha512-u94hQtr+P6d/QpocmjIF8Se+y+s1N7M7TbpkzTJQgUIc4mQ1ny71il8oEu0SyurRL54yIJCKpgcQb0TWJNFDng==","signatures":[{"sig":"MEUCIQCxcW/D+dtZk7kXv7MmqlueUseqanAKyfF/9gHbTdHhNQIgCCYjNbyJQ19SuTtui0BjeG8gYicWFk/b/ICoQp3KZIE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230505225643-03f75e5e-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230505225643-03f75e5e-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/70376766ffe7480bf4e78112bcdcc2f9/blocksuite-connector-0.0.0-20230505225643-03f75e5e-nightly.tgz","_integrity":"sha512-u94hQtr+P6d/QpocmjIF8Se+y+s1N7M7TbpkzTJQgUIc4mQ1ny71il8oEu0SyurRL54yIJCKpgcQb0TWJNFDng==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230505225643-03f75e5e-nightly_1683332546021_0.2999345955250474","host":"s3://npm-registry-packages"}},"0.0.0-20230506085552-66fcf3a2-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230506085552-66fcf3a2-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230506085552-66fcf3a2-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"e79b7a56abd572ddbf88a815b7d21502755b8da2","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230506085552-66fcf3a2-nightly.tgz","fileCount":106,"integrity":"sha512-Z/sj80uOeBQ/q3T/9r5de7qFTl+dhXMg6ddBaqVkJPRMrhDjRY6P7MNRp8fUZPVUDccw9G8lTd0mT1+fDY7+qA==","signatures":[{"sig":"MEUCIQCfI32fnWuMu8VSzbRAI5OnqkRiZBsrKjT8cfG+zZYH9AIgF03DxkpZGDRxRLo53asB6IMNOHWLkxmXDkG3ioiWjEg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230506085552-66fcf3a2-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230506085552-66fcf3a2-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/7af3f8df3f5d43e258bb93065f484a5e/blocksuite-connector-0.0.0-20230506085552-66fcf3a2-nightly.tgz","_integrity":"sha512-Z/sj80uOeBQ/q3T/9r5de7qFTl+dhXMg6ddBaqVkJPRMrhDjRY6P7MNRp8fUZPVUDccw9G8lTd0mT1+fDY7+qA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230506085552-66fcf3a2-nightly_1683419146832_0.3825340098703385","host":"s3://npm-registry-packages"}},"0.0.0-20230507142042-29bc8617-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230507142042-29bc8617-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230507142042-29bc8617-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"58c02977b279763b809e8410b57ffb5a32a1ef95","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230507142042-29bc8617-nightly.tgz","fileCount":106,"integrity":"sha512-bpeTp5ZgkaiWOOGEVMwChWR5E2WwwsGAUUCYrjYZMiDaqVVu3yOwdf4oDfxEMSeh4Ey/Wd+TehkszvKHZEmCZQ==","signatures":[{"sig":"MEUCIQCXXwmJ2+2VfDkKZNZPrXwf60uVg6VpRb+z9kI/lmQdUQIgPI3PEMFSB3zfD/5EnMe6B412VnoVDLUJ0kiko3hnMCY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230507142042-29bc8617-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230507142042-29bc8617-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/93b0ed2c3ad88f6402af758a8b446a0b/blocksuite-connector-0.0.0-20230507142042-29bc8617-nightly.tgz","_integrity":"sha512-bpeTp5ZgkaiWOOGEVMwChWR5E2WwwsGAUUCYrjYZMiDaqVVu3yOwdf4oDfxEMSeh4Ey/Wd+TehkszvKHZEmCZQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230507142042-29bc8617-nightly_1683505404184_0.8707283334146287","host":"s3://npm-registry-packages"}},"0.0.0-20230508043859-34d0cc68-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230508043859-34d0cc68-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230508043859-34d0cc68-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"37c55fdac78ba7d65d08237cb176b5e22ee82926","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230508043859-34d0cc68-nightly.tgz","fileCount":106,"integrity":"sha512-oq5UpgMfiq9Zj+oHlbaeJ9jnTpFGArCSf5F0dtShIhEdyoitApiw2Nh4MXX9++P5UbS2btd4xnEEnxGqHJBcWg==","signatures":[{"sig":"MEUCIQCIJLJn05BuduysMbWMo12Loay+ixnjRikKCJDfBDepHQIgS+eSP7MwLxxnk7MAZx6l5pUYquuI54voUMaD1jXARZg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230508043859-34d0cc68-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230508043859-34d0cc68-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/f63184d98a0c8ed7f98326a1d7097a53/blocksuite-connector-0.0.0-20230508043859-34d0cc68-nightly.tgz","_integrity":"sha512-oq5UpgMfiq9Zj+oHlbaeJ9jnTpFGArCSf5F0dtShIhEdyoitApiw2Nh4MXX9++P5UbS2btd4xnEEnxGqHJBcWg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230508043859-34d0cc68-nightly_1683520908011_0.6684660675390635","host":"s3://npm-registry-packages"}},"0.0.0-20230508161503-04475f67-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230508161503-04475f67-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230508161503-04475f67-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"e6f2b8d675f135d50d9613a81e819e6c6689d31a","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230508161503-04475f67-nightly.tgz","fileCount":106,"integrity":"sha512-LJee3SS6YbTcQwEIfoOUGris2xmjRMzrmcK/TCS+1CFuNpO8Ca1tbfp43vX6YYH1kMAuobOIlqC4+7ATVsfw/g==","signatures":[{"sig":"MEUCIQCEgMjGvjIXyk+bBM7o/jD52M+6ROaOWQS8QlwpapqHBAIgVyzeMyabI708Cx9kgq8MAepQGEukw/mz1IsoolwETzQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230508161503-04475f67-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230508161503-04475f67-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/cfd8877ef4c0195fe3ed72b3b4c4e52f/blocksuite-connector-0.0.0-20230508161503-04475f67-nightly.tgz","_integrity":"sha512-LJee3SS6YbTcQwEIfoOUGris2xmjRMzrmcK/TCS+1CFuNpO8Ca1tbfp43vX6YYH1kMAuobOIlqC4+7ATVsfw/g==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230508161503-04475f67-nightly_1683591889019_0.2916418491782502","host":"s3://npm-registry-packages"}},"0.0.0-20230509052644-b8b1b6a1-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230509052644-b8b1b6a1-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230509052644-b8b1b6a1-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"dd650a93fc284fcfe5b4d27aff0af7fc90b4ce48","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230509052644-b8b1b6a1-nightly.tgz","fileCount":106,"integrity":"sha512-zbGYb3NB9UJtBY4VZqE3+oNO7jWGsK6h90EcPVwr5l9rg0KOKPiJXWz5aUP2dvrv+71OwY9Cn23BeYBZhV5oQg==","signatures":[{"sig":"MEUCIAoeX8cZ/vvnvcHIaDY/P2PDjRRgmq+R/mHYryQ+86UuAiEAleCHq1e100oeyCjdCK2RTKWQvr48GVRxl2J5ziNKmsI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230509052644-b8b1b6a1-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230509052644-b8b1b6a1-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/9e863627158f18a02d1c757c347dbbdc/blocksuite-connector-0.0.0-20230509052644-b8b1b6a1-nightly.tgz","_integrity":"sha512-zbGYb3NB9UJtBY4VZqE3+oNO7jWGsK6h90EcPVwr5l9rg0KOKPiJXWz5aUP2dvrv+71OwY9Cn23BeYBZhV5oQg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230509052644-b8b1b6a1-nightly_1683611323071_0.3851061481894549","host":"s3://npm-registry-packages"}},"0.0.0-20230509150141-055b5702-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230509150141-055b5702-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230509150141-055b5702-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"79a77e2691e2ad164681d1f17c7d8e13ae411076","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230509150141-055b5702-nightly.tgz","fileCount":106,"integrity":"sha512-Fot9zoafIS0dERAcFVRc7lIttdC7sRS+qm8fROgzIgS58cQCxcV/BScXnOHzjCF7qQDTxJGbvUwg9OiGfw440w==","signatures":[{"sig":"MEQCIFgyQCzVp0KRDzAuLBd1DDzwhK6/SgXaD9o0eej+KbPCAiBdF0HZaXyEp+9kcEANTzxEP0QEcsbXVkSYq259dc/scA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230509150141-055b5702-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230509150141-055b5702-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/71c47d295403e8e3a19492304b36e42d/blocksuite-connector-0.0.0-20230509150141-055b5702-nightly.tgz","_integrity":"sha512-Fot9zoafIS0dERAcFVRc7lIttdC7sRS+qm8fROgzIgS58cQCxcV/BScXnOHzjCF7qQDTxJGbvUwg9OiGfw440w==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230509150141-055b5702-nightly_1683678251095_0.37896298927386707","host":"s3://npm-registry-packages"}},"0.0.0-20230510195934-c3adecb7-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230510195934-c3adecb7-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230510195934-c3adecb7-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"b968e1d175acf9310370f70f9074fae54bd0c4d2","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230510195934-c3adecb7-nightly.tgz","fileCount":106,"integrity":"sha512-BsQYYKygrC4pktprRP67NZwJh8AY5hqLivfXfPmVH5WNTeG1iKA1liqP8Be7mTOLU0G+8NFeIRmF+yBkYUZXDw==","signatures":[{"sig":"MEUCIQCKjKJqbChIZYcCnqIsyna0ZGXWLOHT2wE3Vi7PrNR6rwIgayhNclCuK6HJBeR49HX6pBFBrSSpCRcwNFq3WfTU8GQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230510195934-c3adecb7-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230510195934-c3adecb7-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/0c38efe3e8c50b9a6af385e89888d5ce/blocksuite-connector-0.0.0-20230510195934-c3adecb7-nightly.tgz","_integrity":"sha512-BsQYYKygrC4pktprRP67NZwJh8AY5hqLivfXfPmVH5WNTeG1iKA1liqP8Be7mTOLU0G+8NFeIRmF+yBkYUZXDw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230510195934-c3adecb7-nightly_1683764606255_0.9034592771805585","host":"s3://npm-registry-packages"}},"0.0.0-20230511150844-c344a2b3-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230511150844-c344a2b3-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230511150844-c344a2b3-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"3f0a2ea2d690e75961fc47b1f2bedabe962783be","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230511150844-c344a2b3-nightly.tgz","fileCount":106,"integrity":"sha512-lWoVfm0aYfQ3+5XlRAJ64QT9qim8U9crBMPIWgDnIKf9J2WG216gW5W+JaXijsjQ6F3HyViiCOjcI26mYW2WsA==","signatures":[{"sig":"MEQCICXF2ix8X+zINy7yZ3MtyuJZ3HUICrxq3OK4B1WiBuMOAiBLGLXngu3QlPQLSFBB4586pVGGeIkuxGx7nD4ZgeRWBw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230511150844-c344a2b3-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230511150844-c344a2b3-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/7cbebabb83c84011ee7ed1bf2172d73d/blocksuite-connector-0.0.0-20230511150844-c344a2b3-nightly.tgz","_integrity":"sha512-lWoVfm0aYfQ3+5XlRAJ64QT9qim8U9crBMPIWgDnIKf9J2WG216gW5W+JaXijsjQ6F3HyViiCOjcI26mYW2WsA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230511150844-c344a2b3-nightly_1683842510937_0.2643926121462956","host":"s3://npm-registry-packages"}},"0.0.0-20230512070537-44e59e48-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230512070537-44e59e48-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230512070537-44e59e48-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"3f02443239e92b73a938ef81301b07bb7c727ad7","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230512070537-44e59e48-nightly.tgz","fileCount":106,"integrity":"sha512-FPra7dVznFYRHtcMX07heQZDAqzUl439RSdOParZg+Q/eGadeFsdqbVi9bJ6q3hj2VpnWCMjwf4W+756ZHLRvg==","signatures":[{"sig":"MEUCIBSw/T7uA78gd+81LAUvOzesjTLdlWsdgZeeOuK29FQBAiEAnq/PmciwuuiauhsH60ggxAFylQEwTyVS0CSye9xGnsc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230512070537-44e59e48-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230512070537-44e59e48-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/11305643eb8f9eb972e36f5fe28f82e9/blocksuite-connector-0.0.0-20230512070537-44e59e48-nightly.tgz","_integrity":"sha512-FPra7dVznFYRHtcMX07heQZDAqzUl439RSdOParZg+Q/eGadeFsdqbVi9bJ6q3hj2VpnWCMjwf4W+756ZHLRvg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230512070537-44e59e48-nightly_1683917530654_0.12151948243762378","host":"s3://npm-registry-packages"}},"0.0.0-20230512192655-e61e272b-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230512192655-e61e272b-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230512192655-e61e272b-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"b52e7fa5c9a1dac299f65ed4151298e38b0316d6","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230512192655-e61e272b-nightly.tgz","fileCount":106,"integrity":"sha512-BNQHUav6GnZYjoLeQRKgIxuiS/ZlP2kCexMuVDzNxXl3QFmAUY4tF3gfvnOb7FxgEQVjkYbbB9eujlDNSL7Eyw==","signatures":[{"sig":"MEQCIHSSPPyTtP05qQR6QoB+SsO+KK80KSQP6bt69gW6ynP7AiAckz9mzyxX7WHL4iDnNoXC+ky+gwEsYFI3OTjKXyT0lQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230512192655-e61e272b-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230512192655-e61e272b-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/8a8c77b1f69dc3249f649dc75616abcc/blocksuite-connector-0.0.0-20230512192655-e61e272b-nightly.tgz","_integrity":"sha512-BNQHUav6GnZYjoLeQRKgIxuiS/ZlP2kCexMuVDzNxXl3QFmAUY4tF3gfvnOb7FxgEQVjkYbbB9eujlDNSL7Eyw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230512192655-e61e272b-nightly_1683920238885_0.01888001878228973","host":"s3://npm-registry-packages"}},"0.0.0-20230513043625-a1548207-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230513043625-a1548207-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230513043625-a1548207-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"4c2759616095908b5ede6b82135110516c7c8254","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230513043625-a1548207-nightly.tgz","fileCount":106,"integrity":"sha512-erHtOfuFqeUqbqagy5A3CWuuRMMcwTIyWpQYcYDYrgcW09wuMb1WQzu0sBlM1X9wDv9++C6k+nrQM31e6t6dfw==","signatures":[{"sig":"MEUCIBbvQaRdrXw8fQ7wMsSxnbyPT/yUNjriGSebWKFzC5DaAiEA8e765kGfL8ouL+QvZ9SJFe5Kq+9xEGvEznpkLhhJm2Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230513043625-a1548207-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230513043625-a1548207-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/021271057c33b006d17de078584064ae/blocksuite-connector-0.0.0-20230513043625-a1548207-nightly.tgz","_integrity":"sha512-erHtOfuFqeUqbqagy5A3CWuuRMMcwTIyWpQYcYDYrgcW09wuMb1WQzu0sBlM1X9wDv9++C6k+nrQM31e6t6dfw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230513043625-a1548207-nightly_1684024004848_0.4209957928557342","host":"s3://npm-registry-packages"}},"0.0.0-20230514141009-705c0fac-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230514141009-705c0fac-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230514141009-705c0fac-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"987c6ad3353f8b819a57588da587ddb6780bb476","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230514141009-705c0fac-nightly.tgz","fileCount":106,"integrity":"sha512-I9pvp4iIlFWDtdvZwFRtfsrvaRa1SX7CH7CNbVVPJmE/UlQ1kgY1wb3H7TVFxlsTYoijU8h9yOyL9/fOasER8Q==","signatures":[{"sig":"MEUCIQDCzxuT5BRF4t8lKSJs9AJ0U0TMA3H+fB7Oej3fKK3EqgIgC2CkzU/+qnVIbXIG1AYHcQV9GRCzuDUv8xjPr6+ca/E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230514141009-705c0fac-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230514141009-705c0fac-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/865abf32ea8db9acc903798022568545/blocksuite-connector-0.0.0-20230514141009-705c0fac-nightly.tgz","_integrity":"sha512-I9pvp4iIlFWDtdvZwFRtfsrvaRa1SX7CH7CNbVVPJmE/UlQ1kgY1wb3H7TVFxlsTYoijU8h9yOyL9/fOasER8Q==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230514141009-705c0fac-nightly_1684110322501_0.6439255281422394","host":"s3://npm-registry-packages"}},"0.0.0-20230515135743-254e8c10-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230515135743-254e8c10-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230515135743-254e8c10-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"299cd6d71e2596df26b5b6779a60aa6b78e762e1","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230515135743-254e8c10-nightly.tgz","fileCount":106,"integrity":"sha512-I5t3PGRVOJnL1lW65E00txliRYHfJCXFKQpUkZMzhUT72QHF5+XGAlQU/JQbSfMiHP8edzPXEKjyHJOknMeTaQ==","signatures":[{"sig":"MEUCIAmAprKJJhfMRf/urZUk7+qJ4jp9kLcRgj73uE23/Ya4AiEA0Zt9VJ8ac5+YfA25FYpWoRC/1CHQN5Ihl2NFPt60wcE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230515135743-254e8c10-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230515135743-254e8c10-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/1d7a17a1c615e6ff4e7a93c18197c0c9/blocksuite-connector-0.0.0-20230515135743-254e8c10-nightly.tgz","_integrity":"sha512-I5t3PGRVOJnL1lW65E00txliRYHfJCXFKQpUkZMzhUT72QHF5+XGAlQU/JQbSfMiHP8edzPXEKjyHJOknMeTaQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230515135743-254e8c10-nightly_1684196646415_0.42582531176859795","host":"s3://npm-registry-packages"}},"0.0.0-20230516150657-31efbf21-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230516150657-31efbf21-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230516150657-31efbf21-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"2a39c30a60575b3c80275fe5ef1fe5bdf7312a6e","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230516150657-31efbf21-nightly.tgz","fileCount":106,"integrity":"sha512-gxAfPbLdZBvzhKmFRID6938etbcVj1sggF4v94ZfSqg3rQml1z+h+3EaXkwY4rxlgIrUFtcmmT4Q6uLMN+U6Aw==","signatures":[{"sig":"MEYCIQC1aBEXwuOu9/Ms0J61CfswgvANsZSNqkBirBHmV8+OqAIhANjwDU+xkS7jmkRpCXd340C903syUhFMZecPOqL5UauK","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230516150657-31efbf21-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230516150657-31efbf21-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/9a36a02d0df5a0951932c273ff9f165c/blocksuite-connector-0.0.0-20230516150657-31efbf21-nightly.tgz","_integrity":"sha512-gxAfPbLdZBvzhKmFRID6938etbcVj1sggF4v94ZfSqg3rQml1z+h+3EaXkwY4rxlgIrUFtcmmT4Q6uLMN+U6Aw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230516150657-31efbf21-nightly_1684283195611_0.10883766315205157","host":"s3://npm-registry-packages"}},"0.0.0-20230517071334-40b6a07f-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230517071334-40b6a07f-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230517071334-40b6a07f-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"fc11b2a62134062dc83cd3f576224a373d28ae55","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230517071334-40b6a07f-nightly.tgz","fileCount":106,"integrity":"sha512-Vk2V+R9UGDBZIhdRO6g1S8RJWcTT1gIMwquA7CksSVEsXJKl7+KyjcIGIsKt+VYicCbX3bfIboaptTM4uD8/Cw==","signatures":[{"sig":"MEUCIQDJERx1XN5Wz2Ip+/4mfHLP7IkEiMKYjfJ5C+42BGal2AIgb5euHp/CMtvLZgbgObbJoVv97SVjyYYWyzvU+CSh+cI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230517071334-40b6a07f-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230517071334-40b6a07f-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/4ef54e19a3c47ec2ec752f38206e2f5b/blocksuite-connector-0.0.0-20230517071334-40b6a07f-nightly.tgz","_integrity":"sha512-Vk2V+R9UGDBZIhdRO6g1S8RJWcTT1gIMwquA7CksSVEsXJKl7+KyjcIGIsKt+VYicCbX3bfIboaptTM4uD8/Cw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230517071334-40b6a07f-nightly_1684315421951_0.5447735607089343","host":"s3://npm-registry-packages"}},"0.0.0-20230517102216-36bda4ab-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230517102216-36bda4ab-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230517102216-36bda4ab-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"f42dc52b612f602bc8d706b44f70709997c63670","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230517102216-36bda4ab-nightly.tgz","fileCount":106,"integrity":"sha512-79/VHGZjHHclgCi4QAPsrHePl+ivpMHodzSF0OuNB6pzI8W8782FNpjtemBZHdVXN3HxQxoEGAK/3jBFidbraQ==","signatures":[{"sig":"MEQCIGQ+m4ZuKvdUIZrxgMkXJqvzLmmXv4bbM4RjAqqOS5EuAiAouzJX1ixkyYAZaTJwhHB2xuAiJKTR8hjzXGHr0vj/dQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230517102216-36bda4ab-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230517102216-36bda4ab-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/20338b3ab796c6a7e945f191f05c7903/blocksuite-connector-0.0.0-20230517102216-36bda4ab-nightly.tgz","_integrity":"sha512-79/VHGZjHHclgCi4QAPsrHePl+ivpMHodzSF0OuNB6pzI8W8782FNpjtemBZHdVXN3HxQxoEGAK/3jBFidbraQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230517102216-36bda4ab-nightly_1684319202915_0.5384447195040203","host":"s3://npm-registry-packages"}},"0.0.0-20230518050717-68d6871b-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230518050717-68d6871b-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230518050717-68d6871b-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"de432d6c11ac8692e11485a2c1f127d6e74c43c4","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230518050717-68d6871b-nightly.tgz","fileCount":106,"integrity":"sha512-s7Io827spfev0CFzlqpUXAe1GNwHZ83Y7YdyN7FzNop913SxNg+vy7yQpr73OTRl2mogCqbFtu1vUKbr43zV3g==","signatures":[{"sig":"MEYCIQDSYz5PYvqqTY4Unr9URg9EM6/oayQtL5oWq569jP48lgIhAIxCfFbGckic6hKrqdg7LlpgR5SczwbALkUijSlYqi9R","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230518050717-68d6871b-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230518050717-68d6871b-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/4917e4a6a92040063a30b6f33b2a26d9/blocksuite-connector-0.0.0-20230518050717-68d6871b-nightly.tgz","_integrity":"sha512-s7Io827spfev0CFzlqpUXAe1GNwHZ83Y7YdyN7FzNop913SxNg+vy7yQpr73OTRl2mogCqbFtu1vUKbr43zV3g==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230518050717-68d6871b-nightly_1684386639992_0.2168389770757344","host":"s3://npm-registry-packages"}},"0.0.0-20230518051344-45970a96-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230518051344-45970a96-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230518051344-45970a96-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"77bf20040b6cdc8e98ac809ef8068d49c60323d8","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230518051344-45970a96-nightly.tgz","fileCount":106,"integrity":"sha512-KVXWKcoIJ9E9nZ46o0rpOAWcJuw4cvxRSB3Gachz7kyAD2T1QLCwmReMHRgUWH2EBrAtwiQD7q3hQg+ju1tvFg==","signatures":[{"sig":"MEUCIQDKRaqwpKkYzmiON1xjA0gnGkQL5k7z4uwywzczPEDABwIgIM0iai7VMSTizSKYd9CujVzIUupnqZ/aU/5xYeqmx/4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230518051344-45970a96-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230518051344-45970a96-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/f3431f2336c1990520992ad52491a448/blocksuite-connector-0.0.0-20230518051344-45970a96-nightly.tgz","_integrity":"sha512-KVXWKcoIJ9E9nZ46o0rpOAWcJuw4cvxRSB3Gachz7kyAD2T1QLCwmReMHRgUWH2EBrAtwiQD7q3hQg+ju1tvFg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230518051344-45970a96-nightly_1684387047122_0.8954872629552999","host":"s3://npm-registry-packages"}},"0.0.0-20230518132640-c31abed2-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230518132640-c31abed2-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230518132640-c31abed2-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"01cfc5b8d1dc05c9924587158d785805a951419e","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230518132640-c31abed2-nightly.tgz","fileCount":106,"integrity":"sha512-Vh9roNpoBhM7zI4jnK1tCD+PUHHKKnp40Q5+nCL/mVWzbOHH43YxMYCV3dNJ4VpXbLq8IKnPwJrxiVkuTt8VXQ==","signatures":[{"sig":"MEQCIBwHVmRRSXoRD+ZIom6Qlyos8T2VPQOXCnxtLMlWSu+rAiA6tdqLGLncRCxHFZKAOC1L79B9g9ywck+sf6MnCzo4CQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230518132640-c31abed2-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230518132640-c31abed2-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/2c13c7fc3b7e612a35cb760dcabdefa1/blocksuite-connector-0.0.0-20230518132640-c31abed2-nightly.tgz","_integrity":"sha512-Vh9roNpoBhM7zI4jnK1tCD+PUHHKKnp40Q5+nCL/mVWzbOHH43YxMYCV3dNJ4VpXbLq8IKnPwJrxiVkuTt8VXQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230518132640-c31abed2-nightly_1684455880844_0.35312045966633","host":"s3://npm-registry-packages"}},"0.0.0-20230519064753-1a553313-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230519064753-1a553313-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230519064753-1a553313-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"fb03d3a7d165e03f17f34b6a74806bbf9ad1565a","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230519064753-1a553313-nightly.tgz","fileCount":106,"integrity":"sha512-3wG38a038jCaYSVvLA8mTG2FcpK5fbbaMfz7MiMMnaMoxVGLlgPkeaWF8CbSPw0QZIkF53XC0jHCGhqey6V7og==","signatures":[{"sig":"MEYCIQDaCphCWV8qzMobOxv+jo/YKNeoktxWu0cbybHBvCUUVQIhAIKannfsNsvyYaO0oZxC34J4goBKMfXtLcO9WyOQVaib","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230519064753-1a553313-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230519064753-1a553313-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/c567b1902cfef40082969ac660f84e22/blocksuite-connector-0.0.0-20230519064753-1a553313-nightly.tgz","_integrity":"sha512-3wG38a038jCaYSVvLA8mTG2FcpK5fbbaMfz7MiMMnaMoxVGLlgPkeaWF8CbSPw0QZIkF53XC0jHCGhqey6V7og==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230519064753-1a553313-nightly_1684479049300_0.07454730385816322","host":"s3://npm-registry-packages"}},"0.0.0-20230519102837-01acd96b-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230519102837-01acd96b-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230519102837-01acd96b-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"edfc76c27a51afb62fed8cf861bd8056e00ca41e","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230519102837-01acd96b-nightly.tgz","fileCount":106,"integrity":"sha512-XfvH+ZsSTi06R1Cnts8tog9roeWzbEfuL2qrwH4g/a7Cyd0xF+69VCdmepioDuE1AvhmUXOlmncYAuQg10Xg2A==","signatures":[{"sig":"MEUCIA32B2C6Pl8HtGYs9eYP+8xIPWEE8aQPGtuW5+62hH5VAiEA1NoH/edXV2m5dw/XY7VkpMU7P+/lqBCjVpJWsnOO7jE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230519102837-01acd96b-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230519102837-01acd96b-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/9744742f14f4a9655cd6c5ea1b549b67/blocksuite-connector-0.0.0-20230519102837-01acd96b-nightly.tgz","_integrity":"sha512-XfvH+ZsSTi06R1Cnts8tog9roeWzbEfuL2qrwH4g/a7Cyd0xF+69VCdmepioDuE1AvhmUXOlmncYAuQg10Xg2A==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230519102837-01acd96b-nightly_1684542252397_0.5118669852055568","host":"s3://npm-registry-packages"}},"0.0.0-20230522085150-18e83864-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230522085150-18e83864-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230522085150-18e83864-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"762f2dcff91a60b5bafe2f64f31ef13a5432145a","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230522085150-18e83864-nightly.tgz","fileCount":106,"integrity":"sha512-EcAbWD7ZdxMlK7inTUl9oT3/1jkg1k6cYx/JtqjlWaZgcv99xtivYJ04zGeMwubF7/02ssFX95EDSrRO9LFmZA==","signatures":[{"sig":"MEUCIDUKcoT458A0QTs86/hainP1r1dE5HwITfTktKG4EW8wAiEA+W1mJ2d7OsoH26PTg57BrFG8qnrDnQwK9RWJBkyA1XY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230522085150-18e83864-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230522085150-18e83864-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/39e15cc1cd9c8b3824051cacc381a85d/blocksuite-connector-0.0.0-20230522085150-18e83864-nightly.tgz","_integrity":"sha512-EcAbWD7ZdxMlK7inTUl9oT3/1jkg1k6cYx/JtqjlWaZgcv99xtivYJ04zGeMwubF7/02ssFX95EDSrRO9LFmZA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230522085150-18e83864-nightly_1684801504223_0.4601948010856458","host":"s3://npm-registry-packages"}},"0.0.0-20230523113844-e23384f1-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230523113844-e23384f1-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230523113844-e23384f1-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"b7eeee001d833a4321eb0509800f7e5da33c7637","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230523113844-e23384f1-nightly.tgz","fileCount":106,"integrity":"sha512-3Cj5CWETd3PvAeg4xn+NIxMCL3QwMQ6qB0ks0EaXQEa4+ml3wISHJGOtXfnILIzSYmcuIhj4pdAgZQdpaWQ3Rw==","signatures":[{"sig":"MEUCIQDCX06BS6PwByGN5o7O6Sd3DRjFxTk6EhrBCu3tgyOd2gIgFBU3rwJH22X2dnJFnqV17IAY0MHGy+3oPDxLDx2ED30=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230523113844-e23384f1-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230523113844-e23384f1-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/a1b8d0e1a9dd1c101540667b73de790e/blocksuite-connector-0.0.0-20230523113844-e23384f1-nightly.tgz","_integrity":"sha512-3Cj5CWETd3PvAeg4xn+NIxMCL3QwMQ6qB0ks0EaXQEa4+ml3wISHJGOtXfnILIzSYmcuIhj4pdAgZQdpaWQ3Rw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230523113844-e23384f1-nightly_1684887854153_0.7075634983613508","host":"s3://npm-registry-packages"}},"0.0.0-20230524232247-8c175b40-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230524232247-8c175b40-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230524232247-8c175b40-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"fcb271c96d77c4be40b1bc1ba9d9a8f74d303427","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230524232247-8c175b40-nightly.tgz","fileCount":106,"integrity":"sha512-IxBuHXd0vifXJUuIWGHmgj9kWpj57Jo2DJgbIBGgT48ksKUhABDj2XJQY2mMKgfTNa2bNa/7lktL9oiy4k9aOA==","signatures":[{"sig":"MEUCIBdbZuklyAbm1AdKVmOH5EINVXuzDxq0vTIxtgETbFJ+AiEAt7x/pLCRRNtz5VIiXP2Hxn8CNCfWqbjOzczH/3vecMI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230524232247-8c175b40-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230524232247-8c175b40-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/15d40fde7ff880857b70fa3ac4e3429b/blocksuite-connector-0.0.0-20230524232247-8c175b40-nightly.tgz","_integrity":"sha512-IxBuHXd0vifXJUuIWGHmgj9kWpj57Jo2DJgbIBGgT48ksKUhABDj2XJQY2mMKgfTNa2bNa/7lktL9oiy4k9aOA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230524232247-8c175b40-nightly_1684974209802_0.17426508448729616","host":"s3://npm-registry-packages"}},"0.0.0-20230525011821-20259c76-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230525011821-20259c76-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230525011821-20259c76-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"989b58f7f5c1f293fd1876303ced0a7d3eb5749e","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230525011821-20259c76-nightly.tgz","fileCount":106,"integrity":"sha512-agm/dJmem8i1Zqy7sKmq3Dq6gqFSZJloG0ncC42NMxhHq3ZH8smS7iecFkvUrsmxllPzvUy+iEFY6S2eCUXSww==","signatures":[{"sig":"MEUCIFlh+/moBUyvJmC4qcuv/L5UNWEp1n8LcI/LVoUtUWbWAiEA2Aw8EyUfgaLS60rgy3gH7X/ac1EEp0CRzi60cJS/2ZU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230525011821-20259c76-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230525011821-20259c76-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/7734c2eba3f61a0eb28ddcd6e5d2aac5/blocksuite-connector-0.0.0-20230525011821-20259c76-nightly.tgz","_integrity":"sha512-agm/dJmem8i1Zqy7sKmq3Dq6gqFSZJloG0ncC42NMxhHq3ZH8smS7iecFkvUrsmxllPzvUy+iEFY6S2eCUXSww==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230525011821-20259c76-nightly_1684980162478_0.38876880392803104","host":"s3://npm-registry-packages"}},"0.0.0-20230525072216-d4cc19b1-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230525072216-d4cc19b1-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230525072216-d4cc19b1-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"47cc0dc0a0f21028ad0f9079e6c52acab06b0e06","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230525072216-d4cc19b1-nightly.tgz","fileCount":106,"integrity":"sha512-RmGNI6/vjBscrfKWB//M7jtkkiqZhHvc7CgOpI+hFe9+9fDgMTVwnZYOu0Jw+yKLezzx7cYaNGfoV+orRnj3Pw==","signatures":[{"sig":"MEUCIEHvugDX5aaB51yyIbk0JwH/HMLcT8tskGl11ACbrkBnAiEAtM3J85+AghENeN+C2pHXrTjN8mOO7ZOoLsL4wJeUVEY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230525072216-d4cc19b1-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230525072216-d4cc19b1-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/eb6762b06d5861da66ab7f4eb23de4f6/blocksuite-connector-0.0.0-20230525072216-d4cc19b1-nightly.tgz","_integrity":"sha512-RmGNI6/vjBscrfKWB//M7jtkkiqZhHvc7CgOpI+hFe9+9fDgMTVwnZYOu0Jw+yKLezzx7cYaNGfoV+orRnj3Pw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230525072216-d4cc19b1-nightly_1685000989090_0.9555910679221313","host":"s3://npm-registry-packages"}},"0.0.0-20230525112306-4e165666-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230525112306-4e165666-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230525112306-4e165666-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"eba0f9d45e1b78187542b584809e68a60c7bf22d","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230525112306-4e165666-nightly.tgz","fileCount":106,"integrity":"sha512-X45T/J3H3ts0gJdaWAMl0rwKWltRnzDkqOncBbuhCAwTA8j4bi9pih4ncTtqMn46IdCVtCr9AU0+wkjMyo0/Vg==","signatures":[{"sig":"MEUCIHpFwxhJulGiDxIRJrqDPcZWgXuMPWBe4H0uTvr9X77lAiEArNp15Ic6n4eaBb/zaZAA5nfpwVZaeIyrCMvVh6qKTZI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230525112306-4e165666-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230525112306-4e165666-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/f20aa31c7112896572dd540aef7cd61f/blocksuite-connector-0.0.0-20230525112306-4e165666-nightly.tgz","_integrity":"sha512-X45T/J3H3ts0gJdaWAMl0rwKWltRnzDkqOncBbuhCAwTA8j4bi9pih4ncTtqMn46IdCVtCr9AU0+wkjMyo0/Vg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230525112306-4e165666-nightly_1685023213407_0.2941223490449043","host":"s3://npm-registry-packages"}},"0.0.0-20230526010315-e1d4bf97-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230526010315-e1d4bf97-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230526010315-e1d4bf97-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"b2ba756aba4a98997531e7681f3e23311d907872","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230526010315-e1d4bf97-nightly.tgz","fileCount":106,"integrity":"sha512-oUv9RsdCLACdmnmXvsHTw84vqHMnLvYJcZ96fRb/c1yy2FGOiXenhwmBA+Hv4/GybIJrILF5ZOvcxbCMb8kRBQ==","signatures":[{"sig":"MEYCIQCJ7kOGz43Z0vRVkB4JBmUOSNIwpL16UZVaQ1I/rDyaHgIhAJ8WNLvPQCaq/So7L3rFf/1mzlRQxJiFVZ3Z8HtBoNBn","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230526010315-e1d4bf97-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230526010315-e1d4bf97-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/faa6df7b98706616ce6e4b129b3c6b50/blocksuite-connector-0.0.0-20230526010315-e1d4bf97-nightly.tgz","_integrity":"sha512-oUv9RsdCLACdmnmXvsHTw84vqHMnLvYJcZ96fRb/c1yy2FGOiXenhwmBA+Hv4/GybIJrILF5ZOvcxbCMb8kRBQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230526010315-e1d4bf97-nightly_1685066528483_0.8405165730017263","host":"s3://npm-registry-packages"}},"0.0.0-20230526024755-74df4d56-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230526024755-74df4d56-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230526024755-74df4d56-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"e8cc40557bdd3718e060863fd30a637cff5efd8a","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230526024755-74df4d56-nightly.tgz","fileCount":106,"integrity":"sha512-ghGPB+i92BBgBCJ4jFtkEB7UXR4SDPGA6CcQWdGH+ssdcqcrdW0/JNpjhWBatDr6agOMk7/YYCUGeTeKJ3Wuxw==","signatures":[{"sig":"MEQCIC/SbY5UvAZok3ONf6M8IK0geUMjDJ/eWfDhzEQj+VJwAiAQRpLxpAOV7iaPlXjlYPZUaxlTVD3MlE33WQ0lpbkqjQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230526024755-74df4d56-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230526024755-74df4d56-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/e20e8b7b72ef26a2877281ed429585f7/blocksuite-connector-0.0.0-20230526024755-74df4d56-nightly.tgz","_integrity":"sha512-ghGPB+i92BBgBCJ4jFtkEB7UXR4SDPGA6CcQWdGH+ssdcqcrdW0/JNpjhWBatDr6agOMk7/YYCUGeTeKJ3Wuxw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230526024755-74df4d56-nightly_1685069470719_0.653099433047138","host":"s3://npm-registry-packages"}},"0.0.0-20230526105510-0350c2c0-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230526105510-0350c2c0-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230526105510-0350c2c0-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"fcd3865bd48967f065a3201ea382374c2cdb755e","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230526105510-0350c2c0-nightly.tgz","fileCount":106,"integrity":"sha512-wnlVFxLLtHdRDB4dft0HbPRDB2bM95/yctrqxhoGH7Hp2/6E1yEy8kJ8bxH0UUsWvuzmf3uGwf022uiylcfBzQ==","signatures":[{"sig":"MEUCIHo7ObBlnQigQarU0pOT08fF4q+kEFXsqoN1+CqSDUGRAiEA64/Il0y2gPavUFZsTJnp/PrtX18EsNzhKkS81ZzSrYM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230526105510-0350c2c0-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230526105510-0350c2c0-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/f0113a8cf03aa4d40f4befa036708a5e/blocksuite-connector-0.0.0-20230526105510-0350c2c0-nightly.tgz","_integrity":"sha512-wnlVFxLLtHdRDB4dft0HbPRDB2bM95/yctrqxhoGH7Hp2/6E1yEy8kJ8bxH0UUsWvuzmf3uGwf022uiylcfBzQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230526105510-0350c2c0-nightly_1685147198223_0.9783685126654069","host":"s3://npm-registry-packages"}},"0.0.0-20230527155447-cef80420-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230527155447-cef80420-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230527155447-cef80420-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"ceddfe4512c90c9f67d1328b036ff864623f64a4","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230527155447-cef80420-nightly.tgz","fileCount":106,"integrity":"sha512-k2uQQYoOwQIQucqhAfQtNhfGI/ScseygAazRQng8+6PhnJ3MXBNpfLbgxsi5gX1YTYFXVN1ysjtcYaeo7jz/pw==","signatures":[{"sig":"MEYCIQD9ebhjzL3gmYSe5djq85I7wrZpPHFYeEbrfNVs5wvDMQIhALrMEkscsfjgcy2BSNVAeeRiDwAD1ljo9diTshM5gzLs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230527155447-cef80420-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230527155447-cef80420-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/747344c4f6e2a0223b74026af98b1fbe/blocksuite-connector-0.0.0-20230527155447-cef80420-nightly.tgz","_integrity":"sha512-k2uQQYoOwQIQucqhAfQtNhfGI/ScseygAazRQng8+6PhnJ3MXBNpfLbgxsi5gX1YTYFXVN1ysjtcYaeo7jz/pw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230527155447-cef80420-nightly_1685233626300_0.1819275304486052","host":"s3://npm-registry-packages"}},"0.0.0-20230529063116-9927a75a-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230529063116-9927a75a-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230529063116-9927a75a-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"0cfdb4c1ff69e8b7c7a5235bb8c071f6c3358fc2","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230529063116-9927a75a-nightly.tgz","fileCount":106,"integrity":"sha512-6cZ2ATHAb/f9+aVeLi5im2Kpm2BHTPrioaPJiyUgrLFgj4dgyTQRXLcx7yjrTRYTuCKteusHIKmh+QRbxrxUNA==","signatures":[{"sig":"MEUCIQCFHuoiE6VRDVZh/Eny45Yc/NsVGJVPeFHtpe2dpR0MfAIgcvBl3tWUlvRysk6fw0ucymrxyywX38rN4lePcCvsw6U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230529063116-9927a75a-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230529063116-9927a75a-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/32c6b644cfb40e03518299765e972d3f/blocksuite-connector-0.0.0-20230529063116-9927a75a-nightly.tgz","_integrity":"sha512-6cZ2ATHAb/f9+aVeLi5im2Kpm2BHTPrioaPJiyUgrLFgj4dgyTQRXLcx7yjrTRYTuCKteusHIKmh+QRbxrxUNA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230529063116-9927a75a-nightly_1685343037281_0.2526142648204881","host":"s3://npm-registry-packages"}},"0.0.0-20230529073717-06f81074-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230529073717-06f81074-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230529073717-06f81074-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"6de77961b919f816e8206a7753a7545e29537686","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230529073717-06f81074-nightly.tgz","fileCount":106,"integrity":"sha512-ZomUoyfZ9SNznsEwy6KMDcpryKTTXbh+PofLpVYlk6Tb4nHyywewriMH1bn3hbhU4qui3a9jeulkPsc1dqngPQ==","signatures":[{"sig":"MEUCIGQ006jYIh3Lmky+MMnq7lJsxf4zoX3FNkCw7lAKuo29AiEAkadhPRdclKff+e/90BM1f2z/pSzvfd2GGPRaEyVD7Z4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230529073717-06f81074-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230529073717-06f81074-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/072a780f6580f72a97e00553eda4d03b/blocksuite-connector-0.0.0-20230529073717-06f81074-nightly.tgz","_integrity":"sha512-ZomUoyfZ9SNznsEwy6KMDcpryKTTXbh+PofLpVYlk6Tb4nHyywewriMH1bn3hbhU4qui3a9jeulkPsc1dqngPQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230529073717-06f81074-nightly_1685346153122_0.7179987645176555","host":"s3://npm-registry-packages"}},"0.0.0-20230529075358-c0eb6564-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230529075358-c0eb6564-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230529075358-c0eb6564-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"8d6c10e605a012b80a3823952cb3fd20e0b36677","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230529075358-c0eb6564-nightly.tgz","fileCount":106,"integrity":"sha512-5RfqEFH+trhTzTE2GCyWyGyCZMB2+iRHc4rGSSnpTgtqWX1vflU5SAEImVxB5TIeEaQ8uTUzzX5/53bWLjV31Q==","signatures":[{"sig":"MEYCIQDiYQHPjaVNCyaRKrlhbdhLRWkJ47U7sIux4UMOiLu1cQIhAJMYp0Mn5Y+nhgK6HJPmwHEtJ4Kjvul66XKCa0LqKO/Q","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230529075358-c0eb6564-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230529075358-c0eb6564-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/ebe5797a61a744064b1d5903e376927a/blocksuite-connector-0.0.0-20230529075358-c0eb6564-nightly.tgz","_integrity":"sha512-5RfqEFH+trhTzTE2GCyWyGyCZMB2+iRHc4rGSSnpTgtqWX1vflU5SAEImVxB5TIeEaQ8uTUzzX5/53bWLjV31Q==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230529075358-c0eb6564-nightly_1685347021744_0.8992248245874046","host":"s3://npm-registry-packages"}},"0.0.0-20230529085908-d3d4c1a3-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230529085908-d3d4c1a3-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230529085908-d3d4c1a3-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"55b270187eac44f9e82d4f7f9b6d3964dbbc1694","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230529085908-d3d4c1a3-nightly.tgz","fileCount":106,"integrity":"sha512-fw0X/qK78GGil8Kjbl2J+W2KwYd25mLlebmwZzjZDmDqanNt7uR+byInuXQG+3PZWdsdZpHPfrvzAR7MCFKwpg==","signatures":[{"sig":"MEQCIDCT8Y0aSVeRDRnYe+ONKkj/p5gormm6XnP/Wf4gUMgeAiBPH00B7rQkGws3QMpD/dj3OeEQULf5CUfzRZTfEiK7KA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230529085908-d3d4c1a3-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230529085908-d3d4c1a3-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/e44965309f6d9c005046b1ab94450b5f/blocksuite-connector-0.0.0-20230529085908-d3d4c1a3-nightly.tgz","_integrity":"sha512-fw0X/qK78GGil8Kjbl2J+W2KwYd25mLlebmwZzjZDmDqanNt7uR+byInuXQG+3PZWdsdZpHPfrvzAR7MCFKwpg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230529085908-d3d4c1a3-nightly_1685351282620_0.5309859291688233","host":"s3://npm-registry-packages"}},"0.0.0-20230529102007-5ac37643-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230529102007-5ac37643-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230529102007-5ac37643-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"45ae74eb36ade78ae64cee3b51558ced2077d40f","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230529102007-5ac37643-nightly.tgz","fileCount":106,"integrity":"sha512-EacUs8aKfC9QeQBhyI22vTxn9ptX3reC8bnapGdmPA3cKIafYVjmYtFniIzKHiLLheDPdk8cwgcxYBI5D13VvA==","signatures":[{"sig":"MEUCIQCrdL3rfmUQq3ezrApddpcUnvGZ+9OyVKuz25KAoGshqwIgf3IbxXxbWVqOYG9UEZXduH1Uby5XyuLWgKWC+dYjFAs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230529102007-5ac37643-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230529102007-5ac37643-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/127c049767803f316a055038b2a12074/blocksuite-connector-0.0.0-20230529102007-5ac37643-nightly.tgz","_integrity":"sha512-EacUs8aKfC9QeQBhyI22vTxn9ptX3reC8bnapGdmPA3cKIafYVjmYtFniIzKHiLLheDPdk8cwgcxYBI5D13VvA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230529102007-5ac37643-nightly_1685356280666_0.9626878470707663","host":"s3://npm-registry-packages"}},"0.0.0-20230529110357-2729de93-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230529110357-2729de93-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230529110357-2729de93-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"a094bf7220c8e6ec594503f8321eb919acc557d5","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230529110357-2729de93-nightly.tgz","fileCount":106,"integrity":"sha512-mEsPALnvBsmpo+0lZvu2+sy4rUkKSgRbaZlxAdNp7LMHr9KwRC08cquYyuOvIlQUY4WFfhk84xHHtAKnAjjVQg==","signatures":[{"sig":"MEUCIAH1S9nDDOAVEWj7MSve6icXUpKf8lC1seF5EXAwhGTJAiEAz7jXz1XVAOYkQv0qnJkVtu87RywqfPVVypdawec4pvE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230529110357-2729de93-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230529110357-2729de93-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/adea6a0c138690a3bd64dde2945533ee/blocksuite-connector-0.0.0-20230529110357-2729de93-nightly.tgz","_integrity":"sha512-mEsPALnvBsmpo+0lZvu2+sy4rUkKSgRbaZlxAdNp7LMHr9KwRC08cquYyuOvIlQUY4WFfhk84xHHtAKnAjjVQg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230529110357-2729de93-nightly_1685359701687_0.376342992692007","host":"s3://npm-registry-packages"}},"0.0.0-20230529210748-ab9952ba-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230529210748-ab9952ba-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230529210748-ab9952ba-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"350375cacdd4f187be078e03d0d6c391a99c8477","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230529210748-ab9952ba-nightly.tgz","fileCount":106,"integrity":"sha512-93ivDtbjse3c/wq8bbHK8R7SZe97434WzYX4ejCcj6Prqu7uI5jIImL8zq9fWDsXmvrYu6gEMKUGAt/1vH7Wfw==","signatures":[{"sig":"MEUCIAcl6VZwvt7PxZS/8Aap4VnzPUK4eWE9HD0VuYZRcvlqAiEAgWAbDuBUfQKc8L9svDqEOr2APeW5UG3XEfPah38LmXM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230529210748-ab9952ba-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230529210748-ab9952ba-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/c593e809d603c99d875d07aa4a898c51/blocksuite-connector-0.0.0-20230529210748-ab9952ba-nightly.tgz","_integrity":"sha512-93ivDtbjse3c/wq8bbHK8R7SZe97434WzYX4ejCcj6Prqu7uI5jIImL8zq9fWDsXmvrYu6gEMKUGAt/1vH7Wfw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230529210748-ab9952ba-nightly_1685406457351_0.08288197546546971","host":"s3://npm-registry-packages"}},"0.0.0-20230530061436-d0702cc0-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230530061436-d0702cc0-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230530061436-d0702cc0-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"07bb19af9be26cea2835b0553809eb6ee8f9f865","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230530061436-d0702cc0-nightly.tgz","fileCount":106,"integrity":"sha512-c42hJb1eKQtPdQL4KMTifkH+FTJxLH/hDx9TVhKwEkxuAbqcA6Lnmy5fyk4j3bFvL4oYzeWjPBBRLTsGAxUPdg==","signatures":[{"sig":"MEUCIQDDWTRh/mOEXL7+RlRLsRVWtI6J7zz46r3KhmIOKjZruAIgP3tmdwtXji2BDPMpt4heEfdPRHqIwWkLj8sQF2LLFwQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230530061436-d0702cc0-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230530061436-d0702cc0-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/3096071481e283626c1699ed47d1fd87/blocksuite-connector-0.0.0-20230530061436-d0702cc0-nightly.tgz","_integrity":"sha512-c42hJb1eKQtPdQL4KMTifkH+FTJxLH/hDx9TVhKwEkxuAbqcA6Lnmy5fyk4j3bFvL4oYzeWjPBBRLTsGAxUPdg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230530061436-d0702cc0-nightly_1685428154588_0.6667448030583358","host":"s3://npm-registry-packages"}},"0.0.0-20230530101649-463577c2-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230530101649-463577c2-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230530101649-463577c2-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"a1ddc73bbbd802e852cfd3775d1f48e216fd6810","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230530101649-463577c2-nightly.tgz","fileCount":106,"integrity":"sha512-lbUtMhbcGm/GW0lG/EUmftXJw+S/kw/m1niyS5fvwmN9Tfcg5oWx4Mgb/swGwzm1W9quKGUJjBZZ9s+iEQJt3Q==","signatures":[{"sig":"MEQCIE0MLf3DvcK8eiK6jA2wukbhTCbdcVbd+kjtm/tbSUIjAiARV2BWzeqTbZy78kL5LUlZvOaZ5bOPgrOwdvGhGDL5GA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230530101649-463577c2-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230530101649-463577c2-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/47de0785ca0b7d503ecd44e2ab0baab7/blocksuite-connector-0.0.0-20230530101649-463577c2-nightly.tgz","_integrity":"sha512-lbUtMhbcGm/GW0lG/EUmftXJw+S/kw/m1niyS5fvwmN9Tfcg5oWx4Mgb/swGwzm1W9quKGUJjBZZ9s+iEQJt3Q==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230530101649-463577c2-nightly_1685492822830_0.9773365162190433","host":"s3://npm-registry-packages"}},"0.0.0-20230531040027-44cd9d8e-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230531040027-44cd9d8e-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230531040027-44cd9d8e-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"2f8d092d91a473099437d57e28f4dde21bebf123","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230531040027-44cd9d8e-nightly.tgz","fileCount":106,"integrity":"sha512-Dga4JZ1DxcDQjY9b08e/0XWFeZ21YcKqcQpvB9NG7SdbsbGV6EaNXQnRqT8NBLJBU4itPL31t35Eur7AJ/gn8A==","signatures":[{"sig":"MEUCIHJC3SQGPFZBcmGkOLTQVGNYavGfs+ls/NfuvIq6XeDUAiEAzVlI83qDX9dk2cC1tR5o/tbljqzXy5R9LKEVoyHxP0U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230531040027-44cd9d8e-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230531040027-44cd9d8e-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/e80b4e000492d4b290e5509437f14d5a/blocksuite-connector-0.0.0-20230531040027-44cd9d8e-nightly.tgz","_integrity":"sha512-Dga4JZ1DxcDQjY9b08e/0XWFeZ21YcKqcQpvB9NG7SdbsbGV6EaNXQnRqT8NBLJBU4itPL31t35Eur7AJ/gn8A==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230531040027-44cd9d8e-nightly_1685506159190_0.5806491555586542","host":"s3://npm-registry-packages"}},"0.0.0-20230531071546-a544414b-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230531071546-a544414b-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230531071546-a544414b-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"7b13ba4e0acc2b9da07bd7f0ef4118ed60c46d99","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230531071546-a544414b-nightly.tgz","fileCount":106,"integrity":"sha512-aSY+PJ1K3UB5wo2uGnN+3S346Tk6bc/KT2LhqdQY+M1kFWQjO6RIjC+8y6JmpIVqj84TVW4hoyhFNiGaXxtGNA==","signatures":[{"sig":"MEUCIFnzLNOiLYg/4uIJqy1hNFGNRX6KOh/nC8+Mbd5n4hlwAiEA87fRvIVJHIlMh57PKz2fCZPVWZcLKZ6E8jwbkCM1qmE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230531071546-a544414b-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230531071546-a544414b-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/832d4fa4a09370266f6399002b2ca34a/blocksuite-connector-0.0.0-20230531071546-a544414b-nightly.tgz","_integrity":"sha512-aSY+PJ1K3UB5wo2uGnN+3S346Tk6bc/KT2LhqdQY+M1kFWQjO6RIjC+8y6JmpIVqj84TVW4hoyhFNiGaXxtGNA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230531071546-a544414b-nightly_1685518594414_0.8219926890938252","host":"s3://npm-registry-packages"}},"0.0.0-20230531074909-e951a818-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230531074909-e951a818-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230531074909-e951a818-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"271b9c9109df45084f3d81110786a61c9d367c41","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230531074909-e951a818-nightly.tgz","fileCount":106,"integrity":"sha512-Pg/RTIP7lRg4CulmFhlyHZRk4K5u1Z7y6Ff1UU/w1GD13cOvTkSWN1S3PYTpDhjQ6R7VfP9Ll4ICM8cN2a2ssg==","signatures":[{"sig":"MEUCIQDlKgZrT/yc0vI//ZXTUCOorf5TnCxRdjfoWJ7J6EpQWAIgOojsRnuU2L4xoSSvFdjUnKBO9jIHDVWeBXf7Ty6kW9Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230531074909-e951a818-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230531074909-e951a818-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/6eb442694f8596fbf127d0e3d0220129/blocksuite-connector-0.0.0-20230531074909-e951a818-nightly.tgz","_integrity":"sha512-Pg/RTIP7lRg4CulmFhlyHZRk4K5u1Z7y6Ff1UU/w1GD13cOvTkSWN1S3PYTpDhjQ6R7VfP9Ll4ICM8cN2a2ssg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230531074909-e951a818-nightly_1685519529946_0.1422195280519034","host":"s3://npm-registry-packages"}},"0.0.0-20230531080915-ca9c55a2-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230531080915-ca9c55a2-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230531080915-ca9c55a2-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"e8ace189adce6476005e6aba82b4b5aab78b626c","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230531080915-ca9c55a2-nightly.tgz","fileCount":106,"integrity":"sha512-QoEu44VEl6uYqwZmowAOD6fJ/Iv6JBIl7PmCF90cxsyLUHX88Fx+Tpo9zvxGOebXU4Ntmp1rIjjvV37DEGPjjw==","signatures":[{"sig":"MEQCIDp9dck8dkyjzxfShmM8LxxXkYAKZQtcSKVmc1zfUHDJAiBR2Kj5urFSNdCIzff9dJ3wcoIomQvA5eRagID4vtsDlQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230531080915-ca9c55a2-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230531080915-ca9c55a2-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/1d92b4c1de4ad12a5b2cf728cc5858be/blocksuite-connector-0.0.0-20230531080915-ca9c55a2-nightly.tgz","_integrity":"sha512-QoEu44VEl6uYqwZmowAOD6fJ/Iv6JBIl7PmCF90cxsyLUHX88Fx+Tpo9zvxGOebXU4Ntmp1rIjjvV37DEGPjjw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230531080915-ca9c55a2-nightly_1685521460387_0.18605280117317635","host":"s3://npm-registry-packages"}},"0.0.0-20230531101553-3854a14c-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230531101553-3854a14c-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230531101553-3854a14c-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"16016ba1afb4086905adb1fbc2372474c555be13","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230531101553-3854a14c-nightly.tgz","fileCount":106,"integrity":"sha512-gGeLQiHROO7oPPegJQmNKeNlA4w6XYQg/4HORAfuIxV/FwrRaMYj577Qyypj9BEcmgJyY21aeg0eZQ11eo8QUg==","signatures":[{"sig":"MEQCIFG6mNyCCVHIrzraHqTLME+WX6YoDDAqCti/vQOh+y7dAiAtTMsCEEAugOkcikdm9aDkSVWj5mdtRmQDNsREzAW7vA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230531101553-3854a14c-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230531101553-3854a14c-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/52366f33f595880aed9deb6c600dabe1/blocksuite-connector-0.0.0-20230531101553-3854a14c-nightly.tgz","_integrity":"sha512-gGeLQiHROO7oPPegJQmNKeNlA4w6XYQg/4HORAfuIxV/FwrRaMYj577Qyypj9BEcmgJyY21aeg0eZQ11eo8QUg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230531101553-3854a14c-nightly_1685579596700_0.41396500558436466","host":"s3://npm-registry-packages"}},"0.0.0-20230601062752-68dbf1a4-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230601062752-68dbf1a4-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230601062752-68dbf1a4-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"9dee7a32791ee04fa581d72edb56f652efed9f1d","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230601062752-68dbf1a4-nightly.tgz","fileCount":106,"integrity":"sha512-jiWdE6vQSp3rayjNfGZLG8wTf5J1KkxssddmbIOLiU0oUj8yLLpC3pnTWV66Mjqmy5RwLDrIYJfd8V/f2+XcHQ==","signatures":[{"sig":"MEQCIELCS1GVltaFNH5YYRUfVLK/AOXMQm0VzuQyVIY3gCgTAiA445fCNosWkT9JWNKky4wqDiXoAOZ+qwKEkhxWMea8uw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230601062752-68dbf1a4-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230601062752-68dbf1a4-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/134860a15f21e7d19ab6f2b03b732716/blocksuite-connector-0.0.0-20230601062752-68dbf1a4-nightly.tgz","_integrity":"sha512-jiWdE6vQSp3rayjNfGZLG8wTf5J1KkxssddmbIOLiU0oUj8yLLpC3pnTWV66Mjqmy5RwLDrIYJfd8V/f2+XcHQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230601062752-68dbf1a4-nightly_1685601096926_0.9465490439290221","host":"s3://npm-registry-packages"}},"0.0.0-20230601101714-0d24ba91-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230601101714-0d24ba91-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230601101714-0d24ba91-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"4ed923b5c73dc2b5792cc2aaba5d982968df213c","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230601101714-0d24ba91-nightly.tgz","fileCount":106,"integrity":"sha512-Bzc+I/MKiyBpbdevWLi5z4mfwQaFq0JQVC/D686uEedaQEcCisgQkwJSeEgsqNz5VHl+Dgx818D012uHkEQfeg==","signatures":[{"sig":"MEUCIQCJZboXoiKXh4kusWEqAx4elTb6oQCXt24nUc5jqoOsSgIgTMf7Ov3qy9WunUIqRCRjsY0f9jcVCtEgrrHF4VEaGk0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230601101714-0d24ba91-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230601101714-0d24ba91-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/3b92a055441e0414496dfaa708d52e2f/blocksuite-connector-0.0.0-20230601101714-0d24ba91-nightly.tgz","_integrity":"sha512-Bzc+I/MKiyBpbdevWLi5z4mfwQaFq0JQVC/D686uEedaQEcCisgQkwJSeEgsqNz5VHl+Dgx818D012uHkEQfeg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230601101714-0d24ba91-nightly_1685614927824_0.015984728149256666","host":"s3://npm-registry-packages"}},"0.0.0-20230601122821-16196c35-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230601122821-16196c35-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230601122821-16196c35-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"6479bea3de243769174435fedf7b4f77af7744d8","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230601122821-16196c35-nightly.tgz","fileCount":106,"integrity":"sha512-EPRXkq1vVdH44cMyw4PDkj5zPJlUSQ48RnyVolqnpTiDpf7P4TuTnN8qdaQ2IIltakg17oZu7nZLGlKl8/Ia8w==","signatures":[{"sig":"MEQCIAaSIQIxBHGbj+kfvEKCaw65vJIJYFVn4Z6tSyf42660AiA8VIrHyUQiH3YT4g+kvdcJ6fBiicySJNAdSj7uAAXNYg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230601122821-16196c35-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230601122821-16196c35-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/de3f1caea98325b08ef82f41b233d9f4/blocksuite-connector-0.0.0-20230601122821-16196c35-nightly.tgz","_integrity":"sha512-EPRXkq1vVdH44cMyw4PDkj5zPJlUSQ48RnyVolqnpTiDpf7P4TuTnN8qdaQ2IIltakg17oZu7nZLGlKl8/Ia8w==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230601122821-16196c35-nightly_1685665659531_0.3400218963678807","host":"s3://npm-registry-packages"}},"0.0.0-20230602020342-81b4c523-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230602020342-81b4c523-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230602020342-81b4c523-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"f8fb9a3e20663c6cd0361e8bb1e0954fd5b053b0","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230602020342-81b4c523-nightly.tgz","fileCount":106,"integrity":"sha512-yMDmbVVz20K27kUNHZ3uwW7ljroe9QWVUFAMBTdYLQICkP9zuDG+u3MM+ZeiXzwAjm66CXxFFXC9Doy4FqiA3Q==","signatures":[{"sig":"MEQCIDKj11U4hGKKbSOaPe5J6utPDMBKbe4KVb2ycA5on7grAiA+wvB1eyp4HSGu+X7jIDKrJxSqELe3fPs0YCERmRehCQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230602020342-81b4c523-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230602020342-81b4c523-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/81c0fe0d36292622ed8192ff707094cd/blocksuite-connector-0.0.0-20230602020342-81b4c523-nightly.tgz","_integrity":"sha512-yMDmbVVz20K27kUNHZ3uwW7ljroe9QWVUFAMBTdYLQICkP9zuDG+u3MM+ZeiXzwAjm66CXxFFXC9Doy4FqiA3Q==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230602020342-81b4c523-nightly_1685696319618_0.5659004940296479","host":"s3://npm-registry-packages"}},"0.0.0-20230602102854-1b6ffa69-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230602102854-1b6ffa69-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230602102854-1b6ffa69-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"d4565c2eea34f207d3f03b658b9c0941a23736cf","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230602102854-1b6ffa69-nightly.tgz","fileCount":106,"integrity":"sha512-tSRU2vs+RXDhzjuYdbNcW9tzHD/LbgKVn4Cbp2CokIjnOJDJb6PeQqI7sHHHDHsIjQEO/ipJrfjQs4QITrm8Ww==","signatures":[{"sig":"MEUCIBO44AqrX72Zn5uxFo42zEUdJeG4a6OMdszF5joe+YfMAiEAy6WyJcj/7nz1VlSF5h/P4tnleuOpFZUdH+6pLbhGN8w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230602102854-1b6ffa69-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230602102854-1b6ffa69-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/1b33ef8e43562f59f796ac3f704a4940/blocksuite-connector-0.0.0-20230602102854-1b6ffa69-nightly.tgz","_integrity":"sha512-tSRU2vs+RXDhzjuYdbNcW9tzHD/LbgKVn4Cbp2CokIjnOJDJb6PeQqI7sHHHDHsIjQEO/ipJrfjQs4QITrm8Ww==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230602102854-1b6ffa69-nightly_1685751986711_0.6401090604939415","host":"s3://npm-registry-packages"}},"0.0.0-20230604040121-4ab99587-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230604040121-4ab99587-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230604040121-4ab99587-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"b8efdccb039b897f7056394e240219b8dc38e9fb","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230604040121-4ab99587-nightly.tgz","fileCount":106,"integrity":"sha512-bSLMBLOWxu+I6h9GPwxMk5oty+b4naIaStSfBAxeBP7GZsrqdqZlq0+bXvZ1byob0x8J+SnHB3idOuZntSx6Nw==","signatures":[{"sig":"MEUCIQCqu0YEctNMmjOQQ3HUjFKfjChVd+rUFoG/RVm+A0rcMgIgPLEy69FMIeZopqyj8bWw86Nvb/XXX+9twULUJQ0g4G4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230604040121-4ab99587-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230604040121-4ab99587-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/04757a0cb37e482abd94497dc29c7c4c/blocksuite-connector-0.0.0-20230604040121-4ab99587-nightly.tgz","_integrity":"sha512-bSLMBLOWxu+I6h9GPwxMk5oty+b4naIaStSfBAxeBP7GZsrqdqZlq0+bXvZ1byob0x8J+SnHB3idOuZntSx6Nw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230604040121-4ab99587-nightly_1685851558995_0.5950610825910783","host":"s3://npm-registry-packages"}},"0.0.0-20230605133755-4f79f942-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230605133755-4f79f942-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230605133755-4f79f942-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"784d8526fe9de1f5c5a02dc5e6007c0c179a9bd1","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230605133755-4f79f942-nightly.tgz","fileCount":106,"integrity":"sha512-hvYXZa5S0wCCzXBxCFQOgngrb4vNysCiKUa0MS9TizuiqJuW10ELD+c1GEwdmrn8GGNGXpBpcdOz5sAhaRS2rQ==","signatures":[{"sig":"MEQCIFGPz8TKMSrxY5gEXZAql1EmzG11aFwWqyqKntXe8/qnAiBJjq2jth9CvXjW1QUq+xOl8Xg0wmIuxX2JqdHI0rZXjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230605133755-4f79f942-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230605133755-4f79f942-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/0bd28da4660c15d960672d5f3b366b90/blocksuite-connector-0.0.0-20230605133755-4f79f942-nightly.tgz","_integrity":"sha512-hvYXZa5S0wCCzXBxCFQOgngrb4vNysCiKUa0MS9TizuiqJuW10ELD+c1GEwdmrn8GGNGXpBpcdOz5sAhaRS2rQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230605133755-4f79f942-nightly_1686011253383_0.8333549184242988","host":"s3://npm-registry-packages"}},"0.6.0":{"name":"@blocksuite/connector","version":"0.6.0","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.6.0","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"7e801c1910a930b2f0e4c9181afd2a2e1a8722f6","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.6.0.tgz","fileCount":106,"integrity":"sha512-2VNh9DSK37+CUZt2vGHWjjUfSRx9UgXK7P+wOlPmeWfB4wyCRDfIabJKl0mWcsEA7ye6qcbCL2g/H3Z8NBua/g==","signatures":[{"sig":"MEUCIQCKzcMV3CZ0ACzU0yIBloLioPIXfAUA4DFDeAfPyEryVgIgarms5Vr+VwtPr/yDLYJG3WIMuQjPmoauEXJS0/XuLcQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.6.0","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185154},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.6.0.tgz","types":"dist/index.d.ts","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/e4f193c416f83cf3edee198858bb2b93/blocksuite-connector-0.6.0.tgz","_integrity":"sha512-2VNh9DSK37+CUZt2vGHWjjUfSRx9UgXK7P+wOlPmeWfB4wyCRDfIabJKl0mWcsEA7ye6qcbCL2g/H3Z8NBua/g==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.6.0_1686053328618_0.2319849097310076","host":"s3://npm-registry-packages"}},"0.0.0-20230606130340-805f430b-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230606130340-805f430b-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230606130340-805f430b-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"8e0eb17b367168e7d1f76e5bef72cd194a353e3d","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230606130340-805f430b-nightly.tgz","fileCount":106,"integrity":"sha512-PRl96lljg23JbUJTAWLmyXkTw6athEBkrPFQDKdwZqOfD22icsvo2vw1nh3Zx79QJZaEn5OMJC3T76j2B9OqNA==","signatures":[{"sig":"MEQCIHA3+OumdDiWEO5GprAqbLDRpySxLo3iVal9kvUIRDJvAiBfFLmdZwEY9QT8HwJRXq0dGu4kHwf+R2OwH8lFdZK2+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230606130340-805f430b-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230606130340-805f430b-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/9aec40fd80817be3ea802a7b0098e850/blocksuite-connector-0.0.0-20230606130340-805f430b-nightly.tgz","_integrity":"sha512-PRl96lljg23JbUJTAWLmyXkTw6athEBkrPFQDKdwZqOfD22icsvo2vw1nh3Zx79QJZaEn5OMJC3T76j2B9OqNA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230606130340-805f430b-nightly_1686097683228_0.609393130580552","host":"s3://npm-registry-packages"}},"0.0.0-20230607055421-9b20fcaf-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230607055421-9b20fcaf-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230607055421-9b20fcaf-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"22185b7c447f6b642a07a739d8f2282b305b839d","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230607055421-9b20fcaf-nightly.tgz","fileCount":106,"integrity":"sha512-X/7nC5vKD/CnvQelV/3Qw36R8yCwVJTXpZOSlrtjLsAWJfxuA1cyy/S47z2W8/G8a2T91U8kSIaroMa49oQtkg==","signatures":[{"sig":"MEUCIFugTgZ11bdsVHxvrhCrw3ubQBvBANNMhzHvsa+EZEC4AiEAt+H0xd81n9eqRjwXHiXznArHE9rl0a4RfLRw4QPXkxg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230607055421-9b20fcaf-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185186},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230607055421-9b20fcaf-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/0d4f2b0ab67a35b4c51abfd51b651a6a/blocksuite-connector-0.0.0-20230607055421-9b20fcaf-nightly.tgz","_integrity":"sha512-X/7nC5vKD/CnvQelV/3Qw36R8yCwVJTXpZOSlrtjLsAWJfxuA1cyy/S47z2W8/G8a2T91U8kSIaroMa49oQtkg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230607055421-9b20fcaf-nightly_1686184085149_0.2824027318767628","host":"s3://npm-registry-packages"}},"0.0.0-20230608095252-955ad210-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230608095252-955ad210-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230608095252-955ad210-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"0f2ece5918bf4e26a0bc73ff67167755c81a7513","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230608095252-955ad210-nightly.tgz","fileCount":106,"integrity":"sha512-YB88ibKXujaB3mg+VmBSI0siHI85bY6rfemdRSyOQwrS3lj3a4pp/DNMZheIRFqiv46LTr9zSLqHxdPkwFpMcw==","signatures":[{"sig":"MEUCIQCQDD6W5qKchg+/Eck6OVutgsZEOPgn7EVR6EFBwW3gJAIgWbWaVTEPZwVjiXjwRHtIzU1551KuPV88vaWEgf2rQ0E=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230608095252-955ad210-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230608095252-955ad210-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/96fa3d0c750fac7f208f9b60f99f5377/blocksuite-connector-0.0.0-20230608095252-955ad210-nightly.tgz","_integrity":"sha512-YB88ibKXujaB3mg+VmBSI0siHI85bY6rfemdRSyOQwrS3lj3a4pp/DNMZheIRFqiv46LTr9zSLqHxdPkwFpMcw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230608095252-955ad210-nightly_1686270624578_0.2523726578337959","host":"s3://npm-registry-packages"}},"0.0.0-20230609234901-5daa1a6e-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230609234901-5daa1a6e-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230609234901-5daa1a6e-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"e0f75f396e7fb1adb87867f1814358aa417f9a6e","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230609234901-5daa1a6e-nightly.tgz","fileCount":106,"integrity":"sha512-Nzmd5FqjwmYGL3C4/BQI10FMe+vn+D5uTKiDUhHSBp/44XMzLsLQhcSBWRW/DKMxi/7i9poTKPsv8V0il73/AQ==","signatures":[{"sig":"MEUCIQC95N5zA5ffxXfKL4asS5296qY/nJDVukMghJ2xW0wnyAIgfU84Opm4qmIzEReJpTqCr+bpE4qTBZKGI2y2KqaWN2w=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230609234901-5daa1a6e-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230609234901-5daa1a6e-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/b800a24f853999148d4909ab405f2313/blocksuite-connector-0.0.0-20230609234901-5daa1a6e-nightly.tgz","_integrity":"sha512-Nzmd5FqjwmYGL3C4/BQI10FMe+vn+D5uTKiDUhHSBp/44XMzLsLQhcSBWRW/DKMxi/7i9poTKPsv8V0il73/AQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230609234901-5daa1a6e-nightly_1686356793712_0.09932467171751092","host":"s3://npm-registry-packages"}},"0.0.0-20230610155623-6fd80ccc-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230610155623-6fd80ccc-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230610155623-6fd80ccc-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"b6bf07578e8e96a1a473f35671dee8b19c11dc0d","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230610155623-6fd80ccc-nightly.tgz","fileCount":106,"integrity":"sha512-r8oFOS2dK5wPDzm8wewJBghdC8LR754SjZKWliYWvA7/kvH6VOwCpTOGwIg4HyygVXPtBdNLsncyJ35zeaHzjg==","signatures":[{"sig":"MEUCIQC207bElPuCYNxI8CB4qJ1j3Ha8E/fii+eexeVrINb2SAIgb/COXz+a33fMoDepzv3kUU29G3mkryyCO1eQZL7V6Cs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230610155623-6fd80ccc-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230610155623-6fd80ccc-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/171e013145e732cb6c681219d6632029/blocksuite-connector-0.0.0-20230610155623-6fd80ccc-nightly.tgz","_integrity":"sha512-r8oFOS2dK5wPDzm8wewJBghdC8LR754SjZKWliYWvA7/kvH6VOwCpTOGwIg4HyygVXPtBdNLsncyJ35zeaHzjg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230610155623-6fd80ccc-nightly_1686443406687_0.322440721286265","host":"s3://npm-registry-packages"}},"0.0.0-20230611085524-052ecf3f-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230611085524-052ecf3f-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230611085524-052ecf3f-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"f0951b31db3977d95a8267f10fa0515e00412eee","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230611085524-052ecf3f-nightly.tgz","fileCount":106,"integrity":"sha512-lugc4PYVfDNejzJdBVx4NdocJJGlvwR0NsTlcSASfyQ86JFks+PQRFHEqldRM1yP7EptdOZ4uJopr3nXAdBtuA==","signatures":[{"sig":"MEUCIGcHmWNirL7vCsuV7KLzvBE8lqLW0sl0iLfz9vYHycgxAiEA2X/sCQVa5OmG1tFXVWodDZoMSRpfYXMbd4TEihBYzEU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230611085524-052ecf3f-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230611085524-052ecf3f-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/bf2c232b8832471930b6c24fa56ddd23/blocksuite-connector-0.0.0-20230611085524-052ecf3f-nightly.tgz","_integrity":"sha512-lugc4PYVfDNejzJdBVx4NdocJJGlvwR0NsTlcSASfyQ86JFks+PQRFHEqldRM1yP7EptdOZ4uJopr3nXAdBtuA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230611085524-052ecf3f-nightly_1686529756026_0.35792881801942245","host":"s3://npm-registry-packages"}},"0.0.0-20230612125018-7c0d765d-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230612125018-7c0d765d-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230612125018-7c0d765d-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"e47f1212e3195358669eb7b63d9fc22ae3a4370f","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230612125018-7c0d765d-nightly.tgz","fileCount":106,"integrity":"sha512-czeXSk522bRENc6sw7utUNEr7ix0tN6iLJ76oHjXPUGEwNMviN6Dk5Gi7A9lqALB/frW/w6gHo350c3TBe/I+w==","signatures":[{"sig":"MEYCIQCV62o4EdG2xGxjo0P2ZOKYq5dNbj5wy3bbCAnKN91bPAIhAIJ0vzMukhBdCLBU/a3PyP5hPxgQ9Q1oZPM3NtlxnFZm","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230612125018-7c0d765d-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230612125018-7c0d765d-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/117c13af88cce648e30701c4438cc251/blocksuite-connector-0.0.0-20230612125018-7c0d765d-nightly.tgz","_integrity":"sha512-czeXSk522bRENc6sw7utUNEr7ix0tN6iLJ76oHjXPUGEwNMviN6Dk5Gi7A9lqALB/frW/w6gHo350c3TBe/I+w==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230612125018-7c0d765d-nightly_1686616047098_0.1353558755866755","host":"s3://npm-registry-packages"}},"0.0.0-20230613061606-d9b96e14-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230613061606-d9b96e14-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230613061606-d9b96e14-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"bc7a80a3f8d5af4c70693fd6f3f2b7ebbb308c12","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230613061606-d9b96e14-nightly.tgz","fileCount":106,"integrity":"sha512-vaAXHzn44sCORVQoXxCOtlgglHy3xYV6MukLd+uHkxTKINfbxHyHCQe8ETBC83fqj1X8rD8PWu49JWkyZBmeZQ==","signatures":[{"sig":"MEUCIQDteEeUpj5KB9c0y00UY528SHqB+58bv+BIZPZd6MVJdAIgV8C9/cTWxdoPjzdnD6HZ56c9e6qkadogdbFpkDq64DY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230613061606-d9b96e14-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230613061606-d9b96e14-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/8b2e269275fe33f52c69338fcdf42700/blocksuite-connector-0.0.0-20230613061606-d9b96e14-nightly.tgz","_integrity":"sha512-vaAXHzn44sCORVQoXxCOtlgglHy3xYV6MukLd+uHkxTKINfbxHyHCQe8ETBC83fqj1X8rD8PWu49JWkyZBmeZQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230613061606-d9b96e14-nightly_1686637244301_0.8762325220444309","host":"s3://npm-registry-packages"}},"0.0.0-20230613142146-d72d4600-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230613142146-d72d4600-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230613142146-d72d4600-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"9aa9423ebc9a12a19ab39a785ac3b62f61ad7286","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230613142146-d72d4600-nightly.tgz","fileCount":106,"integrity":"sha512-Ccb08dijZ4dOElJaP0T7IkXVUy5hhHsfHzjneo8m0trlafBnMLZhHaMNIOnV+8MS+eDH2Yf9KNXqYuK35KSDIg==","signatures":[{"sig":"MEUCIQDKMm7Jv9GUW/zFWZPGSCPEBW7NRF05Ma2i2kdqwZ1VKwIgQ9zjIJ4oKN863FWtrAK0IR2L87+m7A34F9y/ABJi1VA=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230613142146-d72d4600-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230613142146-d72d4600-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/b707aa508b9244e3c2c91ee4bb02248a/blocksuite-connector-0.0.0-20230613142146-d72d4600-nightly.tgz","_integrity":"sha512-Ccb08dijZ4dOElJaP0T7IkXVUy5hhHsfHzjneo8m0trlafBnMLZhHaMNIOnV+8MS+eDH2Yf9KNXqYuK35KSDIg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230613142146-d72d4600-nightly_1686702370221_0.7525720451716804","host":"s3://npm-registry-packages"}},"0.0.0-20230614221433-c1402d96-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230614221433-c1402d96-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230614221433-c1402d96-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"96af88c6882dc556318ae63d00745176df1b3dd8","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230614221433-c1402d96-nightly.tgz","fileCount":106,"integrity":"sha512-skANNn3BuRDUZVE7jF/jRatb9abGKqEdJ9xfFYTpwUUtNr3yZ+Q00/83iQa7FyPzbORXQLzeTM4KJeP86kY3xQ==","signatures":[{"sig":"MEQCIEaXuklfRbZtOH+l7lw+wsLG0ncPZsoOH7AT6dxGA0rtAiBwq9QVmhDP8TstBgv/6Yc9T7wgArvqS8iXsYbFIddMqg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230614221433-c1402d96-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230614221433-c1402d96-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/ce81c5244cccb05ebabd68e38bc1a2b9/blocksuite-connector-0.0.0-20230614221433-c1402d96-nightly.tgz","_integrity":"sha512-skANNn3BuRDUZVE7jF/jRatb9abGKqEdJ9xfFYTpwUUtNr3yZ+Q00/83iQa7FyPzbORXQLzeTM4KJeP86kY3xQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230614221433-c1402d96-nightly_1686788908288_0.20134206027256796","host":"s3://npm-registry-packages"}},"0.0.0-20230615114854-2b927ab5-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230615114854-2b927ab5-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230615114854-2b927ab5-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"98dceabf1c3ce228ee2a42189ae7ae72c35fde4e","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230615114854-2b927ab5-nightly.tgz","fileCount":106,"integrity":"sha512-+vVXoSem10PmVIwWqvZckiHww/XOkLvTfR8iTesYwbkwWZGTxhfl8XFYkCPEcKICx7SM9ir4pRWJbPXuVKO04Q==","signatures":[{"sig":"MEQCIB6d7Q5YTaH9Ek8wZCNtvLA1P9YsCNU7vCyNoRoty1SbAiBXrZrqpEMErHBs2JP0INq6TTRZ/WoZdjgqC/rmeUaW6A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230615114854-2b927ab5-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230615114854-2b927ab5-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/97eb0e83f82df151814b32414715df6c/blocksuite-connector-0.0.0-20230615114854-2b927ab5-nightly.tgz","_integrity":"sha512-+vVXoSem10PmVIwWqvZckiHww/XOkLvTfR8iTesYwbkwWZGTxhfl8XFYkCPEcKICx7SM9ir4pRWJbPXuVKO04Q==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230615114854-2b927ab5-nightly_1686875308972_0.9879618692244836","host":"s3://npm-registry-packages"}},"0.0.0-20230616172700-720da7d7-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230616172700-720da7d7-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230616172700-720da7d7-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"7784c5bba313d1df61e7c8cf6368e731eb75b36e","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230616172700-720da7d7-nightly.tgz","fileCount":106,"integrity":"sha512-PSkloO+VfXdWVrQYPllBFFKFSN78E1HbhKjxYXIUcFvvWpOQVVIdtVX8+k3jWJSPt9tEdMbDhQTz5MlykWCtNA==","signatures":[{"sig":"MEUCIC9McxtNg3keioHsCtkvLichyONmmi2FIU/itD7swyl9AiEA1aKHucwQ3+o+/gtrs9xWsRGD5CXD+wWmXNnVly7G3eI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230616172700-720da7d7-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230616172700-720da7d7-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/ebd2e3443cb13927d5ebf7cae7677fe4/blocksuite-connector-0.0.0-20230616172700-720da7d7-nightly.tgz","_integrity":"sha512-PSkloO+VfXdWVrQYPllBFFKFSN78E1HbhKjxYXIUcFvvWpOQVVIdtVX8+k3jWJSPt9tEdMbDhQTz5MlykWCtNA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230616172700-720da7d7-nightly_1686961564393_0.27107210392600467","host":"s3://npm-registry-packages"}},"0.0.0-20230617112728-96046bd8-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230617112728-96046bd8-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230617112728-96046bd8-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"e63517afd166fcbe4abe04e4f82a9fe1485e209f","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230617112728-96046bd8-nightly.tgz","fileCount":106,"integrity":"sha512-siu2Q2xW8UgUNOiGViKIxLddJ/hrWJRlOswZyUsKWdGCZ99Gkos+hpGoK0pDJfUZ8RvLYWxbj0aT0Y5MTPp/Jw==","signatures":[{"sig":"MEYCIQCIO8BIkOiJ75lEF6wMdxVrnmt/M7lpoFUUMbuYCkMKSAIhAJmQe0zs7korSLYtoopw9yl8DUDzQ67lttNLjPVFTP/w","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230617112728-96046bd8-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230617112728-96046bd8-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/c620a9004ca46eaf29aa062744448fe6/blocksuite-connector-0.0.0-20230617112728-96046bd8-nightly.tgz","_integrity":"sha512-siu2Q2xW8UgUNOiGViKIxLddJ/hrWJRlOswZyUsKWdGCZ99Gkos+hpGoK0pDJfUZ8RvLYWxbj0aT0Y5MTPp/Jw==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230617112728-96046bd8-nightly_1687048257896_0.2879292743610635","host":"s3://npm-registry-packages"}},"0.0.0-20230618093321-05c37038-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230618093321-05c37038-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230618093321-05c37038-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"dae197a6f42fbe5e89a005ffa81554d16f7db1d6","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230618093321-05c37038-nightly.tgz","fileCount":106,"integrity":"sha512-sqR9kU3Q9C7Nm9WoWqtumS1+OtgrVfR2g8r5PKhwGTcfQa4aOunUylqkUc+msWk47gDpAJ113zwiIXP7TTKttg==","signatures":[{"sig":"MEYCIQCEm+s5Qep+AFtcLqWGu+FimoAZZDEyIOOygzdNjzdHuAIhAPaIw9QygLXDwdCLQ9dVDA9X7jZ8W38KiDobxeZJXYIL","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230618093321-05c37038-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230618093321-05c37038-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/199951c275b8615fd29a6a5e82e1ab5d/blocksuite-connector-0.0.0-20230618093321-05c37038-nightly.tgz","_integrity":"sha512-sqR9kU3Q9C7Nm9WoWqtumS1+OtgrVfR2g8r5PKhwGTcfQa4aOunUylqkUc+msWk47gDpAJ113zwiIXP7TTKttg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230618093321-05c37038-nightly_1687134478912_0.49977169788869746","host":"s3://npm-registry-packages"}},"0.0.0-20230619093341-b1b8714a-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230619093341-b1b8714a-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230619093341-b1b8714a-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"203e867f38473112a02100bcc373f54f0e75b483","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230619093341-b1b8714a-nightly.tgz","fileCount":106,"integrity":"sha512-hD/WnW4ZDki/6ZGtUZ915A34BCK4gc0K3fMGkReT2vB21OeqCIXnI24UGfvp80UNKSLamE11QZ8qZbA5YN+OAg==","signatures":[{"sig":"MEYCIQDTiVkb8ktFBYiklNWGymOUKz+6HR+eQw8fdeo4y+GKmQIhAM6fhrVwYvwnRqYYU2kZWxlOyCjcOmX2+9W8Fjo8lUCO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230619093341-b1b8714a-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230619093341-b1b8714a-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/2b10af0c12d910ebe16edaf4fa01a6db/blocksuite-connector-0.0.0-20230619093341-b1b8714a-nightly.tgz","_integrity":"sha512-hD/WnW4ZDki/6ZGtUZ915A34BCK4gc0K3fMGkReT2vB21OeqCIXnI24UGfvp80UNKSLamE11QZ8qZbA5YN+OAg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230619093341-b1b8714a-nightly_1687220788881_0.24694900843622092","host":"s3://npm-registry-packages"}},"0.0.0-20230620053632-def836c5-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230620053632-def836c5-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230620053632-def836c5-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"75a2dcc60b61a9a7f9d3c30040d2c41cb2d5296c","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230620053632-def836c5-nightly.tgz","fileCount":106,"integrity":"sha512-AdRvnR2GZtcy+HgT61oYWYo0C05Oeevl0TAFDZOeIHdTk84gPKx93bih6LKekZKbXbwgFkw2e7G2404bwmn8AQ==","signatures":[{"sig":"MEUCIF8Sj49zgn1p9YyUmgsA7W3ZkMfGu5ktkgpYF+yg8rUNAiEAgaDuVq6kseC9eyTq6YqBj9id4I0fOd26bsHaiSF7XQI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230620053632-def836c5-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230620053632-def836c5-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/925dcedb3c97f128a1d0648c919be4d1/blocksuite-connector-0.0.0-20230620053632-def836c5-nightly.tgz","_integrity":"sha512-AdRvnR2GZtcy+HgT61oYWYo0C05Oeevl0TAFDZOeIHdTk84gPKx93bih6LKekZKbXbwgFkw2e7G2404bwmn8AQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230620053632-def836c5-nightly_1687242265666_0.7910425431470081","host":"s3://npm-registry-packages"}},"0.0.0-20230620110032-d8041266-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230620110032-d8041266-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230620110032-d8041266-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"51c261298756a0a79bd61f351453e3c24444cd60","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230620110032-d8041266-nightly.tgz","fileCount":106,"integrity":"sha512-5emkoVUmCUIkgiA8KYIKe8Zh1Wj2mhs1nE3iDmW0nI2c4YjYHPQYUURafAu0y9FSZOGNoRIWMLmesRDhmdkHgg==","signatures":[{"sig":"MEQCIAv8Ec6ggdFATWhIRuFwQzDhSxNQuBqA2PRrUm+UM9h0AiAKRAdkwfz/PBXqsYMoyMf99zMvTyYvLe/jqlHB0kLiyQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230620110032-d8041266-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230620110032-d8041266-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/4f9a0ea7caf0413a0b2e8977b60b4e8f/blocksuite-connector-0.0.0-20230620110032-d8041266-nightly.tgz","_integrity":"sha512-5emkoVUmCUIkgiA8KYIKe8Zh1Wj2mhs1nE3iDmW0nI2c4YjYHPQYUURafAu0y9FSZOGNoRIWMLmesRDhmdkHgg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230620110032-d8041266-nightly_1687259547475_0.9439044556412812","host":"s3://npm-registry-packages"}},"0.0.0-20230620132953-c8a7dfc3-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230620132953-c8a7dfc3-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230620132953-c8a7dfc3-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"9a65279bde25bbf308e92125b51526cf4cbc1a31","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230620132953-c8a7dfc3-nightly.tgz","fileCount":106,"integrity":"sha512-P6obhJqQnfHUNuPDFQ0vnarp1VpP6dNhs4jGRv+UCz8yqr00IoHaOUGsyQv2FKdzL71cEaRqqnZHoPFtVqBpRA==","signatures":[{"sig":"MEYCIQDMFQ+2qBClm2IKAj1QxiRRFvuQ8diQos+3qNv0JuHL5gIhANDsuq2zt4rFE4S7DhQiCegMYkpkSmDa/jC5bKv/o9SX","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230620132953-c8a7dfc3-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230620132953-c8a7dfc3-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/41321ccafddc18c907458bd73757c356/blocksuite-connector-0.0.0-20230620132953-c8a7dfc3-nightly.tgz","_integrity":"sha512-P6obhJqQnfHUNuPDFQ0vnarp1VpP6dNhs4jGRv+UCz8yqr00IoHaOUGsyQv2FKdzL71cEaRqqnZHoPFtVqBpRA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230620132953-c8a7dfc3-nightly_1687307464218_0.10221573579641774","host":"s3://npm-registry-packages"}},"0.0.0-20230621121334-ea56da5c-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230621121334-ea56da5c-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230621121334-ea56da5c-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"21d591910bafd7e5eb8abd4a26254e1b36b82106","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230621121334-ea56da5c-nightly.tgz","fileCount":106,"integrity":"sha512-yq8F3Lo3aLswOPYNqeNQxW8p0SgrEIw34ZBeQSXKaSelvq9O1sYk+4jtTgX4TFBxm7fCYHszqK3v2F7gSvVO5g==","signatures":[{"sig":"MEYCIQDPhDmMflmKvpcEieD7fQxQ/ciU8Dqb2GmrPHrZI5/0HgIhAL8qcGlQOXipMobACPtEm9l2ktMS+YDfZnxDVL/FLDT7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230621121334-ea56da5c-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230621121334-ea56da5c-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/d9ddf175ae4afbc515d139286faf2f3b/blocksuite-connector-0.0.0-20230621121334-ea56da5c-nightly.tgz","_integrity":"sha512-yq8F3Lo3aLswOPYNqeNQxW8p0SgrEIw34ZBeQSXKaSelvq9O1sYk+4jtTgX4TFBxm7fCYHszqK3v2F7gSvVO5g==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230621121334-ea56da5c-nightly_1687357921906_0.35730152949598826","host":"s3://npm-registry-packages"}},"0.0.0-20230622044943-68a3188d-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230622044943-68a3188d-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230622044943-68a3188d-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"84dd76463681bfc0ef27209cab8aeee4529b9a34","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230622044943-68a3188d-nightly.tgz","fileCount":106,"integrity":"sha512-4sZgLM9qINCvH/1Q4E6VIa5ZOgAhw4HVGZJeTAk+IPfTLAYjhPswrgiz/0POccoX+RGguaKBPV932SvG+FAD0w==","signatures":[{"sig":"MEUCIGQcDFAT9RSkMYTBdjL/yYaG0yhxecO+OTugSgmfqQ7bAiEAttO8AqcfVKpTLLX3KuU9uloL0d8kfYKZvAztYb3Qbys=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230622044943-68a3188d-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230622044943-68a3188d-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/eae964bed23c8b3e4ad61080ab4e5256/blocksuite-connector-0.0.0-20230622044943-68a3188d-nightly.tgz","_integrity":"sha512-4sZgLM9qINCvH/1Q4E6VIa5ZOgAhw4HVGZJeTAk+IPfTLAYjhPswrgiz/0POccoX+RGguaKBPV932SvG+FAD0w==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230622044943-68a3188d-nightly_1687409643561_0.7787823572367671","host":"s3://npm-registry-packages"}},"0.0.0-20230622140410-30eb2b91-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230622140410-30eb2b91-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230622140410-30eb2b91-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"c1f77659257f49c0598e432fdb5aa214d0d475a1","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230622140410-30eb2b91-nightly.tgz","fileCount":106,"integrity":"sha512-pzF8zR3rQgU1QTVekQIkepc4w/3ygH8Bk1q61e5xqZoi9CPP8IaKSvk9jn2Zd0SjIxe/XMIc7wfwfMQiotTwkQ==","signatures":[{"sig":"MEQCIGNB3BYb+Jw45I6qlL0C14KKDihpAjeEkI1NPocrY5pIAiBsHI0Wu1X6qWZjlFt/m9OEva07OWQh23Qfhn6nAIDe8A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230622140410-30eb2b91-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230622140410-30eb2b91-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/448fce6d2a396426d9894f38ecc77678/blocksuite-connector-0.0.0-20230622140410-30eb2b91-nightly.tgz","_integrity":"sha512-pzF8zR3rQgU1QTVekQIkepc4w/3ygH8Bk1q61e5xqZoi9CPP8IaKSvk9jn2Zd0SjIxe/XMIc7wfwfMQiotTwkQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230622140410-30eb2b91-nightly_1687480353078_0.5104510175594521","host":"s3://npm-registry-packages"}},"0.0.0-20230623185501-1697f9ce-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230623185501-1697f9ce-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230623185501-1697f9ce-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"e29fff8823862eb000b43313d41508d5a956d552","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230623185501-1697f9ce-nightly.tgz","fileCount":106,"integrity":"sha512-nEwSijtEKz9Wr8GljtvIXZuZKk9/57onUvRD4Vq4bt9xyTfM5Bpkd14LU8PJJtKQvg0AOjK15g4iNuFQ7+H+rg==","signatures":[{"sig":"MEUCIEj883/8kMJKncznWcndgpd5RMAx6s2Ren+7VwCPic/UAiEA3GOP4yrCxTABO2BHbR0dfQAqAieky89BEqTqAGLSu24=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230623185501-1697f9ce-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230623185501-1697f9ce-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/49eb4a4835d1f292753af3e7a3f5ab1f/blocksuite-connector-0.0.0-20230623185501-1697f9ce-nightly.tgz","_integrity":"sha512-nEwSijtEKz9Wr8GljtvIXZuZKk9/57onUvRD4Vq4bt9xyTfM5Bpkd14LU8PJJtKQvg0AOjK15g4iNuFQ7+H+rg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230623185501-1697f9ce-nightly_1687566652947_0.7158421643006785","host":"s3://npm-registry-packages"}},"0.0.0-20230624133730-3d47c8c8-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230624133730-3d47c8c8-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230624133730-3d47c8c8-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"30211401fcaa0e43729f0737321df2d30ab185d8","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230624133730-3d47c8c8-nightly.tgz","fileCount":106,"integrity":"sha512-5Ofuw1IUPSDGPhAphiMEOwBd8GdfFHwLp3SiNWoZeH0umg0Hieg7EQmz/crNKNx4lKiDFQw9O4b3vK7XSE0E0g==","signatures":[{"sig":"MEUCIQCFZVx6YBKv1pb+T3HNTG0BNtMk+7WwM+JcWKE2OEOKygIgab+nJtiewi3GYrAblRW2RjszHYjClc66ZfT6atRqBtU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230624133730-3d47c8c8-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230624133730-3d47c8c8-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/ca990aaf2b3e7f63b07ed6268c9382f1/blocksuite-connector-0.0.0-20230624133730-3d47c8c8-nightly.tgz","_integrity":"sha512-5Ofuw1IUPSDGPhAphiMEOwBd8GdfFHwLp3SiNWoZeH0umg0Hieg7EQmz/crNKNx4lKiDFQw9O4b3vK7XSE0E0g==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230624133730-3d47c8c8-nightly_1687614067701_0.40421256763335256","host":"s3://npm-registry-packages"}},"0.0.0-20230624135813-f26651e5-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230624135813-f26651e5-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230624135813-f26651e5-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"7e26da1d4c0c662f8bebdb647e61a7700244bd5d","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230624135813-f26651e5-nightly.tgz","fileCount":106,"integrity":"sha512-lM+DMLOIqXCL+3SJcZ5uZV1NUtD5RnKiVxaAVRYfkjZfrb3px8DDYyvn//+LkRyyKJhGMKUCfWek71CUGH7Z9Q==","signatures":[{"sig":"MEUCIQCRDHG1FhLtFR2GAsP5ZteptPEJYvB/xpmhuapo1f6pegIgFt9dDvKJS9N4FTkFoTp5x8eIVWqyWnPOKDk0FtqSdpg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230624135813-f26651e5-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230624135813-f26651e5-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/e509ade97d26c112d66593e713ea6f27/blocksuite-connector-0.0.0-20230624135813-f26651e5-nightly.tgz","_integrity":"sha512-lM+DMLOIqXCL+3SJcZ5uZV1NUtD5RnKiVxaAVRYfkjZfrb3px8DDYyvn//+LkRyyKJhGMKUCfWek71CUGH7Z9Q==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230624135813-f26651e5-nightly_1687615316680_0.1899942294439676","host":"s3://npm-registry-packages"}},"0.0.0-20230624145145-2fc312f1-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230624145145-2fc312f1-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230624145145-2fc312f1-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"b9d8724861cd2ba8c57d003d8bd7884bab4b4abc","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230624145145-2fc312f1-nightly.tgz","fileCount":106,"integrity":"sha512-Y2NYcSxfZ73pGd8d5SexpTvEuOI3fQB/HuiLXCciVlUFHZK9rECGsC7x97Om9KKfcwW75dMd/CtpNpEtUWzk4w==","signatures":[{"sig":"MEUCIQCnLcpZY2EssTE0jQ+oKx8XsZxWfAsEKV00bVEBdO0E/wIgWf7WDMZPzdJ+6INOJHqlxqQ/2fbn7oMYd8+OUs5frl8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230624145145-2fc312f1-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230624145145-2fc312f1-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/b91b361b93e983eca59f2c32bd71ea90/blocksuite-connector-0.0.0-20230624145145-2fc312f1-nightly.tgz","_integrity":"sha512-Y2NYcSxfZ73pGd8d5SexpTvEuOI3fQB/HuiLXCciVlUFHZK9rECGsC7x97Om9KKfcwW75dMd/CtpNpEtUWzk4w==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230624145145-2fc312f1-nightly_1687618495814_0.15390779812181044","host":"s3://npm-registry-packages"}},"0.0.0-20230624151714-10e3e0be-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230624151714-10e3e0be-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230624151714-10e3e0be-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"4d123d11d9af987684a91a66ed00cecb94cea2ff","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230624151714-10e3e0be-nightly.tgz","fileCount":106,"integrity":"sha512-4n0xrcXUK/gd8cqJRoQx5viSanNI+EO0FkRfT4+ItfHYPRJRpBi8GJyzcEmHatfz+QxvVDyWjZqSiMBlGjy8Hg==","signatures":[{"sig":"MEYCIQDNLSL9wU4V3daNfxJqY0JONHUqV0d62N062nUhDY/XfgIhAMljpza345kXvKEnc6bmsYDmwd/hrrm0luuusOD/pGI2","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230624151714-10e3e0be-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230624151714-10e3e0be-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/86c001089f08f65754035678aabee7e6/blocksuite-connector-0.0.0-20230624151714-10e3e0be-nightly.tgz","_integrity":"sha512-4n0xrcXUK/gd8cqJRoQx5viSanNI+EO0FkRfT4+ItfHYPRJRpBi8GJyzcEmHatfz+QxvVDyWjZqSiMBlGjy8Hg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230624151714-10e3e0be-nightly_1687620045527_0.03761712452018284","host":"s3://npm-registry-packages"}},"0.0.0-20230624163241-751f7170-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230624163241-751f7170-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230624163241-751f7170-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"2239f7259e57c4190007edfa1c2e825132c83248","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230624163241-751f7170-nightly.tgz","fileCount":106,"integrity":"sha512-qlKF0e07Lot2iEEhJZXisWYZsEkw2DxevfqNR4iixm0dcl+64PlR7DTn9PIXi7GVOlgSx28dXn0bNe+T0vOxmQ==","signatures":[{"sig":"MEUCIBF7ec4CXrGaI5FPqhbOYkBzowNbCMjeAXjufS+4v8IRAiEA0f7CbJ4lg22MrpaQGqB9oBZcydhtJJbnruxkjHDDgxQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230624163241-751f7170-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230624163241-751f7170-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/b5fb2d668afafa89c4acd161fa2f86e5/blocksuite-connector-0.0.0-20230624163241-751f7170-nightly.tgz","_integrity":"sha512-qlKF0e07Lot2iEEhJZXisWYZsEkw2DxevfqNR4iixm0dcl+64PlR7DTn9PIXi7GVOlgSx28dXn0bNe+T0vOxmQ==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230624163241-751f7170-nightly_1687624763436_0.5461155813602969","host":"s3://npm-registry-packages"}},"0.0.0-20230626181619-90507cfc-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230626181619-90507cfc-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230626181619-90507cfc-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"3651777c8ecf4cb86b3f0a6a6fde66be81efaecc","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230626181619-90507cfc-nightly.tgz","fileCount":106,"integrity":"sha512-4SYvUfFAnvVxEGhYA2Nzr64erS/pLUOCysF1tQBbjfOyBiUcaTkTDAE5xPd4RVk/fr1Yni31SqEEu4MZ0Z0DXg==","signatures":[{"sig":"MEUCIHUbhsaSnsj2Y+GRTnhBMrhuHzY2JTSqFnocnFceIk9ZAiEAlSrT3JRWxWw0Ygc//AaxI6+Nyg9wOO4w69QjITkCYgc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230626181619-90507cfc-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230626181619-90507cfc-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/cf5400c2b3cb65c1bc6a28346cc4cc0e/blocksuite-connector-0.0.0-20230626181619-90507cfc-nightly.tgz","_integrity":"sha512-4SYvUfFAnvVxEGhYA2Nzr64erS/pLUOCysF1tQBbjfOyBiUcaTkTDAE5xPd4RVk/fr1Yni31SqEEu4MZ0Z0DXg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230626181619-90507cfc-nightly_1687825806702_0.4508008894788229","host":"s3://npm-registry-packages"}},"0.0.0-20230627102054-b712dd6c-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230627102054-b712dd6c-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230627102054-b712dd6c-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"8c78ba1032aaf1ffea661535286983fa4792fe0b","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230627102054-b712dd6c-nightly.tgz","fileCount":106,"integrity":"sha512-XRSfwtMjAHcMGHwj/ytdvglAgUvbzBnPKA/NOy313EqmHLJUV8rwrPYF0mF7u30bR5H4Be8bcS1yAj/aDb8lXA==","signatures":[{"sig":"MEQCIHCTpokn0AcM4h+xho69O7IZzpoC18/Y6RO39liNxDPNAiBH+1qfMCKy6UTZr0uiGBgc1/scKaYPOhzYZACm1kJZiw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230627102054-b712dd6c-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230627102054-b712dd6c-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/740f7e5d716ccd38cdd2ce98c14a14ae/blocksuite-connector-0.0.0-20230627102054-b712dd6c-nightly.tgz","_integrity":"sha512-XRSfwtMjAHcMGHwj/ytdvglAgUvbzBnPKA/NOy313EqmHLJUV8rwrPYF0mF7u30bR5H4Be8bcS1yAj/aDb8lXA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230627102054-b712dd6c-nightly_1687862526454_0.36195671195517387","host":"s3://npm-registry-packages"}},"0.0.0-20230627154918-4c642938-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230627154918-4c642938-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230627154918-4c642938-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"af099546f6a1f87e10b55305eff04aa89ca56f00","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230627154918-4c642938-nightly.tgz","fileCount":106,"integrity":"sha512-zWOX+I8aSTQJbAWdJF2kfX1T06M/uM1wbsecvhYnIZ9WJPMwHsWLIBApzXPzjlP6dgbEwsEGHzlqOXSWd1Vyeg==","signatures":[{"sig":"MEQCIBTImHBPyJAxWr7DMwJCP+L26c8Gkk5sxtZKLUGZmgzRAiBhv46mD8WVMtxTG/CdHXq2jhdv64oBaMWackTN7KYa+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230627154918-4c642938-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230627154918-4c642938-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/ac977f9487461101800e483b7149cfdc/blocksuite-connector-0.0.0-20230627154918-4c642938-nightly.tgz","_integrity":"sha512-zWOX+I8aSTQJbAWdJF2kfX1T06M/uM1wbsecvhYnIZ9WJPMwHsWLIBApzXPzjlP6dgbEwsEGHzlqOXSWd1Vyeg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230627154918-4c642938-nightly_1687881484864_0.1170948742482445","host":"s3://npm-registry-packages"}},"0.0.0-20230627165830-836e6fd1-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230627165830-836e6fd1-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230627165830-836e6fd1-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"be8da1323fc2209ffa3b79521975b72c92469f50","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230627165830-836e6fd1-nightly.tgz","fileCount":106,"integrity":"sha512-YxEqfnEIv8A3QBvj+SWhqkdIhndGOB1/ctCXg1VQuydCp58tlDSodydd4hwgTMwXMAWltcwHyiD6R4R3PRy/PA==","signatures":[{"sig":"MEUCIFQAoQDcDN5R49LAUS1Nd3U/Bg5Wvl5AVBpANc02sslxAiEAzXgZxBF6Itc4tTp+ISUa35sqSPSSGKykAnRulHtU8kY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230627165830-836e6fd1-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230627165830-836e6fd1-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/b43d3e28e41fef302d410794940cbfab/blocksuite-connector-0.0.0-20230627165830-836e6fd1-nightly.tgz","_integrity":"sha512-YxEqfnEIv8A3QBvj+SWhqkdIhndGOB1/ctCXg1VQuydCp58tlDSodydd4hwgTMwXMAWltcwHyiD6R4R3PRy/PA==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230627165830-836e6fd1-nightly_1687885342390_0.13775582907931994","host":"s3://npm-registry-packages"}},"0.0.0-20230628134028-bff5cb08-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230628134028-bff5cb08-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230628134028-bff5cb08-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"defa1c696c80280d389147ae5b89fccec7e947f4","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230628134028-bff5cb08-nightly.tgz","fileCount":106,"integrity":"sha512-LtMeujlOjOWy8HqWloScGyE4wfBFIeseLaigMkEf43kyI3F+qGYgkjoFEd9waGYAlJVq5QVN21CI8Zeo/qX2/g==","signatures":[{"sig":"MEYCIQCaSzlM0sj8+2A9Z2dRJjl3L3++I0/ebWcazZ0/pSJ1XgIhAL1H28XIiQ12VKfqAyJmnUpp8LkEFkEZch1MAL4ZaEIl","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230628134028-bff5cb08-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230628134028-bff5cb08-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/453505f7b6078dc5e31df0b34fe445c1/blocksuite-connector-0.0.0-20230628134028-bff5cb08-nightly.tgz","_integrity":"sha512-LtMeujlOjOWy8HqWloScGyE4wfBFIeseLaigMkEf43kyI3F+qGYgkjoFEd9waGYAlJVq5QVN21CI8Zeo/qX2/g==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.0","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230628134028-bff5cb08-nightly_1687983359647_0.1594833707359522","host":"s3://npm-registry-packages"}},"0.0.0-20230629084521-542de4e8-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230629084521-542de4e8-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230629084521-542de4e8-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"385a9070d229142bb0bc223d476ecc91e45c4f2d","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230629084521-542de4e8-nightly.tgz","fileCount":106,"integrity":"sha512-7UwvExpLfSUU6QQwfaHD0tSASXbHuu165MYDdlxDY2gectEW6c6s6Bq+/IQ/bHYpY+Wu2o4Rb6k0CRGmNlL1Jg==","signatures":[{"sig":"MEUCIQDu/BH6+A9x15pmi7AGeVoRTZ8Yne3/fmnAjm4T3RVaSAIgF908zbZqezBCNVN7CjWRK2HbVPuNOlXSdEvY5OJ5Qu0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230629084521-542de4e8-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230629084521-542de4e8-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/9d27d060fd32aedc73a90239933fc5d2/blocksuite-connector-0.0.0-20230629084521-542de4e8-nightly.tgz","_integrity":"sha512-7UwvExpLfSUU6QQwfaHD0tSASXbHuu165MYDdlxDY2gectEW6c6s6Bq+/IQ/bHYpY+Wu2o4Rb6k0CRGmNlL1Jg==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230629084521-542de4e8-nightly_1688029370348_0.6730778398300177","host":"s3://npm-registry-packages"}},"0.0.0-20230629103121-76e6587d-nightly":{"name":"@blocksuite/connector","version":"0.0.0-20230629103121-76e6587d-nightly","keywords":[],"author":{"name":"toeverything"},"license":"MPL-2.0","_id":"@blocksuite/connector@0.0.0-20230629103121-76e6587d-nightly","maintainers":[{"name":"himself_65","email":"himself65@outlook.com"},{"name":"wangzuomeng","email":"wxlxinglong@outlook.com"},{"name":"colel","email":"cole@colelawrence.com"},{"name":"lawvs","email":"litusq@gmail.com"},{"name":"doodlewind","email":"doodlewind@gmail.com"}],"homepage":"https://github.com/toeverything/blocksuite#readme","bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"dist":{"shasum":"acbefb3132d5a1fbfb169ef8683f1ae141f47edd","tarball":"https://registry.npmjs.org/@blocksuite/connector/-/connector-0.0.0-20230629103121-76e6587d-nightly.tgz","fileCount":106,"integrity":"sha512-mtC0KGsKXDOCa8tioZVj4YKTw/SqfSC2rq4TlTlu4hhZ+/m72XS3nTYhMUjoxfkyGASSexBo77YTFgY4EtjG9Q==","signatures":[{"sig":"MEYCIQCEZX+qI5rwOUqqKsunaiWowZxlJvSE8TYX2eEa30GnWAIhAOGTBnw3kHP8InjnpxbsORSEtySdJRhyKo1Z9SLXPC87","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@blocksuite%2fconnector@0.0.0-20230629103121-76e6587d-nightly","provenance":{"predicateType":"https://slsa.dev/provenance/v0.2"}},"unpackedSize":185237},"main":"dist/index.js","type":"module","_from":"file:blocksuite-connector-0.0.0-20230629103121-76e6587d-nightly.tgz","types":"dist/index.d.ts","readme":"# `@blocksuite/connector`\n\n## How to use\n\n```ts\nimport { route, Rectangle } from '@blocksuite/connector';\n\nconst rects = [\n  new Rectangle(30, 30, 200, 200),\n  new Rectangle(160, 160, 300, 300),\n];\n\nconst points = [\n  { x: 50, y: 30 },\n  { x: 160, y: 200 },\n];\n\nconst path = route(rects, points);\nconsole.log('path', path);\n```\n\n## Example\n\nSee `packages/playground/examples/canvas/connector.html`\n\n## Info\n\nThe main idea comes from https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70 .\nThe final implementation is based on the idea of the blog and modifies the following parts:\n\n- When generating graph, do not rely on the binding of rectangle and point\n- When generating graphs, do not limit the number of rectangles and points\n- When the path is finally calculated, select any two points from the graph\n- When there are only two points or only one rectangle, manually generate the points of the graph\n\nProblems caused by modifications:\n\n- The Graph becomes larger, and more points.length lines are added, causing the final path point to increase points.length \\* 2n\n\n## References\n\nBlog：\n\n- Orthogonal connector: https://medium.com/swlh/routing-orthogonal-diagram-connectors-in-javascript-191dc2c5ff70\n- A-star: https://www.redblobgames.com/pathfinding/a-star/introduction.html\n\nCode:\n\n- Orthogonal connector: https://gist.github.com/jose-mdz/4a8894c152383b9d7a870c24a04447e4\n- A-star: https://github.com/bgrins/javascript-astar\n\nVisualized path finding:\n\n- https://qiao.github.io/PathFinding.js/visual/\n","exports":{".":"./dist/index.js","./src/*":"./dist/*.js"},"scripts":{"test":"pnpm test:unit && pnpm test:e2e","build":"tsc","test:e2e":"playwright test","test:unit":"vitest --run","test:unit:coverage":"vitest run --coverage"},"_npmUser":{"name":"doodlewind","email":"doodlewind@gmail.com"},"_resolved":"/tmp/31f30310fd1d76d1a6c2feef3d8b2547/blocksuite-connector-0.0.0-20230629103121-76e6587d-nightly.tgz","_integrity":"sha512-mtC0KGsKXDOCa8tioZVj4YKTw/SqfSC2rq4TlTlu4hhZ+/m72XS3nTYhMUjoxfkyGASSexBo77YTFgY4EtjG9Q==","repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"_npmVersion":"9.5.1","description":"Library for creating orthogonal connectors with pathfinding support","directories":{},"_nodeVersion":"18.16.1","dependencies":{},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{},"peerDependencies":{},"_npmOperationalInternal":{"tmp":"tmp/connector_0.0.0-20230629103121-76e6587d-nightly_1688085034913_0.28934386994902717","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-04-06T02:55:16.944Z","modified":"2025-06-09T10:41:58.975Z","0.5.0-alpha.2":"2023-04-06T02:55:17.352Z","0.0.0-20230406032111-01cf598b-nightly":"2023-04-06T04:01:11.638Z","0.0.0-20230406182220-0e8dac41-nightly":"2023-04-07T00:22:40.851Z","0.0.0-20230407050457-3cd70505-nightly":"2023-04-07T07:08:28.092Z","0.0.0-20230407072653-ba36ca29-nightly":"2023-04-07T07:30:16.421Z","0.0.0-20230407131929-c9a6bb18-nightly":"2023-04-08T00:23:00.894Z","0.0.0-20230408172438-a2855a6e-nightly":"2023-04-09T00:25:49.079Z","0.0.0-20230409084303-221991d4-nightly":"2023-04-10T00:25:27.545Z","0.0.0-20230410103618-089e5b37-nightly":"2023-04-11T00:24:44.033Z","0.5.0-alpha.3":"2023-04-11T04:53:22.326Z","0.0.0-20230411141436-ec6b051d-nightly":"2023-04-11T14:18:42.916Z","0.0.0-20230411151359-929de326-nightly":"2023-04-12T00:24:44.991Z","0.0.0-20230412041719-76e5b5b9-nightly":"2023-04-12T04:58:54.765Z","0.0.0-20230412114309-05fc8eec-nightly":"2023-04-13T00:22:55.633Z","0.0.0-20230413112150-e058f87e-nightly":"2023-04-13T13:41:16.383Z","0.0.0-20230413190748-4d32b79a-nightly":"2023-04-14T00:23:17.183Z","0.0.0-20230414143749-f98f3e94-nightly":"2023-04-15T00:26:20.257Z","0.0.0-20230416000648-f322ab85-nightly":"2023-04-16T00:25:46.116Z","0.0.0-20230416194015-c6ae6f0f-nightly":"2023-04-17T00:24:10.751Z","0.0.0-20230417100332-c673f663-nightly":"2023-04-18T00:23:47.624Z","0.0.0-20230418192708-038c287a-nightly":"2023-04-19T00:25:42.636Z","0.0.0-20230419181152-90833057-nightly":"2023-04-19T18:16:25.675Z","0.0.0-20230419181455-be5e9007-nightly":"2023-04-19T18:18:28.349Z","0.0.0-20230419082004-ba4cb881-nightly":"2023-04-20T00:24:15.293Z","0.0.0-20230419224531-580687ea-nightly":"2023-04-20T02:05:27.003Z","0.0.0-20230420021507-17b3de01-nightly":"2023-04-20T02:20:17.748Z","0.0.0-20230420032755-9499a5df-nightly":"2023-04-20T03:32:36.393Z","0.0.0-20230420033423-a474fdef-nightly":"2023-04-20T03:37:48.677Z","0.0.0-20230420034403-72a706b3-nightly":"2023-04-20T03:48:55.893Z","0.0.0-20230420040504-2cbea2d3-nightly":"2023-04-20T04:08:59.852Z","0.0.0-20230420041641-17d0b170-nightly":"2023-04-20T04:19:56.416Z","0.0.0-20230420045705-6253d7b9-nightly":"2023-04-20T05:02:02.166Z","0.0.0-20230420050902-d9ba4793-nightly":"2023-04-20T05:12:09.414Z","0.0.0-20230420051213-c7ac2850-nightly":"2023-04-20T05:15:31.938Z","0.0.0-20230420052205-f8710675-nightly":"2023-04-20T05:25:50.876Z","0.0.0-20230420053507-ac78edf2-nightly":"2023-04-20T05:39:22.179Z","0.0.0-20230420060121-36f39072-nightly":"2023-04-20T06:05:07.724Z","0.0.0-20230420061122-b8699818-nightly":"2023-04-20T06:17:23.814Z","0.0.0-20230420070517-e32016cd-nightly":"2023-04-20T07:09:33.975Z","0.0.0-20230420070759-dbe39fdf-nightly":"2023-04-20T07:10:31.236Z","0.0.0-20230420160324-857b396c-nightly":"2023-04-20T16:08:49.891Z","0.0.0-20230420194752-2980755e-nightly":"2023-04-20T19:50:49.540Z","0.0.0-20230420210727-85b7de79-nightly":"2023-04-21T00:24:05.769Z","0.0.0-20230421132835-1c52a918-nightly":"2023-04-22T00:24:02.037Z","0.0.0-20230422015719-7b64b527-nightly":"2023-04-22T02:00:02.555Z","0.5.0-alpha.4":"2023-04-22T02:08:02.613Z","0.0.0-20230422231131-3de18e87-nightly":"2023-04-23T00:25:58.483Z","0.0.0-20230423223855-b6c34d9e-nightly":"2023-04-24T00:25:35.109Z","0.0.0-20230424194949-ff9cc9dd-nightly":"2023-04-25T00:24:00.321Z","0.5.0":"2023-04-25T16:44:33.983Z","0.0.0-20230425164216-4b5fafd7-nightly":"2023-04-26T00:24:36.350Z","0.0.0-20230426054154-cbe3dbce-nightly":"2023-04-26T06:31:07.016Z","0.0.0-20230426131617-7a934ba6-nightly":"2023-04-27T00:26:36.964Z","0.0.0-20230427041825-7fff957d-nightly":"2023-04-27T04:35:29.640Z","0.0.0-20230427114705-ffcc5be0-nightly":"2023-04-28T00:25:47.898Z","0.0.0-20230428070346-4bed88f0-nightly":"2023-04-28T07:08:18.831Z","0.0.0-20230428133133-9f290178-nightly":"2023-04-29T00:23:33.544Z","0.0.0-20230429153208-4ac043ec-nightly":"2023-04-30T00:26:42.740Z","0.0.0-20230430074810-e05a7cd0-nightly":"2023-05-01T00:25:43.624Z","0.0.0-20230501021333-90d9a4af-nightly":"2023-05-02T00:23:47.599Z","0.0.0-20230502232311-bfe52748-nightly":"2023-05-03T00:23:30.470Z","0.0.0-20230503040956-5c49643f-nightly":"2023-05-04T00:24:00.665Z","0.0.0-20230504140113-3a4b0abb-nightly":"2023-05-05T00:23:44.831Z","0.0.0-20230505225643-03f75e5e-nightly":"2023-05-06T00:22:26.216Z","0.0.0-20230506085552-66fcf3a2-nightly":"2023-05-07T00:25:47.004Z","0.0.0-20230507142042-29bc8617-nightly":"2023-05-08T00:23:24.378Z","0.0.0-20230508043859-34d0cc68-nightly":"2023-05-08T04:41:48.240Z","0.0.0-20230508161503-04475f67-nightly":"2023-05-09T00:24:49.225Z","0.0.0-20230509052644-b8b1b6a1-nightly":"2023-05-09T05:48:43.253Z","0.0.0-20230509150141-055b5702-nightly":"2023-05-10T00:24:11.605Z","0.0.0-20230510195934-c3adecb7-nightly":"2023-05-11T00:23:26.403Z","0.0.0-20230511150844-c344a2b3-nightly":"2023-05-11T22:01:51.158Z","0.0.0-20230512070537-44e59e48-nightly":"2023-05-12T18:52:10.831Z","0.0.0-20230512192655-e61e272b-nightly":"2023-05-12T19:37:19.102Z","0.0.0-20230513043625-a1548207-nightly":"2023-05-14T00:26:45.094Z","0.0.0-20230514141009-705c0fac-nightly":"2023-05-15T00:25:22.734Z","0.0.0-20230515135743-254e8c10-nightly":"2023-05-16T00:24:06.652Z","0.0.0-20230516150657-31efbf21-nightly":"2023-05-17T00:26:35.811Z","0.0.0-20230517071334-40b6a07f-nightly":"2023-05-17T09:23:42.120Z","0.0.0-20230517102216-36bda4ab-nightly":"2023-05-17T10:26:43.157Z","0.0.0-20230518050717-68d6871b-nightly":"2023-05-18T05:10:40.215Z","0.0.0-20230518051344-45970a96-nightly":"2023-05-18T05:17:27.325Z","0.0.0-20230518132640-c31abed2-nightly":"2023-05-19T00:24:41.022Z","0.0.0-20230519064753-1a553313-nightly":"2023-05-19T06:50:49.479Z","0.0.0-20230519102837-01acd96b-nightly":"2023-05-20T00:24:12.615Z","0.0.0-20230522085150-18e83864-nightly":"2023-05-23T00:25:04.367Z","0.0.0-20230523113844-e23384f1-nightly":"2023-05-24T00:24:14.408Z","0.0.0-20230524232247-8c175b40-nightly":"2023-05-25T00:23:30.084Z","0.0.0-20230525011821-20259c76-nightly":"2023-05-25T02:02:42.653Z","0.0.0-20230525072216-d4cc19b1-nightly":"2023-05-25T07:49:49.364Z","0.0.0-20230525112306-4e165666-nightly":"2023-05-25T14:00:13.601Z","0.0.0-20230526010315-e1d4bf97-nightly":"2023-05-26T02:02:08.681Z","0.0.0-20230526024755-74df4d56-nightly":"2023-05-26T02:51:10.898Z","0.0.0-20230526105510-0350c2c0-nightly":"2023-05-27T00:26:38.550Z","0.0.0-20230527155447-cef80420-nightly":"2023-05-28T00:27:06.449Z","0.0.0-20230529063116-9927a75a-nightly":"2023-05-29T06:50:37.529Z","0.0.0-20230529073717-06f81074-nightly":"2023-05-29T07:42:33.310Z","0.0.0-20230529075358-c0eb6564-nightly":"2023-05-29T07:57:01.940Z","0.0.0-20230529085908-d3d4c1a3-nightly":"2023-05-29T09:08:02.790Z","0.0.0-20230529102007-5ac37643-nightly":"2023-05-29T10:31:20.895Z","0.0.0-20230529110357-2729de93-nightly":"2023-05-29T11:28:21.883Z","0.0.0-20230529210748-ab9952ba-nightly":"2023-05-30T00:27:37.504Z","0.0.0-20230530061436-d0702cc0-nightly":"2023-05-30T06:29:14.780Z","0.0.0-20230530101649-463577c2-nightly":"2023-05-31T00:27:03.034Z","0.0.0-20230531040027-44cd9d8e-nightly":"2023-05-31T04:09:19.373Z","0.0.0-20230531071546-a544414b-nightly":"2023-05-31T07:36:34.630Z","0.0.0-20230531074909-e951a818-nightly":"2023-05-31T07:52:10.129Z","0.0.0-20230531080915-ca9c55a2-nightly":"2023-05-31T08:24:20.572Z","0.0.0-20230531101553-3854a14c-nightly":"2023-06-01T00:33:16.961Z","0.0.0-20230601062752-68dbf1a4-nightly":"2023-06-01T06:31:37.132Z","0.0.0-20230601101714-0d24ba91-nightly":"2023-06-01T10:22:08.046Z","0.0.0-20230601122821-16196c35-nightly":"2023-06-02T00:27:39.782Z","0.0.0-20230602020342-81b4c523-nightly":"2023-06-02T08:58:39.893Z","0.0.0-20230602102854-1b6ffa69-nightly":"2023-06-03T00:26:26.919Z","0.0.0-20230604040121-4ab99587-nightly":"2023-06-04T04:05:59.201Z","0.0.0-20230605133755-4f79f942-nightly":"2023-06-06T00:27:33.589Z","0.6.0":"2023-06-06T12:08:48.800Z","0.0.0-20230606130340-805f430b-nightly":"2023-06-07T00:28:03.453Z","0.0.0-20230607055421-9b20fcaf-nightly":"2023-06-08T00:28:05.353Z","0.0.0-20230608095252-955ad210-nightly":"2023-06-09T00:30:24.804Z","0.0.0-20230609234901-5daa1a6e-nightly":"2023-06-10T00:26:33.894Z","0.0.0-20230610155623-6fd80ccc-nightly":"2023-06-11T00:30:06.981Z","0.0.0-20230611085524-052ecf3f-nightly":"2023-06-12T00:29:16.149Z","0.0.0-20230612125018-7c0d765d-nightly":"2023-06-13T00:27:27.259Z","0.0.0-20230613061606-d9b96e14-nightly":"2023-06-13T06:20:44.530Z","0.0.0-20230613142146-d72d4600-nightly":"2023-06-14T00:26:10.414Z","0.0.0-20230614221433-c1402d96-nightly":"2023-06-15T00:28:28.474Z","0.0.0-20230615114854-2b927ab5-nightly":"2023-06-16T00:28:29.185Z","0.0.0-20230616172700-720da7d7-nightly":"2023-06-17T00:26:04.650Z","0.0.0-20230617112728-96046bd8-nightly":"2023-06-18T00:30:58.071Z","0.0.0-20230618093321-05c37038-nightly":"2023-06-19T00:27:59.103Z","0.0.0-20230619093341-b1b8714a-nightly":"2023-06-20T00:26:29.063Z","0.0.0-20230620053632-def836c5-nightly":"2023-06-20T06:24:25.862Z","0.0.0-20230620110032-d8041266-nightly":"2023-06-20T11:12:27.652Z","0.0.0-20230620132953-c8a7dfc3-nightly":"2023-06-21T00:31:04.546Z","0.0.0-20230621121334-ea56da5c-nightly":"2023-06-21T14:32:02.134Z","0.0.0-20230622044943-68a3188d-nightly":"2023-06-22T04:54:03.778Z","0.0.0-20230622140410-30eb2b91-nightly":"2023-06-23T00:32:33.309Z","0.0.0-20230623185501-1697f9ce-nightly":"2023-06-24T00:30:53.154Z","0.0.0-20230624133730-3d47c8c8-nightly":"2023-06-24T13:41:07.896Z","0.0.0-20230624135813-f26651e5-nightly":"2023-06-24T14:01:56.896Z","0.0.0-20230624145145-2fc312f1-nightly":"2023-06-24T14:54:56.013Z","0.0.0-20230624151714-10e3e0be-nightly":"2023-06-24T15:20:45.906Z","0.0.0-20230624163241-751f7170-nightly":"2023-06-24T16:39:23.642Z","0.0.0-20230626181619-90507cfc-nightly":"2023-06-27T00:30:06.958Z","0.0.0-20230627102054-b712dd6c-nightly":"2023-06-27T10:42:06.603Z","0.0.0-20230627154918-4c642938-nightly":"2023-06-27T15:58:05.029Z","0.0.0-20230627165830-836e6fd1-nightly":"2023-06-27T17:02:22.616Z","0.0.0-20230628134028-bff5cb08-nightly":"2023-06-28T20:15:59.910Z","0.0.0-20230629084521-542de4e8-nightly":"2023-06-29T09:02:50.510Z","0.0.0-20230629103121-76e6587d-nightly":"2023-06-30T00:30:35.129Z"},"bugs":{"url":"https://github.com/toeverything/blocksuite/issues"},"author":{"name":"toeverything"},"license":"MPL-2.0","homepage":"https://github.com/toeverything/blocksuite#readme","keywords":[],"repository":{"url":"git+https://github.com/toeverything/blocksuite.git","type":"git"},"description":"Library for creating orthogonal connectors with pathfinding support","maintainers":[{"email":"doodlewind@gmail.com","name":"doodlewind"},{"email":"zover.v@gmail.com","name":"l-sun"}],"readme":"","readmeFilename":""}