Skip to content

Commit 30b8008

Browse files
committed
Updated dependancies
1 parent d95686d commit 30b8008

File tree

9 files changed

+309
-249
lines changed

9 files changed

+309
-249
lines changed

fluidProperties.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ export function props(desiredProperty, fluidName, fluidProperties) {
274274
value = [0, 0]
275275
}
276276

277-
const calcValue = Module.PropsSI(desiredProperty,
277+
const calcValue = coolprop.PropsSI(desiredProperty,
278278
prop[0], value[0],
279279
prop[1], value[1],
280280
fluidName)
@@ -298,7 +298,7 @@ export function HAprops(calcProp, fluidProperties) {
298298
toValue(arrayProperties[1][1], units[1]),
299299
toValue(arrayProperties[2][1], units[2])]
300300

301-
const calcValue = Module.HAPropsSI(calcProp,
301+
const calcValue = coolprop.HAPropsSI(calcProp,
302302
prop[0], value[0],
303303
prop[1], value[1],
304304
prop[2], value[2])

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
66
<title>Web thermodynamics</title>
7-
<script src="/coolprop.js"></script>
87
</head>
8+
<script src="/loadCoolprop.js" type="module"></script>
99
<body>
1010
<main x-data="app">
1111
<div id="editor" @doc-changed.camel.debounce="calcExpressions"

main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ Alpine.data(
7272
() => ({
7373
expressions: makeDoc("# # Type and get results - just like that!"),
7474
currentLine: 1,
75+
currentLineFrom: 1,
76+
currentLineTo: 1,
7577
get calcExpressions() {
7678
this.expressions = makeDoc(editor.state.doc.toString())
7779
},

package-lock.json

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

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
"preview": "vite preview"
1010
},
1111
"devDependencies": {
12-
"vite": "^6.3.0"
12+
"vite": "^7.2.7"
1313
},
1414
"dependencies": {
15-
"alpinejs": "^3.14.9",
16-
"codemirror": "^6.0.1",
15+
"alpinejs": "^3.15.3",
16+
"codemirror": "^6.0.2",
1717
"github-markdown-css": "^5.8.1",
18-
"katex": "^0.16.22",
18+
"katex": "^0.16.27",
1919
"markdown-it": "^14.1.0",
2020
"markdown-it-texmath": "^1.0.0",
21-
"mathjs": "^14.4.0"
21+
"mathjs": "^15.1.0"
2222
}
2323
}

public/coolprop.js

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/coolprop.wasm

2.66 MB
Binary file not shown.

public/loadCoolprop.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import Module from './coolprop.js';
2+
3+
const coolprop = await Module();
4+
window.coolprop = coolprop;

todo.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
- [ ] Dynamic autocomplete
77
- [ ] More efficient math evaluation (only update state when inputs change)
88
- [ ] Evaluate expression by expression (not necessarly block by block)
9+
- [ ] Evaluate expressions with a DAG
10+
- [ ] Solve epxressions
911

1012
# Maybe
1113
- [ ] Saves state

0 commit comments

Comments
 (0)