UNPKG

@yamabuki/koishi-plugin-pjsk-stamp-maker

Version:

koishi-plugin-pjsk-stamp-maker改版,使用skia-canvas替代koishi-plugin-canvas

11 lines (10 loc) 743 B
import { Context } from "koishi"; import { baseImage } from "./utils"; import { Style } from "./config"; export interface drawTextOptions extends Style { color: string; } export declare function drawBaseImageList(koishiContext: Context, baseImages: baseImage[]): Promise<Buffer<ArrayBufferLike>>; export declare function draw(context: Context, baseImages: baseImage[], inputText: string, baseImageId: number): Promise<Buffer<ArrayBufferLike>>; export declare function drawTextWithoutCurve(koishiContext: Context, text: string, { color, textAlign, textOrientation }: drawTextOptions): Promise<Buffer>; export declare function drawTextWithCurve(koishiContext: Context, text: string, { color, textAlign, }: drawTextOptions): Promise<Buffer>;