chore: fmt
This commit is contained in:
@@ -4,7 +4,10 @@ type Feather = [number, number, number, number];
|
|||||||
|
|
||||||
export async function featherImage(
|
export async function featherImage(
|
||||||
input: ArrayBuffer,
|
input: ArrayBuffer,
|
||||||
{ passes = [[0, 0.3, 0, 0]], ratio = 1 }: { passes: Feather[], ratio?: number },
|
{
|
||||||
|
passes = [[0, 0.3, 0, 0]],
|
||||||
|
ratio = 1,
|
||||||
|
}: { passes: Feather[]; ratio?: number },
|
||||||
) {
|
) {
|
||||||
const img = await loadImage(Buffer.from(input));
|
const img = await loadImage(Buffer.from(input));
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export function TalentSvg({tw}: {tw?: string}) {
|
export function TalentSvg({ tw }: { tw?: string }) {
|
||||||
return (
|
return (
|
||||||
<svg
|
<svg
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
|||||||
+7
-6
@@ -16,15 +16,13 @@ const colors = [
|
|||||||
"blueBright",
|
"blueBright",
|
||||||
"magentaBright",
|
"magentaBright",
|
||||||
"cyanBright",
|
"cyanBright",
|
||||||
"whiteBright"
|
"whiteBright",
|
||||||
];
|
];
|
||||||
var i = 0;
|
var i = 0;
|
||||||
|
|
||||||
if (!feature("API"))
|
if (!feature("API"))
|
||||||
console.log(
|
console.log(
|
||||||
colors
|
colors.map((c, i) => styleText(c, (i + 10).toString(36))).join(""),
|
||||||
.map((c, i) => styleText(c, (i + 10).toString(36)))
|
|
||||||
.join(""),
|
|
||||||
);
|
);
|
||||||
|
|
||||||
export function createLogger(label?: string) {
|
export function createLogger(label?: string) {
|
||||||
@@ -32,7 +30,9 @@ export function createLogger(label?: string) {
|
|||||||
const col = colors[i];
|
const col = colors[i];
|
||||||
i = (i + 1) % colors.length;
|
i = (i + 1) % colors.length;
|
||||||
return function log(strings: TemplateStringsArray, ...values: unknown[]) {
|
return function log(strings: TemplateStringsArray, ...values: unknown[]) {
|
||||||
const normalized = styleText(col, `${(label ?? `${Date.now() - start}ms`).padStart(7)} | ${strings
|
const normalized = styleText(
|
||||||
|
col,
|
||||||
|
`${(label ?? `${Date.now() - start}ms`).padStart(7)} | ${strings
|
||||||
.reduce(
|
.reduce(
|
||||||
(out, str, i) =>
|
(out, str, i) =>
|
||||||
out +
|
out +
|
||||||
@@ -46,7 +46,8 @@ export function createLogger(label?: string) {
|
|||||||
)
|
)
|
||||||
.split("\n")
|
.split("\n")
|
||||||
.map((l, i) => (i ? `${" ".repeat(7)} | ${l}` : l))
|
.map((l, i) => (i ? `${" ".repeat(7)} | ${l}` : l))
|
||||||
.join("\n")}\n`);
|
.join("\n")}\n`,
|
||||||
|
);
|
||||||
console.write(normalized);
|
console.write(normalized);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user