@@ -4,7 +4,7 @@ import { Tooltip } from "bootstrap";
4
4
import { Editor } from "./editor.js" ;
5
5
import { Balloon } from "./balloon.js" ;
6
6
import { StructureView } from "./structure_view.js" ;
7
- import { SyntaxView } from "./syntax_view .js" ;
7
+ import { LoopupView } from "./lookup_view .js" ;
8
8
import { StatisticsView } from "./statistics_view.js" ;
9
9
import { WebSocketClient } from "./websocket.js" ;
10
10
import { debounce } from "./debounce.js" ;
@@ -24,8 +24,8 @@ export class App {
24
24
this . structureView = new StructureView (
25
25
document . getElementById ( "structure" )
26
26
) ;
27
- this . syntaxView = new SyntaxView (
28
- document . getElementById ( "syntax -container" )
27
+ this . loopupView = new LoopupView (
28
+ document . getElementById ( "lookup -container" )
29
29
) ;
30
30
this . statisticsView = new StatisticsView (
31
31
document . getElementById ( "statistics-container" )
@@ -117,7 +117,7 @@ export class App {
117
117
) ;
118
118
119
119
this . updateStructure ( structureData ) ;
120
- this . updateSyntaxMap ( data . syntaxHTML ) ;
120
+ this . updateLookup ( data . syntaxHTML ) ;
121
121
122
122
const statistics = structureData
123
123
. filter ( ( node ) => node . token === undefined )
@@ -136,7 +136,7 @@ export class App {
136
136
} )
137
137
. catch ( ( error ) => {
138
138
this . structureView . error = error ;
139
- this . syntaxView . error = error ;
139
+ this . loopupView . error = error ;
140
140
this . statisticsView . error = error ;
141
141
} )
142
142
. finally ( ( ) => {
@@ -163,8 +163,8 @@ export class App {
163
163
} ;
164
164
}
165
165
166
- updateSyntaxMap ( syntaxHTML ) {
167
- this . syntaxView . update ( syntaxHTML ) ;
166
+ updateLookup ( syntaxHTML ) {
167
+ this . loopupView . update ( syntaxHTML ) ;
168
168
}
169
169
170
170
updateStatistics ( statistics ) {
@@ -185,7 +185,7 @@ export class App {
185
185
this . editor . refresh ( ) ;
186
186
187
187
document . getElementById ( "structure" ) . style . height = this . contentViewHeight ;
188
- document . getElementById ( "syntax -container" ) . style . height =
188
+ document . getElementById ( "lookup -container" ) . style . height =
189
189
this . contentViewHeight ;
190
190
document . getElementById ( "statistics-container" ) . style . height =
191
191
this . contentViewHeight ;
0 commit comments