@takumi-rs/core 2.12.0 → 2.13.0
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/dist/export.cjs +350 -339
- package/dist/export.d.cts +24 -6
- package/dist/export.d.mts +24 -6
- package/dist/export.mjs +350 -339
- package/index.d.ts +24 -6
- package/package.json +13 -13
package/index.d.ts
CHANGED
|
@@ -64,7 +64,9 @@ export interface FontDetails {
|
|
|
64
64
|
|
|
65
65
|
export type Font = FontDetails | ByteBuf;
|
|
66
66
|
|
|
67
|
+
/** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
|
|
67
68
|
export type KeyframesMap = Record<string, Record<string, Properties>>;
|
|
69
|
+
/** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
|
|
68
70
|
export type KeyframesRuleList = {
|
|
69
71
|
name: string;
|
|
70
72
|
keyframes: {
|
|
@@ -72,6 +74,7 @@ export type KeyframesRuleList = {
|
|
|
72
74
|
declarations: Record<string, Properties>;
|
|
73
75
|
}[];
|
|
74
76
|
}[];
|
|
77
|
+
/** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
|
|
75
78
|
export type Keyframes = KeyframesMap | KeyframesRuleList;
|
|
76
79
|
/** The main renderer for Takumi image rendering engine (Node.js version). */
|
|
77
80
|
export declare class Renderer {
|
|
@@ -211,9 +214,14 @@ export interface RenderAnimationOptions {
|
|
|
211
214
|
fps: number
|
|
212
215
|
/** Images keyed by `src`, each carrying raw bytes. */
|
|
213
216
|
images?: Array<ImageSource>
|
|
214
|
-
/**
|
|
217
|
+
/**
|
|
218
|
+
* CSS to apply before rendering: stylesheet text, or a rule written as an
|
|
219
|
+
* object.
|
|
220
|
+
*/
|
|
221
|
+
css?: CssInput[]
|
|
222
|
+
/** @deprecated Use `css` instead. Will be removed in v3. */
|
|
215
223
|
stylesheets?: Array<string>
|
|
216
|
-
/**
|
|
224
|
+
/** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
|
|
217
225
|
keyframes?: Keyframes
|
|
218
226
|
/**
|
|
219
227
|
* The device pixel ratio.
|
|
@@ -261,9 +269,14 @@ export interface RenderOptions {
|
|
|
261
269
|
drawDebugBorder?: boolean
|
|
262
270
|
/** Images keyed by `src`, each carrying raw bytes. */
|
|
263
271
|
images?: Array<ImageSource>
|
|
264
|
-
/**
|
|
272
|
+
/**
|
|
273
|
+
* CSS to apply before rendering: stylesheet text, or a rule written as an
|
|
274
|
+
* object.
|
|
275
|
+
*/
|
|
276
|
+
css?: CssInput[]
|
|
277
|
+
/** @deprecated Use `css` instead. Will be removed in v3. */
|
|
265
278
|
stylesheets?: Array<string>
|
|
266
|
-
/**
|
|
279
|
+
/** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
|
|
267
280
|
keyframes?: Keyframes
|
|
268
281
|
/**
|
|
269
282
|
* The device pixel ratio.
|
|
@@ -309,9 +322,14 @@ export interface SvgRenderOptions {
|
|
|
309
322
|
height?: number
|
|
310
323
|
/** Images keyed by `src`, each carrying raw bytes. */
|
|
311
324
|
images?: Array<ImageSource>
|
|
312
|
-
/**
|
|
325
|
+
/**
|
|
326
|
+
* CSS to apply before rendering: stylesheet text, or a rule written as an
|
|
327
|
+
* object.
|
|
328
|
+
*/
|
|
329
|
+
css?: CssInput[]
|
|
330
|
+
/** @deprecated Use `css` instead. Will be removed in v3. */
|
|
313
331
|
stylesheets?: Array<string>
|
|
314
|
-
/**
|
|
332
|
+
/** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
|
|
315
333
|
keyframes?: Keyframes
|
|
316
334
|
/** The animation timeline time in milliseconds. */
|
|
317
335
|
timeMs?: number
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@takumi-rs/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "Render OG images from Takumi node trees with native Node.js bindings. No headless browser.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"css",
|
|
@@ -69,14 +69,14 @@
|
|
|
69
69
|
"publish-lint": "attw --pack . && publint --strict ."
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@takumi-rs/helpers": "2.
|
|
72
|
+
"@takumi-rs/helpers": "2.13.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@napi-rs/cli": "3.8.
|
|
76
|
-
"@types/bun": "^1.
|
|
75
|
+
"@napi-rs/cli": "3.8.6",
|
|
76
|
+
"@types/bun": "^1.4.0",
|
|
77
77
|
"@types/react": "19.2.18",
|
|
78
78
|
"csstype": "^3.2.3",
|
|
79
|
-
"lucide-react": "^1.
|
|
79
|
+
"lucide-react": "^1.33.0",
|
|
80
80
|
"mitata": "^1.0.34",
|
|
81
81
|
"react": "^19.2.8",
|
|
82
82
|
"tsdown": "0.22.14",
|
|
@@ -108,13 +108,13 @@
|
|
|
108
108
|
"node": ">=18"
|
|
109
109
|
},
|
|
110
110
|
"optionalDependencies": {
|
|
111
|
-
"@takumi-rs/core-darwin-x64": "2.
|
|
112
|
-
"@takumi-rs/core-darwin-arm64": "2.
|
|
113
|
-
"@takumi-rs/core-linux-arm64-gnu": "2.
|
|
114
|
-
"@takumi-rs/core-linux-arm64-musl": "2.
|
|
115
|
-
"@takumi-rs/core-win32-arm64-msvc": "2.
|
|
116
|
-
"@takumi-rs/core-linux-x64-gnu": "2.
|
|
117
|
-
"@takumi-rs/core-linux-x64-musl": "2.
|
|
118
|
-
"@takumi-rs/core-win32-x64-msvc": "2.
|
|
111
|
+
"@takumi-rs/core-darwin-x64": "2.13.0",
|
|
112
|
+
"@takumi-rs/core-darwin-arm64": "2.13.0",
|
|
113
|
+
"@takumi-rs/core-linux-arm64-gnu": "2.13.0",
|
|
114
|
+
"@takumi-rs/core-linux-arm64-musl": "2.13.0",
|
|
115
|
+
"@takumi-rs/core-win32-arm64-msvc": "2.13.0",
|
|
116
|
+
"@takumi-rs/core-linux-x64-gnu": "2.13.0",
|
|
117
|
+
"@takumi-rs/core-linux-x64-musl": "2.13.0",
|
|
118
|
+
"@takumi-rs/core-win32-x64-msvc": "2.13.0"
|
|
119
119
|
}
|
|
120
120
|
}
|