Skip to content

Commit 227ed9b

Browse files
committed
Standardize naming patterns across the FEAScript: Modify HeatConduction2DFinWorker tutorial to use FEAScriptWorker instead of FEAWorkerScript
1 parent fe16f3e commit 227ed9b

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

tutorials/HeatConduction2DFinWorker.html

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ <h2>Web Worker Implementation</h2>
104104

105105
<pre class="prettyprint">
106106
&lt;script type="module"&gt;
107-
import { FEAWorkerScript, plotSolution, printVersion } from "https://core.feascript.com/src/index.js";
107+
import { FEAScriptWorker, plotSolution, printVersion } from "https://core.feascript.com/src/index.js";
108108
window.addEventListener("DOMContentLoaded", async () =&gt; {
109109
// Print FEAScript version
110110
printVersion();
111111

112-
// Create a new FEAWorkerScript instance
113-
const model = new FEAWorkerScript();
112+
// Create a new FEAScriptWorker instance
113+
const model = new FEAScriptWorker();
114114

115115
// Ensure the worker is ready
116116
await model.ping();
@@ -175,11 +175,14 @@ <h2>Results</h2>
175175
</ul>
176176

177177
<script type="module">
178+
//Import FEAScript library from GitHub
178179
import {
179-
FEAWorkerScript,
180+
FEAScriptWorker,
180181
plotSolution,
181182
printVersion,
182183
} from "https://core.feascript.com/src/index.js";
184+
//Import FEAScript library from a local directory
185+
//import { FEAScriptWorker, plotSolution, printVersion } from "../../FEAScript-core/src/index.js";
183186
window.addEventListener("DOMContentLoaded", async () => {
184187
if (window.innerHeight > window.innerWidth) {
185188
document.getElementById("orientation-message").style.display = "block";
@@ -195,8 +198,8 @@ <h2>Results</h2>
195198
// Print FEAScript version
196199
printVersion();
197200

198-
// Create a new FEAWorkerScript instance
199-
const model = new FEAWorkerScript();
201+
// Create a new FEAScriptWorker instance
202+
const model = new FEAScriptWorker();
200203

201204
// Ensure the worker is ready
202205
await model.ping();
@@ -259,8 +262,8 @@ <h2>Results</h2>
259262
// Print FEAScript version
260263
printVersion();
261264

262-
// Create a new FEAWorkerScript instance
263-
const model = new FEAWorkerScript();
265+
// Create a new FEAScriptWorker instance
266+
const model = new FEAScriptWorker();
264267

265268
// Ensure the worker is ready
266269
await model.ping();

0 commit comments

Comments
 (0)