vim-web 0.5.0-dev.20 → 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/types/react-viewers/controlbar/controlBarIds.d.ts +32 -36
- package/dist/types/react-viewers/settings/settingsKeys.d.ts +5 -5
- package/dist/types/react-viewers/state/controlBarState.d.ts +1 -1
- package/dist/types/react-viewers/ultra/settings.d.ts +4 -1
- package/dist/types/react-viewers/webgl/settings.d.ts +8 -8
- package/dist/vim-web.iife.js +187 -177
- package/dist/vim-web.iife.js.map +1 -1
- package/dist/vim-web.js +187 -177
- package/dist/vim-web.js.map +1 -1
- package/package.json +1 -1
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
|
|
61563
|
-
const
|
|
61564
|
-
const
|
|
61565
|
-
const
|
|
61566
|
-
const
|
|
61567
|
-
const
|
|
61568
|
-
const
|
|
61569
|
-
const
|
|
61570
|
-
const
|
|
61571
|
-
const
|
|
61572
|
-
const
|
|
61573
|
-
const
|
|
61574
|
-
const
|
|
61575
|
-
const
|
|
61576
|
-
const
|
|
61577
|
-
const
|
|
61578
|
-
const
|
|
61579
|
-
const
|
|
61580
|
-
const
|
|
61581
|
-
const
|
|
61582
|
-
const
|
|
61583
|
-
const
|
|
61584
|
-
const
|
|
61585
|
-
const
|
|
61586
|
-
const
|
|
61587
|
-
const
|
|
61588
|
-
const
|
|
61589
|
-
const
|
|
61590
|
-
const
|
|
61591
|
-
const
|
|
61592
|
-
const
|
|
61593
|
-
const
|
|
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
|
-
|
|
61601
|
-
|
|
61602
|
-
|
|
61603
|
-
|
|
61604
|
-
|
|
61605
|
-
|
|
61606
|
-
|
|
61607
|
-
|
|
61608
|
-
|
|
61609
|
-
|
|
61610
|
-
|
|
61611
|
-
|
|
61612
|
-
|
|
61613
|
-
|
|
61614
|
-
|
|
61615
|
-
|
|
61616
|
-
|
|
61617
|
-
|
|
61618
|
-
|
|
61619
|
-
|
|
61620
|
-
|
|
61621
|
-
|
|
61622
|
-
|
|
61623
|
-
|
|
61624
|
-
|
|
61625
|
-
|
|
61626
|
-
|
|
61627
|
-
|
|
61628
|
-
|
|
61629
|
-
|
|
61630
|
-
|
|
61631
|
-
|
|
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";
|
|
@@ -67314,7 +67306,7 @@ function whenSomeTrue(value, element) {
|
|
|
67314
67306
|
return value.some(isTrue) ? element : null;
|
|
67315
67307
|
}
|
|
67316
67308
|
function anyUiAxesButton(settings2) {
|
|
67317
|
-
return settings2.ui.
|
|
67309
|
+
return settings2.ui.axesOrthographic || settings2.ui.axesHome;
|
|
67318
67310
|
}
|
|
67319
67311
|
const AxesPanelMemo = React__default.memo(AxesPanel);
|
|
67320
67312
|
function AxesPanel(props) {
|
|
@@ -67374,15 +67366,15 @@ function AxesPanel(props) {
|
|
|
67374
67366
|
children: ortho ? /* @__PURE__ */ jsxRuntimeExports.jsx(orthographic, { height: 20, width: 20, fill: "currentColor" }) : /* @__PURE__ */ jsxRuntimeExports.jsx(perspective, { height: 20, width: 20, fill: "currentColor" })
|
|
67375
67367
|
}
|
|
67376
67368
|
);
|
|
67377
|
-
const hidden2 = isTrue(props.settings.value.ui.
|
|
67369
|
+
const hidden2 = isTrue(props.settings.value.ui.panelAxes) ? "" : " vc-hidden";
|
|
67378
67370
|
const empty2 = !anyUiAxesButton(props.settings.value);
|
|
67379
67371
|
const createBar = () => {
|
|
67380
67372
|
if (empty2) return null;
|
|
67381
67373
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "vim-axes-panel-bar vc-absolute vc-top-[75%] vc-bottom-0 vc-right-0 vc-left-0", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "vim-axes-panel-buttons vc-absolute vc-inset-0 vc-pointer-events-auto vc-order-2 vc-flex vc-items-center vc-justify-evenly vc-bg-white", children: [
|
|
67382
67374
|
whenAllTrue([
|
|
67383
|
-
props.settings.value.ui.
|
|
67375
|
+
props.settings.value.ui.axesOrthographic
|
|
67384
67376
|
], btnOrtho),
|
|
67385
|
-
whenTrue(props.settings.value.ui.
|
|
67377
|
+
whenTrue(props.settings.value.ui.axesHome, btnHome)
|
|
67386
67378
|
] }) });
|
|
67387
67379
|
};
|
|
67388
67380
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
67670
|
+
id: Ids$2.cursorSpan,
|
|
67679
67671
|
enable: () => anyUiCursorButton(settings2),
|
|
67680
67672
|
style: Style.sectionDefaultStyle,
|
|
67681
67673
|
buttons: [
|
|
67682
67674
|
{
|
|
67683
|
-
id: Ids$2.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
67715
|
+
id: Ids$2.measureSpan,
|
|
67724
67716
|
enable: () => true,
|
|
67725
67717
|
style: Style.sectionDefaultStyle,
|
|
67726
67718
|
buttons: [
|
|
67727
67719
|
{
|
|
67728
|
-
id: Ids$2.
|
|
67720
|
+
id: Ids$2.measureEnable,
|
|
67729
67721
|
enabled: () => isTrue(settings2.measureEnable),
|
|
67730
67722
|
isOn: () => measure$1.active,
|
|
67731
67723
|
tip: "Measuring Mode",
|
|
@@ -67736,40 +67728,48 @@ function controlBarMeasure(measure$1, settings2) {
|
|
|
67736
67728
|
]
|
|
67737
67729
|
};
|
|
67738
67730
|
}
|
|
67739
|
-
function
|
|
67731
|
+
function controlBarMiscUltra(side, settings$1) {
|
|
67740
67732
|
return {
|
|
67741
|
-
id: Ids$2.
|
|
67742
|
-
enable: () => isTrue(settings$1.ui.
|
|
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.
|
|
67747
|
-
enabled: () => isTrue(settings$1.ui.
|
|
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
|
|
67756
|
+
function controlBarMisc(modal, side, settings$1) {
|
|
67757
67757
|
const fullScreen = getFullScreenState();
|
|
67758
67758
|
return {
|
|
67759
|
-
id: Ids$2.
|
|
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.
|
|
67765
|
-
enabled: () => isTrue(settings$1.ui.miscProjectInspector) && (isTrue(settings$1.ui.
|
|
67764
|
+
id: Ids$2.miscInspector,
|
|
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"),
|
|
67768
67768
|
icon: treeView,
|
|
67769
67769
|
style: Style.buttonDefaultStyle
|
|
67770
67770
|
},
|
|
67771
67771
|
{
|
|
67772
|
-
id: Ids$2.
|
|
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.
|
|
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.
|
|
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.
|
|
67800
|
+
id: Ids$2.cameraSpan,
|
|
67801
67801
|
enable: () => true,
|
|
67802
67802
|
style: Style.sectionDefaultStyle,
|
|
67803
67803
|
buttons: [
|
|
67804
67804
|
{
|
|
67805
|
-
id: Ids$2.
|
|
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.
|
|
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.
|
|
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.
|
|
67838
|
+
id: Ids$2.visibilitySpan,
|
|
67839
67839
|
enable: () => true,
|
|
67840
67840
|
style: `${Style.sectionDefaultStyle}`,
|
|
67841
67841
|
buttons: [
|
|
67842
67842
|
{
|
|
67843
|
-
id: Ids$2.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
67914
|
+
controlBarMisc(modal, side, settings2)
|
|
67915
67915
|
];
|
|
67916
67916
|
controlBarSections = (customization == null ? void 0 : customization(controlBarSections)) ?? controlBarSections;
|
|
67917
67917
|
return controlBarSections;
|
|
@@ -73026,8 +73026,8 @@ function range(size, startAt = 0) {
|
|
|
73026
73026
|
function OptionalBimPanel(props) {
|
|
73027
73027
|
return whenSomeTrue(
|
|
73028
73028
|
[
|
|
73029
|
-
props.settings.ui.
|
|
73030
|
-
props.settings.ui.
|
|
73029
|
+
props.settings.ui.panelBimTree,
|
|
73030
|
+
props.settings.ui.panelBimInfo
|
|
73031
73031
|
],
|
|
73032
73032
|
React__default.createElement(BimPanel, props)
|
|
73033
73033
|
);
|
|
@@ -73040,11 +73040,11 @@ function BimPanel(props) {
|
|
|
73040
73040
|
}, [props.viewerState.vim.get(), props.viewerState.elements.get()]);
|
|
73041
73041
|
const selection = props.viewerState.selection.get();
|
|
73042
73042
|
const last = selection[selection.length - 1];
|
|
73043
|
-
const fullTree = isFalse(props.settings.ui.
|
|
73044
|
-
const fullInfo = isFalse(props.settings.ui.
|
|
73043
|
+
const fullTree = isFalse(props.settings.ui.panelBimInfo);
|
|
73044
|
+
const fullInfo = isFalse(props.settings.ui.panelBimTree);
|
|
73045
73045
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `vim-bim-panel vc-inset-0 vc-absolute vc-h-full vc-w-full ${fullTree ? "full-tree" : ""} ${props.visible ? "" : "vc-hidden"}`, children: [
|
|
73046
73046
|
whenTrue(
|
|
73047
|
-
props.settings.ui.
|
|
73047
|
+
props.settings.ui.panelBimTree,
|
|
73048
73048
|
/* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: `vim-bim-upper vc-flex vc-flex-col vc-absolute vc-w-full ${fullTree ? "vc-h-full" : "vc-h-[49%]"} `, children: [
|
|
73049
73049
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73050
73050
|
"h2",
|
|
@@ -73078,21 +73078,21 @@ function BimPanel(props) {
|
|
|
73078
73078
|
// Divider if needed.
|
|
73079
73079
|
whenAllTrue(
|
|
73080
73080
|
[
|
|
73081
|
-
props.settings.ui.
|
|
73082
|
-
props.settings.ui.
|
|
73081
|
+
props.settings.ui.panelBimTree,
|
|
73082
|
+
props.settings.ui.panelBimInfo,
|
|
73083
73083
|
((_b2 = props.viewerState.elements.get()) == null ? void 0 : _b2.length) > 0
|
|
73084
73084
|
],
|
|
73085
73085
|
divider$1()
|
|
73086
73086
|
),
|
|
73087
73087
|
whenTrue(
|
|
73088
|
-
props.settings.ui.
|
|
73088
|
+
props.settings.ui.panelBimInfo,
|
|
73089
73089
|
/* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `vim-bim-lower-container vc-absolute ${fullInfo ? "vc-top-0" : "vc-top-[50%]"} vc-bottom-0 vc-bottom vc-left-0 vc-right-0`, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
73090
73090
|
BimInfoPanel,
|
|
73091
73091
|
{
|
|
73092
73092
|
object: last,
|
|
73093
73093
|
vim: props.viewerState.vim.get(),
|
|
73094
73094
|
elements: props.viewerState.elements.get(),
|
|
73095
|
-
full: isFalse(props.settings.ui.
|
|
73095
|
+
full: isFalse(props.settings.ui.panelBimTree),
|
|
73096
73096
|
bimInfoRef: props.bimInfoRef
|
|
73097
73097
|
}
|
|
73098
73098
|
) })
|
|
@@ -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())
|
|
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
|
-
|
|
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)
|
|
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
|
|
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
|
|
75633
|
+
sectionSelection,
|
|
75634
75634
|
sectionScene,
|
|
75635
75635
|
sectionBox: sectionBox2,
|
|
75636
75636
|
getBox: () => adapter.getBox(),
|
|
@@ -75951,16 +75951,14 @@ function getDefaultSettings() {
|
|
|
75951
75951
|
canReadLocalStorage: true
|
|
75952
75952
|
},
|
|
75953
75953
|
ui: {
|
|
75954
|
-
|
|
75955
|
-
|
|
75956
|
-
|
|
75957
|
-
|
|
75958
|
-
|
|
75959
|
-
|
|
75960
|
-
|
|
75961
|
-
|
|
75962
|
-
// Control bar
|
|
75963
|
-
controlBar: true,
|
|
75954
|
+
panelLogo: true,
|
|
75955
|
+
panelPerformance: false,
|
|
75956
|
+
panelBimTree: true,
|
|
75957
|
+
panelBimInfo: true,
|
|
75958
|
+
panelAxes: true,
|
|
75959
|
+
panelControlBar: true,
|
|
75960
|
+
axesOrthographic: true,
|
|
75961
|
+
axesHome: true,
|
|
75964
75962
|
// Control bar - cursors
|
|
75965
75963
|
cursorOrbit: true,
|
|
75966
75964
|
cursorLookAround: true,
|
|
@@ -76166,11 +76164,11 @@ __publicField(SettingsPanelKeys, "ControlBarVisibilityIsolate", "controlBar.visi
|
|
|
76166
76164
|
__publicField(SettingsPanelKeys, "ControlBarVisibilityAutoIsolate", "controlBar.visibility.autoIsolate");
|
|
76167
76165
|
__publicField(SettingsPanelKeys, "ControlBarVisibilitySettings", "controlBar.visibility.settings");
|
|
76168
76166
|
// --- Control Bar - Settings ---
|
|
76169
|
-
__publicField(SettingsPanelKeys, "
|
|
76170
|
-
__publicField(SettingsPanelKeys, "
|
|
76171
|
-
__publicField(SettingsPanelKeys, "
|
|
76172
|
-
__publicField(SettingsPanelKeys, "
|
|
76173
|
-
__publicField(SettingsPanelKeys, "
|
|
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");
|
|
76174
76172
|
function getControlBarCursorSettings() {
|
|
76175
76173
|
return [
|
|
76176
76174
|
{
|
|
@@ -76344,33 +76342,33 @@ function getControlBarVariousSettings() {
|
|
|
76344
76342
|
return [
|
|
76345
76343
|
{
|
|
76346
76344
|
type: "subtitle",
|
|
76347
|
-
key: SettingsPanelKeys.
|
|
76345
|
+
key: SettingsPanelKeys.ControlBarMiscSubtitle,
|
|
76348
76346
|
title: "Control Bar - Settings"
|
|
76349
76347
|
},
|
|
76350
76348
|
{
|
|
76351
76349
|
type: "toggle",
|
|
76352
|
-
key: SettingsPanelKeys.
|
|
76350
|
+
key: SettingsPanelKeys.ControlBarMiscShowProjectInspectorButtonToggle,
|
|
76353
76351
|
label: "Project Inspector",
|
|
76354
76352
|
getter: (s) => s.ui.miscProjectInspector,
|
|
76355
76353
|
setter: (s, v) => s.ui.miscProjectInspector = v
|
|
76356
76354
|
},
|
|
76357
76355
|
{
|
|
76358
76356
|
type: "toggle",
|
|
76359
|
-
key: SettingsPanelKeys.
|
|
76357
|
+
key: SettingsPanelKeys.ControlBarMiscShowSettingsButtonToggle,
|
|
76360
76358
|
label: "Settings",
|
|
76361
76359
|
getter: (s) => s.ui.miscSettings,
|
|
76362
76360
|
setter: (s, v) => s.ui.miscSettings = v
|
|
76363
76361
|
},
|
|
76364
76362
|
{
|
|
76365
76363
|
type: "toggle",
|
|
76366
|
-
key: SettingsPanelKeys.
|
|
76364
|
+
key: SettingsPanelKeys.ControlBarMiscShowHelpButtonToggle,
|
|
76367
76365
|
label: "Help",
|
|
76368
76366
|
getter: (s) => s.ui.miscHelp,
|
|
76369
76367
|
setter: (s, v) => s.ui.miscHelp = v
|
|
76370
76368
|
},
|
|
76371
76369
|
{
|
|
76372
76370
|
type: "toggle",
|
|
76373
|
-
key: SettingsPanelKeys.
|
|
76371
|
+
key: SettingsPanelKeys.ControlBarMiscShowMaximiseButtonToggle,
|
|
76374
76372
|
label: "Maximise",
|
|
76375
76373
|
getter: (s) => s.ui.miscMaximise,
|
|
76376
76374
|
setter: (s, v) => s.ui.miscMaximise = v
|
|
@@ -76388,43 +76386,43 @@ function getPanelsVisibilitySettings() {
|
|
|
76388
76386
|
type: "toggle",
|
|
76389
76387
|
key: SettingsPanelKeys.PanelsShowLogoToggle,
|
|
76390
76388
|
label: "Logo",
|
|
76391
|
-
getter: (s) => s.ui.
|
|
76392
|
-
setter: (s, v) => s.ui.
|
|
76389
|
+
getter: (s) => s.ui.panelLogo,
|
|
76390
|
+
setter: (s, v) => s.ui.panelLogo = v
|
|
76393
76391
|
},
|
|
76394
76392
|
{
|
|
76395
76393
|
type: "toggle",
|
|
76396
76394
|
key: SettingsPanelKeys.PanelsShowBimTreeToggle,
|
|
76397
76395
|
label: "Bim Tree",
|
|
76398
|
-
getter: (s) => s.ui.
|
|
76399
|
-
setter: (s, v) => s.ui.
|
|
76396
|
+
getter: (s) => s.ui.panelBimTree,
|
|
76397
|
+
setter: (s, v) => s.ui.panelBimTree = v
|
|
76400
76398
|
},
|
|
76401
76399
|
{
|
|
76402
76400
|
type: "toggle",
|
|
76403
76401
|
key: SettingsPanelKeys.PanelsShowBimInfoToggle,
|
|
76404
76402
|
label: "Bim Info",
|
|
76405
|
-
getter: (s) => s.ui.
|
|
76406
|
-
setter: (s, v) => s.ui.
|
|
76403
|
+
getter: (s) => s.ui.panelBimInfo,
|
|
76404
|
+
setter: (s, v) => s.ui.panelBimInfo = v
|
|
76407
76405
|
},
|
|
76408
76406
|
{
|
|
76409
76407
|
type: "toggle",
|
|
76410
76408
|
key: SettingsPanelKeys.PanelsShowAxesPanelToggle,
|
|
76411
76409
|
label: "Axes",
|
|
76412
|
-
getter: (s) => s.ui.
|
|
76413
|
-
setter: (s, v) => s.ui.
|
|
76410
|
+
getter: (s) => s.ui.panelAxes,
|
|
76411
|
+
setter: (s, v) => s.ui.panelAxes = v
|
|
76414
76412
|
},
|
|
76415
76413
|
{
|
|
76416
76414
|
type: "toggle",
|
|
76417
76415
|
key: SettingsPanelKeys.PanelsShowPerformancePanelToggle,
|
|
76418
76416
|
label: "Performance",
|
|
76419
|
-
getter: (s) => s.ui.
|
|
76420
|
-
setter: (s, v) => s.ui.
|
|
76417
|
+
getter: (s) => s.ui.panelPerformance,
|
|
76418
|
+
setter: (s, v) => s.ui.panelPerformance = v
|
|
76421
76419
|
},
|
|
76422
76420
|
{
|
|
76423
76421
|
type: "toggle",
|
|
76424
76422
|
key: SettingsPanelKeys.ControlBarShowControlBarToggle,
|
|
76425
76423
|
label: "Control Bar",
|
|
76426
|
-
getter: (s) => s.ui.
|
|
76427
|
-
setter: (s, v) => s.ui.
|
|
76424
|
+
getter: (s) => s.ui.panelControlBar,
|
|
76425
|
+
setter: (s, v) => s.ui.panelControlBar = v
|
|
76428
76426
|
}
|
|
76429
76427
|
];
|
|
76430
76428
|
}
|
|
@@ -76459,15 +76457,15 @@ function getAxesPanelSettings() {
|
|
|
76459
76457
|
type: "toggle",
|
|
76460
76458
|
key: SettingsPanelKeys.AxesShowOrthographicButtonToggle,
|
|
76461
76459
|
label: "Orthographic Camera",
|
|
76462
|
-
getter: (s) => s.ui.
|
|
76463
|
-
setter: (s, v) => s.ui.
|
|
76460
|
+
getter: (s) => s.ui.axesOrthographic,
|
|
76461
|
+
setter: (s, v) => s.ui.axesOrthographic = v
|
|
76464
76462
|
},
|
|
76465
76463
|
{
|
|
76466
76464
|
type: "toggle",
|
|
76467
76465
|
key: SettingsPanelKeys.AxesShowResetCameraButtonToggle,
|
|
76468
76466
|
label: "Reset Camera",
|
|
76469
|
-
getter: (s) => s.ui.
|
|
76470
|
-
setter: (s, v) => s.ui.
|
|
76467
|
+
getter: (s) => s.ui.axesHome,
|
|
76468
|
+
setter: (s, v) => s.ui.axesHome = v
|
|
76471
76469
|
}
|
|
76472
76470
|
];
|
|
76473
76471
|
}
|
|
@@ -76503,7 +76501,7 @@ function getWebglSettingsContent(viewer) {
|
|
|
76503
76501
|
function applyWebglSettings(settings2) {
|
|
76504
76502
|
const performance2 = document.getElementsByClassName("vim-performance-div")[0];
|
|
76505
76503
|
if (performance2) {
|
|
76506
|
-
if (isTrue(settings2.ui.
|
|
76504
|
+
if (isTrue(settings2.ui.panelPerformance)) {
|
|
76507
76505
|
performance2.classList.remove("vc-hidden");
|
|
76508
76506
|
} else {
|
|
76509
76507
|
performance2.classList.add("vc-hidden");
|
|
@@ -76550,7 +76548,7 @@ function Viewer$1(props) {
|
|
|
76550
76548
|
const loader = useRef(new ComponentLoader(props.viewer, modal, settings2.value));
|
|
76551
76549
|
useViewerInput(props.viewer.inputs, camera2);
|
|
76552
76550
|
const side = useSideState(
|
|
76553
|
-
isTrue(settings2.value.ui.
|
|
76551
|
+
isTrue(settings2.value.ui.panelBimTree) || isTrue(settings2.value.ui.panelBimInfo),
|
|
76554
76552
|
Math.min(props.container.root.clientWidth * 0.25, 340)
|
|
76555
76553
|
);
|
|
76556
76554
|
const [contextMenu2, setcontextMenu] = useState();
|
|
@@ -76659,12 +76657,12 @@ function Viewer$1(props) {
|
|
|
76659
76657
|
/* @__PURE__ */ jsxRuntimeExports.jsx(RestOfScreen, { side, content: () => {
|
|
76660
76658
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
76661
76659
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { canvas: props.viewer.viewport.canvas }),
|
|
76662
|
-
whenTrue(settings2.value.ui.
|
|
76660
|
+
whenTrue(settings2.value.ui.panelLogo, /* @__PURE__ */ jsxRuntimeExports.jsx(LogoMemo, {})),
|
|
76663
76661
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
76664
76662
|
ControlBar,
|
|
76665
76663
|
{
|
|
76666
76664
|
content: controlBar,
|
|
76667
|
-
show: isTrue(settings2.value.ui.
|
|
76665
|
+
show: isTrue(settings2.value.ui.panelControlBar)
|
|
76668
76666
|
}
|
|
76669
76667
|
),
|
|
76670
76668
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionBoxPanel$1, { ref: sectionBoxPanelHandle, state: sectionBoxRef }),
|
|
@@ -76779,7 +76777,7 @@ function useUltraControlBar(viewer, section, isolation, camera2, settings2, side
|
|
|
76779
76777
|
controlBarCamera(camera2, settings2.ui),
|
|
76780
76778
|
controlBarVisibility(isolation, settings2.ui),
|
|
76781
76779
|
controlBarSectionBox(section, viewer.selection.any(), settings2.ui),
|
|
76782
|
-
|
|
76780
|
+
controlBarMiscUltra(side, settings2)
|
|
76783
76781
|
];
|
|
76784
76782
|
bar = (customization == null ? void 0 : customization(bar)) ?? bar;
|
|
76785
76783
|
return bar;
|
|
@@ -76931,6 +76929,9 @@ function allButSelection(viewer, vim) {
|
|
|
76931
76929
|
function getDefaultUltraSettings() {
|
|
76932
76930
|
return {
|
|
76933
76931
|
ui: {
|
|
76932
|
+
// panels
|
|
76933
|
+
panelLogo: true,
|
|
76934
|
+
panelControlBar: true,
|
|
76934
76935
|
// Control bar - cursors
|
|
76935
76936
|
cursorOrbit: true,
|
|
76936
76937
|
cursorLookAround: true,
|
|
@@ -76954,7 +76955,9 @@ function getDefaultUltraSettings() {
|
|
|
76954
76955
|
visibilityIsolate: true,
|
|
76955
76956
|
visibilityAutoIsolate: true,
|
|
76956
76957
|
visibilitySettings: true,
|
|
76957
|
-
|
|
76958
|
+
// Control bar - misc
|
|
76959
|
+
miscSettings: true,
|
|
76960
|
+
miscHelp: true
|
|
76958
76961
|
}
|
|
76959
76962
|
};
|
|
76960
76963
|
}
|
|
@@ -76962,15 +76965,22 @@ function getControlBarUltraSettings() {
|
|
|
76962
76965
|
return [
|
|
76963
76966
|
{
|
|
76964
76967
|
type: "subtitle",
|
|
76965
|
-
key: SettingsPanelKeys.
|
|
76968
|
+
key: SettingsPanelKeys.ControlBarMiscSubtitle,
|
|
76966
76969
|
title: "Control Bar - Settings"
|
|
76967
76970
|
},
|
|
76968
76971
|
{
|
|
76969
76972
|
type: "toggle",
|
|
76970
|
-
key: SettingsPanelKeys.
|
|
76973
|
+
key: SettingsPanelKeys.ControlBarMiscShowSettingsButtonToggle,
|
|
76971
76974
|
label: "Settings",
|
|
76972
|
-
getter: (s) => s.ui.
|
|
76973
|
-
setter: (s, v) => s.ui.
|
|
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
|
|
76974
76984
|
}
|
|
76975
76985
|
];
|
|
76976
76986
|
}
|
|
@@ -77091,13 +77101,13 @@ function Viewer3(props) {
|
|
|
77091
77101
|
),
|
|
77092
77102
|
/* @__PURE__ */ jsxRuntimeExports.jsx(RestOfScreen, { side, content: () => {
|
|
77093
77103
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
77094
|
-
whenTrue(
|
|
77104
|
+
whenTrue(settings2.value.ui.panelLogo, /* @__PURE__ */ jsxRuntimeExports.jsx(LogoMemo, {})),
|
|
77095
77105
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Overlay, { canvas: props.core.viewport.canvas }),
|
|
77096
77106
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
77097
77107
|
ControlBar,
|
|
77098
77108
|
{
|
|
77099
77109
|
content: controlBarCustom(controlBar),
|
|
77100
|
-
show:
|
|
77110
|
+
show: isTrue(settings2.value.ui.panelControlBar)
|
|
77101
77111
|
}
|
|
77102
77112
|
),
|
|
77103
77113
|
/* @__PURE__ */ jsxRuntimeExports.jsx(SectionBoxPanel$1, { ref: sectionBoxPanelHandle, state: sectionBoxRef }),
|