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.js
CHANGED
|
@@ -13140,8 +13140,8 @@ var ACCENT_SOFT = "rgba(176, 74, 26, 0.18)";
|
|
|
13140
13140
|
var ACCENT_GLOW = "rgba(176, 74, 26, 0.35)";
|
|
13141
13141
|
var SERIF = "'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', 'EB Garamond', 'Hoefler Text', Georgia, serif";
|
|
13142
13142
|
var EASE_OUT_EXPO = [0.22, 1, 0.36, 1];
|
|
13143
|
-
var PILL_FONT_CAPS = "clamp(
|
|
13144
|
-
var PILL_FONT_BODY = "clamp(
|
|
13143
|
+
var PILL_FONT_CAPS = "clamp(9px, 0.55vw + 7px, 13px)";
|
|
13144
|
+
var PILL_FONT_BODY = "clamp(10.5px, 0.6vw + 8.5px, 15px)";
|
|
13145
13145
|
var PILL_FONT_DISPLAY = "clamp(14px, 0.75vw + 12px, 19px)";
|
|
13146
13146
|
var PILL_MAX_W_CAPS = "clamp(180px, 26vw, 380px)";
|
|
13147
13147
|
var PILL_MAX_W_BODY = "clamp(200px, 28vw, 440px)";
|
|
@@ -13152,8 +13152,8 @@ function resolveMaxPillW(viewportWidthPx) {
|
|
|
13152
13152
|
return clamp(0.26 * viewportWidthPx, 180, 380);
|
|
13153
13153
|
}
|
|
13154
13154
|
function resolveMaxPillH(viewportWidthPx) {
|
|
13155
|
-
const font = clamp(55e-4 * viewportWidthPx +
|
|
13156
|
-
return clamp(font * 2.6,
|
|
13155
|
+
const font = clamp(55e-4 * viewportWidthPx + 7, 9, 13);
|
|
13156
|
+
return clamp(font * 2.6, 24, 36);
|
|
13157
13157
|
}
|
|
13158
13158
|
function clamp(v, lo, hi) {
|
|
13159
13159
|
return Math.min(hi, Math.max(lo, v));
|
|
@@ -14409,13 +14409,14 @@ function StickyLabel({ screenAnchor, action }) {
|
|
|
14409
14409
|
textTransform: "uppercase",
|
|
14410
14410
|
fontWeight: 500,
|
|
14411
14411
|
// Wrap instead of truncating with an ellipsis. Short labels stay
|
|
14412
|
-
// single-line
|
|
14413
|
-
//
|
|
14414
|
-
//
|
|
14415
|
-
//
|
|
14412
|
+
// single-line; longer ones grow in height rather than losing
|
|
14413
|
+
// their tail. `overflowWrap: 'break-word'` respects min-content
|
|
14414
|
+
// sizing so a single overflowing word mid-breaks at a safe
|
|
14415
|
+
// boundary — unlike `anywhere`, which would collapse the pill
|
|
14416
|
+
// to 1-char min width and stack every letter on its own line.
|
|
14416
14417
|
maxWidth: PILL_MAX_W_BODY,
|
|
14417
14418
|
whiteSpace: "normal",
|
|
14418
|
-
overflowWrap: "
|
|
14419
|
+
overflowWrap: "break-word",
|
|
14419
14420
|
// Warm two-layer shadow (matches GhostReference's palette).
|
|
14420
14421
|
boxShadow: "0 1px 2px rgba(42, 36, 32, 0.12), 0 8px 18px -6px rgba(42, 36, 32, 0.22)",
|
|
14421
14422
|
// Internal left accent rule — a 2px terracotta stripe.
|
|
@@ -14714,11 +14715,13 @@ function CalloutLabelPill({
|
|
|
14714
14715
|
fontWeight: 500,
|
|
14715
14716
|
// Wrap instead of truncating. Short labels stay single-line;
|
|
14716
14717
|
// longer ones grow taller rather than losing their tail to an
|
|
14717
|
-
// ellipsis. `overflowWrap: '
|
|
14718
|
-
//
|
|
14718
|
+
// ellipsis. `overflowWrap: 'break-word'` respects min-content
|
|
14719
|
+
// sizing — `anywhere` here caused the pill to collapse to 1-char
|
|
14720
|
+
// width and stack each letter on its own line when the clamped
|
|
14721
|
+
// maxWidth was narrow.
|
|
14719
14722
|
maxWidth: PILL_MAX_W_CAPS,
|
|
14720
14723
|
whiteSpace: "normal",
|
|
14721
|
-
overflowWrap: "
|
|
14724
|
+
overflowWrap: "break-word",
|
|
14722
14725
|
boxShadow: "0 1px 2px rgba(42, 36, 32, 0.12), 0 8px 18px -6px rgba(42, 36, 32, 0.22)",
|
|
14723
14726
|
// Accent rule on the "inward" edge (the one closest to the arrow).
|
|
14724
14727
|
backgroundImage: spec.accentGradient,
|