{"_id":"@amarseelam/nativescript-photo-editor","_rev":"2-83a24bae80f13e9901119718dc614cc9","name":"@amarseelam/nativescript-photo-editor","dist-tags":{"latest":"1.1.1"},"versions":{"1.1.0":{"name":"@amarseelam/nativescript-photo-editor","version":"1.1.0","description":"A NativeScript plugin for editing your photos (crop, draw, add text, etc.)","main":"photo-editor","typings":"photo-editor.d.ts","nativescript":{"platforms":{"ios":"3.0.0","android":"3.0.0"},"plugin":{"nan":"true","pan":"true","core3":"true","category":"Interface"}},"repository":{"type":"git","url":"git+https://github.com/amarseelam/nativescript-photo-editor.git"},"scripts":{"tslint":"tslint --project tsconfig.json","tsc":"tsc --project tsconfig.json","demo-ios":"grunt build && cd demo && tns run ios","demo-android":"grunt build && cd demo && tns run android"},"keywords":["NativeScript","photo editor","image editor","crop","draw","add text","tangra"],"author":{"name":"Amar Seelam","email":"amar.seelam@gmail.com"},"license":"Apache-2.0","peerDependencies":{"tns-core-modules":">=3"},"bugs":{"url":"https://github.com/amarseelam/nativescript-photo-editor/issues"},"homepage":"https://github.com/amarseelam/nativescript-photo-editor#readme","_id":"@amarseelam/nativescript-photo-editor@1.1.0","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-nNgiBFyP+rTw7zCICi8x3YRV3bznl1U60Gkh/N/FVRAgKWPQDH+H5+R0lolgNTG0/mN8iJMztvJO58tpEPuw/g==","shasum":"7f29956b6bc2c272ed089c04b7ea6135b94cd3cd","tarball":"https://registry.npmjs.org/@amarseelam/nativescript-photo-editor/-/nativescript-photo-editor-1.1.0.tgz","fileCount":8,"unpackedSize":14076,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrZ7VCRA9TVsSAnZWagAAyl8P/A9HYu5rQ5tqtwR4YNqX\nTYxjTMJcAmcpF4k0e3EhaILRZS5cR3p6cAZAqXUUqXRsHKIJNBWQsZaFykDV\nZnXbF8+QS2cPzBEuEmrAZAClmow6V6Spwid3CeJCmCQwTEullrJa7mu8cvYY\n65SoSmmVUpIr+QoGh+8uPYB5eAKk00bbCb37AaBByNjsXpkvucG+JwVIpzYH\nacSJIfdAP5dFO0LR9HcvaZHeAoEw3uhZU3K4MqG+u4ROVw7pbjXxKJFXFg3O\nwRmoqKXyHzxEPJGg1oiAm03uAw82rKQrt7eqBNRSbVa0BQKqq6CTMwKlFjwx\nTI0C9Yk4QEHl/O9xy+vzZMDJNfou9F3OJ7S+SdfikXDuh8cP0rn4vyrn4jgy\noU3klZ/px7ZBlto9liyzNoR1U/q8XR4mkK988NdCz4t2LW1Lrjn5E8djY+xR\njV7ialKRo8ecks6+XLE/wZQ0xYqNP97HW5mA+fRUQaJFkKgrqPzFNzyV+eJx\nlx8bdOjNzHTOTAxRDRGie94aMChNTpY8soQxwkpJ+rP7e+Gz9im1YrJyH5Ok\nxZ+An7cKq4wLFiIYArEwjLYeOHpNmLUgA6PBqsmXpmm4LkHNmI1qVKgJX2sm\nbbgWih9Dyim9zmMPjpOk3QUgJcfTG8zdT+wVXJCAjectuKJdBtUv+KxB10DB\nRPnC\r\n=ZJmI\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE3mkNcQRGhXSNnJ94jCzM580BH+8yRaBhrpP2aKQ6T6AiEAvV3zwE9RY/DXjNDuX0vEffYxNmzHlFiZonQUZ2bdzlQ="}]},"maintainers":[{"name":"amarseelam","email":"amar.seelam@gmail.com"}],"_npmUser":{"name":"amarseelam","email":"amar.seelam@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-photo-editor_1.1.0_1571659476603_0.6377919977419064"},"_hasShrinkwrap":false},"1.1.1":{"name":"@amarseelam/nativescript-photo-editor","version":"1.1.1","description":"A NativeScript plugin for editing your photos (crop, draw, add text, etc.)","main":"photo-editor","typings":"photo-editor.d.ts","nativescript":{"platforms":{"ios":"3.0.0","android":"3.0.0"},"plugin":{"nan":"true","pan":"true","core3":"true","category":"Interface"}},"repository":{"type":"git","url":"git+https://github.com/amarseelam/nativescript-photo-editor.git"},"scripts":{"tslint":"tslint --project tsconfig.json","tsc":"tsc --project tsconfig.json","demo-ios":"grunt build && cd demo && tns run ios","demo-android":"grunt build && cd demo && tns run android"},"keywords":["NativeScript","photo editor","image editor","crop","draw","add text","tangra"],"author":{"name":"Amar Seelam","email":"amar.seelam@gmail.com"},"license":"Apache-2.0","peerDependencies":{"tns-core-modules":">=3"},"bugs":{"url":"https://github.com/amarseelam/nativescript-photo-editor/issues"},"homepage":"https://github.com/amarseelam/nativescript-photo-editor#readme","_id":"@amarseelam/nativescript-photo-editor@1.1.1","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"integrity":"sha512-pptyCrO4Esln6SxDXlJqVKsX1UQuq+EcMCSoTuF3A8N+Em/zcPgIo0Fnx1CYnNKfb91K+xX0m0rfCSCcDApNSA==","shasum":"66ea883813593d815bbd44f99674d05e936f8e3d","tarball":"https://registry.npmjs.org/@amarseelam/nativescript-photo-editor/-/nativescript-photo-editor-1.1.1.tgz","fileCount":10,"unpackedSize":89381,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdyK/TCRA9TVsSAnZWagAAnlUP/jg7cPwUrpMu2120znyw\nzRcDCcMhGkDxVC+govkTV1CeeXKd9g3sY5BmE2CkwokaSlPtPOzkoAYdGk2l\n7U74j1E66Mp6Ynch5wvJMudnzejWhC8/uVIqHumfI2fTPjJPVeayleNsFIvW\nG9kBgg3eHPFv8r9I6e0/kqFKwOHg0Mu8dtKmR9wxGlbe5gzi8sAUOQUCegD5\ntVFDbu+1FrYyClVB0oJBXKoTIIdlaM1MYd/KlNAKfzsFoHQdSAbvsUrzjuj0\nyJWzHApGW7BpqFgp74bbPmpy48OK6awGjcUlctwjTxcSrFnfJFHk2szd1rf4\n/HeLQvm7UpTGnoEuX9z4UgafZ0HPUToSMNH2nUxDobVWBTnlTKLy85a9RtS1\n7eQqPSM2BI7LfIKs5w2AUiVCanK/RMZez6Dl9Mu6th+sB895WRDLh+EgNeNH\n7ZxnH5xV650oA2N7yQQvegztrPJLBe71Gu80jzQ9Uuc76912nIo+szxOeAzb\nb5CLu+ha42pcSXVOaWyAvEZJP88CltJrosVX/j1Xw77G8FVPQf6uhH/iGo07\nlr1Oy4YAIBPOyq6EwcozuBz8GWxg2D8n73ntYZihzeNH3wWCgo0M+QtIF4MV\nIaIMbW06ocz1RJo5TmtE/4LN5vcpRbJxwPRrhb2Ue6j4yfce5NG/HNSoVsFG\n6+zh\r\n=Qm1N\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgkWOyp5NGWvq7Fl0T2fb9GdPA/AcHltEEJxI4XLzlFwIhAKecQ/+sSp9jCxhIA4YVScZBbWZooqqtngLmTO7ki8pe"}]},"maintainers":[{"name":"amarseelam","email":"amar.seelam@gmail.com"}],"_npmUser":{"name":"amarseelam","email":"amar.seelam@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nativescript-photo-editor_1.1.1_1573433298988_0.45135867733531687"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-21T12:04:36.372Z","1.1.0":"2019-10-21T12:04:36.728Z","modified":"2022-04-04T13:43:50.358Z","1.1.1":"2019-11-11T00:48:19.201Z"},"maintainers":[{"name":"amarseelam","email":"amar.seelam@gmail.com"}],"description":"A NativeScript plugin for editing your photos (crop, draw, add text, etc.)","homepage":"https://github.com/amarseelam/nativescript-photo-editor#readme","keywords":["NativeScript","photo editor","image editor","crop","draw","add text","tangra"],"repository":{"type":"git","url":"git+https://github.com/amarseelam/nativescript-photo-editor.git"},"author":{"name":"Amar Seelam","email":"amar.seelam@gmail.com"},"bugs":{"url":"https://github.com/amarseelam/nativescript-photo-editor/issues"},"license":"Apache-2.0","readme":"# NativeScript Photo Editor\n[![npm downloads](https://img.shields.io/npm/dm/nativescript-photo-editor.svg)](https://www.npmjs.com/package/nativescript-photo-editor)\n[![npm downloads](https://img.shields.io/npm/dt/nativescript-photo-editor.svg)](https://www.npmjs.com/package/nativescript-photo-editor)\n[![npm](https://img.shields.io/npm/v/nativescript-photo-editor.svg)](https://www.npmjs.com/package/nativescript-photo-editor)\n\nA NativeScript photo editor. It allows you to crop, draw something on your image or add some text. \n\n## Screenshot\n![Screenshot of iOS](https://raw.githubusercontent.com/PeterStaev/nativescript-photo-editor/master/docs/editor-ios.gif)\n\n## Installation\nRun the following command from the root of your project:\n\n`tns plugin add nativescript-photo-editor`\n\nThis command automatically installs the necessary files, as well as stores nativescript-photo-editor as a dependency in your project's `package.json` file.\n\n## Configuration\nThere is no additional configuration needed!\n\n## API\n### Methods\n* **editPhoto(options): Promise**  \nOpens the photo editor with the given options. If the user accepts the edited image the promise is resolved with an instance of the new `ImageSource`. If the user cancels the edit the promise will be rejected. \n\n## Usage\nSimply create an instance of the photo editor, pass the image you want to edit and which editor controls you **don't** want to use (if any) an that's it!\n```ts\nimport { PhotoEditor, PhotoEditorControl } from \"nativescript-photo-editor\";\n\nconst photoEditor = new PhotoEditor();\n\nphotoEditor.editPhoto({\n    imageSource: originalImage.imageSource,\n    hiddenControls: [\n        PhotoEditorControl.Save,\n        PhotoEditorControl.Crop,\n    ],\n}).then((newImage: ImageSource) => {\n    // Here you can save newImage, send it to your backend or simply display it in your app\n    resultImage.imageSource = newImage;\n}).catch((e) => {\n    console.error(e);\n});\n```\n\n## Usage in Angular\nThere is no difference in usage between Core and Angular. So you can refer to the above usage examples on how to use this plugin with Angular. \n\n## Demos\nThis repository includes a plain NativeScript demo. In order to run it execute the following in your shell:\n```shell\n$ git clone https://github.com/peterstaev/nativescript-photo-editor\n$ cd nativescript-photo-editor\n$ npm install\n$ npm run demo-ios\n```\nThis will run the plain NativeScript demo project on iOS. If you want to run it on Android simply use the `-android` instead of the `-ios` sufix. \n\n## Donate\n[![Donate](https://img.shields.io/badge/paypal-donate-brightgreen.svg)](https://bit.ly/2AS9QKB)\n\n`bitcoin:14fjysmpwLvSsAskvLASw6ek5XfhTzskHC`\n\n![Donate](https://www.tangrainc.com/qr.png)\n\n## Credits\n* For iOS this uses the `iOSPhotoEditor` pod (https://cocoapods.org/pods/iOSPhotoEditor)\n* For Android uses adjusted code with added cropping from https://github.com/eventtus/photo-editor-android \n","readmeFilename":"README.md"}