In this section
- SatNav G203 Compact Panel Browser render · gridatlas / tools/satnav/g203-compact-panel-browser.py lines 1–80
- SatNav G203 Swarm 03 Panel Continuity render · gridatlas / tools/satnav/g203-swarm-03-panel-continuity.py lines 1–101
- BBC RSS Pipeline Panel energy-data · pipelinenews / cartridges/bbc-rss-pipeline-panel.mjs lines 1–56
- Provisional Pipeline Panel energy-data · pipelinenews / cartridges/provisional-pipeline-panel.mjs lines 1–16
- Array Engine other · solar-electrical-topology-analysis-engine-text-based / array_engine.py lines 1–3
- Array Route Geometry other · solar-electrical-topology-analysis-engine-text-based / array_route_geometry.py lines 1–3
- Array Route Types other · solar-electrical-topology-analysis-engine-text-based / array_route_types.py lines 1–3
- Array Routing other · solar-electrical-topology-analysis-engine-text-based / array_routing.py lines 1–3
- Array Topology other · solar-electrical-topology-analysis-engine-text-based / array_topology.py lines 1–3
- Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox interaction · solar-electrical-topology-analysis-engine-text-based / b9-sandbox/app.js lines 1–432
SatNav G203 Compact Panel Browser
A Python command-line tool in the tools folder of GridAtlas that compares the two historical SatNav panels with the integrated G203 candidate.
rendergridatlas / tools/satnav/g203-compact-panel-browser.py · lines 1–80 of 80 · Entry point
- What it does
- It lists and searches its content. Defines check. Uses libraries os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files.
- Why it exists in the grid workflow
- Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work.
- Downstream impact
- It is itself an entry point (Python CLI); no other file was found loading it.
- What it achieves
- Defines `check`.
- Why it matters
- No other file in the estate was found to import it; it is an entry point.
- Application
- gridatlas · tools/satnav · Python CLI
- Uses
- os, pathlib, runpy, playwright.sync_api
- Used by
- none found
- Produces
- check
- Defines here
- check
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- gridatlas@98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5 tools/satnav/g203-compact-panel-browser.py:1-80 · blob b575db97230ca90718d146a523e12e2406992fe6 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom, filesystem · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: production_core
"""Compare the two historical SatNav panels with the integrated G203 candidate.
Run with G203_TEST_URL set to the staged numbered release, not production.
Browser simulations do not constitute physical iPhone acceptance.
"""
import os
from pathlib import Path
from runpy import run_path
from playwright.sync_api import sync_playwright, expect
READY = run_path(str(Path(__file__).with_name('convergence-browser.py')))['READY']
BASES = [
('V9.201', 'https://ventusltd.github.io/gridatlas/atlas/v/202612020056/'),
('V9.202', 'https://ventusltd.github.io/gridatlas/atlas/v/202612020205/'),
]
VIEWS = [(393, 852), (852, 393), (1440, 900), (1920, 1080)]
MEASURE = """() => {
const p = document.querySelector('#satnav-compact'), a = document.querySelector('#satnav-access');
const r = p.getBoundingClientRect(), s = a.getBoundingClientRect();
return {left:r.left, right:r.right, width:r.width, top:r.top, bottom:r.bottom,
accessTop:s.top, accessBottom:s.bottom, viewportWidth:innerWidth, viewportHeight:innerHeight,
overflow:p.scrollWidth > p.clientWidth + 1,
minTarget:Math.min(...[...p.querySelectorAll('button, summary, select')]
.filter(el=>el.getClientRects().length).map(el=>el.getBoundingClientRect().height))};
}"""
def check(browser, name, url, w, h, candidate):
with browser.new_context(viewport={'width': w, 'height': h},
is_mobile=w<900, has_touch=w<900,
geolocation={'longitude':0.1, 'latitude':51.5, 'accuracy':5},
permissions=['geolocation']) as ctx:
page = ctx.new_page()
page.goto(url, wait_until='domcontentloaded', timeout=90000)
page.wait_for_function(READY, timeout=120000)
panel = page.locator('#satnav-compact')
toggle = page.locator('#satnav-toggle')
expect(toggle).to_be_visible(timeout=30000)
toggle.click()
expect(panel).to_be_visible()
page.wait_for_function("() => !!document.querySelector('#satnav-walk-start')", timeout=30000)
m = page.evaluate(MEASURE)
print(name, w, h, m, flush=True)
if not candidate:
return
assert page.locator('#g203-satnav-panel-style').count() == 1
assert 0 <= m['left'] <= 30 and 180 <= m['width'] <= 220, m
assert m['right'] <= m['viewportWidth'] and m['top'] >= 0, m
assert m['bottom'] <= m['accessTop'] + 1 and m['accessBottom'] <= m['viewportHeight'], m
assert m['minTarget'] >= 44 and not m['overflow'], m
for ident in ('satnav-from','satnav-to','satnav-location','satnav-stop',
'satnav-walk-start','satnav-walk-stop','satnav-add','satnav-edit',
'satnav-status','satnav-infrastructure','satnav-survey','satnav-layout','field-compass'):
assert page.locator('#'+ident).count() == 1, ident
page.evaluate("document.querySelector('#satnav-compact').satnavSurvey.replacePlan([[0.1,51.5],[0.101,51.501]])")
before = page.evaluate("document.querySelector('#satnav-compact').satnavSurvey.getPins()")
page.locator('#satnav-location').click()
page.wait_for_function("() => document.querySelector('#satnav-compact').satnavSurvey.isTracking() && !!document.querySelector('#satnav-compact').satnavSurvey.getFix()",timeout=30000)
toggle.click()
expect(panel).to_be_hidden()
assert page.evaluate("document.querySelector('#satnav-compact').satnavSurvey.isTracking()")
assert page.evaluate("document.querySelector('#satnav-compact').satnavSurvey.getPins()") == before
toggle.click()
expect(panel).to_be_visible()
assert page.evaluate("document.querySelector('#satnav-compact').satnavSurvey.isTracking()")
assert page.evaluate("document.querySelector('#satnav-compact').satnavSurvey.getPins()") == before
page.locator('#satnav-stop').click()
assert not page.evaluate("document.querySelector('#satnav-compact').satnavSurvey.isTracking()")
print(name, w, h, 'candidate panel and GPS continuity PASS', flush=True)
if __name__ == '__main__':
candidate_url = os.environ['G203_TEST_URL']
with sync_playwright() as p:
for engine in os.environ.get('LINE_TEST_BROWSERS', 'chromium,webkit').split(','):
opts = {'args':['--use-gl=angle','--use-angle=swiftshader','--enable-webgl','--enable-unsafe-swiftshader']} if engine == 'chromium' else {}
browser = getattr(p,engine).launch(**opts)
try:
for name, url in BASES + [('V9.203', candidate_url)]:
for w,h in VIEWS:
check(browser, name, url, w,h, name=='V9.203')
finally:
browser.close()SatNav G203 Swarm 03 Panel Continuity
A Python command-line tool in the tools folder of GridAtlas. It is built from the scenario step (`scenario`).
rendergridatlas / tools/satnav/g203-swarm-03-panel-continuity.py · lines 1–101 of 101 · Entry point · pattern scenario (shared by 5 files)
- What it does
- Defines scenario. Uses libraries json, os, pathlib, runpy, playwright.sync_api. Side effects: changes the web page (DOM); reads or writes files.
- Why it exists in the grid workflow
- Domain stage field_execution (path word 'satnav'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work.
- Downstream impact
- Used directly by 1 file: GridAtlas PR File Size Guard Workflow (gridatlas).
- What it achieves
- G203-SWARM-03: candidate-only, real composed application acceptance.
- Why it matters
- Run by GridAtlas PR File Size Guard Workflow.
- Application
- gridatlas · tools/satnav · Python CLI
- Uses
- json, os, pathlib, runpy, playwright.sync_api
- Used by
- run by GridAtlas PR File Size Guard Workflow (workflow run)
- Produces
- scenario
- Defines here
- scenario
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- gridatlas@98b5004c5eda9f2ed915fb6fca4b9bbcaa426ca5 tools/satnav/g203-swarm-03-panel-continuity.py:1-101 · blob 8b9c6561e393443843ed968dc68442b06285eabb · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: output · effects: dom, filesystem · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: production_core
"""G203-SWARM-03: candidate-only, real composed application acceptance.
Start tools/satnav/serve.mjs 8873 from the exact checkout before running.
Simulation is not physical-device acceptance. No automatic reload or recovery.
"""
import json
import os
from pathlib import Path
from runpy import run_path
from playwright.sync_api import sync_playwright, expect
ROOT = Path(__file__).resolve().parent
READY = run_path(str(ROOT / "convergence-browser.py"))["READY"]
GPS = run_path(str(ROOT / "compact-browser.py"))["GPS_SPY"]
URL = os.environ["G203_TEST_URL"]
VIEWS = [(320, 568), (393, 852), (852, 393), (1440, 900), (2560, 1440)]
SNAPSHOT = """() => {
const p = document.querySelector('#satnav-compact'), api = p.satnavSurvey;
return {pins:api.getPins(),endpoints:api.getEndpoints(),tracking:api.isTracking(),
gps:window.__lineGpsTest.records,
guidance:document.querySelector('#satnav-walk-guidance').textContent};
}"""
MEASURE = """() => {
const box = id => {
const r = document.getElementById(id).getBoundingClientRect();
return {x:r.x,y:r.y,right:r.right,bottom:r.bottom,width:r.width,height:r.height};
};
const panel=box('satnav-compact'), access=box('satnav-access'), dock=box('g203-native-dock');
const overlap=(a,b)=>Math.max(0,Math.min(a.right,b.right)-Math.max(a.x,b.x))*
Math.max(0,Math.min(a.bottom,b.bottom)-Math.max(a.y,b.y));
return {panel,access,dock,panelAccessOverlap:overlap(panel,access),
panelDockOverlap:overlap(panel,dock),accessDockOverlap:overlap(access,dock)};
}"""
def scenario(browser, engine, w, h):
with browser.new_context(viewport={"width":w,"height":h},has_touch=w<900,is_mobile=w<900) as ctx:
ctx.add_init_script(GPS)
page=ctx.new_page()
errors=[]
page.on("pageerror",lambda e:errors.append(str(e)))
page.goto(URL,wait_until="domcontentloaded",timeout=90000)
page.wait_for_function(READY,timeout=120000)
panel=page.locator("#satnav-compact")
toggle=page.locator("#satnav-toggle")
page.wait_for_function("()=>!!document.querySelector('#satnav-compact')?.satnavSurvey && !!document.querySelector('#satnav-walk-start') && !!document.querySelector('#g203-native-dock')",timeout=30000)
if not panel.is_visible():
toggle.click()
page.evaluate("document.querySelector('#satnav-compact').satnavSurvey.replacePlan([[0.1,51.5],[0.1,51.505]])")
page.locator("#satnav-walk-mode").select_option("direct")
page.locator("#satnav-walk-start").click()
page.evaluate("window.__lineGpsTest.emit([0.1,51.5001],4)")
page.wait_for_function("()=>document.querySelector('#satnav-compact').satnavSurvey.isTracking() && !!document.querySelector('#satnav-compact').satnavSurvey.getFix() && !document.querySelector('#satnav-walk-stop').hidden",timeout=30000)
before=page.evaluate(SNAPSHOT)
assert before["guidance"].strip(),before
assert len(before["gps"]["starts"])==1 and not before["gps"]["stops"],before
for i in range(5):
toggle.click()
expect(panel).to_be_hidden()
page.evaluate("i=>window.__lineGpsTest.emit([0.1,51.5002+i*.0001],4)",i)
hidden=page.evaluate(SNAPSHOT)
assert hidden["tracking"] and hidden["pins"]==before["pins"] and hidden["endpoints"]==before["endpoints"],hidden
assert hidden["gps"]==before["gps"],hidden
toggle.click()
expect(panel).to_be_visible()
expect(page.locator("#satnav-walk-stop")).to_be_visible()
after=page.evaluate(SNAPSHOT)
assert after["tracking"] and after["pins"]==before["pins"] and after["endpoints"]==before["endpoints"],after
assert after["gps"]==before["gps"] and after["guidance"].strip(),after
page.locator("#satnav-walk-stop").click()
page.wait_for_function("()=>!document.querySelector('#satnav-compact').satnavSurvey.isTracking()")
stopped=page.evaluate(SNAPSHOT)
assert len(stopped["gps"]["starts"])==1 and len(stopped["gps"]["stops"])==1,stopped
assert stopped["pins"]==before["pins"] and stopped["endpoints"]==before["endpoints"],stopped
disclosure=page.locator("#satnav-access")
expect(disclosure).to_be_visible()
if disclosure.evaluate("(e)=>e.open"):
disclosure.locator("summary").click()
collapsed=page.evaluate(MEASURE)
disclosure.locator("summary").click()
expect(disclosure).to_have_js_property("open",True)
expanded=page.evaluate(MEASURE)
print(json.dumps({"engine":engine,"viewport":[w,h],"walkTransitions":5,"collapsed":collapsed,"expanded":expanded,"pageErrors":errors}),flush=True)
for m in (collapsed,expanded):
assert m["panelAccessOverlap"]<=1 and m["panelDockOverlap"]<=1 and m["accessDockOverlap"]<=1,m
assert not errors,errors
if __name__=="__main__":
failures=[]
with sync_playwright() as p:
for engine in os.getenv("LINE_TEST_BROWSERS","chromium,webkit").split(","):
opts={"args":["--use-gl=angle","--use-angle=swiftshader","--enable-webgl","--enable-unsafe-swiftshader"]} if engine=="chromium" else {}
browser=getattr(p,engine).launch(**opts)
try:
for w,h in VIEWS:
try:
scenario(browser,engine,w,h)
except Exception as e:
failures.append((engine,w,h,str(e)))
print("FAIL",engine,w,h,str(e),flush=True)
finally:
browser.close()
assert not failures,failuresBBC RSS Pipeline Panel
A JavaScript module in the cartridges folder of PipelineNews that works with UK time (`ukTime`), covering the Renewable Energy Planning Database (REPD) register.
Set aside from the main view: 92% of its lines are the same as testcode/202609060232/pipeline/assets/202609060232-bbc-rss-pipeline.mjs (globalgrid2050), which stays. (near-copy-of, proposed by families.py). 92% of lines shared with BBC RSS Pipeline; read that one first. All set-aside files, with reasons. Nothing was deleted.
Evidence
- line-jaccard 0.9245 to globalgrid2050@0aca5121f0795e469b6cf4fc3d3b628edba8d883 testcode/202609060232/pipeline/assets/202609060232-bbc-rss-pipeline.mjs:1-56 e4739a739d33a37be3c01e44c4e861fea0aa2830
- sha256 d69292c6294d58406f841238743ba490e72c26b9482457c07aeb4261c660002f
- target sha256 73ae7f04c4fc7d4d05fb69a301350c8969a2b39308656d3b0b3d8582303a06f5
- group of 3 (identity.json near-copy edges >= 0.9)
- canonical rule: reachable, newest stamp, core repo, most lines
energy-datapipelinenews / cartridges/bbc-rss-pipeline-panel.mjs · lines 1–56 of 56 · Not reached from any entry point (candidate for review) · pattern ukTime (shared by 3 files)
- What it does
- It draws the REPD register. Defines 6 functions or classes, including mount, ukTime, create, options, render. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: the REPD register.
- Downstream impact
- Used directly by 1 file: Build BBC RSS Package (pipelinenews).
- What it achieves
- It is built from the UK time helper (`ukTime`), the options step (`options`) and the render step (`render`). Defines `mount`, `ukTime`, `create` and 3 more. It responds to click events.
- Why it matters
- Run by Build BBC RSS Package.
- Application
- pipelinenews · cartridges · JavaScript module
- Uses
- BBC RSS Pipeline Model (import)
- Used by
- run by Build BBC RSS Package (script call)
- Produces
- CONTRACT, mount
- Defines here
- mount, ukTime, create, options, render, update
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 cartridges/bbc-rss-pipeline-panel.mjs:1-56 · blob 10663bc1fa62438a8e0931ab030b6c7974ed0ad8 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
import {buildRssView,refreshRss} from './bbc-rss-pipeline-model.mjs';
export const CONTRACT={schema:'pipelinenews.bbc-rss-pipeline.v1',generation:'{GEN}'};
export function mount({host,payload,evidence=[],projects=[],official=[],fetcher=fetch}) {
const doc=host.ownerDocument;
const ukTime=value=>{const date=new Date(value);return Number.isFinite(date.getTime())?new Intl.DateTimeFormat('en-GB',{timeZone:'Europe/London',day:'2-digit',month:'short',year:'numeric',hour:'2-digit',minute:'2-digit',timeZoneName:'short'}).format(date):'unknown';};
const create=(tag,text)=>{const el=doc.createElement(tag);if(text!==undefined)el.textContent=text;return el;};
const description=create('p','BBC RSS discovery runs every two hours. This panel checks the latest collected headlines on opening; article pages are not fetched. News reports do not establish consent, firm capacity or connection headroom.');
const controls=create('div');controls.style.cssText='display:flex;gap:8px;flex-wrap:wrap;margin:12px 0';
const refresh=create('button','Refresh collected RSS'),snapshot=create('button','Publication snapshot');
for(const button of [refresh,snapshot]){button.type='button';button.style.cssText='min-height:44px;padding:8px 12px;cursor:pointer';}
controls.append(refresh,snapshot);
const status=create('p');status.setAttribute('role','status');status.setAttribute('aria-live','polite');
const list=create('div');list.style.overflowWrap='anywhere';
const details=create('details'),summary=create('summary','Source feed health'),feeds=create('ul');details.append(summary,feeds);
host.replaceChildren(description,controls,status,list,details);
let current=payload,mode='Publication snapshot',request=0,disposed=false;
const options=()=>({projects:typeof projects==='function'?projects():projects,evidence,official});
function render(view) {
host.dataset.rssReady='true';host.dataset.rssFreshness=view.freshness;host.dataset.rssCollection=view.collection;host.dataset.rssItems=String(view.items.length);
status.textContent=`${mode} | ${view.collection}: ${view.feed_success}/${view.feed_total} feeds | ${view.freshness} | checked ${view.checked_at?ukTime(view.checked_at):'unknown'} | last successful collection ${view.last_success_at?ukTime(view.last_success_at):'none'}.`+(view.refresh_error?' Refresh unavailable: '+view.refresh_error+'. Previous observations retained.':'');
list.replaceChildren();
if(!view.items.length)list.append(create('p','No matching headlines in this collection. An empty feed is not proof that a project does not exist.'));
for(const item of view.items) {
const article=create('article');article.style.cssText='border-top:1px solid currentColor;padding:12px 0';
const link=create('a',item.headline);link.href=item.url;link.rel='noopener noreferrer';
article.append(link,create('p','BBC News | '+(item.published_at?ukTime(item.published_at):'Publication date unavailable')));
const observation=item.observation;
if(observation.name) {
const identity=observation.repd_ref?'Verified official REPD identity '+observation.repd_ref:'Awaiting verified REPD match'+(observation.temporary_ref?' | '+observation.temporary_ref:'');
article.append(create('p',observation.name+' | '+identity+(observation.gg_project_id?' | '+observation.gg_project_id:'')));
const claims=create('ul');
for(const claim of observation.claims)claims.append(create('li',claim.metric.replaceAll('_',' ')+': '+(claim.value===true?'reported included':String(claim.value))+(claim.unit?' '+claim.unit:'')+(claim.qualifier?' — '+claim.qualifier:'')));
article.append(claims,create('p','These statements remain reported evidence, even after an official identity match. '+observation.capacity_basis+'.'));
if(observation.related_projects.length)article.append(create('p','Separate related project: '+observation.related_projects.map(project=>project.name).join(', ')+'. Its capacity and cost are not attributed to '+observation.name+'.'));
if(observation.unknowns.length)article.append(create('p','Not established by this report: '+observation.unknowns.join('; ')+'.'));
if(observation.evidence_basis)article.append(create('small',observation.evidence_basis));
} else article.append(create('p','REPD match unverified. Headline metadata only; no project capacity inferred.'));
list.append(article);
}
feeds.replaceChildren();for(const feed of view.feeds)feeds.append(create('li',feed.status+' | '+feed.url));
summary.textContent=`Source feed health (${view.feed_success}/${view.feed_total} successful)`;
}
async function update() {
const token=++request;refresh.disabled=true;status.textContent='Refreshing collected BBC RSS metadata…';
const result=await refreshRss(current,{...options(),fetcher});
if(disposed||token!==request)return;
current=result.payload;if(result.live)mode='Latest collected RSS';
refresh.disabled=false;render(result.view);
}
refresh.addEventListener('click',update);
snapshot.addEventListener('click',()=>{request++;refresh.disabled=false;current=payload;mode='Publication snapshot';render(buildRssView(current,options()));});
render(buildRssView(current,options()));
const ready=update();
return {ready,refresh:update,dispose(){disposed=true;request++;}};
}Provisional Pipeline Panel
A JavaScript module in the cartridges folder of PipelineNews covering the Renewable Energy Planning Database (REPD) register.
energy-datapipelinenews / cartridges/provisional-pipeline-panel.mjs · lines 1–16 of 16 · Not reached from any entry point (candidate for review) · pattern mount (shared by 45 files)
- What it does
- It draws the REPD register. Defines mount. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'panel'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary. Domain terms in the code: the REPD register.
- Downstream impact
- Used directly by 1 file: Build Provisional Package (pipelinenews).
- What it achieves
- Defines `mount`.
- Why it matters
- Run by Build Provisional Package.
- Application
- pipelinenews · cartridges · JavaScript module
- Uses
- ./{GEN}-provisional-identity.mjs
- Used by
- run by Build Provisional Package (script call)
- Produces
- CONTRACT, mount
- Defines here
- mount
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- pipelinenews@45c944c8640a9d7ae65edb51d66032ba204f3f46 cartridges/provisional-pipeline-panel.mjs:1-16 · blob a7718ddafb19bbf595a07d443df9e77638ca64ae · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: unreached_review
import {reconcileProvisional} from './{GEN}-provisional-identity.mjs';
export const CONTRACT={schema:'pipelinenews.provisional-pipeline.v1',generation:'{GEN}'};
export function mount({host,payload,official,source}) {
if(payload.schema!=='pipelinenews.provisional-register.v1') throw Error('Pending register schema mismatch');
const projects=reconcileProvisional(payload.projects,official,source);
const pending=projects.filter(row=>!row.official_repd_ref);
const label=document.createElement('p');label.textContent=pending.length+' reported project(s) awaiting a verified REPD match. These are additional intake records, excluded from official REPD capacity totals.';
const scroll=document.createElement('div');scroll.style.overflowX='auto';
const table=document.createElement('table');table.style.minWidth='620px';
const head=table.createTHead().insertRow();for(const text of ['Project','Temporary REPD ID','Global Grid reference','Reported capacity','Status','Source']){const th=document.createElement('th');th.textContent=text;head.append(th);}
for(const p of pending){const row=table.insertRow();for(const value of [p.name,p.repd_ref,p.gg_project_id,p.capacity_mw+' MW (reported upper bound)',p.status])row.insertCell().textContent=value;const cell=row.insertCell(),link=document.createElement('a');link.href=p.article_url;link.textContent='BBC News';cell.append(link);}
scroll.append(table);host.replaceChildren(label,scroll);
if(projects.length!==pending.length){const p=document.createElement('p');p.textContent=(projects.length-pending.length)+' previously temporary record(s) now matched to official REPD numbers; those projects belong in the main REPD table.';host.append(p);}
host.dataset.pendingReady='true';host.dataset.pendingCount=String(pending.length);
return {projects,pending:pending.length};
}Array Engine
A Python module in Solar Electrical Topology Analysis Engine Text Based.
othersolar-electrical-topology-analysis-engine-text-based / array_engine.py · lines 1–3 of 3
- What it does
- Uses libraries solar_topology.array.array_engine.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- Downstream impact
- Used directly by 4 files: Validate Clean Wheel (solar-electrical-topology-analysis-engine-text-based); Test Array Authority Receipts (solar-electrical-topology-analysis-engine-text-based); Test Array Engine (solar-electrical-topology-analysis-engine-text-based); Test Installed Array API (solar-electrical-topology-analysis-engine-text-based). Reached from 9 other entry points, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based); Microbuild Worker Workflow (solar-electrical-topology-analysis-engine-text-based); V10 Validation Workflow (solar-electrical-topology-analysis-engine-text-based).
- What it achieves
- Compatibility import for the packaged Build 025 array authority.
- Why it matters
- Imported by Validate Clean Wheel. Checked by 3 tests, including Test Array Authority Receipts.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · Python module
- Uses
- solar_topology.array.array_engine
- Used by
- imported by Validate Clean Wheel (import), imported by Test Array Authority Receipts (import), imported by Test Array Engine (import), imported by Test Installed Array API (import)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 array_engine.py:1-3 · blob a800272b21d89f1f2e303c7595867c1bade62308 · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
"""Compatibility import for the packaged Build 025 array authority."""
from solar_topology.array.array_engine import * # noqa: F401,F403Array Route Geometry
A Python module in Solar Electrical Topology Analysis Engine Text Based.
othersolar-electrical-topology-analysis-engine-text-based / array_route_geometry.py · lines 1–3 of 3 · Not reached from any entry point (candidate for review)
- What it does
- Uses libraries solar_topology.array.array_route_geometry.
- Why it exists in the grid workflow
- Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work.
- What it achieves
- Compatibility import for packaged Build 025 route geometry.
- Why it matters
- No other file in the estate was found to import it.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · Python module
- Uses
- solar_topology.array.array_route_geometry
- Used by
- none found
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 array_route_geometry.py:1-3 · blob 96b234731dc8a673b2537e88ab3c1f594eb26b6b · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: unreached_review
"""Compatibility import for packaged Build 025 route geometry."""
from solar_topology.array.array_route_geometry import * # noqa: F401,F403Array Route Types
A Python module in Solar Electrical Topology Analysis Engine Text Based.
othersolar-electrical-topology-analysis-engine-text-based / array_route_types.py · lines 1–3 of 3 · Not reached from any entry point (candidate for review)
- What it does
- Uses libraries solar_topology.array.array_route_types.
- Why it exists in the grid workflow
- Domain stage field_execution (path word 'route'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work.
- What it achieves
- Compatibility import for packaged Build 025 route records.
- Why it matters
- No other file in the estate was found to import it.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · Python module
- Uses
- solar_topology.array.array_route_types
- Used by
- none found
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 array_route_types.py:1-3 · blob 51048644518845789555df8468591909634bd23c · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: unreached_review
"""Compatibility import for packaged Build 025 route records."""
from solar_topology.array.array_route_types import * # noqa: F401,F403Array Routing
A Python module in Solar Electrical Topology Analysis Engine Text Based.
othersolar-electrical-topology-analysis-engine-text-based / array_routing.py · lines 1–3 of 3
- What it does
- Uses libraries solar_topology.array.array_routing.
- Why it exists in the grid workflow
- Domain stage field_execution (path word 'routing'): on-road and off-road field navigation to the farm gate (access gates, terrain slope, ground-bearing limits, electrical hazards), as Ventus Ltd describes its SatNav work.
- Downstream impact
- Used directly by 2 files: Test Array Authority Receipts (solar-electrical-topology-analysis-engine-text-based); Test Array Engine (solar-electrical-topology-analysis-engine-text-based). Reached from 1 other entry point, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based).
- What it achieves
- Compatibility import for the packaged Build 025 routing authority.
- Why it matters
- Checked by 2 tests, including Test Array Authority Receipts.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · Python module
- Uses
- solar_topology.array.array_routing
- Used by
- imported by Test Array Authority Receipts (import), imported by Test Array Engine (import)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 array_routing.py:1-3 · blob 6347137cd12db6698daf159000273509207fa44d · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: field_execution · users: EPC_contractor, landowner_planner · canonical: production_core
"""Compatibility import for the packaged Build 025 routing authority."""
from solar_topology.array.array_routing import * # noqa: F401,F403Array Topology
A Python module in Solar Electrical Topology Analysis Engine Text Based.
othersolar-electrical-topology-analysis-engine-text-based / array_topology.py · lines 1–3 of 3
- What it does
- Uses libraries solar_topology.array.array_topology.
- Why it exists in the grid workflow
- Domain stage sub33kv_design (path word 'array'): inside-the-fence electrical and civil design below 33kV, which Ventus Ltd states is within its commercial execution boundary.
- Downstream impact
- Used directly by 3 files: Test Array Authority Receipts (solar-electrical-topology-analysis-engine-text-based); Test Array Engine (solar-electrical-topology-analysis-engine-text-based); Test Array Topology (solar-electrical-topology-analysis-engine-text-based). Reached from 1 other entry point, including Build 025 Small Gates Workflow (solar-electrical-topology-analysis-engine-text-based).
- What it achieves
- Compatibility import for the packaged Build 025 topology authority.
- Why it matters
- Checked by 3 tests, including Test Array Authority Receipts.
- Application
- solar-electrical-topology-analysis-engine-text-based · / · Python module
- Uses
- solar_topology.array.array_topology
- Used by
- imported by Test Array Authority Receipts (import), imported by Test Array Engine (import), imported by Test Array Topology (import)
- Produces
- none declared
- Defines here
- none
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 array_topology.py:1-3 · blob 8e5f8771ecaa681bb3afe5c04032087c7fc608be · GitHub at these lines
- State
- achieves: comment · context: readme_derived · stage: unknown · effects: none found · domain stage: sub33kv_design · users: EPC_contractor, ICP_grid_engineer · canonical: production_core
"""Compatibility import for the packaged Build 025 topology authority."""
from solar_topology.array.array_topology import * # noqa: F401,F403Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox
A JavaScript module that draws b9 scene. Served with the page at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/. It adds text (`addText`), syncs orientation cartridge (`syncOrientationFromCartridge`) and draws module (`drawModule`).
interactionsolar-electrical-topology-analysis-engine-text-based / b9-sandbox/app.js · lines 1–432 of 581 · Entry point · pattern downloadJson (shared by 2 files)
- What it does
- It draws b9 scene. Defines 26 functions or classes, including byId, numberValue, integerValue, textValue, svgElement. Side effects: changes the web page (DOM).
- Why it exists in the grid workflow
- Domain stage experimental (path word 'sandbox'): work its own path marks as experimental (sandbox, prototype, archive or similar words); by this evidence it is not part of a production workflow.
- Inputs & outputs
- In: JSON file b9-scene.json; GeoJSON file b9-scene.geojson.
- Downstream impact
- Used directly by 1 file: Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox Page (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/). Reached from 1 other entry point, including Tests (solar-electrical-topology-analysis-engine-text-based, https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/tests.html). It is itself an entry point, published at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/.
- What it achieves
- Defines `byId`, `numberValue`, `integerValue` and 23 more. It responds to input, change and click events.
- Why it matters
- Loaded by the page of the same name at https://ventusltd.github.io/solar-electrical-topology-analysis-engine-text-based/b9-sandbox/.
- Application
- solar-electrical-topology-analysis-engine-text-based · b9-sandbox · JavaScript module
- Uses
- Cartridges (import), Model (import)
- Used by
- loaded by Solar Electrical Topology Analysis Engine Text Based — B9 Sandbox Page (script src)
- Produces
- byId, numberValue, integerValue, textValue, svgElement, addText, clearSvg, inputModel, syncOrientationFromCartridge, rebuild, terminalPosition, drawModule
- Defines here
- byId, numberValue, integerValue, textValue, svgElement, addText, clearSvg, inputModel, syncOrientationFromCartridge, rebuild, terminalPosition, drawModule, renderPlan, drawCircuitConnection, renderCircuit, renderFixedSide, renderEastWestSide, renderTrackerSide
- Cannot conclude
- Whether this code runs, is used by a live app today, or is correct. This is a static reading.
- Evidence
- solar-electrical-topology-analysis-engine-text-based@d3b4c497144c2c9b3e8f0e82117e7e9abe4672b9 b9-sandbox/app.js:1-432 · blob 5ee07f57ff726321d90e73c503d667e9624945b1 · GitHub at these lines
- State
- achieves: name · context: readme_derived · stage: output · effects: dom · domain stage: experimental · users: none · canonical: production_core
import { CARTRIDGES, getCartridge } from "./cartridges.js";
import {
buildScene,
deriveSummary,
modulePitch,
rowSpan,
toGeoJson,
} from "./model.js";
const SVG_NS = "http://www.w3.org/2000/svg";
const state = {
view: "plan",
scene: null,
summary: null,
};
function byId(id) {
return document.getElementById(id);
}
function numberValue(id, fallback) {
const value = Number(byId(id).value);
return Number.isFinite(value) ? value : fallback;
}
function integerValue(id, fallback) {
return Math.max(1, Math.round(numberValue(id, fallback)));
}
function textValue(id) {
return byId(id).value.trim();
}
function svgElement(name, attributes = {}) {
const element = document.createElementNS(SVG_NS, name);
Object.entries(attributes).forEach(([key, value]) => {
element.setAttribute(key, String(value));
});
return element;
}
function addText(parent, x, y, text, className = "module-label") {
const element = svgElement("text", { x, y, class: className });
element.textContent = text;
parent.appendChild(element);
return element;
}
function clearSvg(svg) {
while (svg.firstChild) {
svg.removeChild(svg.firstChild);
}
}
function inputModel() {
return {
moduleWidthM: numberValue("moduleWidth", 1.303),
moduleHeightM: numberValue("moduleHeight", 2.384),
moduleGapM: numberValue("moduleGap", 0),
orientation: textValue("orientation"),
positiveLeadM: numberValue("positiveLead", 1.4),
negativeLeadM: numberValue("negativeLead", 1.4),
junctionBoxMode: textValue("junctionBoxMode"),
lowEdgeM: numberValue("lowEdge", 1),
highEdgeM: numberValue("highEdge", 4),
ridgeGapM: numberValue("ridgeGap", 0.3),
rowPitchM: numberValue("rowPitch", 3),
trackerAngleDeg: numberValue("trackerAngle", 0),
inverterDistanceM: numberValue("inverterDistance", 10),
modulesPerString: integerValue("modulesPerString", 30),
stringCount: integerValue("stringCount", 24),
topology: textValue("topology"),
customOrder: textValue("customOrder"),
externalCableCsaMm2: numberValue("externalCableCsa", 6),
factoryLeadCsaMm2: numberValue("factoryLeadCsa", 4),
};
}
function syncOrientationFromCartridge(cartridge) {
if (cartridge.orientation) {
byId("orientation").value = cartridge.orientation;
}
}
function rebuild() {
const cartridge = getCartridge(textValue("cartridge"));
syncOrientationFromCartridge(cartridge);
state.scene = buildScene(inputModel(), cartridge);
state.summary = deriveSummary(state.scene);
render();
}
function terminalPosition(module, polarity, scale, originX, originY) {
const x = originX + module.xM * scale;
const y = originY + module.yM * scale;
const width = module.widthM * scale;
const height = module.heightM * scale;
const yTerminal = y + height * 0.35;
return {
x: polarity === "negative" ? x + width * 0.34 : x + width * 0.66,
y: yTerminal,
};
}
function drawModule(svg, module, scale, originX, originY, compact = false) {
const x = originX + module.xM * scale;
const y = originY + module.yM * scale;
const width = Math.max(8, module.widthM * scale);
const height = Math.max(12, module.heightM * scale);
svg.appendChild(svgElement("rect", {
x,
y,
width,
height,
rx: compact ? 1 : 3,
class: "module-rect",
}));
if (!compact && width >= 24) {
addText(
svg,
x + width / 2,
y + height / 2 + 4,
`M${module.moduleNumber}`,
).setAttribute("text-anchor", "middle");
}
const negative = terminalPosition(
module,
"negative",
scale,
originX,
originY,
);
const positive = terminalPosition(
module,
"positive",
scale,
originX,
originY,
);
svg.appendChild(svgElement("circle", {
cx: negative.x,
cy: negative.y,
r: compact ? 1.5 : 3.5,
class: "terminal-neg",
}));
svg.appendChild(svgElement("circle", {
cx: positive.x,
cy: positive.y,
r: compact ? 1.5 : 3.5,
class: "terminal-pos",
}));
}
function renderPlan(svg) {
const scene = state.scene;
const maxWidthM = rowSpan(scene);
const maxHeightM = Math.max(
scene.module.heightM,
(scene.electrical.stringCount - 1) * scene.geometry.rowPitchM
+ scene.module.heightM,
);
const scale = Math.min(950 / maxWidthM, 560 / maxHeightM, 24);
const originX = 90;
const originY = 70;
const compact = scene.modules.length > 240;
svg.setAttribute(
"viewBox",
`0 0 ${Math.max(1200, maxWidthM * scale + 180)} `
+ `${Math.max(700, maxHeightM * scale + 150)}`,
);
addText(svg, 36, 38, "PLAN VIEW", "view-title");
addText(
svg,
36,
62,
`${scene.cartridge.name} · ${scene.electrical.stringCount} strings`,
);
scene.modules.forEach((module) => {
drawModule(svg, module, scale, originX, originY, compact);
});
const inverterX = 20;
const inverterY = originY;
svg.appendChild(svgElement("rect", {
x: inverterX,
y: inverterY,
width: 48,
height: 88,
rx: 6,
class: "inverter",
}));
addText(svg, inverterX + 24, inverterY + 48, "INV").setAttribute(
"text-anchor",
"middle",
);
scene.strings.forEach((stringRecord, index) => {
const y = originY + index * scene.geometry.rowPitchM * scale + 8;
const route = svgElement("path", {
d: `M ${inverterX + 48} ${inverterY + 22} `
+ `L ${originX - 14} ${y}`,
class: "connection",
});
svg.appendChild(route);
});
addText(
svg,
originX,
maxHeightM * scale + originY + 38,
`Row span ${state.summary.rowSpanM.toFixed(2)} m · `
+ `local engineering coordinates`,
);
}
function drawCircuitConnection(svg, from, to, isTurnaround) {
const lift = Math.max(18, Math.abs(to.x - from.x) * 0.18);
const direction = isTurnaround ? 1 : -1;
const midY = Math.min(from.y, to.y) + direction * lift;
const path = svgElement("path", {
d: `M ${from.x} ${from.y} `
+ `C ${from.x} ${midY}, ${to.x} ${midY}, ${to.x} ${to.y}`,
class: isTurnaround ? "connection turnaround" : "connection",
});
svg.appendChild(path);
}
function renderCircuit(svg) {
const scene = state.scene;
const selectedString = scene.strings[0];
const modules = scene.modules.filter(
(module) => module.stringId === selectedString.id,
);
const moduleWidthPx = 34;
const moduleHeightPx = 62;
const gapPx = 10;
const originX = 150;
const originY = 180;
const scale = moduleWidthPx / modules[0].widthM;
const totalWidth = modules.length * (moduleWidthPx + gapPx);
svg.setAttribute(
"viewBox",
`0 0 ${Math.max(1350, totalWidth + 260)} 520`,
);
addText(svg, 36, 38, "CIRCUIT VIEW", "view-title");
addText(
svg,
36,
64,
`${selectedString.id} · ${scene.electrical.topology} · `
+ `${selectedString.order.join(" → ")}`,
);
const physicalModules = modules.map((module, index) => ({
...module,
xM: index * (moduleWidthPx + gapPx) / scale,
yM: 0,
widthM: moduleWidthPx / scale,
heightM: moduleHeightPx / scale,
}));
physicalModules.forEach((module) => {
drawModule(svg, module, scale, originX, originY, false);
});
const byNumber = new Map(
physicalModules.map((module) => [module.moduleNumber, module]),
);
selectedString.connections.forEach((connection) => {
const fromModule = byNumber.get(connection.fromModule);
const toModule = byNumber.get(connection.toModule);
const from = terminalPosition(
fromModule,
"positive",
scale,
originX,
originY,
);
const to = terminalPosition(
toModule,
"negative",
scale,
originX,
originY,
);
const isTurnaround = Math.abs(connection.toModule - connection.fromModule) === 1
&& scene.electrical.topology === "leapfrog"
&& connection.fromModule === Math.max(...selectedString.order.slice(0, -1));
drawCircuitConnection(svg, from, to, isTurnaround);
});
const firstModule = byNumber.get(selectedString.order[0]);
const finalModule = byNumber.get(
selectedString.order[selectedString.order.length - 1],
);
const freeNegative = terminalPosition(
firstModule,
"negative",
scale,
originX,
originY,
);
const freePositive = terminalPosition(
finalModule,
"positive",
scale,
originX,
originY,
);
svg.appendChild(svgElement("rect", {
x: 24,
y: 150,
width: 82,
height: 120,
rx: 8,
class: "inverter",
}));
addText(svg, 65, 212, "INVERTER").setAttribute("text-anchor", "middle");
svg.appendChild(svgElement("path", {
d: `M 106 182 L ${freeNegative.x} ${freeNegative.y}`,
class: "connection",
}));
svg.appendChild(svgElement("path", {
d: `M 106 238 L ${freePositive.x} ${freePositive.y}`,
class: "connection",
}));
addText(svg, 112, 176, "−");
addText(svg, 112, 254, "+");
const status = scene.feasibility.passes
? `Lead reach passes with ${(scene.feasibility.availableReachM
- scene.feasibility.requiredReachM).toFixed(3)} m spare.`
: `Lead reach fails by ${scene.feasibility.shortfallM.toFixed(3)} m.`;
addText(svg, 36, 440, status);
}
function renderFixedSide(svg, scene) {
const width = 920;
const groundY = 500;
const lowY = groundY - scene.geometry.lowEdgeM * 75;
const highY = groundY - scene.geometry.highEdgeM * 75;
const x0 = 150;
const x1 = 900;
svg.appendChild(svgElement("path", {
d: `M 40 ${groundY} L 1120 ${groundY}`,
class: "ground-line",
}));
svg.appendChild(svgElement("path", {
d: `M ${x0} ${lowY} L ${x1} ${highY}`,
class: "structure-line",
}));
const count = scene.cartridge.modulesHigh;
for (let index = 0; index < count; index += 1) {
const fraction0 = index / count;
const fraction1 = (index + 1) / count;
const sx = x0 + (x1 - x0) * fraction0;
const ex = x0 + (x1 - x0) * fraction1;
const sy = lowY + (highY - lowY) * fraction0;
const ey = lowY + (highY - lowY) * fraction1;
svg.appendChild(svgElement("path", {
d: `M ${sx} ${sy} L ${ex} ${ey}`,
class: "module-rect",
}));
}
addText(svg, x0 - 70, lowY, `${scene.geometry.lowEdgeM.toFixed(2)} m`);
addText(svg, x1 + 12, highY, `${scene.geometry.highEdgeM.toFixed(2)} m`);
}
function renderEastWestSide(svg, scene) {
const groundY = 500;
const centreX = 620;
const ridgeY = groundY - scene.geometry.highEdgeM * 75;
const lowY = groundY - scene.geometry.lowEdgeM * 75;
const halfWidth = 360;
svg.appendChild(svgElement("path", {
d: `M 40 ${groundY} L 1200 ${groundY}`,
class: "ground-line",
}));
svg.appendChild(svgElement("path", {
d: `M ${centreX - halfWidth} ${lowY} L ${centreX} ${ridgeY} `
+ `L ${centreX + halfWidth} ${lowY}`,
class: "structure-line",
}));
const count = scene.cartridge.modulesHigh;
[-1, 1].forEach((direction) => {
for (let index = 0; index < count; index += 1) {
const f0 = index / count;
const f1 = (index + 1) / count;
const sx = centreX + direction * halfWidth * f0;
const ex = centreX + direction * halfWidth * f1;
const sy = ridgeY + (lowY - ridgeY) * f0;
const ey = ridgeY + (lowY - ridgeY) * f1;
svg.appendChild(svgElement("path", {
d: `M ${sx} ${sy} L ${ex} ${ey}`,
class: "module-rect",
}));
}
});
addText(svg, centreX - 40, ridgeY - 18, "RIDGE");
addText(svg, centreX - halfWidth - 70, lowY, "EAST");
addText(svg, centreX + halfWidth + 18, lowY, "WEST");
}
function renderTrackerSide(svg, scene) {
const groundY = 500;
const axisX = 620;
const axisY = groundY - scene.geometry.highEdgeM * 75;
const angle = scene.geometry.trackerAngleDeg * Math.PI / 180;
const halfChord = 390;
const dx = Math.cos(angle) * halfChord;
const dy = Math.sin(angle) * halfChord;
svg.appendChild(svgElement("path", {