quotacap 0.0.47 → 0.0.48
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/version.js +1 -1
- package/dist/web/src/components/ResetRail.js +15 -1
- package/dist/webAssets.js +1 -1
- package/dist/webHtml.js +1 -1
- package/package.json +1 -1
- package/web/dist/assets/index-BSQW0C_t.css +1 -0
- package/web/dist/assets/{index-CsIhkVtr.js → index-Dq9ZvTUe.js} +3 -3
- package/web/dist/index.html +2 -2
- package/web/dist/assets/index-apBgCnO5.css +0 -1
package/dist/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by scripts/build-embed.mjs — do not edit
|
|
2
|
-
export const VERSION = "0.0.
|
|
2
|
+
export const VERSION = "0.0.48";
|
|
@@ -13,6 +13,8 @@ export const STEM_PX = 14;
|
|
|
13
13
|
const RAIL_REF_PX = 1072;
|
|
14
14
|
/** Gap kept between dodged pills. */
|
|
15
15
|
const DODGE_GAP_PX = 6;
|
|
16
|
+
/** Computed overlap tolerated before pins dodge; pills may touch slightly. */
|
|
17
|
+
const GROUP_OVERLAP_TOL_PX = 10;
|
|
16
18
|
/** Widest one dodge group may spread; past this pills shingle with overlap. */
|
|
17
19
|
const MAX_GROUP_SPREAD_PX = 160;
|
|
18
20
|
/** Half the pill width for a display name: 16ch cap, ~7px per char + chrome. */
|
|
@@ -142,7 +144,7 @@ export function placePins(rows, asOf, opts) {
|
|
|
142
144
|
edge = -Infinity;
|
|
143
145
|
};
|
|
144
146
|
for (const slot of lane) {
|
|
145
|
-
if (slot.x - slot.half > edge
|
|
147
|
+
if (slot.x - slot.half > edge - GROUP_OVERLAP_TOL_PX)
|
|
146
148
|
flush();
|
|
147
149
|
group.push(slot);
|
|
148
150
|
edge = Math.max(edge, slot.x + slot.half);
|
|
@@ -171,6 +173,18 @@ export function placePins(rows, asOf, opts) {
|
|
|
171
173
|
s.target.offsetPx = centers[i] + shift - s.x;
|
|
172
174
|
});
|
|
173
175
|
}
|
|
176
|
+
// Singletons near the edges shift just enough to stay on the rail; the
|
|
177
|
+
// diagonal stem reconnects the pill to its dot. Groups already clamp.
|
|
178
|
+
for (const s of lane) {
|
|
179
|
+
if (s.target.offsetPx !== 0)
|
|
180
|
+
continue;
|
|
181
|
+
const left = s.x - s.half;
|
|
182
|
+
const right = s.x + s.half;
|
|
183
|
+
if (left < 0)
|
|
184
|
+
s.target.offsetPx = -left;
|
|
185
|
+
else if (right > width)
|
|
186
|
+
s.target.offsetPx = width - right;
|
|
187
|
+
}
|
|
174
188
|
}
|
|
175
189
|
for (const item of items) {
|
|
176
190
|
if (item.kind === "pin")
|