@hyperframes/core 0.8.184 → 0.8.185
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/audioFxPresets.d.ts +3 -3
- package/dist/audioFxPresets.js +3 -3
- package/dist/generated/runtime-inline.js +1 -1
- package/dist/hyperframe.runtime.iife.js +63 -63
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/pageMotionBlur.d.ts +3 -0
- package/dist/pageMotionBlur.js +9 -0
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -61,3 +61,4 @@ export { ITEM_TYPES, FILE_TYPES, ITEM_TYPE_DIRS, isExampleItem, isBlockItem, isC
|
|
|
61
61
|
export { canaryBucket, evaluateCanary, parseCanaryOverride, type CanaryDecision, type CanaryInput, type CanaryReason, } from "./canary.js";
|
|
62
62
|
export { CANARIES, canaryEnvVar, findCanary, overdueCanaries, type CanaryDefinition, } from "./canaryRegistry.js";
|
|
63
63
|
export { HF_VFX_ATTR, HF_VFX_CHAIN_VERSION, HF_VFX, chainCapture, getVfxDef, parseVfxChain, serializeVfxChain, normalizeVfxParams, type HfVfxCapture, type HfVfxChain, type HfVfxDef, type HfVfxNode, type HfVfxParam, type HfVfxParamValues, } from "./vfx.js";
|
|
64
|
+
export { PAGE_DEVICE_SCALE_GLOBAL, PAGE_MOTION_BLUR_OFF_GLOBAL } from "./pageMotionBlur.js";
|
package/dist/index.js
CHANGED
|
@@ -64,3 +64,4 @@ export { canaryBucket, evaluateCanary, parseCanaryOverride, } from "./canary.js"
|
|
|
64
64
|
export { CANARIES, canaryEnvVar, findCanary, overdueCanaries, } from "./canaryRegistry.js";
|
|
65
65
|
// VFX chain (data-vfx-chain) — defs, chain parse/serialize/normalize
|
|
66
66
|
export { HF_VFX_ATTR, HF_VFX_CHAIN_VERSION, HF_VFX, chainCapture, getVfxDef, parseVfxChain, serializeVfxChain, normalizeVfxParams, } from "./vfx.js";
|
|
67
|
+
export { PAGE_DEVICE_SCALE_GLOBAL, PAGE_MOTION_BLUR_OFF_GLOBAL } from "./pageMotionBlur.js";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Set by the engine: its own sub-frame blur runs, or the Studio preview could not blur.
|
|
2
|
+
export const PAGE_MOTION_BLUR_OFF_GLOBAL = "__HF_PAGE_MOTION_BLUR_OFF__";
|
|
3
|
+
export const PAGE_DEVICE_SCALE_GLOBAL = "__HF_DEVICE_SCALE_FACTOR__";
|
|
4
|
+
export function supportsCaptureMotionBlur(win = window) {
|
|
5
|
+
const w = win;
|
|
6
|
+
const ctx = w.CanvasRenderingContext2D?.prototype;
|
|
7
|
+
const canvas = w.HTMLCanvasElement?.prototype;
|
|
8
|
+
return !!ctx && !!canvas && "drawElementImage" in ctx && "requestPaint" in canvas;
|
|
9
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.185",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -381,9 +381,9 @@
|
|
|
381
381
|
"linkedom": "^0.18.12",
|
|
382
382
|
"postcss": "^8.5.8",
|
|
383
383
|
"wawoff2": "^2.0.1",
|
|
384
|
-
"@hyperframes/lint": "0.8.
|
|
385
|
-
"@hyperframes/studio-server": "0.8.
|
|
386
|
-
"@hyperframes/parsers": "0.8.
|
|
384
|
+
"@hyperframes/lint": "0.8.185",
|
|
385
|
+
"@hyperframes/studio-server": "0.8.185",
|
|
386
|
+
"@hyperframes/parsers": "0.8.185"
|
|
387
387
|
},
|
|
388
388
|
"devDependencies": {
|
|
389
389
|
"@fontsource/archivo-black": "^5.2.8",
|