@@ -9,16 +9,10 @@ import { CircuitBoardLines } from './CircuitBoardLines.js';
99const quickConnection = new QuickConnection ( ) ;
1010quickConnection . init ( ) ;
1111
12- const circuitBoardLines = new CircuitBoardLines ( ) ;
13- circuitBoardLines . init ( ) ;
14-
15- const ext = {
12+ const quickConnectionsExt = {
1613 name : "Quick Connections" ,
17-
1814 init ( ) {
1915 quickConnection . initListeners ( app . canvas ) ;
20- circuitBoardLines . initOverrides ( app . canvas ) ;
21-
2216 const quickConnectionId = "quick-connections" ;
2317 const quickConnectionEnableId = `${ quickConnectionId } .enable` ;
2418 app . ui . settings . addSetting ( {
@@ -47,6 +41,15 @@ const ext = {
4741 return app . graph . change . apply ( app . graph , args ) ;
4842 } ,
4943 } ) ;
44+ } ,
45+ } ;
46+
47+ const circuitBoardLinesExt = {
48+ name : "Circuit Board Lines" ,
49+ init ( ) {
50+ const circuitBoardLines = new CircuitBoardLines ( ) ;
51+ circuitBoardLines . init ( ) ;
52+ circuitBoardLines . initOverrides ( app . canvas ) ;
5053
5154 const circuitBoardId = "circuit-board-lines" ;
5255 const circuitBoardEnableId = `${ circuitBoardId } .enable` ;
@@ -91,4 +94,5 @@ const ext = {
9194 } ,
9295} ;
9396
94- app . registerExtension ( ext ) ;
97+ app . registerExtension ( quickConnectionsExt ) ;
98+ app . registerExtension ( circuitBoardLinesExt ) ;
0 commit comments