@paged-media/introspect-wasm 0.38.0 → 0.40.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,58 @@
|
|
|
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 single-line text run in frame-content coordinates (C-1.1).
|
|
18
|
+
*/
|
|
19
|
+
export interface SceneTextItem {
|
|
20
|
+
/**
|
|
21
|
+
* Baseline origin x in frame-content points.
|
|
22
|
+
*/
|
|
23
|
+
x: number;
|
|
24
|
+
/**
|
|
25
|
+
* Baseline origin y in frame-content points (the text baseline).
|
|
26
|
+
*/
|
|
27
|
+
y: number;
|
|
28
|
+
/**
|
|
29
|
+
* The run\'s text (single line — newlines are not laid out).
|
|
30
|
+
*/
|
|
31
|
+
text: string;
|
|
32
|
+
/**
|
|
33
|
+
* Point size.
|
|
34
|
+
*/
|
|
35
|
+
size: number;
|
|
36
|
+
paint: ScenePaint;
|
|
37
|
+
/**
|
|
38
|
+
* Reserved face hints (v1 renders in the document default font).
|
|
39
|
+
*/
|
|
40
|
+
family?: string;
|
|
41
|
+
style?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* A solid paint in **sRGB** (0..=1 per channel; alpha is linear). Core
|
|
46
|
+
* converts to the display list\'s linear-light [`Color`] so plugin
|
|
47
|
+
* colours composite identically to document colours.
|
|
48
|
+
*/
|
|
49
|
+
export interface ScenePaint {
|
|
50
|
+
r: number;
|
|
51
|
+
g: number;
|
|
52
|
+
b: number;
|
|
53
|
+
a: number;
|
|
54
|
+
}
|
|
55
|
+
|
|
3
56
|
/**
|
|
4
57
|
* B-04 — creation spec for a page-item group. Members are NodeIds
|
|
5
58
|
* of page items: leaf shapes OR (v2 / W1.20) existing `Group`s, so
|
|
@@ -95,6 +148,11 @@ export interface InvalidationHint {
|
|
|
95
148
|
structural: boolean;
|
|
96
149
|
}
|
|
97
150
|
|
|
151
|
+
/**
|
|
152
|
+
* One drawable in a [`SceneLayer`]. Coordinates are frame-content points.
|
|
153
|
+
*/
|
|
154
|
+
export type SceneItem = { kind: "fillPath"; path: ScenePathSeg[]; paint: ScenePaint } | { kind: "strokePath"; path: ScenePathSeg[]; paint: ScenePaint; width: number } | ({ kind: "text" } & SceneTextItem);
|
|
155
|
+
|
|
98
156
|
/**
|
|
99
157
|
* One stop of a gradient on the wire. Mirrors `GradientStopRef`.
|
|
100
158
|
*/
|
|
Binary file
|