@mindexec/cli 0.2.288 → 0.2.290
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
|
@@ -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 = '20260620-css3d-flat-wheel-
|
|
8
|
+
const MINDMAP_CORE_BUILD_ID = '20260620-css3d-flat-wheel-v736';
|
|
9
9
|
const CanvasPhase = Object.freeze({
|
|
10
10
|
Booting: 'booting',
|
|
11
11
|
BoardFileLoading: 'board-file-loading',
|
|
@@ -4030,6 +4030,7 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
|
|
|
4030
4030
|
this._lastLocalSnapGridOpacity = '';
|
|
4031
4031
|
this._localSnapGridStyleDeferredForZoom = false;
|
|
4032
4032
|
this._localSnapGridPointerWakeDeferredForZoom = false;
|
|
4033
|
+
this._lastLocalSnapGridPointerSnapKey = '';
|
|
4033
4034
|
this._lastSnapGridClientX = null;
|
|
4034
4035
|
this._lastSnapGridClientY = null;
|
|
4035
4036
|
this._animationIdleTimerId = null;
|
|
@@ -4099,11 +4100,6 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
|
|
|
4099
4100
|
|
|
4100
4101
|
const roundedX = Math.round(nextX * 2) / 2;
|
|
4101
4102
|
const roundedY = Math.round(nextY * 2) / 2;
|
|
4102
|
-
const previousX = this._lastSnapGridClientX;
|
|
4103
|
-
const previousY = this._lastSnapGridClientY;
|
|
4104
|
-
this._lastSnapGridClientX = roundedX;
|
|
4105
|
-
this._lastSnapGridClientY = roundedY;
|
|
4106
|
-
|
|
4107
4103
|
const fallbackGrid = Math.max(1, Number(this.GRID_SIZE || 10));
|
|
4108
4104
|
let pointerSnapKey = `screen:${Math.round(roundedX / fallbackGrid)}|${Math.round(roundedY / fallbackGrid)}`;
|
|
4109
4105
|
if (this.container && this.camera?.isPerspectiveCamera) {
|
|
@@ -4122,6 +4118,10 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
|
|
|
4122
4118
|
return false;
|
|
4123
4119
|
}
|
|
4124
4120
|
|
|
4121
|
+
const previousX = this._lastSnapGridClientX;
|
|
4122
|
+
const previousY = this._lastSnapGridClientY;
|
|
4123
|
+
this._lastSnapGridClientX = roundedX;
|
|
4124
|
+
this._lastSnapGridClientY = roundedY;
|
|
4125
4125
|
this._lastLocalSnapGridPointerSnapKey = pointerSnapKey;
|
|
4126
4126
|
this._localSnapGridPointerRevision = Math.max(0, Number(this._localSnapGridPointerRevision || 0)) + 1;
|
|
4127
4127
|
this._lastLocalSnapGridTransformKey = '';
|
|
@@ -4173,11 +4173,38 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
|
|
|
4173
4173
|
};
|
|
4174
4174
|
}
|
|
4175
4175
|
|
|
4176
|
+
_placeBackgroundGridLayer(layer) {
|
|
4177
|
+
if (!layer || !this.container) {
|
|
4178
|
+
return false;
|
|
4179
|
+
}
|
|
4180
|
+
|
|
4181
|
+
const webglElement = this.renderer?.domElement;
|
|
4182
|
+
const cssElement = this.cssRenderer?.domElement;
|
|
4183
|
+
const anchorElement =
|
|
4184
|
+
webglElement?.parentNode === this.container
|
|
4185
|
+
? webglElement
|
|
4186
|
+
: cssElement?.parentNode === this.container
|
|
4187
|
+
? cssElement
|
|
4188
|
+
: null;
|
|
4189
|
+
|
|
4190
|
+
if (anchorElement) {
|
|
4191
|
+
if (layer.parentNode !== this.container ||
|
|
4192
|
+
layer.nextSibling !== anchorElement) {
|
|
4193
|
+
this.container.insertBefore(layer, anchorElement);
|
|
4194
|
+
}
|
|
4195
|
+
} else if (layer.parentNode !== this.container) {
|
|
4196
|
+
this.container.insertBefore(layer, this.container.firstChild || null);
|
|
4197
|
+
}
|
|
4198
|
+
|
|
4199
|
+
return layer.parentNode === this.container;
|
|
4200
|
+
}
|
|
4201
|
+
|
|
4176
4202
|
_ensureLocalSnapGridLayer() {
|
|
4177
4203
|
if (!this.container || typeof document === 'undefined') {
|
|
4178
4204
|
return null;
|
|
4179
4205
|
}
|
|
4180
4206
|
if (this._localSnapGridLayer?.isConnected) {
|
|
4207
|
+
this._placeBackgroundGridLayer(this._localSnapGridLayer);
|
|
4181
4208
|
return this._localSnapGridLayer;
|
|
4182
4209
|
}
|
|
4183
4210
|
|
|
@@ -4203,17 +4230,13 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
|
|
|
4203
4230
|
layer.style.transform = 'translate3d(0, 0, 0)';
|
|
4204
4231
|
layer.style.transition = 'none';
|
|
4205
4232
|
|
|
4206
|
-
|
|
4207
|
-
if (cssElement?.parentNode === this.container) {
|
|
4208
|
-
this.container.insertBefore(layer, cssElement);
|
|
4209
|
-
} else {
|
|
4210
|
-
this.container.appendChild(layer);
|
|
4211
|
-
}
|
|
4233
|
+
this._placeBackgroundGridLayer(layer);
|
|
4212
4234
|
|
|
4213
4235
|
this._localSnapGridLayer = layer;
|
|
4214
4236
|
this._lastLocalSnapGridKey = '';
|
|
4215
4237
|
this._lastLocalSnapGridTransformKey = '';
|
|
4216
4238
|
this._lastLocalSnapGridPositionRevision = -1;
|
|
4239
|
+
this._lastLocalSnapGridPointerSnapKey = '';
|
|
4217
4240
|
this._lastLocalSnapGridOpacity = '';
|
|
4218
4241
|
this._localSnapGridStyleDeferredForZoom = false;
|
|
4219
4242
|
return layer;
|
|
@@ -4583,6 +4606,7 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
|
|
|
4583
4606
|
return null;
|
|
4584
4607
|
}
|
|
4585
4608
|
if (this._motionGridLayer?.isConnected) {
|
|
4609
|
+
this._placeBackgroundGridLayer(this._motionGridLayer);
|
|
4586
4610
|
return this._motionGridLayer;
|
|
4587
4611
|
}
|
|
4588
4612
|
|
|
@@ -4601,12 +4625,7 @@ ${summaryLines.map(line => `<div>${escapeNodeFrameDebugHtml(line)}</div>`).join(
|
|
|
4601
4625
|
layer.style.transform = 'translate3d(0, 0, 0)';
|
|
4602
4626
|
layer.style.transition = 'none';
|
|
4603
4627
|
|
|
4604
|
-
|
|
4605
|
-
if (cssElement?.parentNode === this.container) {
|
|
4606
|
-
this.container.insertBefore(layer, cssElement);
|
|
4607
|
-
} else {
|
|
4608
|
-
this.container.appendChild(layer);
|
|
4609
|
-
}
|
|
4628
|
+
this._placeBackgroundGridLayer(layer);
|
|
4610
4629
|
|
|
4611
4630
|
this._motionGridLayer = layer;
|
|
4612
4631
|
this._lastMotionGridKey = '';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
self.assetsManifest = {
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "vi01tz7I",
|
|
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-
|
|
81
|
+
"hash": "sha256-ISEggFRt/bAkomXZWDQTrm3AQdkKZTQMfSeGpV2Sggo=",
|
|
82
82
|
"url": "_content/MindExecution.Shared/js/mind-map-core.js"
|
|
83
83
|
},
|
|
84
84
|
{
|