@paged-media/plugin-api 0.2.21-canary.0 → 0.2.22-canary.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.
Files changed (2) hide show
  1. package/dist/wire.d.ts +13 -3
  2. package/package.json +1 -1
package/dist/wire.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // GENERATED — do not edit. Vendored verbatim from the published
2
2
  // @paged-media/canvas-wasm .d.ts (tsify output from paged-media/core,
3
3
  // MPL-2.0 OR PMEL). Sync: node scripts/sync-wire.mjs · Check: --check.
4
- // Synced from @paged-media/canvas-wasm@0.45.0
4
+ // Synced from @paged-media/canvas-wasm@0.46.0
5
5
  /* tslint:disable */
6
6
  /* eslint-disable */
7
7
 
@@ -32,6 +32,16 @@ export type ScenePathSeg = { op: "moveTo"; x: number; y: number } | { op: "lineT
32
32
  */
33
33
  export type ByteBuf = number[];
34
34
 
35
+ /**
36
+ * A compositing blend mode for [`SceneItem::FillPathBlend`] (C-1.4).
37
+ * Mirrors the CSS-relevant subset of the display list\'s
38
+ * [`BlendMode`] — `Normal` is intentionally absent (a normal fill is
39
+ * just [`SceneItem::FillPath`]). Maps 1:1 to [`BlendMode`] at
40
+ * lowering, so a plugin\'s `mix-blend-mode` composites identically to
41
+ * a native IDML transparency blend.
42
+ */
43
+ export type SceneBlendMode = "multiply" | "screen" | "overlay" | "darken" | "lighten" | "colorDodge" | "colorBurn" | "hardLight" | "softLight" | "difference" | "exclusion" | "hue" | "saturation" | "color" | "luminosity";
44
+
35
45
  /**
36
46
  * A content-space mutation. Phase 1 carries the *envelope* only —
37
47
  * the worker rejects each variant with `WorkerError::NotImplemented`.
@@ -45,7 +55,7 @@ export type Mutation = { op: "insertText"; args: { storyId: string; offset: numb
45
55
  * like the filled path). Colours are sRGB, linearised at lowering to
46
56
  * composite identically to document colours.
47
57
  */
48
- export type SceneGradient = { type: "linear"; x0: number; y0: number; x1: number; y1: number; stops: SceneGradientStop[] } | { type: "radial"; cx: number; cy: number; radius: number; stops: SceneGradientStop[] };
58
+ export type SceneGradient = { type: "linear"; x0: number; y0: number; x1: number; y1: number; stops: SceneGradientStop[] } | { type: "radial"; cx: number; cy: number; radius: number; stops: SceneGradientStop[] } | { type: "sweep"; cx: number; cy: number; start_angle: number; stops: SceneGradientStop[] };
49
59
 
50
60
  /**
51
61
  * A plugin-submitted vector layer in frame-content coordinates. Keyed
@@ -609,7 +619,7 @@ export interface SceneGradientStop {
609
619
  /**
610
620
  * One drawable in a [`SceneLayer`]. Coordinates are frame-content points.
611
621
  */
612
- export type SceneItem = { kind: "fillPath"; path: ScenePathSeg[]; paint: ScenePaint } | { kind: "strokePath"; path: ScenePathSeg[]; paint: ScenePaint; width: number } | ({ kind: "text" } & SceneTextItem) | { kind: "image"; rgba: number[]; width: number; height: number; x: number; y: number; w: number; h: number } | { kind: "fillPathGradient"; path: ScenePathSeg[]; gradient: SceneGradient };
622
+ export type SceneItem = { kind: "fillPath"; path: ScenePathSeg[]; paint: ScenePaint } | { kind: "strokePath"; path: ScenePathSeg[]; paint: ScenePaint; width: number } | ({ kind: "text" } & SceneTextItem) | { kind: "image"; rgba: number[]; width: number; height: number; x: number; y: number; w: number; h: number } | { kind: "fillPathGradient"; path: ScenePathSeg[]; gradient: SceneGradient } | { kind: "fillPathBlend"; path: ScenePathSeg[]; paint: ScenePaint; blend: SceneBlendMode } | { kind: "dropShadow"; path: ScenePathSeg[]; offset_x: number; offset_y: number; blur_radius: number; r: number; g: number; b: number; a: number };
613
623
 
614
624
  /**
615
625
  * One entry in the field diff: a field whose resolved text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paged-media/plugin-api",
3
- "version": "0.2.21-canary.0",
3
+ "version": "0.2.22-canary.0",
4
4
  "description": "The Paged plugin contract: manifest, bundle lifecycle, the BundleHost surface, and the contribution + engine wire types. Type-only.",
5
5
  "license": "MPL-2.0 OR LicenseRef-PMEL",
6
6
  "type": "module",