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

victory-voronoi-container

Package Overview
Dependencies
Maintainers
26
Versions
152
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

victory-voronoi-container - npm Package Compare versions

Comparing version 36.5.0 to 36.5.1

3

es/index.js
export { voronoiContainerMixin, default as VictoryVoronoiContainer } from "./victory-voronoi-container";
export { default as VoronoiHelpers } from "./voronoi-helpers";
export { default as VoronoiHelpers } from "./voronoi-helpers";
//# sourceMappingURL=index.js.map

@@ -301,2 +301,3 @@ import _pick from "lodash/pick";

};
export default voronoiContainerMixin(VictoryContainer);
export default voronoiContainerMixin(VictoryContainer);
//# sourceMappingURL=victory-voronoi-container.js.map

@@ -288,2 +288,3 @@ import _isRegExp from "lodash/isRegExp";

})
};
};
//# sourceMappingURL=voronoi-helpers.js.map

@@ -33,2 +33,3 @@ "use strict";

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
//# sourceMappingURL=index.js.map

@@ -322,2 +322,3 @@ "use strict";

exports.default = _default;
exports.default = _default;
//# sourceMappingURL=victory-voronoi-container.js.map

@@ -316,2 +316,3 @@ "use strict";

};
exports.default = _default;
exports.default = _default;
//# sourceMappingURL=voronoi-helpers.js.map
{
"name": "victory-voronoi-container",
"version": "36.5.0",
"version": "36.5.1",
"description": "Interactive Voronoi Mouseover Component for Victory",

@@ -26,4 +26,4 @@ "keywords": [

"react-fast-compare": "^3.2.0",
"victory-core": "^36.5.0",
"victory-tooltip": "^36.5.0"
"victory-core": "^36.5.1",
"victory-tooltip": "^36.5.1"
},

@@ -37,3 +37,3 @@ "peerDependencies": {

"sideEffects": false,
"gitHead": "7cecba921f751c3decc8215f7e866f51d11203c1"
"gitHead": "fbe60407533cd7a6da4f8155d2ef8e189583c5a2"
}
export {
voronoiContainerMixin,
default as VictoryVoronoiContainer
default as VictoryVoronoiContainer,
} from "./victory-voronoi-container";
export { default as VoronoiHelpers } from "./voronoi-helpers";

@@ -9,3 +9,3 @@ /* eslint-disable react/no-multi-comp */

Helpers,
PropTypes as CustomPropTypes
PropTypes as CustomPropTypes,
} from "victory-core";

@@ -29,3 +29,3 @@ import VoronoiHelpers from "./voronoi-helpers";

voronoiBlacklist: PropTypes.arrayOf(
PropTypes.oneOfType([PropTypes.string, CustomPropTypes.regExp])
PropTypes.oneOfType([PropTypes.string, CustomPropTypes.regExp]),
),

@@ -39,5 +39,5 @@ voronoiDimension: PropTypes.oneOf(["x", "y"]),

left: PropTypes.number,
right: PropTypes.number
})
])
right: PropTypes.number,
}),
]),
};

@@ -49,3 +49,3 @@ static defaultProps = {

labelComponent: <VictoryTooltip />,
voronoiPadding: 5
voronoiPadding: 5,
};

@@ -77,4 +77,4 @@

: VoronoiHelpers.onMouseMove(evt, targetProps);
}
}
},
},
},

@@ -88,5 +88,5 @@ {

onMouseOut: () => null,
onMouseMove: () => null
}
}
onMouseMove: () => null,
},
},
];

@@ -118,3 +118,3 @@ };

...basePosition,
center: defaults({}, labelProps.center, center)
center: defaults({}, labelProps.center, center),
};

@@ -141,3 +141,3 @@ }

datum,
active: true
active: true,
});

@@ -152,3 +152,3 @@ const text = isFunction(labels) ? labels(labelProps) : undefined;

defaults({}, componentStyle, baseStyle, themeStyles[type]),
labelProps
labelProps,
);

@@ -178,3 +178,3 @@ const styleArray = textArray.length

constrainToVisibleArea:
multiPoint || mouseFollowTooltips ? true : undefined
multiPoint || mouseFollowTooltips ? true : undefined,
};

@@ -189,3 +189,3 @@ }

datum,
active: true
active: true,
});

@@ -214,3 +214,3 @@ const t = isFunction(labels) ? labels(labelProps) : null;

scale,
theme
theme,
},

@@ -223,5 +223,5 @@ componentProps,

style: this.getStyle(props, points, "labels"),
flyoutStyle: this.getStyle(props, points, "flyout")[0]
flyoutStyle: this.getStyle(props, points, "flyout")[0],
},
this.getDefaultLabelProps(props, points)
this.getDefaultLabelProps(props, points),
);

@@ -255,3 +255,3 @@ const labelPosition = this.getLabelPosition(props, labelProps, points);

...React.Children.toArray(props.children),
this.getTooltip(props)
this.getTooltip(props),
];

@@ -258,0 +258,0 @@ }

@@ -9,3 +9,3 @@ import { Collection, Selection, Data, Helpers } from "victory-core";

isString,
isRegExp
isRegExp,
} from "lodash";

@@ -39,3 +39,3 @@ import isEqual from "react-fast-compare";

x: Collection.getMinValue(props.domain.x),
y: Collection.getMinValue(props.domain.y)
y: Collection.getMinValue(props.domain.y),
};

@@ -58,5 +58,5 @@ const children = React.Children.toArray(props.children);

continuous,
style
style,
},
datum
datum,
);

@@ -130,3 +130,3 @@ });

mousePosition,
props.radius
props.radius,
);

@@ -160,3 +160,3 @@ const points = withinRadius

target,
mutation: () => ({ active: true })
mutation: () => ({ active: true }),
};

@@ -186,3 +186,3 @@ });

target,
mutation: () => null
mutation: () => null,
};

@@ -198,4 +198,4 @@ });

eventKey: "parent",
mutation: () => ({ activePoints, mousePosition, parentSVG, vIndex })
}
mutation: () => ({ activePoints, mousePosition, parentSVG, vIndex }),
},
];

@@ -221,3 +221,3 @@ },

? activePoints.map((point) =>
this.getInactiveMutations(targetProps, point)
this.getInactiveMutations(targetProps, point),
)

@@ -237,7 +237,7 @@ : [];

? activePoints.map((point) =>
this.getInactiveMutations(targetProps, point)
this.getInactiveMutations(targetProps, point),
)
: [];
return this.getParentMutation([], mousePosition, parentSVG).concat(
...inactiveMutations
...inactiveMutations,
);

@@ -247,3 +247,3 @@ }

targetProps,
mousePosition
mousePosition,
);

@@ -254,3 +254,3 @@ const parentMutations = this.getParentMutation(

parentSVG,
index
index,
);

@@ -267,3 +267,3 @@ if (activePoints.length && isEqual(points, activePoints)) {

? activePoints.map((point) =>
this.getInactiveMutations(targetProps, point)
this.getInactiveMutations(targetProps, point),
)

@@ -273,3 +273,3 @@ : [];

}
}
},
};

@@ -282,4 +282,4 @@

32, // eslint-disable-line no-magic-numbers
{ leading: true, trailing: false }
)
{ leading: true, trailing: false },
),
};

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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