Spaces:
Running
Running
thibaud frere commited on
Commit ·
929af42
1
Parent(s): 0ec257a
fix shape overflow
Browse filesFiles changed (2)
329 unmodified lines330331332333333334335336335336337338337338339340341342343329 unmodified lines } } catch {}
// Update clip rect to match inner plotting area (coords local to gRoot) // Update clip rect to match inner plotting area with padding so // first/last markers are not clipped at the edges const clipPad = Math.max(6, Math.ceil(markerSize * 2)); clipRect .attr('x', 0) .attr('y', 0) .attr('width', innerWidth) .attr('height', innerHeight); .attr('x', -clipPad) .attr('y', -clipPad) .attr('width', innerWidth + clipPad * 2) .attr('height', innerHeight + clipPad * 2);
xScale.range([0, innerWidth]); yScale.range([innerHeight, 0]);319 unmodified lines320321322323323324325325326327328326327328329330331332319 unmodified lines xScale.range([0, innerWidth]); yScale.range([innerHeight, 0]);
// Update clip rect to match inner plotting area (coords of gRoot after translate) // Update clip rect with padding so edge markers are not clipped const clipPad = Math.max(6, Math.ceil(markerSize * 2)); clipRect .attr('x', 0) .attr('y', 0) .attr('width', innerWidth) .attr('height', innerHeight); .attr('x', -clipPad) .attr('y', -clipPad) .attr('width', innerWidth + clipPad * 2) .attr('height', innerHeight + clipPad * 2);
// Compute Y ticks let yTicks = [];app/src/content/embeds/against-baselines-deduplicated.html+7-5
app/src/content/embeds/against-baselines.html+6-5