@nowline/embed 0.0.0-dev.20261018063601.gbea64f3 → 0.0.0-dev.20261018161512.gdb10ecc
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/meta.json +4 -4
- package/dist/nowline.esm.js +28 -9
- package/dist/nowline.esm.js.map +2 -2
- package/dist/nowline.min.js +11 -11
- package/dist/nowline.min.js.map +3 -3
- package/package.json +6 -6
package/dist/meta.json
CHANGED
|
@@ -6959,7 +6959,7 @@
|
|
|
6959
6959
|
"format": "esm"
|
|
6960
6960
|
},
|
|
6961
6961
|
"../layout/dist/phases/finalize.js": {
|
|
6962
|
-
"bytes":
|
|
6962
|
+
"bytes": 40512,
|
|
6963
6963
|
"imports": [
|
|
6964
6964
|
{
|
|
6965
6965
|
"path": "../layout/dist/axis-columns.js",
|
|
@@ -10304,7 +10304,7 @@
|
|
|
10304
10304
|
"imports": [],
|
|
10305
10305
|
"exports": [],
|
|
10306
10306
|
"inputs": {},
|
|
10307
|
-
"bytes":
|
|
10307
|
+
"bytes": 3667964
|
|
10308
10308
|
},
|
|
10309
10309
|
"dist/nowline.min.js": {
|
|
10310
10310
|
"imports": [],
|
|
@@ -11371,7 +11371,7 @@
|
|
|
11371
11371
|
"bytesInOutput": 1893
|
|
11372
11372
|
},
|
|
11373
11373
|
"../layout/dist/phases/finalize.js": {
|
|
11374
|
-
"bytesInOutput":
|
|
11374
|
+
"bytesInOutput": 11703
|
|
11375
11375
|
},
|
|
11376
11376
|
"../../node_modules/.pnpm/internmap@2.0.3/node_modules/internmap/src/index.js": {
|
|
11377
11377
|
"bytesInOutput": 633
|
|
@@ -11485,7 +11485,7 @@
|
|
|
11485
11485
|
"bytesInOutput": 257
|
|
11486
11486
|
}
|
|
11487
11487
|
},
|
|
11488
|
-
"bytes":
|
|
11488
|
+
"bytes": 671559
|
|
11489
11489
|
}
|
|
11490
11490
|
}
|
|
11491
11491
|
}
|
package/dist/nowline.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @nowline/embed 0.0.0-dev.
|
|
1
|
+
/*! @nowline/embed 0.0.0-dev.20261018161512.gdb10ecc sha=db10ecc built=2026-10-18T16:09:47Z */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -35378,6 +35378,7 @@ var FinalizeContext = class {
|
|
|
35378
35378
|
__publicField(this, "band");
|
|
35379
35379
|
__publicField(this, "rowsTop");
|
|
35380
35380
|
__publicField(this, "rowsBottom");
|
|
35381
|
+
__publicField(this, "why");
|
|
35381
35382
|
this.file = file;
|
|
35382
35383
|
this.resolved = resolved;
|
|
35383
35384
|
this.options = options;
|
|
@@ -35473,9 +35474,14 @@ var FinalizeContext = class {
|
|
|
35473
35474
|
}
|
|
35474
35475
|
this.rowsBottom = y;
|
|
35475
35476
|
}
|
|
35477
|
+
/** Say why the running step changed something; its report carries it. */
|
|
35478
|
+
explain(why) {
|
|
35479
|
+
this.why = why;
|
|
35480
|
+
}
|
|
35476
35481
|
/** Report a step's effect to the trace, when one is installed. */
|
|
35477
35482
|
report(step, changed) {
|
|
35478
|
-
finalizeTrace?.(step, changed);
|
|
35483
|
+
finalizeTrace?.(step, changed, this.why);
|
|
35484
|
+
this.why = void 0;
|
|
35479
35485
|
}
|
|
35480
35486
|
};
|
|
35481
35487
|
function resolveHeaderRowsTop(measured, today, scale) {
|
|
@@ -35509,16 +35515,22 @@ function extendTimeline(fx) {
|
|
|
35509
35515
|
const { calendar, preset: scale, startDate, spanDays, nonWorking } = fx.window;
|
|
35510
35516
|
const { originX, ppd } = fx.measured.axis;
|
|
35511
35517
|
const timeline = fx.measured.timeline;
|
|
35512
|
-
let
|
|
35518
|
+
let barRightX = maxLeafItemRightX(swimlanes);
|
|
35513
35519
|
for (const inc of includes) {
|
|
35514
|
-
|
|
35520
|
+
barRightX = Math.max(barRightX, maxLeafItemRightX(inc.nestedSwimlanes));
|
|
35515
35521
|
}
|
|
35522
|
+
let datedRightX = 0;
|
|
35516
35523
|
for (const e of fx.measured.markers.datePinned) {
|
|
35517
|
-
|
|
35524
|
+
datedRightX = Math.max(datedRightX, e.centerX + e.radius);
|
|
35518
35525
|
}
|
|
35526
|
+
let afterRightX = 0;
|
|
35519
35527
|
for (const m of milestones) {
|
|
35520
|
-
|
|
35528
|
+
if (m.fixed)
|
|
35529
|
+
datedRightX = Math.max(datedRightX, m.x + m.radius);
|
|
35530
|
+
else
|
|
35531
|
+
afterRightX = Math.max(afterRightX, m.x + m.radius);
|
|
35521
35532
|
}
|
|
35533
|
+
const maxContentRightX = Math.max(barRightX, datedRightX, afterRightX);
|
|
35522
35534
|
const tickDays = calendar.daysPerUnit(scale.unit);
|
|
35523
35535
|
const overflowDays = fx.scale.showsNonWorking ? fx.scale.indexAtX(maxContentRightX) : (maxContentRightX - originX) / ppd;
|
|
35524
35536
|
let paddedDays = overflowDays > 0 ? tickBoundaryAtOrAfter(startDate, overflowDays, scale.unit, tickDays, calendar) : 0;
|
|
@@ -35526,8 +35538,8 @@ function extendTimeline(fx) {
|
|
|
35526
35538
|
for (const inc of includes) {
|
|
35527
35539
|
captionRightX = Math.max(captionRightX, maxSpilledCaptionRightX(inc.nestedSwimlanes));
|
|
35528
35540
|
}
|
|
35541
|
+
const columns = new AxisColumns(fx.window, fx.scale);
|
|
35529
35542
|
if (captionRightX > 0) {
|
|
35530
|
-
const columns = new AxisColumns(fx.window, fx.scale);
|
|
35531
35543
|
const axisDays = Math.max(spanDays, paddedDays);
|
|
35532
35544
|
if (columns.isPast(captionRightX, axisDays)) {
|
|
35533
35545
|
paddedDays = Math.max(paddedDays, Math.min(columns.boundaryAtOrAfterX(captionRightX), columns.captionColumn(axisDays).end));
|
|
@@ -35535,6 +35547,13 @@ function extendTimeline(fx) {
|
|
|
35535
35547
|
}
|
|
35536
35548
|
let extended = false;
|
|
35537
35549
|
if (paddedDays > spanDays) {
|
|
35550
|
+
const rightX = {
|
|
35551
|
+
bar: barRightX,
|
|
35552
|
+
caption: captionRightX,
|
|
35553
|
+
datedMarker: datedRightX,
|
|
35554
|
+
afterMilestone: afterRightX
|
|
35555
|
+
};
|
|
35556
|
+
fx.explain(Object.keys(rightX).filter((cause) => rightX[cause] > 0 && columns.isPast(rightX[cause], spanDays)));
|
|
35538
35557
|
const extendedEndDate = calendar.dateAtWorkingIndex(startDate, paddedDays);
|
|
35539
35558
|
const extendedWidth = fx.scale.showsNonWorking ? daysBetween(startDate, extendedEndDate) * ppd : paddedDays * ppd;
|
|
35540
35559
|
const extendedScale = new TimeScale({
|
|
@@ -40621,8 +40640,8 @@ function effectiveTheme(theme, systemTheme) {
|
|
|
40621
40640
|
}
|
|
40622
40641
|
|
|
40623
40642
|
// src/index.ts
|
|
40624
|
-
var version = true ? "0.0.0-dev.
|
|
40625
|
-
var sha = true ? "
|
|
40643
|
+
var version = true ? "0.0.0-dev.20261018161512.gdb10ecc" : "0.0.0";
|
|
40644
|
+
var sha = true ? "db10ecc" : "unknown";
|
|
40626
40645
|
var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
|
|
40627
40646
|
var initialConfig = {
|
|
40628
40647
|
theme: "auto",
|