Files
wakapi-readme-stats/node_modules/vega-projection/build/vega-projection.min.js
2020-07-28 00:48:25 +05:30

1 line
1.6 KiB
JavaScript

!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("d3-geo"),require("d3-geo-projection")):"function"==typeof define&&define.amd?define(["exports","d3-geo","d3-geo-projection"],t):t((e=e||self).vega={},e.d3,e.d3)}(this,(function(e,t,o){"use strict";var r=t.geoPath(),a=["clipAngle","clipExtent","scale","translate","center","rotate","parallels","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function i(e,o){return function r(){var i=o();return i.type=e,i.path=t.geoPath().projection(i),i.copy=i.copy||function(){var e=r();return a.forEach((function(t){i[t]&&e[t](i[t]())})),e.path.pointRadius(i.path.pointRadius()),e},i}}function n(e,t){if(!e||"string"!=typeof e)throw new Error("Projection type must be a name string.");return e=e.toLowerCase(),arguments.length>1?(c[e]=i(e,t),this):c[e]||null}var c={albers:t.geoAlbers,albersusa:t.geoAlbersUsa,azimuthalequalarea:t.geoAzimuthalEqualArea,azimuthalequidistant:t.geoAzimuthalEquidistant,conicconformal:t.geoConicConformal,conicequalarea:t.geoConicEqualArea,conicequidistant:t.geoConicEquidistant,equalEarth:t.geoEqualEarth,equirectangular:t.geoEquirectangular,gnomonic:t.geoGnomonic,identity:t.geoIdentity,mercator:t.geoMercator,mollweide:o.geoMollweide,naturalEarth1:t.geoNaturalEarth1,orthographic:t.geoOrthographic,stereographic:t.geoStereographic,transversemercator:t.geoTransverseMercator};for(var u in c)n(u,c[u]);e.getProjectionPath=function(e){return e&&e.path||r},e.projection=n,e.projectionProperties=a,Object.defineProperty(e,"__esModule",{value:!0})}));