@reactflow/node-resizer
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -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, }) { | ||
function NodeResizer({ nodeId, isVisible = true, handleClassName, handleStyle, lineClassName, lineStyle, color, minWidth = 10, minHeight = 10, }) { | ||
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 }, c))), handleControls.map((c) => (jsx(ResizeControl$1, { className: handleClassName, style: handleStyle, nodeId: nodeId, position: c, color: color }, c)))] })); | ||
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)))] })); | ||
} | ||
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, }: NodeResizerProps): JSX.Element | null; | ||
export default function NodeResizer({ nodeId, isVisible, handleClassName, handleStyle, lineClassName, lineStyle, color, minWidth, minHeight, }: NodeResizerProps): JSX.Element | null; | ||
//# sourceMappingURL=NodeResizer.d.ts.map |
@@ -11,2 +11,4 @@ import type { CSSProperties, ReactNode } from 'react'; | ||
isVisible?: boolean; | ||
minWidth?: number; | ||
minHeight?: number; | ||
}; | ||
@@ -13,0 +15,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, }: NodeResizerProps): JSX.Element | null; | ||
export default function NodeResizer({ nodeId, isVisible, handleClassName, handleStyle, lineClassName, lineStyle, color, minWidth, minHeight, }: NodeResizerProps): JSX.Element | null; | ||
//# sourceMappingURL=NodeResizer.d.ts.map |
@@ -11,2 +11,4 @@ import type { CSSProperties, ReactNode } from 'react'; | ||
isVisible?: boolean; | ||
minWidth?: number; | ||
minHeight?: number; | ||
}; | ||
@@ -13,0 +15,0 @@ export declare type ControlLinePosition = 'top' | 'bottom' | 'left' | 'right'; |
{ | ||
"name": "@reactflow/node-resizer", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"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
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
150792
22
825