@nowline/embed 0.0.0-dev.20261007205200.g9919f48 → 0.0.0-dev.20261008013804.gba70291
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 +10 -10
- package/dist/nowline.esm.js +24 -12
- package/dist/nowline.esm.js.map +2 -2
- package/dist/nowline.min.js +65 -65
- package/dist/nowline.min.js.map +3 -3
- package/package.json +6 -6
package/dist/meta.json
CHANGED
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"format": "esm"
|
|
60
60
|
},
|
|
61
61
|
"../layout/dist/themes/shared.js": {
|
|
62
|
-
"bytes":
|
|
62
|
+
"bytes": 17498,
|
|
63
63
|
"imports": [],
|
|
64
64
|
"format": "esm"
|
|
65
65
|
},
|
|
@@ -9165,7 +9165,7 @@
|
|
|
9165
9165
|
"format": "esm"
|
|
9166
9166
|
},
|
|
9167
9167
|
"../layout/dist/nodes/roadmap-node.js": {
|
|
9168
|
-
"bytes":
|
|
9168
|
+
"bytes": 48232,
|
|
9169
9169
|
"imports": [
|
|
9170
9170
|
{
|
|
9171
9171
|
"path": "../layout/dist/band-scale.js",
|
|
@@ -9469,7 +9469,7 @@
|
|
|
9469
9469
|
"format": "esm"
|
|
9470
9470
|
},
|
|
9471
9471
|
"../layout/dist/index.js": {
|
|
9472
|
-
"bytes":
|
|
9472
|
+
"bytes": 4784,
|
|
9473
9473
|
"imports": [
|
|
9474
9474
|
{
|
|
9475
9475
|
"path": "../layout/dist/calendar-resolver.js",
|
|
@@ -9623,7 +9623,7 @@
|
|
|
9623
9623
|
"format": "esm"
|
|
9624
9624
|
},
|
|
9625
9625
|
"../renderer/dist/svg/render.js": {
|
|
9626
|
-
"bytes":
|
|
9626
|
+
"bytes": 106360,
|
|
9627
9627
|
"imports": [
|
|
9628
9628
|
{
|
|
9629
9629
|
"path": "../layout/dist/index.js",
|
|
@@ -9838,7 +9838,7 @@
|
|
|
9838
9838
|
"imports": [],
|
|
9839
9839
|
"exports": [],
|
|
9840
9840
|
"inputs": {},
|
|
9841
|
-
"bytes":
|
|
9841
|
+
"bytes": 3772257
|
|
9842
9842
|
},
|
|
9843
9843
|
"dist/nowline.min.js": {
|
|
9844
9844
|
"imports": [],
|
|
@@ -9996,7 +9996,7 @@
|
|
|
9996
9996
|
"bytesInOutput": 0
|
|
9997
9997
|
},
|
|
9998
9998
|
"../layout/dist/themes/shared.js": {
|
|
9999
|
-
"bytesInOutput":
|
|
9999
|
+
"bytesInOutput": 999
|
|
10000
10000
|
},
|
|
10001
10001
|
"../layout/dist/group-title-tab-geometry.js": {
|
|
10002
10002
|
"bytesInOutput": 87
|
|
@@ -10950,10 +10950,10 @@
|
|
|
10950
10950
|
"bytesInOutput": 5667
|
|
10951
10951
|
},
|
|
10952
10952
|
"../layout/dist/nodes/roadmap-node.js": {
|
|
10953
|
-
"bytesInOutput":
|
|
10953
|
+
"bytesInOutput": 9556
|
|
10954
10954
|
},
|
|
10955
10955
|
"../layout/dist/layout.js": {
|
|
10956
|
-
"bytesInOutput":
|
|
10956
|
+
"bytesInOutput": 14236
|
|
10957
10957
|
},
|
|
10958
10958
|
"../layout/dist/layout-insights.js": {
|
|
10959
10959
|
"bytesInOutput": 2374
|
|
@@ -10983,7 +10983,7 @@
|
|
|
10983
10983
|
"bytesInOutput": 728
|
|
10984
10984
|
},
|
|
10985
10985
|
"../renderer/dist/svg/render.js": {
|
|
10986
|
-
"bytesInOutput":
|
|
10986
|
+
"bytesInOutput": 29977
|
|
10987
10987
|
},
|
|
10988
10988
|
"../renderer/dist/index.js": {
|
|
10989
10989
|
"bytesInOutput": 0
|
|
@@ -11013,7 +11013,7 @@
|
|
|
11013
11013
|
"bytesInOutput": 257
|
|
11014
11014
|
}
|
|
11015
11015
|
},
|
|
11016
|
-
"bytes":
|
|
11016
|
+
"bytes": 733551
|
|
11017
11017
|
}
|
|
11018
11018
|
}
|
|
11019
11019
|
}
|
package/dist/nowline.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @nowline/embed 0.0.0-dev.
|
|
1
|
+
/*! @nowline/embed 0.0.0-dev.20261008013804.gba70291 sha=ba70291 built=2026-10-07T18:37:36-07:00 */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -7354,8 +7354,19 @@ var CORNER_RADIUS_PX = {
|
|
|
7354
7354
|
};
|
|
7355
7355
|
var MIN_ITEM_WIDTH = 8;
|
|
7356
7356
|
var PROGRESS_STRIP_HEIGHT_PX = 4;
|
|
7357
|
-
var
|
|
7358
|
-
|
|
7357
|
+
var HEADER_HEIGHT_PX = {
|
|
7358
|
+
none: 0,
|
|
7359
|
+
xs: 16,
|
|
7360
|
+
sm: 20,
|
|
7361
|
+
md: 24,
|
|
7362
|
+
lg: 32,
|
|
7363
|
+
xl: 40
|
|
7364
|
+
};
|
|
7365
|
+
var TIMELINE_TICK_PANEL_HEIGHT_PX = HEADER_HEIGHT_PX.md;
|
|
7366
|
+
function timelineTickLabelBaselineOffsetPx(panelHeightPx) {
|
|
7367
|
+
return Math.round(panelHeightPx / 2 + 3);
|
|
7368
|
+
}
|
|
7369
|
+
var TIMELINE_TICK_LABEL_BASELINE_OFFSET_PX = timelineTickLabelBaselineOffsetPx(TIMELINE_TICK_PANEL_HEIGHT_PX);
|
|
7359
7370
|
var TIMELINE_TICK_LABEL_FONT_SIZE_PX = 10;
|
|
7360
7371
|
var TRACK_BLOCK_TAIL_GUTTER_PX = 8;
|
|
7361
7372
|
var FRAME_TAB_HEIGHT_PX = 22;
|
|
@@ -38002,8 +38013,9 @@ var RoadmapNode = class {
|
|
|
38002
38013
|
const { startDate, endDate } = deps.computeDateWindow(file, { cal, sizes, calendar }, resolved, options.today, scale, plan);
|
|
38003
38014
|
const headerStyle = resolveStyle("roadmap", file.roadmapDecl?.properties ?? [], styleCtx);
|
|
38004
38015
|
const isBeside = headerStyle.headerPosition === "beside";
|
|
38005
|
-
const
|
|
38006
|
-
const
|
|
38016
|
+
const tickPanelBucketHeight = HEADER_HEIGHT_PX[headerStyle.headerHeight] ?? HEADER_HEIGHT_PX.md;
|
|
38017
|
+
const showTopTickPanel = tickPanelBucketHeight > 0 && headerStyle.timelinePosition !== "bottom";
|
|
38018
|
+
const showBottomTickPanel = tickPanelBucketHeight > 0 && (headerStyle.timelinePosition === "bottom" || headerStyle.timelinePosition === "both");
|
|
38007
38019
|
const nonWorking = isNonWorkingDisplay(options.nonWorking) ? options.nonWorking : headerStyle.nonWorking;
|
|
38008
38020
|
const showsNonWorking = nonWorking === "show" && calendar.hasNonWorkingDays;
|
|
38009
38021
|
const titleStr = file.roadmapDecl?.title ?? file.roadmapDecl?.name ?? "";
|
|
@@ -38022,7 +38034,7 @@ var RoadmapNode = class {
|
|
|
38022
38034
|
const willHaveNowline = options.today !== void 0 && options.today >= startDate && options.today <= endDate;
|
|
38023
38035
|
const hasMarkerEntities = resolved.content.anchors.size + resolved.content.milestones.size > 0;
|
|
38024
38036
|
const pillRowHeight = willHaveNowline ? NOW_PILL_HEIGHT_PX : 0;
|
|
38025
|
-
const tickPanelHeight = showTopTickPanel ?
|
|
38037
|
+
const tickPanelHeight = showTopTickPanel ? tickPanelBucketHeight : 0;
|
|
38026
38038
|
const waveStripHeight = plan ? WAVE_STRIP_HEIGHT_PX : 0;
|
|
38027
38039
|
const timeScale = new TimeScale({
|
|
38028
38040
|
domain: [startDate, endDate],
|
|
@@ -38343,8 +38355,8 @@ var RoadmapNode = class {
|
|
|
38343
38355
|
if (showBottomTickPanel) {
|
|
38344
38356
|
const gapAbovePanel = 8;
|
|
38345
38357
|
ctx.timeline.bottomTickPanelY = ctx.chartBottomY + gapAbovePanel;
|
|
38346
|
-
ctx.timeline.bottomTickPanelHeight =
|
|
38347
|
-
ctx.chartBottomY += gapAbovePanel +
|
|
38358
|
+
ctx.timeline.bottomTickPanelHeight = tickPanelBucketHeight;
|
|
38359
|
+
ctx.chartBottomY += gapAbovePanel + tickPanelBucketHeight;
|
|
38348
38360
|
}
|
|
38349
38361
|
const strings = localeStrings(locale);
|
|
38350
38362
|
const builtWaves = ctx.waves ? buildWaves(ctx.waves, ctx, strings, swimlanes, includes) : void 0;
|
|
@@ -40622,7 +40634,7 @@ function renderTimeline(t, palette, fonts) {
|
|
|
40622
40634
|
if (hasTopTickPanel) {
|
|
40623
40635
|
parts.push(textTag({
|
|
40624
40636
|
x: num(tick.labelX),
|
|
40625
|
-
y: num(tickPanelY +
|
|
40637
|
+
y: num(tickPanelY + timelineTickLabelBaselineOffsetPx(tickPanelHeight)),
|
|
40626
40638
|
"font-family": fonts.sans,
|
|
40627
40639
|
"font-size": TIMELINE_TICK_LABEL_FONT_SIZE_PX,
|
|
40628
40640
|
fill: labelColor,
|
|
@@ -40632,7 +40644,7 @@ function renderTimeline(t, palette, fonts) {
|
|
|
40632
40644
|
if (hasBottomTickPanel) {
|
|
40633
40645
|
parts.push(textTag({
|
|
40634
40646
|
x: num(tick.labelX),
|
|
40635
|
-
y: num(bottomTickPanelY +
|
|
40647
|
+
y: num(bottomTickPanelY + timelineTickLabelBaselineOffsetPx(bottomTickPanelHeight)),
|
|
40636
40648
|
"font-family": fonts.sans,
|
|
40637
40649
|
"font-size": TIMELINE_TICK_LABEL_FONT_SIZE_PX,
|
|
40638
40650
|
fill: labelColor,
|
|
@@ -42851,8 +42863,8 @@ function effectiveTheme(theme, systemTheme) {
|
|
|
42851
42863
|
}
|
|
42852
42864
|
|
|
42853
42865
|
// src/index.ts
|
|
42854
|
-
var version = true ? "0.0.0-dev.
|
|
42855
|
-
var sha = true ? "
|
|
42866
|
+
var version = true ? "0.0.0-dev.20261008013804.gba70291" : "0.0.0";
|
|
42867
|
+
var sha = true ? "ba70291" : "unknown";
|
|
42856
42868
|
var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
|
|
42857
42869
|
var initialConfig = {
|
|
42858
42870
|
theme: "auto",
|