@open-artifact/canvas-engine 0.13.0 → 0.14.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-artifact/canvas-engine",
3
- "version": "0.13.0",
3
+ "version": "0.14.1",
4
4
  "description": "A generic WebGL2 canvas engine (crates/open-artifact-canvas via @open-artifact/wasm-canvas): TS owns the document, the engine mirrors it, draws every frame and handles pointer, wheel and camera.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -24,7 +24,7 @@
24
24
  "NOTICE"
25
25
  ],
26
26
  "dependencies": {
27
- "@open-artifact/wasm-canvas": "0.13.0"
27
+ "@open-artifact/wasm-canvas": "0.14.1"
28
28
  },
29
29
  "license": "Apache-2.0",
30
30
  "author": {
package/src/camera.d.ts CHANGED
@@ -8,7 +8,7 @@
8
8
  * Zoom limits differ per editor, so every function that clamps takes them
9
9
  * as arguments; the shared zoom ladder and menu presets live here.
10
10
  */
11
- import type { CameraState, Point, Rect } from './types.ts';
11
+ import type { CameraState, Point, Rect } from './types.js';
12
12
  export type { CameraState, Point, Rect };
13
13
  /** Steps the wheel, the keyboard and the zoom buttons walk. */
14
14
  export declare const ZOOM_STEPS: readonly number[];
package/src/engine.d.ts CHANGED
@@ -7,7 +7,7 @@
7
7
  * (selection, camera, commits, texture requests, holes…) and never edits the
8
8
  * document: a finished drag is a `commit` the owner applies (or not; see `commit`).
9
9
  */
10
- import type { CameraState, CanvasEventName, CanvasEvents, CanvasItem, CreateOptions, EngineOptions, EngineStats, GlideOptions, Handle, HoleRect, Patch, Peer, Point, PointerInput, Rect, TextureSource, Tool } from './types.ts';
10
+ import type { CameraState, CanvasEventName, CanvasEvents, CanvasItem, CreateOptions, EngineOptions, EngineStats, GlideOptions, Handle, HoleRect, Patch, Peer, Point, PointerInput, Rect, TextureSource, Tool } from './types.js';
11
11
  type Listener<K extends CanvasEventName> = (event: CanvasEvents[K]) => void;
12
12
  export declare class CanvasEngine {
13
13
  #private;
package/src/index.d.ts CHANGED
@@ -2,6 +2,6 @@
2
2
  * @open-artifact/canvas-engine: a generic WebGL2 canvas engine in Rust/WASM
3
3
  * (`crates/open-artifact-canvas`) with a TypeScript API. See `CanvasEngine`.
4
4
  */
5
- export { CanvasEngine } from './engine.ts';
6
- export { parseColor, parseSvgPath, polylineCommands, PatchEncoder, IdRegistry, MAX_CUTS } from './protocol.ts';
7
- export type * from './types.ts';
5
+ export { CanvasEngine } from './engine.js';
6
+ export { parseColor, parseSvgPath, polylineCommands, PatchEncoder, IdRegistry, MAX_CUTS } from './protocol.js';
7
+ export type * from './types.js';
package/src/protocol.d.ts CHANGED
@@ -12,7 +12,7 @@
12
12
  * 30 fill rule 31 reserved
13
13
  * Path commands (f32): 0 M x y, 1 L x y, 2 Q cx cy x y, 3 C c1x c1y c2x c2y x y, 4 Z.
14
14
  */
15
- import type { CanvasItem, Color, ItemFlags, Patch } from './types.ts';
15
+ import type { CanvasItem, Color, ItemFlags, Patch } from './types.js';
16
16
  export declare const REC = 32;
17
17
  export declare const OP_UPSERT = 1;
18
18
  export declare const OP_REMOVE = 2;