{"_id":"@abcnews/react-australia-map","_rev":"9-81a809a5ad43c8fbc1f4603c4503b8a4","name":"@abcnews/react-australia-map","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abcnews/react-australia-map","version":"1.0.0","description":"An interactive map for use within an @abcnews/scrollyteller","main":"lib/index.js","dependencies":{},"devDependencies":{"@babel/core":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/preset-react":"^7.0.0","babel-loader":"^8.0.6","core-js":"^3.1.1","css-loader":"^2.1.1","d3-geo":"^1.11.3","d3-selection":"^1.4.0","d3-transition":"^1.2.0","node-sass":"^4.12.0","react":"^16.8.6","react-dom":"^16.8.6","sass-loader":"^7.1.0","style-loader":"^0.23.1","topojson":"^3.0.2","uglifyjs-webpack-plugin":"^2.1.3","webpack":"^4.32.0","webpack-cli":"^3.3.2"},"peerDependencies":{"react":"^16.8.6"},"repository":{"type":"git","url":"git+https://github.com/abcnews/react-australia-map.git"},"bugs":{"url":"https://github.com/abcnews/react-australia-map/issues"},"homepage":"https://github.com/abcnews/react-australia-map#readme","scripts":{"build":"webpack","prepublishOnly":"npm run build"},"keywords":["react","australia","map"],"author":{"name":"Nathan Hoad","email":"nathan@nathanhoad.net"},"license":"ISC","gitHead":"bd238a6587377c38783ac003e16d98c37d6a3a9a","_id":"@abcnews/react-australia-map@1.0.0","_nodeVersion":"10.9.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-jl2rnrbb9f/eNueXLkT3xBEwOzNCWBe6rgerN04TFm2d8mijs6yB/u8WtE1N10T/Ys0tW7lDF7vZUIUvdA+Ohg==","shasum":"2a35f368479654e198649bf6376e62bdad9a0fa5","tarball":"https://registry.npmjs.org/@abcnews/react-australia-map/-/react-australia-map-1.0.0.tgz","fileCount":8,"unpackedSize":577813,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc5Kv5CRA9TVsSAnZWagAASMEP/AnfNCnpY1gHl3v791in\nKU2w4y/9x2+KgnqYR44+3tTMpcYOZe90AE8SLZqC4CJIHcsxmTUQKv3RxO7M\n5REFx0z2wW0CUuHEo61QGBEnMj21rGLTFkpbK5b1xddzipYJcCCavN4HkMPi\nmuiCV8Lr5L+nMioPaLcag4rS0NTsKfdlhpEFYnpaGDwdsDpSogD6pNUOOhWF\n6bWtmohl4C2j4l365pRftGo1Nf6gIoQqhveNzRz0EzuTZQSr1kfUatVsMfJT\nuo8r4+fMbrzWKel9CYJckk/8sl+zcRGPhvgSFTP5xOLyXvQz43Ou6ZgB+cjx\n7SlJw9awXb81DKDO9t794XR1Du1gbaxeMU4G0FOAeThI0s6tRLG0ydx6cKRw\nMLsOR7W37tyb1zfTN6pydD5XjEvpY77l/daVijjLsqW7g29fUnmjl5hkUjXV\ngfPGABtHQkxVMkdqSdX4zrsv36vJrqmJ+l6jGfYQdRO30LrC1nFCz4D62MTZ\n1RTGhUPrU6HTW4bd3tyWnVVgTDe2D/jjCGCYvwnYNWqr9eEAlvJnUK43IdmR\nytuFZWqJ7LIY7Yqioy7YnVKyTt15gPou+FPlqIJKL6NHbyiHTeQYmKlEp9dB\nZIPEqekrrjMEZHYQvXUXQkXUgBOuGoR55tb9DWJxOJZGvyWailXCHlE3wAtL\nPwg/\r\n=vI5l\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDikTA7+LDpBYg4g9iOOJTewzJRzEIcKniqWlaqtkeMkwIgA6i3Iz2InofcmFHJBrPNouLEWwAEkjzN/m9reIk4/qY="}]},"maintainers":[{"name":"phocks","email":"phocks@gmail.com"},{"name":"drzax","email":"simon@elvery.net"},{"name":"colingourlay","email":"colin@colin-gourlay.com"},{"name":"joshduck","email":"npm@joshduck.com"},{"name":"blakebutcher","email":"blake.butcher@abc.net.au"},{"name":"louisstow","email":"louisstow@gmail.com"},{"name":"nathanhoad","email":"nathan@nathanhoad.net"}],"_npmUser":{"name":"nathanhoad","email":"nathan@nathanhoad.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/react-australia-map_1.0.0_1558490105119_0.5483293971406302"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-22T01:55:04.960Z","1.0.0":"2019-05-22T01:55:05.309Z","modified":"2023-08-10T04:59:47.127Z"},"maintainers":[{"email":"ash@kyd.com.au","name":"ashkyd"},{"email":"hi@jtfell.com","name":"jtfell"},{"email":"phocks@gmail.com","name":"phocks"},{"email":"andy@andrewkesper.com","name":"andrewkesper"},{"email":"simon@elvery.net","name":"drzax"}],"description":"An interactive map for use within an @abcnews/scrollyteller","homepage":"https://github.com/abcnews/react-australia-map#readme","keywords":["react","australia","map"],"repository":{"type":"git","url":"git+https://github.com/abcnews/react-australia-map.git"},"author":{"name":"Nathan Hoad","email":"nathan@nathanhoad.net"},"bugs":{"url":"https://github.com/abcnews/react-australia-map/issues"},"license":"ISC","readme":"# Electorate Map\n\nA map of Australian electorates to use in conjunction with [@abcnews/scrollyteller](https://github.com/abcnews/scrollyteller).\n\n## Usage\n\n`@abcnews/react-australia-map` is meant to be used within an `@abcnews/scrollyteller`.\n\n```js\n<Scrollyteller {...}>\n  <Map\n    data={data}\n    processData={processData}\n    setupLegend={setupLegend}\n    marker={marker}\n    onZoom={onZoom}\n    fill={fill}\n    labelText={labelText}\n  />\n</Scrollyteller>\n```\n\n**`processData(d)`** - For each data point, attach any extra information needed to helper render.\n\n**`setupLegend(svg, legend)`** - Called after the main map is added to the svg. `legend` is a reference to an svg group that can also be referred to during `onZoom`.\n\n**`marker`** - The current scrollyteller marker.\n\n**`onZoom(zoomFactor, svg, legend)`** - Called after the main map has been located/zoomed. `zoomFactor` is inverse of the zoom level itself so that you can use it to scale things inversely to the map's zoom.\n\n**`fill(d)`** - Given a data point, returns a colour string to fill that map segment.\n\n**`labelText(d)`** - Given a data point, returns the string used to label that map segment.\n\n## Authors\n\n- Nathan Hoad - [hoad.nathan@abc.net.au](mailto:hoad.nathan@abc.net.au)\n","readmeFilename":"README.md"}