{"_id":"simplify-ts","_rev":"6-7970411d8a03823a70c04db23f7250fc","name":"simplify-ts","description":"Simplification of a 2D-polyline or a 3D-polyline.","dist-tags":{"latest":"1.0.2"},"versions":{"0.0.1":{"name":"simplify-ts","version":"0.0.1","description":"Simplification of a 2D-polyline or a 3D-polyline.","main":"dist/index.js","dependencies":{},"devDependencies":{"benchmark":"^2.1.4","faucet":"0.0.1","tape":"^4.8.0","typescript":"^2.5.3"},"scripts":{"bench":"node ./benchmarks/1k-objectPoints.js && node ./benchmarks/1k-arrayPoints.js","build":"tsc","test":"node test/test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/METACEO/simplify-ts.git"},"author":{"name":"James Allen"},"keywords":["ts","tsc","typescript","douglas","peucker","math","geometry","polyline","simplification"],"license":"MIT","bugs":{"url":"https://github.com/METACEO/simplify-ts/issues"},"homepage":"https://github.com/METACEO/simplify-ts#readme","gitHead":"df35c682a0fa0010cf86d5a6cd45596105f6f11f","_id":"simplify-ts@0.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"meta.ceo","email":"com.npmjs@meta.ceo"},"dist":{"integrity":"sha512-DYN0/Ex03bqtUVcul+62kbvNNNxxBKu4yxjoHvKGGXxRMSSCUDltR9IYRuGKnPa0mK0/6m7ueXFxt9EGb4CYbw==","shasum":"aa8fbd80021e4b838aa0a3e14a3eb85febb68ebf","tarball":"https://registry.npmjs.org/simplify-ts/-/simplify-ts-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9+N1l7kkNq4WpfUXEb0wBVB4tPu65NVNK4kKPOvIFfAiEAppyUqRQ/xRvGElKtJWFAdD9CZuGlmc2WyhJoECkwI7s="}]},"maintainers":[{"name":"meta.ceo","email":"com.npmjs@meta.ceo"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simplify-ts-0.0.1.tgz_1507503964136_0.8705917724873871"},"directories":{}},"0.0.2":{"name":"simplify-ts","version":"0.0.2","description":"Simplification of a 2D-polyline or a 3D-polyline.","main":"dist/index.js","dependencies":{},"devDependencies":{"benchmark":"^2.1.4","faucet":"0.0.1","tape":"^4.8.0","typescript":"^2.5.3"},"scripts":{"bench":"node ./benchmarks/1k-objectPoints.js && node ./benchmarks/1k-arrayPoints.js","build":"tsc","test":"node test/test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/METACEO/simplify-ts.git"},"author":{"name":"James Allen"},"keywords":["ts","tsc","typescript","douglas","peucker","math","geometry","polyline","simplification"],"license":"MIT","bugs":{"url":"https://github.com/METACEO/simplify-ts/issues"},"homepage":"https://github.com/METACEO/simplify-ts#readme","gitHead":"66b70196c7c602f9c2e81e72f61431dec07f03d4","_id":"simplify-ts@0.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"meta.ceo","email":"com.npmjs@meta.ceo"},"dist":{"integrity":"sha512-sJFBuP6V77NX3tQiZvSpuFbTLx5mN3ZlrwjdeeYXBfdWNm4BBdgJRbmR6i81FoQNfEePfWwTRm/wOp3ZBACRUw==","shasum":"9ec915111d9eece3e1f8dded220057b59387e597","tarball":"https://registry.npmjs.org/simplify-ts/-/simplify-ts-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDreE5RYVLi76+QQJgOiAOde5y5MZBX/aNVb28kNDjTEwIgaJKOF/Ajj2z1xyETqvHdzteoAsEZdFkiLDEnKg3EswA="}]},"maintainers":[{"name":"meta.ceo","email":"com.npmjs@meta.ceo"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simplify-ts-0.0.2.tgz_1507504532761_0.02442069654352963"},"directories":{}},"0.0.3":{"name":"simplify-ts","version":"0.0.3","description":"Simplification of a 2D-polyline or a 3D-polyline.","main":"dist/index.js","typings":"dist/index.d.ts","dependencies":{},"devDependencies":{"benchmark":"^2.1.4","faucet":"0.0.1","tape":"^4.8.0","typescript":"^2.5.3"},"scripts":{"bench":"node ./benchmarks/1k-objectPoints.js && node ./benchmarks/1k-arrayPoints.js","build":"tsc","prepublish":"npm run build","test":"node test/test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/METACEO/simplify-ts.git"},"author":{"name":"James Allen"},"keywords":["ts","tsc","typescript","douglas","peucker","math","geometry","polyline","simplification"],"license":"MIT","bugs":{"url":"https://github.com/METACEO/simplify-ts/issues"},"homepage":"https://github.com/METACEO/simplify-ts#readme","gitHead":"f952ef42f4c3054e9b212df3ff305ab33f9ce82a","_id":"simplify-ts@0.0.3","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"meta.ceo","email":"com.npmjs@meta.ceo"},"dist":{"integrity":"sha512-MhHHeYuIWFG8ufr4v/Ly0OtszBZljO1jAOye2ihNjI/FwjUcfhRCbtF9kd+xWpX9ZmTQdHuIs7oAuc0rUw88iQ==","shasum":"2289839fa0e3a8898b6fef3f063b8de3d3daeb4b","tarball":"https://registry.npmjs.org/simplify-ts/-/simplify-ts-0.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDng1B/n8/kVSlV+pg+etNfpQgn81vQrR6FLLzygBpzwIhAKu8RBp0pS43aO0IXc1g1Pj84SppZAx9x8xhiVITifKE"}]},"maintainers":[{"name":"meta.ceo","email":"com.npmjs@meta.ceo"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simplify-ts-0.0.3.tgz_1507524965381_0.9694716073572636"},"directories":{}},"1.0.0":{"name":"simplify-ts","version":"1.0.0","description":"Simplification of a 2D-polyline or a 3D-polyline.","main":"dist/index.js","typings":"dist/index.d.ts","dependencies":{},"devDependencies":{"benchmark":"^2.1.4","faucet":"0.0.1","tape":"^4.8.0","typescript":"^2.5.3"},"scripts":{"bench":"node ./benchmarks/1k-objectPoints.js && node ./benchmarks/1k-arrayPoints.js && node ./benchmarks/1k-latlongPoints.js","build":"tsc","prepublish":"npm run build","test":"node test/test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/METACEO/simplify-ts.git"},"author":{"name":"James Allen"},"keywords":["ts","tsc","typescript","douglas","peucker","math","geometry","polyline","simplification"],"license":"MIT","bugs":{"url":"https://github.com/METACEO/simplify-ts/issues"},"homepage":"https://github.com/METACEO/simplify-ts#readme","gitHead":"a01f432bd5a711bb3c2191665c377a05ee1e309d","_id":"simplify-ts@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"meta.ceo","email":"com.npmjs@meta.ceo"},"dist":{"integrity":"sha512-vMPCzbshBQv11TVCYnwfm/mrx7nToVJERXVluHjJUZrgJIaHMFHHSPfrZuqUl3SiwKMaddj/dQ08NjQK1Sp0ow==","shasum":"60c2dfe9b2ed44c24b677b21247fc1662cfeb98d","tarball":"https://registry.npmjs.org/simplify-ts/-/simplify-ts-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDZm4q1P2DG954kSPpnsNya+ZOFxP7bGewGDwV6hwp5YAIhAK4OvmyeXkNHfhM7mcfn0/0h+GQkFj782EydvxKXsNBF"}]},"maintainers":[{"name":"meta.ceo","email":"com.npmjs@meta.ceo"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simplify-ts-1.0.0.tgz_1507579854900_0.8407595157623291"},"directories":{}},"1.0.1":{"name":"simplify-ts","version":"1.0.1","description":"Simplification of a 2D-polyline or a 3D-polyline.","main":"dist/index.js","typings":"dist/index.d.ts","dependencies":{},"devDependencies":{"benchmark":"^2.1.4","faucet":"0.0.1","tape":"^4.8.0","typescript":"^2.5.3"},"scripts":{"bench":"node ./benchmarks/1k-objectPoints.js && node ./benchmarks/1k-arrayPoints.js && node ./benchmarks/1k-latlongPoints.js","build":"tsc","prepublish":"npm run build","test":"node test/test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/METACEO/simplify-ts.git"},"author":{"name":"James Allen"},"keywords":["ts","tsc","typescript","douglas","peucker","math","geometry","polyline","simplification"],"license":"MIT","bugs":{"url":"https://github.com/METACEO/simplify-ts/issues"},"homepage":"https://github.com/METACEO/simplify-ts#readme","gitHead":"5331a94e6ca1e1e9919abb79b67408f01c452d76","_id":"simplify-ts@1.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.6.0","_npmUser":{"name":"meta.ceo","email":"com.npmjs@meta.ceo"},"dist":{"integrity":"sha512-8XCYJFleaX6o3tQaS2B6cX2NKrbPjNDFg939L9GTfyrJ1twIKh9YrhoDY0WNqML84XgV7ZcUYmfQrY/1y8YWXA==","shasum":"078ea06d3aed6524b3c6cb57f95aff47c2acae71","tarball":"https://registry.npmjs.org/simplify-ts/-/simplify-ts-1.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6PGYjmEVc/Zs/T5Ji313cywwux/BBvfmFGE21SOtKUwIhAMM8cCnsaMEYIMB3Anbrc4gf4rAJZu76OxpRlLOtGL1p"}]},"maintainers":[{"name":"meta.ceo","email":"com.npmjs@meta.ceo"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simplify-ts-1.0.1.tgz_1507580680604_0.8686193029861897"},"directories":{}},"1.0.2":{"name":"simplify-ts","version":"1.0.2","description":"Simplification of a 2D-polyline or a 3D-polyline.","main":"dist/index.js","typings":"dist/index.d.ts","dependencies":{},"devDependencies":{"@types/node":"^13.7.4","benchmark":"^2.1.4","faucet":"0.0.1","tape":"^4.8.0","typescript":"^3.8.2"},"scripts":{"bench":"node ./benchmarks/1k-objectPoints.js && node ./benchmarks/1k-arrayPoints.js && node ./benchmarks/1k-latlongPoints.js","build":"tsc","prepublish":"npm run build","test":"node test/test.js | faucet"},"repository":{"type":"git","url":"git+https://github.com/METACEO/simplify-ts.git"},"author":{"name":"James Allen"},"keywords":["ts","tsc","typescript","douglas","peucker","math","geometry","polyline","simplification"],"license":"MIT","bugs":{"url":"https://github.com/METACEO/simplify-ts/issues"},"homepage":"https://github.com/METACEO/simplify-ts#readme","gitHead":"2bdddd86e1269f4da2537dcc8770e541d56f87f5","_id":"simplify-ts@1.0.2","_nodeVersion":"10.19.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-fDfgIdW3IbsOvEArM/VIEiX863+wqXD44mYWgsC3lsUJnk8+kXbBDt2rIpPA6JVndmp1B758dhi2bIThPiRkCg==","shasum":"e8eefeb26e8b83119c28b0717ea13bb7c0790a9f","tarball":"https://registry.npmjs.org/simplify-ts/-/simplify-ts-1.0.2.tgz","fileCount":11,"unpackedSize":14486,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeUKcsCRA9TVsSAnZWagAATc0P/2iP8jgTQfYlY6MINfGP\nqUHa/fAccAzmfDuEki+1EkHFT4Q6UCpfqHqgEjZeg42laBVtqZKgbBI/3B1T\nql3Xvuq7vq47cW5dgJ21rpzkgdIgU9A50XDLosO6/cUQ/NVpzf50Ssf+C0io\npz/bT06j3SPKJNkVE5ywCnayfULlfV7zYi5A1ElHOLRycMMXSLXJxG0KdltB\nTvWW7w3JtVB7qT145kZcLqNvtj4EOKGw3NPcw0VntFTGNpIXSL+9bhovG6SN\n2QsskUx+ZQXu4v41kn7EdPw98tRhmqtDRgndEM9433QaYs1RwHc/UG1/lBga\nVdlG5eMdUf1gCo5HK6RW+AaS9J9kc39kys7t7JleWfhXcXzJs1HVVpR7Ep7L\n19RS9SfTlwHRHptD1qczTyPyNQwkPElF5x8zcv3KUVfoN5Yd3iErPvsYeQxK\nV4smlcEyOl7hYzrxE8MEZs+b7SjVfzgs7+6BZlrR1Y3RkrcyNRjAj4KmcTCv\nvdwED8I7KOa5K9iH3/JtONHtRp8iAKFL0acewBHJjmIZDnuX4kM9XSBYTMkr\nx6SUg7Nzj0gsEXoCv4sxrFMS6IrURB6tQGGifsLJiClMy1ZHjFMNzdf6Cpiu\nYSTJdjym35IF9eIjv2fli5Nd58jYlj+08GP2bcLthNSbuRoqImyfeIgHFYQ8\nzuFj\r\n=lGqs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDo8w4+yl+jgmgc+pas5UHQexsiroN+v5XJVD0FMJQdFgIhAKvgfW4s6/6VgYZy+mwReWnobo9PhRcOyWbJRbBo44AL"}]},"maintainers":[{"name":"meta.ceo","email":"com.npmjs@meta.ceo"}],"_npmUser":{"name":"meta.ceo","email":"com.npmjs@meta.ceo"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simplify-ts_1.0.2_1582343980212_0.04869584787877623"},"_hasShrinkwrap":false}},"readme":"simplify-ts\n===========\n\nThe multi-flavor TypeScript port of the \"high-performance JavaScript 2D/3D polyline simplification\" library [Simplify.js](https://github.com/mourner/simplify-js) - a combination of basic radial distance determination and the Douglas-Peucker algorithm.\n\nThree different importable flavors:\n\n1. Object-based point collections - `Array<{x: number, y: number}>`\n2. Array-based point collections - `Array<[number, number]>`\n3. LatLong-based point collections - `Array<{latitude: number, longitude: number}>`\n\n## Install\n\n```\nnpm install --save simplify-ts\n```\n\nCompiled JavaScript and types are included with your NPM install. To run benchmarks, tests and custom builds, use git to clone the repository (then also run `npm install` in the cloned repository to get the required dependencies for development.)\n\n```\ngit clone https://github.com/METACEO/simplify-ts.git\n```\n\nYou will then find the `benchmarks`, `src` and `test` folders referenced in the `package.json` file.\n\n## Usage\n\nObject-based point collections:\n\n```typescript\nimport {\n    Simplify,\n    ISimplifyObjectPoint\n} from 'simplify-ts';\n\nconst points: ISimplifyObjectPoint[] = [ {x: 1, y: 2} /* ... */ ];\nconst tolerance: number = 0.5;\nconst highQuality: boolean = true;\n\nconst simplified_result = Simplify(points, tolerance, highQuality);\n```\n\nArray-based point collections:\n\n```typescript\nimport {\n    SimplifyAP,\n    ISimplifyArrayPoint\n} from 'simplify-ts';\n\nconst points: ISimplifyArrayPoint[] = [ [1, 2] /* ... */ ];\nconst tolerance: number = 0.5;\nconst highQuality: boolean = true;\n\nconst simplified_result = SimplifyAP(points, tolerance, highQuality);\n```\n\nLatLong-based point collections:\n\n```typescript\nimport {\n    SimplifyLL,\n    ISimplifyLatLongPoint\n} from './src';\n\nconst points: ISimplifyLatLongPoint[] = [ {latitude: 1, longitude: 2} /* ... */ ];\nconst tolerance: number = 0.5;\nconst highQuality: boolean = true;\n\nconst simplified_result = SimplifyLL(points, tolerance, highQuality);\n```\n\n## Tests\n\nRun `npm test` in the project's repository.\n\n```\n[jamesallen@dev simplify-ts]$ npm test\n\n> simplify-ts@0.0.1 test /home/jamesallen/simplify-ts\n> node test/test.js | faucet\n\n✓ simplifies object-points correctly with the given tolerance\n✓ simplifies object-points correctly with the given tolerance and high quality\n✓ just return the object-points if it has only one point\n✓ just return the object-points if it has no points\n✓ simplifies array-points correctly with the given tolerance\n✓ simplifies array-points correctly with the given tolerance and high quality\n✓ just return the array-points if it has only one point\n✓ just return the array-points if it has no points\n✓ simplifies latlong-points correctly with the given tolerance\n✓ simplifies latlong-points correctly with the given tolerance and high quality\n✓ just return the latlong-points if it has only one point\n✓ just return the object-points if it has no points\n# tests 12\n# pass  12\n✓ ok\n```\n\n\n## Benchmarks\n\nRun `npm run bench` in the project's repository.\n\n```\n[jamesallen@dev simplify-ts]$ npm run bench\n\n> simplify-ts@0.0.1 bench /home/jamesallen/simplify-ts\n> node ./benchmarks/1k-objectPoints.js && node ./benchmarks/1k-arrayPoints.js && node ./benchmarks/1k-latlongPoints.js\n\nBenchmarking simplify on 1118 object-points...\nsimplify (HQ) x 8,918 ops/sec ±0.42% (92 runs sampled)\nsimplify x 14,739 ops/sec ±0.52% (93 runs sampled)\nBenchmarking simplify on 1118 array-points...\nsimplify (HQ) x 7,506 ops/sec ±0.47% (92 runs sampled)\nsimplify x 12,023 ops/sec ±0.55% (92 runs sampled)\nBenchmarking simplify on 1118 latlong-points...\nsimplify (HQ) x 9,005 ops/sec ±0.53% (89 runs sampled)\nsimplify x 14,018 ops/sec ±0.55% (92 runs sampled)\n```\n","maintainers":[{"name":"meta.ceo","email":"com.npmjs@meta.ceo"}],"time":{"modified":"2022-05-17T22:51:38.391Z","created":"2017-10-08T23:06:05.058Z","0.0.1":"2017-10-08T23:06:05.058Z","0.0.2":"2017-10-08T23:15:33.727Z","0.0.3":"2017-10-09T04:56:06.364Z","1.0.0":"2017-10-09T20:10:55.889Z","1.0.1":"2017-10-09T20:24:41.532Z","1.0.2":"2020-02-22T03:59:40.374Z"},"homepage":"https://github.com/METACEO/simplify-ts#readme","keywords":["ts","tsc","typescript","douglas","peucker","math","geometry","polyline","simplification"],"repository":{"type":"git","url":"git+https://github.com/METACEO/simplify-ts.git"},"author":{"name":"James Allen"},"bugs":{"url":"https://github.com/METACEO/simplify-ts/issues"},"license":"MIT","readmeFilename":"README.md"}