File tree Expand file tree Collapse file tree 3 files changed +19
-4
lines changed
app-canvas/src/app/components
visual-programming-system/src/components Expand file tree Collapse file tree 3 files changed +19
-4
lines changed Original file line number Diff line number Diff line change @@ -532,7 +532,7 @@ export function Toolbar<T extends BaseNodeInfo>(props: {
532532 return false ;
533533 } }
534534 >
535- < span class = "icon icon-arrow_right_alt px-2" />
535+ < span class = "inline-block icon icon-arrow_right_alt px-2 -rotate-45 scale-[1.5] " />
536536 </ button >
537537 < button
538538 getElement = { ( element : HTMLButtonElement ) => {
Original file line number Diff line number Diff line change @@ -13,5 +13,6 @@ export const getRectNodeCssClasses = () => {
1313 dragging : 'dragging' ,
1414 draggingNoPointer : 'pointer-events-none' ,
1515 draggingPointerAuto : 'pointer-events-auto' ,
16+ creatingConnection : 'cursor-crosshair' ,
1617 } ;
1718} ;
Original file line number Diff line number Diff line change @@ -394,12 +394,23 @@ export class RectThumb<T extends BaseNodeInfo> extends Rect<T> {
394394 // this.nodeComponent.id,
395395 // this.nodeComponent
396396 // );
397+
397398 ( this . nodeComponent . domElement as unknown as SVGElement ) . classList . remove (
398399 this . cssClasses . droppingCursorPointer
399400 ) ;
400- ( this . nodeComponent . domElement as unknown as SVGElement ) . classList . add (
401- this . cssClasses . droppingCursorPointer
402- ) ;
401+ const isCreatingConnecting =
402+ this . canvasApp ?. getCanvasAttribute ( 'mode' ) === 'create-connection' ;
403+
404+ if ( isCreatingConnecting ) {
405+ ( this . nodeComponent . domElement as unknown as SVGElement ) . classList . add (
406+ this . cssClasses . creatingConnection
407+ ) ;
408+ } else {
409+ ( this . nodeComponent . domElement as unknown as SVGElement ) . classList . add (
410+ this . cssClasses . droppingCursorPointer
411+ ) ;
412+ }
413+
403414 ( this . nodeComponent . domElement as unknown as SVGElement ) . classList . remove (
404415 this . cssClasses . droppingNotAllowed
405416 ) ;
@@ -577,6 +588,9 @@ export class RectThumb<T extends BaseNodeInfo> extends Rect<T> {
577588 ( this . nodeComponent . domElement as unknown as SVGElement ) . classList . remove (
578589 this . cssClasses . dropping
579590 ) ;
591+ ( this . nodeComponent . domElement as unknown as SVGElement ) . classList . remove (
592+ this . cssClasses . creatingConnection
593+ ) ;
580594
581595 ( this . nodeComponent . domElement as unknown as SVGElement ) . style . filter =
582596 'none' ;
You can’t perform that action at this time.
0 commit comments