@aivin-labs/cli 1.0.61 → 1.0.62
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/bin/lib/remote/desktop/castTouchViewers.mjs +3 -5
- package/bin/lib/remote/desktop/desktopCast.mjs +2 -2
- package/bin/lib/remote/desktop/desktopCastCaptureSource.mjs +2 -2
- package/bin/lib/remote/desktop/desktopCastSource.mjs +0 -10
- package/bin/lib/remote/mascot/askHostSource.mjs +4 -2
- package/package.json +1 -1
|
@@ -17,10 +17,8 @@ export function createCastTouchViewers() {
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* Bộ quay
|
|
21
|
-
* Đường JPEG: chỉ bỏ khi mọi người xem đều cảm ứng, còn người dùng chuột thì họ cần thấy con trỏ.
|
|
22
|
-
* Đường video: theo từng người xem báo tự vẽ hay chưa, để lúc đang ghi hình con trỏ vẫn nằm trong bản ghi.
|
|
20
|
+
* Bộ quay không vẽ con trỏ vào khung hình (cả JPEG lẫn video) để tránh hiện tượng 2 con trỏ không đồng bộ với chuột của người xem.
|
|
23
21
|
*/
|
|
24
|
-
export function shouldDrawCursorInFrame(
|
|
25
|
-
return
|
|
22
|
+
export function shouldDrawCursorInFrame() {
|
|
23
|
+
return false;
|
|
26
24
|
}
|
|
@@ -343,8 +343,8 @@ export function createDesktopCastManager({ dir = CAST_DIR, spawnImpl = spawn } =
|
|
|
343
343
|
config({ jpeg: on });
|
|
344
344
|
}
|
|
345
345
|
|
|
346
|
-
/** Con trỏ lồng vào khung hình
|
|
347
|
-
let cursorInFrame =
|
|
346
|
+
/** Con trỏ không lồng vào khung hình mặc định (tránh hiện 2 con trỏ lệch nhau trên giao diện). */
|
|
347
|
+
let cursorInFrame = false;
|
|
348
348
|
function setCursorInFrame(on) {
|
|
349
349
|
if (cursorInFrame === on) return;
|
|
350
350
|
cursorInFrame = on;
|
|
@@ -427,8 +427,8 @@ namespace AivinDesktopCast {
|
|
|
427
427
|
public static class CursorTracker {
|
|
428
428
|
const int POLL_MS = 15;
|
|
429
429
|
const int MAX_SHAPE_SIDE = 128;
|
|
430
|
-
/**
|
|
431
|
-
public static volatile bool DrawInFrame =
|
|
430
|
+
/** Không vẽ con trỏ vào khung hình (mặc định tắt để tránh hiện 2 con trỏ lệch nhịp giữa máy và trình duyệt). */
|
|
431
|
+
public static volatile bool DrawInFrame = false;
|
|
432
432
|
/** Tăng mỗi khi con trỏ đổi — vòng quay dùng để gửi khung khi con trỏ nằm trong hình. */
|
|
433
433
|
public static volatile int Seq = 0;
|
|
434
434
|
static volatile bool forceEmit = false;
|
|
@@ -238,16 +238,6 @@ namespace AivinDesktopCast {
|
|
|
238
238
|
var list = new System.Collections.Specialized.StringCollection();
|
|
239
239
|
list.Add(filePath);
|
|
240
240
|
data.SetFileDropList(list);
|
|
241
|
-
string ext = Path.GetExtension(filePath).ToLowerInvariant();
|
|
242
|
-
if (ext == ".png" || ext == ".jpg" || ext == ".jpeg" || ext == ".bmp" || ext == ".gif" || ext == ".webp") {
|
|
243
|
-
try {
|
|
244
|
-
using (var src = Image.FromFile(filePath)) {
|
|
245
|
-
var bmp = new Bitmap(src.Width, src.Height, PixelFormat.Format32bppArgb);
|
|
246
|
-
using (var g = Graphics.FromImage(bmp)) g.DrawImage(src, 0, 0, src.Width, src.Height);
|
|
247
|
-
data.SetImage(bmp);
|
|
248
|
-
}
|
|
249
|
-
} catch { }
|
|
250
|
-
}
|
|
251
241
|
return data;
|
|
252
242
|
}
|
|
253
243
|
|
|
@@ -212,10 +212,12 @@ $script:askHideTimer.Add_Tick({
|
|
|
212
212
|
$held = $script:askFocused; CloseAsk
|
|
213
213
|
if ($held -and $script:askTarget) { try { [void][AivinMascotAsk.Native]::GiveFocusBack($script:hwnd, [string]$script:askTarget.window) } catch { } }
|
|
214
214
|
})
|
|
215
|
-
# In use = keep the box out: mouse over
|
|
215
|
+
# In use = keep the box out: the mouse over THE BOX or THE BOT, talking, dragging, picking a file, or holding the keyboard with unsent
|
|
216
|
+
# text / files or a running turn. 14/11/2026: this used to be the whole window, which is a large transparent rectangle - a cursor
|
|
217
|
+
# merely resting anywhere near the bot kept the box out for ever (seen in the live run of the 5 s auto-fold).
|
|
216
218
|
# A pending question no longer counts (14/11/2026): the box slips away after ASK_PINNED_IDLE_MS and the question waits on the bot's badge.
|
|
217
219
|
function AskInUse {
|
|
218
|
-
|
|
220
|
+
(E 'Ask').IsMouseOver -or (E 'Mascot').IsMouseOver -or $script:voiceLive -or $script:drag -or $script:picking -or ($script:askFocused -and ($script:chatBusy -or $script:files -or (E 'AskBox').Text.Trim()))
|
|
219
221
|
}
|
|
220
222
|
# Aivin is waiting for an answer (HIL): the box stays out with the question + option buttons until it is answered (no focus taken).
|
|
221
223
|
$script:askPinned = $false
|