hyperframes 0.8.26 → 0.8.28
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/README.md +24 -0
- package/dist/cli.js +1719 -842
- package/dist/commands/layout-audit.browser.js +12 -1
- package/dist/fontLocalizeCli.js +582 -144
- package/dist/hyperframe-runtime.js +17 -17
- package/dist/hyperframe.manifest.json +1 -1
- package/dist/hyperframe.runtime.iife.js +17 -17
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/studio/assets/{hyperframes-player-C-CArn13.js → hyperframes-player-Bldv3Gqv.js} +1 -1
- package/dist/studio/assets/{index-BIXyJgK5.js → index-B50A8gg2.js} +1 -1
- package/dist/studio/assets/{index-D5yni1t6.js → index-O3ilbgfR.js} +3 -3
- package/dist/studio/assets/{index-pfeP2Y63.js → index-ZfDXlqBQ.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/studio/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1520,7 +1520,18 @@
|
|
|
1520
1520
|
const parts = elements.map((element) => {
|
|
1521
1521
|
const rect = toRect(element.getBoundingClientRect());
|
|
1522
1522
|
const opacity = round(opacityChain(element));
|
|
1523
|
-
|
|
1523
|
+
// Variable-font axis animation (font-variation-settings) is a real,
|
|
1524
|
+
// visible motion channel that moves no geometry and no opacity, so a
|
|
1525
|
+
// box+opacity fingerprint reads it as a frozen timeline. Worse in a
|
|
1526
|
+
// DUPLEXED face (Recursive holds an identical advance width at every
|
|
1527
|
+
// weight by design), where not even the line width shifts — the whole
|
|
1528
|
+
// run then false-positives sweep_static. Fold the computed axis string
|
|
1529
|
+
// in; it is "normal" for every element that does not use it, so this
|
|
1530
|
+
// adds nothing to the fingerprint of an ordinary composition.
|
|
1531
|
+
const axes = getComputedStyle(element).fontVariationSettings;
|
|
1532
|
+
return `${rect.left},${rect.top},${rect.width},${rect.height},${opacity},${
|
|
1533
|
+
axes && axes !== "normal" ? axes : ""
|
|
1534
|
+
}`;
|
|
1524
1535
|
});
|
|
1525
1536
|
for (const media of root.querySelectorAll("canvas, video")) {
|
|
1526
1537
|
if (!isVisibleElement(media)) continue;
|