Skip to content

Commit 7434707

Browse files
committed
plot working more or less
1 parent af1a57b commit 7434707

13 files changed

Lines changed: 264 additions & 64 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"yaml": "^2.1.3"
5151
},
5252
"dependencies": {
53+
"@smui/icon-button": "7.0.0-beta.14",
5354
"function-plot": "^1.23.1",
5455
"html-to-image": "^1.11.3",
5556
"obsidian": "0.16.3"

pnpm-lock.yaml

Lines changed: 175 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/defaults.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -42,21 +42,21 @@ export const DEFAULT_FUNCTION_INPUTS: Omit<FunctionInputs, "fn" | "r"> = {
4242
fnType: "linear",
4343
closed: false,
4444
offset: {
45-
x: null,
46-
y: null,
45+
x: undefined,
46+
y: undefined,
4747
},
4848
vector: {
49-
x: null,
50-
y: null,
49+
x: undefined,
50+
y: undefined,
5151
},
5252
range: {
53-
min: null,
54-
max: null,
53+
min: undefined,
54+
max: undefined,
5555
},
5656
skipTip: false,
57-
color: null,
57+
color: undefined,
5858
graphType: "polyline",
59-
nSamples: null,
59+
nSamples: undefined,
6060
};
6161

6262
export const FALLBACK_FUNCTION_INPUTS: DeepNonNullable<
@@ -85,23 +85,23 @@ export const DEFAULT_CONSTANT_INPUTS: ConstantInputs = {
8585
export const DEFAULT_PLOT_INPUTS: PlotInputs = {
8686
constants: {},
8787
xAxis: {
88-
label: null,
88+
label: undefined,
8989
domain: {
90-
min: null,
91-
max: null,
90+
min: undefined,
91+
max: undefined,
9292
},
9393
},
9494
yAxis: {
95-
label: null,
95+
label: undefined,
9696
domain: {
97-
min: null,
98-
max: null,
97+
min: undefined,
98+
max: undefined,
9999
},
100100
},
101101
grid: true,
102102
data: [],
103-
disableZoom: null,
104-
title: null,
103+
disableZoom: undefined,
104+
title: undefined,
105105
};
106106

107107
export const FALLBACK_PLOT_INPUTS: DeepNonNullable<

0 commit comments

Comments
 (0)