@terraware/web-components 4.2.25 → 4.2.26-rc.1
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/_vendor/react-multi-carousel/index.js +13 -0
- package/_vendor/react-multi-carousel/lib/Arrows.js +13 -0
- package/_vendor/react-multi-carousel/lib/Carousel.js +19 -0
- package/_vendor/react-multi-carousel/lib/CarouselItems.js +14 -0
- package/_vendor/react-multi-carousel/lib/Dots.js +16 -0
- package/_vendor/react-multi-carousel/lib/index.js +13 -0
- package/_vendor/react-multi-carousel/lib/types.js +13 -0
- package/_vendor/react-multi-carousel/lib/utils/clones.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/common.js +13 -0
- package/_vendor/react-multi-carousel/lib/utils/dots.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/elementWidth.js +12 -0
- package/_vendor/react-multi-carousel/lib/utils/index.js +20 -0
- package/_vendor/react-multi-carousel/lib/utils/mouseOrTouchMove.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/next.js +13 -0
- package/_vendor/react-multi-carousel/lib/utils/previous.js +14 -0
- package/_vendor/react-multi-carousel/lib/utils/throttle.js +12 -0
- package/_vendor/react-multi-carousel/lib/utils/throwError.js +14 -0
- package/_virtual/Arrows.js +3 -0
- package/_virtual/Carousel.js +3 -0
- package/_virtual/CarouselItems.js +3 -0
- package/_virtual/Dots.js +3 -0
- package/_virtual/_commonjsHelpers.js +5 -0
- package/_virtual/clones.js +3 -0
- package/_virtual/common.js +3 -0
- package/_virtual/dots2.js +3 -0
- package/_virtual/elementWidth.js +3 -0
- package/_virtual/index.js +7 -0
- package/_virtual/index2.js +3 -0
- package/_virtual/index3.js +3 -0
- package/_virtual/mouseOrTouchMove.js +3 -0
- package/_virtual/next.js +3 -0
- package/_virtual/previous.js +3 -0
- package/_virtual/throttle.js +3 -0
- package/_virtual/throwError.js +3 -0
- package/_virtual/types.js +3 -0
- package/components/AntSwitch/index.js +6 -4
- package/components/Autocomplete/Autocomplete.js +19 -16
- package/components/Badge/index.js +8 -6
- package/components/BusySpinner/index.js +11 -8
- package/components/Button/Button.js +12 -9
- package/components/Checkbox.js +11 -8
- package/components/Confirm/index.js +14 -17
- package/components/DatePicker/DatePicker.js +19 -23
- package/components/DialogBox/DialogBox.js +25 -20
- package/components/Divisor.js +11 -8
- package/components/Dropdown.js +18 -15
- package/components/EditableTable/index.js +17 -14
- package/components/ErrorBox/ErrorBox.js +18 -15
- package/components/FileChooser/index.js +20 -15
- package/components/FormBottomBar/index.js +15 -12
- package/components/Icon/Icon.js +9 -6
- package/components/Icon/icons/index.js +252 -251
- package/components/IconTooltip/index.js +14 -9
- package/components/Map/MapBox.js +35 -32
- package/components/Map/MapContainer.js +10 -6
- package/components/Map/MapDateSliderControl.js +14 -12
- package/components/Map/MapDrawer.js +16 -12
- package/components/Map/MapLegend.js +32 -28
- package/components/Map/MapViewStyleControl.js +11 -9
- package/components/Map/ReactMapboxWrapper.js +1 -1
- package/components/Map/index.js +13 -11
- package/components/Map/types.js +5 -3
- package/components/Map/useMaintainLayerOrder.js +5 -2
- package/components/Markdown/index.js +6 -4
- package/components/Message/Message.js +25 -20
- package/components/MultiSelect/index.js +26 -23
- package/components/Navbar/NavFooter.js +8 -5
- package/components/Navbar/NavItem.js +14 -11
- package/components/Navbar/NavSection.js +10 -7
- package/components/Navbar/Navbar.js +16 -11
- package/components/Navbar/SubNavbar.js +8 -5
- package/components/Note.js +10 -7
- package/components/OverlayModal/OverlayModal.js +13 -11
- package/components/PageForm/index.js +15 -12
- package/components/PhotoChooser/index.js +30 -25
- package/components/PhotosCarousel/index.d.ts.map +1 -1
- package/components/PhotosCarousel/index.js +17 -13
- package/components/Pill/index.js +14 -11
- package/components/PillList/index.js +10 -7
- package/components/PlacementWrapper/index.js +8 -6
- package/components/PopoverMenu/Popover.js +12 -9
- package/components/PopoverMenu/index.js +14 -11
- package/components/PopoverMultiSelect/index.js +14 -11
- package/components/ProgressCircle/ProgressCircle.js +12 -9
- package/components/RadioButton.js +9 -6
- package/components/Select/Select.js +9 -6
- package/components/Select/SelectT.js +30 -26
- package/components/Separator/index.js +7 -5
- package/components/Size.js +1 -1
- package/components/Slider/index.js +9 -6
- package/components/SummaryBox.js +13 -10
- package/components/Tabs/index.js +22 -18
- package/components/TextTruncated/index.js +13 -20
- package/components/Textfield/Textfield.js +34 -28
- package/components/Textfield/TruncatedTextArea.js +12 -10
- package/components/TimelineSlider/TimelineMarker.js +8 -6
- package/components/TimelineSlider/TimelineRail.js +6 -4
- package/components/TimelineSlider/index.js +14 -12
- package/components/Tooltip/Tooltip.js +12 -7
- package/components/ViewPhotosDialog/index.js +14 -11
- package/components/VirtualWalkthrough/Annotation.js +10 -8
- package/components/VirtualWalkthrough/AnnotationEditPane.js +23 -21
- package/components/VirtualWalkthrough/AnnotationPanel.js +16 -14
- package/components/VirtualWalkthrough/Application.js +9 -7
- package/components/VirtualWalkthrough/AutoRotator.js +5 -3
- package/components/VirtualWalkthrough/BlockingSpinner.js +10 -7
- package/components/VirtualWalkthrough/BoundaryRing.js +8 -6
- package/components/VirtualWalkthrough/BoundaryWall.js +8 -6
- package/components/VirtualWalkthrough/CameraInfo.js +15 -13
- package/components/VirtualWalkthrough/ControlsInfoPane.js +59 -57
- package/components/VirtualWalkthrough/GradientSky.js +8 -6
- package/components/VirtualWalkthrough/SplatControls.js +37 -35
- package/components/VirtualWalkthrough/SplatCrop.js +6 -4
- package/components/VirtualWalkthrough/SplatFadeCrop.js +7 -5
- package/components/VirtualWalkthrough/SplatModel.js +17 -14
- package/components/VirtualWalkthrough/SplatRevealRain.js +6 -4
- package/components/VirtualWalkthrough/TfAnnotationManager.js +8 -5
- package/components/VirtualWalkthrough/TfXrNavigation.js +7 -5
- package/components/VirtualWalkthrough/VirtualWalkthroughViewer.js +47 -45
- package/components/VirtualWalkthrough/VrAnnotationPanel.js +9 -7
- package/components/VirtualWalkthrough/XrAnnotationInteraction.js +9 -7
- package/components/VirtualWalkthrough/XrExitButton.js +9 -7
- package/components/VirtualWalkthrough/XrGazeDwell.js +9 -7
- package/components/VirtualWalkthrough/XrPointerRay.js +9 -7
- package/components/VirtualWalkthrough/boundary-ring.js +7 -5
- package/components/VirtualWalkthrough/boundary-wall.js +8 -6
- package/components/VirtualWalkthrough/groundPlane.js +6 -3
- package/components/VirtualWalkthrough/gsplat-fade-crop-effect.js +5 -2
- package/components/VirtualWalkthrough/splatFormat.js +6 -4
- package/components/VirtualWalkthrough/vr-annotation-panel-layout.js +4 -2
- package/components/VirtualWalkthrough/vr-annotation-panel.js +8 -5
- package/components/VirtualWalkthrough/walkthrough-camera.js +6 -4
- package/components/VirtualWalkthrough/xr-annotation-candidates.js +8 -6
- package/components/VirtualWalkthrough/xr-annotation-interaction.js +9 -6
- package/components/VirtualWalkthrough/xr-annotation-targeting.js +5 -2
- package/components/VirtualWalkthrough/xr-button-arming.js +4 -2
- package/components/VirtualWalkthrough/xr-button-hold.js +5 -3
- package/components/VirtualWalkthrough/xr-exit-button.js +10 -8
- package/components/VirtualWalkthrough/xr-face-buttons.js +6 -4
- package/components/VirtualWalkthrough/xr-gaze-dwell-state.js +5 -3
- package/components/VirtualWalkthrough/xr-gaze-dwell.js +9 -7
- package/components/VirtualWalkthrough/xr-interactive-ui.js +10 -8
- package/components/VirtualWalkthrough/xr-pointer-ray.js +5 -3
- package/components/VirtualWalkthrough/xr-progress-pie.js +4 -2
- package/components/VirtualWalkthrough/xr-ray-quad.js +5 -2
- package/components/VirtualWalkthrough/xr-scene-bounds.js +5 -3
- package/components/VirtualWalkthrough/xr-teleport-gesture.js +4 -2
- package/components/svg/BlobbyGrayIconImage.js +13 -11
- package/components/svg/BlobbyGrayIconImport.js +13 -11
- package/components/svg/BlobbyGrayIconUploadToTheCloud.js +13 -11
- package/components/svg/BlobbyIconCloudChecked.js +41 -39
- package/components/svg/BlobbyIconExportOrUploadPhoto.js +41 -39
- package/components/svg/BlobbyIconFolder.js +41 -39
- package/components/svg/BlobbyIconGraphReport.js +41 -39
- package/components/svg/BlobbyIconHappy.js +41 -39
- package/components/svg/BlobbyIconHeartMonitor.js +41 -39
- package/components/svg/BlobbyIconLeaf.js +41 -39
- package/components/svg/BlobbyIconLibrary.js +41 -39
- package/components/svg/BlobbyIconNursery.js +41 -39
- package/components/svg/BlobbyIconOrganization.js +41 -39
- package/components/svg/BlobbyIconParchment.js +41 -39
- package/components/svg/BlobbyIconPeople.js +41 -39
- package/components/svg/BlobbyIconSeedBank.js +41 -39
- package/components/svg/BlobbyIconSeedling.js +41 -39
- package/components/svg/BlobbyIconSeeds.js +41 -39
- package/components/svg/BlobbyIconSite.js +42 -40
- package/components/svg/BlobbyIconSparkles.js +41 -39
- package/components/svg/BlobbyIconWrench.js +41 -39
- package/components/svg/Bug.js +8 -6
- package/components/svg/Calendar.js +8 -6
- package/components/svg/CaretDown.js +8 -6
- package/components/svg/CaretLeft.js +8 -6
- package/components/svg/CaretRight.js +8 -6
- package/components/svg/CaretUp.js +8 -6
- package/components/svg/ChevronDown.js +8 -6
- package/components/svg/ChevronUp.js +8 -6
- package/components/svg/Close.js +8 -6
- package/components/svg/Critical.js +8 -6
- package/components/svg/Edit.js +41 -39
- package/components/svg/Error.js +8 -6
- package/components/svg/Filter.js +8 -6
- package/components/svg/Folder.js +8 -6
- package/components/svg/Help.js +8 -6
- package/components/svg/Home.js +8 -6
- package/components/svg/IconAdd.js +8 -6
- package/components/svg/IconArrowRight.js +8 -6
- package/components/svg/IconBusinessNetwork.js +8 -6
- package/components/svg/IconCalendar.js +8 -6
- package/components/svg/IconCancel.js +8 -6
- package/components/svg/IconChargingBattery.js +8 -6
- package/components/svg/IconChecklist.js +8 -6
- package/components/svg/IconCheckmark.js +8 -6
- package/components/svg/IconCoinInHand.js +8 -6
- package/components/svg/IconColumns.js +8 -6
- package/components/svg/IconComment.js +8 -6
- package/components/svg/IconDashboard.js +8 -6
- package/components/svg/IconDataMigration.js +8 -6
- package/components/svg/IconDocument.js +8 -6
- package/components/svg/IconDownloadFromTheCloud.js +8 -6
- package/components/svg/IconEdit.js +8 -6
- package/components/svg/IconExpand.js +8 -6
- package/components/svg/IconExport.js +8 -6
- package/components/svg/IconExternalLink.js +8 -6
- package/components/svg/IconEye.js +8 -6
- package/components/svg/IconEyeOff.js +8 -6
- package/components/svg/IconFile.js +8 -6
- package/components/svg/IconFolder.js +8 -6
- package/components/svg/IconFullScreen.js +8 -6
- package/components/svg/IconFutures.js +8 -6
- package/components/svg/IconGraphReport.js +8 -6
- package/components/svg/IconHeartMonitor.js +8 -6
- package/components/svg/IconHelp.js +8 -6
- package/components/svg/IconHistory.js +8 -6
- package/components/svg/IconImport.js +8 -6
- package/components/svg/IconIndex.js +8 -6
- package/components/svg/IconLayers.js +8 -6
- package/components/svg/IconLibrary.js +8 -6
- package/components/svg/IconList.js +8 -6
- package/components/svg/IconLivePlant.js +8 -6
- package/components/svg/IconLocations.js +8 -6
- package/components/svg/IconMail.js +8 -6
- package/components/svg/IconManager.js +8 -6
- package/components/svg/IconMarker.js +8 -6
- package/components/svg/IconMenu.js +8 -6
- package/components/svg/IconMenuHorizontal.js +8 -6
- package/components/svg/IconModule.js +8 -6
- package/components/svg/IconMyLocation.js +8 -6
- package/components/svg/IconNote.js +8 -6
- package/components/svg/IconNursery.js +8 -6
- package/components/svg/IconOrg.js +8 -6
- package/components/svg/IconParchment.js +8 -6
- package/components/svg/IconPhoto.js +8 -6
- package/components/svg/IconPlantsFilled.js +8 -6
- package/components/svg/IconRedo.js +8 -6
- package/components/svg/IconRestorationSite.js +8 -6
- package/components/svg/IconSeedBank.js +8 -6
- package/components/svg/IconSeedling.js +8 -6
- package/components/svg/IconSettings.js +8 -6
- package/components/svg/IconSlice.js +8 -6
- package/components/svg/IconSubmit.js +8 -6
- package/components/svg/IconSubtract.js +8 -6
- package/components/svg/IconSynced.js +8 -6
- package/components/svg/IconTrashCan.js +8 -6
- package/components/svg/IconTreasureMap.js +8 -6
- package/components/svg/IconUnavailable.js +8 -6
- package/components/svg/IconUndo.js +8 -6
- package/components/svg/IconVariable.js +8 -6
- package/components/svg/IconVideo.js +9 -7
- package/components/svg/IconWifi.js +8 -6
- package/components/svg/Info.js +8 -6
- package/components/svg/Key.js +8 -6
- package/components/svg/Leaf.js +8 -6
- package/components/svg/Lock.js +8 -6
- package/components/svg/Logo.js +16 -14
- package/components/svg/MenuVertical.js +8 -6
- package/components/svg/Notification.js +8 -6
- package/components/svg/Person.js +8 -6
- package/components/svg/Plus.js +8 -6
- package/components/svg/RestorationSite.js +8 -6
- package/components/svg/Search.js +8 -6
- package/components/svg/Seeds.js +8 -6
- package/components/svg/Site.js +8 -6
- package/components/svg/Sparkles.js +8 -6
- package/components/svg/Species.js +8 -6
- package/components/svg/Species2.js +41 -39
- package/components/svg/Spinner.js +16 -14
- package/components/svg/Star.js +8 -6
- package/components/svg/Success.js +8 -6
- package/components/svg/SuccessFilled.js +8 -6
- package/components/svg/TerrawareLogoDesktop.js +17 -15
- package/components/svg/TerrawareLogoMobile.js +9 -7
- package/components/svg/Touchscreen.js +8 -6
- package/components/svg/UploadCloud.js +41 -39
- package/components/svg/Warning.js +8 -6
- package/components/svg/WelcomeClipboard.js +32 -30
- package/components/svg/index.js +127 -127
- package/components/table/EnhancedTableToolbar.js +18 -15
- package/components/table/EnhancedTableToolbarV2.js +8 -6
- package/components/table/TableCellRenderer.js +37 -32
- package/components/table/TableHeader.js +17 -14
- package/components/table/TableHeaderItem.js +18 -15
- package/components/table/density.js +5 -3
- package/components/table/index.js +40 -37
- package/components/table/sort.js +6 -4
- package/components/table/types.js +1 -1
- package/components/types/index.js +1 -1
- package/hooks/useBoolean.js +4 -2
- package/hooks/useCameraPosition.js +5 -2
- package/hooks/useDevicePerformance.js +6 -3
- package/hooks/useXr.js +6 -4
- package/index.js +55 -58
- package/package.json +6 -2
- package/style-dictionary-dist/TerrawareTheme.js +2 -1
- package/theme.js +5 -2
- package/utils/color.js +5 -2
- package/utils/date.js +7 -6
- package/utils/index.js +4 -5
- package/utils/preventDefaultEvent.js +2 -1
- package/utils/text.js +3 -2
- package/utils/useDeviceInfo.js +2 -1
- package/virtualWalkthrough.js +23 -31
- package/components/Button/button.test.js +0 -23
- package/components/MultiSelect/MultiSelect.test.js +0 -73
- package/components/VirtualWalkthrough/TfXrNavigation.test.js +0 -110
- package/components/VirtualWalkthrough/boundary-ring.test.js +0 -109
- package/components/VirtualWalkthrough/boundary-wall.test.js +0 -203
- package/components/VirtualWalkthrough/groundPlane.test.js +0 -45
- package/components/VirtualWalkthrough/splatFormat.test.js +0 -51
- package/components/VirtualWalkthrough/vr-annotation-panel-layout.test.js +0 -26
- package/components/VirtualWalkthrough/xr-annotation-targeting.test.js +0 -66
- package/components/VirtualWalkthrough/xr-button-arming.test.js +0 -35
- package/components/VirtualWalkthrough/xr-button-hold.test.js +0 -57
- package/components/VirtualWalkthrough/xr-exit-button.test.js +0 -23
- package/components/VirtualWalkthrough/xr-face-buttons.test.js +0 -82
- package/components/VirtualWalkthrough/xr-gaze-dwell-state.test.js +0 -61
- package/components/VirtualWalkthrough/xr-interactive-ui.test.js +0 -165
- package/components/VirtualWalkthrough/xr-progress-pie.test.js +0 -79
- package/components/VirtualWalkthrough/xr-ray-quad.test.js +0 -37
- package/components/VirtualWalkthrough/xr-scene-bounds.test.js +0 -70
- package/components/VirtualWalkthrough/xr-teleport-gesture.test.js +0 -90
- package/components/table/sort.test.js +0 -35
- package/utils/date.test.js +0 -84
- package/utils/text.test.js +0 -21
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
2
|
import { useTheme } from '@mui/material';
|
|
3
|
-
import TimelineMarker from './TimelineMarker';
|
|
4
|
-
import TimelineRail from './TimelineRail';
|
|
3
|
+
import TimelineMarker from './TimelineMarker.js';
|
|
4
|
+
import TimelineRail from './TimelineRail.js';
|
|
5
5
|
import './styles.scss';
|
|
6
|
-
import {
|
|
6
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
7
8
|
const TimelineSlider = ({
|
|
8
9
|
labelEnd,
|
|
9
10
|
labelSelected,
|
|
@@ -29,19 +30,19 @@ const TimelineSlider = ({
|
|
|
29
30
|
}
|
|
30
31
|
}, [marks]);
|
|
31
32
|
const range = maxValue - minValue;
|
|
32
|
-
return /*#__PURE__*/
|
|
33
|
+
return /*#__PURE__*/jsxs("div", {
|
|
33
34
|
className: 'timeline',
|
|
34
|
-
children: [/*#__PURE__*/
|
|
35
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
35
36
|
className: 'timeline-label',
|
|
36
37
|
style: {
|
|
37
38
|
marginRight: theme.spacing(2)
|
|
38
39
|
},
|
|
39
40
|
children: labelStart
|
|
40
|
-
}), /*#__PURE__*/
|
|
41
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
41
42
|
className: "timeline-container",
|
|
42
|
-
children: [/*#__PURE__*/
|
|
43
|
+
children: [/*#__PURE__*/jsx(TimelineRail, {}), marks.map((mark, idx) => {
|
|
43
44
|
const normalizedValue = range === 0 ? 1 : (mark.value - minValue) / range;
|
|
44
|
-
return /*#__PURE__*/
|
|
45
|
+
return /*#__PURE__*/jsx(TimelineMarker, {
|
|
45
46
|
color: mark.color,
|
|
46
47
|
labelBottom: mark.labelBottom,
|
|
47
48
|
labelTop: mark.labelTop,
|
|
@@ -50,16 +51,17 @@ const TimelineSlider = ({
|
|
|
50
51
|
value: normalizedValue
|
|
51
52
|
}, idx);
|
|
52
53
|
})]
|
|
53
|
-
}), /*#__PURE__*/
|
|
54
|
+
}), /*#__PURE__*/jsx("div", {
|
|
54
55
|
className: 'timeline-label',
|
|
55
56
|
style: {
|
|
56
57
|
marginLeft: theme.spacing(2)
|
|
57
58
|
},
|
|
58
59
|
children: labelEnd
|
|
59
|
-
}), labelSelected && /*#__PURE__*/
|
|
60
|
+
}), labelSelected && /*#__PURE__*/jsx("div", {
|
|
60
61
|
className: 'timeline-selected-label',
|
|
61
62
|
children: labelSelected
|
|
62
63
|
})]
|
|
63
64
|
});
|
|
64
65
|
};
|
|
65
|
-
|
|
66
|
+
|
|
67
|
+
export { TimelineSlider as default };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
2
|
+
import { useTheme, Tooltip as Tooltip$1 } from '@mui/material';
|
|
3
|
+
import 'lodash';
|
|
4
|
+
import 'luxon';
|
|
5
|
+
import useDeviceInfo from '../../utils/useDeviceInfo.js';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
8
|
+
function Tooltip({
|
|
6
9
|
children,
|
|
7
10
|
placement = 'top-start',
|
|
8
11
|
slotProps,
|
|
@@ -22,7 +25,7 @@ export default function Tooltip({
|
|
|
22
25
|
setOpen(true);
|
|
23
26
|
}
|
|
24
27
|
};
|
|
25
|
-
return /*#__PURE__*/
|
|
28
|
+
return /*#__PURE__*/jsx(Tooltip$1, {
|
|
26
29
|
arrow: true,
|
|
27
30
|
onOpen: handleTooltipOpen,
|
|
28
31
|
onClose: handleTooltipClose,
|
|
@@ -44,9 +47,11 @@ export default function Tooltip({
|
|
|
44
47
|
}
|
|
45
48
|
}, ...(Array.isArray(sx) ? sx : [sx])],
|
|
46
49
|
title: title,
|
|
47
|
-
children: /*#__PURE__*/
|
|
50
|
+
children: /*#__PURE__*/jsx("span", {
|
|
48
51
|
onClick: handleTooltipOpen,
|
|
49
52
|
children: children
|
|
50
53
|
})
|
|
51
54
|
});
|
|
52
|
-
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { Tooltip as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Button from '../Button/Button';
|
|
3
|
-
import DialogBox from '../DialogBox/DialogBox';
|
|
4
|
-
import PhotosCarousel from '../PhotosCarousel';
|
|
5
|
-
import { jsx
|
|
6
|
-
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
import Button from '../Button/Button.js';
|
|
3
|
+
import DialogBox from '../DialogBox/DialogBox.js';
|
|
4
|
+
import PhotosCarousel from '../PhotosCarousel/index.js';
|
|
5
|
+
import { jsx } from 'react/jsx-runtime';
|
|
6
|
+
|
|
7
|
+
function ViewPhotosDialog(props) {
|
|
7
8
|
const {
|
|
8
9
|
onClose,
|
|
9
10
|
open,
|
|
@@ -21,25 +22,25 @@ export default function ViewPhotosDialog(props) {
|
|
|
21
22
|
}, [initialSelectedSlide, open]);
|
|
22
23
|
const isPreviousDisabled = selectedSlide <= 0;
|
|
23
24
|
const isNextDisabled = selectedSlide >= photos.length - 1;
|
|
24
|
-
return /*#__PURE__*/
|
|
25
|
+
return /*#__PURE__*/jsx(DialogBox, {
|
|
25
26
|
onClose: onClose,
|
|
26
27
|
open: open,
|
|
27
28
|
title: title,
|
|
28
29
|
size: "large",
|
|
29
30
|
scrolled: true,
|
|
30
|
-
middleButtons: [/*#__PURE__*/
|
|
31
|
+
middleButtons: [/*#__PURE__*/jsx(Button, {
|
|
31
32
|
label: prevButtonLabel,
|
|
32
33
|
priority: "secondary",
|
|
33
34
|
onClick: () => setSelectedSlide(slide => Math.max(0, slide - 1)),
|
|
34
35
|
disabled: isPreviousDisabled,
|
|
35
36
|
icon: "caretLeft"
|
|
36
|
-
}, 'button-1'), /*#__PURE__*/
|
|
37
|
+
}, 'button-1'), /*#__PURE__*/jsx(Button, {
|
|
37
38
|
label: nextButtonLabel,
|
|
38
39
|
onClick: () => setSelectedSlide(slide => Math.min(photos.length - 1, slide + 1)),
|
|
39
40
|
disabled: isNextDisabled,
|
|
40
41
|
rightIcon: "caretRight"
|
|
41
42
|
}, 'button-2')],
|
|
42
|
-
children: /*#__PURE__*/
|
|
43
|
+
children: /*#__PURE__*/jsx(PhotosCarousel, {
|
|
43
44
|
photos: photos,
|
|
44
45
|
selectedSlide: selectedSlide,
|
|
45
46
|
onSlideChange: setSelectedSlide,
|
|
@@ -47,4 +48,6 @@ export default function ViewPhotosDialog(props) {
|
|
|
47
48
|
dots: dots
|
|
48
49
|
})
|
|
49
50
|
});
|
|
50
|
-
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export { ViewPhotosDialog as default };
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useRef, useEffect, useCallback, useMemo } from 'react';
|
|
2
2
|
import { Entity } from '@playcanvas/react';
|
|
3
3
|
import { Script } from '@playcanvas/react/components';
|
|
4
4
|
import { useApp } from '@playcanvas/react/hooks';
|
|
5
5
|
import { Gizmo, TranslateGizmo } from 'playcanvas';
|
|
6
|
-
import { Annotation as
|
|
6
|
+
import { Annotation as Annotation$1 } from 'playcanvas/scripts/esm/annotations.mjs';
|
|
7
7
|
import { CameraControls } from 'playcanvas/scripts/esm/camera-controls.mjs';
|
|
8
|
-
import { useCameraPosition } from '../../hooks/useCameraPosition';
|
|
8
|
+
import { useCameraPosition } from '../../hooks/useCameraPosition.js';
|
|
9
9
|
import './annotation-styles.css';
|
|
10
|
-
import { jsx
|
|
10
|
+
import { jsx } from 'react/jsx-runtime';
|
|
11
|
+
|
|
11
12
|
/**
|
|
12
13
|
* Target normalized-device x coordinate for a clicked annotation. +0.5 places
|
|
13
14
|
* the hotspot three quarters across the screen (25% from the right), leaving room
|
|
@@ -188,11 +189,11 @@ const Annotation = props => {
|
|
|
188
189
|
cleanupGizmo();
|
|
189
190
|
};
|
|
190
191
|
}, [app, isEdit, isSelected, visible, onPositionChange, entityName]);
|
|
191
|
-
return /*#__PURE__*/
|
|
192
|
+
return /*#__PURE__*/jsx(Entity, {
|
|
192
193
|
name: entityName,
|
|
193
194
|
position: position,
|
|
194
|
-
children: /*#__PURE__*/
|
|
195
|
-
script:
|
|
195
|
+
children: /*#__PURE__*/jsx(Script, {
|
|
196
|
+
script: Annotation$1,
|
|
196
197
|
title: title,
|
|
197
198
|
label: label,
|
|
198
199
|
icon: icon,
|
|
@@ -204,4 +205,5 @@ const Annotation = props => {
|
|
|
204
205
|
})
|
|
205
206
|
});
|
|
206
207
|
};
|
|
207
|
-
|
|
208
|
+
|
|
209
|
+
export { Annotation as default };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Box, Fade,
|
|
3
|
-
import PhotoChooser from '../PhotoChooser';
|
|
4
|
-
import
|
|
5
|
-
import { jsx
|
|
1
|
+
import { useMemo, useCallback } from 'react';
|
|
2
|
+
import { useTheme, Box, Fade, Typography, Tooltip, ThemeProvider } from '@mui/material';
|
|
3
|
+
import PhotoChooser from '../PhotoChooser/index.js';
|
|
4
|
+
import TextField from '../Textfield/Textfield.js';
|
|
5
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
6
|
+
|
|
6
7
|
const AnnotationEditPane = ({
|
|
7
8
|
visible,
|
|
8
9
|
annotation,
|
|
@@ -68,7 +69,7 @@ const AnnotationEditPane = ({
|
|
|
68
69
|
if (!annotation) {
|
|
69
70
|
return null;
|
|
70
71
|
}
|
|
71
|
-
return /*#__PURE__*/
|
|
72
|
+
return /*#__PURE__*/jsx(Box, {
|
|
72
73
|
sx: {
|
|
73
74
|
position: 'absolute',
|
|
74
75
|
top: 0,
|
|
@@ -82,10 +83,10 @@ const AnnotationEditPane = ({
|
|
|
82
83
|
padding: 2,
|
|
83
84
|
zIndex: 1001
|
|
84
85
|
},
|
|
85
|
-
children: /*#__PURE__*/
|
|
86
|
+
children: /*#__PURE__*/jsx(Fade, {
|
|
86
87
|
in: visible,
|
|
87
88
|
timeout: 500,
|
|
88
|
-
children: /*#__PURE__*/
|
|
89
|
+
children: /*#__PURE__*/jsx(Box, {
|
|
89
90
|
sx: {
|
|
90
91
|
backgroundColor: theme.palette.grey[900],
|
|
91
92
|
color: theme.palette.common.white,
|
|
@@ -95,22 +96,22 @@ const AnnotationEditPane = ({
|
|
|
95
96
|
maxWidth: 400,
|
|
96
97
|
pointerEvents: 'auto'
|
|
97
98
|
},
|
|
98
|
-
children: /*#__PURE__*/
|
|
99
|
+
children: /*#__PURE__*/jsxs(Box, {
|
|
99
100
|
sx: {
|
|
100
101
|
display: 'flex',
|
|
101
102
|
flexDirection: 'column',
|
|
102
103
|
gap: 2
|
|
103
104
|
},
|
|
104
|
-
children: [/*#__PURE__*/
|
|
105
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
105
106
|
sx: {
|
|
106
107
|
fontWeight: 600
|
|
107
108
|
},
|
|
108
109
|
children: strings.editAnnotation
|
|
109
|
-
}), /*#__PURE__*/
|
|
110
|
+
}), /*#__PURE__*/jsx(Tooltip, {
|
|
110
111
|
title: strings.titleTooltip,
|
|
111
112
|
placement: "top",
|
|
112
113
|
disableFocusListener: true,
|
|
113
|
-
children: /*#__PURE__*/
|
|
114
|
+
children: /*#__PURE__*/jsx(TextField, {
|
|
114
115
|
id: "annotation-title",
|
|
115
116
|
label: strings.title,
|
|
116
117
|
type: "text",
|
|
@@ -121,11 +122,11 @@ const AnnotationEditPane = ({
|
|
|
121
122
|
sx: textFieldSx,
|
|
122
123
|
required: true
|
|
123
124
|
})
|
|
124
|
-
}), /*#__PURE__*/
|
|
125
|
+
}), /*#__PURE__*/jsx(Tooltip, {
|
|
125
126
|
title: strings.descriptionTooltip,
|
|
126
127
|
placement: "top",
|
|
127
128
|
disableFocusListener: true,
|
|
128
|
-
children: /*#__PURE__*/
|
|
129
|
+
children: /*#__PURE__*/jsx(TextField, {
|
|
129
130
|
id: "annotation-body",
|
|
130
131
|
label: strings.description,
|
|
131
132
|
type: "text",
|
|
@@ -135,11 +136,11 @@ const AnnotationEditPane = ({
|
|
|
135
136
|
onBlur: handleBlur,
|
|
136
137
|
sx: textFieldSx
|
|
137
138
|
})
|
|
138
|
-
}), /*#__PURE__*/
|
|
139
|
+
}), /*#__PURE__*/jsx(Tooltip, {
|
|
139
140
|
title: strings.labelTooltip,
|
|
140
141
|
placement: "top",
|
|
141
142
|
disableFocusListener: true,
|
|
142
|
-
children: /*#__PURE__*/
|
|
143
|
+
children: /*#__PURE__*/jsx(TextField, {
|
|
143
144
|
id: "annotation-label",
|
|
144
145
|
label: strings.label,
|
|
145
146
|
type: "text",
|
|
@@ -149,8 +150,8 @@ const AnnotationEditPane = ({
|
|
|
149
150
|
onBlur: handleBlur,
|
|
150
151
|
sx: textFieldSx
|
|
151
152
|
})
|
|
152
|
-
}), showImageUpload && /*#__PURE__*/
|
|
153
|
-
children: [strings.images?.uploadTitle && /*#__PURE__*/
|
|
153
|
+
}), showImageUpload && /*#__PURE__*/jsxs(Box, {
|
|
154
|
+
children: [strings.images?.uploadTitle && /*#__PURE__*/jsx(Typography, {
|
|
154
155
|
sx: {
|
|
155
156
|
fontFamily: 'Inter',
|
|
156
157
|
fontSize: '14px',
|
|
@@ -160,9 +161,9 @@ const AnnotationEditPane = ({
|
|
|
160
161
|
marginBottom: 0.5
|
|
161
162
|
},
|
|
162
163
|
children: strings.images.uploadTitle
|
|
163
|
-
}), /*#__PURE__*/
|
|
164
|
+
}), /*#__PURE__*/jsx(ThemeProvider, {
|
|
164
165
|
theme: photoChooserTheme,
|
|
165
|
-
children: /*#__PURE__*/
|
|
166
|
+
children: /*#__PURE__*/jsx(PhotoChooser, {
|
|
166
167
|
uploadText: strings.images?.uploadText,
|
|
167
168
|
uploadDescription: strings.images?.uploadDescription,
|
|
168
169
|
chooseFileText: strings.images?.chooseFileText,
|
|
@@ -183,4 +184,5 @@ const AnnotationEditPane = ({
|
|
|
183
184
|
})
|
|
184
185
|
});
|
|
185
186
|
};
|
|
186
|
-
|
|
187
|
+
|
|
188
|
+
export { AnnotationEditPane as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useRef, useState, useEffect, useLayoutEffect } from 'react';
|
|
2
2
|
import { useTheme } from '@mui/material';
|
|
3
|
-
import PhotosCarousel from '../PhotosCarousel';
|
|
4
|
-
import {
|
|
3
|
+
import PhotosCarousel from '../PhotosCarousel/index.js';
|
|
4
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
5
6
|
// Fallback hotspot diameter (px) when the rendered size isn't reported yet.
|
|
6
7
|
const DEFAULT_HOTSPOT_DIAMETER = 35;
|
|
7
8
|
|
|
@@ -131,12 +132,12 @@ const AnnotationPanel = ({
|
|
|
131
132
|
y: lineStart.y + dy * t
|
|
132
133
|
};
|
|
133
134
|
}
|
|
134
|
-
return /*#__PURE__*/
|
|
135
|
-
children: [/*#__PURE__*/
|
|
135
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
136
|
+
children: [/*#__PURE__*/jsx("svg", {
|
|
136
137
|
ref: connectorRef,
|
|
137
138
|
"data-testid": "annotation-panel-connector",
|
|
138
139
|
style: CONNECTOR_STYLE,
|
|
139
|
-
children: lineStart && lineEnd && /*#__PURE__*/
|
|
140
|
+
children: lineStart && lineEnd && /*#__PURE__*/jsx("line", {
|
|
140
141
|
x1: lineStart.x,
|
|
141
142
|
y1: lineStart.y,
|
|
142
143
|
x2: lineEnd.x,
|
|
@@ -144,13 +145,13 @@ const AnnotationPanel = ({
|
|
|
144
145
|
stroke: "#ffffff",
|
|
145
146
|
strokeWidth: 2
|
|
146
147
|
})
|
|
147
|
-
}), /*#__PURE__*/
|
|
148
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
148
149
|
ref: panelRef,
|
|
149
150
|
"data-testid": "annotation-panel",
|
|
150
151
|
style: panelStyle,
|
|
151
|
-
children: [annotation.imageUrls && annotation.imageUrls.length > 0 && /*#__PURE__*/
|
|
152
|
+
children: [annotation.imageUrls && annotation.imageUrls.length > 0 && /*#__PURE__*/jsx("div", {
|
|
152
153
|
style: CAROUSEL_STYLE,
|
|
153
|
-
children: /*#__PURE__*/
|
|
154
|
+
children: /*#__PURE__*/jsx(PhotosCarousel, {
|
|
154
155
|
photos: annotation.imageUrls.map(url => ({
|
|
155
156
|
url,
|
|
156
157
|
alt: annotation.title
|
|
@@ -158,9 +159,9 @@ const AnnotationPanel = ({
|
|
|
158
159
|
showArrows: true,
|
|
159
160
|
dots: false
|
|
160
161
|
})
|
|
161
|
-
}), /*#__PURE__*/
|
|
162
|
+
}), /*#__PURE__*/jsxs("div", {
|
|
162
163
|
style: TEXT_BLOCK_STYLE,
|
|
163
|
-
children: [annotation.label && /*#__PURE__*/
|
|
164
|
+
children: [annotation.label && /*#__PURE__*/jsx("span", {
|
|
164
165
|
"data-testid": "annotation-panel-label",
|
|
165
166
|
style: {
|
|
166
167
|
alignSelf: 'flex-start',
|
|
@@ -174,7 +175,7 @@ const AnnotationPanel = ({
|
|
|
174
175
|
borderRadius: theme.spacing(1)
|
|
175
176
|
},
|
|
176
177
|
children: annotation.label
|
|
177
|
-
}), /*#__PURE__*/
|
|
178
|
+
}), /*#__PURE__*/jsx("h2", {
|
|
178
179
|
"data-testid": "annotation-panel-title",
|
|
179
180
|
style: {
|
|
180
181
|
fontSize: 32,
|
|
@@ -183,7 +184,7 @@ const AnnotationPanel = ({
|
|
|
183
184
|
margin: 0
|
|
184
185
|
},
|
|
185
186
|
children: annotation.title
|
|
186
|
-
}), annotation.bodyText && /*#__PURE__*/
|
|
187
|
+
}), annotation.bodyText && /*#__PURE__*/jsx("p", {
|
|
187
188
|
"data-testid": "annotation-panel-description",
|
|
188
189
|
style: {
|
|
189
190
|
fontSize: 16,
|
|
@@ -197,4 +198,5 @@ const AnnotationPanel = ({
|
|
|
197
198
|
})]
|
|
198
199
|
});
|
|
199
200
|
};
|
|
200
|
-
|
|
201
|
+
|
|
202
|
+
export { AnnotationPanel as default };
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Application as
|
|
1
|
+
import 'react';
|
|
2
|
+
import { Application as Application$1 } from '@playcanvas/react';
|
|
3
3
|
import './application-styles.css';
|
|
4
|
-
import {
|
|
4
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
5
6
|
const Application = ({
|
|
6
7
|
children,
|
|
7
8
|
style
|
|
8
9
|
}) => {
|
|
9
|
-
return /*#__PURE__*/
|
|
10
|
-
children: [/*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/jsxs(Fragment, {
|
|
11
|
+
children: [/*#__PURE__*/jsx(Application$1, {
|
|
11
12
|
style: style,
|
|
12
13
|
graphicsDeviceOptions: {
|
|
13
14
|
antialias: false,
|
|
14
15
|
xrCompatible: true
|
|
15
16
|
},
|
|
16
17
|
children: children
|
|
17
|
-
}), /*#__PURE__*/
|
|
18
|
+
}), /*#__PURE__*/jsx("div", {
|
|
18
19
|
"data-annotation-container": true,
|
|
19
20
|
className: "annotation-container",
|
|
20
21
|
style: {
|
|
@@ -29,4 +30,5 @@ const Application = ({
|
|
|
29
30
|
})]
|
|
30
31
|
});
|
|
31
32
|
};
|
|
32
|
-
|
|
33
|
+
|
|
34
|
+
export { Application as default };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Script, Vec3, Quat } from 'playcanvas';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Auto-rotator script for PlayCanvas CameraControls.
|
|
5
5
|
* Automatically orbits the camera around its focus point after a period of inactivity.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
class AutoRotator extends Script {
|
|
8
8
|
static scriptName = 'autoRotator';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -214,4 +214,6 @@ export class AutoRotator extends Script {
|
|
|
214
214
|
window.removeEventListener('keydown', this.onKeyDown);
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export { AutoRotator };
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { jsx
|
|
4
|
-
|
|
1
|
+
import 'react';
|
|
2
|
+
import { useTheme, StyledEngineProvider, CircularProgress } from '@mui/material';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
function BlockingSpinner() {
|
|
5
6
|
const theme = useTheme();
|
|
6
|
-
return /*#__PURE__*/
|
|
7
|
+
return /*#__PURE__*/jsx(StyledEngineProvider, {
|
|
7
8
|
injectFirst: true,
|
|
8
|
-
children: /*#__PURE__*/
|
|
9
|
+
children: /*#__PURE__*/jsx(CircularProgress, {
|
|
9
10
|
size: "193",
|
|
10
11
|
sx: {
|
|
11
12
|
height: '200px',
|
|
@@ -24,4 +25,6 @@ export default function BlockingSpinner() {
|
|
|
24
25
|
}
|
|
25
26
|
})
|
|
26
27
|
});
|
|
27
|
-
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { BlockingSpinner as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
2
|
import { Entity } from '@playcanvas/react';
|
|
3
3
|
import { Script } from '@playcanvas/react/components';
|
|
4
4
|
import { useApp } from '@playcanvas/react/hooks';
|
|
5
|
-
import { BoundaryRingScript } from './boundary-ring';
|
|
6
|
-
import { jsx
|
|
5
|
+
import { BoundaryRingScript } from './boundary-ring.js';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
7
8
|
const BoundaryRing = ({
|
|
8
9
|
center,
|
|
9
10
|
radius,
|
|
@@ -23,11 +24,12 @@ const BoundaryRing = ({
|
|
|
23
24
|
script.rebuild();
|
|
24
25
|
}
|
|
25
26
|
}, [app, center, radius, groundPlane]);
|
|
26
|
-
return /*#__PURE__*/
|
|
27
|
+
return /*#__PURE__*/jsx(Entity, {
|
|
27
28
|
name: "boundary-ring",
|
|
28
|
-
children: /*#__PURE__*/
|
|
29
|
+
children: /*#__PURE__*/jsx(Script, {
|
|
29
30
|
script: BoundaryRingScript
|
|
30
31
|
})
|
|
31
32
|
});
|
|
32
33
|
};
|
|
33
|
-
|
|
34
|
+
|
|
35
|
+
export { BoundaryRing as default };
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
2
|
import { Entity } from '@playcanvas/react';
|
|
3
3
|
import { Script } from '@playcanvas/react/components';
|
|
4
4
|
import { useApp } from '@playcanvas/react/hooks';
|
|
5
|
-
import { BoundaryWallScript } from './boundary-wall';
|
|
6
|
-
import { jsx
|
|
5
|
+
import { BoundaryWallScript } from './boundary-wall.js';
|
|
6
|
+
import { jsx } from 'react/jsx-runtime';
|
|
7
|
+
|
|
7
8
|
const BoundaryWall = ({
|
|
8
9
|
center,
|
|
9
10
|
radius,
|
|
@@ -25,11 +26,12 @@ const BoundaryWall = ({
|
|
|
25
26
|
script.rebuild();
|
|
26
27
|
}
|
|
27
28
|
}, [app, center, radius, groundPlane, baseY]);
|
|
28
|
-
return /*#__PURE__*/
|
|
29
|
+
return /*#__PURE__*/jsx(Entity, {
|
|
29
30
|
name: "boundary-wall",
|
|
30
|
-
children: /*#__PURE__*/
|
|
31
|
+
children: /*#__PURE__*/jsx(Script, {
|
|
31
32
|
script: BoundaryWallScript
|
|
32
33
|
})
|
|
33
34
|
});
|
|
34
35
|
};
|
|
35
|
-
|
|
36
|
+
|
|
37
|
+
export { BoundaryWall as default };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Box, Typography
|
|
3
|
-
import { getRgbaFromHex } from '../../utils/color';
|
|
4
|
-
import { jsxs
|
|
1
|
+
import { useState, useEffect } from 'react';
|
|
2
|
+
import { useTheme, Box, Typography } from '@mui/material';
|
|
3
|
+
import { getRgbaFromHex } from '../../utils/color.js';
|
|
4
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
5
6
|
const UPDATE_FREQUENCY_MS = 200;
|
|
6
7
|
const COORDINATE_LABELS = ['X', 'Y', 'Z'];
|
|
7
8
|
const formatNumber = num => num.toFixed(6);
|
|
@@ -9,15 +10,15 @@ const CoordinateDisplay = ({
|
|
|
9
10
|
label,
|
|
10
11
|
coordinates,
|
|
11
12
|
textColor
|
|
12
|
-
}) => /*#__PURE__*/
|
|
13
|
-
children: [/*#__PURE__*/
|
|
13
|
+
}) => /*#__PURE__*/jsxs(Box, {
|
|
14
|
+
children: [/*#__PURE__*/jsxs(Typography, {
|
|
14
15
|
variant: "caption",
|
|
15
16
|
sx: {
|
|
16
17
|
color: textColor,
|
|
17
18
|
fontWeight: 'bold'
|
|
18
19
|
},
|
|
19
20
|
children: [label, ":"]
|
|
20
|
-
}), coordinates.map((value, index) => /*#__PURE__*/
|
|
21
|
+
}), coordinates.map((value, index) => /*#__PURE__*/jsxs(Typography, {
|
|
21
22
|
variant: "caption",
|
|
22
23
|
sx: {
|
|
23
24
|
color: textColor,
|
|
@@ -48,7 +49,7 @@ const CameraInfo = ({
|
|
|
48
49
|
return null;
|
|
49
50
|
}
|
|
50
51
|
const textColor = theme.palette.TwClrIcnInfo;
|
|
51
|
-
return /*#__PURE__*/
|
|
52
|
+
return /*#__PURE__*/jsxs(Box, {
|
|
52
53
|
sx: {
|
|
53
54
|
position: 'absolute',
|
|
54
55
|
bottom: 16,
|
|
@@ -59,7 +60,7 @@ const CameraInfo = ({
|
|
|
59
60
|
pointerEvents: 'auto',
|
|
60
61
|
minWidth: 220
|
|
61
62
|
},
|
|
62
|
-
children: [/*#__PURE__*/
|
|
63
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
63
64
|
variant: "body2",
|
|
64
65
|
sx: {
|
|
65
66
|
color: textColor,
|
|
@@ -67,17 +68,17 @@ const CameraInfo = ({
|
|
|
67
68
|
marginBottom: 1
|
|
68
69
|
},
|
|
69
70
|
children: strings.cameraInfo
|
|
70
|
-
}), /*#__PURE__*/
|
|
71
|
+
}), /*#__PURE__*/jsxs(Box, {
|
|
71
72
|
sx: {
|
|
72
73
|
display: 'flex',
|
|
73
74
|
flexDirection: 'column',
|
|
74
75
|
gap: 1
|
|
75
76
|
},
|
|
76
|
-
children: [/*#__PURE__*/
|
|
77
|
+
children: [/*#__PURE__*/jsx(CoordinateDisplay, {
|
|
77
78
|
label: strings.cameraPosition,
|
|
78
79
|
coordinates: cameraState.position,
|
|
79
80
|
textColor: textColor
|
|
80
|
-
}), /*#__PURE__*/
|
|
81
|
+
}), /*#__PURE__*/jsx(CoordinateDisplay, {
|
|
81
82
|
label: strings.cameraFocusPoint,
|
|
82
83
|
coordinates: cameraState.focus,
|
|
83
84
|
textColor: textColor
|
|
@@ -85,4 +86,5 @@ const CameraInfo = ({
|
|
|
85
86
|
})]
|
|
86
87
|
});
|
|
87
88
|
};
|
|
88
|
-
|
|
89
|
+
|
|
90
|
+
export { CameraInfo as default };
|