pdfjs-reader-core 0.5.9 → 0.5.10
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.cjs +15 -12
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -12
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -13325,8 +13325,8 @@ var ACCENT_SOFT = "rgba(176, 74, 26, 0.18)";
|
|
|
13325
13325
|
var ACCENT_GLOW = "rgba(176, 74, 26, 0.35)";
|
|
13326
13326
|
var SERIF = "'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', 'EB Garamond', 'Hoefler Text', Georgia, serif";
|
|
13327
13327
|
var EASE_OUT_EXPO = [0.22, 1, 0.36, 1];
|
|
13328
|
-
var PILL_FONT_CAPS = "clamp(
|
|
13329
|
-
var PILL_FONT_BODY = "clamp(
|
|
13328
|
+
var PILL_FONT_CAPS = "clamp(9px, 0.55vw + 7px, 13px)";
|
|
13329
|
+
var PILL_FONT_BODY = "clamp(10.5px, 0.6vw + 8.5px, 15px)";
|
|
13330
13330
|
var PILL_FONT_DISPLAY = "clamp(14px, 0.75vw + 12px, 19px)";
|
|
13331
13331
|
var PILL_MAX_W_CAPS = "clamp(180px, 26vw, 380px)";
|
|
13332
13332
|
var PILL_MAX_W_BODY = "clamp(200px, 28vw, 440px)";
|
|
@@ -13337,8 +13337,8 @@ function resolveMaxPillW(viewportWidthPx) {
|
|
|
13337
13337
|
return clamp(0.26 * viewportWidthPx, 180, 380);
|
|
13338
13338
|
}
|
|
13339
13339
|
function resolveMaxPillH(viewportWidthPx) {
|
|
13340
|
-
const font = clamp(55e-4 * viewportWidthPx +
|
|
13341
|
-
return clamp(font * 2.6,
|
|
13340
|
+
const font = clamp(55e-4 * viewportWidthPx + 7, 9, 13);
|
|
13341
|
+
return clamp(font * 2.6, 24, 36);
|
|
13342
13342
|
}
|
|
13343
13343
|
function clamp(v, lo, hi) {
|
|
13344
13344
|
return Math.min(hi, Math.max(lo, v));
|
|
@@ -14594,13 +14594,14 @@ function StickyLabel({ screenAnchor, action }) {
|
|
|
14594
14594
|
textTransform: "uppercase",
|
|
14595
14595
|
fontWeight: 500,
|
|
14596
14596
|
// Wrap instead of truncating with an ellipsis. Short labels stay
|
|
14597
|
-
// single-line
|
|
14598
|
-
//
|
|
14599
|
-
//
|
|
14600
|
-
//
|
|
14597
|
+
// single-line; longer ones grow in height rather than losing
|
|
14598
|
+
// their tail. `overflowWrap: 'break-word'` respects min-content
|
|
14599
|
+
// sizing so a single overflowing word mid-breaks at a safe
|
|
14600
|
+
// boundary — unlike `anywhere`, which would collapse the pill
|
|
14601
|
+
// to 1-char min width and stack every letter on its own line.
|
|
14601
14602
|
maxWidth: PILL_MAX_W_BODY,
|
|
14602
14603
|
whiteSpace: "normal",
|
|
14603
|
-
overflowWrap: "
|
|
14604
|
+
overflowWrap: "break-word",
|
|
14604
14605
|
// Warm two-layer shadow (matches GhostReference's palette).
|
|
14605
14606
|
boxShadow: "0 1px 2px rgba(42, 36, 32, 0.12), 0 8px 18px -6px rgba(42, 36, 32, 0.22)",
|
|
14606
14607
|
// Internal left accent rule — a 2px terracotta stripe.
|
|
@@ -14899,11 +14900,13 @@ function CalloutLabelPill({
|
|
|
14899
14900
|
fontWeight: 500,
|
|
14900
14901
|
// Wrap instead of truncating. Short labels stay single-line;
|
|
14901
14902
|
// longer ones grow taller rather than losing their tail to an
|
|
14902
|
-
// ellipsis. `overflowWrap: '
|
|
14903
|
-
//
|
|
14903
|
+
// ellipsis. `overflowWrap: 'break-word'` respects min-content
|
|
14904
|
+
// sizing — `anywhere` here caused the pill to collapse to 1-char
|
|
14905
|
+
// width and stack each letter on its own line when the clamped
|
|
14906
|
+
// maxWidth was narrow.
|
|
14904
14907
|
maxWidth: PILL_MAX_W_CAPS,
|
|
14905
14908
|
whiteSpace: "normal",
|
|
14906
|
-
overflowWrap: "
|
|
14909
|
+
overflowWrap: "break-word",
|
|
14907
14910
|
boxShadow: "0 1px 2px rgba(42, 36, 32, 0.12), 0 8px 18px -6px rgba(42, 36, 32, 0.22)",
|
|
14908
14911
|
// Accent rule on the "inward" edge (the one closest to the arrow).
|
|
14909
14912
|
backgroundImage: spec.accentGradient,
|