@hyperframes/core 0.9.83 → 0.9.84
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.
|
@@ -50,8 +50,13 @@ function measureMoveResponse(element) {
|
|
|
50
50
|
/** Where its centre goes as a draft draws its size, so a resize can pin it; its inline size put back. */
|
|
51
51
|
function measureGrowResponse(element, layout) {
|
|
52
52
|
const { style } = element;
|
|
53
|
-
const kept = SIZE_PROPERTIES.map((name) => [name, style.getPropertyValue(name), style.getPropertyPriority(name)]);
|
|
53
|
+
const kept = [...SIZE_PROPERTIES, "translate"].map((name) => [name, style.getPropertyValue(name), style.getPropertyPriority(name)]);
|
|
54
|
+
const translateAsTheResizeDraftDrawsIt = movedTranslate(computedTranslateAxes(element), {
|
|
55
|
+
x: 0,
|
|
56
|
+
y: 0,
|
|
57
|
+
});
|
|
54
58
|
const centre = (width, height) => {
|
|
59
|
+
style.setProperty("translate", translateAsTheResizeDraftDrawsIt);
|
|
55
60
|
writeDrawnSize(style, { width, height });
|
|
56
61
|
const box = element.getBoundingClientRect();
|
|
57
62
|
return box.width > 0 || box.height > 0
|
package/dist/runtime/types.d.ts
CHANGED
|
@@ -96,6 +96,7 @@ export type RuntimeTimelineMessage = RuntimeProtocolV1 & {
|
|
|
96
96
|
* the composition's assets have settled yet. Absent on older runtimes, whose
|
|
97
97
|
* parents must not wait for a message that never comes. */
|
|
98
98
|
assetsReady?: boolean;
|
|
99
|
+
sceneSwap?: boolean;
|
|
99
100
|
};
|
|
100
101
|
export type RuntimeDiagnosticMessage = {
|
|
101
102
|
source: "hf-preview";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hyperframes/core",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.84",
|
|
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/studio-server": "0.9.
|
|
506
|
-
"@hyperframes/parsers": "0.9.
|
|
504
|
+
"@hyperframes/lint": "0.9.84",
|
|
505
|
+
"@hyperframes/studio-server": "0.9.84",
|
|
506
|
+
"@hyperframes/parsers": "0.9.84"
|
|
507
507
|
},
|
|
508
508
|
"devDependencies": {
|
|
509
509
|
"@fontsource/archivo-black": "^5.2.8",
|