Skip to content

Commit 6d3cf3a

Browse files
committed
fix: apply coord-cartesian xlim/ylim zoom
1 parent 07d81e2 commit 6d3cf3a

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/render.typ

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2530,8 +2530,8 @@
25302530
pt = _apply-labs(pt, labs)
25312531
pt = _post-train(pt, p.layers)
25322532
pt = _apply-coord-transform(pt, coord)
2533-
pt = _apply-expand(pt, coord)
25342533
pt = _apply-coord(pt, coord)
2534+
pt = _apply-expand(pt, coord)
25352535
pt = _apply-flip(pt, coord)
25362536
let merged = trained
25372537
if free-x and pt.at("x", default: none) != none {
@@ -3320,8 +3320,8 @@
33203320
// is preserved for stats and training but may render outside the panel.
33213321
let coord = spec.at("coord", default: none)
33223322
trained = _apply-coord-transform(trained, coord)
3323-
trained = _apply-expand(trained, coord)
33243323
trained = _apply-coord(trained, coord)
3324+
trained = _apply-expand(trained, coord)
33253325
// coord-flip swaps trained x and y so axis labels swap automatically;
33263326
// direction-sensitive geoms branch on `ctx.flipped` inside their draw.
33273327
trained = _apply-flip(trained, coord)
7.17 KB
Loading
-7.36 KB
Loading

0 commit comments

Comments
 (0)