@mindexec/cli 0.2.408 → 0.2.409

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mindexec/cli",
3
- "version": "0.2.408",
3
+ "version": "0.2.409",
4
4
  "description": "MindExec local runtime and bridge CLI",
5
5
  "main": "server.js",
6
6
  "type": "module",
@@ -5,7 +5,7 @@
5
5
  const DEBUG = false;
6
6
  const FPS_DEBUG = false;
7
7
  const FRAME_PERF_DEBUG = false;
8
- const MINDMAP_CORE_BUILD_ID = '20260628-pan-feedback-smoothing-v842';
8
+ const MINDMAP_CORE_BUILD_ID = '20260628-pan-raf-lerp-v843';
9
9
  const CanvasPhase = Object.freeze({
10
10
  Booting: 'booting',
11
11
  BoardFileLoading: 'board-file-loading',
@@ -125,9 +125,8 @@
125
125
  ]);
126
126
  const LOD_PAN_VISIBILITY_REFRESH_INTERVAL_MS = 120;
127
127
  const CAMERA_LERP_BASE_FRAME_MS = 1000 / 60;
128
- const CAMERA_KEYBOARD_PAN_LERP_60HZ = 0.82;
129
- const CAMERA_MOUSE_PAN_LERP_60HZ = 0.86;
130
- const CAMERA_INPUT_PAN_FEEDBACK_LERP = 0.72;
128
+ const CAMERA_KEYBOARD_PAN_LERP_60HZ = 0.48;
129
+ const CAMERA_MOUSE_PAN_LERP_60HZ = 0.58;
131
130
  const NODE_ADD_FRAME_BUDGET_MS = 6;
132
131
  const NODE_ADD_LOADING_FRAME_BUDGET_MS = 8;
133
132
  const NODE_ADD_MIN_SLICE = 8;
@@ -4159,32 +4158,13 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
4159
4158
  return finish('unchanged');
4160
4159
  }
4161
4160
 
4162
- const feedbackReason = status.reason;
4163
- const isPanFeedback =
4164
- feedbackReason === 'pan-input' ||
4165
- feedbackReason === 'trackpad-pan-input' ||
4166
- feedbackReason === 'ctrl-wheel-pan-input';
4167
- const feedbackLerp = isPanFeedback
4168
- ? CAMERA_INPUT_PAN_FEEDBACK_LERP
4169
- : 1.0;
4170
- const appliedX = feedbackLerp >= 1.0
4171
- ? nextX
4172
- : currentX + (nextX - currentX) * feedbackLerp;
4173
- const appliedY = feedbackLerp >= 1.0
4174
- ? nextY
4175
- : currentY + (nextY - currentY) * feedbackLerp;
4176
- const appliedZ = feedbackLerp >= 1.0
4177
- ? nextZ
4178
- : currentZ + (nextZ - currentZ) * feedbackLerp;
4179
-
4180
- this.camera.position.set(appliedX, appliedY, appliedZ);
4161
+ this.camera.position.set(nextX, nextY, nextZ);
4181
4162
  this.camera.updateMatrixWorld(true);
4182
4163
  this._viewStatePersistAfterMotion = true;
4183
4164
  this._cameraMovingThisFrame = true;
4184
4165
  this._immediateCameraFeedbackCount = Number(this._immediateCameraFeedbackCount || 0) + 1;
4185
4166
  status.used = true;
4186
4167
  status.count = this._immediateCameraFeedbackCount;
4187
- status.feedbackLerp = feedbackLerp;
4188
4168
 
4189
4169
  const flags = this.renderDebugFlags || getRenderDebugFlagsSnapshot();
4190
4170
  const isCss3dEnabled = flags.enableCss3d !== false;
@@ -603,7 +603,7 @@ window.MindMapInteractions = (function () {
603
603
  if (!module) {
604
604
  return;
605
605
  }
606
- wakeCameraNavigationAnimation(module, 'pan-input', { immediate: true, forceFrames: 2 });
606
+ wakeCameraNavigationAnimation(module, 'pan-input', { forceFrames: 3 });
607
607
  }
608
608
 
609
609
  function applyImmediateCameraNavigationFeedback(module, reason = 'camera-navigation-input') {
@@ -6386,7 +6386,7 @@ window.MindMapInteractions = (function () {
6386
6386
  module._lastPanInputAt = panInputAt;
6387
6387
  module._deferPassiveOverlayRefresh = true;
6388
6388
  module._cameraNavigationOverlayInputTime = panInputAt;
6389
- wakeCameraNavigationAnimation(module, 'trackpad-pan-input', { immediate: true, forceFrames: 2 });
6389
+ wakeCameraNavigationAnimation(module, 'trackpad-pan-input', { forceFrames: 3 });
6390
6390
 
6391
6391
  if (module.isSelecting) {
6392
6392
  updateSelectionBox(module);
@@ -6680,11 +6680,10 @@ window.MindMapInteractions = (function () {
6680
6680
 
6681
6681
  const panFactor = 0.001 * module.camera.position.z;
6682
6682
  module.targetY -= deltaY * panFactor;
6683
- applyImmediateCameraNavigationFeedback(module, 'ctrl-wheel-pan-input');
6684
6683
  module._deferPassiveOverlayRefresh = false;
6685
6684
  module._overlayDirty = true;
6686
6685
  window.MindMapTextOverlayV2?.invalidateView?.(module);
6687
- wakeCameraNavigationAnimation(module, 'ctrl-wheel-pan-input', { forceFrames: 2 });
6686
+ wakeCameraNavigationAnimation(module, 'ctrl-wheel-pan-input', { forceFrames: 3 });
6688
6687
 
6689
6688
  if (module.isSelecting) {
6690
6689
  updateSelectionBox(module);
@@ -579,7 +579,7 @@
579
579
  }
580
580
 
581
581
  const base = '_content/MindExecution.Shared/js/';
582
- const scriptVersion = '20260628-pan-feedback-smoothing-v842';
582
+ const scriptVersion = '20260628-pan-raf-lerp-v843';
583
583
  const scriptUrl = (script) => `${base}${script}?v=${scriptVersion}`;
584
584
  console.log(`[Script Loader] Shared JS version: ${scriptVersion}`);
585
585
  const criticalScripts = [
@@ -1,5 +1,5 @@
1
1
  self.assetsManifest = {
2
- "version": "yVyXGkxu",
2
+ "version": "HgKmURZQ",
3
3
  "assets": [
4
4
  {
5
5
  "hash": "sha256-+CSYMcqLNTsq3VnH11jgYyOCCdxvHzL74CBmo4sCmMU=",
@@ -78,7 +78,7 @@
78
78
  "url": "_content/MindExecution.Shared/js/marked.min.js"
79
79
  },
80
80
  {
81
- "hash": "sha256-pUkpfib69+11xxOSi4C0AbmohwRy/+5JyePVFyKaexk=",
81
+ "hash": "sha256-/3YEreJ8UpVHhrJfmcSiA5I6gqFwJAwYDEe2zOe9fiw=",
82
82
  "url": "_content/MindExecution.Shared/js/mind-map-core.js"
83
83
  },
84
84
  {
@@ -106,7 +106,7 @@
106
106
  "url": "_content/MindExecution.Shared/js/mind-map-glow-shader.js"
107
107
  },
108
108
  {
109
- "hash": "sha256-QpXY2g89ekLPTa3GDB/lse5U2wQm39lXq7V3RUNLhd0=",
109
+ "hash": "sha256-WyyoBdEFd3t6MrqTA9uRlPeyjLUhVevnaVuOEg6Wn1k=",
110
110
  "url": "_content/MindExecution.Shared/js/mind-map-interactions.js"
111
111
  },
112
112
  {
@@ -826,7 +826,7 @@
826
826
  "url": "icon-512.png"
827
827
  },
828
828
  {
829
- "hash": "sha256-1fe9T+GkNIkXk/GSyo780dH/YxldAcJXHThknJmIFcI=",
829
+ "hash": "sha256-Nl+P8a13dVe+n7OsX+lnVaqXBZiDkmgwZxdRlumhIYI=",
830
830
  "url": "index.html"
831
831
  },
832
832
  {
@@ -1,4 +1,4 @@
1
- /* Manifest version: yVyXGkxu */
1
+ /* Manifest version: HgKmURZQ */
2
2
  // Hosted deployments should prefer the network over stale offline caches.
3
3
  // This service worker immediately clears old Blazor offline caches and unregisters itself.
4
4