vim-web 0.3.44-dev.36 → 0.3.44-dev.37

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
@@ -68058,7 +68058,7 @@ function controlBarActions(camera2, settings2, isolation, measure$1) {
68058
68058
  {
68059
68059
  id: ids.buttonZoomToFit,
68060
68060
  enabled: () => isTrue(settings2.ui.zoomToFit),
68061
- tip: "Zoom to Fit",
68061
+ tip: "Frame Camera",
68062
68062
  action: () => camera2.frameSelection.call(),
68063
68063
  icon: frameSelection,
68064
68064
  isOn: () => false,
@@ -74747,7 +74747,7 @@ function addPerformanceCounter(parent) {
74747
74747
  }
74748
74748
  animate();
74749
74749
  }
74750
- class ComponentInputs {
74750
+ class WebglInputs {
74751
74751
  constructor(viewer, camera2, isolation, sideState) {
74752
74752
  __publicField(this, "_viewer");
74753
74753
  __publicField(this, "_camera");
@@ -76098,7 +76098,7 @@ function VimComponent(props) {
76098
76098
  }
76099
76099
  cursor.register();
76100
76100
  props.viewer.viewport.canvas.tabIndex = 0;
76101
- props.viewer.inputs.scheme = new ComponentInputs(
76101
+ props.viewer.inputs.scheme = new WebglInputs(
76102
76102
  props.viewer,
76103
76103
  camera2,
76104
76104
  isolation,
@@ -76546,10 +76546,29 @@ function useUltraSectionBox(viewer) {
76546
76546
  function useUltraControlBar(viewer, section, camera2, customization) {
76547
76547
  const sectionSectionBox = controlBarSectionBox(section, viewer.selection.count > 0);
76548
76548
  const sectionCamera = controlBarCamera(camera2);
76549
- let bar = [sectionCamera, sectionSectionBox];
76549
+ const frame = frameSection(camera2);
76550
+ let bar = [sectionCamera, frame, sectionSectionBox];
76550
76551
  bar = (customization == null ? void 0 : customization(bar)) ?? bar;
76551
76552
  return bar;
76552
76553
  }
76554
+ function frameSection(camera2) {
76555
+ return {
76556
+ id: ids.sectionActions,
76557
+ enable: () => true,
76558
+ style: sectionDefaultStyle,
76559
+ buttons: [
76560
+ {
76561
+ id: ids.buttonZoomToFit,
76562
+ enabled: () => true,
76563
+ tip: "Frame Camera",
76564
+ action: () => camera2.frameSelection.call(),
76565
+ icon: frameSelection,
76566
+ isOn: () => false,
76567
+ style: buttonDefaultStyle
76568
+ }
76569
+ ]
76570
+ };
76571
+ }
76553
76572
  function useUltraCamera(viewer, section) {
76554
76573
  return useCamera({
76555
76574
  onSelectionChanged: viewer.selection.onValueChanged,