@takumi-rs/core 2.12.0 → 2.13.1

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.d.cts CHANGED
@@ -39,7 +39,9 @@ interface FontDetails {
39
39
  generic?: "serif" | "sans-serif" | "monospace" | "cursive" | "fantasy" | "system-ui" | "ui-serif" | "ui-sans-serif" | "ui-monospace" | "ui-rounded" | "emoji" | "math" | "fangsong";
40
40
  }
41
41
  type Font = FontDetails | ByteBuf;
42
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
42
43
  type KeyframesMap = Record<string, Record<string, Properties>>;
44
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
43
45
  type KeyframesRuleList = {
44
46
  name: string;
45
47
  keyframes: {
@@ -47,6 +49,7 @@ type KeyframesRuleList = {
47
49
  declarations: Record<string, Properties>;
48
50
  }[];
49
51
  }[];
52
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
50
53
  type Keyframes = KeyframesMap | KeyframesRuleList;
51
54
  /** Output format for animated images. */
52
55
  type AnimationOutputFormat = 'webp' |
@@ -155,9 +158,14 @@ interface RenderAnimationOptions$1 {
155
158
  fps: number;
156
159
  /** Images keyed by `src`, each carrying raw bytes. */
157
160
  images?: Array<ImageSource>;
158
- /** CSS stylesheets to apply before rendering. */
161
+ /**
162
+ * CSS to apply before rendering: stylesheet text, or a rule written as an
163
+ * object.
164
+ */
165
+ css?: CssInput[];
166
+ /** @deprecated Use `css` instead. Will be removed in v3. */
159
167
  stylesheets?: Array<string>;
160
- /** Structured keyframes to register alongside stylesheets. */
168
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
161
169
  keyframes?: Keyframes;
162
170
  /**
163
171
  * The device pixel ratio.
@@ -203,9 +211,14 @@ interface RenderOptions$1 {
203
211
  drawDebugBorder?: boolean;
204
212
  /** Images keyed by `src`, each carrying raw bytes. */
205
213
  images?: Array<ImageSource>;
206
- /** CSS stylesheets to apply before rendering. */
214
+ /**
215
+ * CSS to apply before rendering: stylesheet text, or a rule written as an
216
+ * object.
217
+ */
218
+ css?: CssInput[];
219
+ /** @deprecated Use `css` instead. Will be removed in v3. */
207
220
  stylesheets?: Array<string>;
208
- /** Structured keyframes to register alongside stylesheets. */
221
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
209
222
  keyframes?: Keyframes;
210
223
  /**
211
224
  * The device pixel ratio.
@@ -249,9 +262,14 @@ interface SvgRenderOptions$1 {
249
262
  height?: number;
250
263
  /** Images keyed by `src`, each carrying raw bytes. */
251
264
  images?: Array<ImageSource>;
252
- /** CSS stylesheets to apply before rendering. */
265
+ /**
266
+ * CSS to apply before rendering: stylesheet text, or a rule written as an
267
+ * object.
268
+ */
269
+ css?: CssInput[];
270
+ /** @deprecated Use `css` instead. Will be removed in v3. */
253
271
  stylesheets?: Array<string>;
254
- /** Structured keyframes to register alongside stylesheets. */
272
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
255
273
  keyframes?: Keyframes;
256
274
  /** The animation timeline time in milliseconds. */
257
275
  timeMs?: number;
package/dist/export.d.mts CHANGED
@@ -39,7 +39,9 @@ interface FontDetails {
39
39
  generic?: "serif" | "sans-serif" | "monospace" | "cursive" | "fantasy" | "system-ui" | "ui-serif" | "ui-sans-serif" | "ui-monospace" | "ui-rounded" | "emoji" | "math" | "fangsong";
40
40
  }
41
41
  type Font = FontDetails | ByteBuf;
42
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
42
43
  type KeyframesMap = Record<string, Record<string, Properties>>;
44
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
43
45
  type KeyframesRuleList = {
44
46
  name: string;
45
47
  keyframes: {
@@ -47,6 +49,7 @@ type KeyframesRuleList = {
47
49
  declarations: Record<string, Properties>;
48
50
  }[];
49
51
  }[];
52
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
50
53
  type Keyframes = KeyframesMap | KeyframesRuleList;
51
54
  /** Output format for animated images. */
52
55
  type AnimationOutputFormat = 'webp' |
@@ -155,9 +158,14 @@ interface RenderAnimationOptions$1 {
155
158
  fps: number;
156
159
  /** Images keyed by `src`, each carrying raw bytes. */
157
160
  images?: Array<ImageSource>;
158
- /** CSS stylesheets to apply before rendering. */
161
+ /**
162
+ * CSS to apply before rendering: stylesheet text, or a rule written as an
163
+ * object.
164
+ */
165
+ css?: CssInput[];
166
+ /** @deprecated Use `css` instead. Will be removed in v3. */
159
167
  stylesheets?: Array<string>;
160
- /** Structured keyframes to register alongside stylesheets. */
168
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
161
169
  keyframes?: Keyframes;
162
170
  /**
163
171
  * The device pixel ratio.
@@ -203,9 +211,14 @@ interface RenderOptions$1 {
203
211
  drawDebugBorder?: boolean;
204
212
  /** Images keyed by `src`, each carrying raw bytes. */
205
213
  images?: Array<ImageSource>;
206
- /** CSS stylesheets to apply before rendering. */
214
+ /**
215
+ * CSS to apply before rendering: stylesheet text, or a rule written as an
216
+ * object.
217
+ */
218
+ css?: CssInput[];
219
+ /** @deprecated Use `css` instead. Will be removed in v3. */
207
220
  stylesheets?: Array<string>;
208
- /** Structured keyframes to register alongside stylesheets. */
221
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
209
222
  keyframes?: Keyframes;
210
223
  /**
211
224
  * The device pixel ratio.
@@ -249,9 +262,14 @@ interface SvgRenderOptions$1 {
249
262
  height?: number;
250
263
  /** Images keyed by `src`, each carrying raw bytes. */
251
264
  images?: Array<ImageSource>;
252
- /** CSS stylesheets to apply before rendering. */
265
+ /**
266
+ * CSS to apply before rendering: stylesheet text, or a rule written as an
267
+ * object.
268
+ */
269
+ css?: CssInput[];
270
+ /** @deprecated Use `css` instead. Will be removed in v3. */
253
271
  stylesheets?: Array<string>;
254
- /** Structured keyframes to register alongside stylesheets. */
272
+ /** @deprecated Use a `{ keyframes, steps }` entry in `css` instead. Will be removed in v3. */
255
273
  keyframes?: Keyframes;
256
274
  /** The animation timeline time in milliseconds. */
257
275
  timeMs?: number;