koishi-plugin-vercel-satori-png-service 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/emoji.d.ts ADDED
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Modified version of https://unpkg.com/twemoji@13.1.0/dist/twemoji.esm.js.
3
+ */
4
+ export declare function getIconCode(char: string): string;
5
+ declare const apis: {
6
+ twemoji: (code: any) => string;
7
+ openmoji: string;
8
+ blobmoji: string;
9
+ noto: string;
10
+ fluent: (code: any) => string;
11
+ fluentFlat: (code: any) => string;
12
+ };
13
+ export type EmojiType = keyof typeof apis;
14
+ export declare function loadEmoji(code: string, type?: EmojiType): Promise<Response>;
15
+ export {};
@@ -0,0 +1,28 @@
1
+ export declare class FontDetector {
2
+ private rangesByLang;
3
+ detect(text: string, fonts: string[]): Promise<{
4
+ [lang: string]: string;
5
+ }>;
6
+ private detectSegment;
7
+ private load;
8
+ private addDetectors;
9
+ }
10
+ export declare const languageFontMap: {
11
+ 'ja-JP': string;
12
+ 'ko-KR': string;
13
+ 'zh-CN': string;
14
+ 'zh-TW': string;
15
+ 'zh-HK': string;
16
+ 'th-TH': string;
17
+ 'bn-IN': string;
18
+ 'ar-AR': string;
19
+ 'ta-IN': string;
20
+ 'ml-IN': string;
21
+ 'he-IL': string;
22
+ 'te-IN': string;
23
+ devanagari: string;
24
+ kannada: string;
25
+ symbol: string[];
26
+ math: string;
27
+ unknown: string;
28
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-vercel-satori-png-service",
3
3
  "description": "Use Vercel Satori and Resvg.js to convert html to png",
4
- "version": "0.1.6",
4
+ "version": "0.1.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "scripts": {