refactor: extract render entrypoint & add cropRender function

This commit is contained in:
Shibo Lyu 2025-12-16 16:41:30 +08:00
parent d97546f47c
commit c703b1870a
16 changed files with 630 additions and 181 deletions

View file

@ -1,6 +1,6 @@
import { it, expect } from "vitest";
import { getCharacterWidth } from "../src/mod.ts";
import { getCharacterWidth } from "../src/mod";
it("getCharacterWidth ASCII", () => {
expect(getCharacterWidth("a")).toBe(1);