@@ -26,7 +26,7 @@ export default function CCComponentEditorRendererNodePin({
2626 const nodePin = nullthrows ( store . nodePins . get ( nodePinId ) ) ;
2727 const node = nullthrows ( store . nodes . get ( nodePin . nodeId ) ) ;
2828 const componentPin = nullthrows (
29- store . componentPins . get ( nodePin . componentPinId )
29+ store . componentPins . get ( nodePin . componentPinId ) ,
3030 ) ;
3131
3232 const [ draggingState , setDraggingState ] = useState < {
@@ -37,7 +37,7 @@ export default function CCComponentEditorRendererNodePin({
3737 let nodePinPositionKDTree = draggingState ?. nodePinPositionKDTree ;
3838 if ( ! nodePinPositionKDTree ) {
3939 const nodes = store . nodes . getManyByParentComponentId (
40- node . parentComponentId
40+ node . parentComponentId ,
4141 ) ;
4242 nodePinPositionKDTree = KDTree . from (
4343 nodes
@@ -49,19 +49,19 @@ export default function CCComponentEditorRendererNodePin({
4949 . flatMap ( ( [ yourNodePinId , yourNodePinPosition ] ) => {
5050 const yourNodePin = nullthrows ( store . nodePins . get ( yourNodePinId ) ) ;
5151 const yourComponentPin = nullthrows (
52- store . componentPins . get ( yourNodePin . componentPinId )
52+ store . componentPins . get ( yourNodePin . componentPinId ) ,
5353 ) ;
5454 if ( yourComponentPin . type === componentPin . type ) return [ ] ;
5555 return [
5656 [ yourNodePinId , [ yourNodePinPosition . x , yourNodePinPosition . y ] ] ,
5757 ] as const ;
5858 } ) ,
59- 2
59+ 2 ,
6060 ) ;
6161 }
6262 setDraggingState ( {
6363 cursorPosition : componentEditorState . fromCanvasToStage (
64- vector2 . fromDomEvent ( e . nativeEvent )
64+ vector2 . fromDomEvent ( e . nativeEvent ) ,
6565 ) ,
6666 nodePinPositionKDTree,
6767 } ) ;
@@ -79,12 +79,12 @@ export default function CCComponentEditorRendererNodePin({
7979 const nearestNodePinPosition = nullthrows (
8080 getCCComponentEditorRendererNodeGeometry (
8181 store ,
82- nearestNodePin . nodeId
83- ) . nodePinPositionById . get ( nearestNodePinId )
82+ nearestNodePin . nodeId ,
83+ ) . nodePinPositionById . get ( nearestNodePinId ) ,
8484 ) ;
8585 const distance = Math . hypot (
8686 nearestNodePinPosition . x - draggingState . cursorPosition . x ,
87- nearestNodePinPosition . y - draggingState . cursorPosition . y
87+ nearestNodePinPosition . y - draggingState . cursorPosition . y ,
8888 ) ;
8989 if ( distance < NODE_PIN_POSITION_SENSITIVITY ) {
9090 nodePinIdToConnect = nearestNodePinId ;
@@ -102,7 +102,7 @@ export default function CCComponentEditorRendererNodePin({
102102 }
103103
104104 const isSimulationMode = useComponentEditorStore ( ) (
105- ( s ) => s . editorMode === "play"
105+ ( s ) => s . editorMode === "play" ,
106106 ) ;
107107 const hasNoConnection =
108108 store . connections . getConnectionsByNodePinId ( nodePinId ) . length === 0 ;
@@ -111,7 +111,7 @@ export default function CCComponentEditorRendererNodePin({
111111 const simulationValueToString = ( simulationValue : SimulationValue ) => {
112112 return simulationValue . reduce (
113113 ( acm , currentValue ) => acm + ( currentValue === true ? "1" : "0" ) ,
114- ""
114+ "" ,
115115 ) ;
116116 } ;
117117 const implementationComponentPin =
@@ -121,11 +121,11 @@ export default function CCComponentEditorRendererNodePin({
121121 if ( isSimulationMode && hasNoConnection ) {
122122 if ( implementationComponentPin ) {
123123 nodePinValue = nullthrows (
124- componentEditorState . getInputValue ( implementationComponentPin . id )
124+ componentEditorState . getInputValue ( implementationComponentPin . id ) ,
125125 ) ;
126126 } else {
127127 nodePinValue = nullthrows (
128- componentEditorState . getNodePinValue ( nodePinId )
128+ componentEditorState . getNodePinValue ( nodePinId ) ,
129129 ) ;
130130 }
131131 nodePinValueAsString = simulationValueToString ( nodePinValue ) ;
@@ -136,7 +136,7 @@ export default function CCComponentEditorRendererNodePin({
136136 updatedPinValue [ 0 ] = ! updatedPinValue [ 0 ] ;
137137 componentEditorState . setInputValue (
138138 implementationComponentPin . id ,
139- updatedPinValue
139+ updatedPinValue ,
140140 ) ;
141141 } ;
142142
@@ -169,7 +169,7 @@ export default function CCComponentEditorRendererNodePin({
169169 parentComponentId : node . parentComponentId ,
170170 ...route ,
171171 bentPortion : 0.5 ,
172- } )
172+ } ) ,
173173 ) ;
174174 } }
175175 onLostPointerCapture = { ( ) => {
0 commit comments