@hyperframes/core 0.9.5 → 0.9.7
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/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ export { colorGroupOf, effectiveColorGrading, ensureColorGroupInertStyle, HF_COL
|
|
|
36
36
|
export { parseCubeLut, CubeLutParseError, type CubeLut3D, type ParseCubeLutOptions, } from "./colorLuts.js";
|
|
37
37
|
export { bakeHfColorGradingCube, type BakeHfColorGradingCubeOptions } from "./colorGradingBake.js";
|
|
38
38
|
export { firstFrameColourArgs, hdrToSdrToneMapFilter, parseFirstFrameColour, type ToneMapSourceColour, } from "./hdrToneMap.js";
|
|
39
|
-
export { HEAVY_BITRATE, HEAVY_PIXEL_SHARE, PREVIEW_PROXY_BOX_PARAM, PREVIEW_PROXY_LIGHT_PARAM, PREVIEW_PROXY_PRIORITY_HEADER, PREVIEW_PROXY_PROGRESS_HEADER, PREVIEW_PROXY_RETRY_PARAM, PREVIEW_QUALITY_LEVELS, formatPreviewProxyBox, isHeavyForPreview, isPreviewQuality, parsePreviewProxyBox, quantizePreviewProxyBox, scalePreviewProxyBox, type PreviewProxyBox, type PreviewQuality, type PreviewSourceFacts, } from "./previewProxyBox.js";
|
|
39
|
+
export { HEAVY_BITRATE, HEAVY_PIXEL_SHARE, PREVIEW_PROXY_BOX_PARAM, PREVIEW_PROXY_LIGHT_PARAM, PREVIEW_PROXY_PRIORITY_HEADER, PREVIEW_PROXY_PROGRESS_HEADER, PREVIEW_PROXY_RETRY_PARAM, PREVIEW_PROXY_STILL_PARAM, PREVIEW_QUALITY_LEVELS, formatPreviewProxyBox, isHeavyForPreview, isPreviewQuality, parsePreviewProxyBox, quantizePreviewProxyBox, scalePreviewProxyBox, type PreviewProxyBox, type PreviewQuality, type PreviewSourceFacts, } from "./previewProxyBox.js";
|
|
40
40
|
export { HYPERFRAME_RUNTIME_ARTIFACTS, HYPERFRAME_RUNTIME_CONTRACT, loadHyperframeRuntimeSource, type HyperframeRuntimeContract, } from "./inline-scripts/hyperframe.js";
|
|
41
41
|
export { HYPERFRAME_RUNTIME_GLOBALS, HYPERFRAME_BRIDGE_SOURCES, HYPERFRAME_CONTROL_ACTIONS, type HyperframeControlAction, } from "./inline-scripts/runtimeContract.js";
|
|
42
42
|
export { getHyperframeRuntimeScript } from "./generated/runtime-inline.js";
|
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ export { colorGroupOf, effectiveColorGrading, ensureColorGroupInertStyle, HF_COL
|
|
|
32
32
|
export { parseCubeLut, CubeLutParseError, } from "./colorLuts.js";
|
|
33
33
|
export { bakeHfColorGradingCube } from "./colorGradingBake.js";
|
|
34
34
|
export { firstFrameColourArgs, hdrToSdrToneMapFilter, parseFirstFrameColour, } from "./hdrToneMap.js";
|
|
35
|
-
export { HEAVY_BITRATE, HEAVY_PIXEL_SHARE, PREVIEW_PROXY_BOX_PARAM, PREVIEW_PROXY_LIGHT_PARAM, PREVIEW_PROXY_PRIORITY_HEADER, PREVIEW_PROXY_PROGRESS_HEADER, PREVIEW_PROXY_RETRY_PARAM, PREVIEW_QUALITY_LEVELS, formatPreviewProxyBox, isHeavyForPreview, isPreviewQuality, parsePreviewProxyBox, quantizePreviewProxyBox, scalePreviewProxyBox, } from "./previewProxyBox.js";
|
|
35
|
+
export { HEAVY_BITRATE, HEAVY_PIXEL_SHARE, PREVIEW_PROXY_BOX_PARAM, PREVIEW_PROXY_LIGHT_PARAM, PREVIEW_PROXY_PRIORITY_HEADER, PREVIEW_PROXY_PROGRESS_HEADER, PREVIEW_PROXY_RETRY_PARAM, PREVIEW_PROXY_STILL_PARAM, PREVIEW_QUALITY_LEVELS, formatPreviewProxyBox, isHeavyForPreview, isPreviewQuality, parsePreviewProxyBox, quantizePreviewProxyBox, scalePreviewProxyBox, } from "./previewProxyBox.js";
|
|
36
36
|
// Inline scripts
|
|
37
37
|
export { HYPERFRAME_RUNTIME_ARTIFACTS, HYPERFRAME_RUNTIME_CONTRACT, loadHyperframeRuntimeSource, } from "./inline-scripts/hyperframe.js";
|
|
38
38
|
export { HYPERFRAME_RUNTIME_GLOBALS, HYPERFRAME_BRIDGE_SOURCES, HYPERFRAME_CONTROL_ACTIONS, } from "./inline-scripts/runtimeContract.js";
|
package/dist/pageMotionBlur.js
CHANGED
|
@@ -30,12 +30,19 @@ export function installAcceleratedCanvasTracker() {
|
|
|
30
30
|
Object.defineProperty(tracked, "__hfAccelTracked", { value: true });
|
|
31
31
|
Object.defineProperty(proto, name, { value: tracked, writable: true, configurable: true });
|
|
32
32
|
};
|
|
33
|
+
const ownWindowSet = (canvas) => {
|
|
34
|
+
const view = canvas.ownerDocument?.defaultView;
|
|
35
|
+
const own = view ? Reflect.get(view, key) : undefined;
|
|
36
|
+
return own && typeof own.add === "function"
|
|
37
|
+
? own
|
|
38
|
+
: seen;
|
|
39
|
+
};
|
|
33
40
|
wrap("getContext", (canvas, args, ctx) => {
|
|
34
41
|
if (ctx && accelerated.includes(String(args[0])))
|
|
35
|
-
|
|
42
|
+
ownWindowSet(canvas).add(canvas);
|
|
36
43
|
});
|
|
37
44
|
wrap("transferControlToOffscreen", (canvas) => {
|
|
38
|
-
|
|
45
|
+
ownWindowSet(canvas).add(canvas);
|
|
39
46
|
});
|
|
40
47
|
}
|
|
41
48
|
export function isAcceleratedCanvas(canvas) {
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export declare const PREVIEW_PROXY_BOX_PARAM = "hf-proxy-box";
|
|
3
3
|
export declare const PREVIEW_PROXY_LIGHT_PARAM = "hf-proxy-light";
|
|
4
4
|
export declare const PREVIEW_PROXY_RETRY_PARAM = "hf-proxy-retry";
|
|
5
|
+
export declare const PREVIEW_PROXY_STILL_PARAM = "hf-proxy-still";
|
|
5
6
|
export declare const PREVIEW_PROXY_PROGRESS_HEADER = "X-HF-Proxy-Progress";
|
|
6
7
|
export declare const PREVIEW_PROXY_PRIORITY_HEADER = "X-HF-Proxy-Priority";
|
|
7
8
|
export type PreviewProxyBox = {
|
package/dist/previewProxyBox.js
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export const PREVIEW_PROXY_BOX_PARAM = "hf-proxy-box";
|
|
3
3
|
export const PREVIEW_PROXY_LIGHT_PARAM = "hf-proxy-light";
|
|
4
4
|
export const PREVIEW_PROXY_RETRY_PARAM = "hf-proxy-retry";
|
|
5
|
+
export const PREVIEW_PROXY_STILL_PARAM = "hf-proxy-still";
|
|
5
6
|
export const PREVIEW_PROXY_PROGRESS_HEADER = "X-HF-Proxy-Progress";
|
|
6
7
|
export const PREVIEW_PROXY_PRIORITY_HEADER = "X-HF-Proxy-Priority";
|
|
7
8
|
// 256 * 2^(k/4), even: nearby boxes share one cached copy, and a rung overshoots by at most ~19%.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -104,6 +104,10 @@
|
|
|
104
104
|
"import": "./dist/studioPreviewMark.js",
|
|
105
105
|
"types": "./dist/studioPreviewMark.d.ts"
|
|
106
106
|
},
|
|
107
|
+
"./page-motion-blur": {
|
|
108
|
+
"import": "./dist/pageMotionBlur.js",
|
|
109
|
+
"types": "./dist/pageMotionBlur.d.ts"
|
|
110
|
+
},
|
|
107
111
|
"./keyframe-defaults": {
|
|
108
112
|
"import": "./dist/keyframeDefaults.js",
|
|
109
113
|
"types": "./dist/keyframeDefaults.d.ts"
|
|
@@ -433,9 +437,9 @@
|
|
|
433
437
|
"linkedom": "^0.18.12",
|
|
434
438
|
"postcss": "^8.5.8",
|
|
435
439
|
"wawoff2": "^2.0.1",
|
|
436
|
-
"@hyperframes/
|
|
437
|
-
"@hyperframes/
|
|
438
|
-
"@hyperframes/
|
|
440
|
+
"@hyperframes/lint": "0.9.7",
|
|
441
|
+
"@hyperframes/parsers": "0.9.7",
|
|
442
|
+
"@hyperframes/studio-server": "0.9.7"
|
|
439
443
|
},
|
|
440
444
|
"devDependencies": {
|
|
441
445
|
"@fontsource/archivo-black": "^5.2.8",
|