refactor: move svg rendering related code into separate module (#4588)

Co-authored-by: Alexandr <qwerty541zxc@gmail.com>
This commit is contained in:
Alexandr Garbuzov
2025-10-16 23:44:17 +03:00
committed by GitHub
co-authored by Alexandr
parent 33f6276b0b
commit c43fd65bdd
22 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
import { encodeHTML, flexLayout } from "./utils.js";
import { encodeHTML, flexLayout } from "./render.js";
class Card {
/**
+1 -1
View File
@@ -1,6 +1,6 @@
// @ts-check
import { renderError } from "./utils.js";
import { renderError } from "./render.js";
import { blacklist } from "./blacklist.js";
import { whitelist, gistWhitelist } from "./envs.js";
+1 -1
View File
@@ -1,7 +1,7 @@
// @ts-check
import wrap from "word-wrap";
import { encodeHTML } from "./utils.js";
import { encodeHTML } from "./render.js";
/**
* Retrieves num with suffix k(thousands) precise to given decimal places.
+1 -1
View File
@@ -12,4 +12,4 @@ export {
encodeHTML,
flexLayout,
measureText,
} from "./utils.js";
} from "./render.js";