@open-artifact/wasm-motion 0.14.0 → 0.14.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-artifact/wasm-motion",
3
- "version": "0.14.0",
3
+ "version": "0.14.2",
4
4
  "description": "Motion pixel work compiled from crates/open-artifact-motion to WebAssembly (generated/, built by scripts/build-wasm.mjs): GIF quantizing and encoding, MOV (QuickTime Animation) writing, and the flash analysis.",
5
5
  "type": "module",
6
6
  "exports": {
package/src/flash.d.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  * how fast its quickest three flashes over a large enough area are, and so
4
4
  * the least share of its length it may be shortened to.
5
5
  */
6
- import { type RgbaPixels } from './module.ts';
6
+ import { type RgbaPixels } from './module.js';
7
7
  /** Frames are sampled this many times a second. */
8
8
  export declare const FLASH_SAMPLE_FPS = 30;
9
9
  /** The film around a scene sampled too (seconds each side): flashes at its cuts count. */
@@ -7,7 +7,7 @@
7
7
  * cannot start, the same steps run in-thread. Steps of a session run in
8
8
  * the order they were asked for.
9
9
  */
10
- import { type RgbaPixels } from './module.ts';
10
+ import { type RgbaPixels } from './module.js';
11
11
  /** Options of a GIF session. */
12
12
  export interface GifSessionOptions {
13
13
  width: number;
package/src/gif.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Worker, Node, size estimates over a few frames); `openGifSession` runs
5
5
  * the same work in a Worker for a page.
6
6
  */
7
- import { type RgbaPixels } from './module.ts';
7
+ import { type RgbaPixels } from './module.js';
8
8
  /** Options of a palette. */
9
9
  export interface GifPaletteOptions {
10
10
  /** Count fewer pixels and refine less (for a quick palette of one frame). */
package/src/index.d.ts CHANGED
@@ -4,12 +4,12 @@
4
4
  * session for a page), MOV writing (QuickTime Animation with alpha, PCM
5
5
  * sound) and the flash analysis of scenes.
6
6
  */
7
- export type { RgbaPixels } from './module.ts';
8
- export { buildGifPalette, createGifEncoder } from './gif.ts';
9
- export type { GifEncoderOptions, GifFrameEncoder, GifPaletteOptions } from './gif.ts';
10
- export { createMovWriter } from './mov.ts';
11
- export type { MovRepeats, MovSound, MovWriter, MovWriterOptions } from './mov.ts';
12
- export { gifBackend, openGifSession } from './gif-session.ts';
13
- export type { GifSession, GifSessionOptions } from './gif-session.ts';
14
- export { FLASH_MAX_SCENE_SECONDS, FLASH_RASTER_SCALE, FLASH_SAMPLE_FPS, FLASH_SAMPLE_PADDING_SECONDS, analyzeFlashes, createFlashAnalyzer, flashSafeScale, planFlashSampling, } from './flash.ts';
15
- export type { FlashFrameAnalyzer, FlashReport, FlashSampling } from './flash.ts';
7
+ export type { RgbaPixels } from './module.js';
8
+ export { buildGifPalette, createGifEncoder } from './gif.js';
9
+ export type { GifEncoderOptions, GifFrameEncoder, GifPaletteOptions } from './gif.js';
10
+ export { createMovWriter } from './mov.js';
11
+ export type { MovRepeats, MovSound, MovWriter, MovWriterOptions } from './mov.js';
12
+ export { gifBackend, openGifSession } from './gif-session.js';
13
+ export type { GifSession, GifSessionOptions } from './gif-session.js';
14
+ export { FLASH_MAX_SCENE_SECONDS, FLASH_RASTER_SCALE, FLASH_SAMPLE_FPS, FLASH_SAMPLE_PADDING_SECONDS, analyzeFlashes, createFlashAnalyzer, flashSafeScale, planFlashSampling, } from './flash.js';
15
+ export type { FlashFrameAnalyzer, FlashReport, FlashSampling } from './flash.js';
package/src/mov.d.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * bytes of each frame stay here, so its memory stays small, and `finish`
5
5
  * hands back the file as parts in order.
6
6
  */
7
- import { type RgbaPixels } from './module.ts';
7
+ import { type RgbaPixels } from './module.js';
8
8
  /**
9
9
  * What becomes of a frame that repeats the one before: a 7-byte sample
10
10
  * ("unchanged"), the bytes of a repeated key frame stored once ("shared"),