@terraware/web-components 4.2.12 → 4.2.14-rc.0

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.
Files changed (304) hide show
  1. package/components/AntSwitch/index.js +8 -14
  2. package/components/Autocomplete/Autocomplete.js +67 -70
  3. package/components/Badge/index.js +16 -20
  4. package/components/BusySpinner/index.js +30 -35
  5. package/components/Button/Button.js +23 -27
  6. package/components/Button/button.test.js +8 -10
  7. package/components/Checkbox.js +10 -19
  8. package/components/Confirm/index.js +44 -51
  9. package/components/DatePicker/DatePicker.js +116 -117
  10. package/components/DialogBox/DialogBox.js +76 -66
  11. package/components/Divisor.js +15 -20
  12. package/components/Dropdown.js +54 -61
  13. package/components/EditableTable/index.js +129 -135
  14. package/components/ErrorBox/ErrorBox.js +37 -36
  15. package/components/FileChooser/index.js +73 -77
  16. package/components/FormBottomBar/index.js +63 -69
  17. package/components/Icon/Icon.js +14 -21
  18. package/components/Icon/icons/index.d.ts +1 -1
  19. package/components/Icon/icons/index.d.ts.map +1 -1
  20. package/components/Icon/icons/index.js +251 -255
  21. package/components/IconTooltip/index.js +29 -34
  22. package/components/Map/MapBox.js +199 -220
  23. package/components/Map/MapContainer.js +14 -18
  24. package/components/Map/MapDateSliderControl.js +44 -46
  25. package/components/Map/MapDrawer.js +32 -33
  26. package/components/Map/MapLegend.js +96 -95
  27. package/components/Map/MapViewStyleControl.js +38 -48
  28. package/components/Map/ReactMapboxWrapper.js +2 -9
  29. package/components/Map/index.js +47 -55
  30. package/components/Map/types.js +2 -8
  31. package/components/Map/useMaintainLayerOrder.js +4 -11
  32. package/components/Markdown/index.js +14 -21
  33. package/components/Message/Message.js +59 -51
  34. package/components/MultiSelect/MultiSelect.test.js +22 -24
  35. package/components/MultiSelect/index.js +73 -69
  36. package/components/Navbar/NavFooter.js +8 -13
  37. package/components/Navbar/NavItem.js +43 -37
  38. package/components/Navbar/NavSection.js +13 -17
  39. package/components/Navbar/Navbar.js +35 -38
  40. package/components/Navbar/SubNavbar.js +8 -13
  41. package/components/Note.js +14 -19
  42. package/components/OverlayModal/OverlayModal.js +36 -37
  43. package/components/PageForm/index.js +30 -35
  44. package/components/PhotoChooser/index.js +93 -98
  45. package/components/Pill/index.js +29 -31
  46. package/components/PillList/index.js +16 -22
  47. package/components/PlacementWrapper/index.js +20 -25
  48. package/components/PopoverMenu/Popover.js +33 -37
  49. package/components/PopoverMenu/index.js +41 -46
  50. package/components/PopoverMultiSelect/index.js +18 -21
  51. package/components/ProgressCircle/ProgressCircle.js +23 -26
  52. package/components/RadioButton.js +7 -14
  53. package/components/Select/Select.js +8 -13
  54. package/components/Select/SelectT.js +110 -108
  55. package/components/Separator/index.js +8 -14
  56. package/components/Size.js +1 -5
  57. package/components/Slider/index.js +7 -13
  58. package/components/SummaryBox.js +36 -39
  59. package/components/Tabs/index.js +75 -77
  60. package/components/TextTruncated/index.js +64 -65
  61. package/components/Textfield/Textfield.js +100 -95
  62. package/components/Textfield/TruncatedTextArea.js +44 -46
  63. package/components/TimelineSlider/TimelineMarker.js +24 -28
  64. package/components/TimelineSlider/TimelineRail.js +5 -11
  65. package/components/TimelineSlider/index.js +47 -51
  66. package/components/Tooltip/Tooltip.js +21 -26
  67. package/components/ViewPhotosDialog/index.js +58 -62
  68. package/components/VirtualWalkthrough/Annotation.d.ts +41 -0
  69. package/components/VirtualWalkthrough/Annotation.d.ts.map +1 -0
  70. package/components/VirtualWalkthrough/Annotation.js +197 -0
  71. package/components/VirtualWalkthrough/AnnotationEditPane.d.ts +20 -0
  72. package/components/VirtualWalkthrough/AnnotationEditPane.d.ts.map +1 -0
  73. package/components/VirtualWalkthrough/AnnotationEditPane.js +136 -0
  74. package/components/VirtualWalkthrough/AnnotationPanel.d.ts +13 -0
  75. package/components/VirtualWalkthrough/AnnotationPanel.d.ts.map +1 -0
  76. package/components/VirtualWalkthrough/AnnotationPanel.js +196 -0
  77. package/components/VirtualWalkthrough/Application.d.ts +9 -0
  78. package/components/VirtualWalkthrough/Application.d.ts.map +1 -0
  79. package/components/VirtualWalkthrough/Application.js +32 -0
  80. package/components/VirtualWalkthrough/AutoRotator.d.ts +109 -0
  81. package/components/VirtualWalkthrough/AutoRotator.d.ts.map +1 -0
  82. package/components/VirtualWalkthrough/AutoRotator.js +217 -0
  83. package/components/VirtualWalkthrough/BlockingSpinner.d.ts +3 -0
  84. package/components/VirtualWalkthrough/BlockingSpinner.d.ts.map +1 -0
  85. package/components/VirtualWalkthrough/BlockingSpinner.js +27 -0
  86. package/components/VirtualWalkthrough/BoundaryRing.d.ts +9 -0
  87. package/components/VirtualWalkthrough/BoundaryRing.d.ts.map +1 -0
  88. package/components/VirtualWalkthrough/BoundaryRing.js +33 -0
  89. package/components/VirtualWalkthrough/CameraInfo.d.ts +16 -0
  90. package/components/VirtualWalkthrough/CameraInfo.d.ts.map +1 -0
  91. package/components/VirtualWalkthrough/CameraInfo.js +88 -0
  92. package/components/VirtualWalkthrough/ControlsInfoPane.d.ts +37 -0
  93. package/components/VirtualWalkthrough/ControlsInfoPane.d.ts.map +1 -0
  94. package/components/VirtualWalkthrough/ControlsInfoPane.js +196 -0
  95. package/components/VirtualWalkthrough/GradientSky.d.ts +9 -0
  96. package/components/VirtualWalkthrough/GradientSky.d.ts.map +1 -0
  97. package/components/VirtualWalkthrough/GradientSky.js +73 -0
  98. package/components/VirtualWalkthrough/SplatControls.d.ts +50 -0
  99. package/components/VirtualWalkthrough/SplatControls.d.ts.map +1 -0
  100. package/components/VirtualWalkthrough/SplatControls.js +252 -0
  101. package/components/VirtualWalkthrough/SplatCrop.d.ts +8 -0
  102. package/components/VirtualWalkthrough/SplatCrop.d.ts.map +1 -0
  103. package/components/VirtualWalkthrough/SplatCrop.js +18 -0
  104. package/components/VirtualWalkthrough/SplatFadeCrop.d.ts +8 -0
  105. package/components/VirtualWalkthrough/SplatFadeCrop.d.ts.map +1 -0
  106. package/components/VirtualWalkthrough/SplatFadeCrop.js +18 -0
  107. package/components/VirtualWalkthrough/SplatModel.d.ts +15 -0
  108. package/components/VirtualWalkthrough/SplatModel.d.ts.map +1 -0
  109. package/components/VirtualWalkthrough/SplatModel.js +60 -0
  110. package/components/VirtualWalkthrough/SplatRevealRain.d.ts +18 -0
  111. package/components/VirtualWalkthrough/SplatRevealRain.d.ts.map +1 -0
  112. package/components/VirtualWalkthrough/SplatRevealRain.js +38 -0
  113. package/components/VirtualWalkthrough/TfAnnotationManager.d.ts +110 -0
  114. package/components/VirtualWalkthrough/TfAnnotationManager.d.ts.map +1 -0
  115. package/components/VirtualWalkthrough/TfAnnotationManager.js +368 -0
  116. package/components/VirtualWalkthrough/TfXrNavigation.d.ts +15 -0
  117. package/components/VirtualWalkthrough/TfXrNavigation.d.ts.map +1 -0
  118. package/components/VirtualWalkthrough/TfXrNavigation.js +24 -0
  119. package/components/VirtualWalkthrough/annotation-styles.css +5 -0
  120. package/components/VirtualWalkthrough/application-styles.css +4 -0
  121. package/components/VirtualWalkthrough/boundary-ring.d.ts +47 -0
  122. package/components/VirtualWalkthrough/boundary-ring.d.ts.map +1 -0
  123. package/components/VirtualWalkthrough/boundary-ring.js +125 -0
  124. package/components/VirtualWalkthrough/boundary-ring.test.js +109 -0
  125. package/components/VirtualWalkthrough/groundPlane.d.ts +14 -0
  126. package/components/VirtualWalkthrough/groundPlane.d.ts.map +1 -0
  127. package/components/VirtualWalkthrough/groundPlane.js +47 -0
  128. package/components/VirtualWalkthrough/groundPlane.test.js +45 -0
  129. package/components/VirtualWalkthrough/gsplat-fade-crop-effect.d.ts +19 -0
  130. package/components/VirtualWalkthrough/gsplat-fade-crop-effect.d.ts.map +1 -0
  131. package/components/VirtualWalkthrough/gsplat-fade-crop-effect.js +119 -0
  132. package/components/VirtualWalkthrough/walkthrough-camera.d.ts +77 -0
  133. package/components/VirtualWalkthrough/walkthrough-camera.d.ts.map +1 -0
  134. package/components/VirtualWalkthrough/walkthrough-camera.js +320 -0
  135. package/components/svg/BlobbyGrayIconImage.js +36 -41
  136. package/components/svg/BlobbyGrayIconImport.js +36 -41
  137. package/components/svg/BlobbyGrayIconUploadToTheCloud.js +36 -41
  138. package/components/svg/BlobbyIconCloudChecked.js +161 -158
  139. package/components/svg/BlobbyIconExportOrUploadPhoto.js +161 -158
  140. package/components/svg/BlobbyIconFolder.js +161 -158
  141. package/components/svg/BlobbyIconGraphReport.js +161 -158
  142. package/components/svg/BlobbyIconHappy.js +161 -158
  143. package/components/svg/BlobbyIconHeartMonitor.js +161 -158
  144. package/components/svg/BlobbyIconLeaf.js +161 -158
  145. package/components/svg/BlobbyIconLibrary.js +161 -158
  146. package/components/svg/BlobbyIconNursery.js +163 -160
  147. package/components/svg/BlobbyIconOrganization.js +161 -158
  148. package/components/svg/BlobbyIconParchment.js +161 -158
  149. package/components/svg/BlobbyIconPeople.js +161 -158
  150. package/components/svg/BlobbyIconSeedBank.js +161 -158
  151. package/components/svg/BlobbyIconSeedling.js +161 -158
  152. package/components/svg/BlobbyIconSeeds.js +161 -158
  153. package/components/svg/BlobbyIconSite.js +164 -161
  154. package/components/svg/BlobbyIconSparkles.js +161 -158
  155. package/components/svg/BlobbyIconWrench.js +161 -158
  156. package/components/svg/Bug.js +18 -27
  157. package/components/svg/Calendar.js +18 -27
  158. package/components/svg/CaretDown.js +18 -27
  159. package/components/svg/CaretLeft.js +18 -27
  160. package/components/svg/CaretRight.js +18 -27
  161. package/components/svg/CaretUp.js +18 -27
  162. package/components/svg/ChevronDown.js +18 -27
  163. package/components/svg/ChevronUp.js +18 -27
  164. package/components/svg/Close.js +18 -27
  165. package/components/svg/Critical.js +18 -27
  166. package/components/svg/Edit.js +161 -158
  167. package/components/svg/Error.js +18 -27
  168. package/components/svg/Filter.js +18 -27
  169. package/components/svg/Folder.js +18 -27
  170. package/components/svg/Help.js +18 -27
  171. package/components/svg/Home.js +18 -27
  172. package/components/svg/IconAdd.js +18 -27
  173. package/components/svg/IconArrowRight.js +19 -28
  174. package/components/svg/IconBusinessNetwork.js +18 -27
  175. package/components/svg/IconCalendar.d.ts +1 -1
  176. package/components/svg/IconCalendar.d.ts.map +1 -1
  177. package/components/svg/IconCalendar.js +18 -27
  178. package/components/svg/IconCancel.js +18 -27
  179. package/components/svg/IconChargingBattery.js +18 -27
  180. package/components/svg/IconChecklist.js +19 -28
  181. package/components/svg/IconCheckmark.js +18 -27
  182. package/components/svg/IconCoinInHand.js +18 -27
  183. package/components/svg/IconColumns.js +18 -27
  184. package/components/svg/IconComment.js +18 -27
  185. package/components/svg/IconDashboard.js +18 -27
  186. package/components/svg/IconDataMigration.js +18 -27
  187. package/components/svg/IconDocument.d.ts +8 -0
  188. package/components/svg/IconDocument.d.ts.map +1 -0
  189. package/components/svg/IconDocument.js +21 -0
  190. package/components/svg/IconDownloadFromTheCloud.js +19 -28
  191. package/components/svg/IconEdit.js +19 -28
  192. package/components/svg/IconExpand.js +19 -28
  193. package/components/svg/IconExport.js +18 -27
  194. package/components/svg/IconExternalLink.js +18 -27
  195. package/components/svg/IconEye.js +18 -27
  196. package/components/svg/IconEyeOff.js +18 -27
  197. package/components/svg/IconFile.js +18 -27
  198. package/components/svg/IconFolder.js +18 -27
  199. package/components/svg/IconFullScreen.js +18 -27
  200. package/components/svg/IconFutures.js +18 -27
  201. package/components/svg/IconGraphReport.js +18 -27
  202. package/components/svg/IconHeartMonitor.js +18 -27
  203. package/components/svg/IconHelp.js +19 -28
  204. package/components/svg/IconHistory.js +18 -27
  205. package/components/svg/IconImport.js +18 -27
  206. package/components/svg/IconIndex.js +18 -27
  207. package/components/svg/IconLayers.js +18 -27
  208. package/components/svg/IconLibrary.js +18 -27
  209. package/components/svg/IconList.js +18 -27
  210. package/components/svg/IconLivePlant.js +18 -27
  211. package/components/svg/IconLocations.js +18 -27
  212. package/components/svg/IconMail.js +18 -27
  213. package/components/svg/IconManager.js +18 -27
  214. package/components/svg/IconMarker.js +18 -27
  215. package/components/svg/IconMenu.js +18 -27
  216. package/components/svg/IconMenuHorizontal.js +18 -27
  217. package/components/svg/IconModule.js +18 -27
  218. package/components/svg/IconMyLocation.js +18 -27
  219. package/components/svg/IconNote.js +19 -28
  220. package/components/svg/IconNursery.js +18 -27
  221. package/components/svg/IconOrg.js +18 -27
  222. package/components/svg/IconParchment.js +18 -27
  223. package/components/svg/IconPhoto.js +18 -27
  224. package/components/svg/IconPlantsFilled.js +18 -27
  225. package/components/svg/IconRedo.js +18 -27
  226. package/components/svg/IconRestorationSite.js +18 -27
  227. package/components/svg/IconSeedBank.js +18 -27
  228. package/components/svg/IconSeedling.js +18 -27
  229. package/components/svg/IconSettings.js +18 -27
  230. package/components/svg/IconSlice.js +18 -27
  231. package/components/svg/IconSubmit.js +18 -27
  232. package/components/svg/IconSubtract.js +19 -28
  233. package/components/svg/IconSynced.js +18 -27
  234. package/components/svg/IconTrashCan.js +18 -27
  235. package/components/svg/IconTreasureMap.js +18 -27
  236. package/components/svg/IconUnavailable.js +18 -27
  237. package/components/svg/IconUndo.js +18 -27
  238. package/components/svg/IconVariable.js +18 -27
  239. package/components/svg/IconVideo.js +19 -28
  240. package/components/svg/IconWifi.js +18 -27
  241. package/components/svg/Info.js +18 -27
  242. package/components/svg/Key.js +18 -27
  243. package/components/svg/Leaf.js +18 -27
  244. package/components/svg/Lock.js +18 -27
  245. package/components/svg/Logo.js +40 -45
  246. package/components/svg/MenuVertical.js +18 -27
  247. package/components/svg/Notification.js +18 -27
  248. package/components/svg/Person.js +18 -27
  249. package/components/svg/Plus.js +18 -27
  250. package/components/svg/RestorationSite.js +18 -27
  251. package/components/svg/Search.js +18 -27
  252. package/components/svg/Seeds.js +18 -27
  253. package/components/svg/Site.js +18 -27
  254. package/components/svg/Sparkles.js +18 -27
  255. package/components/svg/Species.js +18 -27
  256. package/components/svg/Species2.js +161 -158
  257. package/components/svg/Spinner.js +27 -36
  258. package/components/svg/Star.js +18 -27
  259. package/components/svg/Success.js +18 -27
  260. package/components/svg/SuccessFilled.js +18 -27
  261. package/components/svg/TerrawareLogoDesktop.js +44 -49
  262. package/components/svg/TerrawareLogoMobile.js +20 -29
  263. package/components/svg/Touchscreen.js +18 -27
  264. package/components/svg/UploadCloud.js +161 -158
  265. package/components/svg/Warning.js +18 -27
  266. package/components/svg/WelcomeClipboard.js +130 -135
  267. package/components/svg/index.d.ts +1 -0
  268. package/components/svg/index.d.ts.map +1 -1
  269. package/components/svg/index.js +127 -888
  270. package/components/table/EnhancedTableToolbar.js +45 -47
  271. package/components/table/EnhancedTableToolbarV2.js +18 -26
  272. package/components/table/TableCellRenderer.js +137 -143
  273. package/components/table/TableHeader.js +45 -47
  274. package/components/table/TableHeaderItem.js +65 -64
  275. package/components/table/density.js +3 -11
  276. package/components/table/index.js +225 -218
  277. package/components/table/sort.js +8 -18
  278. package/components/table/sort.test.js +6 -8
  279. package/components/table/types.js +1 -5
  280. package/components/types/index.js +1 -5
  281. package/hooks/useBoolean.d.ts +4 -0
  282. package/hooks/useBoolean.d.ts.map +1 -0
  283. package/hooks/useBoolean.js +12 -0
  284. package/hooks/useCameraPosition.d.ts +8 -0
  285. package/hooks/useCameraPosition.d.ts.map +1 -0
  286. package/hooks/useCameraPosition.js +33 -0
  287. package/index.js +57 -398
  288. package/license-report.html +1 -1
  289. package/package.json +10 -3
  290. package/style-dictionary-dist/TerrawareTheme.js +1 -7
  291. package/theme.js +7 -14
  292. package/utils/color.d.ts +2 -0
  293. package/utils/color.d.ts.map +1 -0
  294. package/utils/color.js +14 -0
  295. package/utils/date.js +13 -24
  296. package/utils/date.test.js +40 -43
  297. package/utils/index.js +5 -53
  298. package/utils/preventDefaultEvent.js +1 -7
  299. package/utils/text.js +2 -9
  300. package/utils/text.test.js +9 -11
  301. package/utils/useDeviceInfo.js +10 -16
  302. package/virtualWalkthrough.d.ts +31 -0
  303. package/virtualWalkthrough.d.ts.map +1 -0
  304. package/virtualWalkthrough.js +28 -0
@@ -0,0 +1,320 @@
1
+ import { Quat, Script, Vec3, math } from 'playcanvas';
2
+ import { computeGroundPlane, yOnPlane } from './groundPlane';
3
+
4
+ /**
5
+ * First-person walkthrough camera for Gaussian Splat scenes.
6
+ *
7
+ * - Pointer drag (mouse or touch) rotates the camera (pitch + yaw) with damping
8
+ * matching PlayCanvas CameraControls' rotateDamping=0.98.
9
+ * - WASD / arrow keys move along the XZ plane using yaw-only direction, so
10
+ * movement is always horizontal regardless of where the camera is pointing.
11
+ * - Mouse wheel moves forward/backward along the XZ plane.
12
+ * - Y position is clamped between boundsMin.y and boundsMax.y; set them equal
13
+ * to lock vertical position entirely.
14
+ * - Exposes reset() and focusPoint to stay compatible with useCameraPosition.
15
+ */
16
+
17
+ const _quat = new Quat();
18
+ const _flatForward = new Vec3();
19
+ const _flatRight = new Vec3();
20
+
21
+ /** Frame-rate-independent damping lerp rate — matches PlayCanvas CameraControls. */
22
+ const dampRate = (damping, dt) => 1 - Math.pow(damping, dt * 1000);
23
+
24
+ /** Below this angular delta (degrees) the damped lerp snaps to its target and stops writing. */
25
+ const ANGLE_EPSILON = 1e-3;
26
+
27
+ /** Below this positional delta (world units) an idle frame skips the transform write. */
28
+ const POSITION_EPSILON = 1e-5;
29
+ export class WalkthroughCamera extends Script {
30
+ static scriptName = 'walkthroughCamera';
31
+
32
+ /** @attribute */
33
+ moveSpeed = 0.3;
34
+
35
+ /** @attribute */
36
+ moveFastSpeed = 0.5;
37
+
38
+ /** @attribute */
39
+ moveSlowSpeed = 0.15;
40
+
41
+ /** @attribute */
42
+ lookSensitivity = 0.1;
43
+
44
+ /** @attribute */
45
+ rotateDamping = 0.98;
46
+
47
+ /** @attribute */
48
+ pitchMin = -85;
49
+
50
+ /** @attribute */
51
+ pitchMax = 85;
52
+
53
+ /** @attribute */
54
+ scrollSpeed = 0.001;
55
+
56
+ /** @attribute */
57
+ boundsCenter = new Vec3(0, 0, 0);
58
+
59
+ /** @attribute */
60
+ boundsRadius = 10;
61
+
62
+ /** @attribute */
63
+ freeFly = false;
64
+
65
+ /** @attribute */
66
+ enableFly = true;
67
+
68
+ /** @attribute */
69
+ averageCameraHeight = 0;
70
+
71
+ /**
72
+ * Three world-space points defining the ground plane.
73
+ * When provided, the camera Y position is derived from this plane during non-freeFly movement.
74
+ *
75
+ * Not a React prop — must be set directly on the script instance via useEffect. The @playcanvas/react
76
+ * Script component is wrapped in memo() whose shallowEquals comparator returns early on the first prop
77
+ * with a .equals() method (Vec3), so any prop listed after boundsCenter is never compared and the
78
+ * component won't re-render when it changes. Set via:
79
+ * app.root.findByName('camera')?.script?.walkthroughCamera.groundPlane = points
80
+ * Should be updated if shallowEquals is fixed (see https://github.com/playcanvas/react/pull/298)
81
+ */
82
+ groundPlane = [];
83
+
84
+ // Current (damped) angles applied to the entity each frame.
85
+ _pitch = 0;
86
+ _yaw = 0;
87
+
88
+ // Target angles — updated immediately on pointer move, entity lerps toward them.
89
+ _targetPitch = 0;
90
+ _targetYaw = 0;
91
+ _isDragging = false;
92
+ _lastX = 0;
93
+ _lastY = 0;
94
+ _scrollDelta = 0;
95
+ _keys = {};
96
+ _removeListeners = [];
97
+
98
+ // Cached plane derived from groundPlane attribute. Computed once when 3 points become available.
99
+ _planeNormal = new Vec3(0, 1, 0);
100
+ _planePoint = new Vec3(0, 0, 0);
101
+ _hasGroundPlane = false;
102
+ _syncGroundPlane() {
103
+ if (this._hasGroundPlane || this.groundPlane.length < 3) {
104
+ return;
105
+ }
106
+ const plane = computeGroundPlane(this.groundPlane);
107
+ if (!plane) {
108
+ return;
109
+ }
110
+ this._planeNormal.copy(plane.normal);
111
+ this._planePoint.copy(plane.point);
112
+ this._hasGroundPlane = true;
113
+ }
114
+ initialize() {
115
+ // Start horizontal; reset() will set the correct pose once splat data loads.
116
+ this._pitch = 0;
117
+ this._yaw = 0;
118
+ this._targetPitch = 0;
119
+ this._targetYaw = 0;
120
+ const canvas = this.app.graphicsDevice.canvas;
121
+ const onPointerDown = e => {
122
+ this._isDragging = true;
123
+ this._lastX = e.clientX;
124
+ this._lastY = e.clientY;
125
+ try {
126
+ canvas.setPointerCapture(e.pointerId);
127
+ } catch {
128
+ // ignore — canvas may not be focusable yet
129
+ }
130
+ };
131
+ const onPointerMove = e => {
132
+ if (!this._isDragging) {
133
+ return;
134
+ }
135
+ const dx = e.clientX - this._lastX;
136
+ const dy = e.clientY - this._lastY;
137
+ this._lastX = e.clientX;
138
+ this._lastY = e.clientY;
139
+ this._targetYaw -= dx * this.lookSensitivity;
140
+ this._targetPitch = math.clamp(this._targetPitch - dy * this.lookSensitivity, this.pitchMin, this.pitchMax);
141
+ };
142
+ const onPointerUp = e => {
143
+ this._isDragging = false;
144
+ try {
145
+ canvas.releasePointerCapture(e.pointerId);
146
+ } catch {
147
+ // ignore
148
+ }
149
+ };
150
+ const onWheel = e => {
151
+ e.preventDefault();
152
+ this._scrollDelta += e.deltaY;
153
+ };
154
+ const onContextMenu = e => e.preventDefault();
155
+ const onKeyDown = e => {
156
+ this._keys[e.code] = true;
157
+ };
158
+ const onKeyUp = e => {
159
+ this._keys[e.code] = false;
160
+ };
161
+ const onBlur = () => {
162
+ this._keys = {};
163
+ this._isDragging = false;
164
+ };
165
+ canvas.addEventListener('pointerdown', onPointerDown);
166
+ canvas.addEventListener('pointermove', onPointerMove);
167
+ canvas.addEventListener('pointerup', onPointerUp);
168
+ canvas.addEventListener('pointercancel', onPointerUp);
169
+ canvas.addEventListener('wheel', onWheel, {
170
+ passive: false
171
+ });
172
+ canvas.addEventListener('contextmenu', onContextMenu);
173
+ window.addEventListener('keydown', onKeyDown);
174
+ window.addEventListener('keyup', onKeyUp);
175
+ window.addEventListener('blur', onBlur);
176
+ this._removeListeners = [() => canvas.removeEventListener('pointerdown', onPointerDown), () => canvas.removeEventListener('pointermove', onPointerMove), () => canvas.removeEventListener('pointerup', onPointerUp), () => canvas.removeEventListener('pointercancel', onPointerUp), () => canvas.removeEventListener('wheel', onWheel), () => canvas.removeEventListener('contextmenu', onContextMenu), () => window.removeEventListener('keydown', onKeyDown), () => window.removeEventListener('keyup', onKeyUp), () => window.removeEventListener('blur', onBlur)];
177
+ }
178
+
179
+ /**
180
+ * Position the camera at `position` looking toward `focus`.
181
+ * Compatible with the useCameraPosition hook's reset() call.
182
+ */
183
+ reset(focus, position) {
184
+ this.entity.setPosition(position);
185
+ const dx = focus.x - position.x;
186
+ const dy = focus.y - position.y;
187
+ const dz = focus.z - position.z;
188
+ const len = Math.sqrt(dx * dx + dy * dy + dz * dz);
189
+ if (len > 0) {
190
+ // PlayCanvas uses right-handed CCW Y rotation: forward = (-sinθ, 0, -cosθ),
191
+ // so to look toward (dx, 0, dz): θ = atan2(-dx, -dz).
192
+ this._yaw = Math.atan2(-dx, -dz) * (180 / Math.PI);
193
+ this._pitch = Math.atan2(-dy, Math.sqrt(dx * dx + dz * dz)) * (180 / Math.PI);
194
+ this._pitch = math.clamp(this._pitch, this.pitchMin, this.pitchMax);
195
+ }
196
+
197
+ // Snap targets so there's no damped drift from the previous pose.
198
+ this._targetPitch = this._pitch;
199
+ this._targetYaw = this._yaw;
200
+ this.entity.setEulerAngles(this._pitch, this._yaw, 0);
201
+ }
202
+ get currentYaw() {
203
+ return this._targetYaw;
204
+ }
205
+ get currentPitch() {
206
+ return this._targetPitch;
207
+ }
208
+
209
+ /**
210
+ * Orbit the camera by `yawDelta` degrees around `boundsCenter`.
211
+ * Called by AutoRotator
212
+ */
213
+ orbitStep(yawDelta) {
214
+ this._syncGroundPlane();
215
+ const pos = this.entity.getPosition();
216
+ const dx = pos.x - this.boundsCenter.x;
217
+ const dz = pos.z - this.boundsCenter.z;
218
+ const radius = Math.sqrt(dx * dx + dz * dz) || this.boundsRadius * 0.5;
219
+ const currentAngle = Math.atan2(dz, dx);
220
+ const newAngle = currentAngle + yawDelta * Math.PI / 180;
221
+ const nx = this.boundsCenter.x + radius * Math.cos(newAngle);
222
+ const nz = this.boundsCenter.z + radius * Math.sin(newAngle);
223
+ const ny = this._hasGroundPlane ? yOnPlane(nx, nz, this._planeNormal, this._planePoint, this.boundsCenter.y) + this.averageCameraHeight : this.boundsCenter.y;
224
+ this.entity.setPosition(nx, ny, nz);
225
+ const faceDx = this.boundsCenter.x - nx;
226
+ const faceDz = this.boundsCenter.z - nz;
227
+ this._yaw = Math.atan2(-faceDx, -faceDz) * (180 / Math.PI);
228
+ this._targetYaw = this._yaw;
229
+ this.entity.setEulerAngles(this._pitch, this._yaw, 0);
230
+ }
231
+
232
+ /**
233
+ * Returns the point directly in front of the camera.
234
+ * Compatible with the useCameraPosition hook's focusPoint read.
235
+ */
236
+ get focusPoint() {
237
+ const pos = this.entity.getPosition();
238
+ _quat.setFromEulerAngles(this._pitch, this._yaw, 0);
239
+ _quat.transformVector(Vec3.FORWARD, _flatForward);
240
+ return new Vec3(pos.x + _flatForward.x, pos.y + _flatForward.y, pos.z + _flatForward.z);
241
+ }
242
+ update(dt) {
243
+ this._syncGroundPlane();
244
+
245
+ // Lerp current angles toward targets using the same damping as CameraControls.
246
+ // Snap to the target once within ANGLE_EPSILON so the asymptotic lerp actually
247
+ // settles instead of emitting ever-smaller micro-rotations for ~0.4s after each
248
+ // drag. The gsplat sorter guards its own re-sorts with an epsilon, so this mainly
249
+ // trims that sort tail; it does not affect per-frame rendering (autoRender does).
250
+ const r = dampRate(this.rotateDamping, dt);
251
+ let nextPitch = this._pitch + (this._targetPitch - this._pitch) * r;
252
+ let nextYaw = this._yaw + (this._targetYaw - this._yaw) * r;
253
+ if (Math.abs(this._targetPitch - nextPitch) < ANGLE_EPSILON) {
254
+ nextPitch = this._targetPitch;
255
+ }
256
+ if (Math.abs(this._targetYaw - nextYaw) < ANGLE_EPSILON) {
257
+ nextYaw = this._targetYaw;
258
+ }
259
+ nextPitch = math.clamp(nextPitch, this.pitchMin, this.pitchMax);
260
+
261
+ // Only write the rotation when it actually changed, to avoid needlessly dirtying
262
+ // the scene node once the angles have settled.
263
+ const anglesChanged = nextPitch !== this._pitch || nextYaw !== this._yaw;
264
+ this._pitch = nextPitch;
265
+ this._yaw = nextYaw;
266
+ if (anglesChanged) {
267
+ this.entity.setEulerAngles(this._pitch, this._yaw, 0);
268
+ }
269
+ const pos = this.entity.getPosition();
270
+ let nx = pos.x;
271
+ let ny = pos.y;
272
+ let nz = pos.z;
273
+ if (this.enableFly) {
274
+ const fast = this._keys.ShiftLeft || this._keys.ShiftRight;
275
+ const slow = this._keys.ControlLeft || this._keys.ControlRight;
276
+ const speed = (fast ? this.moveFastSpeed : slow ? this.moveSlowSpeed : this.moveSpeed) * dt;
277
+ const fwd = (this._keys.KeyW || this._keys.ArrowUp ? 1 : 0) - (this._keys.KeyS || this._keys.ArrowDown ? 1 : 0);
278
+ const strafe = (this._keys.KeyD || this._keys.ArrowRight ? 1 : 0) - (this._keys.KeyA || this._keys.ArrowLeft ? 1 : 0);
279
+ const scrollFwd = -this._scrollDelta * this.scrollSpeed;
280
+ if (fwd !== 0 || strafe !== 0 || scrollFwd !== 0) {
281
+ // Use yaw-only rotation so movement is always horizontal.
282
+ _quat.setFromEulerAngles(0, this._yaw, 0);
283
+ _quat.transformVector(Vec3.FORWARD, _flatForward);
284
+ _quat.transformVector(Vec3.RIGHT, _flatRight);
285
+ nx += _flatForward.x * (fwd * speed + scrollFwd) + _flatRight.x * strafe * speed;
286
+ nz += _flatForward.z * (fwd * speed + scrollFwd) + _flatRight.z * strafe * speed;
287
+ }
288
+ if (this.freeFly) {
289
+ const up = (this._keys.KeyE ? 1 : 0) - (this._keys.KeyQ ? 1 : 0);
290
+ if (up !== 0) {
291
+ ny += up * speed;
292
+ }
293
+ }
294
+ }
295
+ this._scrollDelta = 0;
296
+ if (!this.freeFly) {
297
+ // Circular XZ clamp: project back onto the circle edge if outside.
298
+ const cdx = nx - this.boundsCenter.x;
299
+ const cdz = nz - this.boundsCenter.z;
300
+ const dist = Math.sqrt(cdx * cdx + cdz * cdz);
301
+ if (dist > this.boundsRadius) {
302
+ const scale = this.boundsRadius / dist;
303
+ nx = this.boundsCenter.x + cdx * scale;
304
+ nz = this.boundsCenter.z + cdz * scale;
305
+ }
306
+ }
307
+ const groundY = this._hasGroundPlane ? yOnPlane(nx, nz, this._planeNormal, this._planePoint, this.boundsCenter.y) + this.averageCameraHeight : this.boundsCenter.y;
308
+ const targetY = this.freeFly ? ny : groundY;
309
+ // Only write the position when it actually moved. This keeps the scene node clean on
310
+ // idle frames; note it does not stop per-frame rasterization — while autoRender is on
311
+ // the app renders every frame regardless of whether the transform changed.
312
+ if (Math.abs(nx - pos.x) > POSITION_EPSILON || Math.abs(targetY - pos.y) > POSITION_EPSILON || Math.abs(nz - pos.z) > POSITION_EPSILON) {
313
+ this.entity.setPosition(nx, targetY, nz);
314
+ }
315
+ }
316
+ destroy() {
317
+ this._removeListeners.forEach(fn => fn());
318
+ this._removeListeners = [];
319
+ }
320
+ }
@@ -1,42 +1,37 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
1
+ import * as React from 'react';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ const SvgBlobbyGrayIconImage = ({
4
+ title,
5
+ titleId,
6
+ ...props
7
+ }) => /*#__PURE__*/_jsxs("svg", {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ fill: "none",
10
+ viewBox: "0 0 200 128",
11
+ "aria-labelledby": titleId,
12
+ ...props,
13
+ children: [title ? /*#__PURE__*/_jsx("title", {
14
+ id: titleId,
15
+ children: title
16
+ }) : null, /*#__PURE__*/_jsxs("g", {
17
+ clipPath: "url(#blobby-gray-icon-image_svg__a)",
18
+ children: [/*#__PURE__*/_jsx("path", {
19
+ fill: "#F1F0EC",
20
+ fillRule: "evenodd",
21
+ d: "M113.962 6.222c26.535 2.074 38.447 30.862 44.693 56.735 4.621 19.146-2.901 38.537-18.932 49.978-15.595 11.131-35.55 10.486-51.986.639C63.732 99.19 34.311 80.943 40.954 53.757c7.619-31.19 41-50.037 73.009-47.535",
22
+ clipRule: "evenodd"
23
+ }), /*#__PURE__*/_jsx("path", {
24
+ fill: "#7F775B",
25
+ d: "M83.333 40C79.307 40 76 43.307 76 47.333v33.334C76 84.693 79.307 88 83.333 88h33.334c4.026 0 7.333-3.307 7.333-7.333V47.333c0-4.026-3.307-7.333-7.333-7.333zm0 4h33.334A3.304 3.304 0 0 1 120 47.333v27.274l-8.016-7.755-.002-.003a5.4 5.4 0 0 0-3.75-1.516 5.4 5.4 0 0 0-3.75 1.519l-2.732 2.643-8.24-7.972A5.4 5.4 0 0 0 89.758 60a5.4 5.4 0 0 0-3.75 1.52l-.003.003L80 67.333v-20A3.304 3.304 0 0 1 83.333 44m25.334 5.333c-1.834 0-3.462.76-4.495 1.922-1.033 1.163-1.505 2.634-1.505 4.078s.472 2.916 1.505 4.078 2.661 1.922 4.495 1.922c1.833 0 3.461-.76 4.494-1.922 1.034-1.162 1.506-2.633 1.506-4.078 0-1.444-.472-2.915-1.506-4.078-1.033-1.162-2.661-1.922-4.494-1.922m0 4c.833 0 1.205.24 1.505.578s.495.867.495 1.422c0 .556-.195 1.085-.495 1.422-.3.338-.672.578-1.505.578-.834 0-1.205-.24-1.506-.578s-.494-.866-.494-1.422.194-1.084.494-1.422c.301-.337.672-.578 1.506-.578M89.757 64a1.37 1.37 0 0 1 .972.398l8.143 7.878L86.752 84h-3.419A3.304 3.304 0 0 1 80 80.667v-7.769l8.787-8.5c.283-.274.626-.398.97-.398m18.475 5.333c.353 0 .691.123.971.394L120 80.172v.495A3.304 3.304 0 0 1 116.667 84h-24.16l14.756-14.273c.277-.268.618-.394.969-.394"
26
+ })]
27
+ }), /*#__PURE__*/_jsx("defs", {
28
+ children: /*#__PURE__*/_jsx("clipPath", {
29
+ id: "blobby-gray-icon-image_svg__a",
30
+ children: /*#__PURE__*/_jsx("path", {
31
+ fill: "#fff",
32
+ d: "M0 0h200v128H0z"
33
+ })
34
+ })
35
+ })]
7
36
  });
8
- exports.default = void 0;
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
10
- var React = _interopRequireWildcard(require("react"));
11
- const _excluded = ["title", "titleId"];
12
- const SvgBlobbyGrayIconImage = _ref => {
13
- let {
14
- title,
15
- titleId
16
- } = _ref,
17
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
18
- return /*#__PURE__*/React.createElement("svg", Object.assign({
19
- xmlns: "http://www.w3.org/2000/svg",
20
- fill: "none",
21
- viewBox: "0 0 200 128",
22
- "aria-labelledby": titleId
23
- }, props), title ? /*#__PURE__*/React.createElement("title", {
24
- id: titleId
25
- }, title) : null, /*#__PURE__*/React.createElement("g", {
26
- clipPath: "url(#blobby-gray-icon-image_svg__a)"
27
- }, /*#__PURE__*/React.createElement("path", {
28
- fill: "#F1F0EC",
29
- fillRule: "evenodd",
30
- d: "M113.962 6.222c26.535 2.074 38.447 30.862 44.693 56.735 4.621 19.146-2.901 38.537-18.932 49.978-15.595 11.131-35.55 10.486-51.986.639C63.732 99.19 34.311 80.943 40.954 53.757c7.619-31.19 41-50.037 73.009-47.535",
31
- clipRule: "evenodd"
32
- }), /*#__PURE__*/React.createElement("path", {
33
- fill: "#7F775B",
34
- d: "M83.333 40C79.307 40 76 43.307 76 47.333v33.334C76 84.693 79.307 88 83.333 88h33.334c4.026 0 7.333-3.307 7.333-7.333V47.333c0-4.026-3.307-7.333-7.333-7.333zm0 4h33.334A3.304 3.304 0 0 1 120 47.333v27.274l-8.016-7.755-.002-.003a5.4 5.4 0 0 0-3.75-1.516 5.4 5.4 0 0 0-3.75 1.519l-2.732 2.643-8.24-7.972A5.4 5.4 0 0 0 89.758 60a5.4 5.4 0 0 0-3.75 1.52l-.003.003L80 67.333v-20A3.304 3.304 0 0 1 83.333 44m25.334 5.333c-1.834 0-3.462.76-4.495 1.922-1.033 1.163-1.505 2.634-1.505 4.078s.472 2.916 1.505 4.078 2.661 1.922 4.495 1.922c1.833 0 3.461-.76 4.494-1.922 1.034-1.162 1.506-2.633 1.506-4.078 0-1.444-.472-2.915-1.506-4.078-1.033-1.162-2.661-1.922-4.494-1.922m0 4c.833 0 1.205.24 1.505.578s.495.867.495 1.422c0 .556-.195 1.085-.495 1.422-.3.338-.672.578-1.505.578-.834 0-1.205-.24-1.506-.578s-.494-.866-.494-1.422.194-1.084.494-1.422c.301-.337.672-.578 1.506-.578M89.757 64a1.37 1.37 0 0 1 .972.398l8.143 7.878L86.752 84h-3.419A3.304 3.304 0 0 1 80 80.667v-7.769l8.787-8.5c.283-.274.626-.398.97-.398m18.475 5.333c.353 0 .691.123.971.394L120 80.172v.495A3.304 3.304 0 0 1 116.667 84h-24.16l14.756-14.273c.277-.268.618-.394.969-.394"
35
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
36
- id: "blobby-gray-icon-image_svg__a"
37
- }, /*#__PURE__*/React.createElement("path", {
38
- fill: "#fff",
39
- d: "M0 0h200v128H0z"
40
- }))));
41
- };
42
- var _default = exports.default = SvgBlobbyGrayIconImage;
37
+ export default SvgBlobbyGrayIconImage;
@@ -1,42 +1,37 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
1
+ import * as React from 'react';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ const SvgBlobbyGrayIconImport = ({
4
+ title,
5
+ titleId,
6
+ ...props
7
+ }) => /*#__PURE__*/_jsxs("svg", {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ fill: "none",
10
+ viewBox: "0 0 200 128",
11
+ "aria-labelledby": titleId,
12
+ ...props,
13
+ children: [title ? /*#__PURE__*/_jsx("title", {
14
+ id: titleId,
15
+ children: title
16
+ }) : null, /*#__PURE__*/_jsxs("g", {
17
+ clipPath: "url(#blobby-gray-icon-import_svg__a)",
18
+ children: [/*#__PURE__*/_jsx("path", {
19
+ fill: "#F1F0EC",
20
+ fillRule: "evenodd",
21
+ d: "M97.492 4.026c24.033-.76 45.335 14.966 53.284 37.66 8.572 24.47 4.488 52.73-16.101 68.491-22.132 16.943-53.93 19.23-75.615 1.718C39.75 96.3 45.34 68.141 53.67 44.76c7.4-20.77 21.784-40.036 43.822-40.734",
22
+ clipRule: "evenodd"
23
+ }), /*#__PURE__*/_jsx("path", {
24
+ fill: "#7F775B",
25
+ d: "M84.667 37.333c-3.29 0-6 2.71-6 6v41.334c0 3.29 2.71 6 6 6h30.666c3.29 0 6-2.71 6-6v-28c0-.53-.21-1.04-.586-1.414l-.02-.021-17.313-17.313a2 2 0 0 0-1.414-.586zm0 4H100v11.334c0 3.29 2.71 6 6 6h11.333v26c0 1.128-.871 2-2 2H84.667c-1.129 0-2-.872-2-2V43.333c0-1.128.871-2 2-2M104 44.161l10.505 10.506H106c-1.129 0-2-.872-2-2zM99.971 60a2 2 0 0 0-1.385.586l-5.333 5.333a2 2 0 1 0 2.828 2.828L98 66.828V74A2 2 0 1 0 102 74v-7.172l1.919 1.92a2.002 2.002 0 0 0 3.295-.63 1.99 1.99 0 0 0-.016-1.55 2 2 0 0 0-.451-.649l-5.333-5.333A2 2 0 0 0 99.971 60m-8.638 18.667a2.002 2.002 0 0 0-1.873 2.772 2 2 0 0 0 1.873 1.228h17.334a2 2 0 1 0 0-4z"
26
+ })]
27
+ }), /*#__PURE__*/_jsx("defs", {
28
+ children: /*#__PURE__*/_jsx("clipPath", {
29
+ id: "blobby-gray-icon-import_svg__a",
30
+ children: /*#__PURE__*/_jsx("path", {
31
+ fill: "#fff",
32
+ d: "M0 0h200v128H0z"
33
+ })
34
+ })
35
+ })]
7
36
  });
8
- exports.default = void 0;
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
10
- var React = _interopRequireWildcard(require("react"));
11
- const _excluded = ["title", "titleId"];
12
- const SvgBlobbyGrayIconImport = _ref => {
13
- let {
14
- title,
15
- titleId
16
- } = _ref,
17
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
18
- return /*#__PURE__*/React.createElement("svg", Object.assign({
19
- xmlns: "http://www.w3.org/2000/svg",
20
- fill: "none",
21
- viewBox: "0 0 200 128",
22
- "aria-labelledby": titleId
23
- }, props), title ? /*#__PURE__*/React.createElement("title", {
24
- id: titleId
25
- }, title) : null, /*#__PURE__*/React.createElement("g", {
26
- clipPath: "url(#blobby-gray-icon-import_svg__a)"
27
- }, /*#__PURE__*/React.createElement("path", {
28
- fill: "#F1F0EC",
29
- fillRule: "evenodd",
30
- d: "M97.492 4.026c24.033-.76 45.335 14.966 53.284 37.66 8.572 24.47 4.488 52.73-16.101 68.491-22.132 16.943-53.93 19.23-75.615 1.718C39.75 96.3 45.34 68.141 53.67 44.76c7.4-20.77 21.784-40.036 43.822-40.734",
31
- clipRule: "evenodd"
32
- }), /*#__PURE__*/React.createElement("path", {
33
- fill: "#7F775B",
34
- d: "M84.667 37.333c-3.29 0-6 2.71-6 6v41.334c0 3.29 2.71 6 6 6h30.666c3.29 0 6-2.71 6-6v-28c0-.53-.21-1.04-.586-1.414l-.02-.021-17.313-17.313a2 2 0 0 0-1.414-.586zm0 4H100v11.334c0 3.29 2.71 6 6 6h11.333v26c0 1.128-.871 2-2 2H84.667c-1.129 0-2-.872-2-2V43.333c0-1.128.871-2 2-2M104 44.161l10.505 10.506H106c-1.129 0-2-.872-2-2zM99.971 60a2 2 0 0 0-1.385.586l-5.333 5.333a2 2 0 1 0 2.828 2.828L98 66.828V74A2 2 0 1 0 102 74v-7.172l1.919 1.92a2.002 2.002 0 0 0 3.295-.63 1.99 1.99 0 0 0-.016-1.55 2 2 0 0 0-.451-.649l-5.333-5.333A2 2 0 0 0 99.971 60m-8.638 18.667a2.002 2.002 0 0 0-1.873 2.772 2 2 0 0 0 1.873 1.228h17.334a2 2 0 1 0 0-4z"
35
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
36
- id: "blobby-gray-icon-import_svg__a"
37
- }, /*#__PURE__*/React.createElement("path", {
38
- fill: "#fff",
39
- d: "M0 0h200v128H0z"
40
- }))));
41
- };
42
- var _default = exports.default = SvgBlobbyGrayIconImport;
37
+ export default SvgBlobbyGrayIconImport;
@@ -1,42 +1,37 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
- Object.defineProperty(exports, "__esModule", {
6
- value: true
1
+ import * as React from 'react';
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ const SvgBlobbyGrayIconUploadToTheCloud = ({
4
+ title,
5
+ titleId,
6
+ ...props
7
+ }) => /*#__PURE__*/_jsxs("svg", {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ fill: "none",
10
+ viewBox: "0 0 200 128",
11
+ "aria-labelledby": titleId,
12
+ ...props,
13
+ children: [title ? /*#__PURE__*/_jsx("title", {
14
+ id: titleId,
15
+ children: title
16
+ }) : null, /*#__PURE__*/_jsxs("g", {
17
+ clipPath: "url(#blobby-gray-icon-upload-to-the-cloud_svg__a)",
18
+ children: [/*#__PURE__*/_jsx("path", {
19
+ fill: "#F1F0EC",
20
+ fillRule: "evenodd",
21
+ d: "M97.492 4.026c24.033-.76 45.335 14.966 53.284 37.66 8.572 24.47 4.488 52.73-16.101 68.491-22.132 16.943-53.93 19.23-75.615 1.718C39.75 96.3 45.34 68.141 53.67 44.76c7.4-20.77 21.784-40.036 43.822-40.734",
22
+ clipRule: "evenodd"
23
+ }), /*#__PURE__*/_jsx("path", {
24
+ fill: "#7F775B",
25
+ d: "M100 45.333c-8.373 0-15.264 6.467-15.943 14.667h-.724C77.084 60 72 65.084 72 71.333s5.084 11.334 11.333 11.334h12v-4h-12c-4.044 0-7.333-3.29-7.333-7.334S79.29 64 83.333 64H86a2 2 0 0 0 2-2v-.667c0-6.616 5.384-12 12-12s12 5.384 12 12V62a2 2 0 0 0 2 2h2.667c4.044 0 7.333 3.29 7.333 7.333s-3.289 7.334-7.333 7.334h-12v4h12c6.249 0 11.333-5.084 11.333-11.334C128 65.084 122.916 60 116.667 60h-.724c-.679-8.2-7.57-14.667-15.943-14.667m-.031 18.638a2 2 0 0 0-1.565.797l-5.818 5.818a2 2 0 1 0 2.828 2.828L98 70.828V86a2.002 2.002 0 0 0 2.772 1.874A2 2 0 0 0 102 86V70.828l2.586 2.586a1.998 1.998 0 0 0 3.295-.63 2.005 2.005 0 0 0-.467-2.198l-5.828-5.828a2 2 0 0 0-1.617-.787"
26
+ })]
27
+ }), /*#__PURE__*/_jsx("defs", {
28
+ children: /*#__PURE__*/_jsx("clipPath", {
29
+ id: "blobby-gray-icon-upload-to-the-cloud_svg__a",
30
+ children: /*#__PURE__*/_jsx("path", {
31
+ fill: "#fff",
32
+ d: "M0 0h200v128H0z"
33
+ })
34
+ })
35
+ })]
7
36
  });
8
- exports.default = void 0;
9
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
10
- var React = _interopRequireWildcard(require("react"));
11
- const _excluded = ["title", "titleId"];
12
- const SvgBlobbyGrayIconUploadToTheCloud = _ref => {
13
- let {
14
- title,
15
- titleId
16
- } = _ref,
17
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
18
- return /*#__PURE__*/React.createElement("svg", Object.assign({
19
- xmlns: "http://www.w3.org/2000/svg",
20
- fill: "none",
21
- viewBox: "0 0 200 128",
22
- "aria-labelledby": titleId
23
- }, props), title ? /*#__PURE__*/React.createElement("title", {
24
- id: titleId
25
- }, title) : null, /*#__PURE__*/React.createElement("g", {
26
- clipPath: "url(#blobby-gray-icon-upload-to-the-cloud_svg__a)"
27
- }, /*#__PURE__*/React.createElement("path", {
28
- fill: "#F1F0EC",
29
- fillRule: "evenodd",
30
- d: "M97.492 4.026c24.033-.76 45.335 14.966 53.284 37.66 8.572 24.47 4.488 52.73-16.101 68.491-22.132 16.943-53.93 19.23-75.615 1.718C39.75 96.3 45.34 68.141 53.67 44.76c7.4-20.77 21.784-40.036 43.822-40.734",
31
- clipRule: "evenodd"
32
- }), /*#__PURE__*/React.createElement("path", {
33
- fill: "#7F775B",
34
- d: "M100 45.333c-8.373 0-15.264 6.467-15.943 14.667h-.724C77.084 60 72 65.084 72 71.333s5.084 11.334 11.333 11.334h12v-4h-12c-4.044 0-7.333-3.29-7.333-7.334S79.29 64 83.333 64H86a2 2 0 0 0 2-2v-.667c0-6.616 5.384-12 12-12s12 5.384 12 12V62a2 2 0 0 0 2 2h2.667c4.044 0 7.333 3.29 7.333 7.333s-3.289 7.334-7.333 7.334h-12v4h12c6.249 0 11.333-5.084 11.333-11.334C128 65.084 122.916 60 116.667 60h-.724c-.679-8.2-7.57-14.667-15.943-14.667m-.031 18.638a2 2 0 0 0-1.565.797l-5.818 5.818a2 2 0 1 0 2.828 2.828L98 70.828V86a2.002 2.002 0 0 0 2.772 1.874A2 2 0 0 0 102 86V70.828l2.586 2.586a1.998 1.998 0 0 0 3.295-.63 2.005 2.005 0 0 0-.467-2.198l-5.828-5.828a2 2 0 0 0-1.617-.787"
35
- })), /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
36
- id: "blobby-gray-icon-upload-to-the-cloud_svg__a"
37
- }, /*#__PURE__*/React.createElement("path", {
38
- fill: "#fff",
39
- d: "M0 0h200v128H0z"
40
- }))));
41
- };
42
- var _default = exports.default = SvgBlobbyGrayIconUploadToTheCloud;
37
+ export default SvgBlobbyGrayIconUploadToTheCloud;