File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
diagram-editor/frontend/nodes Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11import type { NodeProps } from '@xyflow/react' ;
22import type { OperationNode } from '.' ;
3- import BaseNode from './base-node' ;
3+ import BaseNode , { HandleType } from './base-node' ;
44import { ListenIcon } from './icons' ;
55
66function ListenNodeComp ( props : NodeProps < OperationNode < 'listen' > > ) {
@@ -10,6 +10,7 @@ function ListenNodeComp(props: NodeProps<OperationNode<'listen'>>) {
1010 icon = { < ListenIcon /> }
1111 label = "Listen"
1212 variant = "inputOutput"
13+ inputHandleType = { HandleType . Buffer }
1314 />
1415 ) ;
1516}
Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ function ScopeNodeComp({
3333 type = "source"
3434 position = { sourcePosition }
3535 isConnectable = { isConnectable }
36+ className = "handle-data-stream"
3637 />
3738 </ >
3839 ) ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import type { NextOperation } from '../types/api';
33import type { Node } from '../types/react-flow' ;
44import { isSectionBuilder } from '../utils/operation' ;
55import type { OperationNode } from '.' ;
6- import BaseNode from './base-node' ;
6+ import BaseNode , { HandleType } from './base-node' ;
77import {
88 SectionBufferIcon ,
99 SectionIcon ,
@@ -43,6 +43,7 @@ export function SectionNodeComp(props: NodeProps<OperationNode<'section'>>) {
4343 icon = { < SectionIcon /> }
4444 label = { label }
4545 variant = "inputOutput"
46+ inputHandleType = { HandleType . DataBuffer }
4647 />
4748 ) ;
4849}
@@ -89,6 +90,7 @@ export function SectionBufferNodeComp(props: NodeProps<SectionBufferNode>) {
8990 label = "Section Buffer"
9091 variant = "output"
9192 caption = { props . data . remappedId }
93+ outputHandleType = { HandleType . Buffer }
9294 />
9395 ) ;
9496}
You can’t perform that action at this time.
0 commit comments