Comparing version 1.7.0 to 1.13.0
@@ -64,11 +64,11 @@ import _pt from "prop-types"; | ||
var currProjection = maybeCustomProjection(); | ||
if (clipAngle) currProjection.clipAngle(clipAngle); | ||
if (clipExtent) currProjection.clipExtent(clipExtent); | ||
if (scale) currProjection.scale(scale); | ||
if (translate) currProjection.translate(translate); | ||
if (center) currProjection.center(center); | ||
if (rotate) currProjection.rotate(rotate); | ||
if (precision) currProjection.precision(precision); | ||
if (fitExtent) currProjection.fitExtent.apply(currProjection, fitExtent); | ||
if (fitSize) currProjection.fitSize.apply(currProjection, fitSize); | ||
if (clipAngle && currProjection.clipAngle) currProjection.clipAngle(clipAngle); | ||
if (clipExtent && currProjection.clipExtent) currProjection.clipExtent(clipExtent); | ||
if (scale && currProjection.scale) currProjection.scale(scale); | ||
if (translate && currProjection.translate) currProjection.translate(translate); | ||
if (center && currProjection.center) currProjection.center(center); | ||
if (rotate && currProjection.rotate) currProjection.rotate(rotate); | ||
if (precision && currProjection.precision) currProjection.precision(precision); | ||
if (fitExtent && currProjection.fitExtent) currProjection.fitExtent.apply(currProjection, fitExtent); | ||
if (fitSize && currProjection.fitSize) currProjection.fitSize.apply(currProjection, fitSize); | ||
var path = geoPath().projection(currProjection); | ||
@@ -88,3 +88,4 @@ if (pointRadius) path.pointRadius(pointRadius); | ||
path: path, | ||
features: features | ||
features: features, | ||
projection: currProjection | ||
})); | ||
@@ -91,0 +92,0 @@ return /*#__PURE__*/React.createElement(Group, { |
@@ -49,6 +49,7 @@ import React from 'react'; | ||
className?: string; | ||
/** Override render function which is passed the */ | ||
/** Override render function which is passed path data and a copy of the constructed projection. */ | ||
children?: (args: { | ||
path: GeoPath<any, GeoPermissibleObjects>; | ||
features: ParsedFeature<Datum>[]; | ||
projection: GeoProjection; | ||
}) => React.ReactNode; | ||
@@ -55,0 +56,0 @@ /** Function invoked for each feature which returns a React.Ref to the projection path element for that feature. */ |
@@ -74,11 +74,11 @@ "use strict"; | ||
var currProjection = maybeCustomProjection(); | ||
if (clipAngle) currProjection.clipAngle(clipAngle); | ||
if (clipExtent) currProjection.clipExtent(clipExtent); | ||
if (scale) currProjection.scale(scale); | ||
if (translate) currProjection.translate(translate); | ||
if (center) currProjection.center(center); | ||
if (rotate) currProjection.rotate(rotate); | ||
if (precision) currProjection.precision(precision); | ||
if (fitExtent) currProjection.fitExtent.apply(currProjection, fitExtent); | ||
if (fitSize) currProjection.fitSize.apply(currProjection, fitSize); | ||
if (clipAngle && currProjection.clipAngle) currProjection.clipAngle(clipAngle); | ||
if (clipExtent && currProjection.clipExtent) currProjection.clipExtent(clipExtent); | ||
if (scale && currProjection.scale) currProjection.scale(scale); | ||
if (translate && currProjection.translate) currProjection.translate(translate); | ||
if (center && currProjection.center) currProjection.center(center); | ||
if (rotate && currProjection.rotate) currProjection.rotate(rotate); | ||
if (precision && currProjection.precision) currProjection.precision(precision); | ||
if (fitExtent && currProjection.fitExtent) currProjection.fitExtent.apply(currProjection, fitExtent); | ||
if (fitSize && currProjection.fitSize) currProjection.fitSize.apply(currProjection, fitSize); | ||
var path = (0, _d3Geo.geoPath)().projection(currProjection); | ||
@@ -98,3 +98,4 @@ if (pointRadius) path.pointRadius(pointRadius); | ||
path: path, | ||
features: features | ||
features: features, | ||
projection: currProjection | ||
})); | ||
@@ -101,0 +102,0 @@ return /*#__PURE__*/_react.default.createElement(_group.Group, { |
{ | ||
"name": "@visx/geo", | ||
"version": "1.7.0", | ||
"version": "1.13.0", | ||
"description": "visx geo", | ||
@@ -51,3 +51,3 @@ "sideEffects": false, | ||
}, | ||
"gitHead": "47af75f7de434dcf4d7dc44b1c6677900422ab02" | ||
"gitHead": "5703bc21f7ac5e01c8e2105a87f6c1094b973fd7" | ||
} |
Sorry, the diff of this file is not supported yet
51169
773