Advance simulation parity and 3-axis tutorial coverage
This commit is contained in:
@@ -12,7 +12,7 @@ import { renderDisplayFamily } from "./display-family.mjs";
|
||||
import { appendAxisIcon } from "./source-assets.mjs";
|
||||
|
||||
const SAMPLE_PROGRAM = ["G21 G90", "G0 X0 Y0 Z0", "G1 X10 Y0 F120", "G1 X10 Y10", "G1 X0 Y10", "G1 X0 Y0", "M2"].join("\n");
|
||||
const DEFAULT_CASE = "linuxcnc/configs/sim/axis/corexy/corexy_by_hal.ini";
|
||||
const DEFAULT_CASE = "linuxcnc/configs/sim/axis/vismach/3axis-tutorial/3axis-tutorial.ini";
|
||||
|
||||
function element(document, tag, className, text = "") {
|
||||
const node = document.createElement(tag);
|
||||
@@ -104,7 +104,7 @@ export function mountApp({ document = globalThis.document, client = null } = {})
|
||||
const query = caseSearch.value.trim().toLowerCase();
|
||||
const selected = caseSelect.value || DEFAULT_CASE;
|
||||
caseSelect.replaceChildren();
|
||||
for (const entry of SIM_CASE_CATALOG) {
|
||||
for (const entry of SIM_CASE_CATALOG.filter((candidate) => candidate.path === DEFAULT_CASE)) {
|
||||
if (query && !`${entry.path} ${entry.label} ${entry.category} ${entry.kinematics ?? ""}`.toLowerCase().includes(query)) continue;
|
||||
const option = element(document, "option");
|
||||
option.value = entry.path;
|
||||
|
||||
Reference in New Issue
Block a user