@omiron33/omi-neuron-web 0.2.26 → 0.2.27

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.
@@ -328,7 +328,8 @@ interface NeuronWebProps {
328
328
  onCameraChange?: (position: [number, number, number]) => void;
329
329
  /**
330
330
  * Enable node dragging for manual arrangement.
331
- * - `true` or `{ enabled: true }`: Enable dragging, constrain to XY plane in tree mode
331
+ * Use Shift+click to drag nodes (regular click still works for selection/pan).
332
+ * - `true` or `{ enabled: true }`: Enable dragging, constrain to XY plane
332
333
  * - `{ enabled: true, constrainToPlane: 'xy' | 'xz' | 'yz' }`: Constrain to specific plane
333
334
  */
334
335
  draggable?: boolean | {
@@ -328,7 +328,8 @@ interface NeuronWebProps {
328
328
  onCameraChange?: (position: [number, number, number]) => void;
329
329
  /**
330
330
  * Enable node dragging for manual arrangement.
331
- * - `true` or `{ enabled: true }`: Enable dragging, constrain to XY plane in tree mode
331
+ * Use Shift+click to drag nodes (regular click still works for selection/pan).
332
+ * - `true` or `{ enabled: true }`: Enable dragging, constrain to XY plane
332
333
  * - `{ enabled: true, constrainToPlane: 'xy' | 'xz' | 'yz' }`: Constrain to specific plane
333
334
  */
334
335
  draggable?: boolean | {
@@ -2637,6 +2637,7 @@ var InteractionManager = class {
2637
2637
  }
2638
2638
  onPointerDown(event) {
2639
2639
  if (!this.config.enableDrag) return;
2640
+ if (!event.shiftKey) return;
2640
2641
  this.updatePointer(event);
2641
2642
  this.pointerDownPosition.copy(this.pointer);
2642
2643
  const node = this.getIntersectedNode(this.pointer);
@@ -4859,5 +4860,5 @@ function dedupePreserveOrder(values) {
4859
4860
  }
4860
4861
 
4861
4862
  export { DEFAULT_RENDERING_OPTIONS, DEFAULT_STATUS_COLORS, DEFAULT_THEME, NeuronContext, NeuronWeb, NeuronWebExplorer, SceneManager, ThemeEngine, applyFuzzyLayout, applyTreeLayout, createStoryBeat, createStudyPathFromBeat, createStudyPathFromNodeIds, getAutoPerformanceMode, normalizeStoryBeat, useNeuronContext, useNeuronGraph, validateStoryBeat };
4862
- //# sourceMappingURL=chunk-QKCKZYLH.js.map
4863
- //# sourceMappingURL=chunk-QKCKZYLH.js.map
4863
+ //# sourceMappingURL=chunk-S5KMHLNT.js.map
4864
+ //# sourceMappingURL=chunk-S5KMHLNT.js.map