{"_id":"@doublenot/mapbox-gl-draw","_rev":"2-1437737cf22c1677fa7de150ee9d49b5","name":"@doublenot/mapbox-gl-draw","dist-tags":{"latest":"1.1.11"},"versions":{"1.1.1":{"name":"@doublenot/mapbox-gl-draw","version":"1.1.1","description":"A drawing component for Mapbox GL JS","homepage":"https://github.com/mapbox/mapbox-gl-draw","author":{"name":"mapbox"},"license":"ISC","main":"index.js","style":"dist/mapbox-gl-draw.css","browserify":{"transform":["envify","babelify"]},"scripts":{"docs":"npm run docs-modes-life-cycle && npm run docs-modes-get-and-set","docs-modes-get-and-set":"documentation readme --readme-file ./docs/MODES.md -s \"Setters and Getters\" src/modes/mode_interface_accessors.js --shallow","docs-modes-life-cycle":"documentation readme --readme-file ./docs/MODES.md -s \"Life Cycle Functions\" src/modes/mode_interface.js --shallow","test":"NODE_ENV=test npm run lint && npm run tape","lint":"eslint --no-eslintrc -c .eslintrc index.js src test","tape":"tape -r ./test/mock-browser.js -r @babel/register test/*.test.js","coverage":"NODE_ENV=test nyc --reporter html npm run tape && opener coverage/index.html","build-token":"node build/generate-access-token-script.js","build":"NODE_ENV=production browserify index.js --standalone MapboxDraw > dist/mapbox-gl-draw-unminified.js","build-min":"NODE_ENV=production browserify index.js --standalone MapboxDraw | uglifyjs -c -m > dist/mapbox-gl-draw.js","prepublish":"npm run build && npm run build-min","start":"npm run build-token && node server.js"},"repository":{"type":"git","url":"git://github.com/mapbox/mapbox-gl-draw.git"},"keywords":["webgl","mapbox","draw","drawing"],"bugs":{"url":"https://github.com/mapbox/mapbox-gl-draw/issues"},"nyc":{"sourceMap":false,"instrument":false},"devDependencies":{"@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/register":"^7.0.0","@mapbox/mapbox-gl-draw-static-mode":"^1.0.1","@turf/centroid":"^6.0.0","babel-eslint":"^8.0.3","babel-plugin-istanbul":"^5.1.0","babelify":"^10.0.0","browserify":"^16.1.1","browserify-middleware":"^8.1.0","envify":"^4.0.0","eslint":"^4.2.0","eslint-config-mourner":"^2.0.1","express":"^4.16.4","mapbox-gl":"0.51.0","mapbox-gl-js-mock":"^1.0.2","mock-browser":"^0.92.10","nyc":"^12.0.1","opener":"^1.4.1","sinon":"5.0.0","synthetic-dom-events":"0.3.0","tape":"^4.0.0","uglify-js":"^3.0.22","unassertify":"^2.0.3"},"peerDependencies":{"mapbox-gl":">=0.27.0 <=0.51.0"},"dependencies":{"@mapbox/geojson-area":"^0.2.1","@mapbox/geojson-normalize":"0.0.1","@mapbox/geojsonhint":"^2.0.0","@mapbox/geojson-extent":"^0.3.2","hat":"0.0.3","lodash.isequal":"^4.2.0","@mapbox/point-geometry":"0.1.0","xtend":"^4.0.1"},"gitHead":"24020ac7977e3d5c3e2e09f7329314dc867abc4d","_id":"@doublenot/mapbox-gl-draw@1.1.1","_nodeVersion":"11.6.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-ZjmkDvJ4lMFVmm6ajLWlIbUw2tUX+UnAjdijn8iNQZfM4dX6FUKLN5/MF6BaneQbp/Ow7ICpTx11ZbDKrRiuNw==","shasum":"82d232e76a2554441851c596f9f4d74c7339df68","tarball":"https://registry.npmjs.org/@doublenot/mapbox-gl-draw/-/mapbox-gl-draw-1.1.1.tgz","fileCount":19,"unpackedSize":739410,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcWU3oCRA9TVsSAnZWagAAPEwP/2YpWMMq53ibZU5HeOy3\nPA+xIolk363X4VGSzQY4SfS9bT6hWgviYN5sY4GSn54e7VCjW7ERDK5/G9EI\ncxIOdAXqN38xV7qqgL/B2qPpX2Gd03gH6KWOEismNrIDLwm5DfA3ONnp9Xq5\n7bjra+MiCbinvxwvMuYaLqWDapTYUuK5KrfI8wLidH5qv2c3QUN4bMO8Xj6E\nUD4eDbre5aDDE81JiBee3M/SgFNDVkLnYFhwNNP6yM+zzuTNvYCAbv0R/vVR\neQyBFCg7Bc8ySiRmna0HTdfv+mNOjxhj9LGc4cz9r9LcxED+gypmCtdj+k/K\nsfWg4VIx7sMjS1r6B6Sqr5IdJiyOXCQA2qvlBL6LSzttu1+ZEFeNHWAFbxg9\nulvUy6ZtCrjUsCC7OkJsBQhjCUwFeOMmq8ra2Fk7OgXGX9NZ+QAfmEgsgPeq\ni8yL1lblxclgo6/VHuYkOd/VmuAJiLHS/UhQ0UkaBf95SGXzjRw7cUw8u1C5\nTqr17oR6H2AW9/ekDL0fcqa3iB78OvnBtS3M+DfdF2tpMRO5B2BqtSMgPKvH\nflhPrLFFL8nlOou7f6oRwYTkF1iNpAB2aB64864VVB7Lhg3/ICS2kUSClsgR\npvdJ+/sEDqj3c6iAkDsF6PBMWqwTfZm6LXgJzX+RWf9msBNGoo/Rw8GAZ9Bq\nB7s/\r\n=fQNS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBbkjkuTuHTb+EwbOEBUutu9cI1XVlTXDogoENi0CclkAiEAxJtq6/MgZPp8TG9QA3M4x5fGkVqg9JJQYrq+tN0XEzE="}]},"maintainers":[{"name":"doublenot2e","email":"ilya@doublenot.co"}],"_npmUser":{"name":"doublenot2e","email":"ilya@doublenot.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mapbox-gl-draw_1.1.1_1549356519926_0.26610070826634447"},"_hasShrinkwrap":false},"1.1.11":{"name":"@doublenot/mapbox-gl-draw","version":"1.1.11","description":"A drawing component for Mapbox GL JS","homepage":"https://github.com/mapbox/mapbox-gl-draw","author":{"name":"mapbox"},"license":"ISC","main":"index.js","style":"dist/mapbox-gl-draw.css","browserify":{"transform":["envify","babelify"]},"scripts":{"docs":"npm run docs-modes-life-cycle && npm run docs-modes-get-and-set","docs-modes-get-and-set":"documentation readme --readme-file ./docs/MODES.md -s \"Setters and Getters\" src/modes/mode_interface_accessors.js --shallow","docs-modes-life-cycle":"documentation readme --readme-file ./docs/MODES.md -s \"Life Cycle Functions\" src/modes/mode_interface.js --shallow","test":"NODE_ENV=test npm run lint && npm run tape","lint":"eslint --no-eslintrc -c .eslintrc index.js src test","tape":"tape -r ./test/mock-browser.js -r @babel/register test/*.test.js","coverage":"NODE_ENV=test nyc --reporter html npm run tape && opener coverage/index.html","build-token":"node build/generate-access-token-script.js","build":"NODE_ENV=production browserify index.js --standalone MapboxDraw > dist/mapbox-gl-draw-unminified.js","build-min":"NODE_ENV=production browserify index.js --standalone MapboxDraw | uglifyjs -c -m > dist/mapbox-gl-draw.js","prepublish":"npm run build && npm run build-min","start":"npm run build-token && node server.js"},"repository":{"type":"git","url":"git://github.com/mapbox/mapbox-gl-draw.git"},"keywords":["webgl","mapbox","draw","drawing"],"bugs":{"url":"https://github.com/mapbox/mapbox-gl-draw/issues"},"nyc":{"sourceMap":false,"instrument":false},"devDependencies":{"@babel/core":"^7.1.2","@babel/preset-env":"^7.1.0","@babel/register":"^7.0.0","@mapbox/mapbox-gl-draw-static-mode":"^1.0.1","@turf/centroid":"^6.0.0","babel-eslint":"^8.0.3","babel-plugin-istanbul":"^5.1.0","babelify":"^10.0.0","browserify":"^16.1.1","browserify-middleware":"^8.1.0","envify":"^4.0.0","eslint":"^4.2.0","eslint-config-mourner":"^2.0.1","express":"^4.16.4","mapbox-gl":"0.51.0","mapbox-gl-js-mock":"^1.0.2","mock-browser":"^0.92.10","nyc":"^12.0.1","opener":"^1.4.1","sinon":"5.0.0","synthetic-dom-events":"0.3.0","tape":"^4.0.0","uglify-js":"^3.0.22","unassertify":"^2.0.3"},"peerDependencies":{"mapbox-gl":">=0.27.0 <=0.51.0"},"dependencies":{"@mapbox/geojson-area":"^0.2.1","@mapbox/geojson-normalize":"0.0.1","@mapbox/geojsonhint":"^2.0.0","@mapbox/geojson-extent":"^0.3.2","hat":"0.0.3","lodash.isequal":"^4.2.0","@mapbox/point-geometry":"0.1.0","xtend":"^4.0.1"},"gitHead":"e5640921c76a9ddb25fcd449fed927b5c31100c3","_id":"@doublenot/mapbox-gl-draw@1.1.11","_nodeVersion":"11.6.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-ei1h251p8/LWq5BudcSjEfGKVz6eqxacOa0/h+5mnaKmt977yjtHgFWDrZh0yHgGTiZ7S5e1jCgDXjprlx13Gg==","shasum":"d7e35b4b246c36a319c823973e43f8ea6f3aff1d","tarball":"https://registry.npmjs.org/@doublenot/mapbox-gl-draw/-/mapbox-gl-draw-1.1.11.tgz","fileCount":19,"unpackedSize":745473,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcX1MCCRA9TVsSAnZWagAAwOgQAJwR1IL15d6eVn9UoIjP\ncYuDRhWbuw9k57CTka1UIQQyYiCOXQng2qQHW+EezuFFQkoMNxpwoe8voE8T\nABYmu1NdeADpBcLFn4UuhXDe6OF8MZWd1HGf0/SEcSR0vNivSn0CB+E90zDP\nDd7nfxCWyJu2DYLIpOpqGUofIytMwfdxkSsniLjgA9HTBWgjICSs+kuRlisi\nh4n+OpI2eGYmjQXIZozJpzNb3swE5IM4b55YwaEsww5gXLrHmGfz+a6DQA78\neVh/9/3rzH+3WzXLvgxWjZZIkhAxQCBpGJ9rzkD1Z/k2rLSdTOCjSvN0TCV8\nzBJMPChDNuDcYZEO4XwKZllJAVDZY9WOgbbjFiMHwz6Y4XX8qI+fJEeIxVx6\nO8w909XkNq/jcpDBX6aWCxcuBwc0Pai607WWSTCuwQ38YGRqwzdgvI57kJ06\nGZx1y+vyxBJt6eMUSKN0c8iixi9BDnwgnXglqLUF7ZFuZUUYxOguxOURi1UK\nwYn4ddWYNvh+cHlEk8eZWLHRIZialr7cZvaNie4pXGtyWzO5VYh+jwj2mNue\nC39TX937Y0UvRwGEro/pGZg7Q1ia6wWttxZtLBIcp3NG/k8MkWBGXqfDpprO\nK+9sQiX78GaRIb0iS4ItWqOgxyLSSC0293fQ7Eccqothqj6rQChguAyr5cVY\nM30H\r\n=nk1w\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIECmllIcer0pZWsWOJTQzdHwNqe6Ms6ulzJv857/hplcAiEA7s87kymOsWGteI0R6f3Tce3yLQIONgRY86ULApxPQW0="}]},"maintainers":[{"name":"doublenot2e","email":"ilya@doublenot.co"}],"_npmUser":{"name":"doublenot2e","email":"ilya@doublenot.co"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mapbox-gl-draw_1.1.11_1549751041684_0.5364624343274289"},"_hasShrinkwrap":false}},"time":{"created":"2019-02-05T08:48:39.567Z","1.1.1":"2019-02-05T08:48:40.036Z","modified":"2022-04-05T05:30:16.544Z","1.1.11":"2019-02-09T22:24:01.871Z"},"maintainers":[{"name":"doublenot2e","email":"ilya@doublenot.co"}],"description":"A drawing component for Mapbox GL JS","homepage":"https://github.com/mapbox/mapbox-gl-draw","keywords":["webgl","mapbox","draw","drawing"],"repository":{"type":"git","url":"git://github.com/mapbox/mapbox-gl-draw.git"},"author":{"name":"mapbox"},"bugs":{"url":"https://github.com/mapbox/mapbox-gl-draw/issues"},"license":"ISC","readme":"# @mapbox/mapbox-gl-draw\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/mapbox/mapbox-gl-draw.svg)](https://greenkeeper.io/) [![Build Status](https://travis-ci.org/mapbox/mapbox-gl-draw.svg?branch=master)](https://travis-ci.org/mapbox/mapbox-gl-draw)\n\nAdds support for drawing and editing features on [mapbox-gl.js](https://www.mapbox.com/mapbox-gl-js/) maps. [See a live example here](https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/)\n\n**Requires [mapbox-gl-js](https://github.com/mapbox/mapbox-gl-js). Compatible versions are documented in the package.json**\n\n**On NPM this package has recently moved from `mapbox-gl-draw` to `@mapbox/mapbox-gl-draw`**\n\n### Installing\n\n```\nnpm install @mapbox/mapbox-gl-draw\n```\n\nDraw ships with CSS, make sure you include it in your build.  \n**When using modules**\n ```js\nrequire('@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css')\n// or\nimport '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css'\n ```\n\n**When using CDN**\n```html\n<link rel='stylesheet' href='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.0.9/mapbox-gl-draw.css' type='text/css' />\n```\n\n### Usage in your application\n\n**When using modules**\n\n```js\nvar mapboxgl = require('mapbox-gl');\nvar MapboxDraw = require('@mapbox/mapbox-gl-draw');\n```\n\n**When using a CDN**\n\n```html\n<script src='https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-draw/v1.0.9/mapbox-gl-draw.js'></script>\n```\n\n**Example setup**\n\n```js\nmapboxgl.accessToken = 'YOUR_ACCESS_TOKEN';\n\nvar map = new mapboxgl.Map({\n  container: 'map',\n  style: 'mapbox://styles/mapbox/streets-v8',\n  center: [40, -74.50],\n  zoom: 9\n});\n\nvar Draw = new MapboxDraw();\n\n// Map#addControl takes an optional second argument to set the position of the control.\n// If no position is specified the control defaults to `top-right`. See the docs \n// for more details: https://www.mapbox.com/mapbox-gl-js/api/map#addcontrol\n\nmap.addControl(Draw, 'top-left');\n\nmap.on('load', function() {\n  // ALL YOUR APPLICATION CODE\n});\n```\n\nhttps://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/\n\n### See [API.md](https://github.com/mapbox/mapbox-gl-draw/blob/master/docs/API.md) for complete reference.\n\n### Enhancements and New Interactions\n\nFor additional functionality [check out our list of custom modes](https://github.com/mapbox/mapbox-gl-draw/blob/master/docs/MODES.md#available-custom-modes).\n\nMapbox Draw accepts functionality changes after the functionality has been proven out via a [custom mode](https://github.com/mapbox/mapbox-gl-draw/blob/master/docs/MODES.md#creating-modes-for-mapbox-draw). This lets users experiment and validate their mode before entering a review process, hopefully promoting innovation. When you write a custom mode, please open a PR adding it to our [list of custom modes](https://github.com/mapbox/mapbox-gl-draw/blob/master/docs/MODES.md#available-custom-modes).\n\n### Developing and testing\n\nInstall dependencies, build the source files and crank up a server via:\n\n```\ngit clone git@github.com:mapbox/mapbox-gl-draw.git\nyarn install\nyarn start & open \"http://localhost:9967/debug/?access_token=<token>\"\n```\n\n### Testing\n\n```\nnpm run test\n```\n\n### Publishing\n\nTo github and npm\n\n```\nnpm version (major|minor|patch)\ngit push --tags\ngit push\nnpm publish\n```\n\nUpdate the version number in [the GL JS example](https://github.com/mapbox/mapbox-gl-js/blob/mb-pages/docs/pages/example/mapbox-gl-draw.html).\n\n### Naming actions\n\nWe're trying to follow standards when naming things. Here is a collection of links where we look for inspiration.\n\n- http://turfjs.org\n- https://shapely.readthedocs.io/en/latest/manual.html\n","readmeFilename":"README.md"}