@paged-media/introspect-wasm 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
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
|
* B-04 — creation spec for a page-item group. Members are NodeIds
|
|
5
30
|
* of page items: leaf shapes OR (v2 / W1.20) existing `Group`s, so
|
|
@@ -95,6 +120,11 @@ export interface InvalidationHint {
|
|
|
95
120
|
structural: boolean;
|
|
96
121
|
}
|
|
97
122
|
|
|
123
|
+
/**
|
|
124
|
+
* One drawable in a [`SceneLayer`]. Coordinates are frame-content points.
|
|
125
|
+
*/
|
|
126
|
+
export type SceneItem = { kind: "fillPath"; path: ScenePathSeg[]; paint: ScenePaint } | { kind: "strokePath"; path: ScenePathSeg[]; paint: ScenePaint; width: number };
|
|
127
|
+
|
|
98
128
|
/**
|
|
99
129
|
* One stop of a gradient on the wire. Mirrors `GradientStopRef`.
|
|
100
130
|
*/
|
|
Binary file
|