omnius 1.0.515 → 1.0.516
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/index.js +18 -4
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -642902,11 +642902,25 @@ ${CONTENT_BG_SEQ}`);
|
|
|
642902
642902
|
}
|
|
642903
642903
|
this._enhanceConfirmZones = null;
|
|
642904
642904
|
const label = "enhance";
|
|
642905
|
-
const totalPad = ENHANCE_SEG_INNER - label.length;
|
|
642906
|
-
const left = Math.floor(totalPad / 2);
|
|
642907
|
-
const chip = " ".repeat(left) + label + " ".repeat(totalPad - left);
|
|
642908
642905
|
const pressed = this._enhancePressed === "enhance";
|
|
642909
|
-
const
|
|
642906
|
+
const ramp = [0, 0.25, 0.5, 0.75, 0.9, 1, 0.9, 0.75, 0.5, 0.25, 0];
|
|
642907
|
+
const center = Math.floor(ENHANCE_SEG_INNER / 2);
|
|
642908
|
+
const labelStart = center - Math.floor(label.length / 2);
|
|
642909
|
+
let body = "";
|
|
642910
|
+
for (let i2 = 0; i2 < ENHANCE_SEG_INNER; i2++) {
|
|
642911
|
+
const t2 = ramp[i2] ?? 0;
|
|
642912
|
+
if (t2 <= 0) {
|
|
642913
|
+
body += " ";
|
|
642914
|
+
continue;
|
|
642915
|
+
}
|
|
642916
|
+
const faded = Math.max(0, Math.round(tuiAccent() * t2));
|
|
642917
|
+
const bg = pressed ? `\x1B[48;5;${faded}m` : `\x1B[48;5;${faded}m`;
|
|
642918
|
+
if (i2 >= labelStart && i2 < labelStart + label.length) {
|
|
642919
|
+
body += `${bg}${HEADER_BUTTON_FG}${label[i2 - labelStart]}${RESET4}`;
|
|
642920
|
+
} else {
|
|
642921
|
+
body += `${bg} ${RESET4}`;
|
|
642922
|
+
}
|
|
642923
|
+
}
|
|
642910
642924
|
return `${cup}${body}${PANEL_BG_SEQ}`;
|
|
642911
642925
|
}
|
|
642912
642926
|
// ── "enhance" public API + lifecycle ─────────────────────────────────
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "omnius",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.516",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "omnius",
|
|
9
|
-
"version": "1.0.
|
|
9
|
+
"version": "1.0.516",
|
|
10
10
|
"bundleDependencies": [
|
|
11
11
|
"image-to-ascii"
|
|
12
12
|
],
|
package/package.json
CHANGED