File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
1111automation :
Original file line number Diff line number Diff line change 1+ console . log ( 'jest config loaded' )
2+
13export 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} ;
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 3434 },
3535 "dependencies" : {
3636 "function-plot" : " ^1.23.1" ,
37- "obsidian" : " ^ 0.16.3"
37+ "obsidian" : " 0.16.3"
3838 }
3939}
Original file line number Diff line number Diff line change 11import { Chart } from "function-plot" ;
22import { FunctionPlotDatum } from "function-plot/dist/types" ;
33import { Editor , Modal , Setting } from "obsidian" ;
4- import { DEFAULT_PLOT_OPTIONS , rendererOptions } from "../common/defaults" ;
4+ import { DEFAULT_PLOT_OPTIONS } from "../common/defaults" ;
55import { PlotOptions , rendererType , Line } from "../common/types" ;
66import type ObsidianFunctionPlot from "../main" ;
77import { 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" )
Original file line number Diff line number Diff line change 66 ValueComponent ,
77} from "obsidian" ;
88import 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
1212export 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 */
You can’t perform that action at this time.
0 commit comments