@squeed/flow-sdk 2.0.7 → 2.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +46 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +6609 -6503
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -275,6 +275,7 @@ export declare function FlowDiagram({ loading, loader, ...props }: FlowDiagramPr
|
|
|
275
275
|
|
|
276
276
|
/** Event callbacks for the flow diagram */
|
|
277
277
|
export declare interface FlowDiagramCallbacks {
|
|
278
|
+
onGraphEdgeColorChange?: (color: string) => void;
|
|
278
279
|
onAllNodesIconLabelChange?: (enabled: boolean) => void;
|
|
279
280
|
onNodeCreateRequest?: (request: FlowNodeCreationRequest) => boolean;
|
|
280
281
|
onFormSchemaChange?: (schema: FormSchema | undefined) => void;
|
|
@@ -468,6 +469,7 @@ export declare interface FlowDiagramContextValue {
|
|
|
468
469
|
backgroundSelected: boolean;
|
|
469
470
|
setBackgroundSelected: (selected: boolean) => void;
|
|
470
471
|
edgeColor: string;
|
|
472
|
+
setEdgeColor: (color: string) => void;
|
|
471
473
|
colorMode: "light" | "dark";
|
|
472
474
|
direction: string;
|
|
473
475
|
nodeAlignment: NodeAlignment;
|
|
@@ -512,7 +514,7 @@ export declare interface FlowDiagramEdge {
|
|
|
512
514
|
};
|
|
513
515
|
label?: string;
|
|
514
516
|
icon?: string;
|
|
515
|
-
/** Chakra token or hex; overrides the
|
|
517
|
+
/** Chakra token or hex; overrides the default unless a graph-wide edgeColor is selected. */
|
|
516
518
|
color?: string;
|
|
517
519
|
isInverted?: boolean;
|
|
518
520
|
isEdgeAnimated?: boolean;
|
|
@@ -617,7 +619,7 @@ export declare interface FlowEngine {
|
|
|
617
619
|
/** Temporarily show only this branch and fit it, preserving graph data. */
|
|
618
620
|
isolateBranch(id: string, padding?: number, animate?: boolean): void;
|
|
619
621
|
/** End isolation and restore the viewport saved when isolation began. */
|
|
620
|
-
restoreView(animate?: boolean): void;
|
|
622
|
+
restoreView(animate?: boolean, state?: ViewportState): void;
|
|
621
623
|
/** Hide/show edge paths, labels and hit targets without changing graph data. */
|
|
622
624
|
setEdgesVisible(visible: boolean): void;
|
|
623
625
|
clientToModel(clientX: number, clientY: number): Point;
|
package/dist/index.d.ts
CHANGED
|
@@ -275,6 +275,7 @@ export declare function FlowDiagram({ loading, loader, ...props }: FlowDiagramPr
|
|
|
275
275
|
|
|
276
276
|
/** Event callbacks for the flow diagram */
|
|
277
277
|
export declare interface FlowDiagramCallbacks {
|
|
278
|
+
onGraphEdgeColorChange?: (color: string) => void;
|
|
278
279
|
onAllNodesIconLabelChange?: (enabled: boolean) => void;
|
|
279
280
|
onNodeCreateRequest?: (request: FlowNodeCreationRequest) => boolean;
|
|
280
281
|
onFormSchemaChange?: (schema: FormSchema | undefined) => void;
|
|
@@ -468,6 +469,7 @@ export declare interface FlowDiagramContextValue {
|
|
|
468
469
|
backgroundSelected: boolean;
|
|
469
470
|
setBackgroundSelected: (selected: boolean) => void;
|
|
470
471
|
edgeColor: string;
|
|
472
|
+
setEdgeColor: (color: string) => void;
|
|
471
473
|
colorMode: "light" | "dark";
|
|
472
474
|
direction: string;
|
|
473
475
|
nodeAlignment: NodeAlignment;
|
|
@@ -512,7 +514,7 @@ export declare interface FlowDiagramEdge {
|
|
|
512
514
|
};
|
|
513
515
|
label?: string;
|
|
514
516
|
icon?: string;
|
|
515
|
-
/** Chakra token or hex; overrides the
|
|
517
|
+
/** Chakra token or hex; overrides the default unless a graph-wide edgeColor is selected. */
|
|
516
518
|
color?: string;
|
|
517
519
|
isInverted?: boolean;
|
|
518
520
|
isEdgeAnimated?: boolean;
|
|
@@ -617,7 +619,7 @@ export declare interface FlowEngine {
|
|
|
617
619
|
/** Temporarily show only this branch and fit it, preserving graph data. */
|
|
618
620
|
isolateBranch(id: string, padding?: number, animate?: boolean): void;
|
|
619
621
|
/** End isolation and restore the viewport saved when isolation began. */
|
|
620
|
-
restoreView(animate?: boolean): void;
|
|
622
|
+
restoreView(animate?: boolean, state?: ViewportState): void;
|
|
621
623
|
/** Hide/show edge paths, labels and hit targets without changing graph data. */
|
|
622
624
|
setEdgesVisible(visible: boolean): void;
|
|
623
625
|
clientToModel(clientX: number, clientY: number): Point;
|