Skip to content

Commit ef5ce21

Browse files
committed
some housekeeping, commented out image feature, jest debug logging
1 parent cd9aa9b commit ef5ce21

7 files changed

Lines changed: 5585 additions & 3164 deletions

File tree

.github/labeler.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
documentation:
1+
docs:
22
- "README.md"
33
- "images/**/*"
44

5-
plugin:
5+
code:
66
- "src/**/*.ts"
77

8-
styles:
8+
style:
99
- "src/styles.scss"
1010

1111
automation:

jest.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
console.log('jest config loaded')
2+
13
export default {
24
roots: ["<rootDir>/src"],
35
testMatch: ["**/__tests__/**/*.+(ts)"],
46
preset: "ts-jest/presets/js-with-ts",
57
testEnvironment: "node",
6-
verbose: true,
78
transformIgnorePatterns: ["<rootDir>/node_modules/"],
89
};

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"id": "obsidian-functionplot",
33
"name": "Obsidian Functionplot",
4-
"minAppVersion": "0.12.2",
4+
"minAppVersion": "0.16.3",
55
"description": "A plugin for displaying mathematical graphs in obsidian.md.",
66
"author": "leonhma",
77
"authorUrl": "https://github.com/leonhma",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
},
3535
"dependencies": {
3636
"function-plot": "^1.23.1",
37-
"obsidian": "^0.16.3"
37+
"obsidian": "0.16.3"
3838
}
3939
}

src/app/CreatePlotModal.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Chart } from "function-plot";
22
import { FunctionPlotDatum } from "function-plot/dist/types";
33
import { Editor, Modal, Setting } from "obsidian";
4-
import { DEFAULT_PLOT_OPTIONS, rendererOptions } from "../common/defaults";
4+
import { DEFAULT_PLOT_OPTIONS } from "../common/defaults";
55
import { PlotOptions, rendererType, Line } from "../common/types";
66
import type ObsidianFunctionPlot from "../main";
77
import { createPlot, renderPlotAsInteractive } from "../common/utils";
@@ -156,14 +156,14 @@ export default class CreatePlotModal extends Modal {
156156
});
157157

158158
new Setting(contentEl)
159-
.addDropdown((com) => {
159+
/*.addDropdown((com) => {
160160
com
161161
.addOptions(rendererOptions)
162162
.setValue(this.plugin.settings.defaultRenderer)
163163
.onChange((value: rendererType) => {
164164
this.renderer = value;
165165
});
166-
})
166+
})*/
167167
.addButton((btn) => {
168168
btn
169169
.setButtonText("Plot")

src/app/SettingsTab.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import {
66
ValueComponent,
77
} from "obsidian";
88
import type ObsidianFunctionPlot from "../main.js";
9-
import { DEFAULT_PLUGIN_SETTINGS, rendererOptions } from "../common/defaults";
10-
import { PluginSettings, rendererType } from "../common/types";
9+
import { DEFAULT_PLUGIN_SETTINGS } from "../common/defaults";
10+
import { PluginSettings } from "../common/types";
1111

1212
export default class SettingsTab extends PluginSettingTab {
1313
plugin: ObsidianFunctionPlot;
@@ -30,7 +30,7 @@ export default class SettingsTab extends PluginSettingTab {
3030
*/
3131

3232
containerEl.createEl("h3", { text: "Default Plot Options" });
33-
33+
/*
3434
new Setting(containerEl)
3535
.setName("Default Render Type")
3636
.setDesc("The default renderer to use.")
@@ -44,7 +44,7 @@ export default class SettingsTab extends PluginSettingTab {
4444
await this.plugin.saveSettings();
4545
});
4646
});
47-
47+
*/
4848
/*
4949
* Font Sizes
5050
*/

0 commit comments

Comments
 (0)