@reportwright/viewer 0.13.2-rc.1 → 0.13.2-rc.2
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/CHANGELOG.md +13 -0
- package/dist/{chunk-2KNQVFKW.js → chunk-4XZRLUHN.js} +2 -2
- package/dist/{chunk-2KNQVFKW.js.map → chunk-4XZRLUHN.js.map} +1 -1
- package/dist/designer.js +5 -4
- package/dist/designer.js.map +1 -1
- package/dist/pdfstreamworker.js +4 -0
- package/dist/peer/{chunk-6KUUNDNN.js → chunk-4AFSC6JI.js} +2 -2
- package/dist/peer/{chunk-6KUUNDNN.js.map → chunk-4AFSC6JI.js.map} +1 -1
- package/dist/peer/designer.js +5 -4
- package/dist/peer/designer.js.map +1 -1
- package/dist/peer/pdfstreamworker.js +4 -0
- package/dist/peer/viewer.js +2 -1
- package/dist/peer/viewer.js.map +1 -1
- package/dist/viewer.js +2 -1
- package/dist/viewer.js.map +1 -1
- package/package.json +1 -1
package/dist/peer/designer.js
CHANGED
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
setShadowStyles,
|
|
11
11
|
t,
|
|
12
12
|
uiFontCss
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-4AFSC6JI.js";
|
|
14
14
|
import {
|
|
15
15
|
customFonts,
|
|
16
16
|
fontsBase,
|
|
@@ -8240,7 +8240,7 @@ function minSize(it) {
|
|
|
8240
8240
|
}
|
|
8241
8241
|
for (const k of ["w", "h"]) if (typeof it[k] === "number" && it[k] < 1) it[k] = 1;
|
|
8242
8242
|
}
|
|
8243
|
-
function moveItems(ids, dx, dy) {
|
|
8243
|
+
function moveItems(ids, dx, dy, { nudge = false } = {}) {
|
|
8244
8244
|
if (!dx && !dy) return;
|
|
8245
8245
|
if (S().cells && wouldOverlap(S().def, ids, (it) => ({ x: it.x + dx, y: it.y + dy, w: it.w, h: it.h }))) {
|
|
8246
8246
|
S().setUi({ saveError: CELL_TAKEN() });
|
|
@@ -8252,7 +8252,7 @@ function moveItems(ids, dx, dy) {
|
|
|
8252
8252
|
const f = findItem(d, id);
|
|
8253
8253
|
if (!f) continue;
|
|
8254
8254
|
const room = roomFor(d, f);
|
|
8255
|
-
f.item.x = round(clamp(f.item.x + dx, 0, Math.max(0, room - f.item.w)));
|
|
8255
|
+
f.item.x = round(nudge ? Math.max(0, f.item.x + dx) : clamp(f.item.x + dx, 0, Math.max(0, room - f.item.w)));
|
|
8256
8256
|
f.item.y = round(Math.max(0, f.item.y + dy));
|
|
8257
8257
|
growToFit(d, f);
|
|
8258
8258
|
}
|
|
@@ -34999,7 +34999,7 @@ function DesignerIn({ id, initial, rev = null, lang: langIn, embed = null, user
|
|
|
34999
34999
|
const [dx, dy] = arrows[e.key];
|
|
35000
35000
|
const s = st();
|
|
35001
35001
|
s.lastKey = null;
|
|
35002
|
-
moveItems(s.sel.ids, dx * step, dy * step);
|
|
35002
|
+
moveItems(s.sel.ids, dx * step, dy * step, { nudge: true });
|
|
35003
35003
|
}
|
|
35004
35004
|
};
|
|
35005
35005
|
const onLeave = (e) => {
|
|
@@ -35572,6 +35572,7 @@ a.cell-name:hover { color: var(--accent); }
|
|
|
35572
35572
|
.vparams { width: 240px; padding: 14px; border-inline-end: 1px solid var(--line); background: var(--panel); display: grid; gap: 12px; align-content: start; overflow: auto; }
|
|
35573
35573
|
.vparams h3 { margin: 0; font-size: var(--fs-sm); text-transform: uppercase; font-weight: var(--fw-strong); letter-spacing: var(--track-caps); color: var(--muted); }
|
|
35574
35574
|
.vpages { overflow: auto; padding: 24px 16px 48px; display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
|
|
35575
|
+
.vpages:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; } /* E11: keyboard-scrollable; inset, so overflow does not clip it */
|
|
35575
35576
|
.vpage { background: var(--paper); color: var(--paper-ink); box-shadow: var(--shadow-page); flex: none; content-visibility: auto; contain-intrinsic-size: auto 1100px; }
|
|
35576
35577
|
.vpage svg { display: block; width: 100%; height: 100%; }
|
|
35577
35578
|
.vmsg { margin: 40px auto; max-width: 520px; padding: 16px 18px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); }
|