diff options
author | bobzel <zzzman@gmail.com> | 2021-03-03 14:26:11 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-03 14:26:11 -0500 |
commit | d34acff5fcfa5fefa94d9b27af2dde45227d39ab (patch) | |
tree | cc1b2d32163d7d3c591cbaefcb94315cda463e10 /src/client/views/nodes/FunctionPlotBox.tsx | |
parent | 0fb14423e900f4c808ac2db882f6425ef1acf072 (diff) | |
parent | 0bf64d5c4bfc62203fa0a024f994a32e23b0effd (diff) |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/nodes/FunctionPlotBox.tsx')
-rw-r--r-- | src/client/views/nodes/FunctionPlotBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/FunctionPlotBox.tsx b/src/client/views/nodes/FunctionPlotBox.tsx index bf49170f1..f35677014 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 { |