Remove private API access from tests/demo

This commit is contained in:
Daniel Imms
2025-12-30 04:06:26 -08:00
parent 214289aaab
commit e27cc2c089
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ async function cellPos(col: number, row: number): Promise<number[]> {
const coords: any = await ctx.page.evaluate(`
(function() {
const rect = window.term.element.getBoundingClientRect();
const dim = term._core._renderService.dimensions;
const dim = window.term.dimensions;
return {left: rect.left, top: rect.top, bottom: rect.bottom, right: rect.right, width: dim.css.cell.width, height: dim.css.cell.height};
})();
`);