@vcmap/ui 5.0.2 → 5.1.0-rc.2

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 (443) hide show
  1. package/README.md +2 -2
  2. package/build/buildTypes.js +176 -0
  3. package/build/lintTypes.js +30 -0
  4. package/config/aerowest.config.json +4 -0
  5. package/config/base.config.json +22 -0
  6. package/config/dev.config.json +176 -5
  7. package/config/www.config.json +32 -0
  8. package/dist/assets/{cesium.a3a1dc.js → cesium.b97c3b.js} +1859 -1828
  9. package/dist/assets/cesium.js +1 -1
  10. package/dist/assets/{core.bb64ed.js → core.5b03e5.js} +5859 -5041
  11. package/dist/assets/core.js +1 -1
  12. package/dist/assets/index-92075a75.js +1 -0
  13. package/dist/assets/{ol.833fa9.js → ol.0cd250.js} +7257 -7252
  14. package/dist/assets/ol.js +1 -1
  15. package/dist/assets/{ui.aeb2ec.css → ui.67779e.css} +2 -2
  16. package/dist/assets/{ui.aeb2ec.js → ui.67779e.js} +14199 -9198
  17. package/dist/assets/ui.js +1 -1
  18. package/dist/assets/{vue.8e1850.js → vue.62ecd5.js} +1243 -1234
  19. package/dist/assets/vue.js +2 -2
  20. package/dist/assets/{vuetify.3ed426.css → vuetify.3b3e23.css} +1 -1
  21. package/dist/assets/{vuetify.3ed426.js → vuetify.3b3e23.js} +155 -154
  22. package/dist/assets/vuetify.js +2 -2
  23. package/dist/index.html +1 -1
  24. package/index.d.ts +256 -0
  25. package/index.js +48 -11
  26. package/package.json +21 -14
  27. package/plugins/@vcmap-show-case/buttons-example/src/ButtonsExample.vue +3 -0
  28. package/plugins/@vcmap-show-case/category-tester/src/CategoriesExample.vue +312 -43
  29. package/plugins/@vcmap-show-case/category-tester/src/CollectionComponentOptions.vue +48 -182
  30. package/plugins/@vcmap-show-case/category-tester/src/FoobarEditor.vue +118 -0
  31. package/plugins/@vcmap-show-case/category-tester/src/importExportHelper.js +29 -0
  32. package/plugins/@vcmap-show-case/category-tester/src/index.js +16 -0
  33. package/plugins/@vcmap-show-case/collection-manager-example/src/CollectionManagerExample.vue +2 -1
  34. package/plugins/@vcmap-show-case/collection-manager-example/src/index.js +8 -4
  35. package/plugins/@vcmap-show-case/extent-example/README.md +3 -0
  36. package/plugins/@vcmap-show-case/extent-example/package.json +5 -0
  37. package/plugins/@vcmap-show-case/extent-example/src/ExtentExample.vue +71 -0
  38. package/plugins/@vcmap-show-case/extent-example/src/index.js +68 -0
  39. package/plugins/@vcmap-show-case/flight-component-example/README.md +3 -0
  40. package/plugins/@vcmap-show-case/flight-component-example/package.json +5 -0
  41. package/plugins/@vcmap-show-case/flight-component-example/src/FlightExample.vue +53 -0
  42. package/plugins/@vcmap-show-case/flight-component-example/src/index.js +42 -0
  43. package/plugins/@vcmap-show-case/form-inputs-example/src/FormInputsExample.vue +78 -5
  44. package/plugins/@vcmap-show-case/hello-world/src/helloWorld.vue +2 -2
  45. package/plugins/@vcmap-show-case/list-example/src/ListExample.vue +22 -10
  46. package/plugins/@vcmap-show-case/toolbox-example/README.md +9 -0
  47. package/plugins/@vcmap-show-case/toolbox-example/package.json +5 -0
  48. package/plugins/@vcmap-show-case/toolbox-example/src/TriStateExampleWindow.vue +21 -0
  49. package/plugins/@vcmap-show-case/toolbox-example/src/dummyToolboxActions.js +94 -0
  50. package/plugins/@vcmap-show-case/toolbox-example/src/index.js +260 -0
  51. package/plugins/@vcmap-show-case/vector-properties-example/src/VectorPropertiesExample.vue +12 -2
  52. package/plugins/@vcmap-show-case/viewpoint-component-example/README.md +3 -0
  53. package/plugins/@vcmap-show-case/viewpoint-component-example/package.json +5 -0
  54. package/plugins/@vcmap-show-case/viewpoint-component-example/src/ViewpointExample.vue +52 -0
  55. package/plugins/@vcmap-show-case/viewpoint-component-example/src/index.js +42 -0
  56. package/plugins/@vcmap-show-case/window-tester/src/WindowExample.vue +31 -1
  57. package/plugins/@vcmap-show-case/window-tester/src/WindowExampleToggleChild.vue +20 -16
  58. package/plugins/@vcmap-show-case/window-tester/src/index.js +2 -17
  59. package/plugins/package.json +6 -2
  60. package/src/actions/StyleSelector.vue +8 -7
  61. package/src/actions/StyleSelector.vue.d.ts +27 -0
  62. package/src/actions/actionHelper.d.ts +153 -0
  63. package/src/actions/actionHelper.js +36 -19
  64. package/src/actions/extentActions.d.ts +40 -0
  65. package/src/actions/extentActions.js +359 -0
  66. package/src/actions/flightActions.d.ts +59 -0
  67. package/src/actions/flightActions.js +232 -0
  68. package/src/actions/listActions.d.ts +63 -0
  69. package/src/actions/listActions.js +185 -0
  70. package/src/actions/stateRefAction.d.ts +19 -0
  71. package/src/actions/stateRefAction.js +1 -1
  72. package/src/application/VcsApp.vue +103 -28
  73. package/src/application/VcsApp.vue.d.ts +86 -0
  74. package/src/application/VcsAppWrapper.vue.d.ts +12 -0
  75. package/src/application/VcsAttributions.vue.d.ts +14 -0
  76. package/src/application/VcsAttributionsFooter.vue +1 -4
  77. package/src/application/VcsAttributionsFooter.vue.d.ts +26 -0
  78. package/src/application/VcsMap.vue.d.ts +12 -0
  79. package/src/application/VcsNavbar.vue.d.ts +45 -0
  80. package/src/application/VcsPositionDisplay.vue +208 -0
  81. package/src/application/VcsPositionDisplay.vue.d.ts +18 -0
  82. package/src/application/VcsSettings.vue.d.ts +5 -0
  83. package/src/application/VcsTextPage.vue +65 -0
  84. package/src/application/VcsTextPage.vue.d.ts +16 -0
  85. package/src/application/VcsTextPageFooter.vue +89 -0
  86. package/src/application/VcsTextPageFooter.vue.d.ts +22 -0
  87. package/src/application/attributionsHelper.d.ts +64 -0
  88. package/src/application/attributionsHelper.js +1 -1
  89. package/src/application/markdownHelper.d.ts +5 -0
  90. package/src/application/markdownHelper.js +11 -0
  91. package/src/application/positionDisplayInteraction.d.ts +42 -0
  92. package/src/application/positionDisplayInteraction.js +65 -0
  93. package/src/callback/activateLayersCallback.d.ts +29 -0
  94. package/src/callback/activateLayersCallback.js +2 -2
  95. package/src/callback/applyLayerStyleCallback.d.ts +36 -0
  96. package/src/callback/applyLayerStyleCallback.js +2 -2
  97. package/src/callback/deactivateLayersCallback.d.ts +29 -0
  98. package/src/callback/deactivateLayersCallback.js +2 -2
  99. package/src/callback/goToViewpointCallback.d.ts +29 -0
  100. package/src/callback/goToViewpointCallback.js +2 -2
  101. package/src/callback/vcsCallback.d.ts +44 -0
  102. package/src/callback/vcsCallback.js +4 -9
  103. package/src/components/ImageElementInjector.vue.d.ts +24 -0
  104. package/src/components/buttons/VcsActionButtonList.vue +24 -16
  105. package/src/components/buttons/VcsActionButtonList.vue.d.ts +68 -0
  106. package/src/components/buttons/VcsButton.vue +7 -0
  107. package/src/components/buttons/VcsButton.vue.d.ts +89 -0
  108. package/src/components/buttons/VcsFormButton.vue +9 -0
  109. package/src/components/buttons/VcsFormButton.vue.d.ts +91 -0
  110. package/src/components/buttons/VcsToolButton.vue +9 -0
  111. package/src/components/buttons/VcsToolButton.vue.d.ts +91 -0
  112. package/src/components/flight/VcsFlightAnchorsComponent.vue +329 -0
  113. package/src/components/flight/VcsFlightAnchorsComponent.vue.d.ts +45 -0
  114. package/src/components/flight/VcsFlightComponent.vue +284 -0
  115. package/src/components/flight/VcsFlightComponent.vue.d.ts +104 -0
  116. package/src/components/flight/VcsFlightEditor.vue +77 -0
  117. package/src/components/flight/VcsFlightEditor.vue.d.ts +34 -0
  118. package/src/components/flight/VcsFlightPlayer.vue +124 -0
  119. package/src/components/flight/VcsFlightPlayer.vue.d.ts +25 -0
  120. package/src/components/flight/composables.d.ts +11 -0
  121. package/src/components/flight/composables.js +39 -0
  122. package/src/components/form-inputs-controls/VcsCheckbox.vue.d.ts +18 -0
  123. package/src/components/form-inputs-controls/VcsChipArrayInput.vue.d.ts +82 -0
  124. package/src/components/form-inputs-controls/VcsCoordinate.vue +152 -0
  125. package/src/components/form-inputs-controls/VcsCoordinate.vue.d.ts +90 -0
  126. package/src/components/form-inputs-controls/VcsDatePicker.vue +2 -2
  127. package/src/components/form-inputs-controls/VcsDatePicker.vue.d.ts +31 -0
  128. package/src/components/form-inputs-controls/VcsExtent.vue +122 -0
  129. package/src/components/form-inputs-controls/VcsExtent.vue.d.ts +36 -0
  130. package/src/components/form-inputs-controls/VcsFormSection.vue +6 -1
  131. package/src/components/form-inputs-controls/VcsFormSection.vue.d.ts +75 -0
  132. package/src/components/form-inputs-controls/VcsLabel.vue +18 -0
  133. package/src/components/form-inputs-controls/VcsLabel.vue.d.ts +41 -0
  134. package/src/components/form-inputs-controls/VcsRadio.vue.d.ts +32 -0
  135. package/src/components/form-inputs-controls/VcsRadioGrid.vue.d.ts +35 -0
  136. package/src/components/form-inputs-controls/VcsSelect.vue.d.ts +31 -0
  137. package/src/components/form-inputs-controls/VcsSlider.vue.d.ts +2 -0
  138. package/src/components/form-inputs-controls/VcsTextArea.vue.d.ts +22 -0
  139. package/src/components/form-inputs-controls/VcsTextField.vue +57 -10
  140. package/src/components/form-inputs-controls/VcsTextField.vue.d.ts +65 -0
  141. package/src/components/form-inputs-controls/VcsWizard.vue.d.ts +14 -0
  142. package/src/components/form-inputs-controls/VcsWizardStep.vue.d.ts +89 -0
  143. package/src/components/form-inputs-controls/composables.d.ts +7 -0
  144. package/src/components/form-inputs-controls/composables.js +1 -1
  145. package/src/components/form-output/VcsFormattedNumber.vue +13 -2
  146. package/src/components/form-output/VcsFormattedNumber.vue.d.ts +89 -0
  147. package/src/components/icons/+all.d.ts +9 -0
  148. package/src/components/icons/+all.js +16 -0
  149. package/src/components/icons/2DAreaIcon.vue.d.ts +2 -0
  150. package/src/components/icons/2DDistanceIcon.vue.d.ts +2 -0
  151. package/src/components/icons/2DHeightObliqueIcon.vue +20 -0
  152. package/src/components/icons/2DHeightObliqueIcon.vue.d.ts +2 -0
  153. package/src/components/icons/3DAreaIcon.vue.d.ts +2 -0
  154. package/src/components/icons/3DDistanceIcon.vue.d.ts +2 -0
  155. package/src/components/icons/3DHeightIcon.vue.d.ts +2 -0
  156. package/src/components/icons/AngleIcon.vue.d.ts +2 -0
  157. package/src/components/icons/AssociationsIcon.vue.d.ts +2 -0
  158. package/src/components/icons/AxisIcon.vue.d.ts +2 -0
  159. package/src/components/icons/BoundingBoxIcon.vue.d.ts +2 -0
  160. package/src/components/icons/CheckboxCheckedIcon.vue.d.ts +2 -0
  161. package/src/components/icons/CheckboxIcon.vue.d.ts +2 -0
  162. package/src/components/icons/CheckboxIndeterminateIcon.vue.d.ts +2 -0
  163. package/src/components/icons/CircleIcon.vue.d.ts +2 -0
  164. package/src/components/icons/ClippingHorizontalIcon.vue.d.ts +2 -0
  165. package/src/components/icons/ClippingIcon.vue.d.ts +2 -0
  166. package/src/components/icons/ClippingVerticalIcon.vue.d.ts +2 -0
  167. package/src/components/icons/ColorPickerIcon.vue.d.ts +2 -0
  168. package/src/components/icons/ColorSwatchIcon.vue.d.ts +2 -0
  169. package/src/components/icons/CommentIcon.vue.d.ts +2 -0
  170. package/src/components/icons/CompassIcon.vue.d.ts +2 -0
  171. package/src/components/icons/ComponentsIcon.vue.d.ts +2 -0
  172. package/src/components/icons/ComponentsPlusIcon.vue +17 -0
  173. package/src/components/icons/ComponentsPlusIcon.vue.d.ts +2 -0
  174. package/src/components/icons/ConeIcon.vue.d.ts +2 -0
  175. package/src/components/icons/DimensionsHouseIcon.vue.d.ts +2 -0
  176. package/src/components/icons/EditIcon.vue.d.ts +2 -0
  177. package/src/components/icons/EditVerticesIcon.vue.d.ts +2 -0
  178. package/src/components/icons/ElevationProfileIcon.vue.d.ts +2 -0
  179. package/src/components/icons/ExportAreaIcon.vue.d.ts +2 -0
  180. package/src/components/icons/ExportFlightIcon.vue.d.ts +2 -0
  181. package/src/components/icons/ExportIcon.vue.d.ts +2 -0
  182. package/src/components/icons/ExternalLinkIcon.vue.d.ts +2 -0
  183. package/src/components/icons/EyeIcon.vue.d.ts +2 -0
  184. package/src/components/icons/FastForwardIcon.vue.d.ts +2 -0
  185. package/src/components/icons/FilterIcon.vue.d.ts +2 -0
  186. package/src/components/icons/GlobalTerrainIcon.vue.d.ts +2 -0
  187. package/src/components/icons/GlobeNatureIcon.vue.d.ts +2 -0
  188. package/src/components/icons/GroundIcon.vue.d.ts +2 -0
  189. package/src/components/icons/HealthCareIndustriesIcon.vue.d.ts +2 -0
  190. package/src/components/icons/HelpIcon.vue.d.ts +2 -0
  191. package/src/components/icons/HideIcon.vue.d.ts +2 -0
  192. package/src/components/icons/HomePointIcon.vue.d.ts +2 -0
  193. package/src/components/icons/HospitalsIcon.vue.d.ts +2 -0
  194. package/src/components/icons/HouseIcon.vue.d.ts +2 -0
  195. package/src/components/icons/ImportIcon.vue.d.ts +2 -0
  196. package/src/components/icons/InfoIcon.vue.d.ts +2 -0
  197. package/src/components/icons/KebabIcon.vue.d.ts +2 -0
  198. package/src/components/icons/LabelIcon.vue.d.ts +2 -0
  199. package/src/components/icons/LayersIcon.vue.d.ts +2 -0
  200. package/src/components/icons/LegendIcon.vue.d.ts +2 -0
  201. package/src/components/icons/LineIcon.vue.d.ts +2 -0
  202. package/src/components/icons/LinkIcon.vue.d.ts +2 -0
  203. package/src/components/icons/LogoutIcon.vue.d.ts +2 -0
  204. package/src/components/icons/MapIcon.vue.d.ts +2 -0
  205. package/src/components/icons/MenuIcon.vue.d.ts +2 -0
  206. package/src/components/icons/MinusIcon.vue.d.ts +2 -0
  207. package/src/components/icons/MultiViewIcon.vue +16 -0
  208. package/src/components/icons/MultiViewIcon.vue.d.ts +2 -0
  209. package/src/components/icons/ObjectAttributeIcon.vue.d.ts +2 -0
  210. package/src/components/icons/ObjectSelectIcon.vue.d.ts +2 -0
  211. package/src/components/icons/ObliqueViewIcon.vue.d.ts +2 -0
  212. package/src/components/icons/PdfIcon.vue.d.ts +2 -0
  213. package/src/components/icons/PedestrianIcon.vue.d.ts +2 -0
  214. package/src/components/icons/PenIcon.vue.d.ts +2 -0
  215. package/src/components/icons/PlayCircleIcon.vue.d.ts +2 -0
  216. package/src/components/icons/PlusIcon.vue.d.ts +2 -0
  217. package/src/components/icons/PoiIcon.vue.d.ts +2 -0
  218. package/src/components/icons/PointIcon.vue.d.ts +2 -0
  219. package/src/components/icons/PointMeasurementIcon.vue +36 -0
  220. package/src/components/icons/PointMeasurementIcon.vue.d.ts +2 -0
  221. package/src/components/icons/PointSelectIcon.vue.d.ts +2 -0
  222. package/src/components/icons/PresentationModeIcon.vue.d.ts +2 -0
  223. package/src/components/icons/ProgressIcon.vue.d.ts +2 -0
  224. package/src/components/icons/QueryIcon.vue.d.ts +2 -0
  225. package/src/components/icons/RectangleIcon.vue.d.ts +2 -0
  226. package/src/components/icons/ReturnIcon.vue.d.ts +2 -0
  227. package/src/components/icons/RewindIcon.vue.d.ts +2 -0
  228. package/src/components/icons/RotateLeftIcon.vue.d.ts +2 -0
  229. package/src/components/icons/RotateRightIcon.vue.d.ts +2 -0
  230. package/src/components/icons/ScreenshotIcon.vue.d.ts +2 -0
  231. package/src/components/icons/SearchIcon.vue.d.ts +2 -0
  232. package/src/components/icons/ShadowIcon.vue.d.ts +2 -0
  233. package/src/components/icons/ShapesIcon.vue.d.ts +2 -0
  234. package/src/components/icons/ShareIcon.vue.d.ts +2 -0
  235. package/src/components/icons/SimpleCircleFilledIcon.vue.d.ts +2 -0
  236. package/src/components/icons/SimpleCircleHalfFilledIcon.vue.d.ts +2 -0
  237. package/src/components/icons/SimpleCircleOutlinedIcon.vue.d.ts +2 -0
  238. package/src/components/icons/SkipNextIcon.vue.d.ts +2 -0
  239. package/src/components/icons/SkipPreviousIcon.vue.d.ts +2 -0
  240. package/src/components/icons/SplitViewIcon.vue.d.ts +2 -0
  241. package/src/components/icons/TerrainBoxIcon.vue.d.ts +2 -0
  242. package/src/components/icons/TextStyleIcon.vue.d.ts +2 -0
  243. package/src/components/icons/ThreeDimensionsIcon.vue.d.ts +2 -0
  244. package/src/components/icons/ToolsIcon.vue.d.ts +2 -0
  245. package/src/components/icons/TouchIcon.vue.d.ts +2 -0
  246. package/src/components/icons/TrashCanIcon.vue.d.ts +2 -0
  247. package/src/components/icons/TriangleIcon.vue.d.ts +2 -0
  248. package/src/components/icons/TwoDimensionsIcon.vue.d.ts +2 -0
  249. package/src/components/icons/UploadIcon.vue.d.ts +2 -0
  250. package/src/components/icons/UserProfileIcon.vue.d.ts +2 -0
  251. package/src/components/icons/UserShareIcon.vue.d.ts +2 -0
  252. package/src/components/icons/VideoRecorderIcon.vue.d.ts +2 -0
  253. package/src/components/icons/ViewpointFlightIcon.vue.d.ts +2 -0
  254. package/src/components/icons/ViewpointIcon.vue.d.ts +2 -0
  255. package/src/components/icons/Viewshed360Icon.vue.d.ts +2 -0
  256. package/src/components/icons/ViewshedConeIcon.vue.d.ts +2 -0
  257. package/src/components/icons/ViewshedIcon.vue.d.ts +2 -0
  258. package/src/components/icons/WalkingIcon.vue.d.ts +2 -0
  259. package/src/components/icons/WallIcon.vue.d.ts +2 -0
  260. package/src/components/icons/WandIcon.vue.d.ts +2 -0
  261. package/src/components/import/FileDrop.vue +69 -0
  262. package/src/components/import/FileDrop.vue.d.ts +26 -0
  263. package/src/components/import/ImportComponent.vue +78 -0
  264. package/src/components/import/ImportComponent.vue.d.ts +34 -0
  265. package/src/components/lists/VcsActionList.vue +8 -15
  266. package/src/components/lists/VcsActionList.vue.d.ts +66 -0
  267. package/src/components/lists/VcsList.vue +207 -116
  268. package/src/components/lists/VcsList.vue.d.ts +227 -0
  269. package/src/components/lists/VcsTreeview.vue +3 -1
  270. package/src/components/lists/VcsTreeview.vue.d.ts +28 -0
  271. package/src/components/lists/VcsTreeviewLeaf.vue +1 -0
  272. package/src/components/lists/VcsTreeviewLeaf.vue.d.ts +19 -0
  273. package/src/components/lists/VcsTreeviewSearchbar.vue.d.ts +41 -0
  274. package/src/components/notification/VcsBadge.vue.d.ts +14 -0
  275. package/src/components/notification/VcsHelp.vue.d.ts +22 -0
  276. package/src/components/notification/VcsTooltip.vue.d.ts +27 -0
  277. package/src/components/notification/validation.d.ts +8 -0
  278. package/src/components/notification/validation.js +3 -2
  279. package/src/components/plugins/AbstractConfigEditor.vue +25 -4
  280. package/src/components/plugins/AbstractConfigEditor.vue.d.ts +55 -0
  281. package/src/components/style/MenuWrapper.vue.d.ts +55 -0
  282. package/src/components/style/VcsFeatureStyleComponent.vue +389 -0
  283. package/src/components/style/VcsFeatureStyleComponent.vue.d.ts +31 -0
  284. package/src/components/style/VcsFillMenu.vue.d.ts +34 -0
  285. package/src/components/style/VcsFillSelector.vue.d.ts +22 -0
  286. package/src/components/style/VcsImageMenu.vue.d.ts +43 -0
  287. package/src/components/style/VcsImageSelector.vue.d.ts +128 -0
  288. package/src/components/style/VcsStrokeMenu.vue.d.ts +34 -0
  289. package/src/components/style/VcsStrokeSelector.vue.d.ts +23 -0
  290. package/src/components/style/VcsTextMenu.vue.d.ts +52 -0
  291. package/src/components/style/VcsTextSelector.vue.d.ts +58 -0
  292. package/src/components/style/VcsVectorStyleComponent.vue.d.ts +76 -0
  293. package/src/components/style/composables.d.ts +43 -0
  294. package/src/components/style/composables.js +11 -8
  295. package/src/components/tables/VcsDataTable.vue +11 -3
  296. package/src/components/tables/VcsDataTable.vue.d.ts +142 -0
  297. package/src/components/tables/VcsTable.vue +71 -2
  298. package/src/components/tables/VcsTable.vue.d.ts +88 -0
  299. package/src/components/vector-properties/VcsFeatureEditingWindow.vue +392 -0
  300. package/src/components/vector-properties/VcsFeatureEditingWindow.vue.d.ts +87 -0
  301. package/src/components/vector-properties/VcsFeatureTransforms.vue +217 -0
  302. package/src/components/vector-properties/VcsFeatureTransforms.vue.d.ts +45 -0
  303. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue +96 -52
  304. package/src/components/vector-properties/VcsVectorPropertiesComponent.vue.d.ts +119 -0
  305. package/src/components/vector-properties/composables.d.ts +33 -0
  306. package/src/components/vector-properties/composables.js +21 -14
  307. package/src/components/viewpoint/VcsViewpointComponent.vue +514 -0
  308. package/src/components/viewpoint/VcsViewpointComponent.vue.d.ts +126 -0
  309. package/src/components/viewpoint/VcsViewpointEditor.vue +87 -0
  310. package/src/components/viewpoint/VcsViewpointEditor.vue.d.ts +25 -0
  311. package/src/contentTree/LayerTree.vue.d.ts +15 -0
  312. package/src/contentTree/contentTreeCollection.d.ts +113 -0
  313. package/src/contentTree/contentTreeCollection.js +10 -20
  314. package/src/contentTree/contentTreeItem.d.ts +334 -0
  315. package/src/contentTree/contentTreeItem.js +31 -17
  316. package/src/contentTree/flightContentTreeItem.d.ts +53 -0
  317. package/src/contentTree/flightContentTreeItem.js +201 -0
  318. package/src/contentTree/groupContentTreeItem.d.ts +14 -0
  319. package/src/contentTree/groupContentTreeItem.js +2 -2
  320. package/src/contentTree/layerContentTreeItem.d.ts +76 -0
  321. package/src/contentTree/layerContentTreeItem.js +7 -9
  322. package/src/contentTree/layerGroupContentTreeItem.d.ts +50 -0
  323. package/src/contentTree/layerGroupContentTreeItem.js +2 -3
  324. package/src/contentTree/nodeContentTreeItem.d.ts +10 -0
  325. package/src/contentTree/nodeContentTreeItem.js +2 -2
  326. package/src/contentTree/obliqueCollectionContentTreeItem.d.ts +46 -0
  327. package/src/contentTree/obliqueCollectionContentTreeItem.js +3 -5
  328. package/src/contentTree/subContentTreeItem.d.ts +15 -0
  329. package/src/contentTree/subContentTreeItem.js +3 -3
  330. package/src/contentTree/vcsObjectContentTreeItem.d.ts +56 -0
  331. package/src/contentTree/vcsObjectContentTreeItem.js +3 -4
  332. package/src/contentTree/viewpointContentTreeItem.d.ts +46 -0
  333. package/src/contentTree/viewpointContentTreeItem.js +3 -4
  334. package/src/downloadHelper.d.ts +27 -0
  335. package/src/featureInfo/AddressBalloonComponent.vue.d.ts +2 -0
  336. package/src/featureInfo/BalloonComponent.vue +16 -3
  337. package/src/featureInfo/BalloonComponent.vue.d.ts +61 -0
  338. package/src/featureInfo/abstractFeatureInfoView.d.ts +199 -0
  339. package/src/featureInfo/abstractFeatureInfoView.js +82 -18
  340. package/src/featureInfo/addressBalloonFeatureInfoView.d.ts +67 -0
  341. package/src/featureInfo/addressBalloonFeatureInfoView.js +9 -2
  342. package/src/featureInfo/balloonFeatureInfoView.d.ts +49 -0
  343. package/src/featureInfo/balloonFeatureInfoView.js +12 -11
  344. package/src/featureInfo/balloonHelper.d.ts +31 -0
  345. package/src/featureInfo/balloonHelper.js +6 -6
  346. package/src/featureInfo/featureInfo.d.ts +146 -0
  347. package/src/featureInfo/featureInfo.js +11 -16
  348. package/src/featureInfo/featureInfoInteraction.d.ts +21 -0
  349. package/src/featureInfo/featureInfoInteraction.js +2 -2
  350. package/src/featureInfo/iframeFeatureInfoView.d.ts +48 -0
  351. package/src/featureInfo/iframeFeatureInfoView.js +3 -5
  352. package/src/featureInfo/tableFeatureInfoView.d.ts +75 -0
  353. package/src/featureInfo/tableFeatureInfoView.js +19 -9
  354. package/src/i18n/de.d.ts +353 -0
  355. package/src/i18n/de.js +114 -2
  356. package/src/i18n/en.d.ts +352 -0
  357. package/src/i18n/en.js +113 -1
  358. package/src/i18n/i18nCollection.d.ts +82 -0
  359. package/src/i18n/i18nCollection.js +3 -3
  360. package/src/init.d.ts +58 -0
  361. package/src/init.js +3 -5
  362. package/src/legend/StyleLegendItem.vue.d.ts +25 -0
  363. package/src/legend/VcsLegend.vue.d.ts +20 -0
  364. package/src/legend/legendHelper.d.ts +172 -0
  365. package/src/legend/legendHelper.js +21 -21
  366. package/src/manager/buttonManager.d.ts +106 -0
  367. package/src/manager/buttonManager.js +8 -4
  368. package/src/manager/collectionManager/CollectionComponent.vue +38 -42
  369. package/src/manager/collectionManager/CollectionComponent.vue.d.ts +17 -0
  370. package/src/manager/collectionManager/CollectionComponentList.vue +53 -18
  371. package/src/manager/collectionManager/CollectionComponentList.vue.d.ts +38 -0
  372. package/src/manager/collectionManager/CollectionComponentProvider.vue +3 -2
  373. package/src/manager/collectionManager/CollectionComponentProvider.vue.d.ts +12 -0
  374. package/src/manager/collectionManager/CollectionManager.vue +29 -4
  375. package/src/manager/collectionManager/CollectionManager.vue.d.ts +8 -0
  376. package/src/manager/collectionManager/categoryManager.d.ts +56 -0
  377. package/src/manager/collectionManager/categoryManager.js +21 -7
  378. package/src/manager/collectionManager/collectionComponentClass.d.ts +257 -0
  379. package/src/manager/collectionManager/{collectionComponent.js → collectionComponentClass.js} +210 -57
  380. package/src/manager/collectionManager/collectionManager.d.ts +200 -0
  381. package/src/manager/collectionManager/collectionManager.js +45 -39
  382. package/src/manager/collectionManager/editorCollectionComponentClass.d.ts +60 -0
  383. package/src/manager/collectionManager/editorCollectionComponentClass.js +295 -0
  384. package/src/manager/contextMenu/ContextMenuComponent.vue.d.ts +18 -0
  385. package/src/manager/contextMenu/contextMenuInteraction.d.ts +24 -0
  386. package/src/manager/contextMenu/contextMenuManager.d.ts +70 -0
  387. package/src/manager/contextMenu/contextMenuManager.js +5 -5
  388. package/src/manager/navbarManager.d.ts +60 -0
  389. package/src/manager/navbarManager.js +10 -6
  390. package/src/manager/toolbox/GroupToolboxComponent.vue.d.ts +17 -0
  391. package/src/manager/toolbox/SelectToolboxComponent.vue +1 -0
  392. package/src/manager/toolbox/SelectToolboxComponent.vue.d.ts +15 -0
  393. package/src/manager/toolbox/ToolboxManager.vue +33 -7
  394. package/src/manager/toolbox/ToolboxManager.vue.d.ts +21 -0
  395. package/src/manager/toolbox/toolboxManager.d.ts +177 -0
  396. package/src/manager/toolbox/toolboxManager.js +86 -31
  397. package/src/manager/window/WindowComponent.vue.d.ts +40 -0
  398. package/src/manager/window/WindowComponentHeader.vue +1 -1
  399. package/src/manager/window/WindowComponentHeader.vue.d.ts +36 -0
  400. package/src/manager/window/WindowManager.vue +1 -0
  401. package/src/manager/window/WindowManager.vue.d.ts +19 -0
  402. package/src/manager/window/windowHelper.d.ts +134 -0
  403. package/src/manager/window/windowHelper.js +20 -20
  404. package/src/manager/window/windowManager.d.ts +422 -0
  405. package/src/manager/window/windowManager.js +95 -40
  406. package/src/navigation/MapNavCompass.vue.d.ts +25 -0
  407. package/src/navigation/MapNavigation.vue +2 -2
  408. package/src/navigation/MapNavigation.vue.d.ts +46 -0
  409. package/src/navigation/ObliqueRotation.vue +8 -4
  410. package/src/navigation/ObliqueRotation.vue.d.ts +14 -0
  411. package/src/navigation/OrientationToolsButton.vue.d.ts +30 -0
  412. package/src/navigation/TiltSlider.vue.d.ts +19 -0
  413. package/src/navigation/VcsCompass.vue.d.ts +25 -0
  414. package/src/navigation/VcsZoomButton.vue +6 -3
  415. package/src/navigation/VcsZoomButton.vue.d.ts +2 -0
  416. package/src/navigation/overviewMap.d.ts +199 -0
  417. package/src/navigation/overviewMap.js +3 -7
  418. package/src/navigation/overviewMapClickedInteraction.d.ts +21 -0
  419. package/src/notifier/NotifierComponent.vue.d.ts +10 -0
  420. package/src/notifier/notifier.d.ts +53 -0
  421. package/src/notifier/notifier.js +0 -1
  422. package/src/pluginHelper.d.ts +67 -0
  423. package/src/pluginHelper.js +11 -9
  424. package/src/search/ResultItem.vue.d.ts +25 -0
  425. package/src/search/ResultsComponent.vue +1 -1
  426. package/src/search/ResultsComponent.vue.d.ts +24 -0
  427. package/src/search/SearchComponent.vue +1 -1
  428. package/src/search/SearchComponent.vue.d.ts +10 -0
  429. package/src/search/search.d.ts +129 -0
  430. package/src/search/search.js +8 -11
  431. package/src/setup.d.ts +1 -0
  432. package/src/state.d.ts +57 -0
  433. package/src/state.js +7 -5
  434. package/src/uiConfig.d.ts +99 -0
  435. package/src/uiConfig.js +17 -7
  436. package/src/vcsUiApp.d.ts +301 -0
  437. package/src/vcsUiApp.js +58 -54
  438. package/src/vuePlugins/i18n.d.ts +10 -0
  439. package/src/vuePlugins/i18n.js +3 -3
  440. package/src/vuePlugins/vuetify.d.ts +27 -0
  441. package/tsconfig.json +36 -0
  442. package/dist/assets/index-661636d9.js +0 -1
  443. package/plugins/@vcmap-show-case/window-tester/src/toolboxData.js +0 -288
@@ -0,0 +1,514 @@
1
+ <template>
2
+ <v-sheet>
3
+ <VcsFormSection
4
+ heading="components.viewpoint.general"
5
+ :expandable="expandable"
6
+ start-open
7
+ v-if="!(hideGeneral || (hideName && hideTitle && hideAnimate))"
8
+ >
9
+ <v-container class="py-0 px-1">
10
+ <v-row no-gutters v-if="!hideName">
11
+ <v-col cols="6">
12
+ <VcsLabel html-for="name" dense required>
13
+ {{ $t('components.viewpoint.name') }}
14
+ </VcsLabel>
15
+ </v-col>
16
+ <v-col>
17
+ <VcsTextField id="name" dense clearable v-model="name" />
18
+ </v-col>
19
+ </v-row>
20
+ <v-row no-gutters v-if="!hideTitle">
21
+ <v-col cols="6">
22
+ <VcsLabel html-for="title" dense>
23
+ {{ $t('components.viewpoint.title') }}
24
+ </VcsLabel>
25
+ </v-col>
26
+ <v-col>
27
+ <VcsTextField
28
+ id="title"
29
+ dense
30
+ clearable
31
+ :placeholder="$t('components.viewpoint.titlePlaceholder')"
32
+ v-model="title"
33
+ />
34
+ </v-col>
35
+ </v-row>
36
+ <v-row no-gutters v-if="!hideAnimate">
37
+ <v-col cols="6">
38
+ <VcsCheckbox
39
+ id="animate"
40
+ label="components.viewpoint.animate"
41
+ dense
42
+ v-model="animate"
43
+ />
44
+ </v-col>
45
+ <v-col>
46
+ <VcsTextField
47
+ v-if="animate"
48
+ id="duration"
49
+ dense
50
+ type="number"
51
+ :min="0"
52
+ unit="s"
53
+ :title="$t('components.viewpoint.duration')"
54
+ placeholder="0 s"
55
+ v-model.number="duration"
56
+ :rules="[isPositiveNumber]"
57
+ />
58
+ </v-col>
59
+ </v-row>
60
+ </v-container>
61
+ </VcsFormSection>
62
+ <VcsFormSection
63
+ heading="components.viewpoint.positionAndOrientation"
64
+ :expandable="expandable"
65
+ start-open
66
+ :header-actions="[updateFromViewAction, editAction]"
67
+ >
68
+ <v-container class="py-0 px-1">
69
+ <template v-if="!isCesiumMap">
70
+ <v-row no-gutters>
71
+ <v-col cols="6">
72
+ <VcsLabel html-for="groundPosition" dense>
73
+ {{ $t('components.viewpoint.groundPosition') }}
74
+ </VcsLabel>
75
+ </v-col>
76
+ </v-row>
77
+ <VcsCoordinate
78
+ v-model="groundPosition"
79
+ :disabled="editAction.active"
80
+ @blur="handleInput('groundPosition')"
81
+ @input="handleInput('groundPosition')"
82
+ hide-z
83
+ />
84
+ </template>
85
+ <template v-else>
86
+ <v-row no-gutters>
87
+ <v-col cols="6">
88
+ <VcsLabel html-for="cameraPosition" dense>
89
+ {{ $t('components.viewpoint.cameraPosition') }}
90
+ </VcsLabel>
91
+ </v-col>
92
+ </v-row>
93
+ <VcsCoordinate
94
+ v-model="cameraPosition"
95
+ :disabled="editAction.active"
96
+ @blur="handleInput('cameraPosition')"
97
+ @input="handleInput('cameraPosition')"
98
+ />
99
+ </template>
100
+ <template v-if="!isCesiumMap">
101
+ <v-row no-gutters>
102
+ <v-col>
103
+ <VcsLabel html-for="distance" dense>
104
+ {{ $t('components.viewpoint.distance') }}
105
+ </VcsLabel>
106
+ </v-col>
107
+ <v-col>
108
+ <VcsTextField
109
+ dense
110
+ :min="0"
111
+ :step="100"
112
+ prefix="d"
113
+ unit="m"
114
+ :decimals="2"
115
+ type="number"
116
+ v-model.number="distance"
117
+ :disabled="editAction.active"
118
+ @blur="gotoViewpoint"
119
+ @input="gotoViewpoint"
120
+ :rules="[isPositiveNumber]"
121
+ />
122
+ </v-col>
123
+ </v-row>
124
+ </template>
125
+ <template v-if="isCesiumMap">
126
+ <div v-for="key in ['heading', 'pitch', 'roll']" :key="key">
127
+ <v-row no-gutters>
128
+ <v-col cols="9">
129
+ <VcsLabel :html-for="key" dense>
130
+ {{ $t(`components.viewpoint.${key}`) }}
131
+ </VcsLabel>
132
+ </v-col>
133
+ <v-col cols="3">
134
+ <VcsTextField
135
+ :id="key"
136
+ dense
137
+ type="number"
138
+ unit="°"
139
+ v-model.number="hpr[key].value"
140
+ :disabled="editAction.active"
141
+ @blur="gotoViewpoint"
142
+ @input="gotoViewpoint"
143
+ :rules="[isFiniteNumber]"
144
+ class="pr-0 ml-6"
145
+ />
146
+ </v-col>
147
+ </v-row>
148
+ <v-row no-gutters>
149
+ <v-col cols="12">
150
+ <VcsSlider
151
+ dense
152
+ height="32"
153
+ hide-details
154
+ :step="0.1"
155
+ v-model="hpr[key].value"
156
+ v-bind="hprSliderOptions[key]"
157
+ :disabled="editAction.active"
158
+ @input="gotoViewpoint"
159
+ />
160
+ </v-col>
161
+ </v-row>
162
+ </div>
163
+ </template>
164
+ </v-container>
165
+ </VcsFormSection>
166
+ </v-sheet>
167
+ </template>
168
+
169
+ <script>
170
+ import {
171
+ computed,
172
+ inject,
173
+ onMounted,
174
+ onUnmounted,
175
+ reactive,
176
+ ref,
177
+ watch,
178
+ } from 'vue';
179
+ import { VSheet, VContainer, VRow, VCol } from 'vuetify/lib';
180
+ import { CesiumMap, ObliqueMap, OpenlayersMap, Viewpoint } from '@vcmap/core';
181
+ import VcsFormSection from '../form-inputs-controls/VcsFormSection.vue';
182
+ import VcsLabel from '../form-inputs-controls/VcsLabel.vue';
183
+ import VcsTextField from '../form-inputs-controls/VcsTextField.vue';
184
+ import VcsCheckbox from '../form-inputs-controls/VcsCheckbox.vue';
185
+ import VcsCoordinate from '../form-inputs-controls/VcsCoordinate.vue';
186
+ import VcsSlider from '../form-inputs-controls/VcsSlider.vue';
187
+ import { usePrimitiveProperty } from '../vector-properties/composables.js';
188
+
189
+ /**
190
+ * @param {import("vue").emit} emit
191
+ * @param {import("@vcmap/core").Viewpoint} viewpoint
192
+ * @param {() => import("@vcmap/core").ViewpointOptions} getModelValue
193
+ */
194
+ function emitInput(emit, viewpoint, getModelValue) {
195
+ const clone = structuredClone(getModelValue());
196
+ const { name, animate, duration, ...options } = viewpoint.toJSON();
197
+ emit('input', Object.assign(clone, options));
198
+ }
199
+
200
+ /**
201
+ * Set up post render handler, if action is active.
202
+ * If action is inactive, destroy post render handler to allow manual editing.
203
+ * @param {import("@vcmap/ui").VcsUiApp} app
204
+ * @param {import("vue").emit} emit
205
+ * @param {() => import("@vcmap/core").ViewpointOptions} getModelValue
206
+ * @param {import("vue").Ref<boolean>} isCesiumMap
207
+ * @param {boolean} active - whether to set up post render handler on creation
208
+ * @returns {{action: import("../../actions/actionHelper.js").VcsAction, destroy: function():void}}
209
+ */
210
+ function createEditingAction(app, emit, getModelValue, isCesiumMap, active) {
211
+ let destroyPostRenderListener = () => {};
212
+ let cachedViewpoint = new Viewpoint(getModelValue());
213
+
214
+ function setupPostRenderListener() {
215
+ destroyPostRenderListener();
216
+ destroyPostRenderListener = app.maps.postRender.addEventListener(
217
+ ({ map }) => {
218
+ const viewpoint = map?.getViewpointSync();
219
+ if (
220
+ !viewpoint ||
221
+ !viewpoint.isValid() ||
222
+ viewpoint.equals(cachedViewpoint, 0.000001)
223
+ ) {
224
+ return;
225
+ }
226
+ emitInput(emit, viewpoint, getModelValue);
227
+ cachedViewpoint = viewpoint;
228
+ },
229
+ );
230
+ if (app.maps.activeMap.className === OpenlayersMap.className) {
231
+ app.maps.activeMap.requestRender();
232
+ }
233
+ }
234
+
235
+ const action = reactive({
236
+ name: 'edit-viewpoint-action',
237
+ icon: active ? 'mdi-sync' : 'mdi-sync-off',
238
+ title: 'components.viewpoint.syncOff',
239
+ disabled: app.maps.activeMap.className === ObliqueMap.className,
240
+ active,
241
+ callback() {
242
+ this.active = !this.active;
243
+ this.icon = this.active ? 'mdi-sync' : 'mdi-sync-off';
244
+ this.title = this.active
245
+ ? 'components.viewpoint.syncOff'
246
+ : 'components.viewpoint.sync';
247
+ if (this.active) {
248
+ setupPostRenderListener();
249
+ } else {
250
+ destroyPostRenderListener();
251
+ }
252
+ },
253
+ });
254
+
255
+ if (action.active) {
256
+ setupPostRenderListener();
257
+ }
258
+
259
+ const destroyMapListener = app.maps.mapActivated.addEventListener((map) => {
260
+ destroyPostRenderListener();
261
+ if (action.active) {
262
+ setupPostRenderListener();
263
+ }
264
+ if (map.className === ObliqueMap.className) {
265
+ action.disabled = true;
266
+ if (action.active) {
267
+ action.callback();
268
+ }
269
+ } else {
270
+ action.disabled = false;
271
+ }
272
+ isCesiumMap.value = map.className === CesiumMap.className;
273
+ });
274
+
275
+ return {
276
+ action,
277
+ destroy: () => {
278
+ destroyMapListener();
279
+ destroyPostRenderListener();
280
+ },
281
+ };
282
+ }
283
+
284
+ /**
285
+ * @param {number} number
286
+ * @returns {boolean|string}
287
+ */
288
+ export function isFiniteNumber(number) {
289
+ return Number.isFinite(number) || 'components.viewpoint.finiteNumber';
290
+ }
291
+
292
+ /**
293
+ * @param {number} number
294
+ * @returns {boolean|string}
295
+ */
296
+ export function isPositiveNumber(number) {
297
+ return (
298
+ (Number.isFinite(number) && number > 0) ||
299
+ 'components.viewpoint.positiveNumber'
300
+ );
301
+ }
302
+
303
+ /**
304
+ * @param {import("@vcmap/ui").VcsUiApp} app
305
+ * @param {import("@vcmap/core").ViewpointOptions} options
306
+ * @returns {Promise<void>}
307
+ */
308
+ export async function gotoViewpointOptions(app, options) {
309
+ const clone = structuredClone(options);
310
+ clone.animate = false;
311
+ const viewpoint = new Viewpoint(clone);
312
+ if (app.maps.activeMap && viewpoint.isValid()) {
313
+ await app.maps.activeMap.gotoViewpoint(viewpoint);
314
+ }
315
+ }
316
+
317
+ /**
318
+ * @description A component to model @vcmap/core/ViewpointOptions. Stops playing flights on mounted.
319
+ * @vue-prop {import("@vcmap/core").ViewpointOptions} value - The ViewpointOptions that should be modelled.
320
+ * @vue-prop {boolean} [startSync=true] - Set false to start in manual edit mode, without camera synchronization.
321
+ * @vue-prop {boolean} [expandable] - Expandable sections.
322
+ * @vue-prop {boolean} hideName - Hide name input.
323
+ * @vue-prop {boolean} hideTitle - Hide title input.
324
+ * @vue-prop {boolean} hideAnimate - Hide animate & duration input.
325
+ * @vue-prop {boolean} hideGeneral - Hide all general settings (name, title, animate).
326
+ */
327
+ export default {
328
+ name: 'VcsViewpointComponent',
329
+ components: {
330
+ VSheet,
331
+ VContainer,
332
+ VRow,
333
+ VCol,
334
+ VcsFormSection,
335
+ VcsLabel,
336
+ VcsTextField,
337
+ VcsCoordinate,
338
+ VcsCheckbox,
339
+ VcsSlider,
340
+ },
341
+ props: {
342
+ value: {
343
+ type: Object,
344
+ default: undefined,
345
+ },
346
+ startSync: {
347
+ type: Boolean,
348
+ default: true,
349
+ },
350
+ expandable: {
351
+ type: Boolean,
352
+ default: false,
353
+ },
354
+ hideName: {
355
+ type: Boolean,
356
+ default: false,
357
+ },
358
+ hideTitle: {
359
+ type: Boolean,
360
+ default: false,
361
+ },
362
+ hideAnimate: {
363
+ type: Boolean,
364
+ default: false,
365
+ },
366
+ hideGeneral: {
367
+ type: Boolean,
368
+ default: false,
369
+ },
370
+ },
371
+ setup(props, { emit }) {
372
+ const app = inject('vcsApp');
373
+ const isCesiumMap = ref(app.maps.activeMap.className === 'CesiumMap');
374
+
375
+ const name = usePrimitiveProperty(() => props.value, 'name', emit);
376
+ const title = computed({
377
+ get() {
378
+ return props.value?.properties?.title;
379
+ },
380
+ set(value) {
381
+ const clone = props.value ? structuredClone(props.value) : {};
382
+ if (clone.properties) {
383
+ clone.properties.title = value;
384
+ } else {
385
+ clone.properties = { title };
386
+ }
387
+ emit('input', clone);
388
+ },
389
+ });
390
+ const animate = usePrimitiveProperty(() => props.value, 'animate', emit);
391
+ const duration = usePrimitiveProperty(
392
+ () => props.value,
393
+ 'duration',
394
+ emit,
395
+ );
396
+ const groundPosition = usePrimitiveProperty(
397
+ () => props.value,
398
+ 'groundPosition',
399
+ emit,
400
+ );
401
+ const cameraPosition = usePrimitiveProperty(
402
+ () => props.value,
403
+ 'cameraPosition',
404
+ emit,
405
+ );
406
+ const distance = usePrimitiveProperty(
407
+ () => props.value,
408
+ 'distance',
409
+ emit,
410
+ );
411
+ const hpr = {
412
+ heading: usePrimitiveProperty(() => props.value, 'heading', emit),
413
+ pitch: usePrimitiveProperty(() => props.value, 'pitch', emit),
414
+ roll: usePrimitiveProperty(() => props.value, 'roll', emit),
415
+ };
416
+ const hprSliderOptions = {
417
+ heading: {
418
+ min: 0,
419
+ max: 360,
420
+ step: 1,
421
+ },
422
+ pitch: {
423
+ min: -90,
424
+ max: 90,
425
+ step: 1,
426
+ },
427
+ roll: {
428
+ min: 0,
429
+ max: 360,
430
+ step: 1,
431
+ },
432
+ };
433
+
434
+ const updateFromViewAction = {
435
+ name: 'update-viewpoint-from-view-action',
436
+ icon: 'mdi-camera',
437
+ title: 'components.viewpoint.updateFromView',
438
+ async callback() {
439
+ const viewpoint = await app.maps.activeMap.getViewpoint();
440
+ emitInput(emit, viewpoint, () => props.value);
441
+ },
442
+ };
443
+
444
+ const { action: editAction, destroy } = createEditingAction(
445
+ app,
446
+ emit,
447
+ () => props.value,
448
+ isCesiumMap,
449
+ props.startSync,
450
+ );
451
+
452
+ /**
453
+ * set cameraPosition for 3D if unset
454
+ */
455
+ const mapWatcher = watch(isCesiumMap, () => {
456
+ if (isCesiumMap.value && !cameraPosition.value) {
457
+ cameraPosition.value =
458
+ app.maps.activeMap?.getViewpointSync()?.cameraPosition;
459
+ }
460
+ });
461
+
462
+ const disabledWatcher = watch(
463
+ () => editAction.active,
464
+ () => {
465
+ updateFromViewAction.disabled = editAction.active;
466
+ },
467
+ );
468
+
469
+ onMounted(() => {
470
+ app.flights.player?.stop();
471
+ });
472
+
473
+ onUnmounted(() => {
474
+ destroy();
475
+ mapWatcher();
476
+ disabledWatcher();
477
+ });
478
+
479
+ async function gotoViewpoint() {
480
+ await gotoViewpointOptions(app, props.value);
481
+ }
482
+
483
+ async function handleInput(key) {
484
+ if (key === 'groundPosition') {
485
+ cameraPosition.value = undefined;
486
+ } else if (key === 'cameraPosition') {
487
+ groundPosition.value = (
488
+ await app.maps.activeMap.getViewpoint()
489
+ ).groundPosition;
490
+ }
491
+ await gotoViewpoint();
492
+ }
493
+
494
+ return {
495
+ isCesiumMap,
496
+ gotoViewpoint,
497
+ handleInput,
498
+ updateFromViewAction,
499
+ editAction,
500
+ name,
501
+ title,
502
+ animate,
503
+ duration,
504
+ groundPosition,
505
+ cameraPosition,
506
+ distance,
507
+ hpr,
508
+ hprSliderOptions,
509
+ isFiniteNumber,
510
+ isPositiveNumber,
511
+ };
512
+ },
513
+ };
514
+ </script>
@@ -0,0 +1,126 @@
1
+ /**
2
+ * @param {number} number
3
+ * @returns {boolean|string}
4
+ */
5
+ export function isFiniteNumber(number: number): boolean | string;
6
+ /**
7
+ * @param {number} number
8
+ * @returns {boolean|string}
9
+ */
10
+ export function isPositiveNumber(number: number): boolean | string;
11
+ /**
12
+ * @param {import("@vcmap/ui").VcsUiApp} app
13
+ * @param {import("@vcmap/core").ViewpointOptions} options
14
+ * @returns {Promise<void>}
15
+ */
16
+ export function gotoViewpointOptions(app: import("@vcmap/ui").VcsUiApp, options: import("@vcmap/core").ViewpointOptions): Promise<void>;
17
+ declare const _default: import("vue").DefineComponent<{
18
+ value: {
19
+ type: ObjectConstructor;
20
+ default: undefined;
21
+ };
22
+ startSync: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ expandable: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ hideName: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ hideTitle: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ hideAnimate: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ hideGeneral: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ }, {
47
+ isCesiumMap: import("vue").Ref<boolean>;
48
+ gotoViewpoint: () => Promise<void>;
49
+ handleInput: (key: any) => Promise<void>;
50
+ updateFromViewAction: {
51
+ name: string;
52
+ icon: string;
53
+ title: string;
54
+ callback(): Promise<void>;
55
+ };
56
+ editAction: import("../../actions/actionHelper.js").VcsAction;
57
+ name: import("vue").WritableComputedRef<any>;
58
+ title: import("vue").WritableComputedRef<any>;
59
+ animate: import("vue").WritableComputedRef<any>;
60
+ duration: import("vue").WritableComputedRef<any>;
61
+ groundPosition: import("vue").WritableComputedRef<any>;
62
+ cameraPosition: import("vue").WritableComputedRef<any>;
63
+ distance: import("vue").WritableComputedRef<any>;
64
+ hpr: {
65
+ heading: import("vue").WritableComputedRef<any>;
66
+ pitch: import("vue").WritableComputedRef<any>;
67
+ roll: import("vue").WritableComputedRef<any>;
68
+ };
69
+ hprSliderOptions: {
70
+ heading: {
71
+ min: number;
72
+ max: number;
73
+ step: number;
74
+ };
75
+ pitch: {
76
+ min: number;
77
+ max: number;
78
+ step: number;
79
+ };
80
+ roll: {
81
+ min: number;
82
+ max: number;
83
+ step: number;
84
+ };
85
+ };
86
+ isFiniteNumber: typeof isFiniteNumber;
87
+ isPositiveNumber: typeof isPositiveNumber;
88
+ }, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("vue").ExtractPropTypes<{
89
+ value: {
90
+ type: ObjectConstructor;
91
+ default: undefined;
92
+ };
93
+ startSync: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ expandable: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ hideName: {
102
+ type: BooleanConstructor;
103
+ default: boolean;
104
+ };
105
+ hideTitle: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ hideAnimate: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ hideGeneral: {
114
+ type: BooleanConstructor;
115
+ default: boolean;
116
+ };
117
+ }>>, {
118
+ value: Record<string, any>;
119
+ expandable: boolean;
120
+ startSync: boolean;
121
+ hideName: boolean;
122
+ hideTitle: boolean;
123
+ hideAnimate: boolean;
124
+ hideGeneral: boolean;
125
+ }>;
126
+ export default _default;