@pygmalionjs/pygmalion 0.7.3 → 0.7.4
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/dist-lib/pygmalion.js +1194 -1184
- package/dist-lib/types/editor/captureSupply.d.ts +10 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RoutePreviewFrameRecipe } from './previewBootstrap';
|
|
2
|
-
import type { RoutePreviewArtifactResolution } from './routePreview';
|
|
2
|
+
import type { RoutePreviewArtifactFrameIdentity, RoutePreviewArtifactResolution } from './routePreview';
|
|
3
3
|
/**
|
|
4
4
|
* Who fills a canvas first.
|
|
5
5
|
*
|
|
@@ -24,8 +24,17 @@ export interface CaptureSupplyFrame {
|
|
|
24
24
|
*/
|
|
25
25
|
distance: number;
|
|
26
26
|
fingerprint: string;
|
|
27
|
+
/** Identity of `recipe` alone; travels with it so a generator can verify what it is asked to capture. */
|
|
28
|
+
recipeFingerprint?: string;
|
|
27
29
|
recipe?: RoutePreviewFrameRecipe;
|
|
28
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* The wire identity of a supply frame. A recipe never travels without its
|
|
33
|
+
* fingerprint: a generator validates the recipe it is handed against that
|
|
34
|
+
* fingerprint, and a request carrying one without the other is refused as
|
|
35
|
+
* unverifiable, which left every swept frame "not prepared".
|
|
36
|
+
*/
|
|
37
|
+
export declare function captureSupplyFrameRequest(frame: CaptureSupplyFrame): RoutePreviewArtifactFrameIdentity;
|
|
29
38
|
export interface CaptureSupplyPlan {
|
|
30
39
|
/** Canvas that owned the viewport when this plan was built. */
|
|
31
40
|
activeCanvas?: string;
|