@labelbee/lb-components 1.24.0-alpha.2 → 1.24.0-alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/2DViewWorker.js +1 -1
- package/dist/assets/annotation/rectTool/three_points_rect.svg.js +1 -0
- package/dist/assets/annotation/rectTool/two_points_rect.svg.js +1 -0
- package/dist/components/DynamicResizer/DynamicResizer.js +1 -1
- package/dist/components/DynamicResizer/hooks/useDrag.js +1 -1
- package/dist/components/DynamicResizer/hooks/useDraggingAllowed.js +1 -0
- package/dist/components/DynamicResizer/hooks/useUpdateHeight.js +1 -1
- package/dist/components/DynamicResizer/utils/index.js +1 -0
- package/dist/components/LLMMultiWheelView/dialogView/index.js +1 -1
- package/dist/components/LLMMultiWheelView/index.js +1 -1
- package/dist/components/LLMMultiWheelView/sidebar/index.js +1 -1
- package/dist/components/LLMToolView/index.js +1 -1
- package/dist/components/LLMToolView/questionView/components/audioView/index.js +1 -0
- package/dist/components/LLMToolView/questionView/components/header/index.js +1 -1
- package/dist/components/LLMToolView/questionView/index.js +1 -1
- package/dist/components/attributeList/index.js +1 -1
- package/dist/components/audioAnnotate/index.js +1 -1
- package/dist/components/audioAnnotate/textInput/index.js +1 -1
- package/dist/components/audioAnnotate/textInput/index.module.scss.js +1 -1
- package/dist/components/audioPlayer/index.js +1 -1
- package/dist/components/longText/index.js +1 -1
- package/dist/components/pointCloudView/PointCloud2DView.js +1 -1
- package/dist/components/pointCloudView/PointCloud3DView.js +1 -1
- package/dist/components/pointCloudView/PointCloudContext.js +1 -1
- package/dist/components/pointCloudView/PointCloudListener.js +1 -1
- package/dist/components/pointCloudView/PointCloudTopView.js +1 -1
- package/dist/components/pointCloudView/components/UnifyParamsModal/index.js +1 -1
- package/dist/components/pointCloudView/hooks/usePointCloudAttribute.js +1 -0
- package/dist/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
- package/dist/components/pointCloudView/hooks/useUpdatePointCloudColor.js +1 -1
- package/dist/components/pointCloudView/index.js +1 -1
- package/dist/components/tagList/index.js +1 -1
- package/dist/constant/index.js +1 -1
- package/dist/index.css +116 -89
- package/dist/store/annotation/actionCreators.js +1 -1
- package/dist/store/annotation/reducer.js +1 -1
- package/dist/types/components/DynamicResizer/DynamicResizer.d.ts +3 -3
- package/dist/types/components/DynamicResizer/hooks/useDrag.d.ts +24 -7
- package/dist/types/components/DynamicResizer/hooks/useDraggingAllowed.d.ts +12 -0
- package/dist/types/components/DynamicResizer/hooks/useUpdateHeight.d.ts +10 -21
- package/dist/types/components/DynamicResizer/types/interface.d.ts +14 -6
- package/dist/types/components/DynamicResizer/utils/index.d.ts +4 -0
- package/dist/types/components/LLMMultiWheelView/dialogView/index.d.ts +2 -0
- package/dist/types/components/LLMMultiWheelView/index.d.ts +2 -0
- package/dist/types/components/LLMToolView/questionView/components/audioView/index.d.ts +8 -0
- package/dist/types/components/LLMToolView/questionView/components/header/index.d.ts +3 -1
- package/dist/types/components/longText/index.d.ts +1 -1
- package/dist/types/components/pointCloud2DRectOperationView/useUpdateRectList.d.ts +0 -1
- package/dist/types/components/pointCloudView/PointCloudContext.d.ts +4 -0
- package/dist/types/components/pointCloudView/PointCloudListener.d.ts +1 -0
- package/dist/types/components/pointCloudView/hooks/usePointCloudAttribute.d.ts +3 -0
- package/dist/types/components/pointCloudView/hooks/useRotate.d.ts +1 -2
- package/dist/types/components/pointCloudView/hooks/useRotateEdge.d.ts +1 -2
- package/dist/types/components/pointCloudView/index.d.ts +2 -0
- package/dist/types/constant/index.d.ts +2 -1
- package/dist/types/store/annotation/actionCreators.d.ts +1 -1
- package/dist/types/store/annotation/map.d.ts +1 -0
- package/dist/types/store/annotation/reducer.d.ts +4 -0
- package/dist/types/store/annotation/types.d.ts +3 -2
- package/dist/types/views/MainView/index.d.ts +2 -0
- package/dist/types/views/MainView/sidebar/GeneralOperation/ActionsConfirm.d.ts +3 -0
- package/dist/types/views/MainView/sidebar/GeneralOperation/index.d.ts +9 -0
- package/dist/types/views/MainView/sidebar/index.d.ts +2 -0
- package/dist/utils/ToolPointCloudBoxRenderHelper.js +1 -1
- package/dist/views/MainView/LLMMultiWheelLayout/index.js +1 -1
- package/dist/views/MainView/index.js +1 -1
- package/dist/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -1
- package/dist/views/MainView/sidebar/GeneralOperation/index.js +1 -1
- package/dist/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
- package/dist/views/MainView/sidebar/ToolIcons.js +1 -1
- package/dist/views/MainView/sidebar/index.js +1 -1
- package/es/_virtual/2DViewWorker.js +1 -1
- package/es/assets/annotation/rectTool/three_points_rect.svg.js +1 -0
- package/es/assets/annotation/rectTool/two_points_rect.svg.js +1 -0
- package/es/components/DynamicResizer/DynamicResizer.js +1 -1
- package/es/components/DynamicResizer/hooks/useDrag.js +1 -1
- package/es/components/DynamicResizer/hooks/useDraggingAllowed.js +1 -0
- package/es/components/DynamicResizer/hooks/useUpdateHeight.js +1 -1
- package/es/components/DynamicResizer/utils/index.js +1 -0
- package/es/components/LLMMultiWheelView/dialogView/index.js +1 -1
- package/es/components/LLMMultiWheelView/index.js +1 -1
- package/es/components/LLMMultiWheelView/sidebar/index.js +1 -1
- package/es/components/LLMToolView/index.js +1 -1
- package/es/components/LLMToolView/questionView/components/audioView/index.js +1 -0
- package/es/components/LLMToolView/questionView/components/header/index.js +1 -1
- package/es/components/LLMToolView/questionView/index.js +1 -1
- package/es/components/attributeList/index.js +1 -1
- package/es/components/audioAnnotate/index.js +1 -1
- package/es/components/audioAnnotate/textInput/index.js +1 -1
- package/es/components/audioAnnotate/textInput/index.module.scss.js +1 -1
- package/es/components/audioPlayer/index.js +1 -1
- package/es/components/longText/index.js +1 -1
- package/es/components/pointCloudView/PointCloud2DView.js +1 -1
- package/es/components/pointCloudView/PointCloud3DView.js +1 -1
- package/es/components/pointCloudView/PointCloudContext.js +1 -1
- package/es/components/pointCloudView/PointCloudListener.js +1 -1
- package/es/components/pointCloudView/PointCloudTopView.js +1 -1
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js +1 -1
- package/es/components/pointCloudView/hooks/usePointCloudAttribute.js +1 -0
- package/es/components/pointCloudView/hooks/usePointCloudViews.js +1 -1
- package/es/components/pointCloudView/hooks/useUpdatePointCloudColor.js +1 -1
- package/es/components/pointCloudView/index.js +1 -1
- package/es/components/tagList/index.js +1 -1
- package/es/constant/index.js +1 -1
- package/es/index.css +116 -89
- package/es/store/annotation/actionCreators.js +1 -1
- package/es/store/annotation/reducer.js +1 -1
- package/es/utils/ToolPointCloudBoxRenderHelper.js +1 -1
- package/es/views/MainView/LLMMultiWheelLayout/index.js +1 -1
- package/es/views/MainView/index.js +1 -1
- package/es/views/MainView/sidebar/GeneralOperation/ActionsConfirm.js +1 -1
- package/es/views/MainView/sidebar/GeneralOperation/index.js +1 -1
- package/es/views/MainView/sidebar/PointCloudToolSidebar/index.js +1 -1
- package/es/views/MainView/sidebar/ToolIcons.js +1 -1
- package/es/views/MainView/sidebar/index.js +1 -1
- package/package.json +6 -6
- package/dist/components/DynamicResizer/assets/bottomToZero.svg.js +0 -1
- package/dist/components/DynamicResizer/assets/divider.svg.js +0 -1
- package/dist/components/DynamicResizer/assets/topToZero.svg.js +0 -1
- package/es/components/DynamicResizer/assets/bottomToZero.svg.js +0 -1
- package/es/components/DynamicResizer/assets/divider.svg.js +0 -1
- package/es/components/DynamicResizer/assets/topToZero.svg.js +0 -1
package/dist/index.css
CHANGED
|
@@ -81,73 +81,62 @@
|
|
|
81
81
|
margin-right: 8px;
|
|
82
82
|
}
|
|
83
83
|
.dynamic-resizer-content {
|
|
84
|
+
display: flex;
|
|
84
85
|
width: 100%;
|
|
85
86
|
height: 100%;
|
|
86
|
-
flex-shrink: 0;
|
|
87
|
-
flex-grow: 0;
|
|
88
87
|
position: relative;
|
|
88
|
+
overflow: hidden;
|
|
89
89
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
position: absolute;
|
|
95
|
-
top: -5px;
|
|
96
|
-
left: 0;
|
|
97
|
-
cursor: row-resize;
|
|
98
|
-
user-select: none;
|
|
99
|
-
display: flex;
|
|
100
|
-
align-items: center;
|
|
90
|
+
.dynamic-resizer-content.horizontal {
|
|
91
|
+
flex-direction: row;
|
|
92
|
+
}
|
|
93
|
+
.dynamic-resizer-content.vertical {
|
|
101
94
|
flex-direction: column;
|
|
102
|
-
justify-content: center;
|
|
103
95
|
}
|
|
104
|
-
.
|
|
105
|
-
display:
|
|
96
|
+
.dynamic-resizer-content .resizable-container {
|
|
97
|
+
display: flex;
|
|
106
98
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
99
|
+
.dynamic-resizer-content .resizable-child {
|
|
100
|
+
width: 100%;
|
|
101
|
+
height: 100%;
|
|
102
|
+
}
|
|
103
|
+
.dynamic-resizer-content .resizable-child-two {
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
overflow-y: auto;
|
|
107
|
+
position: relative;
|
|
108
|
+
}
|
|
109
|
+
.dynamic-resizer-content .divider-all {
|
|
111
110
|
width: 20px;
|
|
112
111
|
height: 20px;
|
|
113
|
-
cursor: pointer;
|
|
114
|
-
display: none;
|
|
115
|
-
user-select: none;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.divider-all {
|
|
119
112
|
position: absolute;
|
|
120
|
-
top:
|
|
113
|
+
top: 0;
|
|
121
114
|
left: 50%;
|
|
122
|
-
transform: translate(-50%);
|
|
115
|
+
transform: translate(-50%, -50%);
|
|
116
|
+
z-index: 1;
|
|
123
117
|
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
width:
|
|
127
|
-
height:
|
|
128
|
-
position: relative;
|
|
118
|
+
.dynamic-resizer-content .split-divider {
|
|
119
|
+
background-color: #ccc;
|
|
120
|
+
width: 5px;
|
|
121
|
+
height: 100%;
|
|
129
122
|
}
|
|
130
|
-
.
|
|
123
|
+
.dynamic-resizer-content .dynamic-right-handle {
|
|
124
|
+
cursor: ew-resize !important;
|
|
125
|
+
z-index: 100;
|
|
126
|
+
}
|
|
127
|
+
.dynamic-resizer-content .dynamic-bottom-handle {
|
|
128
|
+
cursor: ns-resize !important;
|
|
129
|
+
z-index: 100;
|
|
130
|
+
}
|
|
131
|
+
.dynamic-resizer-content .dynamic-bottom-handle::after {
|
|
131
132
|
content: "";
|
|
132
|
-
display: block;
|
|
133
133
|
position: absolute;
|
|
134
|
-
top: 50%;
|
|
135
134
|
left: 0;
|
|
136
135
|
right: 0;
|
|
137
|
-
|
|
136
|
+
top: 50%;
|
|
137
|
+
transform: translateY(-50%);
|
|
138
138
|
height: 1px;
|
|
139
139
|
background: #ccc;
|
|
140
|
-
margin: 0 auto;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.dynamic-resizer-top {
|
|
144
|
-
width: 100%;
|
|
145
|
-
overflow-y: auto;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
.dynamic-resizer-bottom {
|
|
149
|
-
width: 100%;
|
|
150
|
-
overflow-y: auto;
|
|
151
140
|
}
|
|
152
141
|
|
|
153
142
|
.hide-scrollbar * {
|
|
@@ -262,7 +251,6 @@
|
|
|
262
251
|
}
|
|
263
252
|
.index-module_tagList__cvWor .index-module_right__RHSL5 .index-module_tagItem__hicyz {
|
|
264
253
|
display: flex;
|
|
265
|
-
max-width: 60px;
|
|
266
254
|
}
|
|
267
255
|
.index-module_tagList__cvWor .index-module_right__RHSL5 .index-module_disabled__lpoBn {
|
|
268
256
|
animation: none;
|
|
@@ -1018,6 +1006,16 @@
|
|
|
1018
1006
|
.index-module_clearIcon__ZBZqI.index-module_disabled__zqh8C {
|
|
1019
1007
|
cursor: not-allowed;
|
|
1020
1008
|
}
|
|
1009
|
+
|
|
1010
|
+
.index-module_textInputBox__C6pdt {
|
|
1011
|
+
flex: 1;
|
|
1012
|
+
overflow: scroll;
|
|
1013
|
+
text-align: center;
|
|
1014
|
+
}
|
|
1015
|
+
.index-module_textInputBox__C6pdt .index-module_textInputChild__SOQT6 {
|
|
1016
|
+
display: inline-block;
|
|
1017
|
+
width: 65%;
|
|
1018
|
+
}
|
|
1021
1019
|
.index-module_optionMenu__-aO65 {
|
|
1022
1020
|
display: flex;
|
|
1023
1021
|
flex-direction: column;
|
|
@@ -1537,6 +1535,14 @@
|
|
|
1537
1535
|
.bee-sidebar__toolOption + .bee-sidebar__toolOption {
|
|
1538
1536
|
margin-left: 16px;
|
|
1539
1537
|
}
|
|
1538
|
+
.bee-sidebar__multiBox {
|
|
1539
|
+
display: flex;
|
|
1540
|
+
align-items: center;
|
|
1541
|
+
margin: 0 5px;
|
|
1542
|
+
}
|
|
1543
|
+
.bee-sidebar__dropdown .ant-dropdown-menu-item:not(.ant-dropdown-menu-item-selected) {
|
|
1544
|
+
color: #999999;
|
|
1545
|
+
}
|
|
1540
1546
|
.bee-sidebar__singleTool {
|
|
1541
1547
|
max-width: 20px;
|
|
1542
1548
|
max-height: 20px;
|
|
@@ -2606,17 +2612,22 @@
|
|
|
2606
2612
|
line-height: 40px;
|
|
2607
2613
|
display: flex;
|
|
2608
2614
|
justify-content: space-between;
|
|
2615
|
+
height: auto;
|
|
2609
2616
|
}
|
|
2610
2617
|
.bee-point-cloud-wrapper .bee-point-cloud-container__header-title {
|
|
2611
|
-
flex:
|
|
2618
|
+
flex-shrink: 0;
|
|
2612
2619
|
overflow: hidden;
|
|
2613
2620
|
text-overflow: ellipsis;
|
|
2614
2621
|
font-weight: 500;
|
|
2622
|
+
height: 40px;
|
|
2615
2623
|
}
|
|
2616
2624
|
.bee-point-cloud-wrapper .bee-point-cloud-container__header-toolbar {
|
|
2625
|
+
flex: 1;
|
|
2617
2626
|
display: flex;
|
|
2618
2627
|
align-items: center;
|
|
2619
2628
|
font-size: 14px;
|
|
2629
|
+
flex-wrap: wrap;
|
|
2630
|
+
justify-content: flex-end;
|
|
2620
2631
|
}
|
|
2621
2632
|
.bee-point-cloud-wrapper .bee-point-cloud-container__header-toolbar .bee-point-cloud__rotate-reserve {
|
|
2622
2633
|
display: inline-block;
|
|
@@ -2703,8 +2714,13 @@
|
|
|
2703
2714
|
.bee-point-cloud-wrapper .bee-point-cloud-container__zoom .bee-point-cloud-highlight-view {
|
|
2704
2715
|
display: none;
|
|
2705
2716
|
}
|
|
2706
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left {
|
|
2717
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large {
|
|
2707
2718
|
width: 455px;
|
|
2719
|
+
}
|
|
2720
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge {
|
|
2721
|
+
width: 100%;
|
|
2722
|
+
}
|
|
2723
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge {
|
|
2708
2724
|
display: flex;
|
|
2709
2725
|
flex-direction: column;
|
|
2710
2726
|
border-right: 1px solid #fff;
|
|
@@ -2712,22 +2728,23 @@
|
|
|
2712
2728
|
overflow: hidden;
|
|
2713
2729
|
flex-shrink: 0;
|
|
2714
2730
|
}
|
|
2715
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container {
|
|
2731
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container {
|
|
2732
|
+
background: #444;
|
|
2716
2733
|
display: flex;
|
|
2717
2734
|
flex-direction: column;
|
|
2718
2735
|
overflow: hidden;
|
|
2719
2736
|
flex: 1;
|
|
2720
2737
|
}
|
|
2721
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-content {
|
|
2738
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-content, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-content {
|
|
2722
2739
|
display: flex;
|
|
2723
2740
|
flex: 1;
|
|
2724
2741
|
overflow: hidden;
|
|
2725
2742
|
}
|
|
2726
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-content .bee-point-cloud-3d-view {
|
|
2743
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-content .bee-point-cloud-3d-view, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-content .bee-point-cloud-3d-view {
|
|
2727
2744
|
flex: 1;
|
|
2728
2745
|
overflow: hidden;
|
|
2729
2746
|
}
|
|
2730
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebar {
|
|
2747
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebar, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebar {
|
|
2731
2748
|
transition: width 0.5s;
|
|
2732
2749
|
padding-left: 16px;
|
|
2733
2750
|
height: 100%;
|
|
@@ -2739,10 +2756,10 @@
|
|
|
2739
2756
|
justify-content: flex-start;
|
|
2740
2757
|
overflow-y: scroll;
|
|
2741
2758
|
}
|
|
2742
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebar::-webkit-scrollbar {
|
|
2759
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebar::-webkit-scrollbar, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebar::-webkit-scrollbar {
|
|
2743
2760
|
display: none;
|
|
2744
2761
|
}
|
|
2745
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__reset, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__followTop {
|
|
2762
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__reset, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__followTop, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__reset, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__followTop {
|
|
2746
2763
|
display: inline-block;
|
|
2747
2764
|
height: 36px;
|
|
2748
2765
|
width: 36px;
|
|
@@ -2754,16 +2771,16 @@
|
|
|
2754
2771
|
background-color: #444;
|
|
2755
2772
|
border-radius: 4px;
|
|
2756
2773
|
}
|
|
2757
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__reset {
|
|
2774
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__reset, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__reset {
|
|
2758
2775
|
background-image: url("../dist/assets/icons/25ef334b.svg");
|
|
2759
2776
|
margin: 16px 0;
|
|
2760
2777
|
}
|
|
2761
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__followTop {
|
|
2778
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__followTop, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__followTop {
|
|
2762
2779
|
margin: 16px 0 0 0;
|
|
2763
2780
|
background-size: 36px;
|
|
2764
2781
|
background-image: url("../dist/assets/icons/aa147cfc.png");
|
|
2765
2782
|
}
|
|
2766
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__top, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__front, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__left, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__right, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__back, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__bottom, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__lft, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__rbt {
|
|
2783
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__top, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__front, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__left, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__right, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__back, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__bottom, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__lft, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__rbt, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__top, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__front, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__left, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__right, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__back, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__bottom, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__lft, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__rbt {
|
|
2767
2784
|
display: inline-block;
|
|
2768
2785
|
height: 36px;
|
|
2769
2786
|
width: 36px;
|
|
@@ -2773,60 +2790,60 @@
|
|
|
2773
2790
|
background-image: url("../dist/assets/icons/c5b4262e.png");
|
|
2774
2791
|
margin-bottom: 8px;
|
|
2775
2792
|
}
|
|
2776
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__top.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__front.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__left.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__right.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__back.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__bottom.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__lft.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__rbt.active {
|
|
2793
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__top.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__front.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__left.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__right.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__back.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__bottom.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__lft.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__rbt.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__top.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__front.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__left.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__right.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__back.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__bottom.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__lft.active, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__rbt.active {
|
|
2777
2794
|
background-image: url("../dist/assets/icons/e4f0b7fe.png");
|
|
2778
2795
|
}
|
|
2779
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__top {
|
|
2796
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__top, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__top {
|
|
2780
2797
|
background-position: 0 0;
|
|
2781
2798
|
}
|
|
2782
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__front {
|
|
2799
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__front, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__front {
|
|
2783
2800
|
background-position-y: -44px;
|
|
2784
2801
|
}
|
|
2785
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__left {
|
|
2802
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__left, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__left {
|
|
2786
2803
|
background-position-y: -88px;
|
|
2787
2804
|
}
|
|
2788
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__back {
|
|
2805
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__back, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__back {
|
|
2789
2806
|
background-position-y: -132px;
|
|
2790
2807
|
}
|
|
2791
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__right {
|
|
2808
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__right, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__right {
|
|
2792
2809
|
background-position-y: -176px;
|
|
2793
2810
|
}
|
|
2794
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__bottom {
|
|
2811
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__bottom, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__bottom {
|
|
2795
2812
|
background-position-y: -220px;
|
|
2796
2813
|
}
|
|
2797
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__lft {
|
|
2814
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__lft, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__lft {
|
|
2798
2815
|
background-position-y: -264px;
|
|
2799
2816
|
}
|
|
2800
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__rbt {
|
|
2817
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-view__rbt, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-view__rbt {
|
|
2801
2818
|
background-position-y: -308px;
|
|
2802
2819
|
margin-bottom: 0px;
|
|
2803
2820
|
}
|
|
2804
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom {
|
|
2821
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom {
|
|
2805
2822
|
padding-left: 16px;
|
|
2806
2823
|
height: 100%;
|
|
2807
2824
|
background-color: #4c4c4c;
|
|
2808
2825
|
box-sizing: content-box;
|
|
2809
2826
|
display: flex;
|
|
2810
2827
|
}
|
|
2811
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__reset {
|
|
2828
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__reset, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__reset {
|
|
2812
2829
|
margin: 0px 4px;
|
|
2813
2830
|
}
|
|
2814
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__followTop {
|
|
2831
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__followTop, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__followTop {
|
|
2815
2832
|
margin: 0px 4px;
|
|
2816
2833
|
}
|
|
2817
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__top, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__front, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__left, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__right, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__back, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__bottom, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__lft, .bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__rbt {
|
|
2834
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__top, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__front, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__left, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__right, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__back, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__bottom, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__lft, .bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__rbt, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__top, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__front, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__left, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__right, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__back, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__bottom, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__lft, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom .bee-point-cloud-3d-view__rbt {
|
|
2818
2835
|
background-color: #444;
|
|
2819
2836
|
border-radius: 4px;
|
|
2820
2837
|
margin: 0px 4px;
|
|
2821
2838
|
}
|
|
2822
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom-float {
|
|
2839
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom-float, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom-float {
|
|
2823
2840
|
position: fixed;
|
|
2824
2841
|
bottom: 0px;
|
|
2825
2842
|
right: 0px;
|
|
2826
2843
|
z-index: 1003;
|
|
2827
2844
|
border: 1px solid #fff;
|
|
2828
2845
|
}
|
|
2829
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom-float .bee-point-cloud-container__left-bottom-floatHeader {
|
|
2846
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom-float .bee-point-cloud-container__left-bottom-floatHeader, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom-float .bee-point-cloud-container__left-bottom-floatHeader {
|
|
2830
2847
|
line-height: 24px;
|
|
2831
2848
|
font-size: 12px;
|
|
2832
2849
|
width: 100%;
|
|
@@ -2835,13 +2852,13 @@
|
|
|
2835
2852
|
text-align: center;
|
|
2836
2853
|
cursor: grabbing;
|
|
2837
2854
|
}
|
|
2838
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom {
|
|
2855
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom {
|
|
2839
2856
|
flex: 1;
|
|
2840
2857
|
flex-direction: column;
|
|
2841
2858
|
display: flex;
|
|
2842
2859
|
overflow: hidden;
|
|
2843
2860
|
}
|
|
2844
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__empty-page {
|
|
2861
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom .bee-point-cloud-container__empty-page, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom .bee-point-cloud-container__empty-page {
|
|
2845
2862
|
position: absolute;
|
|
2846
2863
|
left: 0;
|
|
2847
2864
|
top: 0;
|
|
@@ -2857,11 +2874,12 @@
|
|
|
2857
2874
|
height: 100%;
|
|
2858
2875
|
width: 100%;
|
|
2859
2876
|
}
|
|
2860
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__empty-page .bee-point-cloud-container__empty-page__text {
|
|
2877
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom .bee-point-cloud-container__empty-page .bee-point-cloud-container__empty-page__text, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom .bee-point-cloud-container__empty-page .bee-point-cloud-container__empty-page__text {
|
|
2861
2878
|
margin-top: 8px;
|
|
2862
2879
|
}
|
|
2863
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view,
|
|
2864
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view
|
|
2880
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view,
|
|
2881
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view,
|
|
2882
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view {
|
|
2865
2883
|
position: relative;
|
|
2866
2884
|
flex: 1;
|
|
2867
2885
|
display: flex;
|
|
@@ -2869,12 +2887,14 @@
|
|
|
2869
2887
|
flex-direction: column;
|
|
2870
2888
|
border-top: 1px solid white;
|
|
2871
2889
|
}
|
|
2872
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view .bee-point-cloud-container__bottom-view-content,
|
|
2873
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view .bee-point-cloud-container__bottom-view-content
|
|
2874
|
-
|
|
2890
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view .bee-point-cloud-container__bottom-view-content,
|
|
2891
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view .bee-point-cloud-container__bottom-view-content, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view .bee-point-cloud-container__bottom-view-content,
|
|
2892
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view .bee-point-cloud-container__bottom-view-content {
|
|
2893
|
+
height: 100%;
|
|
2875
2894
|
}
|
|
2876
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view .bee-point-cloud-container__bottom-view-content .bee-point-cloud-container__core-instance,
|
|
2877
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view .bee-point-cloud-container__bottom-view-content .bee-point-cloud-container__core-instance
|
|
2895
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view .bee-point-cloud-container__bottom-view-content .bee-point-cloud-container__core-instance,
|
|
2896
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view .bee-point-cloud-container__bottom-view-content .bee-point-cloud-container__core-instance, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view .bee-point-cloud-container__bottom-view-content .bee-point-cloud-container__core-instance,
|
|
2897
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view .bee-point-cloud-container__bottom-view-content .bee-point-cloud-container__core-instance {
|
|
2878
2898
|
position: relative;
|
|
2879
2899
|
width: 100%;
|
|
2880
2900
|
height: 100%;
|
|
@@ -2900,13 +2920,15 @@
|
|
|
2900
2920
|
font-size: 14px;
|
|
2901
2921
|
}
|
|
2902
2922
|
.bee-point-cloud-wrapper .bee-point-cloud-container__right {
|
|
2903
|
-
|
|
2923
|
+
width: 100%;
|
|
2924
|
+
height: 100%;
|
|
2904
2925
|
display: flex;
|
|
2905
2926
|
flex-direction: column;
|
|
2906
2927
|
overflow: hidden;
|
|
2907
2928
|
background-color: #444;
|
|
2908
2929
|
}
|
|
2909
2930
|
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__top-view {
|
|
2931
|
+
height: 100%;
|
|
2910
2932
|
border-bottom: 1px solid #fff;
|
|
2911
2933
|
overflow: hidden;
|
|
2912
2934
|
display: flex;
|
|
@@ -2934,18 +2956,23 @@
|
|
|
2934
2956
|
border-right: 1px solid #fff;
|
|
2935
2957
|
border-bottom: 1px solid #fff;
|
|
2936
2958
|
}
|
|
2937
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom {
|
|
2959
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom-large {
|
|
2938
2960
|
flex: 1;
|
|
2961
|
+
}
|
|
2962
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom-noLarge {
|
|
2963
|
+
height: 100%;
|
|
2964
|
+
}
|
|
2965
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom-large, .bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom-noLarge {
|
|
2939
2966
|
display: flex;
|
|
2940
2967
|
overflow: auto;
|
|
2941
2968
|
}
|
|
2942
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom .bee-point-cloud-2d-container {
|
|
2969
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom-large .bee-point-cloud-2d-container, .bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom-noLarge .bee-point-cloud-2d-container {
|
|
2943
2970
|
flex-direction: column;
|
|
2944
2971
|
display: flex;
|
|
2945
2972
|
overflow: hidden;
|
|
2946
2973
|
flex-shrink: 0;
|
|
2947
2974
|
}
|
|
2948
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom .bee-point-cloud-2d-image {
|
|
2975
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom-large .bee-point-cloud-2d-image, .bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom-noLarge .bee-point-cloud-2d-image {
|
|
2949
2976
|
flex: 1;
|
|
2950
2977
|
height: 100%;
|
|
2951
2978
|
background-color: #4c4c4c;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Actions=require("../Actions.js"),reducer=require("./reducer.js"),index=require("../../constant/index.js"),AnnotationSize=require("../../data/enums/AnnotationSize.js"),PageOperator=require("../../utils/PageOperator.js"),index$1=require("../../utils/index.js"),util=require("../../components/predictTracking/previewResult/util.js"),__async=(t,e,n)=>new Promise((a,r)=>{var o=s=>{try{T(n.next(s))}catch(p){r(p)}},i=s=>{try{T(n.throw(s))}catch(p){r(p)}},T=s=>s.done?a(s.value):Promise.resolve(s.value).then(o,i);T((n=n.apply(t,e)).next())});const dispatchTasks=(t,e)=>e.map(n=>t(n)),getSubmitByPageOperation=t=>t===AnnotationSize.EPageTurningOperation.Forward?index.ESubmitType.Forward:t===AnnotationSize.EPageTurningOperation.Backward?index.ESubmitType.Backward:t===AnnotationSize.EPageTurningOperation.Jump?index.ESubmitType.Jump:index.ESubmitType.Forward,getBasicIndex=(t,e)=>{var n,a,r;const{imgList:o,imgIndex:i}=t,{dataSourceStep:T}=reducer.getStepConfig(t.stepList,t.step);return((r=(a=index$1.jsonParser((n=o[i-1])==null?void 0:n.result)[`step_${T}`])==null?void 0:a.result)==null?void 0:r.length)-1||e};function UpdateToolInstance(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_TOOL_INSTANCE,payload:{toolInstance:t}}}function SetTaskStepList({stepList:t}){return{type:Actions.ANNOTATION_ACTIONS.SET_TASK_STEP_LIST,payload:{stepList:t}}}function SetTaskConfig({stepList:t,step:e}){return{type:Actions.ANNOTATION_ACTIONS.SET_TASK_CONFIG,payload:{stepList:t,step:e}}}function UpdateOnSubmit(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_SUBMIT,payload:{onSubmit:t}}}function UpdateOnSave(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_SAVE,payload:{onSave:t}}}function UpdateOnPageChange(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_PAGE_CHANGE,payload:{onPageChange:t}}}function UpdateOnStepChange(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_STEP_CHANGE,payload:{onStepChange:t}}}function UpdateGetFileData(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_GET_FILE_DATA,payload:{getFileData:t}}}function UpdatePageSize(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_PAGE_SIZE,payload:{pageSize:t}}}function UpdateGetFileList(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_LOAD_FILE_LIST,payload:{loadFileList:t}}}function UpdateRotate(){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ROTATE}}function UpdateSkipBeforePageTurning(t){return{type:Actions.ANNOTATION_ACTIONS.SKIP_BEFORE_PAGE_TURNING,payload:{skipBeforePageTurning:t}}}function UpdateBeforeRotate(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_BEFORE_ROTATE,payload:{beforeRotate:t}}}function UpdatePreDataProcess(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_PRE_DATA_PROCESS,payload:{preDataProcess:t}}}function CopyBackWordResult(){return{type:Actions.ANNOTATION_ACTIONS.COPY_BACKWARD_RESULT}}function UpdateImgIndexByExternal(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_IMG_INDEX_BY_EXTERNAL,payload:{getImgIndexByExternal:t}}}function BatchUpdateTrackID({id:t,newID:e,rangeIndex:n,imgList:a}){return{type:Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_TRACK_ID,payload:{id:t,newID:e,rangeIndex:n,imgList:a}}}function BatchUpdateResultByTrackID(t,e,n){return{type:Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_RESULT_BY_TRACK_ID,payload:{id:t,newData:e,rangeIndex:n}}}function BatchUpdateImgListResultByPredictResult(){return{type:Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT,payload:{}}}const UpdateCheckMode=t=>({type:Actions.ANNOTATION_ACTIONS.SET_CHECK_MODE,payload:{checkMode:t}}),UpdateHighlightAttribute=t=>({type:Actions.ANNOTATION_ACTIONS.SET_HIGHLIGHT_ATTRIBUTE,payload:{attribute:t}});function InitTaskData({onSubmit:t,onSave:e,onPageChange:n,onStepChange:a,getFileData:r,pageSize:o,loadFileList:i,step:T,stepList:s,skipBeforePageTurning:p,beforeRotate:N,checkMode:A,highlightAttribute:d,preDataProcess:I,getImgIndexByExternal:l}){const u=[];return t&&u.push(UpdateOnSubmit(t)),e&&u.push(UpdateOnSave(e)),n&&u.push(UpdateOnPageChange(n)),a&&u.push(UpdateOnStepChange(a)),r&&u.push(UpdateGetFileData(r)),i&&u.push(UpdateGetFileList(i)),o&&u.push(UpdatePageSize(o)),p&&u.push(UpdateSkipBeforePageTurning(p)),N&&u.push(UpdateBeforeRotate(N)),I&&u.push(UpdatePreDataProcess(I)),typeof A=="boolean"&&u.push(UpdateCheckMode(A)),l&&u.push(UpdateImgIndexByExternal(l)),u.push(UpdateHighlightAttribute(d)),u.push(SetTaskConfig({stepList:s,step:T})),u.push({type:Actions.ANNOTATION_ACTIONS.CALC_STEP_PROGRESS}),u.push({type:Actions.ANNOTATION_ACTIONS.INIT_TOOL}),O=>dispatchTasks(O,u)}function UpdateInjectFunc({onSubmit:t,onSave:e,onPageChange:n,onStepChange:a,getFileData:r,pageSize:o,loadFileList:i,stepList:T,beforeRotate:s,highlightAttribute:p,preDataProcess:N}){const A=[];return t&&A.push(UpdateOnSubmit(t)),e&&A.push(UpdateOnSave(e)),n&&A.push(UpdateOnPageChange(n)),a&&A.push(UpdateOnStepChange(a)),r&&A.push(UpdateGetFileData(r)),i&&A.push(UpdateGetFileList(i)),o&&A.push(UpdatePageSize(o)),s&&A.push(UpdateBeforeRotate(s)),N&&A.push(UpdatePreDataProcess(N)),A.push(UpdateHighlightAttribute(p)),A.push(SetTaskStepList({stepList:T})),d=>dispatchTasks(d,A)}const getNextStep=(t,e)=>{var n;const a=e==null?void 0:e.findIndex(r=>(r==null?void 0:r.step)===t);return(n=e[a+1])==null?void 0:n.step},ToNextStep=t=>(e,n)=>{const{annotation:a}=n(),{step:r,stepList:o}=a,i=getNextStep(r,o);return[e(UpdateProcessingStep(i,t))]},UpdateProcessingStep=(t,e)=>(n,a)=>{var r,o;const{annotation:i}=a();(r=i==null?void 0:i.onStepChange)==null||r.call(i,t);const T=(o=i==null?void 0:i.imgIndex)!=null?o:0;return[n({type:Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT}),n({type:Actions.ANNOTATION_ACTIONS.SUBMIT_FILE_DATA,payload:{submitType:index.ESubmitType.StepChanged}}),n({type:Actions.ANNOTATION_ACTIONS.SET_STEP,payload:{toStep:t}}),n({type:Actions.ANNOTATION_ACTIONS.CALC_STEP_PROGRESS}),n(reducer.LoadFileAndFileData(e!=null?e:T,0))]},ToSubmitFileData=t=>e=>[e({type:Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT}),e({type:Actions.ANNOTATION_ACTIONS.SUBMIT_FILE_DATA,payload:{submitType:t}})],SubmitAndChangeFileIndex=(t,e,n,a)=>__async(void 0,null,function*(){t(ToSubmitFileData(n)),yield t(SubmitHandler(n)),t(reducer.LoadFileAndFileData(e,a))}),ChangeBasicIndex=(t,e)=>[t({type:Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT}),t({type:Actions.ANNOTATION_ACTIONS.SET_BASIC_INDEX,payload:{basicIndex:e}})],ChangeTriggerEventAfterIndexChanged=(t,e)=>{t({type:Actions.ANNOTATION_ACTIONS.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED,payload:{triggerEventAfterIndexChanged:e}})},PageBackward=(t=!1)=>(e,n)=>DispatcherTurning(e,n,AnnotationSize.EPageTurningOperation.Backward,t),PageForward=(t=!1)=>(e,n)=>DispatcherTurning(e,n,AnnotationSize.EPageTurningOperation.Forward,t),PageJump=(t,e=!1)=>(n,a)=>{if(t!==a().imgIndex)return DispatcherTurning(n,a,AnnotationSize.EPageTurningOperation.Jump,e,t)},loadImgList=(t,e,n,a)=>__async(void 0,null,function*(){var r;const{loadFileList:o,imgList:i,pageSize:T}=e().annotation,s=Math.floor(n/T);SetAnnotationLoading(t,!0);try{const p=yield o(s,T);if(SetAnnotationLoading(t,!1),!((r=p==null?void 0:p.fileList)==null?void 0:r.length)||!(p==null?void 0:p.total))throw new Error("fileList and total are required");const N=a?new Array(p.total):[...i];return N.splice(s*T,T,...p.fileList),t({type:Actions.ANNOTATION_ACTIONS.UPDATE_IMG_LIST,payload:{imgList:N}}),!0}catch(p){SetAnnotationLoading(t,!1),console.error(p)}}),DispatcherTurning=(t,e,n,a=!1,r)=>__async(void 0,null,function*(){var o,i;const T=e().annotation,s=getSubmitByPageOperation(n);let{fileIndexChanged:p,fileIndex:N,basicIndexChanged:A,basicIndex:d}=PageOperator.getNextPageInfo(n,T,r);const I=(o=T==null?void 0:T.getImgIndexByExternal)==null?void 0:o.call(T,T.imgIndex,s);if(I!==void 0&&(p=!0,N=I),ChangeTriggerEventAfterIndexChanged(t,a),p){if(T.loading||!T.imgList[N]&&!(yield loadImgList(t,e,N)))return;const l=e();(i=T.onPageChange)==null||i.call(T,N);const u=s===index.ESubmitType.Backward?getBasicIndex(l.annotation,d):d;return SubmitAndChangeFileIndex(t,N,s,u)}return A?ChangeBasicIndex(t,d):t(ToSubmitFileData(s))}),ChangeSave=t=>{t(ToSubmitFileData(index.ESubmitType.Save)),t({type:Actions.ANNOTATION_ACTIONS.SAVE_RESULT})},SetAnnotationLoading=(t,e)=>{t({type:Actions.ANNOTATION_ACTIONS.SET_LOADING,payload:{loading:e}})},SetLoadPCDFileLoading=(t,e)=>{t({type:Actions.ANNOTATION_ACTIONS.SET_LOADPCDFILE_LOADING,payload:{loadPCDFileLoading:e}})},InitAnnotationState=t=>{t({type:Actions.ANNOTATION_ACTIONS.INIT_ALL_STATE,payload:{}})},SetPredictResult=(t,e)=>{t({type:Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT,payload:{result:e}})},SetPredictResultVisible=(t,e)=>{t({type:Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT_VISIBLE,payload:{visible:e}})},GetBoxesByID=(t,e)=>(n,a)=>{const{imgList:r,step:o}=a().annotation;return util.getBoxesByTrackID(r,o,t,e)},PreDataProcess=t=>(e,n)=>{var a,r;const{annotation:o}=n();return(r=(a=o==null?void 0:o.preDataProcess)==null?void 0:a.call(o,t))!=null?r:t.dataList},SubmitHandler=t=>(e,n)=>__async(void 0,null,function*(){const{annotation:a}=n(),{onSubmit:r,imgIndex:o,imgList:i}=a;!r||(yield r([i[o]],t,o,i))});exports.BatchUpdateImgListResultByPredictResult=BatchUpdateImgListResultByPredictResult,exports.BatchUpdateResultByTrackID=BatchUpdateResultByTrackID,exports.BatchUpdateTrackID=BatchUpdateTrackID,exports.ChangeSave=ChangeSave,exports.CopyBackWordResult=CopyBackWordResult,exports.DispatcherTurning=DispatcherTurning,exports.GetBoxesByID=GetBoxesByID,exports.InitAnnotationState=InitAnnotationState,exports.InitTaskData=InitTaskData,exports.PageBackward=PageBackward,exports.PageForward=PageForward,exports.PageJump=PageJump,exports.PreDataProcess=PreDataProcess,exports.SetAnnotationLoading=SetAnnotationLoading,exports.SetLoadPCDFileLoading=SetLoadPCDFileLoading,exports.SetPredictResult=SetPredictResult,exports.SetPredictResultVisible=SetPredictResultVisible,exports.SetTaskConfig=SetTaskConfig,exports.SetTaskStepList=SetTaskStepList,exports.SubmitHandler=SubmitHandler,exports.ToNextStep=ToNextStep,exports.ToSubmitFileData=ToSubmitFileData,exports.UpdateBeforeRotate=UpdateBeforeRotate,exports.UpdateCheckMode=UpdateCheckMode,exports.UpdateGetFileData=UpdateGetFileData,exports.UpdateGetFileList=UpdateGetFileList,exports.UpdateHighlightAttribute=UpdateHighlightAttribute,exports.UpdateImgIndexByExternal=UpdateImgIndexByExternal,exports.UpdateInjectFunc=UpdateInjectFunc,exports.UpdateOnPageChange=UpdateOnPageChange,exports.UpdateOnSave=UpdateOnSave,exports.UpdateOnStepChange=UpdateOnStepChange,exports.UpdateOnSubmit=UpdateOnSubmit,exports.UpdatePageSize=UpdatePageSize,exports.UpdatePreDataProcess=UpdatePreDataProcess,exports.UpdateProcessingStep=UpdateProcessingStep,exports.UpdateRotate=UpdateRotate,exports.UpdateSkipBeforePageTurning=UpdateSkipBeforePageTurning,exports.UpdateToolInstance=UpdateToolInstance,exports.loadImgList=loadImgList;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var Actions=require("../Actions.js"),reducer=require("./reducer.js"),index=require("../../constant/index.js"),AnnotationSize=require("../../data/enums/AnnotationSize.js"),PageOperator=require("../../utils/PageOperator.js"),index$1=require("../../utils/index.js"),util=require("../../components/predictTracking/previewResult/util.js"),__async=(t,e,n)=>new Promise((a,r)=>{var o=s=>{try{T(n.next(s))}catch(p){r(p)}},i=s=>{try{T(n.throw(s))}catch(p){r(p)}},T=s=>s.done?a(s.value):Promise.resolve(s.value).then(o,i);T((n=n.apply(t,e)).next())});const dispatchTasks=(t,e)=>e.map(n=>t(n)),getSubmitByPageOperation=t=>t===AnnotationSize.EPageTurningOperation.Forward?index.ESubmitType.Forward:t===AnnotationSize.EPageTurningOperation.Backward?index.ESubmitType.Backward:t===AnnotationSize.EPageTurningOperation.Jump?index.ESubmitType.Jump:index.ESubmitType.Forward,getBasicIndex=(t,e)=>{var n,a,r;const{imgList:o,imgIndex:i}=t,{dataSourceStep:T}=reducer.getStepConfig(t.stepList,t.step);return((r=(a=index$1.jsonParser((n=o[i-1])==null?void 0:n.result)[`step_${T}`])==null?void 0:a.result)==null?void 0:r.length)-1||e};function UpdateToolInstance(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_TOOL_INSTANCE,payload:{toolInstance:t}}}function SetTaskStepList({stepList:t}){return{type:Actions.ANNOTATION_ACTIONS.SET_TASK_STEP_LIST,payload:{stepList:t}}}function SetTaskConfig({stepList:t,step:e}){return{type:Actions.ANNOTATION_ACTIONS.SET_TASK_CONFIG,payload:{stepList:t,step:e}}}function UpdateOnSubmit(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_SUBMIT,payload:{onSubmit:t}}}function UpdateOnSave(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_SAVE,payload:{onSave:t}}}function UpdateOnPageChange(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_PAGE_CHANGE,payload:{onPageChange:t}}}function UpdateOnStepChange(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ON_STEP_CHANGE,payload:{onStepChange:t}}}function UpdateGetFileData(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_GET_FILE_DATA,payload:{getFileData:t}}}function UpdatePageSize(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_PAGE_SIZE,payload:{pageSize:t}}}function UpdateGetFileList(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_LOAD_FILE_LIST,payload:{loadFileList:t}}}function UpdateRotate(){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_ROTATE}}function UpdateSkipBeforePageTurning(t){return{type:Actions.ANNOTATION_ACTIONS.SKIP_BEFORE_PAGE_TURNING,payload:{skipBeforePageTurning:t}}}function UpdateBeforeRotate(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_BEFORE_ROTATE,payload:{beforeRotate:t}}}function UpdatePreDataProcess(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_PRE_DATA_PROCESS,payload:{preDataProcess:t}}}function CopyBackWordResult(){return{type:Actions.ANNOTATION_ACTIONS.COPY_BACKWARD_RESULT}}function UpdateImgIndexByExternal(t){return{type:Actions.ANNOTATION_ACTIONS.UPDATE_IMG_INDEX_BY_EXTERNAL,payload:{getImgIndexByExternal:t}}}function BatchUpdateTrackID({id:t,newID:e,rangeIndex:n,imgList:a}){return{type:Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_TRACK_ID,payload:{id:t,newID:e,rangeIndex:n,imgList:a}}}function BatchUpdateResultByTrackID(t,e,n,a){return{type:Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_RESULT_BY_TRACK_ID,payload:{id:t,newData:e,rangeIndex:n,imgList:a}}}function BatchUpdateImgListResultByPredictResult(){return{type:Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT,payload:{}}}const UpdateCheckMode=t=>({type:Actions.ANNOTATION_ACTIONS.SET_CHECK_MODE,payload:{checkMode:t}}),UpdateHighlightAttribute=t=>({type:Actions.ANNOTATION_ACTIONS.SET_HIGHLIGHT_ATTRIBUTE,payload:{attribute:t}});function InitTaskData({onSubmit:t,onSave:e,onPageChange:n,onStepChange:a,getFileData:r,pageSize:o,loadFileList:i,step:T,stepList:s,skipBeforePageTurning:p,beforeRotate:N,checkMode:A,highlightAttribute:d,preDataProcess:I,getImgIndexByExternal:l}){const u=[];return t&&u.push(UpdateOnSubmit(t)),e&&u.push(UpdateOnSave(e)),n&&u.push(UpdateOnPageChange(n)),a&&u.push(UpdateOnStepChange(a)),r&&u.push(UpdateGetFileData(r)),i&&u.push(UpdateGetFileList(i)),o&&u.push(UpdatePageSize(o)),p&&u.push(UpdateSkipBeforePageTurning(p)),N&&u.push(UpdateBeforeRotate(N)),I&&u.push(UpdatePreDataProcess(I)),typeof A=="boolean"&&u.push(UpdateCheckMode(A)),l&&u.push(UpdateImgIndexByExternal(l)),u.push(UpdateHighlightAttribute(d)),u.push(SetTaskConfig({stepList:s,step:T})),u.push({type:Actions.ANNOTATION_ACTIONS.CALC_STEP_PROGRESS}),u.push({type:Actions.ANNOTATION_ACTIONS.INIT_TOOL}),O=>dispatchTasks(O,u)}function UpdateInjectFunc({onSubmit:t,onSave:e,onPageChange:n,onStepChange:a,getFileData:r,pageSize:o,loadFileList:i,stepList:T,beforeRotate:s,highlightAttribute:p,preDataProcess:N}){const A=[];return t&&A.push(UpdateOnSubmit(t)),e&&A.push(UpdateOnSave(e)),n&&A.push(UpdateOnPageChange(n)),a&&A.push(UpdateOnStepChange(a)),r&&A.push(UpdateGetFileData(r)),i&&A.push(UpdateGetFileList(i)),o&&A.push(UpdatePageSize(o)),s&&A.push(UpdateBeforeRotate(s)),N&&A.push(UpdatePreDataProcess(N)),A.push(UpdateHighlightAttribute(p)),A.push(SetTaskStepList({stepList:T})),d=>dispatchTasks(d,A)}const getNextStep=(t,e)=>{var n;const a=e==null?void 0:e.findIndex(r=>(r==null?void 0:r.step)===t);return(n=e[a+1])==null?void 0:n.step},ToNextStep=t=>(e,n)=>{const{annotation:a}=n(),{step:r,stepList:o}=a,i=getNextStep(r,o);return[e(UpdateProcessingStep(i,t))]},UpdateProcessingStep=(t,e)=>(n,a)=>{var r,o;const{annotation:i}=a();(r=i==null?void 0:i.onStepChange)==null||r.call(i,t);const T=(o=i==null?void 0:i.imgIndex)!=null?o:0;return[n({type:Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT}),n({type:Actions.ANNOTATION_ACTIONS.SUBMIT_FILE_DATA,payload:{submitType:index.ESubmitType.StepChanged}}),n({type:Actions.ANNOTATION_ACTIONS.SET_STEP,payload:{toStep:t}}),n({type:Actions.ANNOTATION_ACTIONS.CALC_STEP_PROGRESS}),n(reducer.LoadFileAndFileData(e!=null?e:T,0))]},ToSubmitFileData=t=>e=>[e({type:Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT}),e({type:Actions.ANNOTATION_ACTIONS.SUBMIT_FILE_DATA,payload:{submitType:t}})],SubmitAndChangeFileIndex=(t,e,n,a)=>__async(void 0,null,function*(){t(ToSubmitFileData(n)),yield t(SubmitHandler(n)),t(reducer.LoadFileAndFileData(e,a))}),ChangeBasicIndex=(t,e)=>[t({type:Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT}),t({type:Actions.ANNOTATION_ACTIONS.SET_BASIC_INDEX,payload:{basicIndex:e}})],ChangeTriggerEventAfterIndexChanged=(t,e)=>{t({type:Actions.ANNOTATION_ACTIONS.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED,payload:{triggerEventAfterIndexChanged:e}})},PageBackward=(t=!1)=>(e,n)=>DispatcherTurning(e,n,AnnotationSize.EPageTurningOperation.Backward,t),PageForward=(t=!1)=>(e,n)=>DispatcherTurning(e,n,AnnotationSize.EPageTurningOperation.Forward,t),PageJump=(t,e=!1)=>(n,a)=>{if(t!==a().imgIndex)return DispatcherTurning(n,a,AnnotationSize.EPageTurningOperation.Jump,e,t)},loadImgList=(t,e,n,a)=>__async(void 0,null,function*(){var r;const{loadFileList:o,imgList:i,pageSize:T}=e().annotation,s=Math.floor(n/T);SetAnnotationLoading(t,!0);try{const p=yield o(s,T);if(SetAnnotationLoading(t,!1),!((r=p==null?void 0:p.fileList)==null?void 0:r.length)||!(p==null?void 0:p.total))throw new Error("fileList and total are required");const N=a?new Array(p.total):[...i];return N.splice(s*T,T,...p.fileList),t({type:Actions.ANNOTATION_ACTIONS.UPDATE_IMG_LIST,payload:{imgList:N}}),!0}catch(p){SetAnnotationLoading(t,!1),console.error(p)}}),DispatcherTurning=(t,e,n,a=!1,r)=>__async(void 0,null,function*(){var o,i;const T=e().annotation,s=getSubmitByPageOperation(n);let{fileIndexChanged:p,fileIndex:N,basicIndexChanged:A,basicIndex:d}=PageOperator.getNextPageInfo(n,T,r);const I=(o=T==null?void 0:T.getImgIndexByExternal)==null?void 0:o.call(T,T.imgIndex,s);if(I!==void 0&&(p=!0,N=I),ChangeTriggerEventAfterIndexChanged(t,a),p){if(T.loading||!T.imgList[N]&&!(yield loadImgList(t,e,N)))return;const l=e();(i=T.onPageChange)==null||i.call(T,N);const u=s===index.ESubmitType.Backward?getBasicIndex(l.annotation,d):d;return SubmitAndChangeFileIndex(t,N,s,u)}return A?ChangeBasicIndex(t,d):t(ToSubmitFileData(s))}),ChangeSave=t=>{t(ToSubmitFileData(index.ESubmitType.Save)),t({type:Actions.ANNOTATION_ACTIONS.SAVE_RESULT})},SetAnnotationLoading=(t,e)=>{t({type:Actions.ANNOTATION_ACTIONS.SET_LOADING,payload:{loading:e}})},SetLoadPCDFileLoading=(t,e)=>{t({type:Actions.ANNOTATION_ACTIONS.SET_LOADPCDFILE_LOADING,payload:{loadPCDFileLoading:e}})},InitAnnotationState=t=>{t({type:Actions.ANNOTATION_ACTIONS.INIT_ALL_STATE,payload:{}})},SetPredictResult=(t,e)=>{t({type:Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT,payload:{result:e}})},SetPredictResultVisible=(t,e)=>{t({type:Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT_VISIBLE,payload:{visible:e}})},GetBoxesByID=(t,e)=>(n,a)=>{const{imgList:r,step:o}=a().annotation;return util.getBoxesByTrackID(r,o,t,e)},PreDataProcess=t=>(e,n)=>{var a,r;const{annotation:o}=n();return(r=(a=o==null?void 0:o.preDataProcess)==null?void 0:a.call(o,t))!=null?r:t.dataList},SubmitHandler=t=>(e,n)=>__async(void 0,null,function*(){const{annotation:a}=n(),{onSubmit:r,imgIndex:o,imgList:i}=a;!r||(yield r([i[o]],t,o,i))});exports.BatchUpdateImgListResultByPredictResult=BatchUpdateImgListResultByPredictResult,exports.BatchUpdateResultByTrackID=BatchUpdateResultByTrackID,exports.BatchUpdateTrackID=BatchUpdateTrackID,exports.ChangeSave=ChangeSave,exports.CopyBackWordResult=CopyBackWordResult,exports.DispatcherTurning=DispatcherTurning,exports.GetBoxesByID=GetBoxesByID,exports.InitAnnotationState=InitAnnotationState,exports.InitTaskData=InitTaskData,exports.PageBackward=PageBackward,exports.PageForward=PageForward,exports.PageJump=PageJump,exports.PreDataProcess=PreDataProcess,exports.SetAnnotationLoading=SetAnnotationLoading,exports.SetLoadPCDFileLoading=SetLoadPCDFileLoading,exports.SetPredictResult=SetPredictResult,exports.SetPredictResultVisible=SetPredictResultVisible,exports.SetTaskConfig=SetTaskConfig,exports.SetTaskStepList=SetTaskStepList,exports.SubmitHandler=SubmitHandler,exports.ToNextStep=ToNextStep,exports.ToSubmitFileData=ToSubmitFileData,exports.UpdateBeforeRotate=UpdateBeforeRotate,exports.UpdateCheckMode=UpdateCheckMode,exports.UpdateGetFileData=UpdateGetFileData,exports.UpdateGetFileList=UpdateGetFileList,exports.UpdateHighlightAttribute=UpdateHighlightAttribute,exports.UpdateImgIndexByExternal=UpdateImgIndexByExternal,exports.UpdateInjectFunc=UpdateInjectFunc,exports.UpdateOnPageChange=UpdateOnPageChange,exports.UpdateOnSave=UpdateOnSave,exports.UpdateOnStepChange=UpdateOnStepChange,exports.UpdateOnSubmit=UpdateOnSubmit,exports.UpdatePageSize=UpdatePageSize,exports.UpdatePreDataProcess=UpdatePreDataProcess,exports.UpdateProcessingStep=UpdateProcessingStep,exports.UpdateRotate=UpdateRotate,exports.UpdateSkipBeforePageTurning=UpdateSkipBeforePageTurning,exports.UpdateToolInstance=UpdateToolInstance,exports.loadImgList=loadImgList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index$2=require("../../components/customResizeHook/index.js"),index$1=require("../../constant/index.js"),styleString=require("../../constant/styleString.js"),Actions=require("../Actions.js"),index=require("../../utils/index.js"),AnnotationDataUtils=require("../../utils/AnnotationDataUtils.js"),ConfigUtils=require("../../utils/ConfigUtils.js"),data=require("../../utils/data.js"),StepUtils=require("../../utils/StepUtils.js"),ToolUtils=require("../../utils/ToolUtils.js"),lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),antd=require("antd"),es=require("antd/es"),_=require("lodash"),actionCreators=require("./actionCreators.js"),ToolType=require("../../data/enums/ToolType.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ___default=_interopDefaultLegacy(_),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,l)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,__spreadValues=(e,t)=>{for(var l in t||(t={}))__hasOwnProp.call(t,l)&&__defNormalProp(e,l,t[l]);if(__getOwnPropSymbols)for(var l of __getOwnPropSymbols(t))__propIsEnum.call(t,l)&&__defNormalProp(e,l,t[l]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__async=(e,t,l)=>new Promise((g,u)=>{var S=I=>{try{O(l.next(I))}catch(m){u(m)}},p=I=>{try{O(l.throw(I))}catch(m){u(m)}},O=I=>I.done?g(I.value):Promise.resolve(I.value).then(S,p);O((l=l.apply(e,t)).next())});const getStepConfig=(e,t)=>e.find(l=>l.step===t),initialState={annotationEngine:null,toolInstance:null,imgList:[],config:"{}",imgIndex:-1,basicIndex:0,imgPageSize:1,step:1,stepList:[],imgNode:new Image,basicResultList:[],resultList:[],stepProgress:0,loading:!1,loadPCDFileLoading:!0,triggerEventAfterIndexChanged:!1,pointCloudLoading:!1,checkMode:!1,predictionResult:[],predictionResultVisible:!1,highlightAttribute:""},getTotalPage=e=>{const{imgList:t,imgPageSize:l}=e;return Math.ceil(t.length/l)},calcStepProgress=(e,t)=>e.reduce((l,g)=>{if(g){const u=g.result;if(index.jsonParser(u)[`step_${t}`])return l+1}return l},0)/e.length,updateToolInstance=(e,t)=>{const{step:l,stepList:g}=e,u=StepUtils.getCurrentStepInfo(l,g),S=ConfigUtils.ConfigUtils.jsonParser(u.config);if(ToolUtils.isVideoTool(u==null?void 0:u.tool)||ToolUtils.isAudioTool(u==null?void 0:u.tool)||ToolUtils.isPointCloudTool(u==null?void 0:u.tool)||[ToolType.EToolName.LLM,ToolType.EToolName.NLP,ToolType.EToolName.LLMMultiWheel].includes(u==null?void 0:u.tool))return;const p=document.getElementById("toolContainer");if(!p)throw"Not exist dom named id-toolContainer";const O=index$2.getFormatSize({width:window.innerWidth,height:window.innerHeight}),I=new lbAnnotation.AnnotationEngine({container:p,toolName:u.tool,size:O,imgNode:t,config:S,style:JSON.parse(styleString)});return{toolInstance:I==null?void 0:I.toolInstance,annotationEngine:I}},LoadFileAndFileData=(e,t)=>(l,g)=>__async(void 0,null,function*(){var u,S;const{stepList:p,step:O}=g().annotation,I=StepUtils.currentToolIsVideo(O,p),m=StepUtils.currentToolIsPointCloud(O,p),D=[ToolType.EToolName.LLM,ToolType.EToolName.LLMMultiWheel].includes((u=StepUtils.getCurrentStepInfo(O,p))==null?void 0:u.tool),y=((S=StepUtils.getCurrentStepInfo(O,p))==null?void 0:S.tool)===ToolType.EToolName.NLP,P=StepUtils.currentToolIsAudio(O,p);if(actionCreators.SetAnnotationLoading(l,!0),yield l(TryGetFileDataByAPI(e)),I){l(AfterVideoLoaded(e));return}if(m||D||P||y){l(AfterCommonLoaded(e));return}l(AfterImageLoaded(e,t))}),TryGetFileDataByAPI=e=>(t,l)=>__async(void 0,null,function*(){const{getFileData:g,imgList:u}=l().annotation;if(g){const S=yield g(u[e],e);t({type:Actions.ANNOTATION_ACTIONS.SET_FILE_DATA,payload:{fileData:S,index:e}})}}),AfterVideoLoaded=e=>t=>{t({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{nextIndex:e}})},AfterCommonLoaded=e=>t=>{actionCreators.SetAnnotationLoading(t,!1),t({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{nextIndex:e}})},AfterImageLoaded=(e,t)=>(l,g)=>{var u;const{toolInstance:S,imgList:p}=g().annotation,O=(u=p==null?void 0:p[e])==null?void 0:u.url;lbAnnotation.ImgUtils.load(O).then(I=>{actionCreators.SetAnnotationLoading(l,!1),l({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{imgNode:I,nextIndex:e,nextBasicIndex:t}})}).catch(()=>{actionCreators.SetAnnotationLoading(l,!1),S==null||S.setErrorImg(),l({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{nextIndex:e,nextBasicIndex:t}})})},composeResultByToolInstance=({toolInstance:e,imgList:t,imgIndex:l,stepList:g,step:u=1})=>{var S,p,O,I;const m=((S=t[l])==null?void 0:S.result)||"",[D,y,P]=(p=e==null?void 0:e.exportData())!=null?p:[],x=(I=(O=e==null?void 0:e.exportCustomData)==null?void 0:O.call(e))!=null?I:{},B=data.composeResultWithBasicImgInfo(m,y),w=data.composeResult(B,{step:u,stepList:g},{rect:D},x);return t.map((b,F)=>F===l?__spreadValues(__spreadProps(__spreadValues({},b),{result:w}),P):__spreadValues({},b))},annotationReducer=(e=__spreadValues({},initialState),t)=>{var l,g,u,S,p,O,I,m,D,y,P,x,B,w,b,F,G,V,q,k,H,z,W,K,$,X,Y,J;switch(t.type){case Actions.ANNOTATION_ACTIONS.INIT_ALL_STATE:return __spreadValues(__spreadValues({},e),initialState);case Actions.ANNOTATION_ACTIONS.UPDATE_TOOL_INSTANCE:return __spreadProps(__spreadValues({},e),{toolInstance:t.payload.toolInstance});case Actions.ANNOTATION_ACTIONS.UPDATE_IMG_LIST:return __spreadProps(__spreadValues({},e),{imgList:t.payload.imgList});case Actions.ANNOTATION_ACTIONS.CALC_STEP_PROGRESS:{const{imgList:n,step:o}=e,s=calcStepProgress(n,o);return __spreadProps(__spreadValues({},e),{stepProgress:s})}case Actions.ANNOTATION_ACTIONS.SUBMIT_FILE_DATA:{const{imgList:n,imgIndex:o,step:s,stepList:i,toolInstance:a,onSubmit:r,resultList:A}=e;if(!a||!n[o])return e;const T=((l=n[o])==null?void 0:l.result)||"",[,d,c]=(g=a==null?void 0:a.exportData())!=null?g:[],N=(S=(u=a==null?void 0:a.exportCustomData)==null?void 0:u.call(a))!=null?S:{},f=data.composeResultWithBasicImgInfo(T,d),L=data.composeResult(f,{step:s,stepList:i},{rect:A},N),C=e.imgList.map((v,E)=>{if(E===o){const U=AnnotationDataUtils.dataCorrection(L,T,s,i);return __spreadValues(__spreadProps(__spreadValues({},v),{result:U}),c)}return v});if(((p=t.payload)==null?void 0:p.submitType)===index$1.ESubmitType.SyncImgList)return __spreadProps(__spreadValues({},e),{imgList:C});const R=calcStepProgress(C,s);return __spreadProps(__spreadValues({},e),{stepProgress:R,imgList:C})}case Actions.ANNOTATION_ACTIONS.SAVE_RESULT:{const{imgList:n,imgIndex:o,onSave:s}=e;return s==null||s(n[o],o,n),__spreadValues({},e)}case Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT:{const{imgList:n,basicIndex:o,resultList:s,toolInstance:i,basicResultList:a}=e;if(!i)return e;const[r]=(O=i==null?void 0:i.exportData())!=null?O:[];let A=r;if((a==null?void 0:a.length)>0){const T=(I=a[o])==null?void 0:I.id,d=r.map(c=>__spreadProps(__spreadValues({},c),{sourceID:T}));A=___default.default.cloneDeep(s).filter(c=>c.sourceID!==T),A.push(...d)}return __spreadProps(__spreadValues({},e),{resultList:A,imgList:n})}case Actions.ANNOTATION_ACTIONS.SET_BASIC_INDEX:{const{toolInstance:n,step:o,imgList:s,imgIndex:i,stepList:a,annotationEngine:r,resultList:A,basicResultList:T}=e;if(!n||!r)return e;const d=t.payload.basicIndex,c=(m=T[d])==null?void 0:m.id,N=index.jsonParser((D=s[i])==null?void 0:D.result),f=(A||[]).filter(U=>U.sourceID===c),L=getStepConfig(a,o),{dataSourceStep:C,tool:R}=L,v=getStepConfig(a,C);let E=[];return C&&R&&(E=(y=N[`step_${C}`])==null?void 0:y.result,(E==null?void 0:E.length)>0?(r==null||r.setBasicInfo(v.tool,E[d]),r==null||r.launchOperation()):(r==null||r.setBasicInfo(v.tool),r==null||r.forbidOperation(),es.message.info(lbUtils.i18n.t("NoDependency")))),n==null||n.setResult(f),n==null||n.history.initRecord(f,!0),__spreadProps(__spreadValues({},e),{basicIndex:d})}case Actions.ANNOTATION_ACTIONS.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED:{const{triggerEventAfterIndexChanged:n}=t.payload;return __spreadProps(__spreadValues({},e),{triggerEventAfterIndexChanged:!!n})}case Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA:{const{imgList:n,step:o,toolInstance:s,annotationEngine:i,stepList:a}=e;if(!s)return __spreadProps(__spreadValues({},e),{imgIndex:t.payload.nextIndex});const r=StepUtils.getCurrentStepInfo(o,a),{nextIndex:A,imgNode:T,nextBasicIndex:d,imgError:c}=t.payload,N=d!=null?d:0,f=index.jsonParser((P=n[A])==null?void 0:P.result),L=f[`step_${r.step}`],C=!L,R={rotate:(x=f.rotate)!=null?x:0,valid:(B=f.valid)!=null?B:!0};T&&c!==!0?i==null||i.setImgNode(T,R):s==null||s.setValid(R.valid);const v=getStepConfig(a,r.step),{dataSourceStep:E,tool:U}=v,Z=getStepConfig(a,E),M=E&&U,h=(b=(w=f[`step_${E}`])==null?void 0:w.result)!=null?b:[],j=AnnotationDataUtils.getInitialResultList(L==null?void 0:L.result,s,v,h,C);if(i==null||i.launchOperation(),M&&((h==null?void 0:h.length)>0?i==null||i.setBasicInfo(Z.tool,h[N]):(i==null||i.setBasicInfo(Z.tool),i==null||i.forbidOperation(),es.message.info(lbUtils.i18n.t("NoDependency")))),r.tool!=="check"&&M){const Q=(G=(F=h[N])==null?void 0:F.id)!=null?G:"",ee=M?j.filter(te=>lbAnnotation.CommonToolUtils.isSameSourceID(te.sourceID,Q)):j;(V=s==null?void 0:s.history)==null||V.initRecord(j,!0),s==null||s.setResult(ee)}return __spreadProps(__spreadValues({},e),{imgIndex:A,basicIndex:N,basicResultList:h,resultList:j})}case Actions.ANNOTATION_ACTIONS.UPDATE_ANNOTATION_CONFIG:return __spreadProps(__spreadValues({},e),{config:(q=t.payload.config)!=null?q:"{}"});case Actions.ANNOTATION_ACTIONS.SET_TASK_STEP_LIST:{const{stepList:n}=t.payload;return __spreadProps(__spreadValues({},e),{stepList:n})}case Actions.ANNOTATION_ACTIONS.SET_TASK_CONFIG:{const{stepList:n,step:o}=t.payload;return __spreadProps(__spreadValues({},e),{stepList:n,step:o})}case Actions.ANNOTATION_ACTIONS.INIT_TOOL:{const{imgNode:n}=e,o=updateToolInstance(e,n);if(o){const{toolInstance:s,annotationEngine:i}=o;return __spreadProps(__spreadValues({},e),{toolInstance:s,annotationEngine:i})}return __spreadValues({},e)}case Actions.ANNOTATION_ACTIONS.SET_TOOL:{const n=(k=t.payload)==null?void 0:k.instance;return n?__spreadProps(__spreadValues({},e),{toolInstance:n}):__spreadValues({},e)}case Actions.ANNOTATION_ACTIONS.UPDATE_ON_SUBMIT:return __spreadProps(__spreadValues({},e),{onSubmit:t.payload.onSubmit});case Actions.ANNOTATION_ACTIONS.UPDATE_ON_SAVE:return __spreadProps(__spreadValues({},e),{onSave:t.payload.onSave});case Actions.ANNOTATION_ACTIONS.UPDATE_ON_PAGE_CHANGE:return __spreadProps(__spreadValues({},e),{onPageChange:t.payload.onPageChange});case Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT:return __spreadProps(__spreadValues({},e),{predictionResult:t.payload.result});case Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT_VISIBLE:return __spreadProps(__spreadValues({},e),{predictionResultVisible:t.payload.visible});case Actions.ANNOTATION_ACTIONS.UPDATE_ON_STEP_CHANGE:return __spreadProps(__spreadValues({},e),{onStepChange:t.payload.onStepChange});case Actions.ANNOTATION_ACTIONS.UPDATE_GET_FILE_DATA:return __spreadProps(__spreadValues({},e),{getFileData:t.payload.getFileData});case Actions.ANNOTATION_ACTIONS.UPDATE_PAGE_SIZE:return __spreadProps(__spreadValues({},e),{pageSize:t.payload.pageSize});case Actions.ANNOTATION_ACTIONS.UPDATE_LOAD_FILE_LIST:return __spreadProps(__spreadValues({},e),{loadFileList:t.payload.loadFileList});case Actions.ANNOTATION_ACTIONS.UPDATE_BEFORE_ROTATE:return __spreadProps(__spreadValues({},e),{beforeRotate:t.payload.beforeRotate});case Actions.ANNOTATION_ACTIONS.UPDATE_PRE_DATA_PROCESS:return __spreadProps(__spreadValues({},e),{preDataProcess:t.payload.preDataProcess});case Actions.ANNOTATION_ACTIONS.UPDATE_IMG_INDEX_BY_EXTERNAL:return __spreadProps(__spreadValues({},e),{getImgIndexByExternal:t.payload.getImgIndexByExternal});case Actions.ANNOTATION_ACTIONS.SKIP_BEFORE_PAGE_TURNING:return __spreadProps(__spreadValues({},e),{skipBeforePageTurning:t.payload.skipBeforePageTurning});case Actions.ANNOTATION_ACTIONS.SET_FILE_DATA:{const{fileData:n,index:o}=t.payload,{imgList:s}=e,i=[...s];return i[o]=__spreadValues(__spreadValues({},i[o]),n),__spreadProps(__spreadValues({},e),{imgList:i})}case Actions.ANNOTATION_ACTIONS.UPDATE_ROTATE:{const{toolInstance:n,beforeRotate:o}=e;return o&&o()===!1||(H=n==null?void 0:n.updateRotate)==null||H.call(n),e}case Actions.ANNOTATION_ACTIONS.UPDATE_ANNOTATION_VALID:{const{toolInstance:n}=e,o=(z=n==null?void 0:n.valid)!=null?z:!0;return antd.Modal.destroyAll(),antd.Modal.confirm({content:lbUtils.i18n.t(o?"updateValidFromValidToInValid":"updateValidFromInValidToValid"),onOk:()=>{n==null||n.setValid(!o)},okText:lbUtils.i18n.t("Confirm"),cancelText:lbUtils.i18n.t("Cancel")}),e}case Actions.ANNOTATION_ACTIONS.COPY_BACKWARD_RESULT:{const{toolInstance:n,imgIndex:o,imgList:s,step:i,stepList:a}=e;if(!n)return e;if(o===0||o>=s.length)return console.error("\u65E0\u6CD5\u590D\u5236\u8FB9\u754C\u5916\u7684\u5185\u5BB9"),e;const r=s[o-1].result;if(!r)return e;const A=StepUtils.getCurrentStepInfo(i,a),T=(W=A==null?void 0:A.step)!=null?W:i,d=(K=n==null?void 0:n.valid)!=null?K:!0,c=AnnotationDataUtils.copyResultChange({copyResult:r,step:T,currentResult:($=s[o].result)!=null?$:"",preMappingImgList:(X=s[o-1].mappingImgList)!=null?X:[],mappingImgList:(Y=s[o].mappingImgList)!=null?Y:[],valid:d});s[o]=__spreadProps(__spreadValues({},s[o]),{result:c});const f=index.jsonParser(c)[`step_${i}`],L=(f==null?void 0:f.result)||[];return n==null||n.setResult(L),n==null||n.history.pushHistory(L),(J=n==null?void 0:n.asyncData)==null||J.call(n,s[o]),__spreadProps(__spreadValues({},e),{imgList:[...s]})}case Actions.ANNOTATION_ACTIONS.SET_STEP:{const{stepList:n,annotationEngine:o}=e,{toStep:s}=t.payload;if(o){const i=getStepConfig(n,s);return o==null||o.setToolName(i.tool,i.config),__spreadProps(__spreadValues({},e),{step:s,toolInstance:o==null?void 0:o.toolInstance})}return __spreadProps(__spreadValues({},e),{step:s})}case Actions.ANNOTATION_ACTIONS.SET_LOADPCDFILE_LOADING:{const{loadPCDFileLoading:n}=t.payload;return __spreadProps(__spreadValues({},e),{loadPCDFileLoading:!!n})}case Actions.ANNOTATION_ACTIONS.SET_LOADING:{const{loading:n}=t.payload;return __spreadProps(__spreadValues({},e),{loading:!!n})}case Actions.ANNOTATION_ACTIONS.SET_POINT_CLOUD_LOADING:{const{pointCloudLoading:n}=t.payload;return __spreadProps(__spreadValues({},e),{pointCloudLoading:!!n})}case Actions.ANNOTATION_ACTIONS.SET_CHECK_MODE:{const{checkMode:n}=t.payload;return __spreadProps(__spreadValues({},e),{checkMode:!!n})}case Actions.ANNOTATION_ACTIONS.SET_HIGHLIGHT_ATTRIBUTE:{const{attribute:n}=t.payload;return __spreadProps(__spreadValues({},e),{highlightAttribute:n})}case Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_TRACK_ID:{const{id:n,newID:o,rangeIndex:s,imgList:i}=t.payload,{imgIndex:a,onSubmit:r}=e,A=[],T=i.map((d,c)=>{if(lbAnnotation.MathUtils.isInRange(c,s)){const N=__spreadProps(__spreadValues({},d),{result:lbUtils.PointCloudUtils.batchUpdateTrackID({id:n,newID:o,result:d.result})});return A.push({imgIndex:c,newInfo:N}),N}return d});return r&&r([T[a]],index$1.ESubmitType.BatchUpdateTrackID,a,T,{updateImgList:A}),__spreadProps(__spreadValues({},e),{imgList:T})}case Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_RESULT_BY_TRACK_ID:{const{id:n,newData:o,rangeIndex:s}=t.payload,{imgList:i,imgIndex:a,onSubmit:r}=e,A=[],T=i.map((d,c)=>{if(lbAnnotation.MathUtils.isInRange(c,s)){const N=__spreadProps(__spreadValues({},d),{result:lbUtils.PointCloudUtils.batchUpdateResultByTrackID({id:n,newData:o,result:d.result})});return A.push({imgIndex:c,newInfo:N}),N}return d});return r&&r([T[a]],index$1.ESubmitType.BatchUpdateTrackID,a,T,{updateImgList:A}),__spreadProps(__spreadValues({},e),{imgList:T})}case Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT:{const{onSubmit:n,imgList:o,stepList:s,step:i,predictionResult:a}=e,r={};a.forEach(c=>{const{index:N}=c;r[N]=___default.default.pick(c,["center","width","height","depth","rotation","id","attribute","valid","trackID"])});const A=`step_${i}`,T=[],d=o.map((c,N)=>{if(r[N]){const f=c.result==="{}"?index.jsonParser(data.composeResult("",{step:i,stepList:s},{rect:[]},{})):index.jsonParser(c.result);f[A].result.push(r[N]);const L=__spreadProps(__spreadValues({},c),{result:JSON.stringify(f)});return T.push({imgIndex:N,newInfo:L}),L}return c});return n==null||n(d,index$1.ESubmitType.BatchUpdateImgList,-1,d,{updateImgList:T}),__spreadProps(__spreadValues({},e),{imgList:d})}default:return e}};exports.LoadFileAndFileData=LoadFileAndFileData,exports.annotationReducer=annotationReducer,exports.composeResultByToolInstance=composeResultByToolInstance,exports.getStepConfig=getStepConfig,exports.getTotalPage=getTotalPage;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var index$2=require("../../components/customResizeHook/index.js"),index$1=require("../../constant/index.js"),styleString=require("../../constant/styleString.js"),Actions=require("../Actions.js"),index=require("../../utils/index.js"),AnnotationDataUtils=require("../../utils/AnnotationDataUtils.js"),ConfigUtils=require("../../utils/ConfigUtils.js"),data=require("../../utils/data.js"),StepUtils=require("../../utils/StepUtils.js"),ToolUtils=require("../../utils/ToolUtils.js"),lbAnnotation=require("@labelbee/lb-annotation"),lbUtils=require("@labelbee/lb-utils"),antd=require("antd"),es=require("antd/es"),_=require("lodash"),actionCreators=require("./actionCreators.js"),ToolType=require("../../data/enums/ToolType.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var ___default=_interopDefaultLegacy(_),__defProp=Object.defineProperty,__defProps=Object.defineProperties,__getOwnPropDescs=Object.getOwnPropertyDescriptors,__getOwnPropSymbols=Object.getOwnPropertySymbols,__hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable,__defNormalProp=(e,t,l)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,__spreadValues=(e,t)=>{for(var l in t||(t={}))__hasOwnProp.call(t,l)&&__defNormalProp(e,l,t[l]);if(__getOwnPropSymbols)for(var l of __getOwnPropSymbols(t))__propIsEnum.call(t,l)&&__defNormalProp(e,l,t[l]);return e},__spreadProps=(e,t)=>__defProps(e,__getOwnPropDescs(t)),__async=(e,t,l)=>new Promise((g,u)=>{var S=I=>{try{O(l.next(I))}catch(m){u(m)}},p=I=>{try{O(l.throw(I))}catch(m){u(m)}},O=I=>I.done?g(I.value):Promise.resolve(I.value).then(S,p);O((l=l.apply(e,t)).next())});const getStepConfig=(e,t)=>e.find(l=>l.step===t),initialState={annotationEngine:null,toolInstance:null,imgList:[],config:"{}",imgIndex:-1,basicIndex:0,imgPageSize:1,step:1,stepList:[],imgNode:new Image,basicResultList:[],resultList:[],stepProgress:0,loading:!1,loadPCDFileLoading:!0,triggerEventAfterIndexChanged:!1,pointCloudLoading:!1,checkMode:!1,predictionResult:[],predictionResultVisible:!1,highlightAttribute:""},getTotalPage=e=>{const{imgList:t,imgPageSize:l}=e;return Math.ceil(t.length/l)},calcStepProgress=(e,t)=>e.reduce((l,g)=>{if(g){const u=g.result;if(index.jsonParser(u)[`step_${t}`])return l+1}return l},0)/e.length,updateToolInstance=(e,t)=>{const{step:l,stepList:g}=e,u=StepUtils.getCurrentStepInfo(l,g),S=ConfigUtils.ConfigUtils.jsonParser(u.config);if(ToolUtils.isVideoTool(u==null?void 0:u.tool)||ToolUtils.isAudioTool(u==null?void 0:u.tool)||ToolUtils.isPointCloudTool(u==null?void 0:u.tool)||[ToolType.EToolName.LLM,ToolType.EToolName.NLP,ToolType.EToolName.LLMMultiWheel].includes(u==null?void 0:u.tool))return;const p=document.getElementById("toolContainer");if(!p)throw"Not exist dom named id-toolContainer";const O=index$2.getFormatSize({width:window.innerWidth,height:window.innerHeight}),I=new lbAnnotation.AnnotationEngine({container:p,toolName:u.tool,size:O,imgNode:t,config:S,style:JSON.parse(styleString)});return{toolInstance:I==null?void 0:I.toolInstance,annotationEngine:I}},LoadFileAndFileData=(e,t)=>(l,g)=>__async(void 0,null,function*(){var u,S;const{stepList:p,step:O}=g().annotation,I=StepUtils.currentToolIsVideo(O,p),m=StepUtils.currentToolIsPointCloud(O,p),D=[ToolType.EToolName.LLM,ToolType.EToolName.LLMMultiWheel].includes((u=StepUtils.getCurrentStepInfo(O,p))==null?void 0:u.tool),y=((S=StepUtils.getCurrentStepInfo(O,p))==null?void 0:S.tool)===ToolType.EToolName.NLP,P=StepUtils.currentToolIsAudio(O,p);if(actionCreators.SetAnnotationLoading(l,!0),yield l(TryGetFileDataByAPI(e)),I){l(AfterVideoLoaded(e));return}if(m||D||P||y){l(AfterCommonLoaded(e));return}l(AfterImageLoaded(e,t))}),TryGetFileDataByAPI=e=>(t,l)=>__async(void 0,null,function*(){const{getFileData:g,imgList:u}=l().annotation;if(g){const S=yield g(u[e],e);t({type:Actions.ANNOTATION_ACTIONS.SET_FILE_DATA,payload:{fileData:S,index:e}})}}),AfterVideoLoaded=e=>t=>{t({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{nextIndex:e}})},AfterCommonLoaded=e=>t=>{actionCreators.SetAnnotationLoading(t,!1),t({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{nextIndex:e}})},AfterImageLoaded=(e,t)=>(l,g)=>{var u;const{toolInstance:S,imgList:p}=g().annotation,O=(u=p==null?void 0:p[e])==null?void 0:u.url;lbAnnotation.ImgUtils.load(O).then(I=>{actionCreators.SetAnnotationLoading(l,!1),l({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{imgNode:I,nextIndex:e,nextBasicIndex:t}})}).catch(()=>{actionCreators.SetAnnotationLoading(l,!1),S==null||S.setErrorImg(),l({type:Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA,payload:{nextIndex:e,nextBasicIndex:t}})})},composeResultByToolInstance=({toolInstance:e,imgList:t,imgIndex:l,stepList:g,step:u=1})=>{var S,p,O,I;const m=((S=t[l])==null?void 0:S.result)||"",[D,y,P]=(p=e==null?void 0:e.exportData())!=null?p:[],x=(I=(O=e==null?void 0:e.exportCustomData)==null?void 0:O.call(e))!=null?I:{},B=data.composeResultWithBasicImgInfo(m,y),w=data.composeResult(B,{step:u,stepList:g},{rect:D},x);return t.map((b,F)=>F===l?__spreadValues(__spreadProps(__spreadValues({},b),{result:w}),P):__spreadValues({},b))},annotationReducer=(e=__spreadValues({},initialState),t)=>{var l,g,u,S,p,O,I,m,D,y,P,x,B,w,b,F,G,V,q,k,H,z,W,K,$,X,Y,J;switch(t.type){case Actions.ANNOTATION_ACTIONS.INIT_ALL_STATE:return __spreadValues(__spreadValues({},e),initialState);case Actions.ANNOTATION_ACTIONS.UPDATE_TOOL_INSTANCE:return __spreadProps(__spreadValues({},e),{toolInstance:t.payload.toolInstance});case Actions.ANNOTATION_ACTIONS.UPDATE_IMG_LIST:return __spreadProps(__spreadValues({},e),{imgList:t.payload.imgList});case Actions.ANNOTATION_ACTIONS.CALC_STEP_PROGRESS:{const{imgList:n,step:o}=e,s=calcStepProgress(n,o);return __spreadProps(__spreadValues({},e),{stepProgress:s})}case Actions.ANNOTATION_ACTIONS.SUBMIT_FILE_DATA:{const{imgList:n,imgIndex:o,step:s,stepList:i,toolInstance:c,onSubmit:r,resultList:A}=e;if(!c||!n[o])return e;const T=((l=n[o])==null?void 0:l.result)||"",[,d,a]=(g=c==null?void 0:c.exportData())!=null?g:[],N=(S=(u=c==null?void 0:c.exportCustomData)==null?void 0:u.call(c))!=null?S:{},f=data.composeResultWithBasicImgInfo(T,d),L=data.composeResult(f,{step:s,stepList:i},{rect:A},N),C=e.imgList.map((v,E)=>{if(E===o){const U=AnnotationDataUtils.dataCorrection(L,T,s,i);return __spreadValues(__spreadProps(__spreadValues({},v),{result:U}),a)}return v});if(((p=t.payload)==null?void 0:p.submitType)===index$1.ESubmitType.SyncImgList)return __spreadProps(__spreadValues({},e),{imgList:C});const R=calcStepProgress(C,s);return __spreadProps(__spreadValues({},e),{stepProgress:R,imgList:C})}case Actions.ANNOTATION_ACTIONS.SAVE_RESULT:{const{imgList:n,imgIndex:o,onSave:s}=e;return s==null||s(n[o],o,n),__spreadValues({},e)}case Actions.ANNOTATION_ACTIONS.SUBMIT_RESULT:{const{imgList:n,basicIndex:o,resultList:s,toolInstance:i,basicResultList:c}=e;if(!i)return e;const[r]=(O=i==null?void 0:i.exportData())!=null?O:[];let A=r;if((c==null?void 0:c.length)>0){const T=(I=c[o])==null?void 0:I.id,d=r.map(a=>__spreadProps(__spreadValues({},a),{sourceID:T}));A=___default.default.cloneDeep(s).filter(a=>a.sourceID!==T),A.push(...d)}return __spreadProps(__spreadValues({},e),{resultList:A,imgList:n})}case Actions.ANNOTATION_ACTIONS.SET_BASIC_INDEX:{const{toolInstance:n,step:o,imgList:s,imgIndex:i,stepList:c,annotationEngine:r,resultList:A,basicResultList:T}=e;if(!n||!r)return e;const d=t.payload.basicIndex,a=(m=T[d])==null?void 0:m.id,N=index.jsonParser((D=s[i])==null?void 0:D.result),f=(A||[]).filter(U=>U.sourceID===a),L=getStepConfig(c,o),{dataSourceStep:C,tool:R}=L,v=getStepConfig(c,C);let E=[];return C&&R&&(E=(y=N[`step_${C}`])==null?void 0:y.result,(E==null?void 0:E.length)>0?(r==null||r.setBasicInfo(v.tool,E[d]),r==null||r.launchOperation()):(r==null||r.setBasicInfo(v.tool),r==null||r.forbidOperation(),es.message.info(lbUtils.i18n.t("NoDependency")))),n==null||n.setResult(f),n==null||n.history.initRecord(f,!0),__spreadProps(__spreadValues({},e),{basicIndex:d})}case Actions.ANNOTATION_ACTIONS.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED:{const{triggerEventAfterIndexChanged:n}=t.payload;return __spreadProps(__spreadValues({},e),{triggerEventAfterIndexChanged:!!n})}case Actions.ANNOTATION_ACTIONS.LOAD_FILE_DATA:{const{imgList:n,step:o,toolInstance:s,annotationEngine:i,stepList:c}=e;if(!s)return __spreadProps(__spreadValues({},e),{imgIndex:t.payload.nextIndex});const r=StepUtils.getCurrentStepInfo(o,c),{nextIndex:A,imgNode:T,nextBasicIndex:d,imgError:a}=t.payload,N=d!=null?d:0,f=index.jsonParser((P=n[A])==null?void 0:P.result),L=f[`step_${r.step}`],C=!L,R={rotate:(x=f.rotate)!=null?x:0,valid:(B=f.valid)!=null?B:!0};T&&a!==!0?i==null||i.setImgNode(T,R):s==null||s.setValid(R.valid);const v=getStepConfig(c,r.step),{dataSourceStep:E,tool:U}=v,Z=getStepConfig(c,E),M=E&&U,h=(b=(w=f[`step_${E}`])==null?void 0:w.result)!=null?b:[],j=AnnotationDataUtils.getInitialResultList(L==null?void 0:L.result,s,v,h,C);if(i==null||i.launchOperation(),M&&((h==null?void 0:h.length)>0?i==null||i.setBasicInfo(Z.tool,h[N]):(i==null||i.setBasicInfo(Z.tool),i==null||i.forbidOperation(),es.message.info(lbUtils.i18n.t("NoDependency")))),r.tool!=="check"&&M){const Q=(G=(F=h[N])==null?void 0:F.id)!=null?G:"",ee=M?j.filter(te=>lbAnnotation.CommonToolUtils.isSameSourceID(te.sourceID,Q)):j;(V=s==null?void 0:s.history)==null||V.initRecord(j,!0),s==null||s.setResult(ee)}return __spreadProps(__spreadValues({},e),{imgIndex:A,basicIndex:N,basicResultList:h,resultList:j})}case Actions.ANNOTATION_ACTIONS.UPDATE_ANNOTATION_CONFIG:return __spreadProps(__spreadValues({},e),{config:(q=t.payload.config)!=null?q:"{}"});case Actions.ANNOTATION_ACTIONS.SET_TASK_STEP_LIST:{const{stepList:n}=t.payload;return __spreadProps(__spreadValues({},e),{stepList:n})}case Actions.ANNOTATION_ACTIONS.SET_TASK_CONFIG:{const{stepList:n,step:o}=t.payload;return __spreadProps(__spreadValues({},e),{stepList:n,step:o})}case Actions.ANNOTATION_ACTIONS.INIT_TOOL:{const{imgNode:n}=e,o=updateToolInstance(e,n);if(o){const{toolInstance:s,annotationEngine:i}=o;return __spreadProps(__spreadValues({},e),{toolInstance:s,annotationEngine:i})}return __spreadValues({},e)}case Actions.ANNOTATION_ACTIONS.SET_TOOL:{const n=(k=t.payload)==null?void 0:k.instance;return n?__spreadProps(__spreadValues({},e),{toolInstance:n}):__spreadValues({},e)}case Actions.ANNOTATION_ACTIONS.UPDATE_ON_SUBMIT:return __spreadProps(__spreadValues({},e),{onSubmit:t.payload.onSubmit});case Actions.ANNOTATION_ACTIONS.UPDATE_ON_SAVE:return __spreadProps(__spreadValues({},e),{onSave:t.payload.onSave});case Actions.ANNOTATION_ACTIONS.UPDATE_ON_PAGE_CHANGE:return __spreadProps(__spreadValues({},e),{onPageChange:t.payload.onPageChange});case Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT:return __spreadProps(__spreadValues({},e),{predictionResult:t.payload.result});case Actions.ANNOTATION_ACTIONS.SET_PREDICT_RESULT_VISIBLE:return __spreadProps(__spreadValues({},e),{predictionResultVisible:t.payload.visible});case Actions.ANNOTATION_ACTIONS.UPDATE_ON_STEP_CHANGE:return __spreadProps(__spreadValues({},e),{onStepChange:t.payload.onStepChange});case Actions.ANNOTATION_ACTIONS.UPDATE_GET_FILE_DATA:return __spreadProps(__spreadValues({},e),{getFileData:t.payload.getFileData});case Actions.ANNOTATION_ACTIONS.UPDATE_PAGE_SIZE:return __spreadProps(__spreadValues({},e),{pageSize:t.payload.pageSize});case Actions.ANNOTATION_ACTIONS.UPDATE_LOAD_FILE_LIST:return __spreadProps(__spreadValues({},e),{loadFileList:t.payload.loadFileList});case Actions.ANNOTATION_ACTIONS.UPDATE_BEFORE_ROTATE:return __spreadProps(__spreadValues({},e),{beforeRotate:t.payload.beforeRotate});case Actions.ANNOTATION_ACTIONS.UPDATE_PRE_DATA_PROCESS:return __spreadProps(__spreadValues({},e),{preDataProcess:t.payload.preDataProcess});case Actions.ANNOTATION_ACTIONS.UPDATE_IMG_INDEX_BY_EXTERNAL:return __spreadProps(__spreadValues({},e),{getImgIndexByExternal:t.payload.getImgIndexByExternal});case Actions.ANNOTATION_ACTIONS.SKIP_BEFORE_PAGE_TURNING:return __spreadProps(__spreadValues({},e),{skipBeforePageTurning:t.payload.skipBeforePageTurning});case Actions.ANNOTATION_ACTIONS.SET_FILE_DATA:{const{fileData:n,index:o}=t.payload,{imgList:s}=e,i=[...s];return i[o]=__spreadValues(__spreadValues({},i[o]),n),__spreadProps(__spreadValues({},e),{imgList:i})}case Actions.ANNOTATION_ACTIONS.UPDATE_ROTATE:{const{toolInstance:n,beforeRotate:o}=e;return o&&o()===!1||(H=n==null?void 0:n.updateRotate)==null||H.call(n),e}case Actions.ANNOTATION_ACTIONS.UPDATE_ANNOTATION_VALID:{const{toolInstance:n}=e,o=(z=n==null?void 0:n.valid)!=null?z:!0;return antd.Modal.destroyAll(),antd.Modal.confirm({content:lbUtils.i18n.t(o?"updateValidFromValidToInValid":"updateValidFromInValidToValid"),onOk:()=>{n==null||n.setValid(!o)},okText:lbUtils.i18n.t("Confirm"),cancelText:lbUtils.i18n.t("Cancel")}),e}case Actions.ANNOTATION_ACTIONS.COPY_BACKWARD_RESULT:{const{toolInstance:n,imgIndex:o,imgList:s,step:i,stepList:c}=e;if(!n)return e;if(o===0||o>=s.length)return console.error("\u65E0\u6CD5\u590D\u5236\u8FB9\u754C\u5916\u7684\u5185\u5BB9"),e;const r=s[o-1].result;if(!r)return e;const A=StepUtils.getCurrentStepInfo(i,c),T=(W=A==null?void 0:A.step)!=null?W:i,d=(K=n==null?void 0:n.valid)!=null?K:!0,a=AnnotationDataUtils.copyResultChange({copyResult:r,step:T,currentResult:($=s[o].result)!=null?$:"",preMappingImgList:(X=s[o-1].mappingImgList)!=null?X:[],mappingImgList:(Y=s[o].mappingImgList)!=null?Y:[],valid:d});s[o]=__spreadProps(__spreadValues({},s[o]),{result:a});const f=index.jsonParser(a)[`step_${i}`],L=(f==null?void 0:f.result)||[];return n==null||n.setResult(L),n==null||n.history.pushHistory(L),(J=n==null?void 0:n.asyncData)==null||J.call(n,s[o]),__spreadProps(__spreadValues({},e),{imgList:[...s]})}case Actions.ANNOTATION_ACTIONS.SET_STEP:{const{stepList:n,annotationEngine:o}=e,{toStep:s}=t.payload;if(o){const i=getStepConfig(n,s);return o==null||o.setToolName(i.tool,i.config),__spreadProps(__spreadValues({},e),{step:s,toolInstance:o==null?void 0:o.toolInstance})}return __spreadProps(__spreadValues({},e),{step:s})}case Actions.ANNOTATION_ACTIONS.SET_LOADPCDFILE_LOADING:{const{loadPCDFileLoading:n}=t.payload;return __spreadProps(__spreadValues({},e),{loadPCDFileLoading:!!n})}case Actions.ANNOTATION_ACTIONS.SET_LOADING:{const{loading:n}=t.payload;return __spreadProps(__spreadValues({},e),{loading:!!n})}case Actions.ANNOTATION_ACTIONS.SET_POINT_CLOUD_LOADING:{const{pointCloudLoading:n}=t.payload;return __spreadProps(__spreadValues({},e),{pointCloudLoading:!!n})}case Actions.ANNOTATION_ACTIONS.SET_CHECK_MODE:{const{checkMode:n}=t.payload;return __spreadProps(__spreadValues({},e),{checkMode:!!n})}case Actions.ANNOTATION_ACTIONS.SET_HIGHLIGHT_ATTRIBUTE:{const{attribute:n}=t.payload;return __spreadProps(__spreadValues({},e),{highlightAttribute:n})}case Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_TRACK_ID:{const{id:n,newID:o,rangeIndex:s,imgList:i}=t.payload,{imgIndex:c,onSubmit:r}=e,A=[],T=i.map((d,a)=>{if(lbAnnotation.MathUtils.isInRange(a,s)){const N=__spreadProps(__spreadValues({},d),{result:lbUtils.PointCloudUtils.batchUpdateTrackID({id:n,newID:o,result:d.result})});return A.push({imgIndex:a,newInfo:N}),N}return d});return r&&r([T[c]],index$1.ESubmitType.BatchUpdateTrackID,c,T,{updateImgList:A}),__spreadProps(__spreadValues({},e),{imgList:T})}case Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_RESULT_BY_TRACK_ID:{const n=t,{id:o,newData:s,rangeIndex:i,imgList:c}=n.payload,{imgIndex:r,onSubmit:A}=e,T=[],d=c.map((a,N)=>{if(lbAnnotation.MathUtils.isInRange(N,i)){const f=__spreadProps(__spreadValues({},a),{result:lbUtils.PointCloudUtils.batchUpdateResultByTrackID({id:o,newData:s,result:a.result})});return T.push({imgIndex:N,newInfo:f}),f}return a});return A&&A([d[r]],index$1.ESubmitType.BatchUpdateTrackID,r,d,{updateImgList:T}),__spreadProps(__spreadValues({},e),{imgList:d})}case Actions.ANNOTATION_ACTIONS.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT:{const{onSubmit:n,imgList:o,stepList:s,step:i,predictionResult:c}=e,r={};c.forEach(a=>{const{index:N}=a;r[N]=___default.default.pick(a,["center","width","height","depth","rotation","id","attribute","valid","trackID"])});const A=`step_${i}`,T=[],d=o.map((a,N)=>{if(r[N]){const f=a.result==="{}"?index.jsonParser(data.composeResult("",{step:i,stepList:s},{rect:[]},{})):index.jsonParser(a.result);f[A].result.push(r[N]);const L=__spreadProps(__spreadValues({},a),{result:JSON.stringify(f)});return T.push({imgIndex:N,newInfo:L}),L}return a});return n==null||n(d,index$1.ESubmitType.BatchUpdateImgList,-1,d,{updateImgList:T}),__spreadProps(__spreadValues({},e),{imgList:d})}default:return e}};exports.LoadFileAndFileData=LoadFileAndFileData,exports.annotationReducer=annotationReducer,exports.composeResultByToolInstance=composeResultByToolInstance,exports.getStepConfig=getStepConfig,exports.getTotalPage=getTotalPage;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import './DynamicResizer.scss';
|
|
1
|
+
import React from 'react';
|
|
3
2
|
import { DynamicResizerProps } from './types/interface';
|
|
4
|
-
|
|
3
|
+
import './styles.scss';
|
|
4
|
+
declare const DynamicResizer: React.FC<DynamicResizerProps>;
|
|
5
5
|
export default DynamicResizer;
|
|
@@ -1,12 +1,29 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { DragProps } from '../types/interface';
|
|
3
|
-
declare const useDrag: ({ containerRef, minTopHeight, minBottomHeight,
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
height: string;
|
|
2
|
+
declare const useDrag: ({ containerRef, direction, defaultHeight, defaultWidth, minTopHeight, minBottomHeight, minLeftWidth, minRightWidth, localKey, enableEdges, onResizeStart, onResize, onResizeStop, }: DragProps) => {
|
|
3
|
+
size: {
|
|
4
|
+
width: string | number;
|
|
5
|
+
height: string | number;
|
|
7
6
|
};
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
onResizeStart: () => void;
|
|
8
|
+
onResize: () => void;
|
|
9
|
+
onResizeStop: (e: any, direction: any, ref: HTMLElement) => void;
|
|
10
|
+
enable: {
|
|
11
|
+
top: boolean | undefined;
|
|
12
|
+
bottom: boolean | undefined;
|
|
13
|
+
left: boolean | undefined;
|
|
14
|
+
right: boolean | undefined;
|
|
15
|
+
topLeft: boolean;
|
|
16
|
+
ropRight: boolean;
|
|
17
|
+
bottomLeft: boolean;
|
|
18
|
+
bottomRight: boolean;
|
|
10
19
|
};
|
|
20
|
+
handleClasses: {
|
|
21
|
+
right: string;
|
|
22
|
+
bottom: string;
|
|
23
|
+
};
|
|
24
|
+
minWidth: string | number | undefined;
|
|
25
|
+
maxWidth: string | number | undefined;
|
|
26
|
+
minHeight: string | number | undefined;
|
|
27
|
+
maxHeight: string | number | undefined;
|
|
11
28
|
};
|
|
12
29
|
export default useDrag;
|