Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-svg-worldmap

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-svg-worldmap - npm Package Compare versions

Comparing version 2.0.0-alpha.10 to 2.0.0-alpha.11

3

dist/components/Frame.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc