v0.1.4 — #break, solvers, project/library sidebar, gevelkolom + windverband#7
Merged
Conversation
…lvers
Brings the engine in line with real-world CalcPAD usage:
- `#break` is now a true loop-exit (BreakNode in AST, scope-flag in
evaluator). The Intertek 2259 foundation calc now produces the same
pile-type choices [5, 8, 4, 5] as the CalcPAD PDF, which previously
iterated all 9 attempts and ended on type 9.
- `expr | unit` is now interpreted as the CalcPAD target-unit operator
→ mathjs `expr to unit`. Eliminated the NaN cascade in `p_ground`.
- `≤ ≥ ≡ ≠` symbols normalized to `<= >= == !=` for ALL expressions
(was conditional-only).
- Vector-index `name.(expr)` and `name.i` (single-letter index) now
rewrite to `name[expr]` / `name[i]`. Fixes the 5.1 drawFloor schema
where `aaa1.i` / `aaa1.(i+1)` were folded to a single identifier.
- Iterative solver directives lifted into helper functions:
`$Find{f(x) @ x = lo:hi}` → bisection
`$Root{...}` → alias for $Find
`$Solve{f(x) @ x = guess}` → Newton-Raphson
`$Sup{f(x) @ x = lo:hi}` → golden-section max
`$Inf{f(x) @ x = lo:hi}` → golden-section min
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
- `unitPartToLatex` herschreven zonder mathjs round-trip — geen leading "1" meer voor units. `235 N/mm²` ipv `235 1 N/mm²`. - `.calc-line` heeft niet meer de grijze achtergrond + blauwe linker- streep. Foutregels behouden hun rode visuele indicator. - `.calc-preview-content` zet `overflow-x: hidden` + `overflow-wrap: anywhere`. Lange KaTeX-formules wrappen naar de volgende regel ipv een horizontale scrollbar te tonen. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…, windverband
ProjectBrowser splitst nu in twee secties met section-headers:
• PROJECT (boven): klikbare projectgegevens + de calc-sheets
• LIBRARY (onder): Books / Standards / CalcPAD-voorbeelden
Nieuwe sheets onder Project:
• Projectgegevens — Eurocode-uitgangspunten (CC-klasse, K_FI,
windgebied, terreincategorie, sneeuwbelasting, grondsoort,
geotechnische categorie) via @select dropdowns.
• Stalen gevelkolom (wind + N + kip) — alle 42 IPE/HEA, matrix-
lookup van h, b, t_w, t_f, A, W_el,y, I_y. Toets buiging
§6.2.5, dwarskracht §6.2.6, druk §6.2.4, kip §6.3.2.4 (vereen-
voudigde slankheidsmethode met n_kipsteunen), gecombineerd
§6.2.9, en BGT-verplaatsing §7.2. Schema + M/V-lijn SVG.
• Verticaal windverband — trekstaaftoetsing (strip of hoeklijn).
Schema is een rechthoek + kruis (XZ-aanzicht) met krachtdriehoek
die de wind ontbindt in F_h, F_v en F_t,Ed.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
documentStore (source + filePath) en loadCaseStore (cases + activeId + valuesByCase) hydrateren nu uit de Tauri-store bij app-boot en auto-saven debounced (250–500 ms) bij elke wijziging. Open je calc na herstart en je dropdown-/prompt-keuzes staan er weer. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Highlights
expr | unittarget-unit operator wordt vertaald naarto unit—p_ground = F/A | kN/m^2werkt nu.\$Find,\$Root,\$Solve(Newton-Raphson),\$Sup,\$Inf(golden-section).name.(expr)enname.iworden correct vertaald naarname[expr]/name[i].≤ ≥ ≡ ≠symbolen werken nu in ALLE expressies (waren conditional-only).Resultaat 2259-Intertek
148 assignments · 0 NaN · 0 errors · types [5, 8, 4, 5] = PDF.