aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/FunctionPlotBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-03-03 14:25:38 -0500
committerbobzel <zzzman@gmail.com>2021-03-03 14:25:38 -0500
commit0bf64d5c4bfc62203fa0a024f994a32e23b0effd (patch)
treeda465e4c76ca15f40693b02b49e4ef6d20107ab5 /src/client/views/nodes/FunctionPlotBox.tsx
parentc38c7966539cc97e98dd2f836420ca8863bd35fb (diff)
trying out a forked branch of equation editor. cleaned up warnings.
Diffstat (limited to 'src/client/views/nodes/FunctionPlotBox.tsx')
-rw-r--r--src/client/views/nodes/FunctionPlotBox.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/FunctionPlotBox.tsx b/src/client/views/nodes/FunctionPlotBox.tsx
index ccbbb2364..52b1d39fd 100644
--- a/src/client/views/nodes/FunctionPlotBox.tsx
+++ b/src/client/views/nodes/FunctionPlotBox.tsx
@@ -54,8 +54,8 @@ export class FunctionPlotBox extends ViewBoxBaseComponent<FieldViewProps, Equati
}
createGraph = (ele?: HTMLDivElement) => {
this._plotEle = ele || this._plotEle;
- let width = this.props.PanelWidth();
- let height = this.props.PanelHeight();
+ const width = this.props.PanelWidth();
+ const height = this.props.PanelHeight();
const fn = StrCast(DocListCast(this.dataDoc.data).lastElement()?.text, "x^2").replace(/\\frac\{(.*)\}\{(.*)\}/, "($1/$2)");
console.log("Graphing:" + fn);
try {