@reactflow/node-resizer
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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
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
153648
34
849