@mindexec/cli 0.2.450 → 0.2.451

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.450",
3
+ "version": "0.2.451",
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 = '20260727-fixed-phase-grid-spotlight-v857';
8
+ const MINDMAP_CORE_BUILD_ID = '20260727-fixed-phase-grid-spotlight-v858';
9
9
  const CanvasPhase = Object.freeze({
10
10
  Booting: 'booting',
11
11
  BoardFileLoading: 'board-file-loading',
@@ -3544,32 +3544,42 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
3544
3544
  : height / 2;
3545
3545
  const spotlightLeft = Math.round(centerX - LOCAL_SNAP_GRID_RADIUS_PX);
3546
3546
  const spotlightTop = Math.round(centerY - LOCAL_SNAP_GRID_RADIUS_PX);
3547
+ const containerLeft = Math.round(Number(left) || 0);
3548
+ const containerTop = Math.round(Number(top) || 0);
3547
3549
  const patternPeriod = Math.max(
3548
3550
  1,
3549
3551
  Math.round(Number(this._lastLocalSnapGridPatternPeriodPx || LOCAL_SNAP_GRID_DEFAULT_MAJOR_STEP_PX))
3550
3552
  );
3551
3553
  const positiveModulo = (value, size) => ((value % size) + size) % size;
3552
3554
  const gridPhaseX = Math.round(positiveModulo(
3553
- LOCAL_SNAP_GRID_TILE_OVERSCAN_PX - spotlightLeft,
3555
+ LOCAL_SNAP_GRID_TILE_OVERSCAN_PX - containerLeft - spotlightLeft,
3554
3556
  patternPeriod
3555
3557
  ));
3556
3558
  const gridPhaseY = Math.round(positiveModulo(
3557
- LOCAL_SNAP_GRID_TILE_OVERSCAN_PX - spotlightTop,
3559
+ LOCAL_SNAP_GRID_TILE_OVERSCAN_PX - containerTop - spotlightTop,
3558
3560
  patternPeriod
3559
3561
  ));
3560
3562
  if (DEBUG) {
3561
3563
  const fixedPhaseX = positiveModulo(
3562
- spotlightLeft - LOCAL_SNAP_GRID_TILE_OVERSCAN_PX + gridPhaseX,
3564
+ containerLeft + spotlightLeft - LOCAL_SNAP_GRID_TILE_OVERSCAN_PX + gridPhaseX,
3563
3565
  patternPeriod
3564
3566
  );
3565
3567
  const fixedPhaseY = positiveModulo(
3566
- spotlightTop - LOCAL_SNAP_GRID_TILE_OVERSCAN_PX + gridPhaseY,
3568
+ containerTop + spotlightTop - LOCAL_SNAP_GRID_TILE_OVERSCAN_PX + gridPhaseY,
3567
3569
  patternPeriod
3568
3570
  );
3569
3571
  window.MindCanvasDevGuards?.assert?.(
3570
3572
  fixedPhaseX === 0 && fixedPhaseY === 0,
3571
3573
  'local-snap-grid-phase-drift',
3572
- { spotlightLeft, spotlightTop, gridPhaseX, gridPhaseY, patternPeriod }
3574
+ {
3575
+ containerLeft,
3576
+ containerTop,
3577
+ spotlightLeft,
3578
+ spotlightTop,
3579
+ gridPhaseX,
3580
+ gridPhaseY,
3581
+ patternPeriod
3582
+ }
3573
3583
  );
3574
3584
  }
3575
3585
  const transformKey = `${spotlightLeft}|${spotlightTop}|${patternPeriod}|${gridPhaseX}|${gridPhaseY}`;
@@ -3693,7 +3703,6 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
3693
3703
  return false;
3694
3704
  }
3695
3705
 
3696
- this._lastLocalSnapGridKey = localGridKey;
3697
3706
  const opacityValue = safeOpacity.toFixed(3);
3698
3707
  this._lastLocalSnapGridOpacity = opacityValue;
3699
3708
  const tileCanvas = this._localSnapGridTileCanvas || document.createElement('canvas');
@@ -3707,6 +3716,7 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
3707
3716
  if (!Number.isFinite(tileSize) || tileSize <= 0) {
3708
3717
  return false;
3709
3718
  }
3719
+ this._lastLocalSnapGridKey = localGridKey;
3710
3720
  this._lastLocalSnapGridPatternPeriodPx = tileSize;
3711
3721
  this._lastLocalSnapGridTransformKey = '';
3712
3722
  layer.style.backgroundImage = `url("${tileCanvas.toDataURL('image/png')}")`;
@@ -245,6 +245,7 @@ window.MindMapInteractions = (function () {
245
245
  boundOnMouseUp: onMouseUp.bind(null, module),
246
246
  boundOnResizeHandleCapture: onResizeHandleCapture.bind(null, module),
247
247
  boundOnHoverMove: onHoverMove.bind(null, module),
248
+ boundOnLocalSnapGridPointerMove: e => updateLocalSnapGridPointer(module, e?.clientX, e?.clientY),
248
249
  boundOnKeyDown: onKeyDown.bind(null, module),
249
250
  boundOnKeyUp: onKeyUp.bind(null, module),
250
251
  boundOnWindowBlur: clearPhysicalWheelModifierState.bind(null, module),
@@ -7747,6 +7748,7 @@ window.MindMapInteractions = (function () {
7747
7748
  moduleInstance.container.addEventListener('gesturechange', handlers.boundOnGestureChange, { passive: false });
7748
7749
  moduleInstance.container.addEventListener('gestureend', handlers.boundOnGestureEnd, { passive: false });
7749
7750
  }
7751
+ window.addEventListener('pointermove', handlers.boundOnLocalSnapGridPointerMove, { passive: true, capture: true });
7750
7752
  window.addEventListener('resize', handlers.boundOnResize);
7751
7753
  window.addEventListener('orientationchange', handlers.boundOnViewportMetricsChange);
7752
7754
  if (window.visualViewport) {
@@ -7821,6 +7823,7 @@ window.MindMapInteractions = (function () {
7821
7823
  moduleInstance.container.removeEventListener('gesturechange', handlers.boundOnGestureChange);
7822
7824
  moduleInstance.container.removeEventListener('gestureend', handlers.boundOnGestureEnd);
7823
7825
  }
7826
+ window.removeEventListener('pointermove', handlers.boundOnLocalSnapGridPointerMove, true);
7824
7827
  window.removeEventListener('resize', handlers.boundOnResize);
7825
7828
  window.removeEventListener('orientationchange', handlers.boundOnViewportMetricsChange);
7826
7829
  if (window.visualViewport) {
@@ -579,7 +579,7 @@
579
579
  }
580
580
 
581
581
  const base = '_content/MindExecution.Shared/js/';
582
- const scriptVersion = '20260727-fixed-phase-grid-v950';
582
+ const scriptVersion = '20260727-fixed-phase-grid-v952';
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": "ILA9KwLq",
2
+ "version": "p8ssqnwY",
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-lPc30WYtXer88DsvAY5tCILPz0xFdfM0l3P+Ccw4wS8=",
81
+ "hash": "sha256-mQJAssSKsBPUgKPUA7JW2AKHvXnQT3RExAenuLL5+so=",
82
82
  "url": "_content/MindExecution.Shared/js/mind-map-core.js"
83
83
  },
84
84
  {
@@ -110,7 +110,7 @@
110
110
  "url": "_content/MindExecution.Shared/js/mind-map-glow-shader.js"
111
111
  },
112
112
  {
113
- "hash": "sha256-gyHNM8wV2/nOJXh4raQFoWqfMh5mgd7xomr7BRf+UbQ=",
113
+ "hash": "sha256-wPZrXIRdM4Q6OME4+cmEMyZKC+gqlU9gGdGiHnSF7wk=",
114
114
  "url": "_content/MindExecution.Shared/js/mind-map-interactions.js"
115
115
  },
116
116
  {
@@ -846,7 +846,7 @@
846
846
  "url": "icon-512.png"
847
847
  },
848
848
  {
849
- "hash": "sha256-c2AIozfD07OWnpUIWdjEbUqRQ1OhNnipQpYAVd7zwC0=",
849
+ "hash": "sha256-6WXHglnUixqMAtvwh+KquCabhsGtEytTYIOPc8zOXJE=",
850
850
  "url": "index.html"
851
851
  },
852
852
  {
@@ -1,4 +1,4 @@
1
- /* Manifest version: ILA9KwLq */
1
+ /* Manifest version: p8ssqnwY */
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