feat(ui): add type filter toggles
This commit is contained in:
61
node_modules/@xyflow/react/dist/umd/additional-components/Background/Background.d.ts
generated
vendored
Normal file
61
node_modules/@xyflow/react/dist/umd/additional-components/Background/Background.d.ts
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
import { type BackgroundProps } from './types';
|
||||
declare function BackgroundComponent({ id, variant, gap, size, lineWidth, offset, color, bgColor, style, className, patternClassName, }: BackgroundProps): import("react/jsx-runtime").JSX.Element;
|
||||
declare namespace BackgroundComponent {
|
||||
var displayName: string;
|
||||
}
|
||||
/**
|
||||
* The `<Background />` component makes it convenient to render different types of backgrounds common in node-based UIs. It comes with three variants: lines, dots and cross.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* A simple example of how to use the Background component.
|
||||
*
|
||||
* ```tsx
|
||||
* import { useState } from 'react';
|
||||
* import { ReactFlow, Background, BackgroundVariant } from '@xyflow/react';
|
||||
*
|
||||
* export default function Flow() {
|
||||
* return (
|
||||
* <ReactFlow defaultNodes={[...]} defaultEdges={[...]}>
|
||||
* <Background color="#ccc" variant={BackgroundVariant.Dots} />
|
||||
* </ReactFlow>
|
||||
* );
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* In this example you can see how to combine multiple backgrounds
|
||||
*
|
||||
* ```tsx
|
||||
* import { ReactFlow, Background, BackgroundVariant } from '@xyflow/react';
|
||||
* import '@xyflow/react/dist/style.css';
|
||||
*
|
||||
* export default function Flow() {
|
||||
* return (
|
||||
* <ReactFlow defaultNodes={[...]} defaultEdges={[...]}>
|
||||
* <Background
|
||||
* id="1"
|
||||
* gap={10}
|
||||
* color="#f1f1f1"
|
||||
* variant={BackgroundVariant.Lines}
|
||||
* />
|
||||
* <Background
|
||||
* id="2"
|
||||
* gap={100}
|
||||
* color="#ccc"
|
||||
* variant={BackgroundVariant.Lines}
|
||||
* />
|
||||
* </ReactFlow>
|
||||
* );
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @remarks
|
||||
*
|
||||
* When combining multiple <Background /> components it’s important to give each of them a unique id prop!
|
||||
*
|
||||
*/
|
||||
export declare const Background: import("react").MemoExoticComponent<typeof BackgroundComponent>;
|
||||
export {};
|
||||
//# sourceMappingURL=Background.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Background/Background.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Background/Background.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Background.d.ts","sourceRoot":"","sources":["../../../src/additional-components/Background/Background.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,eAAe,EAAqB,MAAM,SAAS,CAAC;AAWlE,iBAAS,mBAAmB,CAAC,EAC3B,EAAE,EACF,OAAgC,EAEhC,GAAQ,EAER,IAAI,EACJ,SAAa,EACb,MAAU,EACV,KAAK,EACL,OAAO,EACP,KAAK,EACL,SAAS,EACT,gBAAgB,GACjB,EAAE,eAAe,2CAwDjB;kBAtEQ,mBAAmB;;;AA0E5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,eAAO,MAAM,UAAU,iEAA4B,CAAC"}
|
||||
15
node_modules/@xyflow/react/dist/umd/additional-components/Background/Patterns.d.ts
generated
vendored
Normal file
15
node_modules/@xyflow/react/dist/umd/additional-components/Background/Patterns.d.ts
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import { BackgroundVariant } from './types';
|
||||
type LinePatternProps = {
|
||||
dimensions: [number, number];
|
||||
variant: BackgroundVariant;
|
||||
lineWidth?: number;
|
||||
className?: string;
|
||||
};
|
||||
export declare function LinePattern({ dimensions, lineWidth, variant, className }: LinePatternProps): import("react/jsx-runtime").JSX.Element;
|
||||
type DotPatternProps = {
|
||||
radius: number;
|
||||
className?: string;
|
||||
};
|
||||
export declare function DotPattern({ radius, className }: DotPatternProps): import("react/jsx-runtime").JSX.Element;
|
||||
export {};
|
||||
//# sourceMappingURL=Patterns.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Background/Patterns.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Background/Patterns.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Patterns.d.ts","sourceRoot":"","sources":["../../../src/additional-components/Background/Patterns.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,KAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC7B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,WAAW,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,gBAAgB,2CAQ1F;AAED,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,wBAAgB,UAAU,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,eAAe,2CAIhE"}
|
||||
3
node_modules/@xyflow/react/dist/umd/additional-components/Background/index.d.ts
generated
vendored
Normal file
3
node_modules/@xyflow/react/dist/umd/additional-components/Background/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { Background } from './Background';
|
||||
export { BackgroundVariant, type BackgroundProps } from './types';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Background/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Background/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/additional-components/Background/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC"}
|
||||
59
node_modules/@xyflow/react/dist/umd/additional-components/Background/types.d.ts
generated
vendored
Normal file
59
node_modules/@xyflow/react/dist/umd/additional-components/Background/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,59 @@
|
||||
import { CSSProperties } from 'react';
|
||||
/**
|
||||
* The three variants are exported as an enum for convenience. You can either import
|
||||
* the enum and use it like `BackgroundVariant.Lines` or you can use the raw string
|
||||
* value directly.
|
||||
* @public
|
||||
*/
|
||||
export declare enum BackgroundVariant {
|
||||
Lines = "lines",
|
||||
Dots = "dots",
|
||||
Cross = "cross"
|
||||
}
|
||||
/**
|
||||
* @expand
|
||||
*/
|
||||
export type BackgroundProps = {
|
||||
/** When multiple backgrounds are present on the page, each one should have a unique id. */
|
||||
id?: string;
|
||||
/** Color of the pattern. */
|
||||
color?: string;
|
||||
/** Color of the background. */
|
||||
bgColor?: string;
|
||||
/** Class applied to the container. */
|
||||
className?: string;
|
||||
/** Class applied to the pattern. */
|
||||
patternClassName?: string;
|
||||
/**
|
||||
* The gap between patterns. Passing in a tuple allows you to control the x and y gap
|
||||
* independently.
|
||||
* @default 20
|
||||
*/
|
||||
gap?: number | [number, number];
|
||||
/**
|
||||
* The radius of each dot or the size of each rectangle if `BackgroundVariant.Dots` or
|
||||
* `BackgroundVariant.Cross` is used. This defaults to 1 or 6 respectively, or ignored if
|
||||
* `BackgroundVariant.Lines` is used.
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* Offset of the pattern.
|
||||
* @default 0
|
||||
*/
|
||||
offset?: number | [number, number];
|
||||
/**
|
||||
* The stroke thickness used when drawing the pattern.
|
||||
* @default 1
|
||||
*/
|
||||
lineWidth?: number;
|
||||
/**
|
||||
* Variant of the pattern.
|
||||
* @default BackgroundVariant.Dots
|
||||
* @example BackgroundVariant.Lines, BackgroundVariant.Dots, BackgroundVariant.Cross
|
||||
* 'lines', 'dots', 'cross'
|
||||
*/
|
||||
variant?: BackgroundVariant;
|
||||
/** Style applied to the container. */
|
||||
style?: CSSProperties;
|
||||
};
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Background/types.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Background/types.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/Background/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC;;;;;GAKG;AACH,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,2FAA2F;IAC3F,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,4BAA4B;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,sCAAsC;IACtC,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB,CAAC"}
|
||||
26
node_modules/@xyflow/react/dist/umd/additional-components/Controls/ControlButton.d.ts
generated
vendored
Normal file
26
node_modules/@xyflow/react/dist/umd/additional-components/Controls/ControlButton.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { ControlButtonProps } from './types';
|
||||
/**
|
||||
* You can add buttons to the control panel by using the `<ControlButton />` component
|
||||
* and pass it as a child to the [`<Controls />`](/api-reference/components/controls) component.
|
||||
*
|
||||
* @public
|
||||
* @example
|
||||
*```jsx
|
||||
*import { MagicWand } from '@radix-ui/react-icons'
|
||||
*import { ReactFlow, Controls, ControlButton } from '@xyflow/react'
|
||||
*
|
||||
*export default function Flow() {
|
||||
* return (
|
||||
* <ReactFlow nodes={[...]} edges={[...]}>
|
||||
* <Controls>
|
||||
* <ControlButton onClick={() => alert('Something magical just happened. ✨')}>
|
||||
* <MagicWand />
|
||||
* </ControlButton>
|
||||
* </Controls>
|
||||
* </ReactFlow>
|
||||
* )
|
||||
*}
|
||||
*```
|
||||
*/
|
||||
export declare function ControlButton({ children, className, ...rest }: ControlButtonProps): import("react/jsx-runtime").JSX.Element;
|
||||
//# sourceMappingURL=ControlButton.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/ControlButton.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/ControlButton.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"ControlButton.d.ts","sourceRoot":"","sources":["../../../src/additional-components/Controls/ControlButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,kBAAkB,2CAMjF"}
|
||||
29
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Controls.d.ts
generated
vendored
Normal file
29
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Controls.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import type { ControlProps } from './types';
|
||||
declare function ControlsComponent({ style, showZoom, showFitView, showInteractive, fitViewOptions, onZoomIn, onZoomOut, onFitView, onInteractiveChange, className, children, position, orientation, 'aria-label': ariaLabel, }: ControlProps): import("react/jsx-runtime").JSX.Element;
|
||||
declare namespace ControlsComponent {
|
||||
var displayName: string;
|
||||
}
|
||||
/**
|
||||
* The `<Controls />` component renders a small panel that contains convenient
|
||||
* buttons to zoom in, zoom out, fit the view, and lock the viewport.
|
||||
*
|
||||
* @public
|
||||
* @example
|
||||
*```tsx
|
||||
*import { ReactFlow, Controls } from '@xyflow/react'
|
||||
*
|
||||
*export default function Flow() {
|
||||
* return (
|
||||
* <ReactFlow nodes={[...]} edges={[...]}>
|
||||
* <Controls />
|
||||
* </ReactFlow>
|
||||
* )
|
||||
*}
|
||||
*```
|
||||
*
|
||||
* @remarks To extend or customise the controls, you can use the [`<ControlButton />`](/api-reference/components/control-button) component
|
||||
*
|
||||
*/
|
||||
export declare const Controls: import("react").MemoExoticComponent<typeof ControlsComponent>;
|
||||
export {};
|
||||
//# sourceMappingURL=Controls.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Controls.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Controls.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Controls.d.ts","sourceRoot":"","sources":["../../../src/additional-components/Controls/Controls.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAS5C,iBAAS,iBAAiB,CAAC,EACzB,KAAK,EACL,QAAe,EACf,WAAkB,EAClB,eAAsB,EACtB,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,mBAAmB,EACnB,SAAS,EACT,QAAQ,EACR,QAAwB,EACxB,WAAwB,EACxB,YAAY,EAAE,SAAS,GACxB,EAAE,YAAY,2CAoFd;kBAnGQ,iBAAiB;;;AAuG1B;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,QAAQ,+DAA0B,CAAC"}
|
||||
2
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/FitView.d.ts
generated
vendored
Normal file
2
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/FitView.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function FitViewIcon(): import("react/jsx-runtime").JSX.Element;
|
||||
//# sourceMappingURL=FitView.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/FitView.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/FitView.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"FitView.d.ts","sourceRoot":"","sources":["../../../../src/additional-components/Controls/Icons/FitView.tsx"],"names":[],"mappings":"AAAA,wBAAgB,WAAW,4CAM1B"}
|
||||
2
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Lock.d.ts
generated
vendored
Normal file
2
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Lock.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function LockIcon(): import("react/jsx-runtime").JSX.Element;
|
||||
//# sourceMappingURL=Lock.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Lock.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Lock.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Lock.d.ts","sourceRoot":"","sources":["../../../../src/additional-components/Controls/Icons/Lock.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,4CAMvB"}
|
||||
2
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Minus.d.ts
generated
vendored
Normal file
2
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Minus.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function MinusIcon(): import("react/jsx-runtime").JSX.Element;
|
||||
//# sourceMappingURL=Minus.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Minus.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Minus.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Minus.d.ts","sourceRoot":"","sources":["../../../../src/additional-components/Controls/Icons/Minus.tsx"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,4CAMxB"}
|
||||
2
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Plus.d.ts
generated
vendored
Normal file
2
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Plus.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function PlusIcon(): import("react/jsx-runtime").JSX.Element;
|
||||
//# sourceMappingURL=Plus.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Plus.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Plus.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Plus.d.ts","sourceRoot":"","sources":["../../../../src/additional-components/Controls/Icons/Plus.tsx"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,4CAMvB"}
|
||||
2
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Unlock.d.ts
generated
vendored
Normal file
2
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Unlock.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
export declare function UnlockIcon(): import("react/jsx-runtime").JSX.Element;
|
||||
//# sourceMappingURL=Unlock.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Unlock.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/Icons/Unlock.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"Unlock.d.ts","sourceRoot":"","sources":["../../../../src/additional-components/Controls/Icons/Unlock.tsx"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,4CAMzB"}
|
||||
4
node_modules/@xyflow/react/dist/umd/additional-components/Controls/index.d.ts
generated
vendored
Normal file
4
node_modules/@xyflow/react/dist/umd/additional-components/Controls/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export { Controls } from './Controls';
|
||||
export { ControlButton } from './ControlButton';
|
||||
export type { ControlProps, ControlButtonProps } from './types';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/additional-components/Controls/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC"}
|
||||
66
node_modules/@xyflow/react/dist/umd/additional-components/Controls/types.d.ts
generated
vendored
Normal file
66
node_modules/@xyflow/react/dist/umd/additional-components/Controls/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,66 @@
|
||||
import type { ButtonHTMLAttributes, ReactNode } from 'react';
|
||||
import type { PanelPosition } from '@xyflow/system';
|
||||
import type { FitViewOptions } from '../../types';
|
||||
/**
|
||||
* @expand
|
||||
*/
|
||||
export type ControlProps = {
|
||||
/**
|
||||
* Whether or not to show the zoom in and zoom out buttons. These buttons will adjust the viewport
|
||||
* zoom by a fixed amount each press.
|
||||
* @default true
|
||||
*/
|
||||
showZoom?: boolean;
|
||||
/**
|
||||
* Whether or not to show the fit view button. By default, this button will adjust the viewport so
|
||||
* that all nodes are visible at once.
|
||||
* @default true
|
||||
*/
|
||||
showFitView?: boolean;
|
||||
/**
|
||||
* Show button for toggling interactivity
|
||||
* @default true
|
||||
*/
|
||||
showInteractive?: boolean;
|
||||
/**
|
||||
* Customise the options for the fit view button. These are the same options you would pass to the
|
||||
* fitView function.
|
||||
*/
|
||||
fitViewOptions?: FitViewOptions;
|
||||
/** Called in addition the default zoom behavior when the zoom in button is clicked. */
|
||||
onZoomIn?: () => void;
|
||||
/** Called in addition the default zoom behavior when the zoom out button is clicked. */
|
||||
onZoomOut?: () => void;
|
||||
/**
|
||||
* Called when the fit view button is clicked. When this is not provided, the viewport will be
|
||||
* adjusted so that all nodes are visible.
|
||||
*/
|
||||
onFitView?: () => void;
|
||||
/** Called when the interactive (lock) button is clicked. */
|
||||
onInteractiveChange?: (interactiveStatus: boolean) => void;
|
||||
/**
|
||||
* Position of the controls on the pane
|
||||
* @default PanelPosition.BottomLeft
|
||||
* @example PanelPosition.TopLeft, PanelPosition.TopRight,
|
||||
* PanelPosition.BottomLeft, PanelPosition.BottomRight
|
||||
*/
|
||||
position?: PanelPosition;
|
||||
children?: ReactNode;
|
||||
/** Style applied to container */
|
||||
style?: React.CSSProperties;
|
||||
/** Class name applied to container */
|
||||
className?: string;
|
||||
/**
|
||||
* @default 'React Flow controls'
|
||||
*/
|
||||
'aria-label'?: string;
|
||||
/**
|
||||
* @default 'vertical'
|
||||
*/
|
||||
orientation?: 'horizontal' | 'vertical';
|
||||
};
|
||||
/**
|
||||
* @expand
|
||||
*/
|
||||
export type ControlButtonProps = ButtonHTMLAttributes<HTMLButtonElement>;
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/types.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/Controls/types.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/Controls/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAEpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,uFAAuF;IACvF,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,wFAAwF;IACxF,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,4DAA4D;IAC5D,mBAAmB,CAAC,EAAE,CAAC,iBAAiB,EAAE,OAAO,KAAK,IAAI,CAAC;IAC3D;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,iCAAiC;IACjC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,sCAAsC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,CAAC"}
|
||||
26
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/EdgeToolbar.d.ts
generated
vendored
Normal file
26
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/EdgeToolbar.d.ts
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { EdgeToolbarProps } from './types';
|
||||
/**
|
||||
* This component can render a toolbar or tooltip to one side of a custom edge. This
|
||||
* toolbar doesn't scale with the viewport so that the content stays the same size.
|
||||
*
|
||||
* @public
|
||||
* @example
|
||||
* ```jsx
|
||||
* import { EdgeToolbar, BaseEdge, getBezierPath, type EdgeProps } from "@xyflow/react";
|
||||
*
|
||||
* export function CustomEdge({ id, data, ...props }: EdgeProps) {
|
||||
* const [edgePath, centerX, centerY] = getBezierPath(props);
|
||||
*
|
||||
* return (
|
||||
* <>
|
||||
* <BaseEdge id={id} path={edgePath} />
|
||||
* <EdgeToolbar edgeId={id} x={centerX} y={centerY} isVisible>
|
||||
* <button onClick={() => console.log('edge', id, 'click')}}>Click me</button>
|
||||
* </EdgeToolbar>
|
||||
* </>
|
||||
* );
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
export declare function EdgeToolbar({ edgeId, x, y, children, className, style, isVisible, alignX, alignY, ...rest }: EdgeToolbarProps): import("react/jsx-runtime").JSX.Element | null;
|
||||
//# sourceMappingURL=EdgeToolbar.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/EdgeToolbar.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/EdgeToolbar.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"EdgeToolbar.d.ts","sourceRoot":"","sources":["../../../src/additional-components/EdgeToolbar/EdgeToolbar.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAIhD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,CAAC,EACD,CAAC,EACD,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,MAAiB,EACjB,MAAiB,EACjB,GAAG,IAAI,EACR,EAAE,gBAAgB,kDAgClB"}
|
||||
3
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/index.d.ts
generated
vendored
Normal file
3
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { EdgeToolbar } from './EdgeToolbar';
|
||||
export type { EdgeToolbarProps } from './types';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/additional-components/EdgeToolbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
|
||||
13
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/types.d.ts
generated
vendored
Normal file
13
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { HTMLAttributes, ReactNode } from 'react';
|
||||
import type { EdgeToolbarBaseProps } from '@xyflow/system';
|
||||
/**
|
||||
* @inline
|
||||
*/
|
||||
export type EdgeToolbarProps = EdgeToolbarBaseProps & HTMLAttributes<HTMLDivElement> & {
|
||||
/**
|
||||
* An edge toolbar must be attached to an edge.
|
||||
*/
|
||||
edgeId: string;
|
||||
children?: ReactNode;
|
||||
};
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/types.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/EdgeToolbar/types.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/EdgeToolbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GACjD,cAAc,CAAC,cAAc,CAAC,GAAG;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC"}
|
||||
29
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMap.d.ts
generated
vendored
Normal file
29
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMap.d.ts
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import type { Node } from '../../types';
|
||||
import type { MiniMapProps } from './types';
|
||||
declare function MiniMapComponent<NodeType extends Node = Node>({ style, className, nodeStrokeColor, nodeColor, nodeClassName, nodeBorderRadius, nodeStrokeWidth, nodeComponent, bgColor, maskColor, maskStrokeColor, maskStrokeWidth, position, onClick, onNodeClick, pannable, zoomable, ariaLabel, inversePan, zoomStep, offsetScale, }: MiniMapProps<NodeType>): import("react/jsx-runtime").JSX.Element;
|
||||
declare namespace MiniMapComponent {
|
||||
var displayName: string;
|
||||
}
|
||||
/**
|
||||
* The `<MiniMap />` component can be used to render an overview of your flow. It
|
||||
* renders each node as an SVG element and visualizes where the current viewport is
|
||||
* in relation to the rest of the flow.
|
||||
*
|
||||
* @public
|
||||
* @example
|
||||
*
|
||||
* ```jsx
|
||||
*import { ReactFlow, MiniMap } from '@xyflow/react';
|
||||
*
|
||||
*export default function Flow() {
|
||||
* return (
|
||||
* <ReactFlow nodes={[...]]} edges={[...]]}>
|
||||
* <MiniMap nodeStrokeWidth={3} />
|
||||
* </ReactFlow>
|
||||
* );
|
||||
*}
|
||||
*```
|
||||
*/
|
||||
export declare const MiniMap: typeof MiniMapComponent;
|
||||
export {};
|
||||
//# sourceMappingURL=MiniMap.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMap.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMap.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MiniMap.d.ts","sourceRoot":"","sources":["../../../src/additional-components/MiniMap/MiniMap.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAkB,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AA+B5C,iBAAS,gBAAgB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,EAAE,EACtD,KAAK,EACL,SAAS,EACT,eAAe,EACf,SAAS,EACT,aAAkB,EAClB,gBAAoB,EACpB,eAAe,EAKf,aAAa,EACb,OAAO,EACP,SAAS,EACT,eAAe,EACf,eAAe,EACf,QAAyB,EACzB,OAAO,EACP,WAAW,EACX,QAAgB,EAChB,QAAgB,EAChB,SAAS,EACT,UAAU,EACV,QAAY,EACZ,WAAe,GAChB,EAAE,YAAY,CAAC,QAAQ,CAAC,2CAsHxB;kBAhJQ,gBAAgB;;;AAoJzB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,OAAO,EAA6B,OAAO,gBAAgB,CAAC"}
|
||||
5
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNode.d.ts
generated
vendored
Normal file
5
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNode.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import type { MiniMapNodeProps } from './types';
|
||||
declare function MiniMapNodeComponent({ id, x, y, width, height, style, color, strokeColor, strokeWidth, className, borderRadius, shapeRendering, selected, onClick, }: MiniMapNodeProps): import("react/jsx-runtime").JSX.Element;
|
||||
export declare const MiniMapNode: import("react").MemoExoticComponent<typeof MiniMapNodeComponent>;
|
||||
export {};
|
||||
//# sourceMappingURL=MiniMapNode.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNode.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNode.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MiniMapNode.d.ts","sourceRoot":"","sources":["../../../src/additional-components/MiniMap/MiniMapNode.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,iBAAS,oBAAoB,CAAC,EAC5B,EAAE,EACF,CAAC,EACD,CAAC,EACD,KAAK,EACL,MAAM,EACN,KAAK,EACL,KAAK,EACL,WAAW,EACX,WAAW,EACX,SAAS,EACT,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,OAAO,GACR,EAAE,gBAAgB,2CAsBlB;AAED,eAAO,MAAM,WAAW,kEAA6B,CAAC"}
|
||||
6
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNodes.d.ts
generated
vendored
Normal file
6
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNodes.d.ts
generated
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
import type { Node } from '../../types';
|
||||
import type { MiniMapNodes as MiniMapNodesProps } from './types';
|
||||
declare function MiniMapNodes<NodeType extends Node>({ nodeStrokeColor, nodeColor, nodeClassName, nodeBorderRadius, nodeStrokeWidth, nodeComponent: NodeComponent, onClick, }: MiniMapNodesProps<NodeType>): import("react/jsx-runtime").JSX.Element;
|
||||
declare const _default: typeof MiniMapNodes;
|
||||
export default _default;
|
||||
//# sourceMappingURL=MiniMapNodes.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNodes.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/MiniMapNodes.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"MiniMapNodes.d.ts","sourceRoot":"","sources":["../../../src/additional-components/MiniMap/MiniMapNodes.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAkB,IAAI,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,IAAI,iBAAiB,EAA6C,MAAM,SAAS,CAAC;AAQ5G,iBAAS,YAAY,CAAC,QAAQ,SAAS,IAAI,EAAE,EAC3C,eAAe,EACf,SAAS,EACT,aAAkB,EAClB,gBAAoB,EACpB,eAAe,EAKf,aAAa,EAAE,aAA2B,EAC1C,OAAO,GACR,EAAE,iBAAiB,CAAC,QAAQ,CAAC,2CAiC7B;wBAgEoC,OAAO,YAAY;AAAxD,wBAAyD"}
|
||||
4
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/index.d.ts
generated
vendored
Normal file
4
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export { MiniMap } from './MiniMap';
|
||||
export { MiniMapNode } from './MiniMapNode';
|
||||
export * from './types';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/additional-components/MiniMap/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,cAAc,SAAS,CAAC"}
|
||||
123
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/types.d.ts
generated
vendored
Normal file
123
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,123 @@
|
||||
import type { ComponentType, CSSProperties, HTMLAttributes, MouseEvent } from 'react';
|
||||
import type { PanelPosition, XYPosition } from '@xyflow/system';
|
||||
import type { Node } from '../../types';
|
||||
export type GetMiniMapNodeAttribute<NodeType extends Node = Node> = (node: NodeType) => string;
|
||||
/**
|
||||
* @expand
|
||||
*/
|
||||
export type MiniMapProps<NodeType extends Node = Node> = Omit<HTMLAttributes<SVGSVGElement>, 'onClick'> & {
|
||||
/**
|
||||
* Color of nodes on minimap.
|
||||
* @default "#e2e2e2"
|
||||
*/
|
||||
nodeColor?: string | GetMiniMapNodeAttribute<NodeType>;
|
||||
/**
|
||||
* Stroke color of nodes on minimap.
|
||||
* @default "transparent"
|
||||
*/
|
||||
nodeStrokeColor?: string | GetMiniMapNodeAttribute<NodeType>;
|
||||
/**
|
||||
* Class name applied to nodes on minimap.
|
||||
* @default ""
|
||||
*/
|
||||
nodeClassName?: string | GetMiniMapNodeAttribute<NodeType>;
|
||||
/**
|
||||
* Border radius of nodes on minimap.
|
||||
* @default 5
|
||||
*/
|
||||
nodeBorderRadius?: number;
|
||||
/**
|
||||
* Stroke width of nodes on minimap.
|
||||
* @default 2
|
||||
*/
|
||||
nodeStrokeWidth?: number;
|
||||
/**
|
||||
* A custom component to render the nodes in the minimap. This component must render an SVG
|
||||
* element!
|
||||
*/
|
||||
nodeComponent?: ComponentType<MiniMapNodeProps>;
|
||||
/** Background color of minimap. */
|
||||
bgColor?: string;
|
||||
/**
|
||||
* The color of the mask that covers the portion of the minimap not currently visible in the
|
||||
* viewport.
|
||||
* @default "rgba(240, 240, 240, 0.6)"
|
||||
*/
|
||||
maskColor?: string;
|
||||
/**
|
||||
* Stroke color of mask representing viewport.
|
||||
* @default transparent
|
||||
*/
|
||||
maskStrokeColor?: string;
|
||||
/**
|
||||
* Stroke width of mask representing viewport.
|
||||
* @default 1
|
||||
*/
|
||||
maskStrokeWidth?: number;
|
||||
/**
|
||||
* Position of minimap on pane.
|
||||
* @default PanelPosition.BottomRight
|
||||
* @example PanelPosition.TopLeft, PanelPosition.TopRight,
|
||||
* PanelPosition.BottomLeft, PanelPosition.BottomRight
|
||||
*/
|
||||
position?: PanelPosition;
|
||||
/** Callback called when minimap is clicked. */
|
||||
onClick?: (event: MouseEvent, position: XYPosition) => void;
|
||||
/** Callback called when node on minimap is clicked. */
|
||||
onNodeClick?: (event: MouseEvent, node: NodeType) => void;
|
||||
/**
|
||||
* Determines whether you can pan the viewport by dragging inside the minimap.
|
||||
* @default false
|
||||
*/
|
||||
pannable?: boolean;
|
||||
/**
|
||||
* Determines whether you can zoom the viewport by scrolling inside the minimap.
|
||||
* @default false
|
||||
*/
|
||||
zoomable?: boolean;
|
||||
/**
|
||||
* There is no text inside the minimap for a screen reader to use as an accessible name, so it's
|
||||
* important we provide one to make the minimap accessible. The default is sufficient, but you may
|
||||
* want to replace it with something more relevant to your app or product.
|
||||
* @default "Mini Map"
|
||||
*/
|
||||
ariaLabel?: string | null;
|
||||
/** Invert direction when panning the minimap viewport. */
|
||||
inversePan?: boolean;
|
||||
/**
|
||||
* Step size for zooming in/out on minimap.
|
||||
* @default 10
|
||||
*/
|
||||
zoomStep?: number;
|
||||
/**
|
||||
* Offset the viewport on the minimap, acts like a padding.
|
||||
* @default 5
|
||||
*/
|
||||
offsetScale?: number;
|
||||
};
|
||||
export type MiniMapNodes<NodeType extends Node = Node> = Pick<MiniMapProps<NodeType>, 'nodeColor' | 'nodeStrokeColor' | 'nodeClassName' | 'nodeBorderRadius' | 'nodeStrokeWidth' | 'nodeComponent'> & {
|
||||
onClick?: (event: MouseEvent, nodeId: string) => void;
|
||||
};
|
||||
/**
|
||||
* The props that are passed to the MiniMapNode component
|
||||
*
|
||||
* @public
|
||||
* @expand
|
||||
*/
|
||||
export type MiniMapNodeProps = {
|
||||
id: string;
|
||||
x: number;
|
||||
y: number;
|
||||
width: number;
|
||||
height: number;
|
||||
borderRadius: number;
|
||||
className: string;
|
||||
color?: string;
|
||||
shapeRendering: string;
|
||||
strokeColor?: string;
|
||||
strokeWidth?: number;
|
||||
style?: CSSProperties;
|
||||
selected: boolean;
|
||||
onClick?: (event: MouseEvent, id: string) => void;
|
||||
};
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/types.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/MiniMap/types.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/MiniMap/types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACtF,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,MAAM,uBAAuB,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,CAAC,IAAI,EAAE,QAAQ,KAAK,MAAM,CAAC;AAE/F;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC,GAAG;IACxG;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IACvD;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC7D;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;IAC3D;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC;IAChD,mCAAmC;IACnC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,KAAK,IAAI,CAAC;IAC5D,uDAAuD;IACvD,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,KAAK,IAAI,CAAC;IAC1D;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,0DAA0D;IAC1D,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,QAAQ,SAAS,IAAI,GAAG,IAAI,IAAI,IAAI,CAC3D,YAAY,CAAC,QAAQ,CAAC,EACtB,WAAW,GAAG,iBAAiB,GAAG,eAAe,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,eAAe,CAC7G,GAAG;IACF,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,EAAE,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnD,CAAC"}
|
||||
11
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts
generated
vendored
Normal file
11
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
import type { ResizeControlProps, ResizeControlLineProps } from './types';
|
||||
declare function ResizeControl({ nodeId, position, variant, className, style, children, color, minWidth, minHeight, maxWidth, maxHeight, keepAspectRatio, resizeDirection, autoScale, shouldResize, onResizeStart, onResize, onResizeEnd, }: ResizeControlProps): import("react/jsx-runtime").JSX.Element;
|
||||
export declare function ResizeControlLine(props: ResizeControlLineProps): import("react/jsx-runtime").JSX.Element;
|
||||
/**
|
||||
* To create your own resizing UI, you can use the `NodeResizeControl` component where you can pass children (such as icons).
|
||||
* @public
|
||||
*
|
||||
*/
|
||||
export declare const NodeResizeControl: import("react").MemoExoticComponent<typeof ResizeControl>;
|
||||
export {};
|
||||
//# sourceMappingURL=NodeResizeControl.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizeControl.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"NodeResizeControl.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/NodeResizeControl.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAW1E,iBAAS,aAAa,CAAC,EACrB,MAAM,EACN,QAAQ,EACR,OAAqC,EACrC,SAAS,EACT,KAAiB,EACjB,QAAQ,EACR,KAAK,EACL,QAAa,EACb,SAAc,EACd,QAA2B,EAC3B,SAA4B,EAC5B,eAAuB,EACvB,eAAe,EACf,SAAgB,EAChB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,GACZ,EAAE,kBAAkB,2CA4KpB;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,2CAE9D;AAED;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,2DAAsB,CAAC"}
|
||||
27
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts
generated
vendored
Normal file
27
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts
generated
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
import type { NodeResizerProps } from './types';
|
||||
/**
|
||||
* The `<NodeResizer />` component can be used to add a resize functionality to your
|
||||
* nodes. It renders draggable controls around the node to resize in all directions.
|
||||
* @public
|
||||
*
|
||||
* @example
|
||||
*```jsx
|
||||
*import { memo } from 'react';
|
||||
*import { Handle, Position, NodeResizer } from '@xyflow/react';
|
||||
*
|
||||
*function ResizableNode({ data }) {
|
||||
* return (
|
||||
* <>
|
||||
* <NodeResizer minWidth={100} minHeight={30} />
|
||||
* <Handle type="target" position={Position.Left} />
|
||||
* <div style={{ padding: 10 }}>{data.label}</div>
|
||||
* <Handle type="source" position={Position.Right} />
|
||||
* </>
|
||||
* );
|
||||
*};
|
||||
*
|
||||
*export default memo(ResizableNode);
|
||||
*```
|
||||
*/
|
||||
export declare function NodeResizer({ nodeId, isVisible, handleClassName, handleStyle, lineClassName, lineStyle, color, minWidth, minHeight, maxWidth, maxHeight, keepAspectRatio, autoScale, shouldResize, onResizeStart, onResize, onResizeEnd, }: NodeResizerProps): import("react/jsx-runtime").JSX.Element | null;
|
||||
//# sourceMappingURL=NodeResizer.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/NodeResizer.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"NodeResizer.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/NodeResizer.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,SAAgB,EAChB,eAAe,EACf,WAAW,EACX,aAAa,EACb,SAAS,EACT,KAAK,EACL,QAAa,EACb,SAAc,EACd,QAA2B,EAC3B,SAA4B,EAC5B,eAAuB,EACvB,SAAgB,EAChB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,GACZ,EAAE,gBAAgB,kDAkDlB"}
|
||||
4
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/index.d.ts
generated
vendored
Normal file
4
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
export { NodeResizer } from './NodeResizer';
|
||||
export { NodeResizeControl } from './NodeResizeControl';
|
||||
export * from './types';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,cAAc,SAAS,CAAC"}
|
||||
97
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/types.d.ts
generated
vendored
Normal file
97
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,97 @@
|
||||
import type { CSSProperties, ReactNode } from 'react';
|
||||
import type { ControlPosition, ControlLinePosition, ResizeControlVariant, ResizeControlDirection, ShouldResize, OnResizeStart, OnResize, OnResizeEnd } from '@xyflow/system';
|
||||
/**
|
||||
* @expand
|
||||
*/
|
||||
export type NodeResizerProps = {
|
||||
/**
|
||||
* Id of the node it is resizing.
|
||||
* @remarks optional if used inside custom node
|
||||
*/
|
||||
nodeId?: string;
|
||||
/** Color of the resize handle. */
|
||||
color?: string;
|
||||
/** Class name applied to handle. */
|
||||
handleClassName?: string;
|
||||
/** Style applied to handle. */
|
||||
handleStyle?: CSSProperties;
|
||||
/** Class name applied to line. */
|
||||
lineClassName?: string;
|
||||
/** Style applied to line. */
|
||||
lineStyle?: CSSProperties;
|
||||
/**
|
||||
* Are the controls visible.
|
||||
* @default true
|
||||
*/
|
||||
isVisible?: boolean;
|
||||
/**
|
||||
* Minimum width of node.
|
||||
* @default 10
|
||||
*/
|
||||
minWidth?: number;
|
||||
/**
|
||||
* Minimum height of node.
|
||||
* @default 10
|
||||
*/
|
||||
minHeight?: number;
|
||||
/**
|
||||
* Maximum width of node.
|
||||
* @default Number.MAX_VALUE
|
||||
*/
|
||||
maxWidth?: number;
|
||||
/**
|
||||
* Maximum height of node.
|
||||
* @default Number.MAX_VALUE
|
||||
*/
|
||||
maxHeight?: number;
|
||||
/**
|
||||
* Keep aspect ratio when resizing.
|
||||
* @default false
|
||||
*/
|
||||
keepAspectRatio?: boolean;
|
||||
/**
|
||||
* Scale the controls with the zoom level.
|
||||
* @default true
|
||||
*/
|
||||
autoScale?: boolean;
|
||||
/** Callback to determine if node should resize. */
|
||||
shouldResize?: ShouldResize;
|
||||
/** Callback called when resizing starts. */
|
||||
onResizeStart?: OnResizeStart;
|
||||
/** Callback called when resizing. */
|
||||
onResize?: OnResize;
|
||||
/** Callback called when resizing ends. */
|
||||
onResizeEnd?: OnResizeEnd;
|
||||
};
|
||||
/**
|
||||
* @expand
|
||||
*/
|
||||
export type ResizeControlProps = Pick<NodeResizerProps, 'nodeId' | 'color' | 'minWidth' | 'minHeight' | 'maxWidth' | 'maxHeight' | 'keepAspectRatio' | 'shouldResize' | 'autoScale' | 'onResizeStart' | 'onResize' | 'onResizeEnd'> & {
|
||||
/**
|
||||
* Position of the control.
|
||||
* @example ControlPosition.TopLeft, ControlPosition.TopRight,
|
||||
* ControlPosition.BottomLeft, ControlPosition.BottomRight
|
||||
*/
|
||||
position?: ControlPosition;
|
||||
/**
|
||||
* Variant of the control.
|
||||
* @default "handle"
|
||||
* @example ResizeControlVariant.Handle, ResizeControlVariant.Line
|
||||
*/
|
||||
variant?: ResizeControlVariant;
|
||||
/**
|
||||
* The direction the user can resize the node.
|
||||
* If not provided, the user can resize in any direction.
|
||||
*/
|
||||
resizeDirection?: ResizeControlDirection;
|
||||
className?: string;
|
||||
style?: CSSProperties;
|
||||
children?: ReactNode;
|
||||
};
|
||||
/**
|
||||
* @expand
|
||||
*/
|
||||
export type ResizeControlLineProps = Omit<ResizeControlProps, 'resizeDirection'> & {
|
||||
position?: ControlLinePosition;
|
||||
};
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/types.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeResizer/types.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeResizer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACnB,oBAAoB,EACpB,sBAAsB,EACtB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oCAAoC;IACpC,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,+BAA+B;IAC/B,WAAW,CAAC,EAAE,aAAa,CAAC;IAC5B,kCAAkC;IAClC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,6BAA6B;IAC7B,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,mDAAmD;IACnD,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,4CAA4C;IAC5C,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,qCAAqC;IACrC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,0CAA0C;IAC1C,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,gBAAgB,EACd,QAAQ,GACR,OAAO,GACP,UAAU,GACV,WAAW,GACX,UAAU,GACV,WAAW,GACX,iBAAiB,GACjB,cAAc,GACd,WAAW,GACX,eAAe,GACf,UAAU,GACV,aAAa,CAChB,GAAG;IACF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,oBAAoB,CAAC;IAC/B;;;OAGG;IACH,eAAe,CAAC,EAAE,sBAAsB,CAAC;IACzC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,SAAS,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,kBAAkB,EAAE,iBAAiB,CAAC,GAAG;IACjF,QAAQ,CAAC,EAAE,mBAAmB,CAAC;CAChC,CAAC"}
|
||||
38
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts
generated
vendored
Normal file
38
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
import type { NodeToolbarProps } from './types';
|
||||
/**
|
||||
* This component can render a toolbar or tooltip to one side of a custom node. This
|
||||
* toolbar doesn't scale with the viewport so that the content is always visible.
|
||||
*
|
||||
* @public
|
||||
* @example
|
||||
* ```jsx
|
||||
*import { memo } from 'react';
|
||||
*import { Handle, Position, NodeToolbar } from '@xyflow/react';
|
||||
*
|
||||
*function CustomNode({ data }) {
|
||||
* return (
|
||||
* <>
|
||||
* <NodeToolbar isVisible={data.toolbarVisible} position={data.toolbarPosition}>
|
||||
* <button>delete</button>
|
||||
* <button>copy</button>
|
||||
* <button>expand</button>
|
||||
* </NodeToolbar>
|
||||
*
|
||||
* <div style={{ padding: '10px 20px' }}>
|
||||
* {data.label}
|
||||
* </div>
|
||||
*
|
||||
* <Handle type="target" position={Position.Left} />
|
||||
* <Handle type="source" position={Position.Right} />
|
||||
* </>
|
||||
* );
|
||||
*};
|
||||
*
|
||||
*export default memo(CustomNode);
|
||||
*```
|
||||
* @remarks By default, the toolbar is only visible when a node is selected. If multiple
|
||||
* nodes are selected it will not be visible to prevent overlapping toolbars or
|
||||
* clutter. You can override this behavior by setting the `isVisible` prop to `true`.
|
||||
*/
|
||||
export declare function NodeToolbar({ nodeId, children, className, style, isVisible, position, offset, align, ...rest }: NodeToolbarProps): import("react/jsx-runtime").JSX.Element | null;
|
||||
//# sourceMappingURL=NodeToolbar.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbar.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"NodeToolbar.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeToolbar/NodeToolbar.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AA+BhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,WAAW,CAAC,EAC1B,MAAM,EACN,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,QAAuB,EACvB,MAAW,EACX,KAAgB,EAChB,GAAG,IAAI,EACR,EAAE,gBAAgB,kDAwDlB"}
|
||||
5
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbarPortal.d.ts
generated
vendored
Normal file
5
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbarPortal.d.ts
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
import { ReactNode } from 'react';
|
||||
export declare function NodeToolbarPortal({ children }: {
|
||||
children: ReactNode;
|
||||
}): import("react").ReactPortal | null;
|
||||
//# sourceMappingURL=NodeToolbarPortal.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbarPortal.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/NodeToolbarPortal.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"NodeToolbarPortal.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeToolbar/NodeToolbarPortal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAQlC,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sCAQtE"}
|
||||
3
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/index.d.ts
generated
vendored
Normal file
3
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
export { NodeToolbar } from './NodeToolbar';
|
||||
export type { NodeToolbarProps } from './types';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeToolbar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC"}
|
||||
32
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/types.d.ts
generated
vendored
Normal file
32
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/types.d.ts
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
import type { HTMLAttributes } from 'react';
|
||||
import type { Position, Align } from '@xyflow/system';
|
||||
/**
|
||||
* @expand
|
||||
*/
|
||||
export type NodeToolbarProps = HTMLAttributes<HTMLDivElement> & {
|
||||
/**
|
||||
* By passing in an array of node id's you can render a single tooltip for a group or collection
|
||||
* of nodes.
|
||||
*/
|
||||
nodeId?: string | string[];
|
||||
/** If `true`, node toolbar is visible even if node is not selected. */
|
||||
isVisible?: boolean;
|
||||
/**
|
||||
* Position of the toolbar relative to the node.
|
||||
* @default Position.Top
|
||||
* @example Position.TopLeft, Position.TopRight, Position.BottomLeft, Position.BottomRight
|
||||
*/
|
||||
position?: Position;
|
||||
/**
|
||||
* The space between the node and the toolbar, measured in pixels.
|
||||
* @default 10
|
||||
*/
|
||||
offset?: number;
|
||||
/**
|
||||
* Align the toolbar relative to the node.
|
||||
* @default "center"
|
||||
* @example Align.Start, Align.Center, Align.End
|
||||
*/
|
||||
align?: Align;
|
||||
};
|
||||
//# sourceMappingURL=types.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/types.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/NodeToolbar/types.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/additional-components/NodeToolbar/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,cAAc,CAAC,GAAG;IAC9D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC;CACf,CAAC"}
|
||||
7
node_modules/@xyflow/react/dist/umd/additional-components/index.d.ts
generated
vendored
Normal file
7
node_modules/@xyflow/react/dist/umd/additional-components/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
export * from './Background';
|
||||
export * from './Controls';
|
||||
export * from './MiniMap';
|
||||
export * from './NodeResizer';
|
||||
export * from './NodeToolbar';
|
||||
export * from './EdgeToolbar';
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/@xyflow/react/dist/umd/additional-components/index.d.ts.map
generated
vendored
Normal file
1
node_modules/@xyflow/react/dist/umd/additional-components/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/additional-components/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
||||
Reference in New Issue
Block a user