Skip to content

Commit 6804624

Browse files
committed
Fix some errors
1 parent fccf190 commit 6804624

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

main.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ class Graph3DView extends ItemView {
167167
this.renderSettingsPanel();
168168
}
169169

170-
private renderSettingsPanel() {
170+
// --- FIX: Method made public to be accessible from SettingsTab ---
171+
public renderSettingsPanel() {
171172
this.settingsPanel.empty();
172173

173174
this.renderSearchSettings(this.settingsPanel);
@@ -178,6 +179,11 @@ class Graph3DView extends ItemView {
178179
this.renderForceSettings(this.settingsPanel);
179180
}
180181

182+
// --- FIX: New public helper method ---
183+
public isSettingsPanelOpen(): boolean {
184+
return this.settingsPanel?.classList.contains('is-open');
185+
}
186+
181187
private renderSearchSettings(container: HTMLElement) {
182188
new Setting(container).setHeading().setName('Search');
183189
new Setting(container)

0 commit comments

Comments
 (0)