@uni-sw/u-design 2.0.4
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/README.md +86 -0
- package/es/components/UAffix/index.d.ts +55 -0
- package/es/components/UAffix/index.js +272 -0
- package/es/components/UAffix/style/index.d.ts +2 -0
- package/es/components/UAffix/style/index.js +2 -0
- package/es/components/UAffix/style/index.less +6 -0
- package/es/components/UAffix/utils.d.ts +15 -0
- package/es/components/UAffix/utils.js +78 -0
- package/es/components/UAlert/ErrorBoundary.d.ts +23 -0
- package/es/components/UAlert/ErrorBoundary.js +62 -0
- package/es/components/UAlert/index.d.ts +39 -0
- package/es/components/UAlert/index.js +169 -0
- package/es/components/UAlert/style/index.d.ts +2 -0
- package/es/components/UAlert/style/index.js +2 -0
- package/es/components/UAlert/style/index.less +155 -0
- package/es/components/UAlert/style/rtl.less +40 -0
- package/es/components/UAnchor/Anchor.d.ts +44 -0
- package/es/components/UAnchor/Anchor.js +232 -0
- package/es/components/UAnchor/AnchorLink.d.ts +11 -0
- package/es/components/UAnchor/AnchorLink.js +54 -0
- package/es/components/UAnchor/context.d.ts +4 -0
- package/es/components/UAnchor/context.js +3 -0
- package/es/components/UAnchor/index.d.ts +11 -0
- package/es/components/UAnchor/index.js +6 -0
- package/es/components/UAnchor/style/index.d.ts +3 -0
- package/es/components/UAnchor/style/index.js +4 -0
- package/es/components/UAnchor/style/index.less +86 -0
- package/es/components/UAnchor/style/rtl.less +35 -0
- package/es/components/UAutoComplete/index.d.ts +36 -0
- package/es/components/UAutoComplete/index.js +96 -0
- package/es/components/UAutoComplete/style/index.d.ts +3 -0
- package/es/components/UAutoComplete/style/index.js +4 -0
- package/es/components/UAutoComplete/style/index.less +16 -0
- package/es/components/UAvatar/SizeContext.d.ts +10 -0
- package/es/components/UAvatar/SizeContext.js +12 -0
- package/es/components/UAvatar/avatar.d.ts +25 -0
- package/es/components/UAvatar/avatar.js +171 -0
- package/es/components/UAvatar/group.d.ts +15 -0
- package/es/components/UAvatar/group.js +62 -0
- package/es/components/UAvatar/index.d.ts +12 -0
- package/es/components/UAvatar/index.js +7 -0
- package/es/components/UAvatar/style/group.less +17 -0
- package/es/components/UAvatar/style/index.d.ts +3 -0
- package/es/components/UAvatar/style/index.js +5 -0
- package/es/components/UAvatar/style/index.less +70 -0
- package/es/components/UAvatar/style/rtl.less +15 -0
- package/es/components/UBackTop/index.d.ts +15 -0
- package/es/components/UBackTop/index.js +119 -0
- package/es/components/UBackTop/style/index.d.ts +2 -0
- package/es/components/UBackTop/style/index.js +2 -0
- package/es/components/UBackTop/style/index.less +49 -0
- package/es/components/UBackTop/style/responsive.less +21 -0
- package/es/components/UBadge/Ribbon.d.ts +15 -0
- package/es/components/UBadge/Ribbon.js +42 -0
- package/es/components/UBadge/ScrollNumber.d.ts +18 -0
- package/es/components/UBadge/ScrollNumber.js +60 -0
- package/es/components/UBadge/SingleNumber.d.ts +12 -0
- package/es/components/UBadge/SingleNumber.js +112 -0
- package/es/components/UBadge/index.d.ts +31 -0
- package/es/components/UBadge/index.js +152 -0
- package/es/components/UBadge/style/index.d.ts +2 -0
- package/es/components/UBadge/style/index.js +2 -0
- package/es/components/UBadge/style/index.less +281 -0
- package/es/components/UBadge/style/ribbon.less +86 -0
- package/es/components/UBadge/style/rtl.less +100 -0
- package/es/components/UBadge/utils.d.ts +1 -0
- package/es/components/UBadge/utils.js +5 -0
- package/es/components/UBreadcrumb/Breadcrumb.d.ts +24 -0
- package/es/components/UBreadcrumb/Breadcrumb.js +121 -0
- package/es/components/UBreadcrumb/BreadcrumbItem.d.ts +19 -0
- package/es/components/UBreadcrumb/BreadcrumbItem.js +56 -0
- package/es/components/UBreadcrumb/BreadcrumbSeparator.d.ts +6 -0
- package/es/components/UBreadcrumb/BreadcrumbSeparator.js +13 -0
- package/es/components/UBreadcrumb/index.d.ts +5 -0
- package/es/components/UBreadcrumb/index.js +3 -0
- package/es/components/UBreadcrumb/style/index.d.ts +4 -0
- package/es/components/UBreadcrumb/style/index.js +5 -0
- package/es/components/UBreadcrumb/style/index.less +64 -0
- package/es/components/UBreadcrumb/style/rtl.less +29 -0
- package/es/components/UButton/button/LoadingIcon.d.ts +8 -0
- package/es/components/UButton/button/LoadingIcon.js +51 -0
- package/es/components/UButton/button/button-group.d.ts +12 -0
- package/es/components/UButton/button/button-group.js +43 -0
- package/es/components/UButton/button/button.d.ts +47 -0
- package/es/components/UButton/button/button.js +226 -0
- package/es/components/UButton/button/index.d.ts +6 -0
- package/es/components/UButton/button/index.js +3 -0
- package/es/components/UButton/button/style/index.d.ts +2 -0
- package/es/components/UButton/button/style/index.js +3 -0
- package/es/components/UButton/button/style/index.less +293 -0
- package/es/components/UButton/button/style/mixin.less +484 -0
- package/es/components/UButton/button/style/rtl.less +90 -0
- package/es/components/UButton/button/style/space-compact.less +88 -0
- package/es/components/UButton/images/icon_add_default.png +0 -0
- package/es/components/UButton/images/icon_add_down.png +0 -0
- package/es/components/UButton/images/icon_add_hover.png +0 -0
- package/es/components/UButton/images/icon_arming_default.png +0 -0
- package/es/components/UButton/images/icon_arming_hover.png +0 -0
- package/es/components/UButton/images/icon_custom_default.png +0 -0
- package/es/components/UButton/images/icon_custom_hover.png +0 -0
- package/es/components/UButton/images/icon_delete-default.png +0 -0
- package/es/components/UButton/images/icon_delete_down.png +0 -0
- package/es/components/UButton/images/icon_delete_hover.png +0 -0
- package/es/components/UButton/images/icon_delete_no.png +0 -0
- package/es/components/UButton/images/icon_edit_default.png +0 -0
- package/es/components/UButton/images/icon_edit_down.png +0 -0
- package/es/components/UButton/images/icon_edit_hover.png +0 -0
- package/es/components/UButton/images/icon_export_default.png +0 -0
- package/es/components/UButton/images/icon_export_hover.png +0 -0
- package/es/components/UButton/images/icon_import_default.png +0 -0
- package/es/components/UButton/images/icon_import_hover.png +0 -0
- package/es/components/UButton/images/icon_modify.png +0 -0
- package/es/components/UButton/images/icon_refresh_default.png +0 -0
- package/es/components/UButton/images/icon_refresh_down.png +0 -0
- package/es/components/UButton/images/icon_refresh_hover.png +0 -0
- package/es/components/UButton/images/icon_template_default.png +0 -0
- package/es/components/UButton/images/icon_template_hover.png +0 -0
- package/es/components/UButton/images/icon_upload_default.png +0 -0
- package/es/components/UButton/images/icon_upload_hover.png +0 -0
- package/es/components/UButton/index.d.ts +43 -0
- package/es/components/UButton/index.js +163 -0
- package/es/components/UButton/style/index.d.ts +1 -0
- package/es/components/UButton/style/index.js +1 -0
- package/es/components/UButton/style/index.less +17 -0
- package/es/components/UButton/style/mixin.less +222 -0
- package/es/components/UButton/style/theme.less +144 -0
- package/es/components/UCalendar/Header.d.ts +16 -0
- package/es/components/UCalendar/Header.js +157 -0
- package/es/components/UCalendar/generateCalendar.d.ts +41 -0
- package/es/components/UCalendar/generateCalendar.js +177 -0
- package/es/components/UCalendar/index.d.ts +6 -0
- package/es/components/UCalendar/index.js +5 -0
- package/es/components/UCalendar/locale/en_US.d.ts +2 -0
- package/es/components/UCalendar/locale/en_US.js +2 -0
- package/es/components/UCalendar/locale/zh_CN.d.ts +2 -0
- package/es/components/UCalendar/locale/zh_CN.js +2 -0
- package/es/components/UCalendar/style/index.d.ts +5 -0
- package/es/components/UCalendar/style/index.js +7 -0
- package/es/components/UCalendar/style/index.less +196 -0
- package/es/components/UCalendar/style/rtl.less +46 -0
- package/es/components/UCard/Card.d.ts +35 -0
- package/es/components/UCard/Card.js +128 -0
- package/es/components/UCard/Grid.d.ts +9 -0
- package/es/components/UCard/Grid.js +24 -0
- package/es/components/UCard/Meta.d.ts +11 -0
- package/es/components/UCard/Meta.js +33 -0
- package/es/components/UCard/index.d.ts +14 -0
- package/es/components/UCard/index.js +8 -0
- package/es/components/UCard/style/index.d.ts +4 -0
- package/es/components/UCard/style/index.js +5 -0
- package/es/components/UCard/style/index.less +277 -0
- package/es/components/UCard/style/size.less +20 -0
- package/es/components/UCarousel/index.d.ts +25 -0
- package/es/components/UCarousel/index.js +69 -0
- package/es/components/UCarousel/style/index.d.ts +2 -0
- package/es/components/UCarousel/style/index.js +2 -0
- package/es/components/UCarousel/style/index.less +304 -0
- package/es/components/UCarousel/style/rtl.less +54 -0
- package/es/components/UCascader/index.d.ts +44 -0
- package/es/components/UCascader/index.js +210 -0
- package/es/components/UCascader/style/index.d.ts +4 -0
- package/es/components/UCascader/style/index.js +6 -0
- package/es/components/UCascader/style/index.less +169 -0
- package/es/components/UCascader/style/rtl.less +19 -0
- package/es/components/UCheckBoxGroup/UCheckBox.d.ts +14 -0
- package/es/components/UCheckBoxGroup/UCheckBox.js +66 -0
- package/es/components/UCheckBoxGroup/UCheckBoxGroup.d.ts +44 -0
- package/es/components/UCheckBoxGroup/UCheckBoxGroup.js +154 -0
- package/es/components/UCheckBoxGroup/checkbox/Checkbox.d.ts +37 -0
- package/es/components/UCheckBoxGroup/checkbox/Checkbox.js +93 -0
- package/es/components/UCheckBoxGroup/checkbox/Group.d.ts +35 -0
- package/es/components/UCheckBoxGroup/checkbox/Group.js +133 -0
- package/es/components/UCheckBoxGroup/checkbox/index.d.ts +11 -0
- package/es/components/UCheckBoxGroup/checkbox/index.js +7 -0
- package/es/components/UCheckBoxGroup/checkbox/style/index.d.ts +2 -0
- package/es/components/UCheckBoxGroup/checkbox/style/index.js +3 -0
- package/es/components/UCheckBoxGroup/checkbox/style/index.less +6 -0
- package/es/components/UCheckBoxGroup/checkbox/style/mixin.less +246 -0
- package/es/components/UCheckBoxGroup/checkbox/style/rtl.less +28 -0
- package/es/components/UCheckBoxGroup/index.d.ts +14 -0
- package/es/components/UCheckBoxGroup/index.js +12 -0
- package/es/components/UCheckBoxGroup/locale/en_US.d.ts +3 -0
- package/es/components/UCheckBoxGroup/locale/en_US.js +4 -0
- package/es/components/UCheckBoxGroup/locale/locale.d.ts +3 -0
- package/es/components/UCheckBoxGroup/locale/zh_CN.d.ts +3 -0
- package/es/components/UCheckBoxGroup/locale/zh_CN.js +4 -0
- package/es/components/UCheckBoxGroup/style/index.d.ts +1 -0
- package/es/components/UCheckBoxGroup/style/index.js +1 -0
- package/es/components/UCheckBoxGroup/style/index.less +26 -0
- package/es/components/UCheckBoxGroup/style/mixin.less +166 -0
- package/es/components/UCheckBoxGroup/style/theme.less +38 -0
- package/es/components/UCol/index.d.ts +4 -0
- package/es/components/UCol/index.js +3 -0
- package/es/components/UCol/style/index.d.ts +2 -0
- package/es/components/UCol/style/index.js +4 -0
- package/es/components/UCollapse/Collapse.d.ts +40 -0
- package/es/components/UCollapse/Collapse.js +82 -0
- package/es/components/UCollapse/CollapsePanel.d.ts +19 -0
- package/es/components/UCollapse/CollapsePanel.js +26 -0
- package/es/components/UCollapse/index.d.ts +5 -0
- package/es/components/UCollapse/index.js +3 -0
- package/es/components/UCollapse/style/index.d.ts +2 -0
- package/es/components/UCollapse/style/index.js +2 -0
- package/es/components/UCollapse/style/index.less +177 -0
- package/es/components/UCollapse/style/rtl.less +68 -0
- package/es/components/UColor/index.d.ts +15 -0
- package/es/components/UColor/index.js +248 -0
- package/es/components/UColor/style/index.d.ts +1 -0
- package/es/components/UColor/style/index.js +1 -0
- package/es/components/UColor/style/index.less +16 -0
- package/es/components/UColor/style/mixin.less +53 -0
- package/es/components/UColor/style/theme.less +9 -0
- package/es/components/UComment/index.d.ts +24 -0
- package/es/components/UComment/index.js +62 -0
- package/es/components/UComment/style/index.d.ts +2 -0
- package/es/components/UComment/style/index.js +2 -0
- package/es/components/UComment/style/index.less +105 -0
- package/es/components/UComment/style/rtl.less +51 -0
- package/es/components/UConfigProvider/CustomerContext.d.ts +11 -0
- package/es/components/UConfigProvider/CustomerContext.js +15 -0
- package/es/components/UConfigProvider/DisabledContext.d.ts +9 -0
- package/es/components/UConfigProvider/DisabledContext.js +11 -0
- package/es/components/UConfigProvider/SizeContext.d.ts +9 -0
- package/es/components/UConfigProvider/SizeContext.js +12 -0
- package/es/components/UConfigProvider/changeSkin.d.ts +62 -0
- package/es/components/UConfigProvider/changeSkin.js +197 -0
- package/es/components/UConfigProvider/changeTheme.d.ts +1 -0
- package/es/components/UConfigProvider/changeTheme.js +83 -0
- package/es/components/UConfigProvider/context.d.ts +60 -0
- package/es/components/UConfigProvider/context.js +35 -0
- package/es/components/UConfigProvider/convertColor.d.ts +4 -0
- package/es/components/UConfigProvider/convertColor.js +106 -0
- package/es/components/UConfigProvider/cssVariables.d.ts +3 -0
- package/es/components/UConfigProvider/cssVariables.js +72 -0
- package/es/components/UConfigProvider/defaultRenderEmpty.d.ts +4 -0
- package/es/components/UConfigProvider/defaultRenderEmpty.js +30 -0
- package/es/components/UConfigProvider/index.d.ts +64 -0
- package/es/components/UConfigProvider/index.js +195 -0
- package/es/components/UConfigProvider/style/index.d.ts +1 -0
- package/es/components/UConfigProvider/style/index.js +1 -0
- package/es/components/UConfigProvider/style/index.less +2 -0
- package/es/components/UConfigProvider/theme.d.ts +11 -0
- package/es/components/UConfigProvider/theme.js +27 -0
- package/es/components/UDatePicker/date-picker/PickerButton.d.ts +2 -0
- package/es/components/UDatePicker/date-picker/PickerButton.js +8 -0
- package/es/components/UDatePicker/date-picker/PickerTag.d.ts +2 -0
- package/es/components/UDatePicker/date-picker/PickerTag.js +7 -0
- package/es/components/UDatePicker/date-picker/generatePicker/generateRangePicker.d.ts +17 -0
- package/es/components/UDatePicker/date-picker/generatePicker/generateRangePicker.js +219 -0
- package/es/components/UDatePicker/date-picker/generatePicker/generateSinglePicker.d.ts +101 -0
- package/es/components/UDatePicker/date-picker/generatePicker/generateSinglePicker.js +393 -0
- package/es/components/UDatePicker/date-picker/generatePicker/index.d.ts +252 -0
- package/es/components/UDatePicker/date-picker/generatePicker/index.js +77 -0
- package/es/components/UDatePicker/date-picker/generatePicker/interface.d.ts +12 -0
- package/es/components/UDatePicker/date-picker/generatePicker/interface.js +1 -0
- package/es/components/UDatePicker/date-picker/locale/en_US.d.ts +3 -0
- package/es/components/UDatePicker/date-picker/locale/en_US.js +22 -0
- package/es/components/UDatePicker/date-picker/locale/example.json +47 -0
- package/es/components/UDatePicker/date-picker/locale/zh_CN.d.ts +3 -0
- package/es/components/UDatePicker/date-picker/locale/zh_CN.js +24 -0
- package/es/components/UDatePicker/date-picker/style/index.d.ts +3 -0
- package/es/components/UDatePicker/date-picker/style/index.js +5 -0
- package/es/components/UDatePicker/date-picker/style/index.less +372 -0
- package/es/components/UDatePicker/date-picker/style/panel.less +678 -0
- package/es/components/UDatePicker/date-picker/style/rtl.less +246 -0
- package/es/components/UDatePicker/date-picker/style/status.less +39 -0
- package/es/components/UDatePicker/date-picker/util.d.ts +15 -0
- package/es/components/UDatePicker/date-picker/util.js +121 -0
- package/es/components/UDatePicker/index.d.ts +199 -0
- package/es/components/UDatePicker/index.js +61 -0
- package/es/components/UDatePicker/locale/en_US.d.ts +3 -0
- package/es/components/UDatePicker/locale/en_US.js +6 -0
- package/es/components/UDatePicker/locale/locale.d.ts +5 -0
- package/es/components/UDatePicker/locale/zh_CN.d.ts +3 -0
- package/es/components/UDatePicker/locale/zh_CN.js +6 -0
- package/es/components/UDatePicker/style/index.d.ts +1 -0
- package/es/components/UDatePicker/style/index.js +1 -0
- package/es/components/UDatePicker/style/index.less +28 -0
- package/es/components/UDatePicker/style/mixin.less +217 -0
- package/es/components/UDatePicker/style/theme.less +72 -0
- package/es/components/UDatePicker/time-picker/locale/en_US.d.ts +3 -0
- package/es/components/UDatePicker/time-picker/locale/en_US.js +5 -0
- package/es/components/UDatePicker/time-picker/locale/zh_CN.d.ts +3 -0
- package/es/components/UDatePicker/time-picker/locale/zh_CN.js +5 -0
- package/es/components/UDatePicker/time-picker/style/index.d.ts +3 -0
- package/es/components/UDatePicker/time-picker/style/index.js +4 -0
- package/es/components/UDatePicker/time-picker/style/index.less +3 -0
- package/es/components/UDescriptions/Cell.d.ts +16 -0
- package/es/components/UDescriptions/Cell.js +48 -0
- package/es/components/UDescriptions/Item.d.ts +13 -0
- package/es/components/UDescriptions/Item.js +5 -0
- package/es/components/UDescriptions/Row.d.ts +13 -0
- package/es/components/UDescriptions/Row.js +99 -0
- package/es/components/UDescriptions/index.d.ts +28 -0
- package/es/components/UDescriptions/index.js +155 -0
- package/es/components/UDescriptions/style/index.d.ts +2 -0
- package/es/components/UDescriptions/style/index.js +2 -0
- package/es/components/UDescriptions/style/index.less +179 -0
- package/es/components/UDescriptions/style/rtl.less +33 -0
- package/es/components/UDivider/divider/index.d.ts +15 -0
- package/es/components/UDivider/divider/index.js +50 -0
- package/es/components/UDivider/divider/style/index.d.ts +2 -0
- package/es/components/UDivider/divider/style/index.js +2 -0
- package/es/components/UDivider/divider/style/index.less +133 -0
- package/es/components/UDivider/divider/style/rtl.less +38 -0
- package/es/components/UDivider/index.d.ts +16 -0
- package/es/components/UDivider/index.js +27 -0
- package/es/components/UDivider/style/index.d.ts +1 -0
- package/es/components/UDivider/style/index.js +1 -0
- package/es/components/UDivider/style/index.less +17 -0
- package/es/components/UDivider/style/mixin.less +8 -0
- package/es/components/UDivider/style/rtl.less +38 -0
- package/es/components/UDivider/style/theme.less +5 -0
- package/es/components/UDrawer/index.d.ts +39 -0
- package/es/components/UDrawer/index.js +168 -0
- package/es/components/UDrawer/style/drawer.less +160 -0
- package/es/components/UDrawer/style/index.d.ts +2 -0
- package/es/components/UDrawer/style/index.js +3 -0
- package/es/components/UDrawer/style/index.less +7 -0
- package/es/components/UDrawer/style/motion.less +146 -0
- package/es/components/UDrawer/style/rtl.less +16 -0
- package/es/components/UDropdown/dropdown-button.d.ts +22 -0
- package/es/components/UDropdown/dropdown-button.js +116 -0
- package/es/components/UDropdown/dropdown.d.ts +58 -0
- package/es/components/UDropdown/dropdown.js +171 -0
- package/es/components/UDropdown/index.d.ts +5 -0
- package/es/components/UDropdown/index.js +3 -0
- package/es/components/UDropdown/style/index.d.ts +5 -0
- package/es/components/UDropdown/style/index.js +6 -0
- package/es/components/UDropdown/style/index.less +390 -0
- package/es/components/UDropdown/style/rtl.less +90 -0
- package/es/components/UDropdown/style/status.less +14 -0
- package/es/components/UEcharts/index.d.ts +2 -0
- package/es/components/UEcharts/index.js +192 -0
- package/es/components/UEcharts/style/index.d.ts +1 -0
- package/es/components/UEcharts/style/index.js +1 -0
- package/es/components/UEcharts/style/index.less +16 -0
- package/es/components/UEcharts/style/mixin.less +7 -0
- package/es/components/UEcharts/style/theme.less +0 -0
- package/es/components/UEmpty/components/u404.d.ts +2 -0
- package/es/components/UEmpty/components/u404.js +18 -0
- package/es/components/UEmpty/components/uAccess.d.ts +2 -0
- package/es/components/UEmpty/components/uAccess.js +18 -0
- package/es/components/UEmpty/components/uDefault.d.ts +2 -0
- package/es/components/UEmpty/components/uDefault.js +18 -0
- package/es/components/UEmpty/components/uDeveloping.d.ts +2 -0
- package/es/components/UEmpty/components/uDeveloping.js +18 -0
- package/es/components/UEmpty/components/uFavorite.d.ts +2 -0
- package/es/components/UEmpty/components/uFavorite.js +18 -0
- package/es/components/UEmpty/components/uListDefault.d.ts +2 -0
- package/es/components/UEmpty/components/uListDefault.js +18 -0
- package/es/components/UEmpty/components/uListSearch.d.ts +2 -0
- package/es/components/UEmpty/components/uListSearch.js +18 -0
- package/es/components/UEmpty/components/uMap.d.ts +2 -0
- package/es/components/UEmpty/components/uMap.js +18 -0
- package/es/components/UEmpty/components/uSearch.d.ts +2 -0
- package/es/components/UEmpty/components/uSearch.js +18 -0
- package/es/components/UEmpty/empty.d.ts +2 -0
- package/es/components/UEmpty/empty.js +42 -0
- package/es/components/UEmpty/images/defaultnodata.png +0 -0
- package/es/components/UEmpty/images/developing.png +0 -0
- package/es/components/UEmpty/images/listdefaultnodata.png +0 -0
- package/es/components/UEmpty/images/listsearchnodata.png +0 -0
- package/es/components/UEmpty/images/noaccess.png +0 -0
- package/es/components/UEmpty/images/nofavoritedata.png +0 -0
- package/es/components/UEmpty/images/nomap.png +0 -0
- package/es/components/UEmpty/images/notfound.png +0 -0
- package/es/components/UEmpty/images/searchnodata.png +0 -0
- package/es/components/UEmpty/index.d.ts +30 -0
- package/es/components/UEmpty/index.js +83 -0
- package/es/components/UEmpty/simple.d.ts +2 -0
- package/es/components/UEmpty/simple.js +22 -0
- package/es/components/UEmpty/style/index.d.ts +2 -0
- package/es/components/UEmpty/style/index.js +2 -0
- package/es/components/UEmpty/style/index.less +60 -0
- package/es/components/UEmpty/style/rtl.less +10 -0
- package/es/components/UExportExcel/getGuid.d.ts +13 -0
- package/es/components/UExportExcel/getGuid.js +22 -0
- package/es/components/UExportExcel/index.d.ts +60 -0
- package/es/components/UExportExcel/index.js +205 -0
- package/es/components/UExportExcel/index.less +24 -0
- package/es/components/UExportExcel/isDate.d.ts +6 -0
- package/es/components/UExportExcel/isDate.js +8 -0
- package/es/components/UExportExcel/locale/en_US.d.ts +3 -0
- package/es/components/UExportExcel/locale/en_US.js +7 -0
- package/es/components/UExportExcel/locale/locale.d.ts +6 -0
- package/es/components/UExportExcel/locale/zh_CN.d.ts +3 -0
- package/es/components/UExportExcel/locale/zh_CN.js +7 -0
- package/es/components/UFeature/USingleFeafure.d.ts +2 -0
- package/es/components/UFeature/USingleFeafure.js +75 -0
- package/es/components/UFeature/USingleFeafure.less +24 -0
- package/es/components/UFeature/index.d.ts +33 -0
- package/es/components/UFeature/index.js +115 -0
- package/es/components/UFeature/style/index.d.ts +1 -0
- package/es/components/UFeature/style/index.js +1 -0
- package/es/components/UFeature/style/index.less +16 -0
- package/es/components/UFeature/style/mixin.less +26 -0
- package/es/components/UFeature/style/theme.less +2 -0
- package/es/components/UFileSelect/index.d.ts +16 -0
- package/es/components/UFileSelect/index.js +133 -0
- package/es/components/UFileSelect/locale/en_US.d.ts +3 -0
- package/es/components/UFileSelect/locale/en_US.js +5 -0
- package/es/components/UFileSelect/locale/locale.d.ts +4 -0
- package/es/components/UFileSelect/locale/zh_CN.d.ts +3 -0
- package/es/components/UFileSelect/locale/zh_CN.js +5 -0
- package/es/components/UFileSelect/style/index.d.ts +1 -0
- package/es/components/UFileSelect/style/index.js +1 -0
- package/es/components/UFileSelect/style/index.less +14 -0
- package/es/components/UFileSelect/style/mixin.less +65 -0
- package/es/components/UFileSelect/style/theme.less +24 -0
- package/es/components/UForm/ErrorList.d.ts +12 -0
- package/es/components/UForm/ErrorList.js +91 -0
- package/es/components/UForm/Form.d.ts +59 -0
- package/es/components/UForm/Form.js +318 -0
- package/es/components/UForm/FormItem/ItemHolder.d.ts +20 -0
- package/es/components/UForm/FormItem/ItemHolder.js +246 -0
- package/es/components/UForm/FormItem/index.d.ts +42 -0
- package/es/components/UForm/FormItem/index.js +360 -0
- package/es/components/UForm/FormItemInput.d.ts +27 -0
- package/es/components/UForm/FormItemInput.js +119 -0
- package/es/components/UForm/FormItemLabel.d.ts +24 -0
- package/es/components/UForm/FormItemLabel.js +105 -0
- package/es/components/UForm/FormList.d.ts +25 -0
- package/es/components/UForm/FormList.js +34 -0
- package/es/components/UForm/context.d.ts +57 -0
- package/es/components/UForm/context.js +39 -0
- package/es/components/UForm/hooks/useDebounce.d.ts +1 -0
- package/es/components/UForm/hooks/useDebounce.js +22 -0
- package/es/components/UForm/hooks/useForm.d.ts +7 -0
- package/es/components/UForm/hooks/useForm.js +53 -0
- package/es/components/UForm/hooks/useFormInstance.d.ts +2 -0
- package/es/components/UForm/hooks/useFormInstance.js +7 -0
- package/es/components/UForm/hooks/useFormItemStatus.d.ts +6 -0
- package/es/components/UForm/hooks/useFormItemStatus.js +12 -0
- package/es/components/UForm/hooks/useFrameState.d.ts +3 -0
- package/es/components/UForm/hooks/useFrameState.js +46 -0
- package/es/components/UForm/hooks/useItemRef.d.ts +3 -0
- package/es/components/UForm/hooks/useItemRef.js +20 -0
- package/es/components/UForm/index.d.ts +23 -0
- package/es/components/UForm/index.js +21 -0
- package/es/components/UForm/interface.d.ts +3 -0
- package/es/components/UForm/interface.js +1 -0
- package/es/components/UForm/style/components.less +16 -0
- package/es/components/UForm/style/horizontal.less +23 -0
- package/es/components/UForm/style/index.d.ts +4 -0
- package/es/components/UForm/style/index.js +5 -0
- package/es/components/UForm/style/index.less +457 -0
- package/es/components/UForm/style/inline.less +38 -0
- package/es/components/UForm/style/mixin.less +85 -0
- package/es/components/UForm/style/rtl.less +200 -0
- package/es/components/UForm/style/status.less +42 -0
- package/es/components/UForm/style/theme.less +5 -0
- package/es/components/UForm/style/vertical.less +93 -0
- package/es/components/UForm/util.d.ts +3 -0
- package/es/components/UForm/util.js +18 -0
- package/es/components/UFramePanel/images/pic01.png +0 -0
- package/es/components/UFramePanel/images/pic011.png +0 -0
- package/es/components/UFramePanel/images/pic02.png +0 -0
- package/es/components/UFramePanel/images/pic021.png +0 -0
- package/es/components/UFramePanel/images/pic03.png +0 -0
- package/es/components/UFramePanel/images/pic031.png +0 -0
- package/es/components/UFramePanel/images/pic04.png +0 -0
- package/es/components/UFramePanel/images/pic041.png +0 -0
- package/es/components/UFramePanel/index.d.ts +11 -0
- package/es/components/UFramePanel/index.js +130 -0
- package/es/components/UFramePanel/index.td.d.ts +17 -0
- package/es/components/UFramePanel/index.td.js +1 -0
- package/es/components/UFramePanel/style/index.d.ts +1 -0
- package/es/components/UFramePanel/style/index.js +1 -0
- package/es/components/UFramePanel/style/index.less +16 -0
- package/es/components/UFramePanel/style/mixin.less +87 -0
- package/es/components/UFramePanel/style/theme.less +21 -0
- package/es/components/UGrid/RowContext.d.ts +8 -0
- package/es/components/UGrid/RowContext.js +3 -0
- package/es/components/UGrid/col.d.ts +28 -0
- package/es/components/UGrid/col.js +83 -0
- package/es/components/UGrid/hooks/useBreakpoint.d.ts +3 -0
- package/es/components/UGrid/hooks/useBreakpoint.js +21 -0
- package/es/components/UGrid/index.d.ts +11 -0
- package/es/components/UGrid/index.js +12 -0
- package/es/components/UGrid/row.d.ts +20 -0
- package/es/components/UGrid/row.js +165 -0
- package/es/components/UGrid/style/index.d.ts +2 -0
- package/es/components/UGrid/style/index.js +2 -0
- package/es/components/UGrid/style/index.less +124 -0
- package/es/components/UGrid/style/mixin.less +56 -0
- package/es/components/UGrid/style/rtl.less +69 -0
- package/es/components/UIPInput/index.d.ts +19 -0
- package/es/components/UIPInput/index.js +392 -0
- package/es/components/UIPInput/locale/en_US.d.ts +3 -0
- package/es/components/UIPInput/locale/en_US.js +5 -0
- package/es/components/UIPInput/locale/locale.d.ts +4 -0
- package/es/components/UIPInput/locale/zh_CN.d.ts +3 -0
- package/es/components/UIPInput/locale/zh_CN.js +5 -0
- package/es/components/UIPInput/style/index.d.ts +1 -0
- package/es/components/UIPInput/style/index.js +1 -0
- package/es/components/UIPInput/style/index.less +14 -0
- package/es/components/UIPInput/style/mixin.less +115 -0
- package/es/components/UIPInput/style/theme.less +30 -0
- package/es/components/UIcon/icon/index.d.ts +4 -0
- package/es/components/UIcon/icon/index.js +7 -0
- package/es/components/UIcon/icon/style/index.d.ts +2 -0
- package/es/components/UIcon/icon/style/index.js +2 -0
- package/es/components/UIcon/icon/style/index.less +4 -0
- package/es/components/UIcon/icon.d.ts +916 -0
- package/es/components/UIcon/icon.js +4964 -0
- package/es/components/UIcon/index.d.ts +39 -0
- package/es/components/UIcon/index.js +75 -0
- package/es/components/UIcon/style/index.d.ts +1 -0
- package/es/components/UIcon/style/index.js +1 -0
- package/es/components/UIcon/style/index.less +16 -0
- package/es/components/UIcon/style/mixin.less +89 -0
- package/es/components/UIcon/style/theme.less +13 -0
- package/es/components/UImage/image/PreviewGroup.d.ts +13 -0
- package/es/components/UImage/image/PreviewGroup.js +47 -0
- package/es/components/UImage/image/index.d.ts +10 -0
- package/es/components/UImage/image/index.js +48 -0
- package/es/components/UImage/image/style/index.d.ts +2 -0
- package/es/components/UImage/image/style/index.js +2 -0
- package/es/components/UImage/image/style/index.less +203 -0
- package/es/components/UImage/index.d.ts +44 -0
- package/es/components/UImage/index.js +297 -0
- package/es/components/UImage/locale/en_US.d.ts +3 -0
- package/es/components/UImage/locale/en_US.js +4 -0
- package/es/components/UImage/locale/locale.d.ts +3 -0
- package/es/components/UImage/locale/zh_CN.d.ts +3 -0
- package/es/components/UImage/locale/zh_CN.js +4 -0
- package/es/components/UImage/style/index.d.ts +1 -0
- package/es/components/UImage/style/index.js +1 -0
- package/es/components/UImage/style/index.less +15 -0
- package/es/components/UImage/style/mixin.less +248 -0
- package/es/components/UImage/style/theme.less +7 -0
- package/es/components/UImageCropper/UImageCropper.js +300 -0
- package/es/components/UImageCropper/images/confirm.png +0 -0
- package/es/components/UImageCropper/images/empty.png +0 -0
- package/es/components/UImageCropper/images/enlarge.png +0 -0
- package/es/components/UImageCropper/images/frameSelection.png +0 -0
- package/es/components/UImageCropper/images/move.png +0 -0
- package/es/components/UImageCropper/images/narrow.png +0 -0
- package/es/components/UImageCropper/images/updata.png +0 -0
- package/es/components/UImageCropper/index.js +21 -0
- package/es/components/UImageCropper/locale/en_US.d.ts +3 -0
- package/es/components/UImageCropper/locale/en_US.js +12 -0
- package/es/components/UImageCropper/locale/locale.d.ts +11 -0
- package/es/components/UImageCropper/locale/zh_CN.d.ts +3 -0
- package/es/components/UImageCropper/locale/zh_CN.js +12 -0
- package/es/components/UImageCropper/style/index.d.ts +1 -0
- package/es/components/UImageCropper/style/index.js +1 -0
- package/es/components/UImageCropper/style/index.less +15 -0
- package/es/components/UImageCropper/style/mixin.less +57 -0
- package/es/components/UImageCropper/style/theme.less +2 -0
- package/es/components/UImageDetail/UImageBtm.d.ts +8 -0
- package/es/components/UImageDetail/UImageBtm.js +14 -0
- package/es/components/UImageDetail/UImageDetail.d.ts +25 -0
- package/es/components/UImageDetail/UImageDetail.js +105 -0
- package/es/components/UImageDetail/UImageHead.d.ts +8 -0
- package/es/components/UImageDetail/UImageHead.js +14 -0
- package/es/components/UImageDetail/UImageInfo.d.ts +8 -0
- package/es/components/UImageDetail/UImageInfo.js +14 -0
- package/es/components/UImageDetail/UImagePage.d.ts +12 -0
- package/es/components/UImageDetail/UImagePage.js +83 -0
- package/es/components/UImageDetail/UImageShow.d.ts +13 -0
- package/es/components/UImageDetail/UImageShow.js +97 -0
- package/es/components/UImageDetail/images/close_default.png +0 -0
- package/es/components/UImageDetail/images/close_hover.png +0 -0
- package/es/components/UImageDetail/images/empty.png +0 -0
- package/es/components/UImageDetail/images/next_default.png +0 -0
- package/es/components/UImageDetail/images/next_disable.png +0 -0
- package/es/components/UImageDetail/images/next_hover.png +0 -0
- package/es/components/UImageDetail/images/pre_default.png +0 -0
- package/es/components/UImageDetail/images/pre_disable.png +0 -0
- package/es/components/UImageDetail/images/pre_hover.png +0 -0
- package/es/components/UImageDetail/index.d.ts +3 -0
- package/es/components/UImageDetail/index.js +3 -0
- package/es/components/UImageDetail/locale/en_US.d.ts +3 -0
- package/es/components/UImageDetail/locale/en_US.js +11 -0
- package/es/components/UImageDetail/locale/locale.d.ts +7 -0
- package/es/components/UImageDetail/locale/zh_CN.d.ts +3 -0
- package/es/components/UImageDetail/locale/zh_CN.js +8 -0
- package/es/components/UImageDetail/style/index.d.ts +1 -0
- package/es/components/UImageDetail/style/index.js +1 -0
- package/es/components/UImageDetail/style/index.less +28 -0
- package/es/components/UImageDetail/style/mixin.less +210 -0
- package/es/components/UImageDetail/style/theme.less +21 -0
- package/es/components/UImportExcel/getGuid.d.ts +13 -0
- package/es/components/UImportExcel/getGuid.js +22 -0
- package/es/components/UImportExcel/index.d.ts +88 -0
- package/es/components/UImportExcel/index.js +1117 -0
- package/es/components/UImportExcel/isDate.d.ts +6 -0
- package/es/components/UImportExcel/isDate.js +8 -0
- package/es/components/UImportExcel/locale/en_US.d.ts +3 -0
- package/es/components/UImportExcel/locale/en_US.js +7 -0
- package/es/components/UImportExcel/locale/locale.d.ts +6 -0
- package/es/components/UImportExcel/locale/zh_CN.d.ts +3 -0
- package/es/components/UImportExcel/locale/zh_CN.js +7 -0
- package/es/components/UImportExcel/style/index.d.ts +1 -0
- package/es/components/UImportExcel/style/index.js +1 -0
- package/es/components/UImportExcel/style/index.less +33 -0
- package/es/components/UImportExcel/style/mixin.less +169 -0
- package/es/components/UImportExcel/style/theme.less +9 -0
- package/es/components/UInput/index.d.ts +36 -0
- package/es/components/UInput/index.js +256 -0
- package/es/components/UInput/input/ClearableLabeledInput.d.ts +39 -0
- package/es/components/UInput/input/ClearableLabeledInput.js +99 -0
- package/es/components/UInput/input/Group.d.ts +15 -0
- package/es/components/UInput/input/Group.js +36 -0
- package/es/components/UInput/input/Input.d.ts +20 -0
- package/es/components/UInput/input/Input.js +194 -0
- package/es/components/UInput/input/Password.d.ts +14 -0
- package/es/components/UInput/input/Password.js +111 -0
- package/es/components/UInput/input/Search.d.ts +10 -0
- package/es/components/UInput/input/Search.js +132 -0
- package/es/components/UInput/input/TextArea.d.ts +28 -0
- package/es/components/UInput/input/TextArea.js +206 -0
- package/es/components/UInput/input/hooks/useRemovePasswordTimeout.d.ts +3 -0
- package/es/components/UInput/input/hooks/useRemovePasswordTimeout.js +25 -0
- package/es/components/UInput/input/index.d.ts +20 -0
- package/es/components/UInput/input/index.js +12 -0
- package/es/components/UInput/input/style/IE11.less +20 -0
- package/es/components/UInput/input/style/affix.less +79 -0
- package/es/components/UInput/input/style/allow-clear.less +43 -0
- package/es/components/UInput/input/style/index.d.ts +3 -0
- package/es/components/UInput/input/style/index.js +5 -0
- package/es/components/UInput/input/style/index.less +88 -0
- package/es/components/UInput/input/style/mixin.less +457 -0
- package/es/components/UInput/input/style/rtl.less +210 -0
- package/es/components/UInput/input/style/search-input.less +121 -0
- package/es/components/UInput/input/style/status.less +42 -0
- package/es/components/UInput/input/utils.d.ts +3 -0
- package/es/components/UInput/input/utils.js +3 -0
- package/es/components/UInput/locale/en_US.d.ts +3 -0
- package/es/components/UInput/locale/en_US.js +4 -0
- package/es/components/UInput/locale/locale.d.ts +3 -0
- package/es/components/UInput/locale/zh_CN.d.ts +3 -0
- package/es/components/UInput/locale/zh_CN.js +4 -0
- package/es/components/UInput/style/index.d.ts +1 -0
- package/es/components/UInput/style/index.js +1 -0
- package/es/components/UInput/style/index.less +14 -0
- package/es/components/UInput/style/mixin.less +165 -0
- package/es/components/UInput/style/theme.less +46 -0
- package/es/components/UInputNumber/index.d.ts +31 -0
- package/es/components/UInputNumber/index.js +299 -0
- package/es/components/UInputNumber/input-number/index.d.ts +28 -0
- package/es/components/UInputNumber/input-number/index.js +148 -0
- package/es/components/UInputNumber/input-number/style/affix.less +84 -0
- package/es/components/UInputNumber/input-number/style/index.d.ts +2 -0
- package/es/components/UInputNumber/input-number/style/index.js +3 -0
- package/es/components/UInputNumber/input-number/style/index.less +249 -0
- package/es/components/UInputNumber/input-number/style/rtl.less +73 -0
- package/es/components/UInputNumber/input-number/style/status.less +31 -0
- package/es/components/UInputNumber/style/index.d.ts +1 -0
- package/es/components/UInputNumber/style/index.js +1 -0
- package/es/components/UInputNumber/style/index.less +16 -0
- package/es/components/UInputNumber/style/mixin.less +143 -0
- package/es/components/UInputNumber/style/theme.less +37 -0
- package/es/components/ULayout/Sider.d.ts +28 -0
- package/es/components/ULayout/Sider.js +184 -0
- package/es/components/ULayout/index.d.ts +14 -0
- package/es/components/ULayout/index.js +9 -0
- package/es/components/ULayout/layout.d.ts +23 -0
- package/es/components/ULayout/layout.js +124 -0
- package/es/components/ULayout/style/index.d.ts +2 -0
- package/es/components/ULayout/style/index.js +2 -0
- package/es/components/ULayout/style/index.less +145 -0
- package/es/components/ULayout/style/light.less +11 -0
- package/es/components/ULayout/style/rtl.less +10 -0
- package/es/components/ULazyPanel/LazyLoad.d.ts +42 -0
- package/es/components/ULazyPanel/LazyLoad.js +131 -0
- package/es/components/ULazyPanel/index.d.ts +21 -0
- package/es/components/ULazyPanel/index.js +336 -0
- package/es/components/ULazyPanel/style/index.d.ts +1 -0
- package/es/components/ULazyPanel/style/index.js +1 -0
- package/es/components/ULazyPanel/style/index.less +16 -0
- package/es/components/ULazyPanel/style/mixin.less +127 -0
- package/es/components/ULazyPanel/style/theme.less +71 -0
- package/es/components/ULazyPanel/utils/index.js +25 -0
- package/es/components/UList/Item.d.ts +26 -0
- package/es/components/UList/Item.js +101 -0
- package/es/components/UList/index.d.ts +55 -0
- package/es/components/UList/index.js +214 -0
- package/es/components/UList/style/bordered.less +44 -0
- package/es/components/UList/style/customize.less +4 -0
- package/es/components/UList/style/index.d.ts +6 -0
- package/es/components/UList/style/index.js +7 -0
- package/es/components/UList/style/index.less +249 -0
- package/es/components/UList/style/responsive.less +43 -0
- package/es/components/UList/style/rtl.less +139 -0
- package/es/components/ULoading/index.d.ts +15 -0
- package/es/components/ULoading/index.js +89 -0
- package/es/components/ULoading/style/index.d.ts +1 -0
- package/es/components/ULoading/style/index.js +1 -0
- package/es/components/ULoading/style/index.less +14 -0
- package/es/components/ULoading/style/mixin.less +144 -0
- package/es/components/ULoading/style/theme.less +7 -0
- package/es/components/UMap/index.js +30 -0
- package/es/components/UMap/locale/en_US.d.ts +3 -0
- package/es/components/UMap/locale/en_US.js +134 -0
- package/es/components/UMap/locale/locale.d.ts +148 -0
- package/es/components/UMap/locale/zh_CN.d.ts +3 -0
- package/es/components/UMap/locale/zh_CN.js +134 -0
- package/es/components/UMap/map/api/MapApi.js +299 -0
- package/es/components/UMap/map/assets/SvgIcon.js +1561 -0
- package/es/components/UMap/map/assets/images/bg.png +0 -0
- package/es/components/UMap/map/assets/images/cameraBg.png +0 -0
- package/es/components/UMap/map/assets/images/cluster.png +0 -0
- package/es/components/UMap/map/assets/images/deleteImg.png +0 -0
- package/es/components/UMap/map/assets/images/devIconDefault.png +0 -0
- package/es/components/UMap/map/assets/images/index.js +3 -0
- package/es/components/UMap/map/assets/images/location.png +0 -0
- package/es/components/UMap/map/assets/images/point-end.png +0 -0
- package/es/components/UMap/map/assets/images/point-start.png +0 -0
- package/es/components/UMap/map/assets/images/underfloor.png +0 -0
- package/es/components/UMap/map/assets/images/underfloorGrey.png +0 -0
- package/es/components/UMap/map/assets/images/underfloorHover.png +0 -0
- package/es/components/UMap/map/assets/images/upstair.png +0 -0
- package/es/components/UMap/map/assets/images/upstairGrey.png +0 -0
- package/es/components/UMap/map/assets/images/upstairHover.png +0 -0
- package/es/components/UMap/map/components/BuildFloor/index.js +166 -0
- package/es/components/UMap/map/components/BuildFloor/index.less +134 -0
- package/es/components/UMap/map/components/Bus/BusKey.d.ts +33 -0
- package/es/components/UMap/map/components/Bus/BusKey.js +51 -0
- package/es/components/UMap/map/components/Bus/DataBus.d.ts +34 -0
- package/es/components/UMap/map/components/Bus/DataBus.js +80 -0
- package/es/components/UMap/map/components/Bus/EventBus.d.ts +45 -0
- package/es/components/UMap/map/components/Bus/EventBus.js +145 -0
- package/es/components/UMap/map/components/ComInterface.d.ts +42 -0
- package/es/components/UMap/map/components/ComInterface.js +7 -0
- package/es/components/UMap/map/components/FloorSelect/index.js +92 -0
- package/es/components/UMap/map/components/FloorSelect/index.less +84 -0
- package/es/components/UMap/map/components/MapSelect/index.js +340 -0
- package/es/components/UMap/map/components/MapServerPointManage/CommonFunc.js +337 -0
- package/es/components/UMap/map/components/MapServerPointManage/Enum.js +133 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/GPS-Off-line.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/GPS-On-line.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/GPS32.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/GPS48.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/GPS64.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/btndel.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/btndelover.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/cam_qiang.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/cameraCluster48.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/cameraCluster64.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/commit.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/commitover.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/customer.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/customerImage.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/defence.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/folder.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/gps.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/rotate.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/tollgate.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/tollgateCluster48.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Image/tollgateCluster64.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/ArchivesCamera/ArchivesCamera.js +956 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Camera/Camera.js +856 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Camera/CameraMenu.js +467 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Camera/CameraViewShed.js +522 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Customer/Customer.js +526 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Customer/CustomerMenu.js +611 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Defence/Defence.js +234 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Defence/DefenceMenu.js +264 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Dictionary.js +259 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Gps/Gps.js +893 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Gps/GpsMenu.js +333 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Gps/SubSocketCenter.js +519 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/LayerTree.js +363 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Tollgate/Tollgate.js +456 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/Tollgate/TollgateMenu.js +593 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/ToolTipForm.js +15 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/ToolTipInfo.less +19 -0
- package/es/components/UMap/map/components/MapServerPointManage/Layers/layer.less +119 -0
- package/es/components/UMap/map/components/MapServerPointManage/MapLayer.js +541 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20000-1-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20000-1-2.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20000-2-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20000-2-2.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20000-3007-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20000-3007-2.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20000-7-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20000-7-2.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20000-8-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20000-8-2.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20001-1-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20001-2-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20001-3007-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20001-7-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20001-8-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20002-1-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20002-2-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20002-3007-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20002-7-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20002-8-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20003-1-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20003-2-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20003-3007-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20003-7-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20003-8-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20004-1-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20004-2-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20004-3007-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20004-7-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20004-8-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20005-1-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20005-2-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20005-3007-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20005-7-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20005-8-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20006-1-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20006-2-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20006-3007-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20006-7-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20006-8-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20007-1-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20007-2-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20007-3007-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20007-7-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/20007-8-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CameraIcon/CameraIcon.js +93 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/10.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/11.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/12.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/13.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/14.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/15.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/16.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/17.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/18.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/19.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/2.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/20.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/21.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/22.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/23.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/24.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/25.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/26.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/27.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/28.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/29.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/3-offline.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/3-online.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/3.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/30.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/31.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/32.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/4.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/40.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/41.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/5.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/6.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/7.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/8.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/9.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/CustomIcon/CustomImg.js +77 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons/GpsImg.js +77 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons/point.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23724-351.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23724-363.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23724-364.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23724-365.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23724-366.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23724-367.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23724-368.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23724-369.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23732-733.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23732-734.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23732-735.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23732-736.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23732-737.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23732-738.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23732-739.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/345/257/23732-740.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24624-352.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24624-353.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24624-354.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24624-355.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24624-356.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24624-357.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24624-358.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24624-359.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24624-360.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24624-362.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24632-723.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24632-724.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24632-725.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24632-726.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24632-727.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24632-728.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24632-729.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24632-730.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24632-731.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/GpsIcons//350/255/246/350/275/24632-732.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/TollgateIcon/30000-31-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/TollgateIcon/30000-31-2.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/TollgateIcon/30001-31-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/TollgateIcon/30002-31-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/TollgateIcon/30003-31-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/TollgateIcon/30004-31-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/TollgateIcon/30005-31-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/TollgateIcon/30006-31-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/TollgateIcon/30007-31-1.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/TollgateIcon/TollgateIcon.js +21 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerIcon/upright.png +0 -0
- package/es/components/UMap/map/components/MapServerPointManage/MarkerMenu/MarkerMenu.js +95 -0
- package/es/components/UMap/map/components/MapServerPointManage/RequestFunc.js +803 -0
- package/es/components/UMap/map/components/MapServerPointManage/style/index.d.ts +1 -0
- package/es/components/UMap/map/components/MapServerPointManage/style/index.js +1 -0
- package/es/components/UMap/map/components/MapServerPointManage/style/index.less +26 -0
- package/es/components/UMap/map/components/MapServerPointManage/style/mixin.less +51 -0
- package/es/components/UMap/map/components/MapServerPointManage/style/theme.less +129 -0
- package/es/components/UMap/map/components/MapServerPointSearch/index.js +445 -0
- package/es/components/UMap/map/components/MapServerPointSearch/index.less +102 -0
- package/es/components/UMap/map/components/MapSwitch/index.d.ts +12 -0
- package/es/components/UMap/map/components/MapSwitch/index.js +525 -0
- package/es/components/UMap/map/components/MapSwitch/index.less +77 -0
- package/es/components/UMap/map/components/MapToolMenu/Map3D.js +1603 -0
- package/es/components/UMap/map/components/MapToolMenu/index.js +1267 -0
- package/es/components/UMap/map/components/MapToolMenu/index.less +537 -0
- package/es/components/UMap/map/components/PointDraw/PointStyle.d.ts +40 -0
- package/es/components/UMap/map/components/PointDraw/PointStyle.js +163 -0
- package/es/components/UMap/map/components/PointDraw/core.d.ts +330 -0
- package/es/components/UMap/map/components/PointDraw/core.js +364 -0
- package/es/components/UMap/map/components/PointDraw/index.d.ts +214 -0
- package/es/components/UMap/map/components/PointDraw/index.js +968 -0
- package/es/components/UMap/map/components/PointDraw/index.less +95 -0
- package/es/components/UMap/map/components/PointDraw/loaders/ILoader.d.ts +35 -0
- package/es/components/UMap/map/components/PointDraw/loaders/ILoader.js +16 -0
- package/es/components/UMap/map/components/PointDraw/loaders/index.d.ts +6 -0
- package/es/components/UMap/map/components/PointDraw/loaders/index.js +3 -0
- package/es/components/UMap/map/components/PointDraw/loaders/loader2d.d.ts +48 -0
- package/es/components/UMap/map/components/PointDraw/loaders/loader2d.js +243 -0
- package/es/components/UMap/map/components/PointDraw/loaders/loader3d.d.ts +33 -0
- package/es/components/UMap/map/components/PointDraw/loaders/loader3d.js +220 -0
- package/es/components/UMap/map/components/PointDraw/modelcluster/index.d.ts +107 -0
- package/es/components/UMap/map/components/PointDraw/modelcluster/index.js +534 -0
- package/es/components/UMap/map/components/PointDraw/renderers/DomPointRenderer.d.ts +17 -0
- package/es/components/UMap/map/components/PointDraw/renderers/DomPointRenderer.js +163 -0
- package/es/components/UMap/map/components/PointDraw/renderers/IPointRenderer.d.ts +81 -0
- package/es/components/UMap/map/components/PointDraw/renderers/IPointRenderer.js +38 -0
- package/es/components/UMap/map/components/PointDraw/renderers/LabelPointRenderer.d.ts +18 -0
- package/es/components/UMap/map/components/PointDraw/renderers/LabelPointRenderer.js +273 -0
- package/es/components/UMap/map/components/PointDraw/renderers/ModelPointRenderer.d.ts +18 -0
- package/es/components/UMap/map/components/PointDraw/renderers/ModelPointRenderer.js +341 -0
- package/es/components/UMap/map/components/PointDraw/renderers/index.d.ts +6 -0
- package/es/components/UMap/map/components/PointDraw/renderers/index.js +5 -0
- package/es/components/UMap/map/components/PointDraw/renderers/outBindPointRenderer.d.ts +14 -0
- package/es/components/UMap/map/components/PointDraw/renderers/outBindPointRenderer.js +96 -0
- package/es/components/UMap/map/components/Track/index.js +1051 -0
- package/es/components/UMap/map/components/Track/index.less +60 -0
- package/es/components/UMap/map/components/VisualConfig/index.d.ts +11 -0
- package/es/components/UMap/map/components/VisualConfig/index.js +179 -0
- package/es/components/UMap/map/components/VisualConfig/index.less +30 -0
- package/es/components/UMap/map/components/independentMode/index.d.ts +20 -0
- package/es/components/UMap/map/components/independentMode/index.js +57 -0
- package/es/components/UMap/map/images/CustomIcon/1.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/10.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/1000001.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/1000002.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/1001.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/11.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/12.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/13.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/14.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/15.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/16.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/17.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/18.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/19.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/2.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/20.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/21.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/22.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/23.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/24.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/25.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/26.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/27.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/28.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/29.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/3-offline.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/3-online.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/3.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/30.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/31.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/32.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/4.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/40.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/41.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/5.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/6.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/7.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/8.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/9.png +0 -0
- package/es/components/UMap/map/images/CustomIcon/CustomImg.js +81 -0
- package/es/components/UMap/map/images/centerPoint.png +0 -0
- package/es/components/UMap/map/images/icon16.png +0 -0
- package/es/components/UMap/map/images/icon24.png +0 -0
- package/es/components/UMap/map/images/imosMap24.png +0 -0
- package/es/components/UMap/map/images/layer.png +0 -0
- package/es/components/UMap/map/images/layer_hover.png +0 -0
- package/es/components/UMap/map/images/local-hover.png +0 -0
- package/es/components/UMap/map/images/local.png +0 -0
- package/es/components/UMap/map/images/mapLocationSecu.png +0 -0
- package/es/components/UMap/map/images/moveDefault.png +0 -0
- package/es/components/UMap/map/images/poi.png +0 -0
- package/es/components/UMap/map/images/point_blue.png +0 -0
- package/es/components/UMap/map/images/point_red.png +0 -0
- package/es/components/UMap/map/images/pop.png +0 -0
- package/es/components/UMap/map/images/searchEmpty.png +0 -0
- package/es/components/UMap/map/images/searchIcon/1001_1_1.png +0 -0
- package/es/components/UMap/map/images/searchIcon/1001_1_2.png +0 -0
- package/es/components/UMap/map/images/searchIcon/1001_2_1.png +0 -0
- package/es/components/UMap/map/images/searchIcon/1001_2_2.png +0 -0
- package/es/components/UMap/map/images/searchIcon/1001_3007_1.png +0 -0
- package/es/components/UMap/map/images/searchIcon/1001_3007_2.png +0 -0
- package/es/components/UMap/map/images/searchIcon/1001_7_1.png +0 -0
- package/es/components/UMap/map/images/searchIcon/1001_7_2.png +0 -0
- package/es/components/UMap/map/images/searchIcon/1001_8_1.png +0 -0
- package/es/components/UMap/map/images/searchIcon/1001_8_2.png +0 -0
- package/es/components/UMap/map/images/searchIcon/119_42_1.png +0 -0
- package/es/components/UMap/map/images/searchIcon/119_42_2.png +0 -0
- package/es/components/UMap/map/images/searchIcon/2200_29_1.png +0 -0
- package/es/components/UMap/map/images/searchIcon/2200_30_1.png +0 -0
- package/es/components/UMap/map/images/searchIcon/31_31_1.png +0 -0
- package/es/components/UMap/map/images/searchIcon/31_31_2.png +0 -0
- package/es/components/UMap/map/images/sprites.png +0 -0
- package/es/components/UMap/map/index.js +1 -0
- package/es/components/UMap/map/pages/Map.js +2860 -0
- package/es/components/UMap/map/pages/Map.less +194 -0
- package/es/components/UMap/map/util/MapControl.d.ts +43 -0
- package/es/components/UMap/map/util/MapControl.js +90 -0
- package/es/components/UMap/map/util/ScreenMapControl.d.ts +511 -0
- package/es/components/UMap/map/util/ScreenMapControl.js +2162 -0
- package/es/components/UMap/map/util/StreamMapControl.d.ts +414 -0
- package/es/components/UMap/map/util/StreamMapControl.js +1315 -0
- package/es/components/UMap/map/util/constants.js +137 -0
- package/es/components/UMap/map/util/eventBus.js +26 -0
- package/es/components/UMap/map/util/log.d.ts +19 -0
- package/es/components/UMap/map/util/log.js +42 -0
- package/es/components/UMap/map/util/mapEnv.d.ts +34 -0
- package/es/components/UMap/map/util/mapEnv.js +53 -0
- package/es/components/UMap/map/util/publicFun.js +505 -0
- package/es/components/UMap/map/util/request.js +101 -0
- package/es/components/UMap/style/index.d.ts +1 -0
- package/es/components/UMap/style/index.js +1 -0
- package/es/components/UMap/style/index.less +26 -0
- package/es/components/UMap/style/mixin.less +257 -0
- package/es/components/UMap/style/theme.less +137 -0
- package/es/components/UMentions/index.d.ts +36 -0
- package/es/components/UMentions/index.js +159 -0
- package/es/components/UMentions/style/index.d.ts +3 -0
- package/es/components/UMentions/style/index.js +5 -0
- package/es/components/UMentions/style/index.less +179 -0
- package/es/components/UMentions/style/rtl.less +10 -0
- package/es/components/UMentions/style/status.less +16 -0
- package/es/components/UMenu/MenuContext.d.ts +12 -0
- package/es/components/UMenu/MenuContext.js +7 -0
- package/es/components/UMenu/MenuDivider.d.ts +9 -0
- package/es/components/UMenu/MenuDivider.js +23 -0
- package/es/components/UMenu/MenuItem.d.ts +16 -0
- package/es/components/UMenu/MenuItem.js +110 -0
- package/es/components/UMenu/OverrideContext.d.ts +11 -0
- package/es/components/UMenu/OverrideContext.js +21 -0
- package/es/components/UMenu/SubMenu.d.ts +23 -0
- package/es/components/UMenu/SubMenu.js +47 -0
- package/es/components/UMenu/hooks/useItems.d.ts +26 -0
- package/es/components/UMenu/hooks/useItems.js +62 -0
- package/es/components/UMenu/index.d.ts +27 -0
- package/es/components/UMenu/index.js +169 -0
- package/es/components/UMenu/style/dark.less +186 -0
- package/es/components/UMenu/style/index.d.ts +3 -0
- package/es/components/UMenu/style/index.js +5 -0
- package/es/components/UMenu/style/index.less +709 -0
- package/es/components/UMenu/style/light.less +12 -0
- package/es/components/UMenu/style/rtl.less +165 -0
- package/es/components/UMenu/style/status.less +49 -0
- package/es/components/UMessageBox/images/msgDark.png +0 -0
- package/es/components/UMessageBox/images/msgIcon.png +0 -0
- package/es/components/UMessageBox/index.d.ts +32 -0
- package/es/components/UMessageBox/index.js +118 -0
- package/es/components/UMessageBox/message/hooks/useMessage.d.ts +7 -0
- package/es/components/UMessageBox/message/hooks/useMessage.js +79 -0
- package/es/components/UMessageBox/message/index.d.ts +62 -0
- package/es/components/UMessageBox/message/index.js +226 -0
- package/es/components/UMessageBox/message/style/index.d.ts +2 -0
- package/es/components/UMessageBox/message/style/index.js +2 -0
- package/es/components/UMessageBox/message/style/index.less +98 -0
- package/es/components/UMessageBox/message/style/rtl.less +17 -0
- package/es/components/UMessageBox/style/index.d.ts +1 -0
- package/es/components/UMessageBox/style/index.js +1 -0
- package/es/components/UMessageBox/style/index.less +16 -0
- package/es/components/UMessageBox/style/mixin.less +86 -0
- package/es/components/UMessageBox/style/theme.less +12 -0
- package/es/components/UModal/images/form_delete_default.png +0 -0
- package/es/components/UModal/images/form_delete_hover.png +0 -0
- package/es/components/UModal/images/icon_delete_default.png +0 -0
- package/es/components/UModal/images/icon_delete_down.png +0 -0
- package/es/components/UModal/images/icon_delete_hover.png +0 -0
- package/es/components/UModal/index.d.ts +40 -0
- package/es/components/UModal/index.js +322 -0
- package/es/components/UModal/modal/ConfirmDialog.d.ts +12 -0
- package/es/components/UModal/modal/ConfirmDialog.js +125 -0
- package/es/components/UModal/modal/Modal.d.ts +120 -0
- package/es/components/UModal/modal/Modal.js +116 -0
- package/es/components/UModal/modal/confirm.d.ts +22 -0
- package/es/components/UModal/modal/confirm.js +179 -0
- package/es/components/UModal/modal/destroyFns.d.ts +2 -0
- package/es/components/UModal/modal/destroyFns.js +2 -0
- package/es/components/UModal/modal/index.d.ts +13 -0
- package/es/components/UModal/modal/index.js +34 -0
- package/es/components/UModal/modal/locale.d.ts +8 -0
- package/es/components/UModal/modal/locale.js +12 -0
- package/es/components/UModal/modal/style/confirm.less +79 -0
- package/es/components/UModal/modal/style/index.d.ts +3 -0
- package/es/components/UModal/modal/style/index.js +5 -0
- package/es/components/UModal/modal/style/index.less +7 -0
- package/es/components/UModal/modal/style/modal.less +134 -0
- package/es/components/UModal/modal/style/rtl.less +74 -0
- package/es/components/UModal/modal/useModal/HookModal.d.ts +12 -0
- package/es/components/UModal/modal/useModal/HookModal.js +71 -0
- package/es/components/UModal/modal/useModal/index.d.ts +3 -0
- package/es/components/UModal/modal/useModal/index.js +104 -0
- package/es/components/UModal/style/index.d.ts +1 -0
- package/es/components/UModal/style/index.js +1 -0
- package/es/components/UModal/style/index.less +14 -0
- package/es/components/UModal/style/mixin.less +401 -0
- package/es/components/UModal/style/theme.less +23 -0
- package/es/components/UNotification/hooks/useNotification.d.ts +7 -0
- package/es/components/UNotification/hooks/useNotification.js +55 -0
- package/es/components/UNotification/index.d.ts +56 -0
- package/es/components/UNotification/index.js +275 -0
- package/es/components/UNotification/style/index.d.ts +2 -0
- package/es/components/UNotification/style/index.js +2 -0
- package/es/components/UNotification/style/index.less +205 -0
- package/es/components/UNotification/style/placement.less +68 -0
- package/es/components/UNotification/style/rtl.less +53 -0
- package/es/components/UPageHeader/index.d.ts +25 -0
- package/es/components/UPageHeader/index.js +150 -0
- package/es/components/UPageHeader/style/index.d.ts +4 -0
- package/es/components/UPageHeader/style/index.js +5 -0
- package/es/components/UPageHeader/style/index.less +122 -0
- package/es/components/UPageHeader/style/rtl.less +77 -0
- package/es/components/UPagination/index.d.ts +20 -0
- package/es/components/UPagination/index.js +60 -0
- package/es/components/UPagination/pagination/Pagination.d.ts +19 -0
- package/es/components/UPagination/pagination/Pagination.js +99 -0
- package/es/components/UPagination/pagination/Select.d.ts +9 -0
- package/es/components/UPagination/pagination/Select.js +15 -0
- package/es/components/UPagination/pagination/index.d.ts +4 -0
- package/es/components/UPagination/pagination/index.js +3 -0
- package/es/components/UPagination/pagination/style/index.d.ts +3 -0
- package/es/components/UPagination/pagination/style/index.js +5 -0
- package/es/components/UPagination/pagination/style/index.less +482 -0
- package/es/components/UPagination/pagination/style/rtl.less +55 -0
- package/es/components/UPagination/style/index.d.ts +1 -0
- package/es/components/UPagination/style/index.js +1 -0
- package/es/components/UPagination/style/index.less +16 -0
- package/es/components/UPagination/style/mixin.less +249 -0
- package/es/components/UPagination/style/theme.less +148 -0
- package/es/components/UPanel/UContent.d.ts +3 -0
- package/es/components/UPanel/UContent.js +14 -0
- package/es/components/UPanel/UFooter.d.ts +3 -0
- package/es/components/UPanel/UFooter.js +14 -0
- package/es/components/UPanel/UHeader.d.ts +3 -0
- package/es/components/UPanel/UHeader.js +14 -0
- package/es/components/UPanel/UPanel.d.ts +13 -0
- package/es/components/UPanel/UPanel.js +37 -0
- package/es/components/UPanel/USider.d.ts +18 -0
- package/es/components/UPanel/USider.js +67 -0
- package/es/components/UPanel/images/cllapse.png +0 -0
- package/es/components/UPanel/images/cllapse_hover.png +0 -0
- package/es/components/UPanel/images/open.png +0 -0
- package/es/components/UPanel/images/open_hover.png +0 -0
- package/es/components/UPanel/index.d.ts +3 -0
- package/es/components/UPanel/index.js +3 -0
- package/es/components/UPanel/style/index.d.ts +1 -0
- package/es/components/UPanel/style/index.js +1 -0
- package/es/components/UPanel/style/index.less +15 -0
- package/es/components/UPanel/style/mixin.less +73 -0
- package/es/components/UPanel/style/theme.less +3 -0
- package/es/components/UPanel/td.d.ts +5 -0
- package/es/components/UPanel/td.js +1 -0
- package/es/components/UPopconfirm/PurePanel.d.ts +13 -0
- package/es/components/UPopconfirm/PurePanel.js +53 -0
- package/es/components/UPopconfirm/index.d.ts +31 -0
- package/es/components/UPopconfirm/index.js +111 -0
- package/es/components/UPopconfirm/style/index.d.ts +4 -0
- package/es/components/UPopconfirm/style/index.js +6 -0
- package/es/components/UPopconfirm/style/index.less +36 -0
- package/es/components/UPopover/index.d.ts +10 -0
- package/es/components/UPopover/index.js +61 -0
- package/es/components/UPopover/style/index.d.ts +2 -0
- package/es/components/UPopover/style/index.js +4 -0
- package/es/components/UPopover/style/index.less +262 -0
- package/es/components/UPopover/style/rtl.less +39 -0
- package/es/components/UProgress/image/progressDark.png +0 -0
- package/es/components/UProgress/image/progressIcon.png +0 -0
- package/es/components/UProgress/index.d.ts +38 -0
- package/es/components/UProgress/index.js +118 -0
- package/es/components/UProgress/progress/Circle.d.ts +10 -0
- package/es/components/UProgress/progress/Circle.js +80 -0
- package/es/components/UProgress/progress/Line.d.ts +38 -0
- package/es/components/UProgress/progress/Line.js +113 -0
- package/es/components/UProgress/progress/Steps.d.ts +10 -0
- package/es/components/UProgress/progress/Steps.js +38 -0
- package/es/components/UProgress/progress/index.d.ts +4 -0
- package/es/components/UProgress/progress/index.js +3 -0
- package/es/components/UProgress/progress/progress.d.ts +46 -0
- package/es/components/UProgress/progress/progress.js +104 -0
- package/es/components/UProgress/progress/style/index.d.ts +2 -0
- package/es/components/UProgress/progress/style/index.js +2 -0
- package/es/components/UProgress/progress/style/index.less +210 -0
- package/es/components/UProgress/progress/style/rtl.less +37 -0
- package/es/components/UProgress/progress/utils.d.ts +8 -0
- package/es/components/UProgress/progress/utils.js +24 -0
- package/es/components/UProgress/style/index.d.ts +1 -0
- package/es/components/UProgress/style/index.js +1 -0
- package/es/components/UProgress/style/index.less +50 -0
- package/es/components/UProgress/style/mixin.less +303 -0
- package/es/components/UProgress/style/theme.less +73 -0
- package/es/components/URadioGroup/UGroup.d.ts +23 -0
- package/es/components/URadioGroup/UGroup.js +78 -0
- package/es/components/URadioGroup/URadio.d.ts +11 -0
- package/es/components/URadioGroup/URadio.js +43 -0
- package/es/components/URadioGroup/index.d.ts +8 -0
- package/es/components/URadioGroup/index.js +6 -0
- package/es/components/URadioGroup/locale/en_US.d.ts +3 -0
- package/es/components/URadioGroup/locale/en_US.js +4 -0
- package/es/components/URadioGroup/locale/locale.d.ts +3 -0
- package/es/components/URadioGroup/locale/zh_CN.d.ts +3 -0
- package/es/components/URadioGroup/locale/zh_CN.js +4 -0
- package/es/components/URadioGroup/radio/context.d.ts +7 -0
- package/es/components/URadioGroup/radio/context.js +6 -0
- package/es/components/URadioGroup/radio/group.d.ts +4 -0
- package/es/components/URadioGroup/radio/group.js +104 -0
- package/es/components/URadioGroup/radio/index.d.ts +13 -0
- package/es/components/URadioGroup/radio/index.js +10 -0
- package/es/components/URadioGroup/radio/interface.d.ts +40 -0
- package/es/components/URadioGroup/radio/interface.js +1 -0
- package/es/components/URadioGroup/radio/radio.d.ts +4 -0
- package/es/components/URadioGroup/radio/radio.js +66 -0
- package/es/components/URadioGroup/radio/radioButton.d.ts +6 -0
- package/es/components/URadioGroup/radio/radioButton.js +21 -0
- package/es/components/URadioGroup/radio/style/index.d.ts +2 -0
- package/es/components/URadioGroup/radio/style/index.js +3 -0
- package/es/components/URadioGroup/radio/style/index.less +371 -0
- package/es/components/URadioGroup/radio/style/rtl.less +61 -0
- package/es/components/URadioGroup/style/index.d.ts +1 -0
- package/es/components/URadioGroup/style/index.js +1 -0
- package/es/components/URadioGroup/style/index.less +16 -0
- package/es/components/URadioGroup/style/mixin.less +88 -0
- package/es/components/URadioGroup/style/theme.less +29 -0
- package/es/components/URate/index.d.ts +8 -0
- package/es/components/URate/index.js +39 -0
- package/es/components/URate/style/index.d.ts +3 -0
- package/es/components/URate/style/index.js +4 -0
- package/es/components/URate/style/index.less +91 -0
- package/es/components/URate/style/rtl.less +21 -0
- package/es/components/UResTree/Component/LivePlayTreeLoader.js +79 -0
- package/es/components/UResTree/Component/LivePlayTreeLoader.js.bak +72 -0
- package/es/components/UResTree/Tree/Demo.js +56 -0
- package/es/components/UResTree/Tree/Tree.js +3917 -0
- package/es/components/UResTree/Tree/TreeIcon.js +36 -0
- package/es/components/UResTree/Tree/TreeLoader.js +140 -0
- package/es/components/UResTree/Tree/TreeNode.js +102 -0
- package/es/components/UResTree/Tree/UTreeIcon.js +647 -0
- package/es/components/UResTree/Tree/UTreeLoader.js +1081 -0
- package/es/components/UResTree/Tree/UTreeNode.js +94 -0
- package/es/components/UResTree/Tree/images/DVI.png +0 -0
- package/es/components/UResTree/Tree/images/DVIAlarm.png +0 -0
- package/es/components/UResTree/Tree/images/DVIOffline.png +0 -0
- package/es/components/UResTree/Tree/images/DrivebyCamera.png +0 -0
- package/es/components/UResTree/Tree/images/DrivebyCameraOffline.png +0 -0
- package/es/components/UResTree/Tree/images/IPC.png +0 -0
- package/es/components/UResTree/Tree/images/IPC_offline.png +0 -0
- package/es/components/UResTree/Tree/images/Imagestitch.png +0 -0
- package/es/components/UResTree/Tree/images/LED.png +0 -0
- package/es/components/UResTree/Tree/images/LEDOffline.png +0 -0
- package/es/components/UResTree/Tree/images/NVR.png +0 -0
- package/es/components/UResTree/Tree/images/NVROffline.png +0 -0
- package/es/components/UResTree/Tree/images/NVR_offline.png +0 -0
- package/es/components/UResTree/Tree/images/VGA.png +0 -0
- package/es/components/UResTree/Tree/images/VGAOffline.png +0 -0
- package/es/components/UResTree/Tree/images/alarmOffline.png +0 -0
- package/es/components/UResTree/Tree/images/alarmshebei.png +0 -0
- package/es/components/UResTree/Tree/images/banqiubianjiao-err.png +0 -0
- package/es/components/UResTree/Tree/images/banqiubianjiao-offLine.png +0 -0
- package/es/components/UResTree/Tree/images/banqiubianjiao.png +0 -0
- package/es/components/UResTree/Tree/images/baojingshebei.png +0 -0
- package/es/components/UResTree/Tree/images/baojingshebeiOffline.png +0 -0
- package/es/components/UResTree/Tree/images/bukekonggaoqingqiuji.png +0 -0
- package/es/components/UResTree/Tree/images/bukekonggaoqingqiujiOffLine.png +0 -0
- package/es/components/UResTree/Tree/images/bukekongqiuji.png +0 -0
- package/es/components/UResTree/Tree/images/bukekongqiujiAlarm.png +0 -0
- package/es/components/UResTree/Tree/images/bukekongqiujiOffline.png +0 -0
- package/es/components/UResTree/Tree/images/caijishebei.png +0 -0
- package/es/components/UResTree/Tree/images/caijishebeiOffline.png +0 -0
- package/es/components/UResTree/Tree/images/caijixitong.png +0 -0
- package/es/components/UResTree/Tree/images/caijixitongOffline.png +0 -0
- package/es/components/UResTree/Tree/images/chezaishexiangji.png +0 -0
- package/es/components/UResTree/Tree/images/chezaishexiangjiAlarm.png +0 -0
- package/es/components/UResTree/Tree/images/chezaishexiangjiOffline.png +0 -0
- package/es/components/UResTree/Tree/images/dae.png +0 -0
- package/es/components/UResTree/Tree/images/daeOffline.png +0 -0
- package/es/components/UResTree/Tree/images/device_icon-24x24.png +0 -0
- package/es/components/UResTree/Tree/images/duijiangfenji.png +0 -0
- package/es/components/UResTree/Tree/images/duijiangfenjiOffline.png +0 -0
- package/es/components/UResTree/Tree/images/fenxixitong.png +0 -0
- package/es/components/UResTree/Tree/images/fenxixitongOffline.png +0 -0
- package/es/components/UResTree/Tree/images/foldClose.png +0 -0
- package/es/components/UResTree/Tree/images/foldOpen.png +0 -0
- package/es/components/UResTree/Tree/images/gaoqingqiangji.png +0 -0
- package/es/components/UResTree/Tree/images/gaoqingqiangjiAlarm.png +0 -0
- package/es/components/UResTree/Tree/images/gaoqingqiangjiOffline.png +0 -0
- package/es/components/UResTree/Tree/images/gaoqingyuntai.png +0 -0
- package/es/components/UResTree/Tree/images/gaoqingyuntaiAlarm.png +0 -0
- package/es/components/UResTree/Tree/images/gaoqingyuntaiOffline.png +0 -0
- package/es/components/UResTree/Tree/images/gaoqingyuyan.png +0 -0
- package/es/components/UResTree/Tree/images/gaoqingyuyanAlarm.png +0 -0
- package/es/components/UResTree/Tree/images/gaoqingyuyanOffline.png +0 -0
- package/es/components/UResTree/Tree/images/hemisphere-err.png +0 -0
- package/es/components/UResTree/Tree/images/hemisphere-offline.png +0 -0
- package/es/components/UResTree/Tree/images/hemisphere.png +0 -0
- package/es/components/UResTree/Tree/images/icon16.png +0 -0
- package/es/components/UResTree/Tree/images/kaiguanliang.png +0 -0
- package/es/components/UResTree/Tree/images/laiguanlaingOffline.png +0 -0
- package/es/components/UResTree/Tree/images/lunqie.png +0 -0
- package/es/components/UResTree/Tree/images/menjin.png +0 -0
- package/es/components/UResTree/Tree/images/menjinOffline.png +0 -0
- package/es/components/UResTree/Tree/images/monitor.png +0 -0
- package/es/components/UResTree/Tree/images/monitorOffLine.png +0 -0
- package/es/components/UResTree/Tree/images/qiangji.png +0 -0
- package/es/components/UResTree/Tree/images/qiangjiAlarm.png +0 -0
- package/es/components/UResTree/Tree/images/qiangjiOffline.png +0 -0
- package/es/components/UResTree/Tree/images/qiangqiuliandong.png +0 -0
- package/es/components/UResTree/Tree/images/qiangqiuliandongOffline.png +0 -0
- package/es/components/UResTree/Tree/images/radar-offline.png +0 -0
- package/es/components/UResTree/Tree/images/radar.png +0 -0
- package/es/components/UResTree/Tree/images/rfid.png +0 -0
- package/es/components/UResTree/Tree/images/root.png +0 -0
- package/es/components/UResTree/Tree/images/spriteIcon.png +0 -0
- package/es/components/UResTree/Tree/images/stkIcon.png +0 -0
- package/es/components/UResTree/Tree/images/stkTollgate.png +0 -0
- package/es/components/UResTree/Tree/images/tollgate.png +0 -0
- package/es/components/UResTree/Tree/images/tollgateOffLine.png +0 -0
- package/es/components/UResTree/Tree/images/user.png +0 -0
- package/es/components/UResTree/Tree/images/videoGroup.png +0 -0
- package/es/components/UResTree/Tree/images/waiyu.png +0 -0
- package/es/components/UResTree/Tree/images/waiyuOffline.png +0 -0
- package/es/components/UResTree/Tree/images/wifi.png +0 -0
- package/es/components/UResTree/Tree/images/yingyongpingtai.png +0 -0
- package/es/components/UResTree/Tree/images/yingyongpingtaiOffline.png +0 -0
- package/es/components/UResTree/Tree/images/yuntai.png +0 -0
- package/es/components/UResTree/Tree/images/yuntaiOffline.png +0 -0
- package/es/components/UResTree/Tree/images/yuyan.png +0 -0
- package/es/components/UResTree/Tree/images/yuyanAlarm.png +0 -0
- package/es/components/UResTree/Tree/images/yuyanOffline.png +0 -0
- package/es/components/UResTree/Tree/images/ziyuanlunxun.png +0 -0
- package/es/components/UResTree/Tree/images/zulunxunTV.png +0 -0
- package/es/components/UResTree/Tree/images/zulunxunTVPlay.png +0 -0
- package/es/components/UResTree/Tree/images/zulunxunXP.png +0 -0
- package/es/components/UResTree/Tree/images/zulunxunXPPlay.png +0 -0
- package/es/components/UResTree/Tree/images/zulunxunziyuan.png +0 -0
- package/es/components/UResTree/Tree/images/zuxianshiTV.png +0 -0
- package/es/components/UResTree/Tree/images/zuxianshiXP.png +0 -0
- package/es/components/UResTree/Tree/style/index.js +2 -0
- package/es/components/UResTree/Tree/style/tree.less +278 -0
- package/es/components/UResTree/Tree/style/treeIcon.less +635 -0
- package/es/components/UResTree/Tree/treeResTypes.js +272 -0
- package/es/components/UResTree/index.js +405 -0
- package/es/components/UResTree/locale/en_US.d.ts +3 -0
- package/es/components/UResTree/locale/en_US.js +8 -0
- package/es/components/UResTree/locale/locale.d.ts +7 -0
- package/es/components/UResTree/locale/zh_CN.d.ts +3 -0
- package/es/components/UResTree/locale/zh_CN.js +8 -0
- package/es/components/UResTree/style/index.d.ts +1 -0
- package/es/components/UResTree/style/index.js +1 -0
- package/es/components/UResTree/style/index.less +16 -0
- package/es/components/UResTree/style/mixin.less +157 -0
- package/es/components/UResTree/style/theme.less +68 -0
- package/es/components/UResult/index.d.ts +33 -0
- package/es/components/UResult/index.js +97 -0
- package/es/components/UResult/noFound.d.ts +2 -0
- package/es/components/UResult/noFound.js +237 -0
- package/es/components/UResult/serverError.d.ts +2 -0
- package/es/components/UResult/serverError.js +277 -0
- package/es/components/UResult/style/index.d.ts +2 -0
- package/es/components/UResult/style/index.js +2 -0
- package/es/components/UResult/style/index.less +75 -0
- package/es/components/UResult/style/rtl.less +25 -0
- package/es/components/UResult/unauthorized.d.ts +2 -0
- package/es/components/UResult/unauthorized.js +227 -0
- package/es/components/URow/index.d.ts +4 -0
- package/es/components/URow/index.js +3 -0
- package/es/components/URow/style/index.d.ts +2 -0
- package/es/components/URow/style/index.js +4 -0
- package/es/components/USegmented/index.d.ts +23 -0
- package/es/components/USegmented/index.js +58 -0
- package/es/components/USegmented/style/index.d.ts +2 -0
- package/es/components/USegmented/style/index.js +2 -0
- package/es/components/USegmented/style/index.less +139 -0
- package/es/components/USegmented/style/mixins.less +24 -0
- package/es/components/USegmented/style/rtl.less +15 -0
- package/es/components/USelect/images/arrow.png +0 -0
- package/es/components/USelect/images/empty.png +0 -0
- package/es/components/USelect/index.d.ts +4 -0
- package/es/components/USelect/index.js +3 -0
- package/es/components/USelect/locale/en_US.d.ts +3 -0
- package/es/components/USelect/locale/en_US.js +4 -0
- package/es/components/USelect/locale/locale.d.ts +3 -0
- package/es/components/USelect/locale/zh_CN.d.ts +3 -0
- package/es/components/USelect/locale/zh_CN.js +4 -0
- package/es/components/USelect/select/index.d.ts +49 -0
- package/es/components/USelect/select/index.js +180 -0
- package/es/components/USelect/select/style/index.d.ts +3 -0
- package/es/components/USelect/select/style/index.js +5 -0
- package/es/components/USelect/select/style/index.less +342 -0
- package/es/components/USelect/select/style/multiple.less +222 -0
- package/es/components/USelect/select/style/rtl.less +170 -0
- package/es/components/USelect/select/style/single.less +172 -0
- package/es/components/USelect/select/style/status.less +51 -0
- package/es/components/USelect/select/utils/iconUtil.d.ts +21 -0
- package/es/components/USelect/select/utils/iconUtil.js +69 -0
- package/es/components/USelect/style/index.d.ts +1 -0
- package/es/components/USelect/style/index.js +1 -0
- package/es/components/USelect/style/index.less +25 -0
- package/es/components/USelect/style/mixin.less +264 -0
- package/es/components/USelect/style/theme.less +92 -0
- package/es/components/USkeleton/Avatar.d.ts +7 -0
- package/es/components/USkeleton/Avatar.js +31 -0
- package/es/components/USkeleton/Button.d.ts +8 -0
- package/es/components/USkeleton/Button.js +30 -0
- package/es/components/USkeleton/Element.d.ts +11 -0
- package/es/components/USkeleton/Element.js +27 -0
- package/es/components/USkeleton/Image.d.ts +6 -0
- package/es/components/USkeleton/Image.js +32 -0
- package/es/components/USkeleton/Input.d.ts +8 -0
- package/es/components/USkeleton/Input.js +29 -0
- package/es/components/USkeleton/Node.d.ts +8 -0
- package/es/components/USkeleton/Node.js +27 -0
- package/es/components/USkeleton/Paragraph.d.ts +11 -0
- package/es/components/USkeleton/Paragraph.js +44 -0
- package/es/components/USkeleton/Skeleton.d.ts +31 -0
- package/es/components/USkeleton/Skeleton.js +130 -0
- package/es/components/USkeleton/Title.d.ts +9 -0
- package/es/components/USkeleton/Title.js +16 -0
- package/es/components/USkeleton/index.d.ts +4 -0
- package/es/components/USkeleton/index.js +3 -0
- package/es/components/USkeleton/style/index.d.ts +2 -0
- package/es/components/USkeleton/style/index.js +2 -0
- package/es/components/USkeleton/style/index.less +290 -0
- package/es/components/USkeleton/style/rtl.less +48 -0
- package/es/components/USlider/index.d.ts +30 -0
- package/es/components/USlider/index.js +486 -0
- package/es/components/USlider/slider/SliderTooltip.d.ts +4 -0
- package/es/components/USlider/slider/SliderTooltip.js +33 -0
- package/es/components/USlider/slider/index.d.ts +90 -0
- package/es/components/USlider/slider/index.js +129 -0
- package/es/components/USlider/slider/style/index.d.ts +3 -0
- package/es/components/USlider/slider/style/index.js +4 -0
- package/es/components/USlider/slider/style/index.less +215 -0
- package/es/components/USlider/slider/style/rtl.less +49 -0
- package/es/components/USlider/style/index.d.ts +1 -0
- package/es/components/USlider/style/index.js +1 -0
- package/es/components/USlider/style/index.less +16 -0
- package/es/components/USlider/style/mixin.less +205 -0
- package/es/components/USlider/style/theme.less +38 -0
- package/es/components/USpace/Compact.d.ts +24 -0
- package/es/components/USpace/Compact.js +76 -0
- package/es/components/USpace/Item.d.ts +11 -0
- package/es/components/USpace/Item.js +44 -0
- package/es/components/USpace/index.d.ts +26 -0
- package/es/components/USpace/index.js +119 -0
- package/es/components/USpace/style/compact.less +17 -0
- package/es/components/USpace/style/index.d.ts +2 -0
- package/es/components/USpace/style/index.js +2 -0
- package/es/components/USpace/style/index.less +40 -0
- package/es/components/USpace/style/rtl.less +14 -0
- package/es/components/USpin/index.d.ts +25 -0
- package/es/components/USpin/index.js +131 -0
- package/es/components/USpin/style/index.d.ts +2 -0
- package/es/components/USpin/style/index.js +2 -0
- package/es/components/USpin/style/index.less +218 -0
- package/es/components/USpin/style/rtl.less +20 -0
- package/es/components/UStatistic/Countdown.d.ts +11 -0
- package/es/components/UStatistic/Countdown.js +61 -0
- package/es/components/UStatistic/Number.d.ts +7 -0
- package/es/components/UStatistic/Number.js +46 -0
- package/es/components/UStatistic/Statistic.d.ts +22 -0
- package/es/components/UStatistic/Statistic.js +60 -0
- package/es/components/UStatistic/index.d.ts +4 -0
- package/es/components/UStatistic/index.js +5 -0
- package/es/components/UStatistic/style/index.d.ts +3 -0
- package/es/components/UStatistic/style/index.js +4 -0
- package/es/components/UStatistic/style/index.less +44 -0
- package/es/components/UStatistic/style/rtl.less +21 -0
- package/es/components/UStatistic/utils.d.ts +16 -0
- package/es/components/UStatistic/utils.js +46 -0
- package/es/components/USteps/index.d.ts +39 -0
- package/es/components/USteps/index.js +83 -0
- package/es/components/USteps/style/custom-icon.less +32 -0
- package/es/components/USteps/style/index.d.ts +3 -0
- package/es/components/USteps/style/index.js +5 -0
- package/es/components/USteps/style/index.less +255 -0
- package/es/components/USteps/style/label-placement.less +45 -0
- package/es/components/USteps/style/nav.less +134 -0
- package/es/components/USteps/style/progress-dot.less +112 -0
- package/es/components/USteps/style/progress.less +49 -0
- package/es/components/USteps/style/rtl.less +287 -0
- package/es/components/USteps/style/small.less +48 -0
- package/es/components/USteps/style/vertical.less +73 -0
- package/es/components/USteps/useLegacyItems.d.ts +3 -0
- package/es/components/USteps/useLegacyItems.js +23 -0
- package/es/components/USwitch/index.d.ts +31 -0
- package/es/components/USwitch/index.js +95 -0
- package/es/components/USwitch/locale/en_US.d.ts +3 -0
- package/es/components/USwitch/locale/en_US.js +5 -0
- package/es/components/USwitch/locale/locale.d.ts +4 -0
- package/es/components/USwitch/locale/zh_CN.d.ts +3 -0
- package/es/components/USwitch/locale/zh_CN.js +5 -0
- package/es/components/USwitch/style/index.d.ts +1 -0
- package/es/components/USwitch/style/index.js +1 -0
- package/es/components/USwitch/style/index.less +16 -0
- package/es/components/USwitch/style/mixin.less +85 -0
- package/es/components/USwitch/style/theme.less +17 -0
- package/es/components/USwitch/switch/index.d.ts +26 -0
- package/es/components/USwitch/switch/index.js +53 -0
- package/es/components/USwitch/switch/style/index.d.ts +2 -0
- package/es/components/USwitch/switch/style/index.js +2 -0
- package/es/components/USwitch/switch/style/index.less +154 -0
- package/es/components/USwitch/switch/style/rtl.less +52 -0
- package/es/components/UTable/index.d.ts +52 -0
- package/es/components/UTable/index.js +420 -0
- package/es/components/UTable/style/index.d.ts +1 -0
- package/es/components/UTable/style/index.js +1 -0
- package/es/components/UTable/style/index.less +24 -0
- package/es/components/UTable/style/mixin.less +304 -0
- package/es/components/UTable/style/theme.less +87 -0
- package/es/components/UTable/table/Column.d.ts +7 -0
- package/es/components/UTable/table/Column.js +7 -0
- package/es/components/UTable/table/ColumnGroup.d.ts +9 -0
- package/es/components/UTable/table/ColumnGroup.js +7 -0
- package/es/components/UTable/table/ExpandIcon.d.ts +11 -0
- package/es/components/UTable/table/ExpandIcon.js +27 -0
- package/es/components/UTable/table/Table.d.ts +49 -0
- package/es/components/UTable/table/Table.js +400 -0
- package/es/components/UTable/table/hooks/useFilter/FilterDropdown.d.ts +27 -0
- package/es/components/UTable/table/hooks/useFilter/FilterDropdown.js +440 -0
- package/es/components/UTable/table/hooks/useFilter/FilterSearch.d.ts +11 -0
- package/es/components/UTable/table/hooks/useFilter/FilterSearch.js +25 -0
- package/es/components/UTable/table/hooks/useFilter/FilterWrapper.d.ts +7 -0
- package/es/components/UTable/table/hooks/useFilter/FilterWrapper.js +18 -0
- package/es/components/UTable/table/hooks/useFilter/index.d.ts +23 -0
- package/es/components/UTable/table/hooks/useFilter/index.js +193 -0
- package/es/components/UTable/table/hooks/useLazyKVMap.d.ts +2 -0
- package/es/components/UTable/table/hooks/useLazyKVMap.js +30 -0
- package/es/components/UTable/table/hooks/usePagination.d.ts +4 -0
- package/es/components/UTable/table/hooks/usePagination.js +86 -0
- package/es/components/UTable/table/hooks/useSelection.d.ts +19 -0
- package/es/components/UTable/table/hooks/useSelection.js +563 -0
- package/es/components/UTable/table/hooks/useSorter.d.ts +24 -0
- package/es/components/UTable/table/hooks/useSorter.js +337 -0
- package/es/components/UTable/table/hooks/useTitleColumns.d.ts +2 -0
- package/es/components/UTable/table/hooks/useTitleColumns.js +18 -0
- package/es/components/UTable/table/index.d.ts +6 -0
- package/es/components/UTable/table/index.js +3 -0
- package/es/components/UTable/table/interface.d.ts +165 -0
- package/es/components/UTable/table/interface.js +2 -0
- package/es/components/UTable/table/style/bordered.less +131 -0
- package/es/components/UTable/table/style/index.d.ts +12 -0
- package/es/components/UTable/table/style/index.js +15 -0
- package/es/components/UTable/table/style/index.less +854 -0
- package/es/components/UTable/table/style/radius.less +49 -0
- package/es/components/UTable/table/style/rtl.less +168 -0
- package/es/components/UTable/table/style/size.less +51 -0
- package/es/components/UTable/table/util.d.ts +14 -0
- package/es/components/UTable/table/util.js +31 -0
- package/es/components/UTabs/images/icon-delete-default.png +0 -0
- package/es/components/UTabs/images/icon-delete-hover.png +0 -0
- package/es/components/UTabs/index.d.ts +26 -0
- package/es/components/UTabs/index.js +53 -0
- package/es/components/UTabs/style/index.d.ts +1 -0
- package/es/components/UTabs/style/index.js +1 -0
- package/es/components/UTabs/style/index.less +24 -0
- package/es/components/UTabs/style/mixin.less +234 -0
- package/es/components/UTabs/style/theme.less +65 -0
- package/es/components/UTabs/tabs/TabPane.d.ts +5 -0
- package/es/components/UTabs/tabs/TabPane.js +7 -0
- package/es/components/UTabs/tabs/hooks/useAnimateConfig.d.ts +3 -0
- package/es/components/UTabs/tabs/hooks/useAnimateConfig.js +35 -0
- package/es/components/UTabs/tabs/hooks/useLegacyItems.d.ts +4 -0
- package/es/components/UTabs/tabs/hooks/useLegacyItems.js +32 -0
- package/es/components/UTabs/tabs/index.d.ts +22 -0
- package/es/components/UTabs/tabs/index.js +73 -0
- package/es/components/UTabs/tabs/style/card.less +98 -0
- package/es/components/UTabs/tabs/style/dropdown.less +82 -0
- package/es/components/UTabs/tabs/style/index.d.ts +2 -0
- package/es/components/UTabs/tabs/style/index.js +2 -0
- package/es/components/UTabs/tabs/style/index.less +253 -0
- package/es/components/UTabs/tabs/style/position.less +198 -0
- package/es/components/UTabs/tabs/style/rtl.less +86 -0
- package/es/components/UTabs/tabs/style/size.less +42 -0
- package/es/components/UTags/images/gray_select.png +0 -0
- package/es/components/UTags/images/option_selected.png +0 -0
- package/es/components/UTags/index.d.ts +27 -0
- package/es/components/UTags/index.js +100 -0
- package/es/components/UTags/style/index.d.ts +1 -0
- package/es/components/UTags/style/index.js +1 -0
- package/es/components/UTags/style/index.less +22 -0
- package/es/components/UTags/style/mixin.less +94 -0
- package/es/components/UTags/style/theme.less +32 -0
- package/es/components/UTags/tag/CheckableTag.d.ts +17 -0
- package/es/components/UTags/tag/CheckableTag.js +29 -0
- package/es/components/UTags/tag/index.d.ts +23 -0
- package/es/components/UTags/tag/index.js +102 -0
- package/es/components/UTags/tag/style/index.d.ts +2 -0
- package/es/components/UTags/tag/style/index.js +2 -0
- package/es/components/UTags/tag/style/index.less +133 -0
- package/es/components/UTags/tag/style/rtl.less +28 -0
- package/es/components/UTextArea/index.d.ts +21 -0
- package/es/components/UTextArea/index.js +125 -0
- package/es/components/UTextArea/locale/en_US.d.ts +3 -0
- package/es/components/UTextArea/locale/en_US.js +4 -0
- package/es/components/UTextArea/locale/locale.d.ts +3 -0
- package/es/components/UTextArea/locale/zh_CN.d.ts +3 -0
- package/es/components/UTextArea/locale/zh_CN.js +4 -0
- package/es/components/UTextArea/style/index.d.ts +1 -0
- package/es/components/UTextArea/style/index.js +1 -0
- package/es/components/UTextArea/style/index.less +16 -0
- package/es/components/UTextArea/style/mixin.less +145 -0
- package/es/components/UTextArea/style/theme.less +62 -0
- package/es/components/UTimeline/Timeline.d.ts +18 -0
- package/es/components/UTimeline/Timeline.js +72 -0
- package/es/components/UTimeline/TimelineItem.d.ts +17 -0
- package/es/components/UTimeline/TimelineItem.js +43 -0
- package/es/components/UTimeline/index.d.ts +5 -0
- package/es/components/UTimeline/index.js +3 -0
- package/es/components/UTimeline/style/index.d.ts +2 -0
- package/es/components/UTimeline/style/index.js +2 -0
- package/es/components/UTimeline/style/index.less +185 -0
- package/es/components/UTimeline/style/rtl.less +135 -0
- package/es/components/UTipForm/UTips.js +160 -0
- package/es/components/UTipForm/index.js +34 -0
- package/es/components/UTipForm/style/index.d.ts +1 -0
- package/es/components/UTipForm/style/index.js +1 -0
- package/es/components/UTipForm/style/index.less +57 -0
- package/es/components/UTipForm/style/mixin.less +85 -0
- package/es/components/UTipForm/style/theme.less +16 -0
- package/es/components/UTooltip/index.d.ts +4 -0
- package/es/components/UTooltip/index.js +3 -0
- package/es/components/UTooltip/style/index.d.ts +1 -0
- package/es/components/UTooltip/style/index.js +1 -0
- package/es/components/UTooltip/style/index.less +16 -0
- package/es/components/UTooltip/style/mixin.less +15 -0
- package/es/components/UTooltip/style/theme.less +7 -0
- package/es/components/UTooltip/tooltip/index.d.ts +72 -0
- package/es/components/UTooltip/tooltip/index.js +220 -0
- package/es/components/UTooltip/tooltip/style/index.d.ts +2 -0
- package/es/components/UTooltip/tooltip/style/index.js +2 -0
- package/es/components/UTooltip/tooltip/style/index.less +226 -0
- package/es/components/UTooltip/tooltip/style/rtl.less +14 -0
- package/es/components/UTransfer/TransferPanel.d.ts +6 -0
- package/es/components/UTransfer/TransferPanel.js +324 -0
- package/es/components/UTransfer/TransferTable.d.ts +5 -0
- package/es/components/UTransfer/TransferTable.js +172 -0
- package/es/components/UTransfer/TransferTree.d.ts +4 -0
- package/es/components/UTransfer/TransferTree.js +32 -0
- package/es/components/UTransfer/images/arrow_default.png +0 -0
- package/es/components/UTransfer/images/arrow_down.png +0 -0
- package/es/components/UTransfer/images/arrow_hover.png +0 -0
- package/es/components/UTransfer/images/icon_delete-default.png +0 -0
- package/es/components/UTransfer/images/icon_delete_down.png +0 -0
- package/es/components/UTransfer/images/icon_delete_hover.png +0 -0
- package/es/components/UTransfer/images/item_delete-default.png +0 -0
- package/es/components/UTransfer/images/item_delete_hover.png +0 -0
- package/es/components/UTransfer/index.d.ts +16 -0
- package/es/components/UTransfer/index.js +1346 -0
- package/es/components/UTransfer/index.td.d.ts +106 -0
- package/es/components/UTransfer/index.td.js +1 -0
- package/es/components/UTransfer/locale/en_US.d.ts +3 -0
- package/es/components/UTransfer/locale/en_US.js +7 -0
- package/es/components/UTransfer/locale/locale.d.ts +6 -0
- package/es/components/UTransfer/locale/zh_CN.d.ts +3 -0
- package/es/components/UTransfer/locale/zh_CN.js +7 -0
- package/es/components/UTransfer/style/index.d.ts +1 -0
- package/es/components/UTransfer/style/index.js +1 -0
- package/es/components/UTransfer/style/index.less +16 -0
- package/es/components/UTransfer/style/mixin.less +366 -0
- package/es/components/UTransfer/style/theme.less +140 -0
- package/es/components/UTransfer/transfer/ListBody.d.ts +29 -0
- package/es/components/UTransfer/transfer/ListBody.js +147 -0
- package/es/components/UTransfer/transfer/ListItem.d.ts +15 -0
- package/es/components/UTransfer/transfer/ListItem.js +60 -0
- package/es/components/UTransfer/transfer/index.d.ts +141 -0
- package/es/components/UTransfer/transfer/index.js +400 -0
- package/es/components/UTransfer/transfer/interface.d.ts +6 -0
- package/es/components/UTransfer/transfer/interface.js +1 -0
- package/es/components/UTransfer/transfer/list.d.ts +75 -0
- package/es/components/UTransfer/transfer/list.js +362 -0
- package/es/components/UTransfer/transfer/operation.d.ts +17 -0
- package/es/components/UTransfer/transfer/operation.js +36 -0
- package/es/components/UTransfer/transfer/search.d.ts +10 -0
- package/es/components/UTransfer/transfer/search.js +29 -0
- package/es/components/UTransfer/transfer/style/customize.less +52 -0
- package/es/components/UTransfer/transfer/style/index.d.ts +8 -0
- package/es/components/UTransfer/transfer/style/index.js +10 -0
- package/es/components/UTransfer/transfer/style/index.less +293 -0
- package/es/components/UTransfer/transfer/style/rtl.less +71 -0
- package/es/components/UTransfer/transfer/style/status.less +31 -0
- package/es/components/UTree/DirectoryTree.d.ts +20 -0
- package/es/components/UTree/DirectoryTree.js +165 -0
- package/es/components/UTree/Tree.d.ts +162 -0
- package/es/components/UTree/Tree.js +303 -0
- package/es/components/UTree/index.d.ts +23 -0
- package/es/components/UTree/index.js +10 -0
- package/es/components/UTree/style/directory.less +72 -0
- package/es/components/UTree/style/index.d.ts +2 -0
- package/es/components/UTree/style/index.js +2 -0
- package/es/components/UTree/style/index.less +16 -0
- package/es/components/UTree/style/mixin.less +443 -0
- package/es/components/UTree/style/rtl.less +77 -0
- package/es/components/UTree/style/svg/caretDown.svg +4 -0
- package/es/components/UTree/style/svg/caretRight.svg +4 -0
- package/es/components/UTree/utils/dictUtil.d.ts +9 -0
- package/es/components/UTree/utils/dictUtil.js +73 -0
- package/es/components/UTree/utils/dropIndicator.d.ts +8 -0
- package/es/components/UTree/utils/dropIndicator.js +34 -0
- package/es/components/UTree/utils/iconUtil.d.ts +5 -0
- package/es/components/UTree/utils/iconUtil.js +63 -0
- package/es/components/UTree/utils/transToTreeData.d.ts +39 -0
- package/es/components/UTree/utils/transToTreeData.js +97 -0
- package/es/components/UTreeSelect/index.d.ts +49 -0
- package/es/components/UTreeSelect/index.js +151 -0
- package/es/components/UTreeSelect/style/index.d.ts +4 -0
- package/es/components/UTreeSelect/style/index.js +6 -0
- package/es/components/UTreeSelect/style/index.less +59 -0
- package/es/components/UTypography/Base/Ellipsis.d.ts +15 -0
- package/es/components/UTypography/Base/Ellipsis.js +176 -0
- package/es/components/UTypography/Base/EllipsisTooltip.d.ts +13 -0
- package/es/components/UTypography/Base/EllipsisTooltip.js +18 -0
- package/es/components/UTypography/Base/index.d.ts +52 -0
- package/es/components/UTypography/Base/index.js +449 -0
- package/es/components/UTypography/Editable.d.ts +20 -0
- package/es/components/UTypography/Editable.js +111 -0
- package/es/components/UTypography/Link.d.ts +7 -0
- package/es/components/UTypography/Link.js +22 -0
- package/es/components/UTypography/Paragraph.d.ts +6 -0
- package/es/components/UTypography/Paragraph.js +10 -0
- package/es/components/UTypography/Text.d.ts +7 -0
- package/es/components/UTypography/Text.js +24 -0
- package/es/components/UTypography/Title.d.ts +8 -0
- package/es/components/UTypography/Title.js +24 -0
- package/es/components/UTypography/Typography.d.ts +17 -0
- package/es/components/UTypography/Typography.js +44 -0
- package/es/components/UTypography/hooks/useMergedConfig.d.ts +1 -0
- package/es/components/UTypography/hooks/useMergedConfig.js +8 -0
- package/es/components/UTypography/hooks/useUpdatedEffect.d.ts +4 -0
- package/es/components/UTypography/hooks/useUpdatedEffect.js +13 -0
- package/es/components/UTypography/index.d.ts +14 -0
- package/es/components/UTypography/index.js +12 -0
- package/es/components/UTypography/style/index.d.ts +4 -0
- package/es/components/UTypography/style/index.js +5 -0
- package/es/components/UTypography/style/index.less +314 -0
- package/es/components/UTypography/style/rtl.less +54 -0
- package/es/components/UUpload/Dragger.d.ts +9 -0
- package/es/components/UUpload/Dragger.js +20 -0
- package/es/components/UUpload/Upload.d.ts +6 -0
- package/es/components/UUpload/Upload.js +406 -0
- package/es/components/UUpload/UploadList/ListItem.d.ts +27 -0
- package/es/components/UUpload/UploadList/ListItem.js +201 -0
- package/es/components/UUpload/UploadList/index.d.ts +4 -0
- package/es/components/UUpload/UploadList/index.js +234 -0
- package/es/components/UUpload/index.d.ts +15 -0
- package/es/components/UUpload/index.js +7 -0
- package/es/components/UUpload/interface.d.ts +134 -0
- package/es/components/UUpload/interface.js +1 -0
- package/es/components/UUpload/style/index.d.ts +5 -0
- package/es/components/UUpload/style/index.js +7 -0
- package/es/components/UUpload/style/index.less +564 -0
- package/es/components/UUpload/style/rtl.less +165 -0
- package/es/components/UUpload/utils.d.ts +8 -0
- package/es/components/UUpload/utils.js +123 -0
- package/es/components/UUploadFile/ThumnNail/images/download.png +0 -0
- package/es/components/UUploadFile/ThumnNail/images/download_hover.png +0 -0
- package/es/components/UUploadFile/ThumnNail/images/icon_close_default.png +0 -0
- package/es/components/UUploadFile/ThumnNail/images/icon_close_down.png +0 -0
- package/es/components/UUploadFile/ThumnNail/images/icon_close_hover.png +0 -0
- package/es/components/UUploadFile/ThumnNail/images/icon_delete_default.png +0 -0
- package/es/components/UUploadFile/ThumnNail/images/icon_delete_hover.png +0 -0
- package/es/components/UUploadFile/ThumnNail/images/icon_delete_small_default.png +0 -0
- package/es/components/UUploadFile/ThumnNail/images/icon_delete_small_hover.png +0 -0
- package/es/components/UUploadFile/ThumnNail/images/icon_large_default.png +0 -0
- package/es/components/UUploadFile/ThumnNail/images/icon_large_hover.png +0 -0
- package/es/components/UUploadFile/ThumnNail/index.d.ts +24 -0
- package/es/components/UUploadFile/ThumnNail/index.js +90 -0
- package/es/components/UUploadFile/ThumnNail/index.less +111 -0
- package/es/components/UUploadFile/UploadFile.js +1340 -0
- package/es/components/UUploadFile/Uploader.swf +0 -0
- package/es/components/UUploadFile/api.js +57 -0
- package/es/components/UUploadFile/getByteLength.d.ts +7 -0
- package/es/components/UUploadFile/getByteLength.js +36 -0
- package/es/components/UUploadFile/images/fileIcon/excel.png +0 -0
- package/es/components/UUploadFile/images/fileIcon/exe.png +0 -0
- package/es/components/UUploadFile/images/fileIcon/pdf.png +0 -0
- package/es/components/UUploadFile/images/fileIcon/ppt.png +0 -0
- package/es/components/UUploadFile/images/fileIcon/txt.png +0 -0
- package/es/components/UUploadFile/images/fileIcon/word.png +0 -0
- package/es/components/UUploadFile/images/fileIcon/zip.png +0 -0
- package/es/components/UUploadFile/images/icon_add_default.png +0 -0
- package/es/components/UUploadFile/images/icon_add_hover.png +0 -0
- package/es/components/UUploadFile/index.js +153 -0
- package/es/components/UUploadFile/locale/en_US.d.ts +3 -0
- package/es/components/UUploadFile/locale/en_US.js +24 -0
- package/es/components/UUploadFile/locale/locale.d.ts +23 -0
- package/es/components/UUploadFile/locale/zh_CN.d.ts +3 -0
- package/es/components/UUploadFile/locale/zh_CN.js +24 -0
- package/es/components/UUploadFile/style/index.d.ts +1 -0
- package/es/components/UUploadFile/style/index.js +1 -0
- package/es/components/UUploadFile/style/index.less +15 -0
- package/es/components/UUploadFile/style/mixin.less +249 -0
- package/es/components/UUploadFile/style/theme.less +40 -0
- package/es/components/UUtils/index.d.ts +7 -0
- package/es/components/UUtils/index.js +152 -0
- package/es/components/UUtils/style/index.d.ts +1 -0
- package/es/components/UUtils/style/index.js +0 -0
- package/es/components/UVersion/index.d.ts +3 -0
- package/es/components/UVersion/index.js +3 -0
- package/es/components/UVersion/style/index.d.ts +1 -0
- package/es/components/UVersion/style/index.js +2 -0
- package/es/components/UVersion/token.d.ts +319 -0
- package/es/components/UVersion/token.js +318 -0
- package/es/components/UVersion/version.d.ts +2 -0
- package/es/components/UVersion/version.js +1 -0
- package/es/components/UVideo/HideDiv.js +260 -0
- package/es/components/UVideo/Images/3D_close.png +0 -0
- package/es/components/UVideo/Images/3D_close_gray.png +0 -0
- package/es/components/UVideo/Images/3D_close_hover.png +0 -0
- package/es/components/UVideo/Images/3D_open.png +0 -0
- package/es/components/UVideo/Images/3D_open_gray.png +0 -0
- package/es/components/UVideo/Images/3D_open_hover.png +0 -0
- package/es/components/UVideo/Images/3D_position.png +0 -0
- package/es/components/UVideo/Images/3D_position_active.png +0 -0
- package/es/components/UVideo/Images/3D_position_close.png +0 -0
- package/es/components/UVideo/Images/3D_position_close_active.png +0 -0
- package/es/components/UVideo/Images/3D_position_close_gray.png +0 -0
- package/es/components/UVideo/Images/3D_position_gray.png +0 -0
- package/es/components/UVideo/Images/@ant-designicons@2x.png +0 -0
- package/es/components/UVideo/Images/DVI.png +0 -0
- package/es/components/UVideo/Images/DVIAlarm.png +0 -0
- package/es/components/UVideo/Images/DVIOffline.png +0 -0
- package/es/components/UVideo/Images/DrivebyCamera.png +0 -0
- package/es/components/UVideo/Images/DrivebyCameraOffline.png +0 -0
- package/es/components/UVideo/Images/Imagestitch.png +0 -0
- package/es/components/UVideo/Images/LED.png +0 -0
- package/es/components/UVideo/Images/LEDOffline.png +0 -0
- package/es/components/UVideo/Images/NO VIDEO.bmp +0 -0
- package/es/components/UVideo/Images/NVR.png +0 -0
- package/es/components/UVideo/Images/NVROffline.png +0 -0
- package/es/components/UVideo/Images/VGA.png +0 -0
- package/es/components/UVideo/Images/VGAOffline.png +0 -0
- package/es/components/UVideo/Images/VideoReplayControl.png +0 -0
- package/es/components/UVideo/Images/VideoReplayNoTag.png +0 -0
- package/es/components/UVideo/Images/add_fav@2x.png +0 -0
- package/es/components/UVideo/Images/alarmOffline.png +0 -0
- package/es/components/UVideo/Images/alarmshebei.png +0 -0
- package/es/components/UVideo/Images/baojingshebei.png +0 -0
- package/es/components/UVideo/Images/baojingshebeiOffline.png +0 -0
- package/es/components/UVideo/Images/batch-live@2x.png +0 -0
- package/es/components/UVideo/Images/batchLiveWallBtn.png +0 -0
- package/es/components/UVideo/Images/batch_live_default@2x.png +0 -0
- package/es/components/UVideo/Images/bukekonggaoqingqiuji.png +0 -0
- package/es/components/UVideo/Images/bukekonggaoqingqiujiOffLine.png +0 -0
- package/es/components/UVideo/Images/bukekongqiuji.png +0 -0
- package/es/components/UVideo/Images/bukekongqiujiAlarm.png +0 -0
- package/es/components/UVideo/Images/bukekongqiujiOffline.png +0 -0
- package/es/components/UVideo/Images/caijishebei.png +0 -0
- package/es/components/UVideo/Images/caijishebeiOffline.png +0 -0
- package/es/components/UVideo/Images/caijixitong.png +0 -0
- package/es/components/UVideo/Images/caijixitongOffline.png +0 -0
- package/es/components/UVideo/Images/camera.png +0 -0
- package/es/components/UVideo/Images/camera_fix.png +0 -0
- package/es/components/UVideo/Images/camera_fix@2x.png +0 -0
- package/es/components/UVideo/Images/camera_fix_hd.png +0 -0
- package/es/components/UVideo/Images/camera_fix_hd@2x.png +0 -0
- package/es/components/UVideo/Images/camera_light.png +0 -0
- package/es/components/UVideo/Images/camera_ptz.png +0 -0
- package/es/components/UVideo/Images/camera_ptz@2x.png +0 -0
- package/es/components/UVideo/Images/camera_ptz_hd.png +0 -0
- package/es/components/UVideo/Images/camera_ptz_hd@2x.png +0 -0
- package/es/components/UVideo/Images/captureGrey.png +0 -0
- package/es/components/UVideo/Images/captureHover.png +0 -0
- package/es/components/UVideo/Images/captureIcon.png +0 -0
- package/es/components/UVideo/Images/centerPoint.png +0 -0
- package/es/components/UVideo/Images/chezaishexiangji.png +0 -0
- package/es/components/UVideo/Images/chezaishexiangjiAlarm.png +0 -0
- package/es/components/UVideo/Images/chezaishexiangjiOffline.png +0 -0
- package/es/components/UVideo/Images/choose@2x.png +0 -0
- package/es/components/UVideo/Images/choose@2x_light.png +0 -0
- package/es/components/UVideo/Images/choose_hover@2x.png +0 -0
- package/es/components/UVideo/Images/close.png +0 -0
- package/es/components/UVideo/Images/close_single.png +0 -0
- package/es/components/UVideo/Images/close_single_hover.png +0 -0
- package/es/components/UVideo/Images/closeall.png +0 -0
- package/es/components/UVideo/Images/closeall_light.png +0 -0
- package/es/components/UVideo/Images/closemodal.png +0 -0
- package/es/components/UVideo/Images/closemodal_light.png +0 -0
- package/es/components/UVideo/Images/confirm_fav.png +0 -0
- package/es/components/UVideo/Images/cruisePlan.png +0 -0
- package/es/components/UVideo/Images/cutimg.png +0 -0
- package/es/components/UVideo/Images/cutimg_hover.png +0 -0
- package/es/components/UVideo/Images/dae.png +0 -0
- package/es/components/UVideo/Images/daeOffline.png +0 -0
- package/es/components/UVideo/Images/defence@2x.png +0 -0
- package/es/components/UVideo/Images/defence_default@2x.png +0 -0
- package/es/components/UVideo/Images/defence_icon@2x.png +0 -0
- package/es/components/UVideo/Images/del_input@2x.png +0 -0
- package/es/components/UVideo/Images/delete.png +0 -0
- package/es/components/UVideo/Images/delete@2x.png +0 -0
- package/es/components/UVideo/Images/delete_img.png +0 -0
- package/es/components/UVideo/Images/delete_leve@2x.png +0 -0
- package/es/components/UVideo/Images/delete_light.png +0 -0
- package/es/components/UVideo/Images/detailFormIcon.png +0 -0
- package/es/components/UVideo/Images/device_icon-24x24.png +0 -0
- package/es/components/UVideo/Images/downLoadeGray.png +0 -0
- package/es/components/UVideo/Images/downLoadeHover.png +0 -0
- package/es/components/UVideo/Images/downLoadeIcon.png +0 -0
- package/es/components/UVideo/Images/download.png +0 -0
- package/es/components/UVideo/Images/download_light.png +0 -0
- package/es/components/UVideo/Images/duijiangfenji.png +0 -0
- package/es/components/UVideo/Images/duijiangfenjiOffline.png +0 -0
- package/es/components/UVideo/Images/emptyCamera.png +0 -0
- package/es/components/UVideo/Images/emptyMonitor.png +0 -0
- package/es/components/UVideo/Images/emptyPolice.png +0 -0
- package/es/components/UVideo/Images/emptyServer.png +0 -0
- package/es/components/UVideo/Images/favorites@2x.png +0 -0
- package/es/components/UVideo/Images/favorites_default@2x.png +0 -0
- package/es/components/UVideo/Images/fenxixitong.png +0 -0
- package/es/components/UVideo/Images/fenxixitongOffline.png +0 -0
- package/es/components/UVideo/Images/file_icon@2x.png +0 -0
- package/es/components/UVideo/Images/file_icon_open@2x.png +0 -0
- package/es/components/UVideo/Images/foldClose.png +0 -0
- package/es/components/UVideo/Images/foldOpen.png +0 -0
- package/es/components/UVideo/Images/fullscreen.png +0 -0
- package/es/components/UVideo/Images/fullscreen_light.png +0 -0
- package/es/components/UVideo/Images/gaoqingqiangji.png +0 -0
- package/es/components/UVideo/Images/gaoqingqiangjiAlarm.png +0 -0
- package/es/components/UVideo/Images/gaoqingqiangjiOffline.png +0 -0
- package/es/components/UVideo/Images/gaoqingyuntai.png +0 -0
- package/es/components/UVideo/Images/gaoqingyuntaiAlarm.png +0 -0
- package/es/components/UVideo/Images/gaoqingyuntaiOffline.png +0 -0
- package/es/components/UVideo/Images/gaoqingyuyan.png +0 -0
- package/es/components/UVideo/Images/gaoqingyuyanAlarm.png +0 -0
- package/es/components/UVideo/Images/gaoqingyuyanOffline.png +0 -0
- package/es/components/UVideo/Images/gpsEndIcon.png +0 -0
- package/es/components/UVideo/Images/gpsStartIcon.png +0 -0
- package/es/components/UVideo/Images/gridsPlay@2x.png +0 -0
- package/es/components/UVideo/Images/gridsRecord@2x.png +0 -0
- package/es/components/UVideo/Images/hide_left.png +0 -0
- package/es/components/UVideo/Images/hide_left_hover.png +0 -0
- package/es/components/UVideo/Images/hide_right.png +0 -0
- package/es/components/UVideo/Images/hide_right_hover.png +0 -0
- package/es/components/UVideo/Images/icon-close.png +0 -0
- package/es/components/UVideo/Images/icon16 copy.png +0 -0
- package/es/components/UVideo/Images/icon16.png +0 -0
- package/es/components/UVideo/Images/icon24.png +0 -0
- package/es/components/UVideo/Images/kaiguanliang.png +0 -0
- package/es/components/UVideo/Images/laiguanlaingOffline.png +0 -0
- package/es/components/UVideo/Images/last.png +0 -0
- package/es/components/UVideo/Images/last_disable.png +0 -0
- package/es/components/UVideo/Images/last_hover.png +0 -0
- package/es/components/UVideo/Images/liveUnderList.png +0 -0
- package/es/components/UVideo/Images/location1@2x.png +0 -0
- package/es/components/UVideo/Images/location@2x.png +0 -0
- package/es/components/UVideo/Images/location_default@2x.png +0 -0
- package/es/components/UVideo/Images/lunqie.png +0 -0
- package/es/components/UVideo/Images/markerIcons/hd_qiang.png +0 -0
- package/es/components/UVideo/Images/markerIcons/hd_qiu.png +0 -0
- package/es/components/UVideo/Images/markerIcons/qiang.png +0 -0
- package/es/components/UVideo/Images/markerIcons/qiu.png +0 -0
- package/es/components/UVideo/Images/markerIcons/tollgate.png +0 -0
- package/es/components/UVideo/Images/maxmodal.png +0 -0
- package/es/components/UVideo/Images/maxmodal_light.png +0 -0
- package/es/components/UVideo/Images/menjin.png +0 -0
- package/es/components/UVideo/Images/menjinOffline.png +0 -0
- package/es/components/UVideo/Images/minmodal.png +0 -0
- package/es/components/UVideo/Images/minmodal_light.png +0 -0
- package/es/components/UVideo/Images/minscreen.png +0 -0
- package/es/components/UVideo/Images/minscreen_light.png +0 -0
- package/es/components/UVideo/Images/monitor.png +0 -0
- package/es/components/UVideo/Images/monitorOffLine.png +0 -0
- package/es/components/UVideo/Images/more.png +0 -0
- package/es/components/UVideo/Images/more@2x.png +0 -0
- package/es/components/UVideo/Images/more_default@2x.png +0 -0
- package/es/components/UVideo/Images/more_light.png +0 -0
- package/es/components/UVideo/Images/moveDefault.png +0 -0
- package/es/components/UVideo/Images/netgrid@2x.png +0 -0
- package/es/components/UVideo/Images/netgrid_default@2x.png +0 -0
- package/es/components/UVideo/Images/new_no_data.png +0 -0
- package/es/components/UVideo/Images/next.png +0 -0
- package/es/components/UVideo/Images/next_disable.png +0 -0
- package/es/components/UVideo/Images/next_hover.png +0 -0
- package/es/components/UVideo/Images/no_data@2x.png +0 -0
- package/es/components/UVideo/Images/no_picture.png +0 -0
- package/es/components/UVideo/Images/org.png +0 -0
- package/es/components/UVideo/Images/patrol_last.png +0 -0
- package/es/components/UVideo/Images/patrol_last_disable.png +0 -0
- package/es/components/UVideo/Images/patrol_last_light.png +0 -0
- package/es/components/UVideo/Images/patrol_next.png +0 -0
- package/es/components/UVideo/Images/patrol_next_disable.png +0 -0
- package/es/components/UVideo/Images/patrol_next_light.png +0 -0
- package/es/components/UVideo/Images/patrol_start.png +0 -0
- package/es/components/UVideo/Images/patrol_start_light.png +0 -0
- package/es/components/UVideo/Images/patrol_stop.png +0 -0
- package/es/components/UVideo/Images/patrol_stop_light.png +0 -0
- package/es/components/UVideo/Images/piliangbeifen.png +0 -0
- package/es/components/UVideo/Images/piliangshangqiang.png +0 -0
- package/es/components/UVideo/Images/play_b@3x.png +0 -0
- package/es/components/UVideo/Images/play_buck@2x.png +0 -0
- package/es/components/UVideo/Images/play_live@2x.png +0 -0
- package/es/components/UVideo/Images/play_live_default@2x.png +0 -0
- package/es/components/UVideo/Images/point_blue.png +0 -0
- package/es/components/UVideo/Images/point_red.png +0 -0
- package/es/components/UVideo/Images/police.png +0 -0
- package/es/components/UVideo/Images/policeAvatar.png +0 -0
- package/es/components/UVideo/Images/pop.png +0 -0
- package/es/components/UVideo/Images/pop_hover.png +0 -0
- package/es/components/UVideo/Images/position@2x.png +0 -0
- package/es/components/UVideo/Images/ptz-dir-icon.png +0 -0
- package/es/components/UVideo/Images/ptz-icon16.png +0 -0
- package/es/components/UVideo/Images/ptz-icon24.png +0 -0
- package/es/components/UVideo/Images/ptz-icon32.png +0 -0
- package/es/components/UVideo/Images/ptz-icon48.png +0 -0
- package/es/components/UVideo/Images/ptz-synchro-icon.gif +0 -0
- package/es/components/UVideo/Images/ptzPanelIcon.png +0 -0
- package/es/components/UVideo/Images/ptzPanelIconGrey.png +0 -0
- package/es/components/UVideo/Images/ptzPanelIconHover.png +0 -0
- package/es/components/UVideo/Images/ptz_icon_close.png +0 -0
- package/es/components/UVideo/Images/ptz_icon_close_gray.png +0 -0
- package/es/components/UVideo/Images/ptz_icon_close_hover.png +0 -0
- package/es/components/UVideo/Images/ptz_icon_open.png +0 -0
- package/es/components/UVideo/Images/ptz_icon_open_hover.png +0 -0
- package/es/components/UVideo/Images/qiangji.png +0 -0
- package/es/components/UVideo/Images/qiangjiAlarm.png +0 -0
- package/es/components/UVideo/Images/qiangjiOffline.png +0 -0
- package/es/components/UVideo/Images/qiangqiuliandong.png +0 -0
- package/es/components/UVideo/Images/qiangqiuliandongOffline.png +0 -0
- package/es/components/UVideo/Images/rate_slider.svg +1 -0
- package/es/components/UVideo/Images/record_close.png +0 -0
- package/es/components/UVideo/Images/record_close_gray.png +0 -0
- package/es/components/UVideo/Images/record_close_hover.png +0 -0
- package/es/components/UVideo/Images/record_open.png +0 -0
- package/es/components/UVideo/Images/record_open_gray.png +0 -0
- package/es/components/UVideo/Images/record_open_hover.png +0 -0
- package/es/components/UVideo/Images/redPonit.png +0 -0
- package/es/components/UVideo/Images/refresh@2x.png +0 -0
- package/es/components/UVideo/Images/refresh_default@2x.png +0 -0
- package/es/components/UVideo/Images/replayCurrentTime.svg +1 -0
- package/es/components/UVideo/Images/replayRate.png +0 -0
- package/es/components/UVideo/Images/rfid.png +0 -0
- package/es/components/UVideo/Images/rightFullScreen.png +0 -0
- package/es/components/UVideo/Images/rightFullScreenHover.png +0 -0
- package/es/components/UVideo/Images/root.png +0 -0
- package/es/components/UVideo/Images/round-live@2x.png +0 -0
- package/es/components/UVideo/Images/round_live_default@2x.png +0 -0
- package/es/components/UVideo/Images/savesplit.png +0 -0
- package/es/components/UVideo/Images/savesplit_light.png +0 -0
- package/es/components/UVideo/Images/schicht-hover.png +0 -0
- package/es/components/UVideo/Images/schicht.png +0 -0
- package/es/components/UVideo/Images/schicht_checked.png +0 -0
- package/es/components/UVideo/Images/searchEmpty.png +0 -0
- package/es/components/UVideo/Images/securityAppDraw.png +0 -0
- package/es/components/UVideo/Images/setting.png +0 -0
- package/es/components/UVideo/Images/setting_light.png +0 -0
- package/es/components/UVideo/Images/shipinxunluo.png +0 -0
- package/es/components/UVideo/Images/sliceTooltip.png +0 -0
- package/es/components/UVideo/Images/sound.png +0 -0
- package/es/components/UVideo/Images/sound_active.png +0 -0
- package/es/components/UVideo/Images/sound_close.png +0 -0
- package/es/components/UVideo/Images/sound_close_active.png +0 -0
- package/es/components/UVideo/Images/sound_close_gray.png +0 -0
- package/es/components/UVideo/Images/sound_gray.png +0 -0
- package/es/components/UVideo/Images/spirit1.png +0 -0
- package/es/components/UVideo/Images/splitScreen.png +0 -0
- package/es/components/UVideo/Images/split_1.png +0 -0
- package/es/components/UVideo/Images/split_4.png +0 -0
- package/es/components/UVideo/Images/split_9.png +0 -0
- package/es/components/UVideo/Images/splitctr.png +0 -0
- package/es/components/UVideo/Images/splitctr_litght.png +0 -0
- package/es/components/UVideo/Images/spriteIcon copy.png +0 -0
- package/es/components/UVideo/Images/spriteIcon.png +0 -0
- package/es/components/UVideo/Images/sprites.png +0 -0
- package/es/components/UVideo/Images/sprites_image.png +0 -0
- package/es/components/UVideo/Images/startBackUpBtn.png +0 -0
- package/es/components/UVideo/Images/startPatrolBtn.png +0 -0
- package/es/components/UVideo/Images/stkIcon.png +0 -0
- package/es/components/UVideo/Images/stkTollgate.png +0 -0
- package/es/components/UVideo/Images/stream1.png +0 -0
- package/es/components/UVideo/Images/stream1_gray.png +0 -0
- package/es/components/UVideo/Images/stream1_hover.png +0 -0
- package/es/components/UVideo/Images/stream2.png +0 -0
- package/es/components/UVideo/Images/stream2_gray.png +0 -0
- package/es/components/UVideo/Images/stream2_hover.png +0 -0
- package/es/components/UVideo/Images/stream3.png +0 -0
- package/es/components/UVideo/Images/stream3_gray.png +0 -0
- package/es/components/UVideo/Images/stream3_hover.png +0 -0
- package/es/components/UVideo/Images/tableLine.png +0 -0
- package/es/components/UVideo/Images/tackEndIcon.png +0 -0
- package/es/components/UVideo/Images/tackStartIcon.png +0 -0
- package/es/components/UVideo/Images/textNoticeIcon.png +0 -0
- package/es/components/UVideo/Images/timeLarge.svg +1 -0
- package/es/components/UVideo/Images/timeSmall.svg +1 -0
- package/es/components/UVideo/Images/tollgate.png +0 -0
- package/es/components/UVideo/Images/tollgateOffLine.png +0 -0
- package/es/components/UVideo/Images/treeIcon.less +508 -0
- package/es/components/UVideo/Images/user.png +0 -0
- package/es/components/UVideo/Images/videoGroup.png +0 -0
- package/es/components/UVideo/Images/videoUnderList.png +0 -0
- package/es/components/UVideo/Images/viewLib-online.png +0 -0
- package/es/components/UVideo/Images/waiyu.png +0 -0
- package/es/components/UVideo/Images/waiyuOffline.png +0 -0
- package/es/components/UVideo/Images/warn.png +0 -0
- package/es/components/UVideo/Images/wifi.png +0 -0
- package/es/components/UVideo/Images/yidongjingwu.png +0 -0
- package/es/components/UVideo/Images/yingyongpingtai.png +0 -0
- package/es/components/UVideo/Images/yingyongpingtaiOffline.png +0 -0
- package/es/components/UVideo/Images/yuntai.png +0 -0
- package/es/components/UVideo/Images/yuntaiOffline.png +0 -0
- package/es/components/UVideo/Images/yuyan.png +0 -0
- package/es/components/UVideo/Images/yuyanAlarm.png +0 -0
- package/es/components/UVideo/Images/yuyanOffline.png +0 -0
- package/es/components/UVideo/Images/zhian@2x.png +0 -0
- package/es/components/UVideo/Images/zhian_default@2x.png +0 -0
- package/es/components/UVideo/Images/ziyuanlunxun.png +0 -0
- package/es/components/UVideo/Images/zoom_close.png +0 -0
- package/es/components/UVideo/Images/zoom_close_gray.png +0 -0
- package/es/components/UVideo/Images/zoom_close_hover.png +0 -0
- package/es/components/UVideo/Images/zoom_open.png +0 -0
- package/es/components/UVideo/Images/zoom_open_gray.png +0 -0
- package/es/components/UVideo/Images/zoom_open_hover.png +0 -0
- package/es/components/UVideo/Images/zulunxunTV.png +0 -0
- package/es/components/UVideo/Images/zulunxunTVPlay.png +0 -0
- package/es/components/UVideo/Images/zulunxunXP.png +0 -0
- package/es/components/UVideo/Images/zulunxunXPPlay.png +0 -0
- package/es/components/UVideo/Images/zulunxunziyuan.png +0 -0
- package/es/components/UVideo/Images/zuxianshiTV.png +0 -0
- package/es/components/UVideo/Images/zuxianshiXP.png +0 -0
- package/es/components/UVideo/InitFunc/GlobalFunc.js +662 -0
- package/es/components/UVideo/InitFunc/imosSdkInit.js +17 -0
- package/es/components/UVideo/TextInputNotice/TextInputNotice.js +419 -0
- package/es/components/UVideo/TextInputNotice/TextInputNotice.less +95 -0
- package/es/components/UVideo/Tree/TreeIcon.js +36 -0
- package/es/components/UVideo/Tree/UTreeIcon.js +512 -0
- package/es/components/UVideo/Tree/treeIcon.less +1057 -0
- package/es/components/UVideo/Tree/treeResTypes.js +258 -0
- package/es/components/UVideo/UVideo.js +1530 -0
- package/es/components/UVideo/VideoComponent/OperatorItems.js +1716 -0
- package/es/components/UVideo/VideoComponent/OperatorItems.less +1250 -0
- package/es/components/UVideo/VideoComponent/PlayPanel.js +1471 -0
- package/es/components/UVideo/VideoComponent/PlayPanel.less +292 -0
- package/es/components/UVideo/VideoComponent/PlayWindow.js +1342 -0
- package/es/components/UVideo/VideoComponent/PlayWindow.less +47 -0
- package/es/components/UVideo/VideoComponent/PtzControl/CardTimePicker.js +754 -0
- package/es/components/UVideo/VideoComponent/PtzControl/CardTimePicker.less +197 -0
- package/es/components/UVideo/VideoComponent/PtzControl/ConfigCruisePathPlan.js +904 -0
- package/es/components/UVideo/VideoComponent/PtzControl/ConfigCruisePathPlan.less +135 -0
- package/es/components/UVideo/VideoComponent/PtzControl/HttpRequest.js +665 -0
- package/es/components/UVideo/VideoComponent/PtzControl/PtzAddCruisePathCtr.js +1473 -0
- package/es/components/UVideo/VideoComponent/PtzControl/PtzAddCruisePathCtr.less +336 -0
- package/es/components/UVideo/VideoComponent/PtzControl/PtzCmd.js +66 -0
- package/es/components/UVideo/VideoComponent/PtzControl/PtzControlPanel.js +2537 -0
- package/es/components/UVideo/VideoComponent/PtzControl/PtzControlPanel.less +1447 -0
- package/es/components/UVideo/VideoComponent/PtzControl/PtzPresetAddCtr.js +171 -0
- package/es/components/UVideo/VideoComponent/PtzControl/PtzPresetAddCtr.less +37 -0
- package/es/components/UVideo/VideoComponent/PtzControl/PtzSetGuardCtr.js +475 -0
- package/es/components/UVideo/VideoComponent/PtzControl/PtzSetGuardCtr.less +184 -0
- package/es/components/UVideo/VideoComponent/PtzControl/TimePickerTable.js +611 -0
- package/es/components/UVideo/VideoComponent/PtzControl/TimePickerTable.less +193 -0
- package/es/components/UVideo/VideoComponent/PtzControl/applyBusiness.js +75 -0
- package/es/components/UVideo/VideoComponent/RateSelect/index.js +151 -0
- package/es/components/UVideo/VideoComponent/RateSelect/index.less +106 -0
- package/es/components/UVideo/VideoComponent/SplitScreen.js +72 -0
- package/es/components/UVideo/VideoComponent/SplitScreen.less +116 -0
- package/es/components/UVideo/VideoLive/VideoLive.js +723 -0
- package/es/components/UVideo/VideoLive/VideoLive.less +378 -0
- package/es/components/UVideo/VideoReply/VideoReply.js +937 -0
- package/es/components/UVideo/VideoReply/VideoReply.less +352 -0
- package/es/components/UVideo/VmsVideoComponent/Component/PtzControl/HttpRequest.js +580 -0
- package/es/components/UVideo/VmsVideoComponent/Component/PtzControl/PtzCmd.js +66 -0
- package/es/components/UVideo/VmsVideoComponent/Component/PtzControl/PtzControlPanel.js +1192 -0
- package/es/components/UVideo/VmsVideoComponent/Component/PtzControl/PtzControlPanel.less +1323 -0
- package/es/components/UVideo/VmsVideoComponent/Component/PtzControl/PtzPresetAddCtr.js +187 -0
- package/es/components/UVideo/VmsVideoComponent/Component/PtzControl/PtzPresetAddCtr.less +53 -0
- package/es/components/UVideo/VmsVideoComponent/Component/VmsOperatorItems.js +2500 -0
- package/es/components/UVideo/VmsVideoComponent/Component/VmsOperatorItems.less +1474 -0
- package/es/components/UVideo/VmsVideoComponent/Component/VmsVideoOperation.js +360 -0
- package/es/components/UVideo/VmsVideoComponent/Component/VmsVideoOperation.less +626 -0
- package/es/components/UVideo/VmsVideoComponent/Component/VmsVideoPanel.js +1774 -0
- package/es/components/UVideo/VmsVideoComponent/Component/download/index.js +628 -0
- package/es/components/UVideo/VmsVideoComponent/Component/download/index.less +18 -0
- package/es/components/UVideo/VmsVideoComponent/NETPluginSDK/enum.js +586 -0
- package/es/components/UVideo/VmsVideoComponent/NETPluginSDK/index.js +70 -0
- package/es/components/UVideo/VmsVideoComponent/NETPluginSDK/plugin.js +237 -0
- package/es/components/UVideo/VmsVideoComponent/NETPluginSDK/protocolcheck.js +223 -0
- package/es/components/UVideo/VmsVideoComponent/NETPluginSDK/sdkviewer.js +283 -0
- package/es/components/UVideo/VmsVideoComponent/NETPluginSDK/utils.js +206 -0
- package/es/components/UVideo/VmsVideoComponent/NETPluginSDK/wndControl.js +207 -0
- package/es/components/UVideo/VmsVideoComponent/NETPluginSDK/wsRequest.js +101 -0
- package/es/components/UVideo/VmsVideoLive/VmsVideoLive.js +557 -0
- package/es/components/UVideo/VmsVideoLive/VmsVideoLive.less +145 -0
- package/es/components/UVideo/VmsVideoReply/VmsVideoReplay.js +1012 -0
- package/es/components/UVideo/VmsVideoReply/VmsVideoReplay.less +273 -0
- package/es/components/UVideo/index.js +26 -0
- package/es/components/UVideo/index.less +265 -0
- package/es/components/UVideo/locale/en_US.d.ts +3 -0
- package/es/components/UVideo/locale/en_US.js +562 -0
- package/es/components/UVideo/locale/locale.d.ts +564 -0
- package/es/components/UVideo/locale/zh_CN.d.ts +3 -0
- package/es/components/UVideo/locale/zh_CN.js +562 -0
- package/es/components/UVideo/toolsFunc/ToolsFunc.js +125 -0
- package/es/components/_util/ActionButton.d.ts +15 -0
- package/es/components/_util/ActionButton.js +100 -0
- package/es/components/_util/colors.d.ts +5 -0
- package/es/components/_util/colors.js +4 -0
- package/es/components/_util/easings.d.ts +1 -0
- package/es/components/_util/easings.js +10 -0
- package/es/components/_util/getDataOrAriaProps.d.ts +1 -0
- package/es/components/_util/getDataOrAriaProps.js +8 -0
- package/es/components/_util/getRenderPropValue.d.ts +3 -0
- package/es/components/_util/getRenderPropValue.js +9 -0
- package/es/components/_util/getScroll.d.ts +2 -0
- package/es/components/_util/getScroll.js +29 -0
- package/es/components/_util/hooks/useFlexGapSupport.d.ts +2 -0
- package/es/components/_util/hooks/useFlexGapSupport.js +18 -0
- package/es/components/_util/hooks/useForceUpdate.d.ts +2 -0
- package/es/components/_util/hooks/useForceUpdate.js +15 -0
- package/es/components/_util/hooks/usePatchElement.d.ts +5 -0
- package/es/components/_util/hooks/usePatchElement.js +33 -0
- package/es/components/_util/hooks/useSyncState.d.ts +3 -0
- package/es/components/_util/hooks/useSyncState.js +13 -0
- package/es/components/_util/isNumeric.d.ts +2 -0
- package/es/components/_util/isNumeric.js +4 -0
- package/es/components/_util/motion.d.ts +8 -0
- package/es/components/_util/motion.js +51 -0
- package/es/components/_util/placements.d.ts +17 -0
- package/es/components/_util/placements.js +86 -0
- package/es/components/_util/raf.d.ts +9 -0
- package/es/components/_util/raf.js +26 -0
- package/es/components/_util/reactNode.d.ts +8 -0
- package/es/components/_util/reactNode.js +15 -0
- package/es/components/_util/responsiveObserve.d.ts +21 -0
- package/es/components/_util/responsiveObserve.js +64 -0
- package/es/components/_util/scrollTo.d.ts +10 -0
- package/es/components/_util/scrollTo.js +34 -0
- package/es/components/_util/statusUtils.d.ts +6 -0
- package/es/components/_util/statusUtils.js +13 -0
- package/es/components/_util/styleChecker.d.ts +4 -0
- package/es/components/_util/styleChecker.js +28 -0
- package/es/components/_util/throttleByAnimationFrame.d.ts +8 -0
- package/es/components/_util/throttleByAnimationFrame.js +57 -0
- package/es/components/_util/transButton.d.ts +9 -0
- package/es/components/_util/transButton.js +52 -0
- package/es/components/_util/type.d.ts +9 -0
- package/es/components/_util/type.js +13 -0
- package/es/components/_util/warning.d.ts +6 -0
- package/es/components/_util/warning.js +14 -0
- package/es/components/_util/wave.d.ts +32 -0
- package/es/components/_util/wave.js +207 -0
- package/es/components/locale/default.d.ts +2 -0
- package/es/components/locale/default.js +2 -0
- package/es/components/locale/en_US.d.ts +3 -0
- package/es/components/locale/en_US.js +136 -0
- package/es/components/locale/zh_CN.d.ts +3 -0
- package/es/components/locale/zh_CN.js +136 -0
- package/es/components/locale-provider/LocaleReceiver.d.ts +11 -0
- package/es/components/locale-provider/LocaleReceiver.js +36 -0
- package/es/components/locale-provider/context.d.ts +7 -0
- package/es/components/locale-provider/context.js +3 -0
- package/es/components/locale-provider/default.d.ts +2 -0
- package/es/components/locale-provider/default.js +2 -0
- package/es/components/locale-provider/en_US.d.ts +2 -0
- package/es/components/locale-provider/en_US.js +2 -0
- package/es/components/locale-provider/index.d.ts +54 -0
- package/es/components/locale-provider/index.js +30 -0
- package/es/components/locale-provider/style/index.d.ts +1 -0
- package/es/components/locale-provider/style/index.js +1 -0
- package/es/components/locale-provider/style/index.less +2 -0
- package/es/components/locale-provider/zh_CN.d.ts +2 -0
- package/es/components/locale-provider/zh_CN.js +2 -0
- package/es/components/style/color/bezierEasing.less +110 -0
- package/es/components/style/color/colorPalette.less +85 -0
- package/es/components/style/color/colors.less +162 -0
- package/es/components/style/color/tinyColor.less +1184 -0
- package/es/components/style/core/base.less +10 -0
- package/es/components/style/core/global.less +490 -0
- package/es/components/style/core/iconfont.less +22 -0
- package/es/components/style/core/index.less +5 -0
- package/es/components/style/core/motion/fade.less +34 -0
- package/es/components/style/core/motion/move.less +129 -0
- package/es/components/style/core/motion/other.less +51 -0
- package/es/components/style/core/motion/slide.less +131 -0
- package/es/components/style/core/motion/zoom.less +179 -0
- package/es/components/style/core/motion.less +22 -0
- package/es/components/style/index.d.ts +1 -0
- package/es/components/style/index.js +1 -0
- package/es/components/style/index.less +2 -0
- package/es/components/style/mixins/box.less +7 -0
- package/es/components/style/mixins/clearfix.less +16 -0
- package/es/components/style/mixins/compact-item-vertical.less +41 -0
- package/es/components/style/mixins/compact-item.less +133 -0
- package/es/components/style/mixins/compatibility.less +13 -0
- package/es/components/style/mixins/customize.less +181 -0
- package/es/components/style/mixins/iconfont.less +28 -0
- package/es/components/style/mixins/index.less +16 -0
- package/es/components/style/mixins/modal-mask.less +30 -0
- package/es/components/style/mixins/motion.less +33 -0
- package/es/components/style/mixins/operation-unit.less +15 -0
- package/es/components/style/mixins/reset.less +11 -0
- package/es/components/style/mixins/rounded-arrow.less +44 -0
- package/es/components/style/mixins/size.less +10 -0
- package/es/components/style/mixins/typography.less +58 -0
- package/es/components/style/themes/index.less +1 -0
- package/es/components/style/themes/variable.less +1064 -0
- package/es/darkTheme.js +77 -0
- package/es/defaultTheme.js +77 -0
- package/es/globalFunc/HOCConnect.js +41 -0
- package/es/globalFunc/index.d.ts +44 -0
- package/es/globalFunc/index.js +159 -0
- package/es/globalFunc/render.d.ts +16 -0
- package/es/globalFunc/render.js +91 -0
- package/es/globalVarious/index.d.ts +15 -0
- package/es/globalVarious/index.js +24 -0
- package/es/http/index.js +223 -0
- package/es/images/add_file_dark.png +0 -0
- package/es/images/add_file_dark_hover.png +0 -0
- package/es/images/clearIcon.png +0 -0
- package/es/images/clearIcon_hover.png +0 -0
- package/es/images/datePicker.png +0 -0
- package/es/images/datePicker_dark.png +0 -0
- package/es/images/emptyData.png +0 -0
- package/es/images/file_delete_dark.png +0 -0
- package/es/images/file_delete_dark_hover.png +0 -0
- package/es/images/fujian.png +0 -0
- package/es/images/noData.png +0 -0
- package/es/images/scrollDown.png +0 -0
- package/es/images/scrollDown_dark.png +0 -0
- package/es/images/scrollDown_dark_hover.png +0 -0
- package/es/images/scrollDown_light.png +0 -0
- package/es/images/scrollDown_light_hover.png +0 -0
- package/es/images/scrollLeft.png +0 -0
- package/es/images/scrollLeft_dark.png +0 -0
- package/es/images/scrollLeft_dark_hover.png +0 -0
- package/es/images/scrollLeft_light.png +0 -0
- package/es/images/scrollLeft_light_hover.png +0 -0
- package/es/images/scrollRight.png +0 -0
- package/es/images/scrollRight_dark.png +0 -0
- package/es/images/scrollRight_dark_hover.png +0 -0
- package/es/images/scrollRight_light.png +0 -0
- package/es/images/scrollRight_light_hover.png +0 -0
- package/es/images/scrollUp.png +0 -0
- package/es/images/scrollUp_dark.png +0 -0
- package/es/images/scrollUp_dark_hover.png +0 -0
- package/es/images/scrollUp_light.png +0 -0
- package/es/images/scrollUp_light_hover.png +0 -0
- package/es/images/timePicker.png +0 -0
- package/es/images/timePicker_dark.png +0 -0
- package/es/images/transfer_dark.png +0 -0
- package/es/images/transfer_dark_disable.png +0 -0
- package/es/images/transfer_dark_hover.png +0 -0
- package/es/images/trasfer_clear_dark.png +0 -0
- package/es/images/trasfer_clear_dark_hover.png +0 -0
- package/es/index.d.ts +127 -0
- package/es/index.js +90 -0
- package/es/locale/default.d.ts +2 -0
- package/es/locale/default.js +2 -0
- package/es/locale/en_US.d.ts +61 -0
- package/es/locale/en_US.js +46 -0
- package/es/locale/locale.d.ts +47 -0
- package/es/locale/zh_CN.d.ts +61 -0
- package/es/locale/zh_CN.js +46 -0
- package/es/style/global.less +97 -0
- package/es/style/globalVariabl.less +1 -0
- package/es/style/theme/cssvar.less +109 -0
- package/es/style/theme/dark.less +86 -0
- package/es/style/theme/default.less +87 -0
- package/es/style/theme/index-pure.less +2 -0
- package/es/style/theme/index.less +2 -0
- package/es/style/theme/variable.less +89 -0
- package/es/variableTheme.js +76 -0
- package/package.json +84 -0
|
@@ -0,0 +1,2860 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _this = this;
|
|
3
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
+
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i.return) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
5
|
+
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
|
|
6
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
7
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
8
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
10
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
11
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
12
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
13
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
14
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
15
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
16
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
17
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
18
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
19
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
20
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
21
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
22
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
23
|
+
import React, { useEffect, forwardRef, useImperativeHandle, useRef, useState, Fragment } from 'react';
|
|
24
|
+
import ReactDOM from 'react-dom';
|
|
25
|
+
import classNames from 'classnames';
|
|
26
|
+
import { UPagination } from "../../../UPagination";
|
|
27
|
+
import UIcon from "../../../UIcon";
|
|
28
|
+
import USpin from "../../../USpin";
|
|
29
|
+
import MapSelect from "../components/MapSelect";
|
|
30
|
+
import BuildFloor from "../components/BuildFloor";
|
|
31
|
+
import IndependentMode from "../components/independentMode";
|
|
32
|
+
import MapTrack from "../components/Track";
|
|
33
|
+
import PointDraw from "../components/PointDraw";
|
|
34
|
+
import { getMapFile, getModel, queryISConfig, queryMapInfo } from "../api/MapApi";
|
|
35
|
+
import { getHttpsUrl, getMapEngine, getPort, isHttps, setGlobeStyle, setMapBaseWidget } from "../util/publicFun";
|
|
36
|
+
import { MAP_MODE, MAP_LOAD_TYPE, MAP_TYPE, MAP_PULL_HEIGHT } from "../util/constants";
|
|
37
|
+
import { DATAS_BUS_KEY, EVENTS_BUS_KEY } from "../components/Bus/BusKey";
|
|
38
|
+
import DataBus from "../components/Bus/DataBus";
|
|
39
|
+
import EventBus from "../components/Bus/EventBus";
|
|
40
|
+
import eventBus from "../util/eventBus";
|
|
41
|
+
import { emptyMapIcon } from "../assets/SvgIcon";
|
|
42
|
+
import defaultIconImg from "../assets/images/devIconDefault.png";
|
|
43
|
+
import MapControl from "../util/MapControl";
|
|
44
|
+
import { LogError, LogInfo, LogWarning } from "../util/log";
|
|
45
|
+
import MapToolMenu from "../components/MapToolMenu";
|
|
46
|
+
import { _getGuid } from "../../../../globalFunc";
|
|
47
|
+
import { getTheme, CUSTOM_PREFIX } from "../../../../globalVarious";
|
|
48
|
+
import MapServerPointSearch from "../components/MapServerPointSearch";
|
|
49
|
+
import { getPointsByDraw } from "../components/MapServerPointManage/RequestFunc";
|
|
50
|
+
import "./Map.less";
|
|
51
|
+
import "../../style/index.less";
|
|
52
|
+
import { getMapEnv, setMapEnv } from "../util/mapEnv";
|
|
53
|
+
|
|
54
|
+
// 地图sdk接口正常值
|
|
55
|
+
var MAPSDK_RIGHT_CODE = 0;
|
|
56
|
+
var configOptionDefault = {
|
|
57
|
+
token: '',
|
|
58
|
+
mapServerIp: '',
|
|
59
|
+
isServerIp: '',
|
|
60
|
+
centerPostion: {
|
|
61
|
+
lng: 120,
|
|
62
|
+
lat: 30
|
|
63
|
+
},
|
|
64
|
+
defaultZoom: 18,
|
|
65
|
+
speSource: false
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
//视角
|
|
69
|
+
var viewCenter = {
|
|
70
|
+
1: {},
|
|
71
|
+
//平面视角
|
|
72
|
+
3: {} //gis视角
|
|
73
|
+
};
|
|
74
|
+
var newInfo = getHttpsUrl();
|
|
75
|
+
var MapComponent = function MapComponent(props, refInstance) {
|
|
76
|
+
var _configOption$swPort;
|
|
77
|
+
var _props$dimension = props.dimension,
|
|
78
|
+
dimension = _props$dimension === void 0 ? null : _props$dimension,
|
|
79
|
+
_props$configOption = props.configOption,
|
|
80
|
+
configOption = _props$configOption === void 0 ? configOptionDefault : _props$configOption,
|
|
81
|
+
changeMap = props.changeMap,
|
|
82
|
+
changeMapBefore = props.changeMapBefore,
|
|
83
|
+
onMapLoading = props.onMapLoading,
|
|
84
|
+
_props$alwaysShowPoin = props.alwaysShowPointLabel,
|
|
85
|
+
alwaysShowPointLabel = _props$alwaysShowPoin === void 0 ? false : _props$alwaysShowPoin,
|
|
86
|
+
_props$inId = props.inId,
|
|
87
|
+
inId = _props$inId === void 0 ? '' : _props$inId,
|
|
88
|
+
_props$needInnerPoint = props.needInnerPointDraw,
|
|
89
|
+
needInnerPointDraw = _props$needInnerPoint === void 0 ? true : _props$needInnerPoint,
|
|
90
|
+
_props$needJumpScene = props.needJumpScene,
|
|
91
|
+
needJumpScene = _props$needJumpScene === void 0 ? true : _props$needJumpScene,
|
|
92
|
+
_props$canRenderMap = props.canRenderMap,
|
|
93
|
+
canRenderMap = _props$canRenderMap === void 0 ? true : _props$canRenderMap,
|
|
94
|
+
_props$pullModelEvent = props.pullModelEvent,
|
|
95
|
+
pullModelEvent = _props$pullModelEvent === void 0 ? function () {} : _props$pullModelEvent,
|
|
96
|
+
_props$independentMod = props.independentMode,
|
|
97
|
+
independentMode = _props$independentMod === void 0 ? false : _props$independentMod,
|
|
98
|
+
mapInfo = props.mapInfo,
|
|
99
|
+
pointFromMapProps = props.pointFromMapProps,
|
|
100
|
+
toolMenuProps = props.toolMenuProps,
|
|
101
|
+
searchPointProps = props.searchPointProps,
|
|
102
|
+
getMapInfo = props.getMapInfo,
|
|
103
|
+
mapSwitchType = props.mapSwitchType,
|
|
104
|
+
_props$canSetView = props.canSetView,
|
|
105
|
+
canSetView = _props$canSetView === void 0 ? {
|
|
106
|
+
canSet: false
|
|
107
|
+
} : _props$canSetView,
|
|
108
|
+
textLocale = props.textLocale,
|
|
109
|
+
theme = props.theme,
|
|
110
|
+
_props$toolComponents = props.toolComponents,
|
|
111
|
+
toolComponents = _props$toolComponents === void 0 ? {
|
|
112
|
+
mapRes: false,
|
|
113
|
+
mapResSecu: false,
|
|
114
|
+
locationSecu: false,
|
|
115
|
+
overviewSecu: false,
|
|
116
|
+
zoomSlideSecu: false
|
|
117
|
+
} : _props$toolComponents,
|
|
118
|
+
_props$modelAnimation = props.modelAnimationCall,
|
|
119
|
+
modelAnimationCall = _props$modelAnimation === void 0 ? function () {} : _props$modelAnimation,
|
|
120
|
+
_props$lang = props.lang,
|
|
121
|
+
lang = _props$lang === void 0 ? 'zh-cn' : _props$lang,
|
|
122
|
+
langPkg = props.langPkg,
|
|
123
|
+
mapPort = props.mapPort;
|
|
124
|
+
|
|
125
|
+
// 地图默认层级
|
|
126
|
+
var MAP_MAX_ZOOM = configOption.defaultZoom || configOptionDefault.defaultZoom;
|
|
127
|
+
|
|
128
|
+
//#region 兼容旧版本相关
|
|
129
|
+
if (configOption.isIp) {
|
|
130
|
+
// 如果传了isServerIp优先取isServerIp,再取旧版本的isIp
|
|
131
|
+
configOption.isServerIp = configOption.isServerIp || configOption.isIp;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// 是否为端口合一环境;如果传了mapPort,说明是端口合一的环境
|
|
135
|
+
configOption.isPortOnes = !!mapPort;
|
|
136
|
+
configOption.swPort = (_configOption$swPort = configOption.swPort) !== null && _configOption$swPort !== void 0 ? _configOption$swPort : '';
|
|
137
|
+
|
|
138
|
+
//#endregion
|
|
139
|
+
// 地图挂载的domId
|
|
140
|
+
var MAP_2D_DOM_ID = "".concat(inId, "map-dom-2d");
|
|
141
|
+
var MAP_3D_DOM_ID = "".concat(inId, "map-dom-3d");
|
|
142
|
+
var MAP_STREAM_DOM_ID = "".concat(inId, "map-dom-stream");
|
|
143
|
+
var MAP_CESIUM_DOM_ID = "".concat(inId, "map-dom-cesium");
|
|
144
|
+
// 场景控制器实例
|
|
145
|
+
var mapControl = MapControl.GetInstance(inId);
|
|
146
|
+
var realMapControlRef = useRef();
|
|
147
|
+
var drawPointInstance = useRef(PointDraw.GetInstance(inId)).current;
|
|
148
|
+
var dataBusInstance = useRef(DataBus.GetInstance(inId)).current;
|
|
149
|
+
var eventBusInstance = useRef(EventBus.GetInstance(inId)).current;
|
|
150
|
+
var onLocateByCameraCall = useRef();
|
|
151
|
+
var toolMenuRef = useRef(null);
|
|
152
|
+
useEffect(function () {
|
|
153
|
+
drawPointInstance.updateBaseData('localPointFunc', pointDrawLocalFunc);
|
|
154
|
+
}, [canRenderMap]);
|
|
155
|
+
|
|
156
|
+
// 脚本文件加载
|
|
157
|
+
var _useState = useState(false),
|
|
158
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
159
|
+
loadScript = _useState2[0],
|
|
160
|
+
setLoadScript = _useState2[1];
|
|
161
|
+
// 加载中
|
|
162
|
+
var _useState3 = useState(true),
|
|
163
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
164
|
+
loading = _useState4[0],
|
|
165
|
+
setLoading = _useState4[1];
|
|
166
|
+
// 2d地图对象
|
|
167
|
+
var map2DRef = useRef(null);
|
|
168
|
+
//three地图对象
|
|
169
|
+
var map3DRef = useRef(null);
|
|
170
|
+
//cesium地图对象
|
|
171
|
+
var mapCesiumRef = useRef(null);
|
|
172
|
+
// 当前的地图操作对象
|
|
173
|
+
var mapCurrentRef = useRef(null);
|
|
174
|
+
// 地图是否为2d
|
|
175
|
+
var _useState5 = useState(false),
|
|
176
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
177
|
+
mapIs2D = _useState6[0],
|
|
178
|
+
setMapIs2D = _useState6[1];
|
|
179
|
+
// 被拉的建筑物
|
|
180
|
+
var isPullBuild = useRef({});
|
|
181
|
+
//初始的gis图源
|
|
182
|
+
var initMapOrigin = useRef(null);
|
|
183
|
+
// 地图不显示提示文字,若正常显示则为空
|
|
184
|
+
var _useState7 = useState(textLocale.noMap || '暂无地图'),
|
|
185
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
186
|
+
tipMessage = _useState8[0],
|
|
187
|
+
setTipMessage = _useState8[1];
|
|
188
|
+
// 隐藏模型id数组
|
|
189
|
+
var hideMapLayerByUNW = useRef([]);
|
|
190
|
+
// 聚合面板的点位列表
|
|
191
|
+
var _useState9 = useState([]),
|
|
192
|
+
_useState0 = _slicedToArray(_useState9, 2),
|
|
193
|
+
curClickCluster = _useState0[0],
|
|
194
|
+
setCurClickCluster = _useState0[1];
|
|
195
|
+
// 地图聚合弹窗图层
|
|
196
|
+
var clusterLayer = useRef({
|
|
197
|
+
layerId: '',
|
|
198
|
+
domId: 'cluster-panel-dom',
|
|
199
|
+
popDrawId: ''
|
|
200
|
+
});
|
|
201
|
+
// 聚合分页 maxLimit最多不分页的总数
|
|
202
|
+
var clusterPageConfig = {
|
|
203
|
+
size: 50,
|
|
204
|
+
maxLimit: 200
|
|
205
|
+
};
|
|
206
|
+
// 聚合当前页码
|
|
207
|
+
var _useState1 = useState(1),
|
|
208
|
+
_useState10 = _slicedToArray(_useState1, 2),
|
|
209
|
+
clusterCuPage = _useState10[0],
|
|
210
|
+
setClusterCuPage = _useState10[1];
|
|
211
|
+
//监听挂载
|
|
212
|
+
var _useState11 = useState(0),
|
|
213
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
214
|
+
flag = _useState12[0],
|
|
215
|
+
setFlag = _useState12[1];
|
|
216
|
+
// 点位强制刷新控制--使用于map的gis加载点位模式
|
|
217
|
+
var _useState13 = useState(false),
|
|
218
|
+
_useState14 = _slicedToArray(_useState13, 2),
|
|
219
|
+
isRefresh = _useState14[0],
|
|
220
|
+
setIsRefresh = _useState14[1];
|
|
221
|
+
// 点位单击事件 双击事件
|
|
222
|
+
var pointClickRef = useRef({
|
|
223
|
+
clickEvent: null,
|
|
224
|
+
dbcEvent: null
|
|
225
|
+
});
|
|
226
|
+
// 地图基础信息
|
|
227
|
+
var mapBaseDataRef = useRef({
|
|
228
|
+
type: MAP_TYPE.plane,
|
|
229
|
+
area: '0',
|
|
230
|
+
floor: '',
|
|
231
|
+
sceneDrawOver: false,
|
|
232
|
+
// mapMode mapId-addMap的返回数据
|
|
233
|
+
mapMode: '',
|
|
234
|
+
mapType: '',
|
|
235
|
+
sceneId: '',
|
|
236
|
+
mapId: '',
|
|
237
|
+
viewInfo: null
|
|
238
|
+
});
|
|
239
|
+
|
|
240
|
+
// 组件实例
|
|
241
|
+
// 地图选中实例
|
|
242
|
+
var mapSelectRef = useRef();
|
|
243
|
+
// 场景建筑列表实例
|
|
244
|
+
var buildFloorRef = useRef();
|
|
245
|
+
// 轨迹实例
|
|
246
|
+
var trackRef = useRef();
|
|
247
|
+
var _useState15 = useState(alwaysShowPointLabel),
|
|
248
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
249
|
+
PointLabelStatus = _useState16[0],
|
|
250
|
+
setPointLabelStatus = _useState16[1]; //点位提示模式
|
|
251
|
+
|
|
252
|
+
var defaultView = useRef(); //默认视角
|
|
253
|
+
|
|
254
|
+
//#region 模型相关
|
|
255
|
+
//模型图层
|
|
256
|
+
var modelLayerRef = useRef('');
|
|
257
|
+
//模型id
|
|
258
|
+
var modelIdRef = useRef();
|
|
259
|
+
//#endregion
|
|
260
|
+
|
|
261
|
+
//#region 地图引擎能力提升重大项目新增
|
|
262
|
+
//存储模型url
|
|
263
|
+
var modelUrl = useRef(null);
|
|
264
|
+
var mapEngineRef = useRef('2D');
|
|
265
|
+
//#endregion
|
|
266
|
+
|
|
267
|
+
//#region 业务自己使用的图层
|
|
268
|
+
/**
|
|
269
|
+
* @method 创建图层
|
|
270
|
+
*/
|
|
271
|
+
var _createClusterPop = function _createClusterPop() {
|
|
272
|
+
if (!mapCurrentRef.current) {
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
// 1. 创建图层
|
|
277
|
+
var result1 = mapCurrentRef.current.createBaseLayer();
|
|
278
|
+
if (result1.ErrCode !== 0) {
|
|
279
|
+
return;
|
|
280
|
+
}
|
|
281
|
+
clusterLayer.current.layerId = result1.Id;
|
|
282
|
+
var mapType = mapBaseDataRef.current.mapType;
|
|
283
|
+
var isCesium = mapEngineRef.current === 'cesium';
|
|
284
|
+
|
|
285
|
+
// 1.编辑弹窗
|
|
286
|
+
var div2 = document.createElement('div');
|
|
287
|
+
div2.id = clusterLayer.current.domId;
|
|
288
|
+
div2.style.opacity = 0;
|
|
289
|
+
var result2 = mapCurrentRef.current.createDomPoint(clusterLayer.current.layerId, {
|
|
290
|
+
dom: div2,
|
|
291
|
+
position: {
|
|
292
|
+
lng: 1,
|
|
293
|
+
lat: 2,
|
|
294
|
+
height: 0
|
|
295
|
+
},
|
|
296
|
+
hideType: 'hide',
|
|
297
|
+
align: 'left',
|
|
298
|
+
top: 0,
|
|
299
|
+
zIndex: 2
|
|
300
|
+
});
|
|
301
|
+
if (result2.ErrCode === 0) {
|
|
302
|
+
clusterLayer.current.popDrawId = result2.PointId;
|
|
303
|
+
var timer2 = setTimeout(function () {
|
|
304
|
+
mapCurrentRef.current.setDomPointVisiable(clusterLayer.current.layerId, clusterLayer.current.popDrawId, false);
|
|
305
|
+
clearTimeout(timer2);
|
|
306
|
+
}, 200);
|
|
307
|
+
if (mapType === MAP_TYPE.stream) return;
|
|
308
|
+
div2.style.zIndex = 2;
|
|
309
|
+
if (isCesium) {
|
|
310
|
+
div2.parentNode.parentNode.style.zIndex = 2;
|
|
311
|
+
} else {
|
|
312
|
+
div2.parentNode.style.zIndex = 2;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* @method 销毁创建聚合弹窗
|
|
319
|
+
*/
|
|
320
|
+
var _deleteClusterPop = function _deleteClusterPop() {
|
|
321
|
+
var mapObj = mapCurrentRef.current;
|
|
322
|
+
if (!mapObj) {
|
|
323
|
+
return;
|
|
324
|
+
}
|
|
325
|
+
if (clusterLayer.current.layerId) {
|
|
326
|
+
mapObj.delBaseLayerById(clusterLayer.current.layerId);
|
|
327
|
+
clusterLayer.current.layerId = '';
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* @method 更新聚合弹窗
|
|
333
|
+
* @param {String}
|
|
334
|
+
*/
|
|
335
|
+
var _updateClusterPop = function _updateClusterPop(show, point) {
|
|
336
|
+
var mapObj = mapCurrentRef.current;
|
|
337
|
+
// 处于多层不出现
|
|
338
|
+
if (!mapObj) {
|
|
339
|
+
return;
|
|
340
|
+
}
|
|
341
|
+
var dom = document.getElementById(clusterLayer.current.domId);
|
|
342
|
+
if (!dom) return;
|
|
343
|
+
if (!show) {
|
|
344
|
+
mapObj.setDomPointVisiable(clusterLayer.current.layerId, clusterLayer.current.popDrawId, show);
|
|
345
|
+
// 同时置元素可见度为0,防止弹窗消失按钮再消失情况
|
|
346
|
+
dom.style.opacity = 0;
|
|
347
|
+
return;
|
|
348
|
+
}
|
|
349
|
+
if (!point || !point.coordinateX) return;
|
|
350
|
+
var coordinateX = point.coordinateX,
|
|
351
|
+
coordinateY = point.coordinateY,
|
|
352
|
+
_point$coordinateZ = point.coordinateZ,
|
|
353
|
+
coordinateZ = _point$coordinateZ === void 0 ? 0 : _point$coordinateZ;
|
|
354
|
+
dom.style.opacity = 1;
|
|
355
|
+
// 先切换位置
|
|
356
|
+
mapObj.updateDomPoint(clusterLayer.current.layerId, clusterLayer.current.popDrawId, {
|
|
357
|
+
position: {
|
|
358
|
+
lng: coordinateX,
|
|
359
|
+
lat: coordinateY,
|
|
360
|
+
height: coordinateZ
|
|
361
|
+
}
|
|
362
|
+
});
|
|
363
|
+
// 显示
|
|
364
|
+
mapObj.setDomPointVisiable(clusterLayer.current.layerId, clusterLayer.current.popDrawId, show);
|
|
365
|
+
};
|
|
366
|
+
//#endregion
|
|
367
|
+
|
|
368
|
+
//#region 聚合
|
|
369
|
+
/**
|
|
370
|
+
* @method 聚合面板出现
|
|
371
|
+
*/
|
|
372
|
+
var _showClusterPanel = function _showClusterPanel(status, position) {
|
|
373
|
+
var points = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
374
|
+
// 如果是显示,需要定位
|
|
375
|
+
if (status && points.length) {
|
|
376
|
+
// 赋值聚合点位列表
|
|
377
|
+
setCurClickCluster(points);
|
|
378
|
+
} else {
|
|
379
|
+
setClusterCuPage(1);
|
|
380
|
+
}
|
|
381
|
+
// 显隐聚合面板
|
|
382
|
+
_updateClusterPop(status, points ? points[0] : '');
|
|
383
|
+
};
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* @method 聚合翻页
|
|
387
|
+
* @param {String}
|
|
388
|
+
*/
|
|
389
|
+
var _pageCluster = function _pageCluster(page) {
|
|
390
|
+
setClusterCuPage(page);
|
|
391
|
+
};
|
|
392
|
+
//#endregion
|
|
393
|
+
|
|
394
|
+
//#region 场景交互事件
|
|
395
|
+
/**
|
|
396
|
+
* @method 仅显示当前楼层
|
|
397
|
+
*/
|
|
398
|
+
var setPointVisByUNW = function setPointVisByUNW(id) {
|
|
399
|
+
if (!id) {
|
|
400
|
+
return;
|
|
401
|
+
}
|
|
402
|
+
var hideIds = realMapControlRef.current.getAllModelListId(id);
|
|
403
|
+
hideIds.push('', null, undefined);
|
|
404
|
+
var index = hideIds.findIndex(function (v) {
|
|
405
|
+
return v === id;
|
|
406
|
+
});
|
|
407
|
+
if (index > -1) {
|
|
408
|
+
hideIds.splice(index, 1);
|
|
409
|
+
}
|
|
410
|
+
// 隐藏点位
|
|
411
|
+
drawPointInstance.updatePointVisByModelId(hideIds);
|
|
412
|
+
hideMapLayerByUNW.current = hideIds;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* 跳回到默认视角
|
|
417
|
+
*/
|
|
418
|
+
var jumpUNWDefaultView = function jumpUNWDefaultView() {
|
|
419
|
+
if (!mapCurrentRef.current) return;
|
|
420
|
+
// 设置设备回到默认位置
|
|
421
|
+
drawPointInstance.setPointByjumpUnw();
|
|
422
|
+
// 更新当前隐藏的模型
|
|
423
|
+
hideMapLayerByUNW.current = [];
|
|
424
|
+
isPullBuild.current = null;
|
|
425
|
+
drawPointInstance.updateBaseData('hideMapModelIdArr', []);
|
|
426
|
+
pullModelEvent(false);
|
|
427
|
+
};
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @method 触发拉开建筑
|
|
431
|
+
* @param {Boolean} status 是否拉开
|
|
432
|
+
* @param {String |Number} buildId 建筑物id
|
|
433
|
+
*/
|
|
434
|
+
var _modelPullEventFunc = function _modelPullEventFunc(status, buildId) {
|
|
435
|
+
if (status && buildId !== undefined) {
|
|
436
|
+
var realMapControl = realMapControlRef.current;
|
|
437
|
+
if (!realMapControl) {
|
|
438
|
+
return;
|
|
439
|
+
}
|
|
440
|
+
var modelList = realMapControl.getAllBuildlList && realMapControl.getAllBuildlList() && realMapControl.getAllBuildlList()[buildId] ? realMapControl.getAllBuildlList()[buildId].modelList : [];
|
|
441
|
+
var modelFloor = {};
|
|
442
|
+
var hideIds = [].concat(_toConsumableArray(realMapControl.getAllModelListId()), ['', null, undefined]);
|
|
443
|
+
for (var i = 0; i < modelList.length; i++) {
|
|
444
|
+
var element = modelList[i];
|
|
445
|
+
modelFloor[element.id] = {
|
|
446
|
+
floor: element.extraInformationObj && element.extraInformationObj.floor || element.floor
|
|
447
|
+
};
|
|
448
|
+
// 将显示的建筑物从隐藏的剥离
|
|
449
|
+
if (hideIds.indexOf(element.id) !== -1) {
|
|
450
|
+
hideIds.splice(hideIds.indexOf(element.id), 1);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
// 点位更新
|
|
454
|
+
drawPointInstance.updateHeight(true, modelFloor, hideIds);
|
|
455
|
+
isPullBuild.current = modelFloor;
|
|
456
|
+
hideMapLayerByUNW.current = hideIds;
|
|
457
|
+
} else {
|
|
458
|
+
//将拉开的点位恢复
|
|
459
|
+
if (isPullBuild.current) {
|
|
460
|
+
// 更新被拉开的点位高度
|
|
461
|
+
drawPointInstance.updateHeight(false, isPullBuild.current);
|
|
462
|
+
isPullBuild.current = null;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
pullModelEvent(status, buildId, isPullBuild.current);
|
|
466
|
+
};
|
|
467
|
+
var pullAllModelToDrawEvent = function pullAllModelToDrawEvent(modelH) {
|
|
468
|
+
var pullAllModelToDrawEvent = props.pullAllModelToDrawEvent;
|
|
469
|
+
pullAllModelToDrawEvent && pullAllModelToDrawEvent(modelH);
|
|
470
|
+
// 需要清空全部的信息
|
|
471
|
+
isPullBuild.current = null;
|
|
472
|
+
hideMapLayerByUNW.current = [];
|
|
473
|
+
drawPointInstance.updateBaseData('hideMapModelIdArr', []);
|
|
474
|
+
drawPointInstance.showPullDrawPoint(modelH);
|
|
475
|
+
// pullModelEvent(false);
|
|
476
|
+
};
|
|
477
|
+
|
|
478
|
+
//#endregion
|
|
479
|
+
|
|
480
|
+
//#region 地图绘制
|
|
481
|
+
/**
|
|
482
|
+
* @method 创建地图引擎
|
|
483
|
+
* @param {Boolean} 是否是2d
|
|
484
|
+
*/
|
|
485
|
+
var _createMapObj = function _createMapObj(mapType, _callback) {
|
|
486
|
+
return new Promise(/*#__PURE__*/function () {
|
|
487
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(resolve, reject) {
|
|
488
|
+
var mapServerIp, token, swPort, _configOption$centerP, centerPostion, _configOption$zoom, zoom, helper, protocol, kochyutenInfo, mapUrl, proxyPort, zoomDelta, params, mapObjData, _mapCurrentRef$curren, _mapType;
|
|
489
|
+
return _regenerator().w(function (_context) {
|
|
490
|
+
while (1) switch (_context.n) {
|
|
491
|
+
case 0:
|
|
492
|
+
if (!(mapType === MAP_TYPE.stream)) {
|
|
493
|
+
_context.n = 1;
|
|
494
|
+
break;
|
|
495
|
+
}
|
|
496
|
+
_callback();
|
|
497
|
+
return _context.a(2, resolve());
|
|
498
|
+
case 1:
|
|
499
|
+
if (!(map2DRef.current && mapEngineRef.current === '2D')) {
|
|
500
|
+
_context.n = 2;
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
503
|
+
mapCurrentRef.current = map2DRef.current;
|
|
504
|
+
_callback();
|
|
505
|
+
return _context.a(2, resolve());
|
|
506
|
+
case 2:
|
|
507
|
+
if (!(map3DRef.current && mapEngineRef.current === '3D')) {
|
|
508
|
+
_context.n = 3;
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
mapCurrentRef.current = map3DRef.current;
|
|
512
|
+
_callback();
|
|
513
|
+
return _context.a(2, resolve());
|
|
514
|
+
case 3:
|
|
515
|
+
if (!(mapCesiumRef.current && mapEngineRef.current === 'cesium')) {
|
|
516
|
+
_context.n = 4;
|
|
517
|
+
break;
|
|
518
|
+
}
|
|
519
|
+
mapCurrentRef.current = mapCesiumRef.current;
|
|
520
|
+
_callback();
|
|
521
|
+
return _context.a(2, resolve());
|
|
522
|
+
case 4:
|
|
523
|
+
mapServerIp = configOption.mapServerIp, token = configOption.token, swPort = configOption.swPort, _configOption$centerP = configOption.centerPostion, centerPostion = _configOption$centerP === void 0 ? configOption.centerPostion || configOptionDefault.centerPostion : _configOption$centerP, _configOption$zoom = configOption.zoom, zoom = _configOption$zoom === void 0 ? MAP_MAX_ZOOM : _configOption$zoom, helper = configOption.helper;
|
|
524
|
+
protocol = window.location.protocol; // 3d情况下MapSelect要查询---应该是2d的情况下要查询
|
|
525
|
+
kochyutenInfo = {
|
|
526
|
+
center: _objectSpread({}, centerPostion),
|
|
527
|
+
zoom: zoom,
|
|
528
|
+
mapType: MAP_LOAD_TYPE.gaoDe,
|
|
529
|
+
mode: mapEngineRef.current === '2D' ? MAP_MODE.two : MAP_MODE.three
|
|
530
|
+
};
|
|
531
|
+
mapUrl = mapServerIp ? "".concat(protocol, "//").concat(mapServerIp).concat(swPort ? ':' + swPort : '') : ''; //mapPort 为端口聚合,业务侧传入mapPort 直接使用mapPort,未传入用原本的
|
|
532
|
+
proxyPort = mapPort && Array.isArray(mapPort) ? mapPort : [Number(getPort(isHttps() ? '4705' : '4707')), Number(getPort('4703')), Number(getPort('4704'))]; // 有地图服务器再去地图服务器信息查询
|
|
533
|
+
if (!mapServerIp) {
|
|
534
|
+
_context.n = 5;
|
|
535
|
+
break;
|
|
536
|
+
}
|
|
537
|
+
_context.n = 5;
|
|
538
|
+
return queryMapInfo().then(function (res) {
|
|
539
|
+
var _res$data = res.data,
|
|
540
|
+
MapSelect = _res$data.MapSelect,
|
|
541
|
+
ViewLat = _res$data.ViewLat,
|
|
542
|
+
ViewLng = _res$data.ViewLng,
|
|
543
|
+
ViewZoom = _res$data.ViewZoom;
|
|
544
|
+
if (MapSelect) {
|
|
545
|
+
kochyutenInfo.mapType = MapSelect;
|
|
546
|
+
}
|
|
547
|
+
//2d情况下设置为默认图源中心和层级
|
|
548
|
+
if (mapEngineRef.current === '2D') {
|
|
549
|
+
if (ViewLat && ViewLng) {
|
|
550
|
+
kochyutenInfo.center = {
|
|
551
|
+
lng: ViewLng,
|
|
552
|
+
lat: ViewLat
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
if (ViewZoom) {
|
|
556
|
+
// kochyutenInfo.zoom = Math.min(18, ViewZoom);
|
|
557
|
+
kochyutenInfo.zoom = ViewZoom;
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
initMapOrigin.current = kochyutenInfo;
|
|
561
|
+
}).catch(function () {});
|
|
562
|
+
case 5:
|
|
563
|
+
if (!(mapEngineRef.current === '3D')) {
|
|
564
|
+
_context.n = 6;
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
window.kochyutenPro({
|
|
568
|
+
element: document.getElementById(MAP_3D_DOM_ID),
|
|
569
|
+
mapUrl: mapUrl,
|
|
570
|
+
mapData: {
|
|
571
|
+
helper: helper
|
|
572
|
+
},
|
|
573
|
+
token: token,
|
|
574
|
+
lang: lang,
|
|
575
|
+
langPkg: langPkg,
|
|
576
|
+
callback: function callback(mapObj) {
|
|
577
|
+
map3DRef.current = mapObj;
|
|
578
|
+
mapCurrentRef.current = mapObj;
|
|
579
|
+
_callback();
|
|
580
|
+
return resolve();
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
return _context.a(2);
|
|
584
|
+
case 6:
|
|
585
|
+
zoomDelta = mapInfo && mapInfo.zoomDelta ? mapInfo.zoomDelta : 1; // 如果是2d的情况下,
|
|
586
|
+
// 如果是独立模式,外部传入
|
|
587
|
+
if (independentMode) {
|
|
588
|
+
_context.n = 7;
|
|
589
|
+
break;
|
|
590
|
+
}
|
|
591
|
+
_context.n = 7;
|
|
592
|
+
return queryISConfig('map_zoom_step').then(function (res) {
|
|
593
|
+
if (res && res.data && res.data.length > 0) {
|
|
594
|
+
var item = res.data[0];
|
|
595
|
+
var tempData;
|
|
596
|
+
if (item.value) {
|
|
597
|
+
tempData = item.value;
|
|
598
|
+
} else if (item.default) {
|
|
599
|
+
tempData = item.default;
|
|
600
|
+
}
|
|
601
|
+
if (tempData) {
|
|
602
|
+
zoomDelta = Number(tempData);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}).catch(function () {});
|
|
606
|
+
case 7:
|
|
607
|
+
params = {
|
|
608
|
+
element: document.getElementById(mapEngineRef.current === '2D' ? MAP_2D_DOM_ID : MAP_CESIUM_DOM_ID),
|
|
609
|
+
mapUrl: mapUrl,
|
|
610
|
+
mapType: kochyutenInfo.mapType,
|
|
611
|
+
mode: dimension ? dimension : kochyutenInfo.mode,
|
|
612
|
+
token: token,
|
|
613
|
+
isloading: false,
|
|
614
|
+
center: kochyutenInfo.center,
|
|
615
|
+
zoom: kochyutenInfo.zoom,
|
|
616
|
+
zoomDelta: zoomDelta,
|
|
617
|
+
//适配跨nat和https
|
|
618
|
+
proxyPort: proxyPort,
|
|
619
|
+
lang: lang,
|
|
620
|
+
//传入地图语言系统
|
|
621
|
+
langPkg: langPkg
|
|
622
|
+
};
|
|
623
|
+
if (window.imosSdk) {
|
|
624
|
+
_context.n = 8;
|
|
625
|
+
break;
|
|
626
|
+
}
|
|
627
|
+
LogError('createMap 对象不存在, 确认是否成功引入kochyuten.min.js');
|
|
628
|
+
return _context.a(2);
|
|
629
|
+
case 8:
|
|
630
|
+
mapObjData = window.imosSdk.createMap(_objectSpread(_objectSpread({}, params), {}, {
|
|
631
|
+
callback: function callback(obj) {
|
|
632
|
+
mapObjData = obj;
|
|
633
|
+
// 画地图
|
|
634
|
+
_callback();
|
|
635
|
+
}
|
|
636
|
+
})).MapObj;
|
|
637
|
+
if (mapEngineRef.current === 'cesium') {
|
|
638
|
+
mapCesiumRef.current = mapObjData;
|
|
639
|
+
} else {
|
|
640
|
+
map2DRef.current = mapObjData;
|
|
641
|
+
}
|
|
642
|
+
mapCurrentRef.current = mapObjData;
|
|
643
|
+
if (!!mapCurrentRef.current) {
|
|
644
|
+
_mapType = (_mapCurrentRef$curren = mapCurrentRef.current) === null || _mapCurrentRef$curren === void 0 ? void 0 : _mapCurrentRef$curren.mapType;
|
|
645
|
+
toolComponents.overviewSecu && mapCurrentRef.current.addOverview && mapCurrentRef.current.addOverview(_mapType);
|
|
646
|
+
toolComponents.zoomSlideSecu && mapCurrentRef.current.addZoomSlider && mapCurrentRef.current.addZoomSlider();
|
|
647
|
+
}
|
|
648
|
+
return _context.a(2, resolve());
|
|
649
|
+
}
|
|
650
|
+
}, _callee);
|
|
651
|
+
}));
|
|
652
|
+
return function (_x, _x2) {
|
|
653
|
+
return _ref.apply(this, arguments);
|
|
654
|
+
};
|
|
655
|
+
}());
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* @method 删除场景
|
|
660
|
+
*/
|
|
661
|
+
var _deleteScene = function _deleteScene() {
|
|
662
|
+
var sceneId = mapBaseDataRef.current.sceneId;
|
|
663
|
+
if (!sceneId || !mapCurrentRef.current) return;
|
|
664
|
+
if (buildFloorRef.current) {
|
|
665
|
+
buildFloorRef.current.clickBuild('');
|
|
666
|
+
buildFloorRef.current.dbcBuild(null);
|
|
667
|
+
buildFloorRef.current.clickFloor(null);
|
|
668
|
+
}
|
|
669
|
+
};
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* @method 删除原来的地图,原来地图的点位dom,显示占位图
|
|
673
|
+
*/
|
|
674
|
+
var deleteHandelGroup = function deleteHandelGroup() {
|
|
675
|
+
var _mapBaseDataRef$curre = mapBaseDataRef.current,
|
|
676
|
+
mode = _mapBaseDataRef$curre.mapMode,
|
|
677
|
+
mapId = _mapBaseDataRef$curre.mapId;
|
|
678
|
+
// mode 存在则有地图显示
|
|
679
|
+
if (!mode) {
|
|
680
|
+
return;
|
|
681
|
+
}
|
|
682
|
+
var mapCurrent = mapCurrentRef.current;
|
|
683
|
+
// 清除一系列数据
|
|
684
|
+
// 清除点位
|
|
685
|
+
drawPointInstance.clearData();
|
|
686
|
+
// 清除轨迹
|
|
687
|
+
if (trackRef.current) {
|
|
688
|
+
trackRef.current.clearTrackByMap();
|
|
689
|
+
trackRef.current.updateMapData({});
|
|
690
|
+
}
|
|
691
|
+
if (!mapCurrent) return;
|
|
692
|
+
//清除平面地图
|
|
693
|
+
if (mapId) {
|
|
694
|
+
mapCurrent.delOneMap(mapId);
|
|
695
|
+
}
|
|
696
|
+
//清除gis地图
|
|
697
|
+
setGlobeStyle(mapCurrent);
|
|
698
|
+
//清除场景
|
|
699
|
+
_deleteScene();
|
|
700
|
+
var realMapControlCur = realMapControlRef.current;
|
|
701
|
+
// 清除场景类中的数据
|
|
702
|
+
if (realMapControlCur && realMapControlCur.clearMapObj) {
|
|
703
|
+
realMapControlCur.clearMapObj();
|
|
704
|
+
}
|
|
705
|
+
// 删除聚合弹窗
|
|
706
|
+
_deleteClusterPop();
|
|
707
|
+
|
|
708
|
+
//清除模型地图
|
|
709
|
+
_deleteModel();
|
|
710
|
+
};
|
|
711
|
+
var pointDrawLocalFunc = function pointDrawLocalFunc(point) {
|
|
712
|
+
_setLocation(point);
|
|
713
|
+
};
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* @method 绘制平面地图
|
|
717
|
+
* @param {Object} floorInfo 地图楼层信息
|
|
718
|
+
*/
|
|
719
|
+
var _drawImgMap = /*#__PURE__*/function () {
|
|
720
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(floorInfo) {
|
|
721
|
+
var independentMode, independentData, mapCode, mapCurrent, imgInfo, _getMapEnv, isPortOnes, isServerIp, swPort, res, data, _data$, _mapInfo, url, mapInfoArr, token, imgUrl, imgCenter, angleInfo, zoomTemp, addResult, mapBaseDataCopy, _t;
|
|
722
|
+
return _regenerator().w(function (_context2) {
|
|
723
|
+
while (1) switch (_context2.p = _context2.n) {
|
|
724
|
+
case 0:
|
|
725
|
+
independentMode = floorInfo.independentMode, independentData = floorInfo.independentData, mapCode = floorInfo.mapCode;
|
|
726
|
+
mapCurrent = mapCurrentRef.current;
|
|
727
|
+
if (!(!independentMode && !mapCode)) {
|
|
728
|
+
_context2.n = 1;
|
|
729
|
+
break;
|
|
730
|
+
}
|
|
731
|
+
LogError('请传入is对应图片code');
|
|
732
|
+
return _context2.a(2);
|
|
733
|
+
case 1:
|
|
734
|
+
if (independentMode) {
|
|
735
|
+
_context2.n = 7;
|
|
736
|
+
break;
|
|
737
|
+
}
|
|
738
|
+
_context2.p = 2;
|
|
739
|
+
_getMapEnv = getMapEnv(), isPortOnes = _getMapEnv.isPortOnes, isServerIp = _getMapEnv.isServerIp, swPort = _getMapEnv.swPort;
|
|
740
|
+
_context2.n = 3;
|
|
741
|
+
return getMapFile(floorInfo.mapCode);
|
|
742
|
+
case 3:
|
|
743
|
+
res = _context2.v;
|
|
744
|
+
data = res.data;
|
|
745
|
+
if (!(!Array.isArray(data) || data.length < 0)) {
|
|
746
|
+
_context2.n = 4;
|
|
747
|
+
break;
|
|
748
|
+
}
|
|
749
|
+
return _context2.a(2);
|
|
750
|
+
case 4:
|
|
751
|
+
_data$ = data[0], _mapInfo = _data$.mapInfo, url = _data$.url;
|
|
752
|
+
mapInfoArr = _mapInfo.split(',');
|
|
753
|
+
token = configOption.token; //平面地图适配https
|
|
754
|
+
imgUrl = url; // 以http开头,是portal环境
|
|
755
|
+
if (imgUrl && imgUrl.startsWith('http:') && isHttps()) {
|
|
756
|
+
imgUrl = imgUrl.replace('http', 'https');
|
|
757
|
+
// 否则是 ums 相关环境
|
|
758
|
+
} else {
|
|
759
|
+
imgUrl = "".concat(window.location.protocol, "//").concat(isServerIp).concat(swPort ? ':' + swPort : '', "/isServer").concat(imgUrl);
|
|
760
|
+
}
|
|
761
|
+
if (!imgUrl.includes('?')) {
|
|
762
|
+
imgUrl = "".concat(imgUrl, "?authorization=").concat(token);
|
|
763
|
+
}
|
|
764
|
+
imgInfo = {
|
|
765
|
+
width: mapInfoArr[0],
|
|
766
|
+
height: mapInfoArr[1],
|
|
767
|
+
image: "".concat(imgUrl)
|
|
768
|
+
};
|
|
769
|
+
_context2.n = 6;
|
|
770
|
+
break;
|
|
771
|
+
case 5:
|
|
772
|
+
_context2.p = 5;
|
|
773
|
+
_t = _context2.v;
|
|
774
|
+
LogError(_t);
|
|
775
|
+
return _context2.a(2);
|
|
776
|
+
case 6:
|
|
777
|
+
_context2.n = 8;
|
|
778
|
+
break;
|
|
779
|
+
case 7:
|
|
780
|
+
imgInfo = _objectSpread(_objectSpread({}, independentData), {}, {
|
|
781
|
+
image: independentData.url || ''
|
|
782
|
+
});
|
|
783
|
+
case 8:
|
|
784
|
+
imgCenter = configOption.centerPostion || configOptionDefault.centerPostion;
|
|
785
|
+
angleInfo = null;
|
|
786
|
+
if (floorInfo.angleInfo) {
|
|
787
|
+
angleInfo = JSON.parse(floorInfo.angleInfo);
|
|
788
|
+
//设置层级(最大18)
|
|
789
|
+
zoomTemp = /^\d+$/.test(angleInfo.zoom) ? angleInfo.zoom : MAP_MAX_ZOOM; //存储地图角度及层级
|
|
790
|
+
viewCenter[1] = {
|
|
791
|
+
center: angleInfo.center,
|
|
792
|
+
zoom: zoomTemp
|
|
793
|
+
};
|
|
794
|
+
} else {
|
|
795
|
+
viewCenter[1] = {
|
|
796
|
+
center: imgCenter,
|
|
797
|
+
zoom: MAP_MAX_ZOOM
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
// 添加地图,修改平面地图中心固定120,30
|
|
801
|
+
addResult = mapCurrent.addOneMap({
|
|
802
|
+
attr: {
|
|
803
|
+
position: {
|
|
804
|
+
lng: 120,
|
|
805
|
+
lat: 30
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
style: {
|
|
809
|
+
// 设置屏幕尺寸
|
|
810
|
+
dimensions: {
|
|
811
|
+
width: imgInfo.width,
|
|
812
|
+
height: imgInfo.height
|
|
813
|
+
},
|
|
814
|
+
material: {
|
|
815
|
+
type: 'image',
|
|
816
|
+
value: {
|
|
817
|
+
image: imgInfo.image,
|
|
818
|
+
color: 'white'
|
|
819
|
+
}
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
});
|
|
823
|
+
if (!(addResult.ErrCode !== MAPSDK_RIGHT_CODE)) {
|
|
824
|
+
_context2.n = 9;
|
|
825
|
+
break;
|
|
826
|
+
}
|
|
827
|
+
LogError('addResult.ErrMsg');
|
|
828
|
+
return _context2.a(2);
|
|
829
|
+
case 9:
|
|
830
|
+
mapCurrent.setCenter(viewCenter[1].center);
|
|
831
|
+
mapCurrent.setZoom(viewCenter[1].zoom);
|
|
832
|
+
mapBaseDataCopy = mapBaseDataRef.current;
|
|
833
|
+
mapBaseDataRef.current = _objectSpread(_objectSpread({}, mapBaseDataCopy), {}, {
|
|
834
|
+
mapId: addResult.MapId,
|
|
835
|
+
viewInfo: angleInfo
|
|
836
|
+
});
|
|
837
|
+
//4.设置地图基础控件
|
|
838
|
+
setMapBaseWidget(mapCurrent, {
|
|
839
|
+
mapRes: false,
|
|
840
|
+
copyright: false
|
|
841
|
+
});
|
|
842
|
+
case 10:
|
|
843
|
+
return _context2.a(2);
|
|
844
|
+
}
|
|
845
|
+
}, _callee2, null, [[2, 5]]);
|
|
846
|
+
}));
|
|
847
|
+
return function _drawImgMap(_x3) {
|
|
848
|
+
return _ref2.apply(this, arguments);
|
|
849
|
+
};
|
|
850
|
+
}();
|
|
851
|
+
|
|
852
|
+
/**
|
|
853
|
+
* @method 内置相机点击事件
|
|
854
|
+
* @param {String}
|
|
855
|
+
*/
|
|
856
|
+
var devModelClickEvent = function devModelClickEvent(modelInfo, camInfo, isDbc) {
|
|
857
|
+
if (props.devModelClickEvent) {
|
|
858
|
+
props.devModelClickEvent(modelInfo, camInfo, isDbc);
|
|
859
|
+
}
|
|
860
|
+
// 未绑定过相机,先进行相机绑定
|
|
861
|
+
if (camInfo) {
|
|
862
|
+
var _modelInfo$subPos = modelInfo.subPos,
|
|
863
|
+
lng = _modelInfo$subPos.lng,
|
|
864
|
+
lat = _modelInfo$subPos.lat,
|
|
865
|
+
height = _modelInfo$subPos.height;
|
|
866
|
+
var pointInfo = _objectSpread(_objectSpread({}, camInfo), {}, {
|
|
867
|
+
innerModel: true,
|
|
868
|
+
// 是内置模型
|
|
869
|
+
coordinateX: lng,
|
|
870
|
+
coordinateY: lat,
|
|
871
|
+
coordinateZ: height
|
|
872
|
+
});
|
|
873
|
+
setTimeout(function () {
|
|
874
|
+
var _pointClickRef$curren = pointClickRef.current,
|
|
875
|
+
clickEvent = _pointClickRef$curren.clickEvent,
|
|
876
|
+
dbcEvent = _pointClickRef$curren.dbcEvent;
|
|
877
|
+
if (isDbc) {
|
|
878
|
+
dbcEvent && dbcEvent(modelInfo, pointInfo);
|
|
879
|
+
} else {
|
|
880
|
+
clickEvent && clickEvent(modelInfo, pointInfo);
|
|
881
|
+
}
|
|
882
|
+
}, 0);
|
|
883
|
+
}
|
|
884
|
+
};
|
|
885
|
+
var pointAddAndDelEvent = function pointAddAndDelEvent(add, points) {
|
|
886
|
+
if (props.pointAddAndDelEvent) {
|
|
887
|
+
props.pointAddAndDelEvent(add, points);
|
|
888
|
+
}
|
|
889
|
+
if (needInnerPointDraw) {
|
|
890
|
+
if (add) {
|
|
891
|
+
drawPointInstance.drawAddPointsOnMap({
|
|
892
|
+
pointList: points
|
|
893
|
+
}, _this.isPullBuild, unwFloorSelectId);
|
|
894
|
+
} else {
|
|
895
|
+
drawPointInstance.delPoint(points.map(function (v) {
|
|
896
|
+
return v.deviceCode;
|
|
897
|
+
}));
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
};
|
|
901
|
+
|
|
902
|
+
/**
|
|
903
|
+
* @method 绘制场景地图 | 流引擎地图
|
|
904
|
+
* @param {Object} floorInfo 楼层信息
|
|
905
|
+
*/
|
|
906
|
+
var _drawSceneMap = /*#__PURE__*/function () {
|
|
907
|
+
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3(floorInfo, type) {
|
|
908
|
+
var mapBaseDataCopy, msBid, mapOrigin, angleInfo, realMapControlCur, clickBuild, dbcBuild, clickFloor, buildClickEvent, buildDbClickEvent, modelClickEvent, jumpSingleModelEvent, jumpUNWView, modelClick, modelClickEventInfo, modelPullEvent, modelAnimationCallInner, events, mapCurrent;
|
|
909
|
+
return _regenerator().w(function (_context3) {
|
|
910
|
+
while (1) switch (_context3.n) {
|
|
911
|
+
case 0:
|
|
912
|
+
mapBaseDataCopy = _objectSpread({}, mapBaseDataRef.current);
|
|
913
|
+
msBid = floorInfo.msBid, mapOrigin = floorInfo.mapOrigin, angleInfo = floorInfo.angleInfo;
|
|
914
|
+
mapBaseDataCopy.sceneDrawOver = false;
|
|
915
|
+
mapControl.changeMapControl(type);
|
|
916
|
+
realMapControlRef.current = mapControl.getMapControl();
|
|
917
|
+
realMapControlCur = realMapControlRef.current; //#region 事件绑定
|
|
918
|
+
clickBuild = props.clickBuild, dbcBuild = props.dbcBuild, clickFloor = props.clickFloor; //建筑物单击事件
|
|
919
|
+
buildClickEvent = function buildClickEvent(buildId) {
|
|
920
|
+
if (typeof clickBuild === 'function') {
|
|
921
|
+
clickBuild(buildId);
|
|
922
|
+
}
|
|
923
|
+
buildFloorRef.current && buildFloorRef.current.clickBuild && buildFloorRef.current.clickBuild(buildId);
|
|
924
|
+
}; // 建筑物双击事件
|
|
925
|
+
buildDbClickEvent = function buildDbClickEvent(modelId, relativeId) {
|
|
926
|
+
if (typeof dbcBuild === 'function') {
|
|
927
|
+
dbcBuild(modelId, relativeId);
|
|
928
|
+
}
|
|
929
|
+
// 如果非独立模式,则大跳小
|
|
930
|
+
if (needJumpScene && relativeId && !independentMode) {
|
|
931
|
+
mapSelectRef.current && mapSelectRef.current.changeSelectMapByDbClick(relativeId);
|
|
932
|
+
} else {
|
|
933
|
+
buildFloorRef.current && buildFloorRef.current.dbcBuild && buildFloorRef.current.dbcBuild(modelId);
|
|
934
|
+
}
|
|
935
|
+
}; //单楼层单击事件
|
|
936
|
+
modelClickEvent = function modelClickEvent() {
|
|
937
|
+
var modelData = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
938
|
+
if (typeof clickFloor === 'function') {
|
|
939
|
+
clickFloor(modelData);
|
|
940
|
+
}
|
|
941
|
+
buildFloorRef.current && buildFloorRef.current.clickFloor && buildFloorRef.current.clickFloor(modelData);
|
|
942
|
+
}; //进入单模型显示 已经拉开过的建筑,双击某一层,只当前楼层显示
|
|
943
|
+
jumpSingleModelEvent = function jumpSingleModelEvent(id) {
|
|
944
|
+
var jumpSingleModelEvent = props.jumpSingleModelEvent;
|
|
945
|
+
jumpSingleModelEvent && jumpSingleModelEvent(id);
|
|
946
|
+
setPointVisByUNW(id);
|
|
947
|
+
}; // 跳回默认视角
|
|
948
|
+
jumpUNWView = function jumpUNWView() {
|
|
949
|
+
var jumpUNWView = props.jumpUNWView;
|
|
950
|
+
jumpUNWView && jumpUNWView();
|
|
951
|
+
jumpUNWDefaultView();
|
|
952
|
+
}; //建筑物点击事件(无状态区分,仅获取点击的信息),公共组件需要的,追影项目无用,暂留
|
|
953
|
+
modelClick = props.modelClick;
|
|
954
|
+
modelClickEventInfo = function modelClickEventInfo(model, status, data) {
|
|
955
|
+
modelClick && modelClick(model, status, data);
|
|
956
|
+
}; // 建筑物拉伸/收起
|
|
957
|
+
modelPullEvent = function modelPullEvent(status, buildId) {
|
|
958
|
+
_modelPullEventFunc(status, buildId);
|
|
959
|
+
}; //建筑物动画结束回调
|
|
960
|
+
modelAnimationCallInner = modelAnimationCall;
|
|
961
|
+
events = {
|
|
962
|
+
buildClickEvent: buildClickEvent,
|
|
963
|
+
//clickBuild
|
|
964
|
+
buildDbClickEvent: buildDbClickEvent,
|
|
965
|
+
//dbcBuild
|
|
966
|
+
modelClickEvent: modelClickEvent,
|
|
967
|
+
//clickFloor
|
|
968
|
+
jumpUNWView: jumpUNWView,
|
|
969
|
+
//jumpUNWView
|
|
970
|
+
jumpSingleModelEvent: jumpSingleModelEvent,
|
|
971
|
+
//jumpSingleModelEvent
|
|
972
|
+
modelClickEventInfo: modelClickEventInfo,
|
|
973
|
+
//modelClick
|
|
974
|
+
modelPullEvent: modelPullEvent,
|
|
975
|
+
//pullModelEvent
|
|
976
|
+
pullAllModelToDrawEvent: pullAllModelToDrawEvent,
|
|
977
|
+
//pullAllModelToDrawEvent
|
|
978
|
+
modelAnimationCall: modelAnimationCallInner
|
|
979
|
+
}; //#endregion
|
|
980
|
+
// 1.添加场景
|
|
981
|
+
if (!(MAP_TYPE.scene === type)) {
|
|
982
|
+
_context3.n = 3;
|
|
983
|
+
break;
|
|
984
|
+
}
|
|
985
|
+
if (msBid) {
|
|
986
|
+
_context3.n = 1;
|
|
987
|
+
break;
|
|
988
|
+
}
|
|
989
|
+
mapBaseDataRef.current = _objectSpread({}, mapBaseDataCopy);
|
|
990
|
+
setTipMessage(textLocale.noMap || '暂无地图');
|
|
991
|
+
return _context3.a(2);
|
|
992
|
+
case 1:
|
|
993
|
+
realMapControlCur.setMapObj(mapCurrentRef.current);
|
|
994
|
+
mapCurrentRef.current.switchFigureSource(initMapOrigin.current.mapType);
|
|
995
|
+
_context3.n = 2;
|
|
996
|
+
return realMapControlCur.addMap(msBid, events, '', '', configOption.speSource, textLocale, function (percent) {
|
|
997
|
+
setMapLoadingPercentState(percent);
|
|
998
|
+
}).then(function () {
|
|
999
|
+
setLoading(false);
|
|
1000
|
+
});
|
|
1001
|
+
case 2:
|
|
1002
|
+
_context3.n = 4;
|
|
1003
|
+
break;
|
|
1004
|
+
case 3:
|
|
1005
|
+
_context3.n = 4;
|
|
1006
|
+
return realMapControlCur.initMap({
|
|
1007
|
+
element: document.getElementById(MAP_STREAM_DOM_ID),
|
|
1008
|
+
token: configOption.token,
|
|
1009
|
+
isServerIp: configOption.isServerIp,
|
|
1010
|
+
events: _objectSpread(_objectSpread({}, events), {}, {
|
|
1011
|
+
devModelClickEvent: devModelClickEvent,
|
|
1012
|
+
pointAddAndDelEvent: pointAddAndDelEvent
|
|
1013
|
+
}),
|
|
1014
|
+
mapData: typeof mapOrigin === 'string' ? JSON.parse(mapOrigin) : mapOrigin,
|
|
1015
|
+
textLocale: textLocale,
|
|
1016
|
+
lang: lang,
|
|
1017
|
+
langPkg: langPkg
|
|
1018
|
+
}).then(function (mapObj) {
|
|
1019
|
+
mapCurrentRef.current = mapObj;
|
|
1020
|
+
// 执行默认定位
|
|
1021
|
+
if (angleInfo) {
|
|
1022
|
+
var angleInfoObj = JSON.parse(angleInfo);
|
|
1023
|
+
defaultView.current = angleInfoObj;
|
|
1024
|
+
angleInfoObj && mapObj.setViewByViewInfo(angleInfoObj, {
|
|
1025
|
+
duration: 1
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
setLoading(false);
|
|
1029
|
+
});
|
|
1030
|
+
case 4:
|
|
1031
|
+
mapCurrent = mapCurrentRef.current;
|
|
1032
|
+
if (mapCurrent) {
|
|
1033
|
+
_context3.n = 5;
|
|
1034
|
+
break;
|
|
1035
|
+
}
|
|
1036
|
+
return _context3.a(2);
|
|
1037
|
+
case 5:
|
|
1038
|
+
//3.设置地图基础控件
|
|
1039
|
+
setMapBaseWidget(mapCurrent);
|
|
1040
|
+
// 更新楼层列表控制对象
|
|
1041
|
+
if (buildFloorRef.current) {
|
|
1042
|
+
buildFloorRef.current.updateBaseData({
|
|
1043
|
+
inId: inId,
|
|
1044
|
+
type: type
|
|
1045
|
+
});
|
|
1046
|
+
}
|
|
1047
|
+
mapBaseDataRef.current = _objectSpread({}, mapBaseDataCopy);
|
|
1048
|
+
case 6:
|
|
1049
|
+
return _context3.a(2);
|
|
1050
|
+
}
|
|
1051
|
+
}, _callee3);
|
|
1052
|
+
}));
|
|
1053
|
+
return function _drawSceneMap(_x4, _x5) {
|
|
1054
|
+
return _ref3.apply(this, arguments);
|
|
1055
|
+
};
|
|
1056
|
+
}();
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* 展示GIS图源
|
|
1060
|
+
* @param {Object} info 图源信息
|
|
1061
|
+
* @param {Boolean} remove 是否将原先添加的图源图层删除
|
|
1062
|
+
*/
|
|
1063
|
+
// 将对应参数函数字符串转化为函数,跟地图参数保持一致(目前就两参数需要函数类型)
|
|
1064
|
+
var _showGisMap = function _showGisMap(info) {
|
|
1065
|
+
var remove = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
1066
|
+
var mapCurrent = mapCurrentRef.current;
|
|
1067
|
+
setMapBaseWidget(mapCurrent, {
|
|
1068
|
+
mapRes: false,
|
|
1069
|
+
copyright: false
|
|
1070
|
+
});
|
|
1071
|
+
if (info.customTags) {
|
|
1072
|
+
var _info$customTags = info.customTags,
|
|
1073
|
+
X = _info$customTags.X,
|
|
1074
|
+
Y = _info$customTags.Y,
|
|
1075
|
+
Z = _info$customTags.Z;
|
|
1076
|
+
X && (info.customTags.X = eval('(false || ' + X + ')'));
|
|
1077
|
+
Y && (info.customTags.Y = eval('(false || ' + Y + ')'));
|
|
1078
|
+
Z && (info.customTags.Z = eval('(false || ' + Z + ')'));
|
|
1079
|
+
}
|
|
1080
|
+
if (info.newProj) {
|
|
1081
|
+
var _info$newProj = info.newProj,
|
|
1082
|
+
llToNewProjFunc = _info$newProj.llToNewProjFunc,
|
|
1083
|
+
newProjToLLFunc = _info$newProj.newProjToLLFunc;
|
|
1084
|
+
llToNewProjFunc && (info.newProj.llToNewProjFunc = eval('(false || ' + llToNewProjFunc + ')'));
|
|
1085
|
+
newProjToLLFunc && (info.newProj.newProjToLLFunc = eval('(false || ' + newProjToLLFunc + ')'));
|
|
1086
|
+
}
|
|
1087
|
+
// 创建地图图源服务
|
|
1088
|
+
var source = mapCurrent.createMapSource(info);
|
|
1089
|
+
if (source.ErrCode === 0) {
|
|
1090
|
+
// 成功后添加地图图源
|
|
1091
|
+
mapCurrent.addMapSourceLayer(source.Id, remove);
|
|
1092
|
+
} else {
|
|
1093
|
+
LogError(source.ErrMsg);
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* @method 添加图源
|
|
1099
|
+
* @param {Object} info 地图数据
|
|
1100
|
+
* @param {String} addType gis类型
|
|
1101
|
+
*/
|
|
1102
|
+
var _addMapSource = function _addMapSource(info, addType) {
|
|
1103
|
+
var mapCurrent = mapCurrentRef.current;
|
|
1104
|
+
if (!mapCurrent) return;
|
|
1105
|
+
initMapOrigin.current && mapCurrent.switchFigureSource(initMapOrigin.current.mapType);
|
|
1106
|
+
if (addType === MAP_TYPE.gis) {
|
|
1107
|
+
// gis默认图源,直接切换到对应类型图源
|
|
1108
|
+
return;
|
|
1109
|
+
}
|
|
1110
|
+
// 多图源
|
|
1111
|
+
if (Array.isArray(info)) {
|
|
1112
|
+
info.forEach(function (item, index) {
|
|
1113
|
+
// 如果是地图服务器上传的第三方直接切图源即可
|
|
1114
|
+
if (item.MapID) {
|
|
1115
|
+
mapCurrent.addMapSourceLayer(item.MapID, index === 0 ? true : false);
|
|
1116
|
+
} else {
|
|
1117
|
+
_showGisMap(item, index === 0 ? true : false);
|
|
1118
|
+
}
|
|
1119
|
+
});
|
|
1120
|
+
} else {
|
|
1121
|
+
if (info.MapID) {
|
|
1122
|
+
// 如果是地图服务器上传的第三方直接切图源即可
|
|
1123
|
+
mapCurrent.switchFigureSource(info.MapID);
|
|
1124
|
+
return;
|
|
1125
|
+
}
|
|
1126
|
+
_showGisMap(info);
|
|
1127
|
+
}
|
|
1128
|
+
};
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* @method 绘制GIS地图
|
|
1132
|
+
* @param {Object} floorInfo 楼层信息
|
|
1133
|
+
*/
|
|
1134
|
+
var _drawGisMap = function _drawGisMap(floorInfo) {
|
|
1135
|
+
var mapCurrent = mapCurrentRef.current;
|
|
1136
|
+
var mapInfo = {};
|
|
1137
|
+
//1.加载图源
|
|
1138
|
+
var mapOrigin = floorInfo.mapOrigin;
|
|
1139
|
+
if (mapOrigin) {
|
|
1140
|
+
//自定义gis
|
|
1141
|
+
mapInfo = JSON.parse(mapOrigin);
|
|
1142
|
+
//加载图源
|
|
1143
|
+
_addMapSource(mapInfo, 'other');
|
|
1144
|
+
} else {
|
|
1145
|
+
//普通gis
|
|
1146
|
+
//加载图源
|
|
1147
|
+
initMapOrigin.current && _addMapSource(initMapOrigin.current, MAP_TYPE.gis);
|
|
1148
|
+
|
|
1149
|
+
//默认需要显示卫星切换插件
|
|
1150
|
+
if (inId === 'test7' || inId === 'SecurityPreventControl_Map') {
|
|
1151
|
+
setMapBaseWidget(mapCurrent, {
|
|
1152
|
+
mapRes: toolComponents.mapRes,
|
|
1153
|
+
mapResSecu: toolComponents.mapResSecu,
|
|
1154
|
+
copyright: true
|
|
1155
|
+
});
|
|
1156
|
+
} else {
|
|
1157
|
+
setMapBaseWidget(mapCurrent, {
|
|
1158
|
+
mapRes: true,
|
|
1159
|
+
copyright: true
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
//2.设置视角
|
|
1164
|
+
var angleInfo = '';
|
|
1165
|
+
if (floorInfo.angleInfo) {
|
|
1166
|
+
angleInfo = JSON.parse(floorInfo.angleInfo);
|
|
1167
|
+
}
|
|
1168
|
+
if (angleInfo) {
|
|
1169
|
+
//设置层级(最大18)
|
|
1170
|
+
var zoomTemp = /^\d+$/.test(angleInfo.zoom) ? angleInfo.zoom : MAP_MAX_ZOOM;
|
|
1171
|
+
viewCenter[3] = {
|
|
1172
|
+
center: angleInfo.center,
|
|
1173
|
+
zoom: zoomTemp
|
|
1174
|
+
};
|
|
1175
|
+
} else {
|
|
1176
|
+
if (mapOrigin) {
|
|
1177
|
+
var _initMapOrigin$curren, _initMapOrigin$curren2;
|
|
1178
|
+
viewCenter[3] = {
|
|
1179
|
+
center: configOption.centerPostion || ((_initMapOrigin$curren = initMapOrigin.current) === null || _initMapOrigin$curren === void 0 ? void 0 : _initMapOrigin$curren.center) || configOptionDefault.centerPostion,
|
|
1180
|
+
zoom: mapInfo.zoom || mapInfo.maxZoom || ((_initMapOrigin$curren2 = initMapOrigin.current) === null || _initMapOrigin$curren2 === void 0 ? void 0 : _initMapOrigin$curren2.zoom) || MAP_MAX_ZOOM
|
|
1181
|
+
};
|
|
1182
|
+
} else {
|
|
1183
|
+
var _initMapOrigin$curren3, _initMapOrigin$curren4;
|
|
1184
|
+
viewCenter[3] = {
|
|
1185
|
+
center: configOption.centerPostion || ((_initMapOrigin$curren3 = initMapOrigin.current) === null || _initMapOrigin$curren3 === void 0 ? void 0 : _initMapOrigin$curren3.center) || configOptionDefault.centerPostion,
|
|
1186
|
+
zoom: configOption.defaultZoom || ((_initMapOrigin$curren4 = initMapOrigin.current) === null || _initMapOrigin$curren4 === void 0 ? void 0 : _initMapOrigin$curren4.zoom) || configOptionDefault.defaultZoom
|
|
1187
|
+
};
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
//视角设置,非独立模式下由IS控制; 独立模式优先级:传入 > 地图服务器 > 组件内置默认值
|
|
1191
|
+
mapCurrent.setZoom(viewCenter[3].zoom);
|
|
1192
|
+
mapCurrent.setCenter(viewCenter[3].center);
|
|
1193
|
+
};
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* @method 地图基础信息设置
|
|
1197
|
+
* @param {object} mabObj 地图实例
|
|
1198
|
+
* @param {string} type 地图类型
|
|
1199
|
+
* @param {function} callback 回调
|
|
1200
|
+
*/
|
|
1201
|
+
var _mapBaseSet = function _mapBaseSet(mabObj, type, callback) {
|
|
1202
|
+
mabObj && mabObj.setBaseWidget && mabObj.setBaseWidget({
|
|
1203
|
+
location: false,
|
|
1204
|
+
zoomOp: false,
|
|
1205
|
+
compass: false,
|
|
1206
|
+
pitch: false,
|
|
1207
|
+
dimBox: false,
|
|
1208
|
+
mapRes: type === 3,
|
|
1209
|
+
copyright: type === 3
|
|
1210
|
+
});
|
|
1211
|
+
typeof callback === 'function' && callback();
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* @method 绘制地图
|
|
1216
|
+
* @param {String}
|
|
1217
|
+
*/
|
|
1218
|
+
var _drawMap = /*#__PURE__*/function () {
|
|
1219
|
+
var _ref4 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee4(mapType, msBid, msFid, is3D, floor) {
|
|
1220
|
+
var initMapOriginTemp, newParams, drawMapFun, _t2;
|
|
1221
|
+
return _regenerator().w(function (_context4) {
|
|
1222
|
+
while (1) switch (_context4.n) {
|
|
1223
|
+
case 0:
|
|
1224
|
+
initMapOriginTemp = null;
|
|
1225
|
+
newParams = {};
|
|
1226
|
+
viewCenter[1] = {}; //重置平面视角
|
|
1227
|
+
//地图绘制
|
|
1228
|
+
drawMapFun = null;
|
|
1229
|
+
_t2 = mapType;
|
|
1230
|
+
_context4.n = _t2 === MAP_TYPE.plane ? 1 : _t2 === MAP_TYPE.scene ? 2 : _t2 === MAP_TYPE.gis ? 3 : _t2 === MAP_TYPE.stream ? 4 : _t2 === MAP_TYPE.model ? 5 : 6;
|
|
1231
|
+
break;
|
|
1232
|
+
case 1:
|
|
1233
|
+
//平面
|
|
1234
|
+
newParams = {
|
|
1235
|
+
mapMode: MAP_MODE.two
|
|
1236
|
+
};
|
|
1237
|
+
drawMapFun = _drawImgMap;
|
|
1238
|
+
return _context4.a(3, 7);
|
|
1239
|
+
case 2:
|
|
1240
|
+
// 场景
|
|
1241
|
+
// 保存场景id
|
|
1242
|
+
newParams = {
|
|
1243
|
+
sceneId: msBid,
|
|
1244
|
+
mapMode: MAP_MODE.three
|
|
1245
|
+
};
|
|
1246
|
+
drawMapFun = _drawSceneMap;
|
|
1247
|
+
return _context4.a(3, 7);
|
|
1248
|
+
case 3:
|
|
1249
|
+
//gis
|
|
1250
|
+
initMapOriginTemp = initMapOrigin.current;
|
|
1251
|
+
newParams = {
|
|
1252
|
+
mapMode: MAP_MODE.two
|
|
1253
|
+
};
|
|
1254
|
+
drawMapFun = _drawGisMap;
|
|
1255
|
+
return _context4.a(3, 7);
|
|
1256
|
+
case 4:
|
|
1257
|
+
//云渲染
|
|
1258
|
+
newParams = {
|
|
1259
|
+
sceneId: msBid,
|
|
1260
|
+
mapMode: MAP_MODE.three
|
|
1261
|
+
};
|
|
1262
|
+
initMapOriginTemp = initMapOrigin.current;
|
|
1263
|
+
drawMapFun = _drawSceneMap;
|
|
1264
|
+
return _context4.a(3, 7);
|
|
1265
|
+
case 5:
|
|
1266
|
+
//模型
|
|
1267
|
+
newParams = {
|
|
1268
|
+
mapMode: MAP_MODE.three
|
|
1269
|
+
};
|
|
1270
|
+
initMapOriginTemp = initMapOrigin.current;
|
|
1271
|
+
drawMapFun = _drawModalMap;
|
|
1272
|
+
return _context4.a(3, 7);
|
|
1273
|
+
case 6:
|
|
1274
|
+
newParams = {
|
|
1275
|
+
mapMode: MAP_MODE.two
|
|
1276
|
+
};
|
|
1277
|
+
drawMapFun = _drawGisMap;
|
|
1278
|
+
return _context4.a(3, 7);
|
|
1279
|
+
case 7:
|
|
1280
|
+
// 楼层列表显示
|
|
1281
|
+
buildFloorRef.current && buildFloorRef.current.showCom(is3D);
|
|
1282
|
+
// 在drawMap中Fun中有改动,需要先存数据后调用drawMapFun赋值
|
|
1283
|
+
mapBaseDataRef.current = _objectSpread(_objectSpread({}, newParams), {}, {
|
|
1284
|
+
floor: floor,
|
|
1285
|
+
mapType: mapType,
|
|
1286
|
+
viewInfo: floor.angleInfo
|
|
1287
|
+
});
|
|
1288
|
+
if (MAP_TYPE.gis !== mapType) {
|
|
1289
|
+
setGlobeStyle(mapCurrentRef.current);
|
|
1290
|
+
}
|
|
1291
|
+
_context4.n = 8;
|
|
1292
|
+
return drawMapFun(floor, mapType);
|
|
1293
|
+
case 8:
|
|
1294
|
+
// 更新点位绘制需要的数据
|
|
1295
|
+
drawPointInstance.updateMapData({
|
|
1296
|
+
mapObj: mapCurrentRef.current,
|
|
1297
|
+
mapType: mapType,
|
|
1298
|
+
mapControl: realMapControlRef.current,
|
|
1299
|
+
initMapOrigin: initMapOriginTemp,
|
|
1300
|
+
alwaysShowName: PointLabelStatus,
|
|
1301
|
+
clusterPanelEvent: _showClusterPanel
|
|
1302
|
+
});
|
|
1303
|
+
|
|
1304
|
+
// 更新轨迹中的地图对象
|
|
1305
|
+
trackRef.current && trackRef.current.updateMapData({
|
|
1306
|
+
mapObj: mapCurrentRef.current,
|
|
1307
|
+
mapType: mapType,
|
|
1308
|
+
sceneId: msBid,
|
|
1309
|
+
mapControl: realMapControlRef.current
|
|
1310
|
+
});
|
|
1311
|
+
setIsRefresh(true);
|
|
1312
|
+
// 地图更新成功回调
|
|
1313
|
+
typeof changeMap === 'function' && changeMap(floor, true, mapCurrentRef.current);
|
|
1314
|
+
case 9:
|
|
1315
|
+
return _context4.a(2);
|
|
1316
|
+
}
|
|
1317
|
+
}, _callee4);
|
|
1318
|
+
}));
|
|
1319
|
+
return function _drawMap(_x6, _x7, _x8, _x9, _x0) {
|
|
1320
|
+
return _ref4.apply(this, arguments);
|
|
1321
|
+
};
|
|
1322
|
+
}();
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* @method 发布事件-更新地图(地图的楼层由mapSelect查询,此处接受传递过来的参数即可)
|
|
1326
|
+
* @param {Object} 当前展示的楼层对象
|
|
1327
|
+
*/
|
|
1328
|
+
var _updateMap = /*#__PURE__*/function () {
|
|
1329
|
+
var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee5(floor) {
|
|
1330
|
+
var dom2D, dom3D, domStream, domCesium, mapType, msFid, msBid, mapEngineExtData, _mapOrigin$mapEngine, mapOrigin, mapEngine, is3D, result, duration, loadingTImer;
|
|
1331
|
+
return _regenerator().w(function (_context5) {
|
|
1332
|
+
while (1) switch (_context5.n) {
|
|
1333
|
+
case 0:
|
|
1334
|
+
setLoading(true);
|
|
1335
|
+
// 清除当前展示的地图,及地图上显示的事物
|
|
1336
|
+
deleteHandelGroup();
|
|
1337
|
+
// 清除当前页面的一些数据
|
|
1338
|
+
setCurClickCluster([]);
|
|
1339
|
+
if (floor) {
|
|
1340
|
+
_context5.n = 1;
|
|
1341
|
+
break;
|
|
1342
|
+
}
|
|
1343
|
+
setTipMessage(textLocale.noMap || '暂无地图');
|
|
1344
|
+
setLoading(false);
|
|
1345
|
+
typeof changeMapBefore === 'function' && changeMapBefore(mapCurrentRef.current);
|
|
1346
|
+
typeof changeMap === 'function' && changeMap({}, false); //地图切换失败,也回调
|
|
1347
|
+
return _context5.a(2, true);
|
|
1348
|
+
case 1:
|
|
1349
|
+
if (!(floor.mapType === MAP_TYPE.model)) {
|
|
1350
|
+
_context5.n = 2;
|
|
1351
|
+
break;
|
|
1352
|
+
}
|
|
1353
|
+
_context5.n = 2;
|
|
1354
|
+
return _getModelUrl(floor);
|
|
1355
|
+
case 2:
|
|
1356
|
+
setIsRefresh(false);
|
|
1357
|
+
// 执行外部传入更新回调
|
|
1358
|
+
typeof changeMapBefore === 'function' && changeMapBefore(mapCurrentRef.current);
|
|
1359
|
+
// 地图dom先隐藏
|
|
1360
|
+
dom2D = document.getElementById(MAP_2D_DOM_ID);
|
|
1361
|
+
dom3D = document.getElementById(MAP_3D_DOM_ID);
|
|
1362
|
+
domStream = document.getElementById(MAP_STREAM_DOM_ID);
|
|
1363
|
+
domCesium = document.getElementById(MAP_CESIUM_DOM_ID);
|
|
1364
|
+
dom2D.style.zIndex = -2;
|
|
1365
|
+
dom3D.style.zIndex = -2;
|
|
1366
|
+
domStream.style.zIndex = -2;
|
|
1367
|
+
domCesium.style.zIndex = -2;
|
|
1368
|
+
dom2D.style.visibility = 'hidden';
|
|
1369
|
+
dom3D.style.visibility = 'hidden';
|
|
1370
|
+
domStream.style.visibility = 'hidden';
|
|
1371
|
+
domCesium.style.visibility = 'hidden';
|
|
1372
|
+
// 更新地图
|
|
1373
|
+
mapType = floor.mapType, msFid = floor.msFid, msBid = floor.msBid;
|
|
1374
|
+
if (mapType) {
|
|
1375
|
+
_context5.n = 3;
|
|
1376
|
+
break;
|
|
1377
|
+
}
|
|
1378
|
+
// return
|
|
1379
|
+
//即地图不存在
|
|
1380
|
+
mapBaseDataRef.current = {
|
|
1381
|
+
mapType: -1,
|
|
1382
|
+
mapMode: ''
|
|
1383
|
+
};
|
|
1384
|
+
mapCurrentRef.current = null;
|
|
1385
|
+
setTipMessage(textLocale.noMap || '暂无地图');
|
|
1386
|
+
typeof changeMap === 'function' && changeMap(floor, false);
|
|
1387
|
+
setLoading(false);
|
|
1388
|
+
return _context5.a(2, true);
|
|
1389
|
+
case 3:
|
|
1390
|
+
// 判断使用什么类型的引擎
|
|
1391
|
+
mapEngineExtData = '';
|
|
1392
|
+
if (mapType === MAP_TYPE.scene && floor.mapOrigin) {
|
|
1393
|
+
try {
|
|
1394
|
+
mapOrigin = JSON.parse(floor.mapOrigin);
|
|
1395
|
+
mapEngineExtData = (_mapOrigin$mapEngine = mapOrigin === null || mapOrigin === void 0 ? void 0 : mapOrigin.mapEngine) !== null && _mapOrigin$mapEngine !== void 0 ? _mapOrigin$mapEngine : '';
|
|
1396
|
+
} catch (error) {
|
|
1397
|
+
LogError('get mapEngineExtData err:', error);
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
if (mapType === MAP_TYPE.model) {
|
|
1401
|
+
mapEngineExtData = modelUrl.current;
|
|
1402
|
+
}
|
|
1403
|
+
_context5.n = 4;
|
|
1404
|
+
return getMapEngine(mapType, mapEngineExtData);
|
|
1405
|
+
case 4:
|
|
1406
|
+
mapEngine = mapEngineRef.current = _context5.v;
|
|
1407
|
+
LogInfo('楼层信息:', floor, '使用地图引擎:', mapEngine);
|
|
1408
|
+
if (mapEngine === '2D') {
|
|
1409
|
+
dom2D.style.zIndex = -1;
|
|
1410
|
+
dom2D.style.visibility = 'visible';
|
|
1411
|
+
} else if (mapEngine === '3D') {
|
|
1412
|
+
dom3D.style.zIndex = -1;
|
|
1413
|
+
dom3D.style.visibility = 'visible';
|
|
1414
|
+
} else if (mapEngine === 'cesium') {
|
|
1415
|
+
domCesium.style.zIndex = -1;
|
|
1416
|
+
domCesium.style.visibility = 'visible';
|
|
1417
|
+
} else if (mapEngine === 'stream') {
|
|
1418
|
+
domStream.style.zIndex = -1;
|
|
1419
|
+
domStream.style.visibility = 'visible';
|
|
1420
|
+
}
|
|
1421
|
+
// 场景,但无地图服务器IP,不执行
|
|
1422
|
+
if (!(mapType === MAP_TYPE.scene && !configOption.mapServerIp)) {
|
|
1423
|
+
_context5.n = 5;
|
|
1424
|
+
break;
|
|
1425
|
+
}
|
|
1426
|
+
typeof changeMap === 'function' && changeMap(floor, false);
|
|
1427
|
+
setLoading(false);
|
|
1428
|
+
return _context5.a(2, false);
|
|
1429
|
+
case 5:
|
|
1430
|
+
// 仅有场景情况下是2d
|
|
1431
|
+
is3D = mapType === MAP_TYPE.scene || mapType === MAP_TYPE.stream;
|
|
1432
|
+
setMapIs2D(!is3D);
|
|
1433
|
+
// 引擎创建, 若失败,不执行直接返回
|
|
1434
|
+
result = null;
|
|
1435
|
+
_context5.n = 6;
|
|
1436
|
+
return _createMapObj(mapType, function () {
|
|
1437
|
+
//地图控件设置
|
|
1438
|
+
_mapBaseSet(mapCurrentRef.current, mapType, function () {
|
|
1439
|
+
// 画地图
|
|
1440
|
+
_drawMap(mapType, msBid, msFid, is3D, floor); // 首次创建地图对象是在此执行创建地图,then执行时可能还拿不到
|
|
1441
|
+
});
|
|
1442
|
+
}).then(function () {
|
|
1443
|
+
result = true;
|
|
1444
|
+
}).catch(function () {
|
|
1445
|
+
result = false;
|
|
1446
|
+
});
|
|
1447
|
+
case 6:
|
|
1448
|
+
if (result) {
|
|
1449
|
+
_context5.n = 7;
|
|
1450
|
+
break;
|
|
1451
|
+
}
|
|
1452
|
+
typeof changeMap === 'function' && changeMap(floor, false);
|
|
1453
|
+
setLoading(false);
|
|
1454
|
+
return _context5.a(2, false);
|
|
1455
|
+
case 7:
|
|
1456
|
+
setTipMessage('');
|
|
1457
|
+
|
|
1458
|
+
// gis和平面固定200,cesium假进度条,three真实,stream无进度条
|
|
1459
|
+
duration = 200;
|
|
1460
|
+
if (mapType === MAP_TYPE.scene) {
|
|
1461
|
+
duration = mapEngine === 'cesium' ? 5000 : null;
|
|
1462
|
+
} else if (mapType === MAP_TYPE.stream) {
|
|
1463
|
+
duration = null;
|
|
1464
|
+
}
|
|
1465
|
+
if (duration) {
|
|
1466
|
+
loadingTImer = setTimeout(function () {
|
|
1467
|
+
setLoading(false);
|
|
1468
|
+
window.clearTimeout(loadingTImer);
|
|
1469
|
+
}, duration);
|
|
1470
|
+
}
|
|
1471
|
+
return _context5.a(2, true);
|
|
1472
|
+
case 8:
|
|
1473
|
+
return _context5.a(2);
|
|
1474
|
+
}
|
|
1475
|
+
}, _callee5);
|
|
1476
|
+
}));
|
|
1477
|
+
return function _updateMap(_x1) {
|
|
1478
|
+
return _ref5.apply(this, arguments);
|
|
1479
|
+
};
|
|
1480
|
+
}();
|
|
1481
|
+
|
|
1482
|
+
/**
|
|
1483
|
+
* 销毁地图
|
|
1484
|
+
*/
|
|
1485
|
+
var destoryMap = function destoryMap() {
|
|
1486
|
+
_this.deleteHandelGroup();
|
|
1487
|
+
};
|
|
1488
|
+
//#endregion
|
|
1489
|
+
|
|
1490
|
+
//#region 总线事件
|
|
1491
|
+
/**
|
|
1492
|
+
* @method 数据总线挂载数据 将外部传入的数据全部挂载到数据总线
|
|
1493
|
+
*/
|
|
1494
|
+
var _initDataBus = function _initDataBus() {
|
|
1495
|
+
// 点位点击事件处理
|
|
1496
|
+
var useProxy = props.useProxy,
|
|
1497
|
+
configOption = props.configOption;
|
|
1498
|
+
var isServerIp = configOption.isServerIp;
|
|
1499
|
+
var emptyFun = function emptyFun() {};
|
|
1500
|
+
// 代理配置
|
|
1501
|
+
dataBusInstance.updateData(DATAS_BUS_KEY.useProxy, useProxy);
|
|
1502
|
+
dataBusInstance.updateData(DATAS_BUS_KEY.isServerIp, isServerIp);
|
|
1503
|
+
};
|
|
1504
|
+
|
|
1505
|
+
/**
|
|
1506
|
+
* @method 订阅事件-监听可视域改变
|
|
1507
|
+
* @param {String}
|
|
1508
|
+
*/
|
|
1509
|
+
var _watchChangeFOV = function _watchChangeFOV() {
|
|
1510
|
+
eventBus.emit(EVENTS_BUS_KEY.updateFOV);
|
|
1511
|
+
};
|
|
1512
|
+
//#endregion
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* @method 订阅事件-监听楼层切换
|
|
1516
|
+
* @param {String}
|
|
1517
|
+
*/
|
|
1518
|
+
var _watchChangeFloor = function _watchChangeFloor(mapInfo) {
|
|
1519
|
+
setLoadScript(true);
|
|
1520
|
+
if (independentMode && mapInfo && Object.keys(mapInfo).length !== 0) {
|
|
1521
|
+
_updateMap(mapInfo);
|
|
1522
|
+
return;
|
|
1523
|
+
}
|
|
1524
|
+
eventBusInstance.subscribleEvent(EVENTS_BUS_KEY.updateCurFloorCode, _updateMap);
|
|
1525
|
+
};
|
|
1526
|
+
|
|
1527
|
+
/**
|
|
1528
|
+
* @method 取消订阅
|
|
1529
|
+
*/
|
|
1530
|
+
var _cancelSub = function _cancelSub() {
|
|
1531
|
+
eventBusInstance.cancelSubcrible(EVENTS_BUS_KEY.updateCurFloorCode, _updateMap);
|
|
1532
|
+
};
|
|
1533
|
+
//#endregion
|
|
1534
|
+
|
|
1535
|
+
/**
|
|
1536
|
+
* @method 点位名称显示方式
|
|
1537
|
+
*/
|
|
1538
|
+
var _watchPointNameStyle = function _watchPointNameStyle() {
|
|
1539
|
+
var pointList = dataBusInstance.getData(DATAS_BUS_KEY.pointDrawList);
|
|
1540
|
+
if (pointList && pointList.length) {
|
|
1541
|
+
drawPointInstance.updateNameShowType(PointLabelStatus);
|
|
1542
|
+
}
|
|
1543
|
+
};
|
|
1544
|
+
//#endregion
|
|
1545
|
+
|
|
1546
|
+
//#region 初始化
|
|
1547
|
+
/**
|
|
1548
|
+
* @method 禁用鼠标右键菜单
|
|
1549
|
+
*/
|
|
1550
|
+
var _preventDefaultRightClick = function _preventDefaultRightClick(e) {
|
|
1551
|
+
e.preventDefault();
|
|
1552
|
+
};
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
* @method token处理
|
|
1556
|
+
*/
|
|
1557
|
+
var _saveToken = function _saveToken() {
|
|
1558
|
+
var token = configOption.token,
|
|
1559
|
+
mapServerIp = configOption.mapServerIp,
|
|
1560
|
+
isServerIp = configOption.isServerIp,
|
|
1561
|
+
isPortOnes = configOption.isPortOnes,
|
|
1562
|
+
swPort = configOption.swPort;
|
|
1563
|
+
if (!independentMode && (!token || !isServerIp)) {
|
|
1564
|
+
LogError('非独立模式需要传入token, isServerIp');
|
|
1565
|
+
return false;
|
|
1566
|
+
}
|
|
1567
|
+
// usercode用于GPS点位加载及聚挡相机点位加载
|
|
1568
|
+
var UserCode = '';
|
|
1569
|
+
if (pointFromMapProps && pointFromMapProps.userCode) {
|
|
1570
|
+
UserCode = pointFromMapProps.userCode;
|
|
1571
|
+
}
|
|
1572
|
+
// 存入session中
|
|
1573
|
+
var useProxy = props.useProxy;
|
|
1574
|
+
var pData = _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, DATAS_BUS_KEY.token, token), DATAS_BUS_KEY.isServerIp, isServerIp), DATAS_BUS_KEY.mapServerIp, mapServerIp), DATAS_BUS_KEY.swPort, swPort), DATAS_BUS_KEY.userCode, UserCode), DATAS_BUS_KEY.isPortOnes, isPortOnes), DATAS_BUS_KEY.useProxy, useProxy);
|
|
1575
|
+
setMapEnv(pData);
|
|
1576
|
+
// 存入数据总线中
|
|
1577
|
+
dataBusInstance.updateData(DATAS_BUS_KEY.token, token);
|
|
1578
|
+
dataBusInstance.updateData(DATAS_BUS_KEY.mapServerIp, mapServerIp);
|
|
1579
|
+
dataBusInstance.updateData(DATAS_BUS_KEY.userCode, UserCode);
|
|
1580
|
+
return true;
|
|
1581
|
+
};
|
|
1582
|
+
|
|
1583
|
+
/**
|
|
1584
|
+
* @method 初始化调用
|
|
1585
|
+
*/
|
|
1586
|
+
useEffect(function () {
|
|
1587
|
+
var isToken = _saveToken();
|
|
1588
|
+
if (isToken) {
|
|
1589
|
+
setTimeout(function () {
|
|
1590
|
+
_initDataBus();
|
|
1591
|
+
setFlag(flag + 1);
|
|
1592
|
+
});
|
|
1593
|
+
// 禁用鼠标右键菜单
|
|
1594
|
+
document.addEventListener('contextmenu', _preventDefaultRightClick);
|
|
1595
|
+
}
|
|
1596
|
+
return function () {
|
|
1597
|
+
// 事件总线销毁
|
|
1598
|
+
eventBusInstance.destory();
|
|
1599
|
+
// 数据总线销毁
|
|
1600
|
+
dataBusInstance.destory();
|
|
1601
|
+
// 地图清空
|
|
1602
|
+
// 清除当前展示的地图,及地图上显示的事物
|
|
1603
|
+
deleteHandelGroup();
|
|
1604
|
+
};
|
|
1605
|
+
}, []);
|
|
1606
|
+
|
|
1607
|
+
// 重新挂载事件 以达到更新作用域目的
|
|
1608
|
+
useEffect(function () {
|
|
1609
|
+
if (!flag) {
|
|
1610
|
+
return;
|
|
1611
|
+
}
|
|
1612
|
+
_watchChangeFloor(mapInfo);
|
|
1613
|
+
return function () {
|
|
1614
|
+
_cancelSub();
|
|
1615
|
+
};
|
|
1616
|
+
}, [flag, mapInfo]);
|
|
1617
|
+
useEffect(function () {
|
|
1618
|
+
if (props.alwaysShowPointLabel !== PointLabelStatus) {
|
|
1619
|
+
setPointLabelStatus(props.alwaysShowPointLabel);
|
|
1620
|
+
}
|
|
1621
|
+
}, [props]);
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* @method 监听-点位名称显示方式
|
|
1625
|
+
*/
|
|
1626
|
+
useEffect(function () {
|
|
1627
|
+
_watchPointNameStyle();
|
|
1628
|
+
}, [PointLabelStatus]);
|
|
1629
|
+
|
|
1630
|
+
/**
|
|
1631
|
+
* 监听加载
|
|
1632
|
+
*/
|
|
1633
|
+
function loadSub() {
|
|
1634
|
+
setFlag(flag + 1);
|
|
1635
|
+
}
|
|
1636
|
+
//#endregion
|
|
1637
|
+
|
|
1638
|
+
//#region 一些dome渲染
|
|
1639
|
+
/**
|
|
1640
|
+
* @method 聚合面板列表
|
|
1641
|
+
*/
|
|
1642
|
+
var _renderClusterContent = function _renderClusterContent() {
|
|
1643
|
+
var emptyFun = function emptyFun() {};
|
|
1644
|
+
var _pointClickRef$curren2 = pointClickRef.current,
|
|
1645
|
+
_pointClickRef$curren3 = _pointClickRef$curren2.dbcEvent,
|
|
1646
|
+
dbcEvent = _pointClickRef$curren3 === void 0 ? emptyFun : _pointClickRef$curren3,
|
|
1647
|
+
_pointClickRef$curren4 = _pointClickRef$curren2.clickEvent,
|
|
1648
|
+
clickEvent = _pointClickRef$curren4 === void 0 ? emptyFun : _pointClickRef$curren4;
|
|
1649
|
+
// 超100 执行分页,50条一页
|
|
1650
|
+
var total = curClickCluster.length;
|
|
1651
|
+
var listData = [];
|
|
1652
|
+
var showPage = false;
|
|
1653
|
+
if (total > clusterPageConfig.maxLimit) {
|
|
1654
|
+
showPage = true;
|
|
1655
|
+
listData = curClickCluster.slice((clusterCuPage - 1) * clusterPageConfig.size, clusterCuPage * clusterPageConfig.size);
|
|
1656
|
+
} else {
|
|
1657
|
+
listData = curClickCluster;
|
|
1658
|
+
}
|
|
1659
|
+
var dom = listData.map(function (camera) {
|
|
1660
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1661
|
+
key: camera.deviceCode,
|
|
1662
|
+
title: camera.name,
|
|
1663
|
+
className: "zy-clusterInfo-item",
|
|
1664
|
+
onClick: function onClick(e) {
|
|
1665
|
+
clickEvent(e, camera, true);
|
|
1666
|
+
},
|
|
1667
|
+
onDoubleClick: function onDoubleClick(e) {
|
|
1668
|
+
dbcEvent(e, camera, true);
|
|
1669
|
+
}
|
|
1670
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
1671
|
+
src: camera.iconPath || defaultIconImg,
|
|
1672
|
+
style: {
|
|
1673
|
+
transform: "rotate(".concat(camera.rotationAngle, "deg)")
|
|
1674
|
+
},
|
|
1675
|
+
alt: "iconPath"
|
|
1676
|
+
}), /*#__PURE__*/React.createElement("div", null, camera.name));
|
|
1677
|
+
});
|
|
1678
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1679
|
+
className: "zy-clusterInfo-content"
|
|
1680
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1681
|
+
className: "list-container",
|
|
1682
|
+
"data-long": showPage
|
|
1683
|
+
}, dom), showPage && /*#__PURE__*/React.createElement(UPagination, {
|
|
1684
|
+
simple: true,
|
|
1685
|
+
center: true,
|
|
1686
|
+
current: clusterCuPage,
|
|
1687
|
+
pageSize: clusterPageConfig.size,
|
|
1688
|
+
onChange: _pageCluster,
|
|
1689
|
+
total: total
|
|
1690
|
+
}));
|
|
1691
|
+
};
|
|
1692
|
+
//#endregion
|
|
1693
|
+
|
|
1694
|
+
//#region 父组件暴露的方法-地图本身
|
|
1695
|
+
/**
|
|
1696
|
+
* @method 设置地图中心点 根据经纬度
|
|
1697
|
+
* @param {String} lng 经度
|
|
1698
|
+
* @param {String} lat 纬度
|
|
1699
|
+
*/
|
|
1700
|
+
var _setMapCenter = function _setMapCenter(lng, lat, height) {
|
|
1701
|
+
var mapObj = mapCurrentRef.current;
|
|
1702
|
+
if (!mapObj) {
|
|
1703
|
+
return false;
|
|
1704
|
+
}
|
|
1705
|
+
var mapType = mapBaseDataRef.current.mapType;
|
|
1706
|
+
if (mapType === MAP_TYPE.plane || mapType === MAP_TYPE.gis) {
|
|
1707
|
+
//平面、Gis
|
|
1708
|
+
mapObj.setZoom(18);
|
|
1709
|
+
mapObj.setCenter({
|
|
1710
|
+
lng: lng,
|
|
1711
|
+
lat: lat
|
|
1712
|
+
});
|
|
1713
|
+
} else if (mapType === MAP_TYPE.scene || mapType === MAP_TYPE.stream) {
|
|
1714
|
+
mapObj.setViewtoTarget({
|
|
1715
|
+
center: {
|
|
1716
|
+
lng: lng,
|
|
1717
|
+
lat: lat,
|
|
1718
|
+
height: height
|
|
1719
|
+
},
|
|
1720
|
+
offset: {
|
|
1721
|
+
heading: 0,
|
|
1722
|
+
pitch: -45,
|
|
1723
|
+
range: 100
|
|
1724
|
+
}
|
|
1725
|
+
}, {
|
|
1726
|
+
duration: 1
|
|
1727
|
+
});
|
|
1728
|
+
}
|
|
1729
|
+
return true;
|
|
1730
|
+
};
|
|
1731
|
+
var _getCurrentShowMapType = function _getCurrentShowMapType(callback) {
|
|
1732
|
+
callback(mapCurrentRef.current);
|
|
1733
|
+
};
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* @method 加载指定的地图
|
|
1737
|
+
* @param {String} 地图id
|
|
1738
|
+
* @return -1 失败 | 0 加载新地图 | 1 显示原地图
|
|
1739
|
+
*/
|
|
1740
|
+
var _loadMapByMapId = function _loadMapByMapId(areaCode, floorCode) {
|
|
1741
|
+
if (areaCode === null || areaCode === undefined || floorCode === null || floorCode === undefined) {
|
|
1742
|
+
// 不可用非空判断 root是0
|
|
1743
|
+
LogWarning('未传入地图id');
|
|
1744
|
+
return -1;
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
// 判断是否在当前地图图层
|
|
1748
|
+
var currentFloor = dataBusInstance.getData(DATAS_BUS_KEY.currentFloor);
|
|
1749
|
+
if (currentFloor && currentFloor.code === floorCode && !tipMessage) {
|
|
1750
|
+
// 在当前地图
|
|
1751
|
+
// 判断是否root且不渲染的情况
|
|
1752
|
+
return 1;
|
|
1753
|
+
} else {
|
|
1754
|
+
// 2. 切到新的地图
|
|
1755
|
+
mapSelectRef.current && mapSelectRef.current.changeSelectMapByDev(areaCode, floorCode);
|
|
1756
|
+
return 0;
|
|
1757
|
+
}
|
|
1758
|
+
};
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
* @method 外部调用-返回默认视角
|
|
1762
|
+
*/
|
|
1763
|
+
var _returnDefaultView = function _returnDefaultView() {
|
|
1764
|
+
var mapCurrent = mapCurrentRef.current;
|
|
1765
|
+
if (!mapCurrent) {
|
|
1766
|
+
LogWarning('当前无地图对象');
|
|
1767
|
+
return;
|
|
1768
|
+
}
|
|
1769
|
+
var _mapBaseDataRef$curre2 = mapBaseDataRef.current,
|
|
1770
|
+
mapMode = _mapBaseDataRef$curre2.mapMode,
|
|
1771
|
+
viewInfo = _mapBaseDataRef$curre2.viewInfo,
|
|
1772
|
+
floor = _mapBaseDataRef$curre2.floor;
|
|
1773
|
+
var mapOrigin = floor.mapOrigin,
|
|
1774
|
+
mapType = floor.mapType;
|
|
1775
|
+
if (mapMode === MAP_MODE.three) {
|
|
1776
|
+
// 如果是场景,返回场景视角
|
|
1777
|
+
realMapControlRef.current && realMapControlRef.current.jumpScreenView(0.5, viewInfo);
|
|
1778
|
+
} else if (mapMode === MAP_MODE.two) {
|
|
1779
|
+
// 平面 gis时
|
|
1780
|
+
mapCurrent.setCenter(viewCenter[mapType].center);
|
|
1781
|
+
mapCurrent.setZoom(viewCenter[mapType].zoom);
|
|
1782
|
+
}
|
|
1783
|
+
//返回默认视角点击事件回调
|
|
1784
|
+
var onViewClick = canSetView.onViewClick;
|
|
1785
|
+
if (onViewClick && typeof onViewClick === 'function') {
|
|
1786
|
+
onViewClick(mapCurrent);
|
|
1787
|
+
}
|
|
1788
|
+
};
|
|
1789
|
+
//#endregion
|
|
1790
|
+
|
|
1791
|
+
//#region 父组件暴露的方法-相机相关
|
|
1792
|
+
/**
|
|
1793
|
+
* @method 设置相机为中心点位
|
|
1794
|
+
* @param {String}
|
|
1795
|
+
*/
|
|
1796
|
+
var _setLocation = function _setLocation(drawData) {
|
|
1797
|
+
var pointLayer = drawData.pointLayer,
|
|
1798
|
+
drawId = drawData.drawId,
|
|
1799
|
+
modelId = drawData.modelId,
|
|
1800
|
+
lng = drawData.coordinateX,
|
|
1801
|
+
lat = drawData.coordinateY,
|
|
1802
|
+
height = drawData.coordinateZ;
|
|
1803
|
+
var mapObj = mapCurrentRef.current;
|
|
1804
|
+
if (!mapObj) {
|
|
1805
|
+
LogError('相机定位失败,没有找到地图对象');
|
|
1806
|
+
return;
|
|
1807
|
+
}
|
|
1808
|
+
var mapType = mapBaseDataRef.current.mapType;
|
|
1809
|
+
if (mapType === MAP_TYPE.plane || mapType === MAP_TYPE.gis) {
|
|
1810
|
+
mapObj.setZoom(18);
|
|
1811
|
+
mapObj.setCenter({
|
|
1812
|
+
lng: lng,
|
|
1813
|
+
lat: lat
|
|
1814
|
+
});
|
|
1815
|
+
// 运行完成释放缓存下来的callback
|
|
1816
|
+
onLocateByCameraCall.current(drawData);
|
|
1817
|
+
onLocateByCameraCall.current = null;
|
|
1818
|
+
} else if (mapType === MAP_TYPE.scene) {
|
|
1819
|
+
var newH = height;
|
|
1820
|
+
// 如果显示了轨迹可以直接进行定位,相机会全量显示
|
|
1821
|
+
if (trackRef.current.hasTrack()) {
|
|
1822
|
+
var modelInfo = realMapControlRef.current.findModel(modelId);
|
|
1823
|
+
newH += (modelInfo.floor - 1) * MAP_PULL_HEIGHT;
|
|
1824
|
+
mapObj.setViewtoTarget({
|
|
1825
|
+
center: {
|
|
1826
|
+
lng: lng,
|
|
1827
|
+
lat: lat,
|
|
1828
|
+
height: newH
|
|
1829
|
+
},
|
|
1830
|
+
offset: {
|
|
1831
|
+
heading: 0,
|
|
1832
|
+
pitch: -45,
|
|
1833
|
+
range: 100
|
|
1834
|
+
}
|
|
1835
|
+
}, {
|
|
1836
|
+
duration: 1,
|
|
1837
|
+
complete: function complete() {
|
|
1838
|
+
// 运行完成释放缓存下来的callback
|
|
1839
|
+
onLocateByCameraCall.current(drawData);
|
|
1840
|
+
onLocateByCameraCall.current = null;
|
|
1841
|
+
}
|
|
1842
|
+
});
|
|
1843
|
+
return;
|
|
1844
|
+
}
|
|
1845
|
+
// 单显示了地图需要切换到指定楼层,防止相机被地图显隐控制
|
|
1846
|
+
realMapControlRef.current.showModel(modelId, function () {
|
|
1847
|
+
// 场景地图点位定位
|
|
1848
|
+
if (isPullBuild.current && isPullBuild.current[modelId]) {
|
|
1849
|
+
newH += (isPullBuild.current[modelId].floor - 1) * MAP_PULL_HEIGHT;
|
|
1850
|
+
}
|
|
1851
|
+
mapObj.setViewtoTarget({
|
|
1852
|
+
center: {
|
|
1853
|
+
lng: lng,
|
|
1854
|
+
lat: lat,
|
|
1855
|
+
height: newH
|
|
1856
|
+
},
|
|
1857
|
+
offset: {
|
|
1858
|
+
heading: 0,
|
|
1859
|
+
pitch: -45,
|
|
1860
|
+
range: 100
|
|
1861
|
+
}
|
|
1862
|
+
}, {
|
|
1863
|
+
duration: 1,
|
|
1864
|
+
complete: function complete() {
|
|
1865
|
+
// 运行完成释放缓存下来的callback
|
|
1866
|
+
onLocateByCameraCall.current(drawData);
|
|
1867
|
+
onLocateByCameraCall.current = null;
|
|
1868
|
+
}
|
|
1869
|
+
});
|
|
1870
|
+
});
|
|
1871
|
+
} else if (mapType === MAP_TYPE.stream) {
|
|
1872
|
+
// 如果显示了轨迹可以直接进行定位,相机会全量显示
|
|
1873
|
+
if (trackRef.current.hasTrack()) {
|
|
1874
|
+
mapObj.orientModel(pointLayer, drawId, {
|
|
1875
|
+
duration: 1,
|
|
1876
|
+
offset: {
|
|
1877
|
+
x: 0,
|
|
1878
|
+
y: 500,
|
|
1879
|
+
z: 1000
|
|
1880
|
+
},
|
|
1881
|
+
complete: function complete() {
|
|
1882
|
+
// 运行完成释放缓存下来的callback
|
|
1883
|
+
onLocateByCameraCall.current(drawData);
|
|
1884
|
+
onLocateByCameraCall.current = null;
|
|
1885
|
+
}
|
|
1886
|
+
});
|
|
1887
|
+
} else {
|
|
1888
|
+
realMapControlRef.current.showModel(modelId, function () {
|
|
1889
|
+
mapObj.orientModel(pointLayer, drawId, {
|
|
1890
|
+
duration: 1,
|
|
1891
|
+
offset: {
|
|
1892
|
+
x: 0,
|
|
1893
|
+
y: 500,
|
|
1894
|
+
z: 1000
|
|
1895
|
+
},
|
|
1896
|
+
complete: function complete() {
|
|
1897
|
+
// 运行完成释放缓存下来的callback
|
|
1898
|
+
onLocateByCameraCall.current(drawData);
|
|
1899
|
+
onLocateByCameraCall.current = null;
|
|
1900
|
+
}
|
|
1901
|
+
});
|
|
1902
|
+
});
|
|
1903
|
+
}
|
|
1904
|
+
}
|
|
1905
|
+
};
|
|
1906
|
+
|
|
1907
|
+
/**
|
|
1908
|
+
* @method 相机定位
|
|
1909
|
+
* @param {Object} camData 相机数据
|
|
1910
|
+
*/
|
|
1911
|
+
var _onLocateByCamera = function onLocateByCamera(camData, callback) {
|
|
1912
|
+
if (!camData || !camData.id) {
|
|
1913
|
+
return;
|
|
1914
|
+
}
|
|
1915
|
+
// 查询相机绑定的地图信息
|
|
1916
|
+
var deviceCode = camData.deviceCode,
|
|
1917
|
+
floorCode = camData.floorCode,
|
|
1918
|
+
areaCode = camData.areaCode;
|
|
1919
|
+
// 判断是否在当前地图图层
|
|
1920
|
+
var currentFloor = dataBusInstance.getData(DATAS_BUS_KEY.currentFloor);
|
|
1921
|
+
// 缓存一份callback
|
|
1922
|
+
onLocateByCameraCall.current = callback;
|
|
1923
|
+
// 如果是独立模式,直接定位当前地图相机
|
|
1924
|
+
if (independentMode) {
|
|
1925
|
+
// 当前点位是否隐藏
|
|
1926
|
+
var points = dataBusInstance.getData(DATAS_BUS_KEY.pointDrawList) || [];
|
|
1927
|
+
var pTemp = points.find(function (item) {
|
|
1928
|
+
return item.deviceCode === deviceCode;
|
|
1929
|
+
});
|
|
1930
|
+
if (!pTemp) {
|
|
1931
|
+
return;
|
|
1932
|
+
}
|
|
1933
|
+
_setLocation(pTemp);
|
|
1934
|
+
return;
|
|
1935
|
+
}
|
|
1936
|
+
// 定位的点在当前地图
|
|
1937
|
+
if (currentFloor && currentFloor.code === floorCode) {
|
|
1938
|
+
// 当前点位是否隐藏
|
|
1939
|
+
var _points = dataBusInstance.getData(DATAS_BUS_KEY.pointDrawList) || [];
|
|
1940
|
+
var _pTemp = _points.find(function (item) {
|
|
1941
|
+
return item.deviceCode === deviceCode;
|
|
1942
|
+
});
|
|
1943
|
+
if (!_pTemp) {
|
|
1944
|
+
// 1.1 在当前地图,但是没有找到点位
|
|
1945
|
+
return;
|
|
1946
|
+
}
|
|
1947
|
+
_setLocation(_pTemp);
|
|
1948
|
+
} else {
|
|
1949
|
+
drawPointInstance.updateBaseData('localPointCode', deviceCode);
|
|
1950
|
+
// 地图切换
|
|
1951
|
+
mapSelectRef.current && mapSelectRef.current.changeSelectMapByDev(areaCode, floorCode);
|
|
1952
|
+
}
|
|
1953
|
+
};
|
|
1954
|
+
|
|
1955
|
+
/**
|
|
1956
|
+
* 定位标记
|
|
1957
|
+
*/
|
|
1958
|
+
var showDevRed = function showDevRed(id, coordinateX, coordinateY) {
|
|
1959
|
+
drawPointInstance.showDevRed(id, coordinateX, coordinateY);
|
|
1960
|
+
};
|
|
1961
|
+
|
|
1962
|
+
/**
|
|
1963
|
+
* @method 绘制点位
|
|
1964
|
+
* @param {pointList} 点位列表
|
|
1965
|
+
* @param {useLabel} 名称绘制方式 true为点位标记addOverlay绘制, false为dom绘制
|
|
1966
|
+
* @param {pointLoadType} 点位加载类型
|
|
1967
|
+
* @param {pointLoadTypeValue} 点位加载类型传参
|
|
1968
|
+
* @param {isRedraw} 点位是否重绘
|
|
1969
|
+
* @param {clusterInfo} 聚合信息列表,多类聚合可使用
|
|
1970
|
+
* @param {pointClick} 点位单击事件
|
|
1971
|
+
* @param {pointDbc} 点位单击事件
|
|
1972
|
+
* @param {fullFillOfName} 点位名称显示长度是否自适应,默认最大100px
|
|
1973
|
+
* @param {styleByDistance} 3d点位距离渐变样式
|
|
1974
|
+
*/
|
|
1975
|
+
var _drawPoints = function _drawPoints(drawPointParams) {
|
|
1976
|
+
var pointList = drawPointParams.pointList,
|
|
1977
|
+
_drawPointParams$isRe = drawPointParams.isRedraw,
|
|
1978
|
+
isRedraw = _drawPointParams$isRe === void 0 ? false : _drawPointParams$isRe,
|
|
1979
|
+
pointClick = drawPointParams.pointClick,
|
|
1980
|
+
pointDbc = drawPointParams.pointDbc;
|
|
1981
|
+
var mapType = mapBaseDataRef.current.mapType;
|
|
1982
|
+
pointClickRef.current = {
|
|
1983
|
+
clickEvent: null,
|
|
1984
|
+
dbcEvent: null
|
|
1985
|
+
};
|
|
1986
|
+
var innerPoints = [];
|
|
1987
|
+
// 如果是云渲染还需要合并内置模型与设备绑定
|
|
1988
|
+
if (mapType === MAP_TYPE.stream) {
|
|
1989
|
+
// TODO 过滤非内置相机
|
|
1990
|
+
var result = pointList.reduce(function (r, o) {
|
|
1991
|
+
r[o.modelId.includes(':') ? 'innerPoints' : 'points'].push(o);
|
|
1992
|
+
return r;
|
|
1993
|
+
}, {
|
|
1994
|
+
innerPoints: [],
|
|
1995
|
+
points: []
|
|
1996
|
+
});
|
|
1997
|
+
innerPoints = result.innerPoints;
|
|
1998
|
+
}
|
|
1999
|
+
if (mapType === MAP_TYPE.stream) {
|
|
2000
|
+
mapControl.getMapControl().setAllDevModelList(innerPoints);
|
|
2001
|
+
}
|
|
2002
|
+
// 绘制点位
|
|
2003
|
+
drawPointInstance.drawPointsOnMap(drawPointParams, isPullBuild.current);
|
|
2004
|
+
|
|
2005
|
+
// 更新当前的点位点击事件
|
|
2006
|
+
pointClickRef.current = {
|
|
2007
|
+
clickEvent: pointClick || null,
|
|
2008
|
+
dbcEvent: pointDbc || null
|
|
2009
|
+
};
|
|
2010
|
+
if (isRedraw) {
|
|
2011
|
+
_deleteClusterPop();
|
|
2012
|
+
}
|
|
2013
|
+
|
|
2014
|
+
// 绘制聚合面板
|
|
2015
|
+
_createClusterPop();
|
|
2016
|
+
};
|
|
2017
|
+
|
|
2018
|
+
/**
|
|
2019
|
+
* @method 获取相机在地图的位置
|
|
2020
|
+
* @param {String} code 相机code
|
|
2021
|
+
*/
|
|
2022
|
+
var getPointPosition = function getPointPosition(code) {
|
|
2023
|
+
if (!code) return null;
|
|
2024
|
+
// 位置信息
|
|
2025
|
+
var data = drawPointInstance.getPointPosition(code);
|
|
2026
|
+
if (!data) return null;
|
|
2027
|
+
var point = data.point,
|
|
2028
|
+
position = data.position;
|
|
2029
|
+
var modelId = point.modelId,
|
|
2030
|
+
vis = point.vis;
|
|
2031
|
+
var height = position.height;
|
|
2032
|
+
// 如果是拉开状态直接返回拉开高度
|
|
2033
|
+
if (trackRef.current.hasTrack()) {
|
|
2034
|
+
var modelInfo = realMapControlRef.current.findModel(modelId);
|
|
2035
|
+
if (modelInfo) {
|
|
2036
|
+
height += (modelInfo.floor - 1) * MAP_PULL_HEIGHT;
|
|
2037
|
+
}
|
|
2038
|
+
} else if (isPullBuild.current && point.modelId) {
|
|
2039
|
+
var _modelInfo = isPullBuild.current[point.modelId] || {
|
|
2040
|
+
floor: 1
|
|
2041
|
+
};
|
|
2042
|
+
height += ((_modelInfo.floor || 1) - 1) * MAP_PULL_HEIGHT;
|
|
2043
|
+
}
|
|
2044
|
+
// return { ...position, height, show: vis ?? true }
|
|
2045
|
+
return _objectSpread(_objectSpread({}, position), {}, {
|
|
2046
|
+
height: height,
|
|
2047
|
+
show: vis === undefined ? true : vis
|
|
2048
|
+
});
|
|
2049
|
+
};
|
|
2050
|
+
|
|
2051
|
+
/**
|
|
2052
|
+
* @method 外部调用-相机显隐
|
|
2053
|
+
* @param {Array} 隐藏的多元条件
|
|
2054
|
+
* @param {String} key 隐藏状态字段的key 如devType 隐藏字段是是设备类型
|
|
2055
|
+
* @param {Array} hideValues 隐藏状态字段的key 如 [9013, 110] 隐藏报警设备,摄像机(仅举例,不代表报警设备真实devType是9013)
|
|
2056
|
+
*/
|
|
2057
|
+
var changePointLayerVis = function changePointLayerVis(hideCondition) {
|
|
2058
|
+
drawPointInstance.changePointLayerVis(hideMapLayerByUNW.current, hideCondition);
|
|
2059
|
+
};
|
|
2060
|
+
|
|
2061
|
+
/**
|
|
2062
|
+
* 删除点位
|
|
2063
|
+
*/
|
|
2064
|
+
var _delPoint = function _delPoint(code) {
|
|
2065
|
+
if (!code) return;
|
|
2066
|
+
drawPointInstance.delPoint(code);
|
|
2067
|
+
};
|
|
2068
|
+
var updatePoint = function updatePoint(code) {
|
|
2069
|
+
if (!code) return;
|
|
2070
|
+
drawPointInstance.updatePoint(code, isPullBuild.current);
|
|
2071
|
+
};
|
|
2072
|
+
|
|
2073
|
+
/**
|
|
2074
|
+
* 获取真实显示的高度
|
|
2075
|
+
* @param {*} modelId
|
|
2076
|
+
*/
|
|
2077
|
+
var changeHeight2Truth = function changeHeight2Truth(height, modelId) {
|
|
2078
|
+
var isByMouseXY = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
2079
|
+
if (!modelId) return height;
|
|
2080
|
+
if (trackRef.current.hasTrack()) {
|
|
2081
|
+
var modelInfo = realMapControlRef.current.findModel(modelId);
|
|
2082
|
+
if (modelInfo) {
|
|
2083
|
+
if (isByMouseXY) {
|
|
2084
|
+
height -= (modelInfo.floor - 1) * MAP_PULL_HEIGHT;
|
|
2085
|
+
} else {
|
|
2086
|
+
height += (modelInfo.floor - 1) * MAP_PULL_HEIGHT;
|
|
2087
|
+
}
|
|
2088
|
+
}
|
|
2089
|
+
} else if (isPullBuild.current) {
|
|
2090
|
+
var _modelInfo2 = isPullBuild.current[modelId] || {
|
|
2091
|
+
floor: 1
|
|
2092
|
+
};
|
|
2093
|
+
if (isByMouseXY) {
|
|
2094
|
+
height -= ((_modelInfo2.floor || 1) - 1) * MAP_PULL_HEIGHT;
|
|
2095
|
+
} else {
|
|
2096
|
+
height += (_modelInfo2.floor - 1) * MAP_PULL_HEIGHT;
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
return height;
|
|
2100
|
+
};
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* 绑定点位到地图
|
|
2104
|
+
*/
|
|
2105
|
+
var bindPointForMap = function bindPointForMap(data) {
|
|
2106
|
+
drawPointInstance.outBindPointsSet(data);
|
|
2107
|
+
};
|
|
2108
|
+
//#endregion
|
|
2109
|
+
|
|
2110
|
+
//#region 父组件暴露的方法-轨迹部分
|
|
2111
|
+
|
|
2112
|
+
//#region 轨迹相关
|
|
2113
|
+
/**
|
|
2114
|
+
* @method 绘制轨迹
|
|
2115
|
+
* @param {String}
|
|
2116
|
+
*/
|
|
2117
|
+
var _drawTrack = function _drawTrack(trackData) {
|
|
2118
|
+
var id = undefined;
|
|
2119
|
+
trackRef.current && (id = trackRef.current.drawTrack(trackData));
|
|
2120
|
+
return id;
|
|
2121
|
+
};
|
|
2122
|
+
|
|
2123
|
+
/**
|
|
2124
|
+
* @method 清除轨迹
|
|
2125
|
+
* @param {String} id 轨迹id
|
|
2126
|
+
*/
|
|
2127
|
+
var _clearTrack = function _clearTrack(id) {
|
|
2128
|
+
trackRef.current && trackRef.current.clearTrack(id);
|
|
2129
|
+
};
|
|
2130
|
+
|
|
2131
|
+
/**
|
|
2132
|
+
* @method 显隐轨迹dom点
|
|
2133
|
+
* @param {String}
|
|
2134
|
+
*/
|
|
2135
|
+
var _showTrackPoint = function _showTrackPoint() {
|
|
2136
|
+
var ids = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
2137
|
+
var visiable = arguments.length > 1 ? arguments[1] : undefined;
|
|
2138
|
+
trackRef.current && trackRef.current.showTrackPoint(ids, visiable);
|
|
2139
|
+
};
|
|
2140
|
+
|
|
2141
|
+
/**
|
|
2142
|
+
* @method 显隐轨迹
|
|
2143
|
+
* @param {String} id 轨迹id
|
|
2144
|
+
*/
|
|
2145
|
+
var _showTrack = function _showTrack(id, visible) {
|
|
2146
|
+
trackRef.current && trackRef.current.showTrack(id, visible);
|
|
2147
|
+
};
|
|
2148
|
+
//#endregion
|
|
2149
|
+
//#endregion
|
|
2150
|
+
|
|
2151
|
+
//#region 工具函数
|
|
2152
|
+
// 版本兼容提示
|
|
2153
|
+
useEffect(function () {
|
|
2154
|
+
if (configOption.isIp) LogWarning('属性 isIp 已在2.0.0版本废弃,请使用isServerIp');
|
|
2155
|
+
if (configOption.swServerIp) LogWarning('属性 swServerIp 已在2.0.0版本废弃,该参数不再需要');
|
|
2156
|
+
if (configOption.vmIp) LogWarning('属性 vmIp 已在2.0.0版本废弃,该参数不再需要');
|
|
2157
|
+
}, []);
|
|
2158
|
+
//#endregion
|
|
2159
|
+
|
|
2160
|
+
useImperativeHandle(refInstance, function () {
|
|
2161
|
+
return _objectSpread({
|
|
2162
|
+
inId: inId,
|
|
2163
|
+
// 渲染指定地图
|
|
2164
|
+
loadMapByMapId: _loadMapByMapId,
|
|
2165
|
+
// 设置地图中心
|
|
2166
|
+
setMapCenter: _setMapCenter,
|
|
2167
|
+
// 当前展示的地图类型
|
|
2168
|
+
getCurrentShowMapType: _getCurrentShowMapType,
|
|
2169
|
+
// 框选
|
|
2170
|
+
// selectPoint: (type, filterVis, callback) => dealShapeRef.current.drawShapeByMouse(type, filterVis, callback),
|
|
2171
|
+
selectPoint: _selectPoint,
|
|
2172
|
+
// 返回地图 默认视角
|
|
2173
|
+
returnDefaultView: _returnDefaultView,
|
|
2174
|
+
// 绘制轨迹
|
|
2175
|
+
drawTrack: _drawTrack,
|
|
2176
|
+
// 清除轨迹
|
|
2177
|
+
clearTrack: _clearTrack,
|
|
2178
|
+
// 显隐标记点
|
|
2179
|
+
showTrackPoint: _showTrackPoint,
|
|
2180
|
+
// 轨迹显隐
|
|
2181
|
+
showTrack: _showTrack,
|
|
2182
|
+
// 销毁地图
|
|
2183
|
+
destoryMap: destoryMap,
|
|
2184
|
+
//监听加载
|
|
2185
|
+
loadSub: loadSub,
|
|
2186
|
+
//#region 点位相关
|
|
2187
|
+
// 画点
|
|
2188
|
+
drawPoints: _drawPoints,
|
|
2189
|
+
// 相机定位
|
|
2190
|
+
onLocateByCamera: function onLocateByCamera(camCode) {
|
|
2191
|
+
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {};
|
|
2192
|
+
_onLocateByCamera(camCode, callback);
|
|
2193
|
+
},
|
|
2194
|
+
showDevRed: showDevRed,
|
|
2195
|
+
// 图层筛选
|
|
2196
|
+
changePointLayerVis: changePointLayerVis,
|
|
2197
|
+
// 获取相机在地图上的位置信息
|
|
2198
|
+
getPointPosition: getPointPosition,
|
|
2199
|
+
// 删除点
|
|
2200
|
+
delPoint: _delPoint,
|
|
2201
|
+
// TODO 更新点
|
|
2202
|
+
updatePoint: updatePoint,
|
|
2203
|
+
// 将高度改为数据库真实高度
|
|
2204
|
+
changeHeight2Truth: changeHeight2Truth,
|
|
2205
|
+
//绑定外部点位
|
|
2206
|
+
bindPointForMap: bindPointForMap,
|
|
2207
|
+
//修改可视域控制相机转动
|
|
2208
|
+
updateTime: _watchChangeFOV,
|
|
2209
|
+
// 以下为模型场景相关api
|
|
2210
|
+
getFloorInfoById: _getFloorInfoById,
|
|
2211
|
+
mergeAllModel: _mergeAllModel,
|
|
2212
|
+
jumpScreenView: _jumpScreenView,
|
|
2213
|
+
setModelSelectState: _setModelSelectState,
|
|
2214
|
+
getAllModelListId: _getAllModelListId,
|
|
2215
|
+
clearMapObj: _clearMapObj,
|
|
2216
|
+
setOperateDisable: _setOperateDisable,
|
|
2217
|
+
jumpEagleEyeMap: _jumpEagleEyeMap,
|
|
2218
|
+
junpOnlyScreenView: _junpOnlyScreenView,
|
|
2219
|
+
hideFloorList: _hideFloorList,
|
|
2220
|
+
showModel: _showModel,
|
|
2221
|
+
showBuildList: _showCom,
|
|
2222
|
+
setAllDevModelList: _setAllDevModelList,
|
|
2223
|
+
delBindCamDevModel: _delBindCamDevModel,
|
|
2224
|
+
getModelIsOutfloor: _getModelIsOutfloor,
|
|
2225
|
+
setBindCamDevModel: _setBindCamDevModel,
|
|
2226
|
+
resetToolStatus: _resetToolStatus
|
|
2227
|
+
}, realMapControlRef.current);
|
|
2228
|
+
});
|
|
2229
|
+
//#endregion
|
|
2230
|
+
|
|
2231
|
+
/**
|
|
2232
|
+
* 重置工具栏的状态
|
|
2233
|
+
*/
|
|
2234
|
+
var _resetToolStatus = function _resetToolStatus() {
|
|
2235
|
+
toolMenuRef.current._showTool(undefined, '');
|
|
2236
|
+
};
|
|
2237
|
+
|
|
2238
|
+
// #region 场景API
|
|
2239
|
+
|
|
2240
|
+
// 是否隐藏楼层模型
|
|
2241
|
+
var _showCom = function _showCom(status) {
|
|
2242
|
+
buildFloorRef.current && buildFloorRef.current.showCom(status);
|
|
2243
|
+
};
|
|
2244
|
+
/**
|
|
2245
|
+
* 显示模型
|
|
2246
|
+
* @param id 模型id
|
|
2247
|
+
* @param callback 回调
|
|
2248
|
+
*/
|
|
2249
|
+
var _showModel = function _showModel(id, callback) {
|
|
2250
|
+
realMapControlRef.current && realMapControlRef.current._showModel(id, callback);
|
|
2251
|
+
};
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* 根据模型id获取模型信息
|
|
2255
|
+
* @param id 模型id
|
|
2256
|
+
* @returns modelList
|
|
2257
|
+
*/
|
|
2258
|
+
var _getFloorInfoById = function _getFloorInfoById(id) {
|
|
2259
|
+
var model = realMapControlRef.current && realMapControlRef.current.getFloorInfoById(id) || null;
|
|
2260
|
+
return model;
|
|
2261
|
+
};
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* 单纯合并或者拉开所有模型,不进行任何操作
|
|
2265
|
+
* @param status boolean 拉开或合并
|
|
2266
|
+
*/
|
|
2267
|
+
var _mergeAllModel = function _mergeAllModel(status) {
|
|
2268
|
+
realMapControlRef.current && realMapControlRef.current.mergeAllModel(status);
|
|
2269
|
+
};
|
|
2270
|
+
|
|
2271
|
+
/**
|
|
2272
|
+
* 回到场景默认视角
|
|
2273
|
+
* @param time 动画时间 默认0.5s
|
|
2274
|
+
*/
|
|
2275
|
+
var _jumpScreenView = function _jumpScreenView() {
|
|
2276
|
+
var time = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0.5;
|
|
2277
|
+
var viewInfo = mapBaseDataRef.current.viewInfo;
|
|
2278
|
+
realMapControlRef.current && realMapControlRef.current.jumpScreenView(time, viewInfo);
|
|
2279
|
+
};
|
|
2280
|
+
|
|
2281
|
+
/**
|
|
2282
|
+
* 设置模型高亮
|
|
2283
|
+
* @param state 状态
|
|
2284
|
+
*/
|
|
2285
|
+
var _setModelSelectState = function _setModelSelectState() {
|
|
2286
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
2287
|
+
realMapControlRef.current && realMapControlRef.current.setModelSelectState(state);
|
|
2288
|
+
};
|
|
2289
|
+
|
|
2290
|
+
/**
|
|
2291
|
+
* 获取所有模型id
|
|
2292
|
+
* @param id 需要排除的id
|
|
2293
|
+
*/
|
|
2294
|
+
var _getAllModelListId = function _getAllModelListId(id) {
|
|
2295
|
+
var ids = realMapControlRef.current && realMapControlRef.current.getAllModelListId(id) || [];
|
|
2296
|
+
return ids;
|
|
2297
|
+
};
|
|
2298
|
+
|
|
2299
|
+
// 清楚场景地图
|
|
2300
|
+
var _clearMapObj = function _clearMapObj() {
|
|
2301
|
+
realMapControlRef.current && realMapControlRef.current.clearMapObj();
|
|
2302
|
+
};
|
|
2303
|
+
|
|
2304
|
+
/**
|
|
2305
|
+
* 设置场景交互状态
|
|
2306
|
+
* @param disable 状态 默认关闭
|
|
2307
|
+
*/
|
|
2308
|
+
var _setOperateDisable = function _setOperateDisable() {
|
|
2309
|
+
var disable = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
2310
|
+
realMapControlRef.current && realMapControlRef.current.setOperateDisable(disable);
|
|
2311
|
+
};
|
|
2312
|
+
|
|
2313
|
+
// 跳转到全景视角
|
|
2314
|
+
var _jumpEagleEyeMap = function _jumpEagleEyeMap() {
|
|
2315
|
+
realMapControlRef.current && realMapControlRef.current.jumpEagleEyeMap();
|
|
2316
|
+
};
|
|
2317
|
+
|
|
2318
|
+
// 回到默认视角不作操作
|
|
2319
|
+
var _junpOnlyScreenView = function _junpOnlyScreenView() {
|
|
2320
|
+
realMapControlRef.current && realMapControlRef.current.junpOnlyScreenView();
|
|
2321
|
+
};
|
|
2322
|
+
|
|
2323
|
+
// 隐藏楼层列表显示
|
|
2324
|
+
var _hideFloorList = function _hideFloorList() {
|
|
2325
|
+
realMapControlRef.current && realMapControlRef.current.hideFloorList();
|
|
2326
|
+
};
|
|
2327
|
+
var _setAllDevModelList = function _setAllDevModelList(points) {
|
|
2328
|
+
var needHidden = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
2329
|
+
realMapControlRef.current && realMapControlRef.current.setAllDevModelList(points, needHidden);
|
|
2330
|
+
};
|
|
2331
|
+
var _delBindCamDevModel = function _delBindCamDevModel(id, clear) {
|
|
2332
|
+
realMapControlRef.current && realMapControlRef.current.delBindCamDevModel(id, clear);
|
|
2333
|
+
};
|
|
2334
|
+
var _getModelIsOutfloor = function _getModelIsOutfloor(modelId) {
|
|
2335
|
+
realMapControlRef.current && realMapControlRef.current.getModelIsOutfloor(modelId);
|
|
2336
|
+
};
|
|
2337
|
+
var _setBindCamDevModel = function _setBindCamDevModel(modelInfo, camInfo) {
|
|
2338
|
+
if (realMapControlRef.current) {
|
|
2339
|
+
return realMapControlRef.current.setBindCamDevModel(modelInfo, camInfo);
|
|
2340
|
+
} else {
|
|
2341
|
+
return false;
|
|
2342
|
+
}
|
|
2343
|
+
};
|
|
2344
|
+
// #endregion
|
|
2345
|
+
|
|
2346
|
+
var setNameTip = function setNameTip(isShow) {
|
|
2347
|
+
setPointLabelStatus(isShow);
|
|
2348
|
+
};
|
|
2349
|
+
|
|
2350
|
+
//#region 新增模型显示功能
|
|
2351
|
+
/**
|
|
2352
|
+
* @method 显示模型地图
|
|
2353
|
+
* @param {Object} floorInfo 地图楼层信息
|
|
2354
|
+
* @param {number} type 地图类型
|
|
2355
|
+
*/
|
|
2356
|
+
var _drawModalMap = /*#__PURE__*/function () {
|
|
2357
|
+
var _ref6 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee6(floorInfo, type) {
|
|
2358
|
+
var mapObj, msFid, msBid, independentData, layer, modelPos, result, url, params, res, URL, imgCenter, angleInfo, _t3;
|
|
2359
|
+
return _regenerator().w(function (_context6) {
|
|
2360
|
+
while (1) switch (_context6.p = _context6.n) {
|
|
2361
|
+
case 0:
|
|
2362
|
+
mapObj = mapCurrentRef.current;
|
|
2363
|
+
msFid = floorInfo.msFid, msBid = floorInfo.msBid, independentData = floorInfo.independentData;
|
|
2364
|
+
if (!(!independentMode && (!msFid || !msBid))) {
|
|
2365
|
+
_context6.n = 1;
|
|
2366
|
+
break;
|
|
2367
|
+
}
|
|
2368
|
+
LogError('请传入is对应模型地图的msFid和msBid');
|
|
2369
|
+
return _context6.a(2);
|
|
2370
|
+
case 1:
|
|
2371
|
+
//先建立模型图层
|
|
2372
|
+
layer = modelLayerRef.current, modelPos = configOption.centerPostion || configOptionDefault.centerPostion;
|
|
2373
|
+
if (!layer) {
|
|
2374
|
+
layer = mapObj.createModelLayer().Id;
|
|
2375
|
+
modelLayerRef.current = layer;
|
|
2376
|
+
}
|
|
2377
|
+
modelPos.height = 0;
|
|
2378
|
+
if (independentMode) {
|
|
2379
|
+
_context6.n = 8;
|
|
2380
|
+
break;
|
|
2381
|
+
}
|
|
2382
|
+
_context6.p = 2;
|
|
2383
|
+
params = {
|
|
2384
|
+
id: msFid,
|
|
2385
|
+
mansion: msBid
|
|
2386
|
+
}; //获取模型文件路径
|
|
2387
|
+
_context6.n = 3;
|
|
2388
|
+
return getModel(params);
|
|
2389
|
+
case 3:
|
|
2390
|
+
res = _context6.v;
|
|
2391
|
+
if (!(res && res.ErrCode === 0)) {
|
|
2392
|
+
_context6.n = 5;
|
|
2393
|
+
break;
|
|
2394
|
+
}
|
|
2395
|
+
if (!(!res.Floors || !Array.isArray(res.Floors) || res.Floors.length < 0)) {
|
|
2396
|
+
_context6.n = 4;
|
|
2397
|
+
break;
|
|
2398
|
+
}
|
|
2399
|
+
return _context6.a(2);
|
|
2400
|
+
case 4:
|
|
2401
|
+
URL = res.Floors[0].URL;
|
|
2402
|
+
url = _getMapSourceUrl(URL);
|
|
2403
|
+
case 5:
|
|
2404
|
+
_context6.n = 7;
|
|
2405
|
+
break;
|
|
2406
|
+
case 6:
|
|
2407
|
+
_context6.p = 6;
|
|
2408
|
+
_t3 = _context6.v;
|
|
2409
|
+
LogError(_t3);
|
|
2410
|
+
return _context6.a(2);
|
|
2411
|
+
case 7:
|
|
2412
|
+
_context6.n = 10;
|
|
2413
|
+
break;
|
|
2414
|
+
case 8:
|
|
2415
|
+
if (independentData.url) {
|
|
2416
|
+
_context6.n = 9;
|
|
2417
|
+
break;
|
|
2418
|
+
}
|
|
2419
|
+
LogError('请传入is对应模型地图的url');
|
|
2420
|
+
return _context6.a(2);
|
|
2421
|
+
case 9:
|
|
2422
|
+
url = _getMapSourceUrl(independentData.url);
|
|
2423
|
+
case 10:
|
|
2424
|
+
//3dtiles
|
|
2425
|
+
if (/\.json/.test(url)) {
|
|
2426
|
+
result = mapObj.createTiles(modelLayerRef.current, {
|
|
2427
|
+
url: url,
|
|
2428
|
+
position: modelPos,
|
|
2429
|
+
scale: 1
|
|
2430
|
+
});
|
|
2431
|
+
//gltf
|
|
2432
|
+
} else {
|
|
2433
|
+
result = mapObj.createModel(modelLayerRef.current, {
|
|
2434
|
+
url: url,
|
|
2435
|
+
position: modelPos,
|
|
2436
|
+
scale: 1
|
|
2437
|
+
});
|
|
2438
|
+
}
|
|
2439
|
+
if (result.ErrCode !== 0) {
|
|
2440
|
+
LogError(result.ErrMsg);
|
|
2441
|
+
} else {
|
|
2442
|
+
modelIdRef.current = result.TileId || result.Id;
|
|
2443
|
+
}
|
|
2444
|
+
//设置视角
|
|
2445
|
+
imgCenter = configOption.centerPostion || configOptionDefault.centerPostion;
|
|
2446
|
+
angleInfo = floorInfo.angleInfo;
|
|
2447
|
+
if (angleInfo) {
|
|
2448
|
+
angleInfo = JSON.parse(angleInfo);
|
|
2449
|
+
angleInfo && mapObj.setViewByViewInfo(angleInfo, {
|
|
2450
|
+
duration: 0.2
|
|
2451
|
+
});
|
|
2452
|
+
}
|
|
2453
|
+
case 11:
|
|
2454
|
+
return _context6.a(2);
|
|
2455
|
+
}
|
|
2456
|
+
}, _callee6, null, [[2, 6]]);
|
|
2457
|
+
}));
|
|
2458
|
+
return function _drawModalMap(_x10, _x11) {
|
|
2459
|
+
return _ref6.apply(this, arguments);
|
|
2460
|
+
};
|
|
2461
|
+
}();
|
|
2462
|
+
|
|
2463
|
+
/**
|
|
2464
|
+
* @method 获取模型资源路径
|
|
2465
|
+
* @param {string} url 模型url
|
|
2466
|
+
*/
|
|
2467
|
+
var _getMapSourceUrl = function _getMapSourceUrl(url) {
|
|
2468
|
+
//如果url已经是协议开头直接返回
|
|
2469
|
+
if (url.startsWith('http:') || url.startsWith('https')) {
|
|
2470
|
+
return url;
|
|
2471
|
+
}
|
|
2472
|
+
var mapServerIp = configOption.mapServerIp,
|
|
2473
|
+
isPortOnes = configOption.isPortOnes,
|
|
2474
|
+
swPort = configOption.swPort;
|
|
2475
|
+
// 根据协议调整地图的ip
|
|
2476
|
+
var mapIp = "".concat(window.location.protocol, "//").concat(mapServerIp).concat(swPort ? ':' + swPort : '').concat(isPortOnes ? '/mapServer' : ":".concat(getPort(isHttps() ? '4705' : '4707')));
|
|
2477
|
+
return mapIp + url;
|
|
2478
|
+
};
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* @method 清除模型地图
|
|
2482
|
+
*/
|
|
2483
|
+
var _deleteModel = function _deleteModel() {
|
|
2484
|
+
if (modelLayerRef.current && modelIdRef.current) {
|
|
2485
|
+
var mapObj = mapCurrentRef.current;
|
|
2486
|
+
var result = mapObj.deleteModel(modelLayerRef.current, modelIdRef.current);
|
|
2487
|
+
if (result.ErrCode !== 0) {
|
|
2488
|
+
LogError('删除模型失败!', result.ErrMsg);
|
|
2489
|
+
} else {
|
|
2490
|
+
modelIdRef.current = null;
|
|
2491
|
+
}
|
|
2492
|
+
mapObj.deleteModelLayer(modelLayerRef.current);
|
|
2493
|
+
modelLayerRef.current = '';
|
|
2494
|
+
}
|
|
2495
|
+
};
|
|
2496
|
+
//#endregion
|
|
2497
|
+
|
|
2498
|
+
/**
|
|
2499
|
+
* 启动图形检索
|
|
2500
|
+
* @param {String} type 绘制的类型
|
|
2501
|
+
* @param {String} sourceType 资源类型 分号隔开
|
|
2502
|
+
* @param {String} layerIds 图层id 分号隔开
|
|
2503
|
+
* @param {String} selectMode 框选模式: 1:'map' 2:'layer' 前者从地图后台接口获取,后者从图层获取
|
|
2504
|
+
* @param {Function} selectFinished 框选完成时的回调
|
|
2505
|
+
* @param {Function} deleteClick 点击框选图形的删除按钮时的回调
|
|
2506
|
+
*/
|
|
2507
|
+
var _selectPoint = function _selectPoint(_ref7) {
|
|
2508
|
+
var type = _ref7.type,
|
|
2509
|
+
_ref7$sourceType = _ref7.sourceType,
|
|
2510
|
+
sourceType = _ref7$sourceType === void 0 ? '' : _ref7$sourceType,
|
|
2511
|
+
_ref7$layerIds = _ref7.layerIds,
|
|
2512
|
+
layerIds = _ref7$layerIds === void 0 ? '' : _ref7$layerIds,
|
|
2513
|
+
selectMode = _ref7.selectMode,
|
|
2514
|
+
selectFinished = _ref7.selectFinished,
|
|
2515
|
+
deleteClick = _ref7.deleteClick;
|
|
2516
|
+
var mapObj = mapCurrentRef.current;
|
|
2517
|
+
if (!['line', 'circle', 'rectangle', 'polygon'].includes(type)) {
|
|
2518
|
+
return;
|
|
2519
|
+
}
|
|
2520
|
+
mapObj.drawOverlay({
|
|
2521
|
+
drawOverlayType: 'line' === type ? 'lineSelect' : type,
|
|
2522
|
+
drawOverlayStyle: {
|
|
2523
|
+
ishighest: true,
|
|
2524
|
+
extrudedHeight: 0
|
|
2525
|
+
},
|
|
2526
|
+
callback: function () {
|
|
2527
|
+
var _callback2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee7(type, option) {
|
|
2528
|
+
var options, geomery, lng, lat, size, optionConfig, layers, targetLayers, r1, allPoints, overlays, selectPoints, _t4;
|
|
2529
|
+
return _regenerator().w(function (_context7) {
|
|
2530
|
+
while (1) switch (_context7.p = _context7.n) {
|
|
2531
|
+
case 0:
|
|
2532
|
+
options = {
|
|
2533
|
+
lineSelect: function lineSelect(option) {
|
|
2534
|
+
var lng = option.style.positions.map(function (item) {
|
|
2535
|
+
return item.lng;
|
|
2536
|
+
}).join(';');
|
|
2537
|
+
var lat = option.style.positions.map(function (item) {
|
|
2538
|
+
return item.lat;
|
|
2539
|
+
}).join(';');
|
|
2540
|
+
return {
|
|
2541
|
+
type: 'line',
|
|
2542
|
+
option: {
|
|
2543
|
+
positions: option.style.positions
|
|
2544
|
+
},
|
|
2545
|
+
lng: String(lng),
|
|
2546
|
+
lat: String(lat),
|
|
2547
|
+
size: 60
|
|
2548
|
+
};
|
|
2549
|
+
},
|
|
2550
|
+
circle: function circle(option) {
|
|
2551
|
+
return {
|
|
2552
|
+
type: 'circle',
|
|
2553
|
+
option: {
|
|
2554
|
+
center: option.attr.position,
|
|
2555
|
+
radius: option.style.semiMajorAxis
|
|
2556
|
+
},
|
|
2557
|
+
lng: option.attr.position.lng + '',
|
|
2558
|
+
lat: option.attr.position.lat + '',
|
|
2559
|
+
size: option.style.semiMajorAxis
|
|
2560
|
+
};
|
|
2561
|
+
},
|
|
2562
|
+
rectangle: function rectangle(option) {
|
|
2563
|
+
return {
|
|
2564
|
+
type: 'rectangle',
|
|
2565
|
+
option: {
|
|
2566
|
+
coordinates: option.style.coordinates
|
|
2567
|
+
},
|
|
2568
|
+
lng: "".concat(option.style.coordinates.west, ";").concat(option.style.coordinates.east, ";").concat(option.style.coordinates.east, ";").concat(option.style.coordinates.west),
|
|
2569
|
+
lat: "".concat(option.style.coordinates.north, ";").concat(option.style.coordinates.north, ";").concat(option.style.coordinates.south, ";").concat(option.style.coordinates.south),
|
|
2570
|
+
size: null
|
|
2571
|
+
};
|
|
2572
|
+
},
|
|
2573
|
+
polygon: function polygon(option) {
|
|
2574
|
+
var lng = option.style.hierarchy.map(function (item) {
|
|
2575
|
+
return item.lng;
|
|
2576
|
+
}).join(';');
|
|
2577
|
+
var lat = option.style.hierarchy.map(function (item) {
|
|
2578
|
+
return item.lat;
|
|
2579
|
+
}).join(';');
|
|
2580
|
+
var size = null;
|
|
2581
|
+
return {
|
|
2582
|
+
type: 'polygon',
|
|
2583
|
+
option: {
|
|
2584
|
+
hierarchy: option.style.hierarchy
|
|
2585
|
+
},
|
|
2586
|
+
lng: String(lng),
|
|
2587
|
+
lat: String(lat),
|
|
2588
|
+
size: size
|
|
2589
|
+
};
|
|
2590
|
+
}
|
|
2591
|
+
};
|
|
2592
|
+
if (options[type]) {
|
|
2593
|
+
_context7.n = 1;
|
|
2594
|
+
break;
|
|
2595
|
+
}
|
|
2596
|
+
selectFinished && selectFinished([], null);
|
|
2597
|
+
return _context7.a(2);
|
|
2598
|
+
case 1:
|
|
2599
|
+
geomery = type === 'lineSelect' ? 0 : type === 'circle' ? 1 : 2;
|
|
2600
|
+
lng = options[type](option).lng;
|
|
2601
|
+
lat = options[type](option).lat;
|
|
2602
|
+
size = options[type](option).size; // 点位框选来自图层,如果传入了图层,则框选传入图层上的点位;如果未传入图层,则框选总线上所有图层上的点位
|
|
2603
|
+
optionConfig = options[type](option).option;
|
|
2604
|
+
if (!(selectMode && selectMode === 'layer')) {
|
|
2605
|
+
_context7.n = 2;
|
|
2606
|
+
break;
|
|
2607
|
+
}
|
|
2608
|
+
layers = dataBusInstance.getData(DATAS_BUS_KEY.pointLayers); // 当前点位图层
|
|
2609
|
+
targetLayers = layerIds ? layerIds.split(';') : layers;
|
|
2610
|
+
try {
|
|
2611
|
+
r1 = mapObj.selectOverlaysForLayers(targetLayers, {
|
|
2612
|
+
type: type,
|
|
2613
|
+
option: optionConfig
|
|
2614
|
+
});
|
|
2615
|
+
if (r1 && r1.ErrCode === 0) {
|
|
2616
|
+
allPoints = dataBusInstance.getData(DATAS_BUS_KEY.pointDrawList);
|
|
2617
|
+
overlays = Array.isArray(r1.Overlays) ? r1.Overlays : [];
|
|
2618
|
+
selectPoints = Array.isArray(allPoints) ? allPoints.filter(function (n) {
|
|
2619
|
+
return overlays.includes(n.drawId);
|
|
2620
|
+
}) : [];
|
|
2621
|
+
selectFinished === null || selectFinished === void 0 ? void 0 : selectFinished(selectPoints, optionConfig);
|
|
2622
|
+
} else {
|
|
2623
|
+
selectFinished === null || selectFinished === void 0 ? void 0 : selectFinished([], optionConfig, r1);
|
|
2624
|
+
}
|
|
2625
|
+
} catch (error) {
|
|
2626
|
+
console.error('selectOverlaysForLayers error:', error);
|
|
2627
|
+
selectFinished === null || selectFinished === void 0 ? void 0 : selectFinished([], optionConfig, {
|
|
2628
|
+
ErrCode: -1,
|
|
2629
|
+
ErrMsg: error.message
|
|
2630
|
+
});
|
|
2631
|
+
}
|
|
2632
|
+
_context7.n = 5;
|
|
2633
|
+
break;
|
|
2634
|
+
case 2:
|
|
2635
|
+
_context7.p = 2;
|
|
2636
|
+
_context7.n = 3;
|
|
2637
|
+
return getPointsByDraw(sourceType, mapObj, layerIds, geomery, lng, lat, size, function (result) {
|
|
2638
|
+
selectFinished === null || selectFinished === void 0 ? void 0 : selectFinished(result, optionConfig);
|
|
2639
|
+
});
|
|
2640
|
+
case 3:
|
|
2641
|
+
_context7.n = 5;
|
|
2642
|
+
break;
|
|
2643
|
+
case 4:
|
|
2644
|
+
_context7.p = 4;
|
|
2645
|
+
_t4 = _context7.v;
|
|
2646
|
+
selectFinished === null || selectFinished === void 0 ? void 0 : selectFinished([], optionConfig, {
|
|
2647
|
+
ErrCode: -1,
|
|
2648
|
+
ErrMsg: _t4.message
|
|
2649
|
+
});
|
|
2650
|
+
case 5:
|
|
2651
|
+
return _context7.a(2);
|
|
2652
|
+
}
|
|
2653
|
+
}, _callee7, null, [[2, 4]]);
|
|
2654
|
+
}));
|
|
2655
|
+
function callback(_x12, _x13) {
|
|
2656
|
+
return _callback2.apply(this, arguments);
|
|
2657
|
+
}
|
|
2658
|
+
return callback;
|
|
2659
|
+
}(),
|
|
2660
|
+
callbackForClean: function callbackForClean() {
|
|
2661
|
+
deleteClick && deleteClick();
|
|
2662
|
+
}
|
|
2663
|
+
});
|
|
2664
|
+
};
|
|
2665
|
+
var GUID = _getGuid();
|
|
2666
|
+
var classMain = classNames('map-component', "".concat(CUSTOM_PREFIX, "-map-23d"), _defineProperty({}, "".concat(CUSTOM_PREFIX, "-map-23d-theme-").concat(theme || getTheme()), theme || getTheme()));
|
|
2667
|
+
|
|
2668
|
+
//#region 地图引擎能力提升重大项目新增
|
|
2669
|
+
/**
|
|
2670
|
+
* @method: 获取模型url
|
|
2671
|
+
* @param {*} floor
|
|
2672
|
+
*/
|
|
2673
|
+
function _getModelUrl(_x14) {
|
|
2674
|
+
return _getModelUrl2.apply(this, arguments);
|
|
2675
|
+
} //#endregion
|
|
2676
|
+
// #region 进度条
|
|
2677
|
+
/**
|
|
2678
|
+
* 加载进度条
|
|
2679
|
+
*/
|
|
2680
|
+
function _getModelUrl2() {
|
|
2681
|
+
_getModelUrl2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee8(floor) {
|
|
2682
|
+
var msFid, msBid, independentData, params, res, URL, _t5;
|
|
2683
|
+
return _regenerator().w(function (_context8) {
|
|
2684
|
+
while (1) switch (_context8.p = _context8.n) {
|
|
2685
|
+
case 0:
|
|
2686
|
+
msFid = floor.msFid, msBid = floor.msBid, independentData = floor.independentData;
|
|
2687
|
+
if (independentMode) {
|
|
2688
|
+
_context8.n = 7;
|
|
2689
|
+
break;
|
|
2690
|
+
}
|
|
2691
|
+
_context8.p = 1;
|
|
2692
|
+
params = {
|
|
2693
|
+
id: msFid,
|
|
2694
|
+
mansion: msBid
|
|
2695
|
+
}; //获取模型文件路径
|
|
2696
|
+
_context8.n = 2;
|
|
2697
|
+
return getModel(params);
|
|
2698
|
+
case 2:
|
|
2699
|
+
res = _context8.v;
|
|
2700
|
+
if (!(res && res.ErrCode === 0)) {
|
|
2701
|
+
_context8.n = 4;
|
|
2702
|
+
break;
|
|
2703
|
+
}
|
|
2704
|
+
if (!(!res.Floors || !Array.isArray(res.Floors) || res.Floors.length < 0)) {
|
|
2705
|
+
_context8.n = 3;
|
|
2706
|
+
break;
|
|
2707
|
+
}
|
|
2708
|
+
return _context8.a(2);
|
|
2709
|
+
case 3:
|
|
2710
|
+
URL = res.Floors[0].URL;
|
|
2711
|
+
modelUrl.current = _getMapSourceUrl(URL);
|
|
2712
|
+
case 4:
|
|
2713
|
+
_context8.n = 6;
|
|
2714
|
+
break;
|
|
2715
|
+
case 5:
|
|
2716
|
+
_context8.p = 5;
|
|
2717
|
+
_t5 = _context8.v;
|
|
2718
|
+
LogError(_t5);
|
|
2719
|
+
return _context8.a(2);
|
|
2720
|
+
case 6:
|
|
2721
|
+
_context8.n = 9;
|
|
2722
|
+
break;
|
|
2723
|
+
case 7:
|
|
2724
|
+
if (independentData.url) {
|
|
2725
|
+
_context8.n = 8;
|
|
2726
|
+
break;
|
|
2727
|
+
}
|
|
2728
|
+
LogError('请传入is对应模型地图的url');
|
|
2729
|
+
return _context8.a(2);
|
|
2730
|
+
case 8:
|
|
2731
|
+
modelUrl.current = _getMapSourceUrl(independentData.url);
|
|
2732
|
+
case 9:
|
|
2733
|
+
return _context8.a(2);
|
|
2734
|
+
}
|
|
2735
|
+
}, _callee8, null, [[1, 5]]);
|
|
2736
|
+
}));
|
|
2737
|
+
return _getModelUrl2.apply(this, arguments);
|
|
2738
|
+
}
|
|
2739
|
+
var _useState17 = useState(0),
|
|
2740
|
+
_useState18 = _slicedToArray(_useState17, 2),
|
|
2741
|
+
mapLoadingPercent = _useState18[0],
|
|
2742
|
+
setMapLoadingPercent = _useState18[1];
|
|
2743
|
+
var mapLoadingPercentTime = useRef(null);
|
|
2744
|
+
var setMapIsLoading = function setMapIsLoading(type) {
|
|
2745
|
+
if (mapLoadingPercentTime.current) {
|
|
2746
|
+
clearInterval(mapLoadingPercentTime.current);
|
|
2747
|
+
mapLoadingPercentTime.current = null;
|
|
2748
|
+
}
|
|
2749
|
+
|
|
2750
|
+
// 设置正在加载,则启动定时器
|
|
2751
|
+
if (type) {
|
|
2752
|
+
// 启动定时器
|
|
2753
|
+
setMapLoadingPercent(0); // 重置进度
|
|
2754
|
+
mapLoadingPercentTime.current = setInterval(function () {
|
|
2755
|
+
setMapLoadingPercent(function (prev) {
|
|
2756
|
+
var next = prev + 5;
|
|
2757
|
+
return next >= 100 ? 99 : next;
|
|
2758
|
+
});
|
|
2759
|
+
}, 250);
|
|
2760
|
+
}
|
|
2761
|
+
typeof onMapLoading === 'function' && onMapLoading(type);
|
|
2762
|
+
};
|
|
2763
|
+
useEffect(function () {
|
|
2764
|
+
setMapIsLoading(loading);
|
|
2765
|
+
}, [loading]);
|
|
2766
|
+
var setMapLoadingPercentState = function setMapLoadingPercentState(percent) {
|
|
2767
|
+
// 保留1位小数
|
|
2768
|
+
percent = Math.round(percent);
|
|
2769
|
+
if (mapLoadingPercentTime.current) {
|
|
2770
|
+
clearInterval(mapLoadingPercentTime.current);
|
|
2771
|
+
mapLoadingPercentTime.current = null;
|
|
2772
|
+
}
|
|
2773
|
+
setMapLoadingPercent(percent);
|
|
2774
|
+
if (Math.floor(percent) === 100) {
|
|
2775
|
+
setLoading(false);
|
|
2776
|
+
}
|
|
2777
|
+
};
|
|
2778
|
+
|
|
2779
|
+
// 组件卸载时清除定时器
|
|
2780
|
+
useEffect(function () {
|
|
2781
|
+
return function () {
|
|
2782
|
+
if (mapLoadingPercentTime.current) {
|
|
2783
|
+
clearInterval(mapLoadingPercentTime.current);
|
|
2784
|
+
}
|
|
2785
|
+
};
|
|
2786
|
+
}, []);
|
|
2787
|
+
// #endregion
|
|
2788
|
+
|
|
2789
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
2790
|
+
className: classMain,
|
|
2791
|
+
id: inId || GUID
|
|
2792
|
+
}, /*#__PURE__*/React.createElement(USpin, {
|
|
2793
|
+
indicator: /*#__PURE__*/React.createElement("div", {
|
|
2794
|
+
className: "map-spin-div"
|
|
2795
|
+
}, /*#__PURE__*/React.createElement(UIcon, {
|
|
2796
|
+
type: "loading",
|
|
2797
|
+
style: {
|
|
2798
|
+
fontSize: 24
|
|
2799
|
+
},
|
|
2800
|
+
spin: true
|
|
2801
|
+
}), /*#__PURE__*/React.createElement("div", null, textLocale.isLoading || '正在加载', "\uFF08", /*#__PURE__*/React.createElement("strong", null, mapLoadingPercent, "%"), "\uFF09 ...")),
|
|
2802
|
+
spinning: mapEngineRef.current !== 'stream' && loading
|
|
2803
|
+
}, loadScript && isRefresh && mapCurrentRef.current && (pointFromMapProps || toolMenuProps) && /*#__PURE__*/React.createElement(MapToolMenu, _extends({
|
|
2804
|
+
ref: toolMenuRef,
|
|
2805
|
+
instanceKey: inId || GUID,
|
|
2806
|
+
mapDom: mapCurrentRef.current
|
|
2807
|
+
}, props, toolMenuProps, pointFromMapProps, {
|
|
2808
|
+
isServerIp: configOption.isServerIp,
|
|
2809
|
+
mapSwitchType: mapSwitchType,
|
|
2810
|
+
mapInfo: mapInfo,
|
|
2811
|
+
initMapOrigin: initMapOrigin.current,
|
|
2812
|
+
getMapInfo: getMapInfo,
|
|
2813
|
+
alwaysShowPointLabel: PointLabelStatus,
|
|
2814
|
+
setNameTip: setNameTip,
|
|
2815
|
+
textLocale: textLocale,
|
|
2816
|
+
locationSecu: toolComponents.locationSecu
|
|
2817
|
+
})), loadScript && isRefresh && mapCurrentRef.current && searchPointProps && /*#__PURE__*/React.createElement(MapServerPointSearch, _extends({}, props, searchPointProps, {
|
|
2818
|
+
mapDom: mapCurrentRef.current
|
|
2819
|
+
})), /*#__PURE__*/React.createElement("div", {
|
|
2820
|
+
className: "map-dom-2d",
|
|
2821
|
+
id: MAP_2D_DOM_ID
|
|
2822
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
2823
|
+
className: "map-dom-3d",
|
|
2824
|
+
id: MAP_3D_DOM_ID
|
|
2825
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
2826
|
+
className: "map-dom-stream",
|
|
2827
|
+
id: MAP_STREAM_DOM_ID
|
|
2828
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
2829
|
+
className: "map-dom-cesium",
|
|
2830
|
+
id: MAP_CESIUM_DOM_ID
|
|
2831
|
+
}), loadScript && /*#__PURE__*/React.createElement(React.Fragment, null, independentMode ? /*#__PURE__*/React.createElement(IndependentMode, {
|
|
2832
|
+
mapInfo: mapInfo,
|
|
2833
|
+
instanceKey: inId
|
|
2834
|
+
}) : /*#__PURE__*/React.createElement(MapSelect, {
|
|
2835
|
+
ref: mapSelectRef,
|
|
2836
|
+
instanceKey: inId,
|
|
2837
|
+
textLocale: textLocale
|
|
2838
|
+
}), /*#__PURE__*/React.createElement(BuildFloor, {
|
|
2839
|
+
ref: buildFloorRef,
|
|
2840
|
+
instanceKey: inId,
|
|
2841
|
+
textLocale: textLocale
|
|
2842
|
+
}), /*#__PURE__*/React.createElement(MapTrack, {
|
|
2843
|
+
ref: trackRef,
|
|
2844
|
+
instanceKey: inId,
|
|
2845
|
+
textLocale: textLocale
|
|
2846
|
+
}), canSetView.canSet && /*#__PURE__*/React.createElement("div", {
|
|
2847
|
+
className: "location-view",
|
|
2848
|
+
onClick: _returnDefaultView
|
|
2849
|
+
})), document.getElementById(clusterLayer.current.domId) && /*#__PURE__*/ReactDOM.createPortal(/*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
2850
|
+
className: "zy-clusterInfo-popover"
|
|
2851
|
+
}, _renderClusterContent())), document.getElementById(clusterLayer.current.domId)), /*#__PURE__*/React.createElement("div", {
|
|
2852
|
+
"data-show": !!tipMessage,
|
|
2853
|
+
className: "mapComponent-notMap"
|
|
2854
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
2855
|
+
className: "mapComponent-notMapIcon"
|
|
2856
|
+
}, emptyMapIcon), /*#__PURE__*/React.createElement("span", null, tipMessage)), /*#__PURE__*/React.createElement("div", {
|
|
2857
|
+
className: "".concat(CUSTOM_PREFIX, "-map-header-background")
|
|
2858
|
+
})));
|
|
2859
|
+
};
|
|
2860
|
+
export default /*#__PURE__*/forwardRef(MapComponent);
|