Comparing version 2.10.0 to 2.17.0-alpha.0
import _pt from "prop-types"; | ||
var _excluded = ["graticule", "lines", "outline", "extent", "extentMajor", "extentMinor", "step", "stepMajor", "stepMinor", "precision", "children"]; | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
import React from 'react'; | ||
import { Group } from '@visx/group'; | ||
import { geoGraticule } from 'd3-geo'; // eslint-disable-next-line import/no-unresolved | ||
import { geoGraticule } from 'd3-geo'; | ||
// eslint-disable-next-line import/no-unresolved | ||
export default function Graticule(_ref) { | ||
var graticule = _ref.graticule, | ||
lines = _ref.lines, | ||
outline = _ref.outline, | ||
extent = _ref.extent, | ||
extentMajor = _ref.extentMajor, | ||
extentMinor = _ref.extentMinor, | ||
step = _ref.step, | ||
stepMajor = _ref.stepMajor, | ||
stepMinor = _ref.stepMinor, | ||
precision = _ref.precision, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
lines = _ref.lines, | ||
outline = _ref.outline, | ||
extent = _ref.extent, | ||
extentMajor = _ref.extentMajor, | ||
extentMinor = _ref.extentMinor, | ||
step = _ref.step, | ||
stepMajor = _ref.stepMajor, | ||
stepMinor = _ref.stepMinor, | ||
precision = _ref.precision, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
var currGraticule = geoGraticule(); | ||
@@ -27,0 +24,0 @@ if (extent) currGraticule.extent(extent); |
@@ -1,6 +0,4 @@ | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import React from 'react'; | ||
import Projection from './Projection'; | ||
/** | ||
@@ -7,0 +5,0 @@ * All props pass through to `<Projection projection="albers" {...props} />` |
@@ -1,6 +0,4 @@ | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import React from 'react'; | ||
import Projection from './Projection'; | ||
/** | ||
@@ -7,0 +5,0 @@ * All props pass through to `<Projection projection="albersUsa" {...props} />` |
import React from 'react'; | ||
import Projection from './Projection'; | ||
/** | ||
@@ -5,0 +4,0 @@ * All props pass through to `<Projection projection={customProjection} {...props} />` |
@@ -1,6 +0,4 @@ | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import React from 'react'; | ||
import Projection from './Projection'; | ||
/** | ||
@@ -7,0 +5,0 @@ * All props pass through to `<Projection projection="equalEarth" {...props} />` |
@@ -1,6 +0,4 @@ | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import React from 'react'; | ||
import Projection from './Projection'; | ||
/** | ||
@@ -7,0 +5,0 @@ * All props pass through to `<Projection projection="mercator" {...props} />` |
@@ -1,6 +0,4 @@ | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import React from 'react'; | ||
import Projection from './Projection'; | ||
/** | ||
@@ -7,0 +5,0 @@ * All props pass through to `<Projection projection="naturalEarth" {...props} />` |
@@ -1,6 +0,4 @@ | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
import React from 'react'; | ||
import Projection from './Projection'; | ||
/** | ||
@@ -7,0 +5,0 @@ * All props pass through to `<Projection projection="orthographic" {...props} />` |
import _pt from "prop-types"; | ||
var _excluded = ["data", "projection", "projectionFunc", "clipAngle", "clipExtent", "scale", "translate", "center", "rotate", "precision", "fitExtent", "fitSize", "centroid", "graticule", "graticuleLines", "graticuleOutline", "className", "innerRef", "pointRadius", "children"]; | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
import React from 'react'; | ||
import cx from 'classnames'; | ||
import { Group } from '@visx/group'; | ||
import { geoOrthographic, geoAlbers, geoAlbersUsa, geoMercator, geoNaturalEarth1, geoEqualEarth, geoPath } from 'd3-geo'; // this is just for types | ||
import { geoOrthographic, geoAlbers, geoAlbersUsa, geoMercator, geoNaturalEarth1, geoEqualEarth, geoPath } from 'd3-geo'; | ||
// this is just for types | ||
// eslint-disable-next-line import/no-unresolved | ||
@@ -35,3 +33,2 @@ | ||
}; | ||
/** | ||
@@ -42,24 +39,23 @@ * Component for all projections. | ||
var data = _ref.data, | ||
_ref$projection = _ref.projection, | ||
projection = _ref$projection === void 0 ? 'mercator' : _ref$projection, | ||
projectionFunc = _ref.projectionFunc, | ||
clipAngle = _ref.clipAngle, | ||
clipExtent = _ref.clipExtent, | ||
scale = _ref.scale, | ||
translate = _ref.translate, | ||
center = _ref.center, | ||
rotate = _ref.rotate, | ||
precision = _ref.precision, | ||
fitExtent = _ref.fitExtent, | ||
fitSize = _ref.fitSize, | ||
centroid = _ref.centroid, | ||
graticule = _ref.graticule, | ||
graticuleLines = _ref.graticuleLines, | ||
graticuleOutline = _ref.graticuleOutline, | ||
className = _ref.className, | ||
innerRef = _ref.innerRef, | ||
pointRadius = _ref.pointRadius, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
_ref$projection = _ref.projection, | ||
projection = _ref$projection === void 0 ? 'mercator' : _ref$projection, | ||
projectionFunc = _ref.projectionFunc, | ||
clipAngle = _ref.clipAngle, | ||
clipExtent = _ref.clipExtent, | ||
scale = _ref.scale, | ||
translate = _ref.translate, | ||
center = _ref.center, | ||
rotate = _ref.rotate, | ||
precision = _ref.precision, | ||
fitExtent = _ref.fitExtent, | ||
fitSize = _ref.fitSize, | ||
centroid = _ref.centroid, | ||
graticule = _ref.graticule, | ||
graticuleLines = _ref.graticuleLines, | ||
graticuleOutline = _ref.graticuleOutline, | ||
className = _ref.className, | ||
innerRef = _ref.innerRef, | ||
pointRadius = _ref.pointRadius, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
var maybeCustomProjection = typeof projection === 'string' ? projectionMapping[projection] : projection; | ||
@@ -66,0 +62,0 @@ var currProjection = maybeCustomProjection(); |
@@ -5,33 +5,23 @@ "use strict"; | ||
exports.default = Graticule; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _group = require("@visx/group"); | ||
var _d3Geo = require("d3-geo"); | ||
var _excluded = ["graticule", "lines", "outline", "extent", "extentMajor", "extentMinor", "step", "stepMajor", "stepMinor", "precision", "children"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
function Graticule(_ref) { | ||
var graticule = _ref.graticule, | ||
lines = _ref.lines, | ||
outline = _ref.outline, | ||
extent = _ref.extent, | ||
extentMajor = _ref.extentMajor, | ||
extentMinor = _ref.extentMinor, | ||
step = _ref.step, | ||
stepMajor = _ref.stepMajor, | ||
stepMinor = _ref.stepMinor, | ||
precision = _ref.precision, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
lines = _ref.lines, | ||
outline = _ref.outline, | ||
extent = _ref.extent, | ||
extentMajor = _ref.extentMajor, | ||
extentMinor = _ref.extentMinor, | ||
step = _ref.step, | ||
stepMajor = _ref.stepMajor, | ||
stepMinor = _ref.stepMinor, | ||
precision = _ref.precision, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
var currGraticule = (0, _d3Geo.geoGraticule)(); | ||
@@ -68,3 +58,2 @@ if (extent) currGraticule.extent(extent); | ||
} | ||
Graticule.propTypes = { | ||
@@ -71,0 +60,0 @@ graticule: _propTypes.default.func, |
"use strict"; | ||
exports.__esModule = true; | ||
exports.Graticule = exports.CustomProjection = exports.EqualEarth = exports.NaturalEarth = exports.Orthographic = exports.Mercator = exports.AlbersUsa = exports.Albers = void 0; | ||
exports.Orthographic = exports.NaturalEarth = exports.Mercator = exports.Graticule = exports.EqualEarth = exports.CustomProjection = exports.AlbersUsa = exports.Albers = void 0; | ||
var _Albers = _interopRequireDefault(require("./projections/Albers")); | ||
exports.Albers = _Albers.default; | ||
var _AlbersUsa = _interopRequireDefault(require("./projections/AlbersUsa")); | ||
exports.AlbersUsa = _AlbersUsa.default; | ||
var _Mercator = _interopRequireDefault(require("./projections/Mercator")); | ||
exports.Mercator = _Mercator.default; | ||
var _Orthographic = _interopRequireDefault(require("./projections/Orthographic")); | ||
exports.Orthographic = _Orthographic.default; | ||
var _NaturalEarth = _interopRequireDefault(require("./projections/NaturalEarth")); | ||
exports.NaturalEarth = _NaturalEarth.default; | ||
var _EqualEarth = _interopRequireDefault(require("./projections/EqualEarth")); | ||
exports.EqualEarth = _EqualEarth.default; | ||
var _CustomProjection = _interopRequireDefault(require("./projections/CustomProjection")); | ||
exports.CustomProjection = _CustomProjection.default; | ||
var _Graticule = _interopRequireDefault(require("./graticule/Graticule")); | ||
exports.Graticule = _Graticule.default; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
@@ -5,11 +5,6 @@ "use strict"; | ||
exports.default = Albers; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _Projection = _interopRequireDefault(require("./Projection")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
/** | ||
@@ -16,0 +11,0 @@ * All props pass through to `<Projection projection="albers" {...props} />` |
@@ -5,11 +5,6 @@ "use strict"; | ||
exports.default = AlbersUsa; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _Projection = _interopRequireDefault(require("./Projection")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
/** | ||
@@ -16,0 +11,0 @@ * All props pass through to `<Projection projection="albersUsa" {...props} />` |
@@ -5,9 +5,5 @@ "use strict"; | ||
exports.default = CustomProjection; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _Projection = _interopRequireDefault(require("./Projection")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
/** | ||
@@ -14,0 +10,0 @@ * All props pass through to `<Projection projection={customProjection} {...props} />` |
@@ -5,11 +5,6 @@ "use strict"; | ||
exports.default = EqualEarth; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _Projection = _interopRequireDefault(require("./Projection")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
/** | ||
@@ -16,0 +11,0 @@ * All props pass through to `<Projection projection="equalEarth" {...props} />` |
@@ -5,11 +5,6 @@ "use strict"; | ||
exports.default = Mercator; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _Projection = _interopRequireDefault(require("./Projection")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
/** | ||
@@ -16,0 +11,0 @@ * All props pass through to `<Projection projection="mercator" {...props} />` |
@@ -5,11 +5,6 @@ "use strict"; | ||
exports.default = NaturalEarth; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _Projection = _interopRequireDefault(require("./Projection")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
/** | ||
@@ -16,0 +11,0 @@ * All props pass through to `<Projection projection="naturalEarth" {...props} />` |
@@ -5,11 +5,6 @@ "use strict"; | ||
exports.default = Orthographic; | ||
var _react = _interopRequireDefault(require("react")); | ||
var _Projection = _interopRequireDefault(require("./Projection")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
/** | ||
@@ -16,0 +11,0 @@ * All props pass through to `<Projection projection="orthographic" {...props} />` |
@@ -5,23 +5,12 @@ "use strict"; | ||
exports.default = Projection; | ||
var _propTypes = _interopRequireDefault(require("prop-types")); | ||
var _react = _interopRequireDefault(require("react")); | ||
var _classnames = _interopRequireDefault(require("classnames")); | ||
var _group = require("@visx/group"); | ||
var _d3Geo = require("d3-geo"); | ||
var _Graticule = _interopRequireDefault(require("../graticule/Graticule")); | ||
var _excluded = ["data", "projection", "projectionFunc", "clipAngle", "clipExtent", "scale", "translate", "center", "rotate", "precision", "fitExtent", "fitSize", "centroid", "graticule", "graticuleLines", "graticuleOutline", "className", "innerRef", "pointRadius", "children"]; | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } | ||
var projectionMapping = { | ||
@@ -47,3 +36,2 @@ orthographic: function orthographic() { | ||
}; | ||
/** | ||
@@ -54,24 +42,23 @@ * Component for all projections. | ||
var data = _ref.data, | ||
_ref$projection = _ref.projection, | ||
projection = _ref$projection === void 0 ? 'mercator' : _ref$projection, | ||
projectionFunc = _ref.projectionFunc, | ||
clipAngle = _ref.clipAngle, | ||
clipExtent = _ref.clipExtent, | ||
scale = _ref.scale, | ||
translate = _ref.translate, | ||
center = _ref.center, | ||
rotate = _ref.rotate, | ||
precision = _ref.precision, | ||
fitExtent = _ref.fitExtent, | ||
fitSize = _ref.fitSize, | ||
centroid = _ref.centroid, | ||
graticule = _ref.graticule, | ||
graticuleLines = _ref.graticuleLines, | ||
graticuleOutline = _ref.graticuleOutline, | ||
className = _ref.className, | ||
innerRef = _ref.innerRef, | ||
pointRadius = _ref.pointRadius, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
_ref$projection = _ref.projection, | ||
projection = _ref$projection === void 0 ? 'mercator' : _ref$projection, | ||
projectionFunc = _ref.projectionFunc, | ||
clipAngle = _ref.clipAngle, | ||
clipExtent = _ref.clipExtent, | ||
scale = _ref.scale, | ||
translate = _ref.translate, | ||
center = _ref.center, | ||
rotate = _ref.rotate, | ||
precision = _ref.precision, | ||
fitExtent = _ref.fitExtent, | ||
fitSize = _ref.fitSize, | ||
centroid = _ref.centroid, | ||
graticule = _ref.graticule, | ||
graticuleLines = _ref.graticuleLines, | ||
graticuleOutline = _ref.graticuleOutline, | ||
className = _ref.className, | ||
innerRef = _ref.innerRef, | ||
pointRadius = _ref.pointRadius, | ||
children = _ref.children, | ||
restProps = _objectWithoutPropertiesLoose(_ref, _excluded); | ||
var maybeCustomProjection = typeof projection === 'string' ? projectionMapping[projection] : projection; | ||
@@ -141,3 +128,2 @@ var currProjection = maybeCustomProjection(); | ||
} | ||
Projection.propTypes = { | ||
@@ -144,0 +130,0 @@ data: _propTypes.default.array.isRequired, |
{ | ||
"name": "@visx/geo", | ||
"version": "2.10.0", | ||
"version": "2.17.0-alpha.0", | ||
"description": "visx geo", | ||
@@ -35,3 +35,3 @@ "sideEffects": false, | ||
"@types/react": "*", | ||
"@visx/group": "2.10.0", | ||
"@visx/group": "2.17.0-alpha.0", | ||
"classnames": "^2.3.1", | ||
@@ -51,3 +51,3 @@ "d3-geo": "^1.11.3", | ||
}, | ||
"gitHead": "3d655a8b100d862c91d4b5655e221259357a094d" | ||
"gitHead": "77292e262dfe082b554b64839eb3ee141439a95f" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
51713
778
1
+ Added@visx/group@2.17.0-alpha.0(transitive)
- Removed@visx/group@2.10.0(transitive)
Updated@visx/group@2.17.0-alpha.0