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

@reactflow/minimap

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reactflow/minimap - npm Package Compare versions

Comparing version 11.2.3 to 11.3.0-next.0

11

dist/esm/index.js

@@ -20,3 +20,3 @@ import { jsx, jsxs } from 'react/jsx-runtime';

const selector = (s) => {
const nodes = Array.from(s.nodeInternals.values());
const nodes = s.getNodes();
const viewBB = {

@@ -76,3 +76,3 @@ x: -s.transform[0] / s.transform[2],

const panHandler = (event) => {
const { transform, d3Selection, d3Zoom } = store.getState();
const { transform, d3Selection, d3Zoom, translateExtent, width, height } = store.getState();
if (event.sourceEvent.type !== 'mousemove' || !d3Selection || !d3Zoom) {

@@ -86,4 +86,9 @@ return;

};
const extent = [
[0, 0],
[width, height],
];
const nextTransform = zoomIdentity.translate(position.x, position.y).scale(transform[2]);
d3Zoom.transform(d3Selection, nextTransform);
const constrainedTransform = d3Zoom.constrain()(nextTransform, extent, translateExtent);
d3Zoom.transform(d3Selection, constrainedTransform);
};

@@ -90,0 +95,0 @@ const zoomAndPanHandler = zoom()

{
"name": "@reactflow/minimap",
"version": "11.2.3",
"version": "11.3.0-next.0",
"description": "Minimap component for React Flow.",

@@ -34,3 +34,3 @@ "keywords": [

"@babel/runtime": "^7.18.9",
"@reactflow/core": "11.3.2",
"@reactflow/core": "11.4.0-next.0",
"@types/d3-selection": "^3.0.3",

@@ -37,0 +37,0 @@ "@types/d3-zoom": "^3.0.1",

Sorry, the diff of this file is not supported yet

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

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