react-svg-worldmap
Advanced tools
Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const React = __importStar(require("react")); | ||
const tslib_1 = require("tslib"); | ||
const React = tslib_1.__importStar(require("react")); | ||
function Frame({ color }) { | ||
@@ -5,0 +6,0 @@ return (React.createElement("rect", { x: 0, y: 0, width: "100%", height: "100%", stroke: color, fill: "none" })); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const React = __importStar(require("react")); | ||
const tslib_1 = require("tslib"); | ||
const React = tslib_1.__importStar(require("react")); | ||
function onMouseOver(strokeOpacity) { | ||
@@ -5,0 +6,0 @@ return (event) => { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const React = __importStar(require("react")); | ||
const tslib_1 = require("tslib"); | ||
const React = tslib_1.__importStar(require("react")); | ||
function TextLabel({ label, ...props }) { | ||
@@ -5,0 +6,0 @@ return React.createElement("text", { ...props }, label); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Tooltip = void 0; | ||
const React = __importStar(require("react")); | ||
const tslib_1 = require("tslib"); | ||
const React = tslib_1.__importStar(require("react")); | ||
const react_path_tooltip_1 = require("react-path-tooltip"); | ||
@@ -6,0 +7,0 @@ // TODO: need React.forwardRef to handle this |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.drawTooltip = void 0; | ||
const React = __importStar(require("react")); | ||
const tslib_1 = require("tslib"); | ||
const React = tslib_1.__importStar(require("react")); | ||
const react_path_tooltip_1 = require("react-path-tooltip"); | ||
@@ -6,0 +7,0 @@ function drawTooltip(tip, tooltipBgColor, tooltipTextColor, triggerRef, containerRef) { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.regions = exports.WorldMap = void 0; | ||
const React = __importStar(require("react")); | ||
const tslib_1 = require("tslib"); | ||
const React = tslib_1.__importStar(require("react")); | ||
const react_1 = require("react"); | ||
const d3_geo_1 = require("d3-geo"); | ||
const countries_geo_js_1 = __importDefault(require("./countries.geo.js")); | ||
const countries_geo_js_1 = tslib_1.__importDefault(require("./countries.geo.js")); | ||
const constants_js_1 = require("./constants.js"); | ||
const utils_js_1 = require("./utils.js"); | ||
const draw_js_1 = require("./draw.js"); | ||
const Frame_js_1 = __importDefault(require("./components/Frame.js")); | ||
const Region_js_1 = __importDefault(require("./components/Region.js")); | ||
const TextLabel_js_1 = __importDefault(require("./components/TextLabel.js")); | ||
const Frame_js_1 = tslib_1.__importDefault(require("./components/Frame.js")); | ||
const Region_js_1 = tslib_1.__importDefault(require("./components/Region.js")); | ||
const TextLabel_js_1 = tslib_1.__importDefault(require("./components/TextLabel.js")); | ||
function toValue({ value }) { | ||
@@ -15,0 +16,0 @@ return typeof value === "string" ? 0 : value; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const countries_geo_js_1 = __importDefault(require("./countries.geo.js")); | ||
const tslib_1 = require("tslib"); | ||
const countries_geo_js_1 = tslib_1.__importDefault(require("./countries.geo.js")); | ||
const isoCodes = countries_geo_js_1.default.features.map(({ I }) => I); | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "react-svg-worldmap", | ||
"version": "2.0.0-alpha.10", | ||
"version": "2.0.0-alpha.11", | ||
"license": "MIT", | ||
@@ -20,3 +20,3 @@ "displayName": "React Worldmap", | ||
"dependencies": { | ||
"d3-geo": "^3.0.1", | ||
"d3-geo": "^2.0.2", | ||
"react-path-tooltip": "^1.0.17", | ||
@@ -26,3 +26,3 @@ "tslib": "^2.4.0" | ||
"devDependencies": { | ||
"@types/d3-geo": "^3.0.2", | ||
"@types/d3-geo": "^2.0.2", | ||
"@types/geojson": "^7946.0.10" | ||
@@ -29,0 +29,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
580595
1798
+ Addedd3-array@2.12.1(transitive)
+ Addedd3-geo@2.0.2(transitive)
+ Addedinternmap@1.0.1(transitive)
- Removedd3-array@3.2.4(transitive)
- Removedd3-geo@3.1.1(transitive)
- Removedinternmap@2.0.3(transitive)
Updatedd3-geo@^2.0.2