@paged-media/idml-viewer 0.37.0 → 0.39.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/package.json +1 -1
- package/wasm/paged_sdk.d.ts +30 -0
- package/wasm/paged_sdk.js +1 -1
- package/wasm/paged_sdk_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paged-media/idml-viewer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.0",
|
|
4
4
|
"description": "Standalone IDML viewer for the browser — camera, pages, input and events over the @paged-media/sdk WebGPU ViewerSession.",
|
|
5
5
|
"license": "MPL-2.0 OR LicenseRef-PMEL",
|
|
6
6
|
"repository": {
|
package/wasm/paged_sdk.d.ts
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* A bezier path segment in frame-content coordinates (points).
|
|
5
|
+
*/
|
|
6
|
+
export type ScenePathSeg = { op: "moveTo"; x: number; y: number } | { op: "lineTo"; x: number; y: number } | { op: "cubicTo"; cx1: number; cy1: number; cx2: number; cy2: number; x: number; y: number } | { op: "close" };
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A plugin-submitted vector layer in frame-content coordinates. Keyed
|
|
10
|
+
* (on the wire) by the host element id of the frame it renders into.
|
|
11
|
+
*/
|
|
12
|
+
export interface SceneLayer {
|
|
13
|
+
items: SceneItem[];
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A solid paint in **sRGB** (0..=1 per channel; alpha is linear). Core
|
|
18
|
+
* converts to the display list\'s linear-light [`Color`] so plugin
|
|
19
|
+
* colours composite identically to document colours.
|
|
20
|
+
*/
|
|
21
|
+
export interface ScenePaint {
|
|
22
|
+
r: number;
|
|
23
|
+
g: number;
|
|
24
|
+
b: number;
|
|
25
|
+
a: number;
|
|
26
|
+
}
|
|
27
|
+
|
|
3
28
|
/**
|
|
4
29
|
* Continuous-layout geometry for every page, so the TS wrapper
|
|
5
30
|
* computes fit / goToPage / currentPage / scroll extents without
|
|
@@ -12,6 +37,11 @@ export interface PagesLayout {
|
|
|
12
37
|
pages: PageRect[];
|
|
13
38
|
}
|
|
14
39
|
|
|
40
|
+
/**
|
|
41
|
+
* One drawable in a [`SceneLayer`]. Coordinates are frame-content points.
|
|
42
|
+
*/
|
|
43
|
+
export type SceneItem = { kind: "fillPath"; path: ScenePathSeg[]; paint: ScenePaint } | { kind: "strokePath"; path: ScenePathSeg[]; paint: ScenePaint; width: number };
|
|
44
|
+
|
|
15
45
|
/**
|
|
16
46
|
* Stable page identity, independent of position in the page vector.
|
|
17
47
|
*
|
package/wasm/paged_sdk.js
CHANGED
|
@@ -1348,7 +1348,7 @@ function __wbg_get_imports() {
|
|
|
1348
1348
|
arg0.writeTexture(arg1, getArrayU8FromWasm0(arg2, arg3), arg4, arg5);
|
|
1349
1349
|
}, arguments); },
|
|
1350
1350
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1351
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
1351
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 1708, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1352
1352
|
const ret = makeMutClosure(arg0, arg1, wasm_bindgen__convert__closures_____invoke__h0cde11723d429dba);
|
|
1353
1353
|
return ret;
|
|
1354
1354
|
},
|
package/wasm/paged_sdk_bg.wasm
CHANGED
|
Binary file
|