@hyperframes/core 0.9.86 → 0.9.87
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.
|
@@ -116,8 +116,10 @@ const rendersTransform = (element) => !!element._gsap?.renderTransform;
|
|
|
116
116
|
export function gestureBase(handle) {
|
|
117
117
|
const element = elementForHandle(handle);
|
|
118
118
|
const gsap = window.gsap;
|
|
119
|
-
if (!element
|
|
119
|
+
if (!element)
|
|
120
120
|
return null;
|
|
121
|
+
if (!gsap?.getProperty)
|
|
122
|
+
return { x: 0, y: 0, opacity: 1, scale: 1 };
|
|
121
123
|
const read = (property) => Number(gsap.getProperty?.(element, property));
|
|
122
124
|
const base = { x: read("x"), y: read("y"), opacity: read("opacity"), scale: read("scaleX") };
|
|
123
125
|
return Object.values(base).every(Number.isFinite) ? base : null;
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -147,6 +147,13 @@ export type RuntimeStageSizeMessage = {
|
|
|
147
147
|
type: "stage-size";
|
|
148
148
|
width: number;
|
|
149
149
|
height: number;
|
|
150
|
+
} | {
|
|
151
|
+
source: "hf-preview";
|
|
152
|
+
type: "stage-size";
|
|
153
|
+
measuredSize: {
|
|
154
|
+
width: number;
|
|
155
|
+
height: number;
|
|
156
|
+
};
|
|
150
157
|
};
|
|
151
158
|
/**
|
|
152
159
|
* Fired once per session when the runtime's attempt to play a timed media
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.87",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -501,9 +501,9 @@
|
|
|
501
501
|
"linkedom": "^0.18.12",
|
|
502
502
|
"postcss": "^8.5.8",
|
|
503
503
|
"wawoff2": "^2.0.1",
|
|
504
|
-
"@hyperframes/lint": "0.9.
|
|
505
|
-
"@hyperframes/parsers": "0.9.
|
|
506
|
-
"@hyperframes/studio-server": "0.9.
|
|
504
|
+
"@hyperframes/lint": "0.9.87",
|
|
505
|
+
"@hyperframes/parsers": "0.9.87",
|
|
506
|
+
"@hyperframes/studio-server": "0.9.87"
|
|
507
507
|
},
|
|
508
508
|
"devDependencies": {
|
|
509
509
|
"@fontsource/archivo-black": "^5.2.8",
|