box = {
const svgstars = [];
for (const {sra0, sdec0, mag, xno} of stars.filter(d => d.mag < 5)) {
const r = 1.5*radius(mag);
const [z,x,y] = v.cartesian3([],[100,sdec0,sra0]);
const fill = catalog[xno-1].constellation === highlight ? 'white' : 'gray';
svgstars.push(translate([x,y,z], cull(svgt`<circle cx=${0} cy=${0} ${{r, fill}}/>`)));
}
const svgplanets = [];
for (const {name, raw: { position, magnitude } } of planets) {
const { dRA, dDec } = position.apparent
const r = 1.5*radius(magnitude);
const [z,x,y] = v.cartesian3([],[100,dDec,dRA]);
const fill = 'white';
const planet = svgt`
<circle cx=${0} cy=${0} ${{r, fill}}/>
<text x=${0} y=${0} ${{fill,'dominant-baseline':'hanging'}}> ${name}</text>`
svgplanets.push(translate([x,y,z], cull(planet)));
}
const box = svgtBox(transform(camMatrix,g(...svgstars,...svgplanets)), 0.6*width,0.6*width);
box.style.backgroundColor = '#081f2b';
stable.replaceChildren(box);
}