Socket
Socket
Sign inDemoInstall

@reactflow/node-resizer

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reactflow/node-resizer - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

dist/esm/NodeResizerHandle.d.ts

4

dist/esm/index.js

@@ -129,9 +129,9 @@ import { jsx, jsxs, Fragment } from 'react/jsx-runtime';

const lineControls = ['top', 'right', 'bottom', 'left'];
function NodeResizer({ nodeId, isVisible = true, handleClassName, handleStyle, lineClassName, lineStyle, color, minWidth = 10, minHeight = 10, }) {
function NodeResizer({ nodeId, isVisible = true, handleClassName, handleStyle, lineClassName, lineStyle, color, }) {
if (!isVisible) {
return null;
}
return (jsxs(Fragment, { children: [lineControls.map((c) => (jsx(ResizeControl$1, { className: lineClassName, style: lineStyle, nodeId: nodeId, position: c, variant: ResizeControlVariant.Line, color: color, minWidth: minWidth, minHeight: minHeight }, c))), handleControls.map((c) => (jsx(ResizeControl$1, { className: handleClassName, style: handleStyle, nodeId: nodeId, position: c, color: color, minWidth: minWidth, minHeight: minHeight }, c)))] }));
return (jsxs(Fragment, { children: [lineControls.map((c) => (jsx(ResizeControl$1, { className: lineClassName, style: lineStyle, nodeId: nodeId, position: c, variant: ResizeControlVariant.Line, color: color }, c))), handleControls.map((c) => (jsx(ResizeControl$1, { className: handleClassName, style: handleStyle, nodeId: nodeId, position: c, color: color }, c)))] }));
}
export { ResizeControl$1 as NodeResizeControl, NodeResizer, ResizeControlVariant };
/// <reference types="react" />
import { NodeResizerProps } from './types';
export default function NodeResizer({ nodeId, isVisible, handleClassName, handleStyle, lineClassName, lineStyle, color, minWidth, minHeight, }: NodeResizerProps): JSX.Element | null;
export default function NodeResizer({ nodeId, isVisible, handleClassName, handleStyle, lineClassName, lineStyle, color, }: NodeResizerProps): JSX.Element | null;
//# sourceMappingURL=NodeResizer.d.ts.map

@@ -11,4 +11,2 @@ import type { CSSProperties, ReactNode } from 'react';

isVisible?: boolean;
minWidth?: number;
minHeight?: number;
};

@@ -15,0 +13,0 @@ export declare type ControlLinePosition = 'top' | 'bottom' | 'left' | 'right';

/// <reference types="react" />
import { NodeResizerProps } from './types';
export default function NodeResizer({ nodeId, isVisible, handleClassName, handleStyle, lineClassName, lineStyle, color, minWidth, minHeight, }: NodeResizerProps): JSX.Element | null;
export default function NodeResizer({ nodeId, isVisible, handleClassName, handleStyle, lineClassName, lineStyle, color, }: NodeResizerProps): JSX.Element | null;
//# sourceMappingURL=NodeResizer.d.ts.map

@@ -11,4 +11,2 @@ import type { CSSProperties, ReactNode } from 'react';

isVisible?: boolean;
minWidth?: number;
minHeight?: number;
};

@@ -15,0 +13,0 @@ export declare type ControlLinePosition = 'top' | 'bottom' | 'left' | 'right';

{
"name": "@reactflow/node-resizer",
"version": "1.0.1",
"version": "1.0.2",
"description": "A helper component for resizing nodes.",

@@ -5,0 +5,0 @@ "keywords": [

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 too big to display

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