satoru-render 0.0.10 → 0.0.12
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/README.md +9 -0
- package/dist/core.js +2 -0
- package/dist/satoru-single.js +0 -0
- package/dist/satoru.wasm +0 -0
- package/dist/web-workers.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -12,6 +12,15 @@ By combining the **Skia** graphics engine with a custom **litehtml** layout core
|
|
|
12
12
|
|
|
13
13
|

|
|
14
14
|
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
- Cloudflare Workers
|
|
18
|
+
https://github.com/SoraKumo001/satoru-cloudflare-ogp
|
|
19
|
+
- Deno Deploy
|
|
20
|
+
https://github.com/SoraKumo001/satoru-deno-ogp-image
|
|
21
|
+
- Next.js(Vercel)
|
|
22
|
+
https://github.com/SoraKumo001/next-satoru
|
|
23
|
+
|
|
15
24
|
---
|
|
16
25
|
|
|
17
26
|
## ✨ Key Features
|
package/dist/core.js
CHANGED
|
@@ -5,6 +5,8 @@ export const DEFAULT_FONT_MAP = {
|
|
|
5
5
|
monospace: "https://cdn.jsdelivr.net/npm/@fontsource/m-plus-1-code/files/m-plus-1-code-japanese-400-normal.woff2",
|
|
6
6
|
cursive: "https://cdn.jsdelivr.net/npm/@fontsource/yuji-syuku/files/yuji-syuku-japanese-400-normal.woff2",
|
|
7
7
|
fantasy: "https://cdn.jsdelivr.net/npm/@fontsource/reggae-one/files/reggae-one-japanese-400-normal.woff2",
|
|
8
|
+
emoji: "https://cdn.jsdelivr.net/npm/@fontsource/noto-color-emoji/files/noto-color-emoji-emoji-400-normal.woff2",
|
|
9
|
+
"Noto Color Emoji": "https://cdn.jsdelivr.net/npm/@fontsource/noto-color-emoji/files/noto-color-emoji-emoji-400-normal.woff2",
|
|
8
10
|
};
|
|
9
11
|
export async function resolveGoogleFonts(resource, userAgent) {
|
|
10
12
|
if (!resource.url.startsWith("provider:google-fonts"))
|
package/dist/satoru-single.js
CHANGED
|
Binary file
|
package/dist/satoru.wasm
CHANGED
|
Binary file
|