@nowline/embed 0.0.0-dev.20261020011950.gce8a91f → 0.0.0-dev.20261020042602.g1c1ec01
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 +11 -11
- package/dist/nowline.esm.js +44 -12
- package/dist/nowline.esm.js.map +2 -2
- package/dist/nowline.min.js +57 -57
- package/dist/nowline.min.js.map +3 -3
- package/package.json +6 -6
package/dist/meta.json
CHANGED
|
@@ -4908,7 +4908,7 @@
|
|
|
4908
4908
|
"format": "esm"
|
|
4909
4909
|
},
|
|
4910
4910
|
"../layout/dist/capacity.js": {
|
|
4911
|
-
"bytes":
|
|
4911
|
+
"bytes": 8827,
|
|
4912
4912
|
"imports": [
|
|
4913
4913
|
{
|
|
4914
4914
|
"path": "../core/dist/internal.js",
|
|
@@ -5035,7 +5035,7 @@
|
|
|
5035
5035
|
"format": "esm"
|
|
5036
5036
|
},
|
|
5037
5037
|
"../layout/dist/frame-tab-geometry.js": {
|
|
5038
|
-
"bytes":
|
|
5038
|
+
"bytes": 6695,
|
|
5039
5039
|
"imports": [],
|
|
5040
5040
|
"format": "esm"
|
|
5041
5041
|
},
|
|
@@ -6333,7 +6333,7 @@
|
|
|
6333
6333
|
"format": "esm"
|
|
6334
6334
|
},
|
|
6335
6335
|
"../layout/dist/nodes/item-measure.js": {
|
|
6336
|
-
"bytes":
|
|
6336
|
+
"bytes": 25246,
|
|
6337
6337
|
"imports": [
|
|
6338
6338
|
{
|
|
6339
6339
|
"path": "../layout/dist/calendar.js",
|
|
@@ -9904,7 +9904,7 @@
|
|
|
9904
9904
|
"format": "esm"
|
|
9905
9905
|
},
|
|
9906
9906
|
"../layout/dist/index.js": {
|
|
9907
|
-
"bytes":
|
|
9907
|
+
"bytes": 5131,
|
|
9908
9908
|
"imports": [
|
|
9909
9909
|
{
|
|
9910
9910
|
"path": "../layout/dist/calendar-resolver.js",
|
|
@@ -10231,7 +10231,7 @@
|
|
|
10231
10231
|
"format": "esm"
|
|
10232
10232
|
},
|
|
10233
10233
|
"../renderer/dist/svg/item.js": {
|
|
10234
|
-
"bytes":
|
|
10234
|
+
"bytes": 25891,
|
|
10235
10235
|
"imports": [
|
|
10236
10236
|
{
|
|
10237
10237
|
"path": "../layout/dist/index.js",
|
|
@@ -10646,7 +10646,7 @@
|
|
|
10646
10646
|
"imports": [],
|
|
10647
10647
|
"exports": [],
|
|
10648
10648
|
"inputs": {},
|
|
10649
|
-
"bytes":
|
|
10649
|
+
"bytes": 3709610
|
|
10650
10650
|
},
|
|
10651
10651
|
"dist/nowline.min.js": {
|
|
10652
10652
|
"imports": [],
|
|
@@ -11461,7 +11461,7 @@
|
|
|
11461
11461
|
"bytesInOutput": 474
|
|
11462
11462
|
},
|
|
11463
11463
|
"../layout/dist/capacity.js": {
|
|
11464
|
-
"bytesInOutput":
|
|
11464
|
+
"bytesInOutput": 1036
|
|
11465
11465
|
},
|
|
11466
11466
|
"../layout/dist/dsl-utils.js": {
|
|
11467
11467
|
"bytesInOutput": 50
|
|
@@ -11494,7 +11494,7 @@
|
|
|
11494
11494
|
"bytesInOutput": 3272
|
|
11495
11495
|
},
|
|
11496
11496
|
"../layout/dist/frame-tab-geometry.js": {
|
|
11497
|
-
"bytesInOutput":
|
|
11497
|
+
"bytesInOutput": 638
|
|
11498
11498
|
},
|
|
11499
11499
|
"../layout/dist/header-logo.js": {
|
|
11500
11500
|
"bytesInOutput": 450
|
|
@@ -11665,7 +11665,7 @@
|
|
|
11665
11665
|
"bytesInOutput": 1704
|
|
11666
11666
|
},
|
|
11667
11667
|
"../layout/dist/nodes/item-measure.js": {
|
|
11668
|
-
"bytesInOutput":
|
|
11668
|
+
"bytesInOutput": 4828
|
|
11669
11669
|
},
|
|
11670
11670
|
"../layout/dist/nodes/sequence-item.js": {
|
|
11671
11671
|
"bytesInOutput": 3064
|
|
@@ -11824,7 +11824,7 @@
|
|
|
11824
11824
|
"bytesInOutput": 5375
|
|
11825
11825
|
},
|
|
11826
11826
|
"../renderer/dist/svg/item.js": {
|
|
11827
|
-
"bytesInOutput":
|
|
11827
|
+
"bytesInOutput": 6308
|
|
11828
11828
|
},
|
|
11829
11829
|
"../renderer/dist/svg/swimlanes.js": {
|
|
11830
11830
|
"bytesInOutput": 3086
|
|
@@ -11866,7 +11866,7 @@
|
|
|
11866
11866
|
"bytesInOutput": 257
|
|
11867
11867
|
}
|
|
11868
11868
|
},
|
|
11869
|
-
"bytes":
|
|
11869
|
+
"bytes": 675607
|
|
11870
11870
|
}
|
|
11871
11871
|
}
|
|
11872
11872
|
}
|
package/dist/nowline.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @nowline/embed 0.0.0-dev.
|
|
1
|
+
/*! @nowline/embed 0.0.0-dev.20261020042602.g1c1ec01 sha=1c1ec01 built=2026-10-20T04:20:24Z */
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -21897,19 +21897,22 @@ function estimateCapacitySuffixWidth(text, icon, fontSizePx) {
|
|
|
21897
21897
|
return (text.length + 1) * fontSizePx * 0.58;
|
|
21898
21898
|
}
|
|
21899
21899
|
const glyphWidthEm = 1;
|
|
21900
|
-
const gapEm = 0.1;
|
|
21900
|
+
const gapEm = icon.kind === "builtin" ? CAPACITY_ICON_GAP_EM : 0.1;
|
|
21901
21901
|
return text.length * fontSizePx * 0.58 + (gapEm + glyphWidthEm) * fontSizePx;
|
|
21902
21902
|
}
|
|
21903
21903
|
var META_SUFFIX_DX_EM = 0.6;
|
|
21904
|
-
var
|
|
21905
|
-
var CAPACITY_ICON_GAP_EM = 0.1;
|
|
21904
|
+
var CAPACITY_ICON_GAP_EM = 0.25;
|
|
21906
21905
|
function capacityIconDxTerms(text, icon, fontSizePx, metaText) {
|
|
21907
21906
|
if (icon?.kind !== "builtin" || icon.name === "multiplier")
|
|
21908
21907
|
return void 0;
|
|
21909
21908
|
const gapPx = fontSizePx * CAPACITY_ICON_GAP_EM;
|
|
21910
21909
|
if (metaText) {
|
|
21911
|
-
|
|
21912
|
-
|
|
21910
|
+
return [
|
|
21911
|
+
estimateTextWidth(metaText, fontSizePx),
|
|
21912
|
+
fontSizePx * META_SUFFIX_DX_EM,
|
|
21913
|
+
estimateTextWidth(text, fontSizePx),
|
|
21914
|
+
gapPx
|
|
21915
|
+
];
|
|
21913
21916
|
}
|
|
21914
21917
|
return [estimateTextWidth(text, fontSizePx), gapPx];
|
|
21915
21918
|
}
|
|
@@ -23268,7 +23271,31 @@ function routeDependencies(requests, obstacles, pixelsPerDay) {
|
|
|
23268
23271
|
}
|
|
23269
23272
|
|
|
23270
23273
|
// ../layout/dist/frame-tab-geometry.js
|
|
23271
|
-
var
|
|
23274
|
+
var FRAME_TAB_TITLE_FONT_SIZE_PX = 12;
|
|
23275
|
+
var TITLE_NARROW_EM = 0.28;
|
|
23276
|
+
var TITLE_SEMI_NARROW_EM = 0.4;
|
|
23277
|
+
var TITLE_WIDE_EM = 0.9;
|
|
23278
|
+
var TITLE_CAPITAL_OR_DIGIT_EM = 0.7;
|
|
23279
|
+
var TITLE_DEFAULT_EM = 0.6;
|
|
23280
|
+
var TITLE_NARROW_CHARS = new Set(" ijlI.,:;!'|`");
|
|
23281
|
+
var TITLE_SEMI_NARROW_CHARS = new Set('frt()[]{}/\\1-_"');
|
|
23282
|
+
var TITLE_WIDE_CHARS = new Set("mwMW@%");
|
|
23283
|
+
function estimateFrameTabTitleWidth(title) {
|
|
23284
|
+
let em = 0;
|
|
23285
|
+
for (const ch of title) {
|
|
23286
|
+
if (TITLE_NARROW_CHARS.has(ch))
|
|
23287
|
+
em += TITLE_NARROW_EM;
|
|
23288
|
+
else if (TITLE_SEMI_NARROW_CHARS.has(ch))
|
|
23289
|
+
em += TITLE_SEMI_NARROW_EM;
|
|
23290
|
+
else if (TITLE_WIDE_CHARS.has(ch))
|
|
23291
|
+
em += TITLE_WIDE_EM;
|
|
23292
|
+
else if (/[A-Z0-9]/.test(ch))
|
|
23293
|
+
em += TITLE_CAPITAL_OR_DIGIT_EM;
|
|
23294
|
+
else
|
|
23295
|
+
em += TITLE_DEFAULT_EM;
|
|
23296
|
+
}
|
|
23297
|
+
return em * FRAME_TAB_TITLE_FONT_SIZE_PX;
|
|
23298
|
+
}
|
|
23272
23299
|
var FRAME_TAB_OWNER_PX_PER_CHAR = 5;
|
|
23273
23300
|
var FRAME_TAB_OWNER_GLYPH_PX = 10;
|
|
23274
23301
|
var FRAME_TAB_OWNER_GLYPH_GAP_PX = 3;
|
|
@@ -23280,7 +23307,7 @@ var FRAME_TAB_OFFSET_FROM_BOX_PX = 10;
|
|
|
23280
23307
|
function frameTabGeometry(boxX, title, owner, capacityBadgeWidth = 0, footnoteIndicatorWidth = 0) {
|
|
23281
23308
|
const tabX = boxX + FRAME_TAB_OFFSET_FROM_BOX_PX;
|
|
23282
23309
|
const titleX = tabX + FRAME_TAB_LEFT_INSET_PX;
|
|
23283
|
-
const titleTextWidth = title
|
|
23310
|
+
const titleTextWidth = estimateFrameTabTitleWidth(title);
|
|
23284
23311
|
let cursorX = titleX + titleTextWidth;
|
|
23285
23312
|
let ownerTextWidth = 0;
|
|
23286
23313
|
let ownerX = 0;
|
|
@@ -33064,7 +33091,8 @@ function resolveItemMeta(props, ctx, sizeResolved, status, progress, capacityIco
|
|
|
33064
33091
|
icon: capacityIcon,
|
|
33065
33092
|
...iconDxTerms !== void 0 ? { iconDxTerms } : {}
|
|
33066
33093
|
};
|
|
33067
|
-
const
|
|
33094
|
+
const separatorPx = iconDxTerms !== void 0 ? META_FONT_SIZE_PX_LOCAL * META_SUFFIX_DX_EM : estimateTextWidth(" ", META_FONT_SIZE_PX_LOCAL);
|
|
33095
|
+
const separatorWidth = metaText ? separatorPx : 0;
|
|
33068
33096
|
capacityTrailingWidth = separatorWidth + estimateCapacitySuffixWidth(capacityText, capacityIcon, META_FONT_SIZE_PX_LOCAL);
|
|
33069
33097
|
}
|
|
33070
33098
|
return { metaText, ownerDisplay, capacity, capacityTrailingWidth };
|
|
@@ -39141,11 +39169,15 @@ function renderItemMetaLine(opts) {
|
|
|
39141
39169
|
const glyphDx = num(fontSize * 0.1);
|
|
39142
39170
|
return openText + escText(metaText) + `<tspan dx="${sepDx}">${escText(numberStr)}</tspan><tspan dx="${glyphDx}">${escText(icon.text)}</tspan></text>`;
|
|
39143
39171
|
}
|
|
39172
|
+
const terms = capacity.iconDxTerms ?? [];
|
|
39173
|
+
let numberX = x2;
|
|
39174
|
+
for (const term of terms.slice(0, 2))
|
|
39175
|
+
numberX += term;
|
|
39144
39176
|
const def = CAPACITY_ICON_SVG[icon.name];
|
|
39145
39177
|
const iconSize = fontSize;
|
|
39146
39178
|
const iconX = iconXFrom(x2, capacity);
|
|
39147
39179
|
const iconY = baselineY - fontSize * 0.85;
|
|
39148
|
-
const textPart = openText + escText(metaText) +
|
|
39180
|
+
const textPart = openText + escText(metaText) + "</text>" + textTag({ x: num(numberX), y: num(baselineY), ...baseAttrs }, numberStr);
|
|
39149
39181
|
const iconPart = `<svg x="${num(iconX)}" y="${num(iconY)}" width="${num(iconSize)}" height="${num(iconSize)}" viewBox="${def.viewBox}" style="color:${escAttr(color)}" aria-hidden="true">${def.body}</svg>`;
|
|
39150
39182
|
return textPart + iconPart;
|
|
39151
39183
|
}
|
|
@@ -40899,8 +40931,8 @@ function effectiveTheme(theme, systemTheme) {
|
|
|
40899
40931
|
}
|
|
40900
40932
|
|
|
40901
40933
|
// src/index.ts
|
|
40902
|
-
var version = true ? "0.0.0-dev.
|
|
40903
|
-
var sha = true ? "
|
|
40934
|
+
var version = true ? "0.0.0-dev.20261020042602.g1c1ec01" : "0.0.0";
|
|
40935
|
+
var sha = true ? "1c1ec01" : "unknown";
|
|
40904
40936
|
var DEFAULT_SELECTOR = "pre code.language-nowline, code.language-nowline";
|
|
40905
40937
|
var initialConfig = {
|
|
40906
40938
|
theme: "auto",
|