{"_id":"@excalidraw/laser-pointer","_rev":"11-0b6cd2245c3eb5fe38059330b50ba821","name":"@excalidraw/laser-pointer","dist-tags":{"latest":"1.3.2"},"versions":{"1.0.0":{"name":"@excalidraw/laser-pointer","version":"1.0.0","keywords":["excalidraw","freehand"],"author":{"name":"Are Wojciechowski","email":"me@iama.re"},"license":"MIT","_id":"@excalidraw/laser-pointer@1.0.0","maintainers":[{"name":"aa1216","email":"aakansha1216@gmail.com"},{"name":"vjeux","email":"vjeuxx@gmail.com"},{"name":"dwelle","email":"luzar.david@gmail.com"},{"name":"lipis","email":"lipiridis@gmail.com"}],"homepage":"https://github.com/excalidraw/excalidraw-freehand#readme","bugs":{"url":"https://github.com/excalidraw/excalidraw-freehand/issues"},"dist":{"shasum":"52403860dba63e36f8f10cf83e2395ffa2e77c58","tarball":"https://registry.npmjs.org/@excalidraw/laser-pointer/-/laser-pointer-1.0.0.tgz","fileCount":13,"integrity":"sha512-AzsWaIs5uFuVd5eKg8R6U5VANBxcgV0CWOivjMRAPam4PSkq9i3wK3lkffnE1cD5Opdc9ExuFmlfyR0Ko5lPHg==","signatures":[{"sig":"MEYCIQCEETiu4ez5cluScDwCktEra+q2PXOhWJIiEGy+DGwRXwIhAK4TvzrrJVI7R2WQf6R2QFjQSTzbNy09Zlf5GZswqp+v","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":87648},"main":"dist/cjs.js","types":"dist/types.d.ts","module":"dist/esm.js","source":"src/index.ts","gitHead":"a71e7bb10e9b2107d45e55cb483cd08e3684f1e8","scripts":{"dev":"parcel watch","test":"playwright test","build":"parcel build","test:server":"parcel build && serve .","prepublishOnly":"parcel build"},"_npmUser":{"name":"dwelle","email":"luzar.david@gmail.com"},"repository":{"url":"git+https://github.com/excalidraw/excalidraw-freehand.git","type":"git"},"_npmVersion":"9.7.2","description":"Generate outline for laser pointer tool","directories":{},"_nodeVersion":"20.4.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"serve":"^14.2.1","parcel":"^2.9.3","typescript":"^5.2.2","@types/node":"^20.6.2","@playwright/test":"^1.38.0","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3"},"_npmOperationalInternal":{"tmp":"tmp/laser-pointer_1.0.0_1695810192216_0.5632385665487485","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@excalidraw/laser-pointer","version":"1.0.1","keywords":["excalidraw","laserpointer"],"license":"MIT","_id":"@excalidraw/laser-pointer@1.0.1","maintainers":[{"name":"aa1216","email":"aakansha1216@gmail.com"},{"name":"vjeux","email":"vjeuxx@gmail.com"},{"name":"dwelle","email":"luzar.david@gmail.com"}],"dist":{"shasum":"181f3b6dfd626c7055553d007dea2225d9a0aaac","tarball":"https://registry.npmjs.org/@excalidraw/laser-pointer/-/laser-pointer-1.0.1.tgz","fileCount":17,"integrity":"sha512-qqnexhFOtsOXStwIiHh2K8ZaWWszxhUJe4lmqpCexUfr0WR6R7mJlkjzbJobE8yvA5e3tr9P11SNOYe9Z5K7+w==","signatures":[{"sig":"MEUCIQC+eCO3UTdrSgpXlUQ9Ldxl7p2CoyFWkqOkk8mJtmGh4QIgTQ/WHg5m639s13FZZAZthE2tK0GNQqTKAqac1I6/jRg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":248014},"main":"dist/cjs.js","types":"dist/types.d.ts","module":"dist/esm.js","source":"src/index.ts","scripts":{"dev":"parcel watch","test":"playwright test","build":"parcel build","test:server":"parcel build && serve .","prepublishOnly":"parcel build"},"_npmUser":{"name":"dwelle","email":"luzar.david@gmail.com"},"description":"Generate outline for laser pointer tool","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2023 Excalidraw\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"serve":"^14.2.1","parcel":"^2.9.3","typescript":"^5.2.2","@types/node":"^20.6.2","@playwright/test":"^1.38.0","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3"},"_npmOperationalInternal":{"tmp":"tmp/laser-pointer_1.0.1_1695815355424_0.9497057940097517","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"@excalidraw/laser-pointer","version":"1.2.0","keywords":["excalidraw","laserpointer"],"license":"MIT","_id":"@excalidraw/laser-pointer@1.2.0","maintainers":[{"name":"aa1216","email":"aakansha1216@gmail.com"},{"name":"vjeux","email":"vjeuxx@gmail.com"},{"name":"dwelle","email":"luzar.david@gmail.com"}],"dist":{"shasum":"cd34ea7d24b11743c726488cc1fcb28c161cacba","tarball":"https://registry.npmjs.org/@excalidraw/laser-pointer/-/laser-pointer-1.2.0.tgz","fileCount":17,"integrity":"sha512-WjFFwLk9ahmKRKku7U0jqYpeM3fe9ZS1K43pfwPREHk4/FYU3iKDKVeS8m4tEAASnRlBt3hhLCBQLBF2uvgOnw==","signatures":[{"sig":"MEUCIQDuRzf6nBH3K7pOitxGspWPJmdn0wsY4XIxVBqHyypl9AIgMJbTbed9XSCWeSaXwi50pawaeLrmpx9aifEsfdrzvwI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":249165},"main":"dist/cjs.js","types":"dist/types.d.ts","module":"dist/esm.js","source":"src/index.ts","scripts":{"dev":"parcel watch","test":"playwright test","build":"parcel build","test:server":"parcel build && serve .","prepublishOnly":"parcel build"},"_npmUser":{"name":"dwelle","email":"luzar.david@gmail.com"},"description":"Generate outline for laser pointer tool","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2023 Excalidraw\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"serve":"^14.2.1","parcel":"^2.9.3","typescript":"^5.2.2","@types/node":"^20.6.2","@playwright/test":"^1.38.0","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3"},"_npmOperationalInternal":{"tmp":"tmp/laser-pointer_1.2.0_1696333003295_0.6137246046926423","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"@excalidraw/laser-pointer","version":"1.3.0","keywords":["excalidraw","laserpointer"],"license":"MIT","_id":"@excalidraw/laser-pointer@1.3.0","maintainers":[{"name":"aa1216","email":"aakansha1216@gmail.com"},{"name":"vjeux","email":"vjeuxx@gmail.com"},{"name":"dwelle","email":"luzar.david@gmail.com"}],"dist":{"shasum":"f274ac6ffdb2b5ea0afaa79cdae24262c31105c5","tarball":"https://registry.npmjs.org/@excalidraw/laser-pointer/-/laser-pointer-1.3.0.tgz","fileCount":17,"integrity":"sha512-meFI1ck0+TxueMrZGXg8VRp5ndsnOHhXdD40a6OIxllklPJhZ+ssPQ/cI9+LK+/z1yeMKXbtlRZmSw8d16T5EQ==","signatures":[{"sig":"MEUCIAOoJpVZZTkSWKsgqQwDyRAczAXzY4mquAF7bjx5j/QhAiEApqFVTj4IJn+Zey2yNsiu2Ke2213AYS68u6hf7PuiHnM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":255287},"main":"dist/cjs.js","types":"dist/types.d.ts","module":"dist/esm.js","source":"src/index.ts","scripts":{"dev":"parcel watch","test":"playwright test","build":"parcel build","test:server":"parcel build && serve .","prepublishOnly":"parcel build"},"_npmUser":{"name":"dwelle","email":"luzar.david@gmail.com"},"description":"Generate outline for laser pointer tool","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2023 Excalidraw\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"serve":"^14.2.1","parcel":"^2.9.3","typescript":"^5.2.2","@types/node":"^20.6.2","@playwright/test":"^1.38.0","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3"},"_npmOperationalInternal":{"tmp":"tmp/laser-pointer_1.3.0_1704725338890_0.9332759921342388","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"@excalidraw/laser-pointer","version":"1.3.1","keywords":["excalidraw","laserpointer"],"license":"MIT","_id":"@excalidraw/laser-pointer@1.3.1","maintainers":[{"name":"aa1216","email":"aakansha1216@gmail.com"},{"name":"vjeux","email":"vjeuxx@gmail.com"},{"name":"dwelle","email":"luzar.david@gmail.com"}],"dist":{"shasum":"7c40836598e8e6ad91f01057883ed8b88fb9266c","tarball":"https://registry.npmjs.org/@excalidraw/laser-pointer/-/laser-pointer-1.3.1.tgz","fileCount":17,"integrity":"sha512-psA1z1N2qeAfsORdXc9JmD2y4CmDwmuMRxnNdJHZexIcPwaNEyIpNcelw+QkL9rz9tosaN9krXuKaRqYpRAR6g==","signatures":[{"sig":"MEYCIQDVMmx7HJmuEthnTp83raWaCKHJbozGvrUTvrcENLKPfgIhAKgD9S22O+luCupyar/ltfIXMA9mxEznsTIggE55p7Ps","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":256521},"main":"dist/cjs.js","types":"dist/types.d.ts","module":"dist/esm.js","source":"src/index.ts","scripts":{"dev":"parcel watch","test":"playwright test","build":"parcel build","test:server":"parcel build && serve .","prepublishOnly":"parcel build"},"_npmUser":{"name":"dwelle","email":"luzar.david@gmail.com"},"description":"Generate outline for laser pointer tool","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2023 Excalidraw\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"serve":"^14.2.1","parcel":"^2.9.3","typescript":"^5.2.2","@types/node":"^20.6.2","@playwright/test":"^1.38.0","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3"},"_npmOperationalInternal":{"tmp":"tmp/laser-pointer_1.3.1_1704987918038_0.5091028060630358","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"@excalidraw/laser-pointer","version":"1.3.2","keywords":["excalidraw","laserpointer"],"license":"MIT","_id":"@excalidraw/laser-pointer@1.3.2","maintainers":[{"name":"aa1216","email":"aakansha1216@gmail.com"},{"name":"vjeux","email":"vjeuxx@gmail.com"},{"name":"dwelle","email":"luzar.david@gmail.com"},{"name":"maielo","email":"maielo.mv@gmail.com"},{"name":"mrazator","email":"marcel@excalidraw.com"}],"dist":{"shasum":"1f91182dfc77291df72551c83fa7bf9d740ad9ae","tarball":"https://registry.npmjs.org/@excalidraw/laser-pointer/-/laser-pointer-1.3.2.tgz","fileCount":17,"integrity":"sha512-aKhVj3/lLV7TCkZr6q5kn9sBFxzpOQ/yyRwBGm6smsakMdp0o1FVp9HNKOPerEpkKEt34VTURekZLfqa3E1Few==","signatures":[{"sig":"MEQCIHaT3Z90CeaMlhjGF0s4gnsZDedpIOY9KGdIwHt0hirDAiAPYkvxYFY3+CUJnk2nLgHULFE8y1IwnTG1wMj4jIUafQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":257175},"main":"dist/cjs.js","types":"dist/types.d.ts","module":"dist/esm.js","source":"src/index.ts","engines":{"browsers":"defaults and supports es6-module"},"scripts":{"dev":"parcel watch","test":"playwright test","build":"parcel build","test:server":"parcel build && serve .","prepublishOnly":"parcel build"},"_npmUser":{"name":"dwelle","actor":{"name":"dwelle","type":"user","email":"luzar.david@gmail.com"},"email":"luzar.david@gmail.com"},"description":"Generate outline for laser pointer tool","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2023 Excalidraw\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"serve":"^14.2.1","parcel":"^2.9.3","typescript":"^5.2.2","@types/node":"^20.6.2","@playwright/test":"^1.38.0","@parcel/packager-ts":"^2.9.3","@parcel/transformer-typescript-types":"^2.9.3"},"_npmOperationalInternal":{"tmp":"tmp/laser-pointer_1.3.2_1751024209903_0.2571936507279604","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2023-09-27T10:23:12.110Z","modified":"2025-10-28T11:57:58.784Z","1.0.0":"2023-09-27T10:23:12.482Z","1.0.1":"2023-09-27T11:49:15.617Z","1.2.0":"2023-10-03T11:36:43.479Z","1.3.0":"2024-01-08T14:48:59.047Z","1.3.1":"2024-01-11T15:45:18.212Z","1.3.2":"2025-06-27T11:36:50.078Z"},"license":"MIT","keywords":["excalidraw","laserpointer"],"description":"Generate outline for laser pointer tool","maintainers":[{"email":"luzar.david@gmail.com","name":"dwelle"},{"email":"maielo.mv@gmail.com","name":"maielo"}],"readme":"# Laser Pointer\n\n## Usage\n\n    import { LaserPointer } from '@excalidraw/laser-pointer'\n\n    const stroke = new LaserPointer(options)\n\n    stroke.addPoint([100, 200, 1])\n    stroke.close()\n\n    const outline = stroke.getStrokeOutline()\n\n## Options\n\n| Property        | Type                                      | Default    | Description                                                   |\n| --------------- | ----------------------------------------- | ---------- | ------------------------------------------------------------- |\n| `size`          | `number`                                  | `2`        | Radius of the stroke.                                         |\n| `streamline`    | `number`                                  | `0.42`     | Interpolate input points to reduce jitter.                    |\n| `simplify`      | `number`                                  | `0.1`      | Reduce stroke size by sacrificing precision.                  |\n| `simplifyPhase` | `\"input\" \\| \"output\" \\| \"tail\" `          | `\"output\"` | Decides when the simplification algorithm should be applied.  |\n| `sizeMapping`   | `(details: SizeMappingDetails) => number` | `() => 1`  | Maps each point to a value between `0.0` and `1.0`.           |\n| `keepHead`      | `boolean`                                 | `false`    | Whether size mapping should influence the head of the stroke. |\n","readmeFilename":"README.md"}