From 3a4db834ac828dfa22d274a82838bf7326b89bc8 Mon Sep 17 00:00:00 2001 From: daniel-c-harvey Date: Thu, 18 Jun 2026 13:14:09 -0400 Subject: [PATCH] fix: track compiled RCL knob JS for MapStaticAssets deployment --- .gitignore | 3 ++- DeepDrftShared.Client/wwwroot/js/knob/knob.js | 19 +++++++++++++++++++ .../wwwroot/js/knob/knob.js.map | 1 + 3 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 DeepDrftShared.Client/wwwroot/js/knob/knob.js create mode 100644 DeepDrftShared.Client/wwwroot/js/knob/knob.js.map diff --git a/.gitignore b/.gitignore index 6d02cb5..a22172f 100644 --- a/.gitignore +++ b/.gitignore @@ -317,4 +317,5 @@ Database/Vaults/* !DeepDrftPublic.Client/wwwroot/js/*.js # RCL compiled JS must be committed — MapStaticAssets serves from build-time manifest; # gitignored TS output is absent when manifest is generated, so absent from publish output. -!DeepDrftShared.Client/wwwroot/js/parallax/ \ No newline at end of file +!DeepDrftShared.Client/wwwroot/js/parallax/ +!DeepDrftShared.Client/wwwroot/js/knob/ \ No newline at end of file diff --git a/DeepDrftShared.Client/wwwroot/js/knob/knob.js b/DeepDrftShared.Client/wwwroot/js/knob/knob.js new file mode 100644 index 0000000..fb78e57 --- /dev/null +++ b/DeepDrftShared.Client/wwwroot/js/knob/knob.js @@ -0,0 +1,19 @@ +/** + * knob - pointer capture helpers for RadialKnob. + * + * setPointerCapture / releasePointerCapture are not exposed via Blazor's + * ElementReference, so the component delegates here via JS interop. + * Both functions are no-ops when the element reference is stale (e.g. the + * component was disposed between the JS call and the microtask). + */ +/** Capture the pointer on the given element so pointermove/pointerup are + * delivered even when the cursor leaves the browser window. */ +export function capturePointer(el, pointerId) { + el.setPointerCapture(pointerId); +} +/** Release a previously captured pointer. Called on pointercancel. + * pointerup releases capture implicitly, but we call this on cancel too. */ +export function releasePointer(el, pointerId) { + el.releasePointerCapture(pointerId); +} +//# sourceMappingURL=/js/knob/knob.js.map \ No newline at end of file diff --git a/DeepDrftShared.Client/wwwroot/js/knob/knob.js.map b/DeepDrftShared.Client/wwwroot/js/knob/knob.js.map new file mode 100644 index 0000000..75c7e46 --- /dev/null +++ b/DeepDrftShared.Client/wwwroot/js/knob/knob.js.map @@ -0,0 +1 @@ +{"version":3,"file":"knob.js","sourceRoot":"/Interop/","sources":["knob/knob.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH;gEACgE;AAChE,MAAM,UAAU,cAAc,CAAC,EAAW,EAAE,SAAiB;IACxD,EAAkB,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACrD,CAAC;AAED;6EAC6E;AAC7E,MAAM,UAAU,cAAc,CAAC,EAAW,EAAE,SAAiB;IACxD,EAAkB,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;AACzD,CAAC"} \ No newline at end of file