vim-web 0.5.0-dev.21 → 0.5.0-dev.22

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/dist/vim-web.js CHANGED
@@ -61559,80 +61559,72 @@ const index$6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePrope
61559
61559
  Ultra: index$7,
61560
61560
  Webgl: index$8
61561
61561
  }, Symbol.toStringTag, { value: "Module" }));
61562
- const sectionSelection = "controlBar.sectionSelection";
61563
- const sectionCamera = "controlBar.sectionCamera";
61564
- const sectionInputs = "controlBar.sectionInputs";
61565
- const sectionActions = "controlBar.sectionActions";
61566
- const sectionTools = "controlBar.sectionTools";
61567
- const sectionSettings = "controlBar.sectionSettings";
61568
- const sectionMeasure = "controlBar.sectionMeasure";
61569
- const sectionSectionBox = "controlBar.sectionSectionBox";
61570
- const buttonCameraFrameSelection = "controlBar.camera.frameSelection";
61571
- const buttonCameraFrameScene = "controlBar.camera.frameScene";
61572
- const buttonCameraAuto = "controlBar.camera.auto";
61573
- const buttonCameraOrbit = "controlBar.camera.orbit";
61574
- const buttonCameraLook = "controlBarcamera.look";
61575
- const buttonCameraPan = "controlBar.camera.pan";
61576
- const buttonCameraZoom = "controlBar.camera.zoom";
61577
- const buttonCameraZoomWindow = "controlBar.camera.zoomWindow";
61578
- const buttonProjectInspector = "controlBar.projectInspector";
61579
- const buttonSettings = "controlBar.settings";
61580
- const buttonHelp = "controlBar.help";
61581
- const buttonMaximize = "controlBar.maximize";
61582
- const buttonClearSelection = "controlBar.action.clearSelection";
61583
- const buttonShowAll = "controlBar.selection.showAll";
61584
- const buttonIsolateSelection = "controlBar.selection.isolate";
61585
- const buttonHideSelection = "controlBar.selection.hide";
61586
- const buttonShowSelection = "controlBar.selection.show";
61587
- const buttonAutoIsolate = "controlBar.selection.autoIsolate";
61588
- const buttonIsolationSettings = "controlBar.selection.isolationSettings";
61589
- const buttonRenderSettings = "controlBar.action.renderSettings";
61590
- const buttonSectionBox = "controlBar.sectionBox";
61591
- const buttonMeasure = "controlBar.measure";
61592
- const buttonSectionBoxEnable = "controlBar.sectionBox.enable";
61593
- const buttonSectionBoxVisible = "controlBar.sectionBox.visible";
61594
- const buttonSectionBoxToSelection = "controlBar.sectionBox.sectionSelection";
61595
- const buttonSectionBoxToScene = "controlBar.sectionBox.sectionScene";
61596
- const buttonSectionBoxAuto = "controlBar.sectionBox.auto";
61597
- const buttonSectionBoxSettings = "controlBar.sectionBox.settings";
61562
+ const cameraSpan = "controlBar.cameraSpan";
61563
+ const cameraFrameSelection = "controlBar.cameraFrameSelection";
61564
+ const cameraFrameScene = "controlBar.cameraFrameScene";
61565
+ const cameraAuto = "controlBar.cameraAuto";
61566
+ const cursorSpan = "controlBar.cursorSpan";
61567
+ const cursorOrbit = "controlBar.cursorOrbit";
61568
+ const cursorLook = "controlBar.cursorLook";
61569
+ const cursorPan = "controlBar.cursorPan";
61570
+ const cursorZoom = "controlBar.cursorZoom";
61571
+ const cursorZoomWindow = "controlBar.cursorZoomWindow";
61572
+ const visibilitySpan = "controlBar.visibilitySpan";
61573
+ const visibilityClearSelection = "controlBar.visibilityClearSelection";
61574
+ const visibilityShowAll = "controlBar.visibilityShowAll";
61575
+ const visibilityIsolateSelection = "controlBar.visibilityIsolateSelection";
61576
+ const visibilityHideSelection = "controlBar.visibilityHideSelection";
61577
+ const visibilityShowSelection = "controlBar.visibilityShowSelection";
61578
+ const visibilityAutoIsolate = "controlBar.visibilityAutoIsolate";
61579
+ const visibilitySettings = "controlBar.visibilitySettings";
61580
+ const sectioningSpan = "controlBar.sectioningSpan";
61581
+ const sectioningEnable = "controlBar.sectioningEnable";
61582
+ const sectioningVisible = "controlBar.sectioningVisible";
61583
+ const sectioningFitSelection = "controlBar.sectioningFitSelection";
61584
+ const sectioningFitScene = "controlBar.sectioningFitScene";
61585
+ const sectioningAuto = "controlBar.sectioningAuto";
61586
+ const sectioningSettings = "controlBar.sectioningSettings";
61587
+ const measureSpan = "controlBar.measureSpan";
61588
+ const measureEnable = "controlBar.measureEnable";
61589
+ const miscSpan = "controlBar.miscSpan";
61590
+ const miscInspector = "controlBar.miscInspector";
61591
+ const miscSettings = "controlBar.miscSettings";
61592
+ const miscHelp = "controlBar.miscHelp";
61593
+ const miscMaximize = "controlBar.miscMaximize";
61598
61594
  const controlBarIds = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
61599
61595
  __proto__: null,
61600
- buttonAutoIsolate,
61601
- buttonCameraAuto,
61602
- buttonCameraFrameScene,
61603
- buttonCameraFrameSelection,
61604
- buttonCameraLook,
61605
- buttonCameraOrbit,
61606
- buttonCameraPan,
61607
- buttonCameraZoom,
61608
- buttonCameraZoomWindow,
61609
- buttonClearSelection,
61610
- buttonHelp,
61611
- buttonHideSelection,
61612
- buttonIsolateSelection,
61613
- buttonIsolationSettings,
61614
- buttonMaximize,
61615
- buttonMeasure,
61616
- buttonProjectInspector,
61617
- buttonRenderSettings,
61618
- buttonSectionBox,
61619
- buttonSectionBoxAuto,
61620
- buttonSectionBoxEnable,
61621
- buttonSectionBoxSettings,
61622
- buttonSectionBoxToScene,
61623
- buttonSectionBoxToSelection,
61624
- buttonSectionBoxVisible,
61625
- buttonSettings,
61626
- buttonShowAll,
61627
- buttonShowSelection,
61628
- sectionActions,
61629
- sectionCamera,
61630
- sectionInputs,
61631
- sectionMeasure,
61632
- sectionSectionBox,
61633
- sectionSelection,
61634
- sectionSettings,
61635
- sectionTools
61596
+ cameraAuto,
61597
+ cameraFrameScene,
61598
+ cameraFrameSelection,
61599
+ cameraSpan,
61600
+ cursorLook,
61601
+ cursorOrbit,
61602
+ cursorPan,
61603
+ cursorSpan,
61604
+ cursorZoom,
61605
+ cursorZoomWindow,
61606
+ measureEnable,
61607
+ measureSpan,
61608
+ miscHelp,
61609
+ miscInspector,
61610
+ miscMaximize,
61611
+ miscSettings,
61612
+ miscSpan,
61613
+ sectioningAuto,
61614
+ sectioningEnable,
61615
+ sectioningFitScene,
61616
+ sectioningFitSelection,
61617
+ sectioningSettings,
61618
+ sectioningSpan,
61619
+ sectioningVisible,
61620
+ visibilityAutoIsolate,
61621
+ visibilityClearSelection,
61622
+ visibilityHideSelection,
61623
+ visibilityIsolateSelection,
61624
+ visibilitySettings,
61625
+ visibilityShowAll,
61626
+ visibilityShowSelection,
61627
+ visibilitySpan
61636
61628
  }, Symbol.toStringTag, { value: "Module" }));
61637
61629
  const baseSectionStyle = "vc-flex vc-items-center vc-rounded-full vc-mb-2 vc-shadow-md";
61638
61630
  const sectionDefaultStyle = baseSectionStyle + " vc-bg-white";
@@ -67612,12 +67604,12 @@ const Style = style;
67612
67604
  const Ids$2 = controlBarIds;
67613
67605
  function controlBarSectionBox(section, hasSelection, settings2) {
67614
67606
  return {
67615
- id: Ids$2.sectionSectionBox,
67607
+ id: Ids$2.sectioningSpan,
67616
67608
  style: section.enable.get() ? Style.sectionNoPadStyle : Style.sectionDefaultStyle,
67617
67609
  //enable: () => section.getEnable(),
67618
67610
  buttons: [
67619
67611
  {
67620
- id: Ids$2.buttonSectionBoxEnable,
67612
+ id: Ids$2.sectioningEnable,
67621
67613
  enabled: () => isTrue(settings2.sectioningEnable),
67622
67614
  tip: "Enable Section Box",
67623
67615
  isOn: () => section.enable.get(),
@@ -67626,7 +67618,7 @@ function controlBarSectionBox(section, hasSelection, settings2) {
67626
67618
  icon: sectionBox
67627
67619
  },
67628
67620
  {
67629
- id: Ids$2.buttonSectionBoxToSelection,
67621
+ id: Ids$2.sectioningFitSelection,
67630
67622
  tip: "Fit Section",
67631
67623
  enabled: () => section.enable.get() && isTrue(settings2.sectioningFitToSelection),
67632
67624
  isOn: () => hasSelection,
@@ -67635,7 +67627,7 @@ function controlBarSectionBox(section, hasSelection, settings2) {
67635
67627
  icon: sectionBoxShrink
67636
67628
  },
67637
67629
  {
67638
- id: Ids$2.buttonSectionBoxToScene,
67630
+ id: Ids$2.sectioningFitScene,
67639
67631
  tip: "Reset Section",
67640
67632
  enabled: () => section.enable.get() && isTrue(settings2.sectioningReset),
67641
67633
  style: (on) => Style.buttonDefaultStyle(on),
@@ -67643,7 +67635,7 @@ function controlBarSectionBox(section, hasSelection, settings2) {
67643
67635
  icon: sectionBoxReset
67644
67636
  },
67645
67637
  {
67646
- id: Ids$2.buttonSectionBoxVisible,
67638
+ id: Ids$2.sectioningVisible,
67647
67639
  tip: "Show Section Box",
67648
67640
  enabled: () => section.enable.get() && isTrue(settings2.sectioningShow),
67649
67641
  isOn: () => section.visible.get(),
@@ -67652,7 +67644,7 @@ function controlBarSectionBox(section, hasSelection, settings2) {
67652
67644
  icon: visible
67653
67645
  },
67654
67646
  {
67655
- id: Ids$2.buttonSectionBoxAuto,
67647
+ id: Ids$2.sectioningAuto,
67656
67648
  tip: "Auto Section",
67657
67649
  enabled: () => section.enable.get() && isTrue(settings2.sectioningAuto),
67658
67650
  isOn: () => section.auto.get(),
@@ -67661,7 +67653,7 @@ function controlBarSectionBox(section, hasSelection, settings2) {
67661
67653
  icon: sectionBoxAuto
67662
67654
  },
67663
67655
  {
67664
- id: Ids$2.buttonSectionBoxSettings,
67656
+ id: Ids$2.sectioningSettings,
67665
67657
  tip: "Section Settings",
67666
67658
  enabled: () => section.enable.get() && isTrue(settings2.sectioningSettings),
67667
67659
  isOn: () => section.showOffsetPanel.get(),
@@ -67675,12 +67667,12 @@ function controlBarSectionBox(section, hasSelection, settings2) {
67675
67667
  function controlBarPointer(viewer, camera2, settings2, section) {
67676
67668
  const pointer2 = getPointerState(viewer);
67677
67669
  return {
67678
- id: Ids$2.sectionInputs,
67670
+ id: Ids$2.cursorSpan,
67679
67671
  enable: () => anyUiCursorButton(settings2),
67680
67672
  style: Style.sectionDefaultStyle,
67681
67673
  buttons: [
67682
67674
  {
67683
- id: Ids$2.buttonCameraOrbit,
67675
+ id: Ids$2.cursorOrbit,
67684
67676
  enabled: () => isTrue(settings2.cursorOrbit),
67685
67677
  tip: "Orbit",
67686
67678
  action: () => pointer2.onButton(PointerMode$1.ORBIT),
@@ -67689,7 +67681,7 @@ function controlBarPointer(viewer, camera2, settings2, section) {
67689
67681
  style: Style.buttonDefaultStyle
67690
67682
  },
67691
67683
  {
67692
- id: Ids$2.buttonCameraLook,
67684
+ id: Ids$2.cursorLook,
67693
67685
  enabled: () => isTrue(settings2.cursorLookAround),
67694
67686
  tip: "Look Around",
67695
67687
  action: () => pointer2.onButton(PointerMode$1.LOOK),
@@ -67698,7 +67690,7 @@ function controlBarPointer(viewer, camera2, settings2, section) {
67698
67690
  style: Style.buttonDefaultStyle
67699
67691
  },
67700
67692
  {
67701
- id: Ids$2.buttonCameraPan,
67693
+ id: Ids$2.cursorPan,
67702
67694
  enabled: () => isTrue(settings2.cursorPan),
67703
67695
  tip: "Pan",
67704
67696
  action: () => pointer2.onButton(PointerMode$1.PAN),
@@ -67707,7 +67699,7 @@ function controlBarPointer(viewer, camera2, settings2, section) {
67707
67699
  style: Style.buttonDefaultStyle
67708
67700
  },
67709
67701
  {
67710
- id: Ids$2.buttonCameraZoom,
67702
+ id: Ids$2.cursorZoom,
67711
67703
  enabled: () => isTrue(settings2.cursorZoom),
67712
67704
  tip: "Zoom",
67713
67705
  action: () => pointer2.onButton(PointerMode$1.ZOOM),
@@ -67720,12 +67712,12 @@ function controlBarPointer(viewer, camera2, settings2, section) {
67720
67712
  }
67721
67713
  function controlBarMeasure(measure$1, settings2) {
67722
67714
  return {
67723
- id: Ids$2.sectionActions,
67715
+ id: Ids$2.measureSpan,
67724
67716
  enable: () => true,
67725
67717
  style: Style.sectionDefaultStyle,
67726
67718
  buttons: [
67727
67719
  {
67728
- id: Ids$2.buttonMeasure,
67720
+ id: Ids$2.measureEnable,
67729
67721
  enabled: () => isTrue(settings2.measureEnable),
67730
67722
  isOn: () => measure$1.active,
67731
67723
  tip: "Measuring Mode",
@@ -67736,32 +67728,40 @@ function controlBarMeasure(measure$1, settings2) {
67736
67728
  ]
67737
67729
  };
67738
67730
  }
67739
- function controlBarSettingsUltra(side, settings$1) {
67731
+ function controlBarMiscUltra(side, settings$1) {
67740
67732
  return {
67741
- id: Ids$2.sectionSettings,
67742
- enable: () => isTrue(settings$1.ui.settings),
67733
+ id: Ids$2.miscSpan,
67734
+ enable: () => isTrue(settings$1.ui.miscSettings),
67743
67735
  style: Style.sectionDefaultStyle,
67744
67736
  buttons: [
67745
67737
  {
67746
- id: Ids$2.buttonSettings,
67747
- enabled: () => isTrue(settings$1.ui.settings),
67738
+ id: Ids$2.miscSettings,
67739
+ enabled: () => isTrue(settings$1.ui.miscSettings),
67748
67740
  tip: "Settings",
67749
67741
  action: () => side.toggleContent("settings"),
67750
67742
  icon: settings,
67751
67743
  style: Style.buttonDefaultStyle
67744
+ },
67745
+ {
67746
+ id: Ids$2.miscHelp,
67747
+ enabled: () => isTrue(settings$1.ui.miscHelp),
67748
+ tip: "Help",
67749
+ action: () => side.toggleContent("settings"),
67750
+ icon: settings,
67751
+ style: Style.buttonDefaultStyle
67752
67752
  }
67753
67753
  ]
67754
67754
  };
67755
67755
  }
67756
- function controlBarSettings(modal, side, settings$1) {
67756
+ function controlBarMisc(modal, side, settings$1) {
67757
67757
  const fullScreen = getFullScreenState();
67758
67758
  return {
67759
- id: Ids$2.sectionSettings,
67759
+ id: Ids$2.miscSpan,
67760
67760
  enable: () => anyUiSettingButton(settings$1),
67761
67761
  style: Style.sectionDefaultStyle,
67762
67762
  buttons: [
67763
67763
  {
67764
- id: Ids$2.buttonProjectInspector,
67764
+ id: Ids$2.miscInspector,
67765
67765
  enabled: () => isTrue(settings$1.ui.miscProjectInspector) && (isTrue(settings$1.ui.panelBimTree) || isTrue(settings$1.ui.panelBimInfo)),
67766
67766
  tip: "Project Inspector",
67767
67767
  action: () => side.toggleContent("bim"),
@@ -67769,7 +67769,7 @@ function controlBarSettings(modal, side, settings$1) {
67769
67769
  style: Style.buttonDefaultStyle
67770
67770
  },
67771
67771
  {
67772
- id: Ids$2.buttonSettings,
67772
+ id: Ids$2.miscSettings,
67773
67773
  enabled: () => isTrue(settings$1.ui.miscSettings),
67774
67774
  tip: "Settings",
67775
67775
  action: () => side.toggleContent("settings"),
@@ -67777,7 +67777,7 @@ function controlBarSettings(modal, side, settings$1) {
67777
67777
  style: Style.buttonDefaultStyle
67778
67778
  },
67779
67779
  {
67780
- id: Ids$2.buttonHelp,
67780
+ id: Ids$2.miscHelp,
67781
67781
  enabled: () => isTrue(settings$1.ui.miscHelp),
67782
67782
  tip: "Help",
67783
67783
  action: () => modal.help(true),
@@ -67785,7 +67785,7 @@ function controlBarSettings(modal, side, settings$1) {
67785
67785
  style: Style.buttonDefaultStyle
67786
67786
  },
67787
67787
  {
67788
- id: Ids$2.buttonMaximize,
67788
+ id: Ids$2.miscMaximize,
67789
67789
  enabled: () => isTrue(settings$1.ui.miscMaximise) && settings$1.capacity.canGoFullScreen,
67790
67790
  tip: fullScreen.get() ? "Minimize" : "Fullscreen",
67791
67791
  action: () => fullScreen.toggle(),
@@ -67797,12 +67797,12 @@ function controlBarSettings(modal, side, settings$1) {
67797
67797
  }
67798
67798
  function controlBarCamera(camera2, settings2) {
67799
67799
  return {
67800
- id: Ids$2.sectionCamera,
67800
+ id: Ids$2.cameraSpan,
67801
67801
  enable: () => true,
67802
67802
  style: Style.sectionDefaultStyle,
67803
67803
  buttons: [
67804
67804
  {
67805
- id: Ids$2.buttonCameraAuto,
67805
+ id: Ids$2.cameraAuto,
67806
67806
  enabled: () => isTrue(settings2.cameraAuto),
67807
67807
  tip: "Auto Camera",
67808
67808
  isOn: () => camera2.autoCamera.get(),
@@ -67811,7 +67811,7 @@ function controlBarCamera(camera2, settings2) {
67811
67811
  style: Style.buttonDefaultStyle
67812
67812
  },
67813
67813
  {
67814
- id: Ids$2.buttonCameraFrameSelection,
67814
+ id: Ids$2.cameraFrameSelection,
67815
67815
  enabled: () => isTrue(settings2.cameraFrameSelection),
67816
67816
  tip: "Frame Selection",
67817
67817
  action: () => camera2.frameSelection.call(),
@@ -67820,7 +67820,7 @@ function controlBarCamera(camera2, settings2) {
67820
67820
  style: Style.buttonDefaultStyle
67821
67821
  },
67822
67822
  {
67823
- id: Ids$2.buttonCameraFrameScene,
67823
+ id: Ids$2.cameraFrameScene,
67824
67824
  enabled: () => isTrue(settings2.cameraFrameScene),
67825
67825
  tip: "Frame All",
67826
67826
  action: () => camera2.frameScene.call(),
@@ -67835,12 +67835,12 @@ function controlBarVisibility(isolation, settings2) {
67835
67835
  const adapter = isolation.adapter.current;
67836
67836
  const someVisible = adapter.hasVisibleSelection() || !adapter.hasHiddenSelection();
67837
67837
  return {
67838
- id: Ids$2.sectionSelection,
67838
+ id: Ids$2.visibilitySpan,
67839
67839
  enable: () => true,
67840
67840
  style: `${Style.sectionDefaultStyle}`,
67841
67841
  buttons: [
67842
67842
  {
67843
- id: Ids$2.buttonClearSelection,
67843
+ id: Ids$2.visibilityClearSelection,
67844
67844
  enabled: () => isTrue(settings2.visibilityClearSelection),
67845
67845
  tip: "Clear Selection",
67846
67846
  action: () => adapter.clearSelection(),
@@ -67849,7 +67849,7 @@ function controlBarVisibility(isolation, settings2) {
67849
67849
  style: Style.buttonDisableDefaultStyle
67850
67850
  },
67851
67851
  {
67852
- id: Ids$2.buttonShowAll,
67852
+ id: Ids$2.visibilityShowAll,
67853
67853
  tip: "Show All",
67854
67854
  enabled: () => isTrue(settings2.visibilityShowAll),
67855
67855
  action: () => adapter.showAll(),
@@ -67858,7 +67858,7 @@ function controlBarVisibility(isolation, settings2) {
67858
67858
  style: Style.buttonDisableStyle
67859
67859
  },
67860
67860
  {
67861
- id: Ids$2.buttonHideSelection,
67861
+ id: Ids$2.visibilityHideSelection,
67862
67862
  enabled: () => someVisible && isTrue(settings2.visibilityToggle),
67863
67863
  tip: "Hide Selection",
67864
67864
  action: () => adapter.hideSelection(),
@@ -67867,7 +67867,7 @@ function controlBarVisibility(isolation, settings2) {
67867
67867
  style: Style.buttonDisableStyle
67868
67868
  },
67869
67869
  {
67870
- id: Ids$2.buttonShowSelection,
67870
+ id: Ids$2.visibilityShowSelection,
67871
67871
  enabled: () => !someVisible && isTrue(settings2.visibilityToggle),
67872
67872
  tip: "Show Selection",
67873
67873
  action: () => adapter.showSelection(),
@@ -67876,7 +67876,7 @@ function controlBarVisibility(isolation, settings2) {
67876
67876
  style: Style.buttonDisableStyle
67877
67877
  },
67878
67878
  {
67879
- id: Ids$2.buttonIsolateSelection,
67879
+ id: Ids$2.visibilityIsolateSelection,
67880
67880
  enabled: () => isTrue(settings2.visibilityIsolate),
67881
67881
  tip: "Isolate Selection",
67882
67882
  action: () => adapter.isolateSelection(),
@@ -67885,7 +67885,7 @@ function controlBarVisibility(isolation, settings2) {
67885
67885
  style: Style.buttonDisableStyle
67886
67886
  },
67887
67887
  {
67888
- id: Ids$2.buttonAutoIsolate,
67888
+ id: Ids$2.visibilityAutoIsolate,
67889
67889
  enabled: () => isTrue(settings2.visibilityAutoIsolate),
67890
67890
  tip: "Auto Isolate",
67891
67891
  action: () => isolation.autoIsolate.set(!isolation.autoIsolate.get()),
@@ -67893,7 +67893,7 @@ function controlBarVisibility(isolation, settings2) {
67893
67893
  icon: autoIsolate
67894
67894
  },
67895
67895
  {
67896
- id: Ids$2.buttonIsolationSettings,
67896
+ id: Ids$2.visibilitySettings,
67897
67897
  enabled: () => isTrue(settings2.visibilitySettings),
67898
67898
  tip: "Isolation Settings",
67899
67899
  action: () => isolation.showPanel.set(!isolation.showPanel.get()),
@@ -67911,7 +67911,7 @@ function useControlBar(viewer, camera2, modal, side, cursor, settings2, section,
67911
67911
  controlBarVisibility(isolationRef, settings2.ui),
67912
67912
  controlBarMeasure(measure2, settings2.ui),
67913
67913
  controlBarSectionBox(section, viewer.selection.any(), settings2.ui),
67914
- controlBarSettings(modal, side, settings2)
67914
+ controlBarMisc(modal, side, settings2)
67915
67915
  ];
67916
67916
  controlBarSections = (customization == null ? void 0 : customization(controlBarSections)) ?? controlBarSections;
67917
67917
  return controlBarSections;
@@ -75581,7 +75581,7 @@ function useSectionBox(adapter) {
75581
75581
  adapter.setVisible(false);
75582
75582
  adapter.setClip(false);
75583
75583
  return adapter.onSelectionChanged.sub(() => {
75584
- if (auto.get() && enable.get()) sectionSelection2.call();
75584
+ if (auto.get() && enable.get()) sectionSelection.call();
75585
75585
  });
75586
75586
  }, []);
75587
75587
  enable.useOnChange((v) => {
@@ -75589,7 +75589,7 @@ function useSectionBox(adapter) {
75589
75589
  visible2.set(v);
75590
75590
  showOffsetPanel.set(false);
75591
75591
  if (v && auto.get()) {
75592
- sectionSelection2.call();
75592
+ sectionSelection.call();
75593
75593
  } else {
75594
75594
  sectionScene.call();
75595
75595
  }
@@ -75600,7 +75600,7 @@ function useSectionBox(adapter) {
75600
75600
  sideOffset.useOnChange((v) => sectionBox2.call(boxRef.current));
75601
75601
  bottomOffset.useOnChange((v) => sectionBox2.call(boxRef.current));
75602
75602
  auto.useOnChange((v) => {
75603
- if (v) sectionSelection2.call();
75603
+ if (v) sectionSelection.call();
75604
75604
  });
75605
75605
  visible2.useOnChange((v) => adapter.setVisible(v));
75606
75606
  const sectionBox2 = useArgActionRef((box) => {
@@ -75610,7 +75610,7 @@ function useSectionBox(adapter) {
75610
75610
  const newBox = addBox(box, offsetsToBox3_(topOffset.get(), sideOffset.get(), bottomOffset.get()));
75611
75611
  adapter.setBox(newBox);
75612
75612
  });
75613
- const sectionSelection2 = useFuncRef(async () => {
75613
+ const sectionSelection = useFuncRef(async () => {
75614
75614
  const id2 = requestId.current;
75615
75615
  const box = await getSelectionBox.call() ?? await getSceneBox.call();
75616
75616
  if (requestId.current !== id2) return;
@@ -75630,7 +75630,7 @@ function useSectionBox(adapter) {
75630
75630
  topOffset,
75631
75631
  sideOffset,
75632
75632
  bottomOffset,
75633
- sectionSelection: sectionSelection2,
75633
+ sectionSelection,
75634
75634
  sectionScene,
75635
75635
  sectionBox: sectionBox2,
75636
75636
  getBox: () => adapter.getBox(),
@@ -76164,11 +76164,11 @@ __publicField(SettingsPanelKeys, "ControlBarVisibilityIsolate", "controlBar.visi
76164
76164
  __publicField(SettingsPanelKeys, "ControlBarVisibilityAutoIsolate", "controlBar.visibility.autoIsolate");
76165
76165
  __publicField(SettingsPanelKeys, "ControlBarVisibilitySettings", "controlBar.visibility.settings");
76166
76166
  // --- Control Bar - Settings ---
76167
- __publicField(SettingsPanelKeys, "ControlBarSettingsSubtitle", "controlBarSettings");
76168
- __publicField(SettingsPanelKeys, "ControlBarSettingsShowProjectInspectorButtonToggle", "projectInspector");
76169
- __publicField(SettingsPanelKeys, "ControlBarSettingsShowSettingsButtonToggle", "settingsButton");
76170
- __publicField(SettingsPanelKeys, "ControlBarSettingsShowHelpButtonToggle", "help");
76171
- __publicField(SettingsPanelKeys, "ControlBarSettingsShowMaximiseButtonToggle", "maximise");
76167
+ __publicField(SettingsPanelKeys, "ControlBarMiscSubtitle", "controlBarSettings");
76168
+ __publicField(SettingsPanelKeys, "ControlBarMiscShowProjectInspectorButtonToggle", "projectInspector");
76169
+ __publicField(SettingsPanelKeys, "ControlBarMiscShowSettingsButtonToggle", "settingsButton");
76170
+ __publicField(SettingsPanelKeys, "ControlBarMiscShowHelpButtonToggle", "help");
76171
+ __publicField(SettingsPanelKeys, "ControlBarMiscShowMaximiseButtonToggle", "maximise");
76172
76172
  function getControlBarCursorSettings() {
76173
76173
  return [
76174
76174
  {
@@ -76342,33 +76342,33 @@ function getControlBarVariousSettings() {
76342
76342
  return [
76343
76343
  {
76344
76344
  type: "subtitle",
76345
- key: SettingsPanelKeys.ControlBarSettingsSubtitle,
76345
+ key: SettingsPanelKeys.ControlBarMiscSubtitle,
76346
76346
  title: "Control Bar - Settings"
76347
76347
  },
76348
76348
  {
76349
76349
  type: "toggle",
76350
- key: SettingsPanelKeys.ControlBarSettingsShowProjectInspectorButtonToggle,
76350
+ key: SettingsPanelKeys.ControlBarMiscShowProjectInspectorButtonToggle,
76351
76351
  label: "Project Inspector",
76352
76352
  getter: (s) => s.ui.miscProjectInspector,
76353
76353
  setter: (s, v) => s.ui.miscProjectInspector = v
76354
76354
  },
76355
76355
  {
76356
76356
  type: "toggle",
76357
- key: SettingsPanelKeys.ControlBarSettingsShowSettingsButtonToggle,
76357
+ key: SettingsPanelKeys.ControlBarMiscShowSettingsButtonToggle,
76358
76358
  label: "Settings",
76359
76359
  getter: (s) => s.ui.miscSettings,
76360
76360
  setter: (s, v) => s.ui.miscSettings = v
76361
76361
  },
76362
76362
  {
76363
76363
  type: "toggle",
76364
- key: SettingsPanelKeys.ControlBarSettingsShowHelpButtonToggle,
76364
+ key: SettingsPanelKeys.ControlBarMiscShowHelpButtonToggle,
76365
76365
  label: "Help",
76366
76366
  getter: (s) => s.ui.miscHelp,
76367
76367
  setter: (s, v) => s.ui.miscHelp = v
76368
76368
  },
76369
76369
  {
76370
76370
  type: "toggle",
76371
- key: SettingsPanelKeys.ControlBarSettingsShowMaximiseButtonToggle,
76371
+ key: SettingsPanelKeys.ControlBarMiscShowMaximiseButtonToggle,
76372
76372
  label: "Maximise",
76373
76373
  getter: (s) => s.ui.miscMaximise,
76374
76374
  setter: (s, v) => s.ui.miscMaximise = v
@@ -76777,7 +76777,7 @@ function useUltraControlBar(viewer, section, isolation, camera2, settings2, side
76777
76777
  controlBarCamera(camera2, settings2.ui),
76778
76778
  controlBarVisibility(isolation, settings2.ui),
76779
76779
  controlBarSectionBox(section, viewer.selection.any(), settings2.ui),
76780
- controlBarSettingsUltra(side, settings2)
76780
+ controlBarMiscUltra(side, settings2)
76781
76781
  ];
76782
76782
  bar = (customization == null ? void 0 : customization(bar)) ?? bar;
76783
76783
  return bar;
@@ -76929,6 +76929,9 @@ function allButSelection(viewer, vim) {
76929
76929
  function getDefaultUltraSettings() {
76930
76930
  return {
76931
76931
  ui: {
76932
+ // panels
76933
+ panelLogo: true,
76934
+ panelControlBar: true,
76932
76935
  // Control bar - cursors
76933
76936
  cursorOrbit: true,
76934
76937
  cursorLookAround: true,
@@ -76952,7 +76955,9 @@ function getDefaultUltraSettings() {
76952
76955
  visibilityIsolate: true,
76953
76956
  visibilityAutoIsolate: true,
76954
76957
  visibilitySettings: true,
76955
- settings: true
76958
+ // Control bar - misc
76959
+ miscSettings: true,
76960
+ miscHelp: true
76956
76961
  }
76957
76962
  };
76958
76963
  }
@@ -76960,15 +76965,22 @@ function getControlBarUltraSettings() {
76960
76965
  return [
76961
76966
  {
76962
76967
  type: "subtitle",
76963
- key: SettingsPanelKeys.ControlBarSettingsSubtitle,
76968
+ key: SettingsPanelKeys.ControlBarMiscSubtitle,
76964
76969
  title: "Control Bar - Settings"
76965
76970
  },
76966
76971
  {
76967
76972
  type: "toggle",
76968
- key: SettingsPanelKeys.ControlBarSettingsShowSettingsButtonToggle,
76973
+ key: SettingsPanelKeys.ControlBarMiscShowSettingsButtonToggle,
76969
76974
  label: "Settings",
76970
- getter: (s) => s.ui.settings,
76971
- setter: (s, v) => s.ui.settings = v
76975
+ getter: (s) => s.ui.miscSettings,
76976
+ setter: (s, v) => s.ui.miscSettings = v
76977
+ },
76978
+ {
76979
+ type: "toggle",
76980
+ key: SettingsPanelKeys.ControlBarMiscShowHelpButtonToggle,
76981
+ label: "Help",
76982
+ getter: (s) => s.ui.miscHelp,
76983
+ setter: (s, v) => s.ui.miscHelp = v
76972
76984
  }
76973
76985
  ];
76974
76986
  }
@@ -77089,13 +77101,13 @@ function Viewer3(props) {
77089
77101
  ),
77090
77102
  /* @__PURE__ */ jsxRuntimeExports.jsx(RestOfScreen, { side, content: () => {
77091
77103
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
77092
- whenTrue(true, /* @__PURE__ */ jsxRuntimeExports.jsx(LogoMemo, {})),
77104
+ whenTrue(settings2.value.ui.panelLogo, /* @__PURE__ */ jsxRuntimeExports.jsx(LogoMemo, {})),
77093
77105
  /* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { canvas: props.core.viewport.canvas }),
77094
77106
  /* @__PURE__ */ jsxRuntimeExports.jsx(
77095
77107
  ControlBar,
77096
77108
  {
77097
77109
  content: controlBarCustom(controlBar),
77098
- show: true
77110
+ show: isTrue(settings2.value.ui.panelControlBar)
77099
77111
  }
77100
77112
  ),
77101
77113
  /* @__PURE__ */ jsxRuntimeExports.jsx(SectionBoxPanel$1, { ref: sectionBoxPanelHandle, state: sectionBoxRef }),