@labelbee/lb-components 1.24.0-alpha.5 → 1.24.0-alpha.50
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/modelAPIView/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/LLMToolView/sidebar/components/textEditor/index.js +2 -2
- package/dist/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
- package/dist/components/attributeList/index.js +1 -1
- package/dist/components/audioAnnotate/index.js +1 -1
- package/dist/components/audioPlayer/index.js +1 -1
- package/dist/components/longText/index.js +1 -1
- package/dist/components/pointCloud2DRectOperationView/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/TitleButton/index.js +1 -1
- package/dist/components/pointCloudView/components/UnifyParamsModal/index.js +1 -1
- package/dist/components/pointCloudView/components/sideAndBackOverView/index.js +1 -1
- package/dist/components/pointCloudView/hooks/useHighlight.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/index.js +1 -1
- package/dist/components/tagList/index.js +1 -1
- package/dist/components/videoPlayer/components/SpeedController/index.js +1 -1
- package/dist/components/videoPlayer/index.js +1 -1
- package/dist/constant/index.js +1 -1
- package/dist/index.css +112 -90
- package/dist/store/Actions.js +1 -1
- package/dist/store/annotation/actionCreators.js +1 -1
- package/dist/store/annotation/reducer.js +1 -1
- package/dist/store/toolConfig/pointCloudToolConfig.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/attributeList/components/limitPopover/index.d.ts +2 -2
- 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/components/videoAnnotate/videoClipTool/index.d.ts +1 -1
- package/dist/types/components/videoAnnotate/videoTagTool/TagToolInstanceAdaptor.d.ts +1 -1
- package/dist/types/components/videoAnnotate/videoTextTool/index.d.ts +1 -1
- package/dist/types/components/videoPlayer/index.d.ts +1 -1
- package/dist/types/constant/index.d.ts +4 -2
- package/dist/types/store/Actions.d.ts +1 -0
- package/dist/types/store/annotation/actionCreators.d.ts +9 -1
- package/dist/types/store/annotation/map.d.ts +1 -0
- package/dist/types/store/annotation/reducer.d.ts +5 -1
- package/dist/types/store/annotation/types.d.ts +4 -2
- package/dist/types/store/toolConfig/types.d.ts +2 -0
- package/dist/types/utils/LLM.d.ts +6 -0
- 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/LLM.js +1 -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/TagSidebar/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/modelAPIView/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/LLMToolView/sidebar/components/textEditor/index.js +2 -2
- package/es/components/LLMToolView/sidebar/components/textInputBox/index.js +2 -2
- package/es/components/attributeList/index.js +1 -1
- package/es/components/audioAnnotate/index.js +1 -1
- package/es/components/audioPlayer/index.js +1 -1
- package/es/components/longText/index.js +1 -1
- package/es/components/pointCloud2DRectOperationView/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/TitleButton/index.js +1 -1
- package/es/components/pointCloudView/components/UnifyParamsModal/index.js +1 -1
- package/es/components/pointCloudView/components/sideAndBackOverView/index.js +1 -1
- package/es/components/pointCloudView/hooks/useHighlight.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/index.js +1 -1
- package/es/components/tagList/index.js +1 -1
- package/es/components/videoPlayer/components/SpeedController/index.js +1 -1
- package/es/components/videoPlayer/index.js +1 -1
- package/es/constant/index.js +1 -1
- package/es/index.css +112 -90
- package/es/store/Actions.js +1 -1
- package/es/store/annotation/actionCreators.js +1 -1
- package/es/store/annotation/reducer.js +1 -1
- package/es/store/toolConfig/pointCloudToolConfig.js +1 -1
- package/es/utils/LLM.js +1 -0
- 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/TagSidebar/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 +8 -8
- 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/es/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
|
-
|
|
118
|
+
.dynamic-resizer-content .split-divider {
|
|
119
|
+
background-color: #ccc;
|
|
120
|
+
width: 5px;
|
|
121
|
+
height: 100%;
|
|
122
|
+
}
|
|
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;
|
|
129
130
|
}
|
|
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;
|
|
@@ -1547,6 +1535,14 @@
|
|
|
1547
1535
|
.bee-sidebar__toolOption + .bee-sidebar__toolOption {
|
|
1548
1536
|
margin-left: 16px;
|
|
1549
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
|
+
}
|
|
1550
1546
|
.bee-sidebar__singleTool {
|
|
1551
1547
|
max-width: 20px;
|
|
1552
1548
|
max-height: 20px;
|
|
@@ -2043,7 +2039,11 @@
|
|
|
2043
2039
|
font-size: 12px;
|
|
2044
2040
|
}
|
|
2045
2041
|
|
|
2042
|
+
.tagOperationMenu {
|
|
2043
|
+
height: 100%;
|
|
2044
|
+
}
|
|
2046
2045
|
.tagOperationMenu .main {
|
|
2046
|
+
height: 100%;
|
|
2047
2047
|
padding: 8px 8px;
|
|
2048
2048
|
overflow: auto;
|
|
2049
2049
|
-moz-user-select: none;
|
|
@@ -2591,6 +2591,7 @@
|
|
|
2591
2591
|
padding: 4px 8px;
|
|
2592
2592
|
background-color: #fff;
|
|
2593
2593
|
color: #000000;
|
|
2594
|
+
cursor: pointer;
|
|
2594
2595
|
}
|
|
2595
2596
|
|
|
2596
2597
|
.bee-point-cloud-wrapper {
|
|
@@ -2616,17 +2617,22 @@
|
|
|
2616
2617
|
line-height: 40px;
|
|
2617
2618
|
display: flex;
|
|
2618
2619
|
justify-content: space-between;
|
|
2620
|
+
height: auto;
|
|
2619
2621
|
}
|
|
2620
2622
|
.bee-point-cloud-wrapper .bee-point-cloud-container__header-title {
|
|
2621
|
-
flex:
|
|
2623
|
+
flex-shrink: 0;
|
|
2622
2624
|
overflow: hidden;
|
|
2623
2625
|
text-overflow: ellipsis;
|
|
2624
2626
|
font-weight: 500;
|
|
2627
|
+
height: 40px;
|
|
2625
2628
|
}
|
|
2626
2629
|
.bee-point-cloud-wrapper .bee-point-cloud-container__header-toolbar {
|
|
2630
|
+
flex: 1;
|
|
2627
2631
|
display: flex;
|
|
2628
2632
|
align-items: center;
|
|
2629
2633
|
font-size: 14px;
|
|
2634
|
+
flex-wrap: wrap;
|
|
2635
|
+
justify-content: flex-end;
|
|
2630
2636
|
}
|
|
2631
2637
|
.bee-point-cloud-wrapper .bee-point-cloud-container__header-toolbar .bee-point-cloud__rotate-reserve {
|
|
2632
2638
|
display: inline-block;
|
|
@@ -2713,8 +2719,13 @@
|
|
|
2713
2719
|
.bee-point-cloud-wrapper .bee-point-cloud-container__zoom .bee-point-cloud-highlight-view {
|
|
2714
2720
|
display: none;
|
|
2715
2721
|
}
|
|
2716
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left {
|
|
2717
|
-
width:
|
|
2722
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large {
|
|
2723
|
+
width: 100%;
|
|
2724
|
+
}
|
|
2725
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge {
|
|
2726
|
+
width: 100%;
|
|
2727
|
+
}
|
|
2728
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large, .bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge {
|
|
2718
2729
|
display: flex;
|
|
2719
2730
|
flex-direction: column;
|
|
2720
2731
|
border-right: 1px solid #fff;
|
|
@@ -2722,22 +2733,23 @@
|
|
|
2722
2733
|
overflow: hidden;
|
|
2723
2734
|
flex-shrink: 0;
|
|
2724
2735
|
}
|
|
2725
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container {
|
|
2736
|
+
.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 {
|
|
2737
|
+
background: #444;
|
|
2726
2738
|
display: flex;
|
|
2727
2739
|
flex-direction: column;
|
|
2728
2740
|
overflow: hidden;
|
|
2729
2741
|
flex: 1;
|
|
2730
2742
|
}
|
|
2731
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-content {
|
|
2743
|
+
.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 {
|
|
2732
2744
|
display: flex;
|
|
2733
2745
|
flex: 1;
|
|
2734
2746
|
overflow: hidden;
|
|
2735
2747
|
}
|
|
2736
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-content .bee-point-cloud-3d-view {
|
|
2748
|
+
.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 {
|
|
2737
2749
|
flex: 1;
|
|
2738
2750
|
overflow: hidden;
|
|
2739
2751
|
}
|
|
2740
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebar {
|
|
2752
|
+
.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 {
|
|
2741
2753
|
transition: width 0.5s;
|
|
2742
2754
|
padding-left: 16px;
|
|
2743
2755
|
height: 100%;
|
|
@@ -2749,10 +2761,10 @@
|
|
|
2749
2761
|
justify-content: flex-start;
|
|
2750
2762
|
overflow-y: scroll;
|
|
2751
2763
|
}
|
|
2752
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebar::-webkit-scrollbar {
|
|
2764
|
+
.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 {
|
|
2753
2765
|
display: none;
|
|
2754
2766
|
}
|
|
2755
|
-
.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 {
|
|
2767
|
+
.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 {
|
|
2756
2768
|
display: inline-block;
|
|
2757
2769
|
height: 36px;
|
|
2758
2770
|
width: 36px;
|
|
@@ -2764,16 +2776,16 @@
|
|
|
2764
2776
|
background-color: #444;
|
|
2765
2777
|
border-radius: 4px;
|
|
2766
2778
|
}
|
|
2767
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__reset {
|
|
2779
|
+
.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 {
|
|
2768
2780
|
background-image: url("../dist/assets/icons/25ef334b.svg");
|
|
2769
2781
|
margin: 16px 0;
|
|
2770
2782
|
}
|
|
2771
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__followTop {
|
|
2783
|
+
.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 {
|
|
2772
2784
|
margin: 16px 0 0 0;
|
|
2773
2785
|
background-size: 36px;
|
|
2774
2786
|
background-image: url("../dist/assets/icons/aa147cfc.png");
|
|
2775
2787
|
}
|
|
2776
|
-
.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 {
|
|
2788
|
+
.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 {
|
|
2777
2789
|
display: inline-block;
|
|
2778
2790
|
height: 36px;
|
|
2779
2791
|
width: 36px;
|
|
@@ -2783,60 +2795,60 @@
|
|
|
2783
2795
|
background-image: url("../dist/assets/icons/c5b4262e.png");
|
|
2784
2796
|
margin-bottom: 8px;
|
|
2785
2797
|
}
|
|
2786
|
-
.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 {
|
|
2798
|
+
.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 {
|
|
2787
2799
|
background-image: url("../dist/assets/icons/e4f0b7fe.png");
|
|
2788
2800
|
}
|
|
2789
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__top {
|
|
2801
|
+
.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 {
|
|
2790
2802
|
background-position: 0 0;
|
|
2791
2803
|
}
|
|
2792
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__front {
|
|
2804
|
+
.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 {
|
|
2793
2805
|
background-position-y: -44px;
|
|
2794
2806
|
}
|
|
2795
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__left {
|
|
2807
|
+
.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 {
|
|
2796
2808
|
background-position-y: -88px;
|
|
2797
2809
|
}
|
|
2798
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__back {
|
|
2810
|
+
.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 {
|
|
2799
2811
|
background-position-y: -132px;
|
|
2800
2812
|
}
|
|
2801
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__right {
|
|
2813
|
+
.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 {
|
|
2802
2814
|
background-position-y: -176px;
|
|
2803
2815
|
}
|
|
2804
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__bottom {
|
|
2816
|
+
.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 {
|
|
2805
2817
|
background-position-y: -220px;
|
|
2806
2818
|
}
|
|
2807
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__lft {
|
|
2819
|
+
.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 {
|
|
2808
2820
|
background-position-y: -264px;
|
|
2809
2821
|
}
|
|
2810
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-view__rbt {
|
|
2822
|
+
.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 {
|
|
2811
2823
|
background-position-y: -308px;
|
|
2812
2824
|
margin-bottom: 0px;
|
|
2813
2825
|
}
|
|
2814
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-3d-container .bee-point-cloud-3d-sidebarZoom {
|
|
2826
|
+
.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 {
|
|
2815
2827
|
padding-left: 16px;
|
|
2816
2828
|
height: 100%;
|
|
2817
2829
|
background-color: #4c4c4c;
|
|
2818
2830
|
box-sizing: content-box;
|
|
2819
2831
|
display: flex;
|
|
2820
2832
|
}
|
|
2821
|
-
.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 {
|
|
2833
|
+
.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 {
|
|
2822
2834
|
margin: 0px 4px;
|
|
2823
2835
|
}
|
|
2824
|
-
.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 {
|
|
2836
|
+
.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 {
|
|
2825
2837
|
margin: 0px 4px;
|
|
2826
2838
|
}
|
|
2827
|
-
.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 {
|
|
2839
|
+
.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 {
|
|
2828
2840
|
background-color: #444;
|
|
2829
2841
|
border-radius: 4px;
|
|
2830
2842
|
margin: 0px 4px;
|
|
2831
2843
|
}
|
|
2832
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom-float {
|
|
2844
|
+
.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 {
|
|
2833
2845
|
position: fixed;
|
|
2834
2846
|
bottom: 0px;
|
|
2835
2847
|
right: 0px;
|
|
2836
2848
|
z-index: 1003;
|
|
2837
2849
|
border: 1px solid #fff;
|
|
2838
2850
|
}
|
|
2839
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom-float .bee-point-cloud-container__left-bottom-floatHeader {
|
|
2851
|
+
.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 {
|
|
2840
2852
|
line-height: 24px;
|
|
2841
2853
|
font-size: 12px;
|
|
2842
2854
|
width: 100%;
|
|
@@ -2845,13 +2857,13 @@
|
|
|
2845
2857
|
text-align: center;
|
|
2846
2858
|
cursor: grabbing;
|
|
2847
2859
|
}
|
|
2848
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom {
|
|
2860
|
+
.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 {
|
|
2849
2861
|
flex: 1;
|
|
2850
2862
|
flex-direction: column;
|
|
2851
2863
|
display: flex;
|
|
2852
2864
|
overflow: hidden;
|
|
2853
2865
|
}
|
|
2854
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__empty-page {
|
|
2866
|
+
.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 {
|
|
2855
2867
|
position: absolute;
|
|
2856
2868
|
left: 0;
|
|
2857
2869
|
top: 0;
|
|
@@ -2867,11 +2879,12 @@
|
|
|
2867
2879
|
height: 100%;
|
|
2868
2880
|
width: 100%;
|
|
2869
2881
|
}
|
|
2870
|
-
.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 {
|
|
2882
|
+
.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 {
|
|
2871
2883
|
margin-top: 8px;
|
|
2872
2884
|
}
|
|
2873
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view,
|
|
2874
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__left .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view
|
|
2885
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-large .bee-point-cloud-container__left-bottom .bee-point-cloud-container__side-view,
|
|
2886
|
+
.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,
|
|
2887
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__left-noLarge .bee-point-cloud-container__left-bottom .bee-point-cloud-container__back-view {
|
|
2875
2888
|
position: relative;
|
|
2876
2889
|
flex: 1;
|
|
2877
2890
|
display: flex;
|
|
@@ -2879,12 +2892,14 @@
|
|
|
2879
2892
|
flex-direction: column;
|
|
2880
2893
|
border-top: 1px solid white;
|
|
2881
2894
|
}
|
|
2882
|
-
.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,
|
|
2883
|
-
.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
|
|
2884
|
-
|
|
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,
|
|
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-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,
|
|
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 {
|
|
2898
|
+
height: 100%;
|
|
2885
2899
|
}
|
|
2886
|
-
.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,
|
|
2887
|
-
.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
|
|
2900
|
+
.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,
|
|
2901
|
+
.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,
|
|
2902
|
+
.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 {
|
|
2888
2903
|
position: relative;
|
|
2889
2904
|
width: 100%;
|
|
2890
2905
|
height: 100%;
|
|
@@ -2910,13 +2925,15 @@
|
|
|
2910
2925
|
font-size: 14px;
|
|
2911
2926
|
}
|
|
2912
2927
|
.bee-point-cloud-wrapper .bee-point-cloud-container__right {
|
|
2913
|
-
|
|
2928
|
+
width: 100%;
|
|
2929
|
+
height: 100%;
|
|
2914
2930
|
display: flex;
|
|
2915
2931
|
flex-direction: column;
|
|
2916
2932
|
overflow: hidden;
|
|
2917
2933
|
background-color: #444;
|
|
2918
2934
|
}
|
|
2919
2935
|
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__top-view {
|
|
2936
|
+
height: 100%;
|
|
2920
2937
|
border-bottom: 1px solid #fff;
|
|
2921
2938
|
overflow: hidden;
|
|
2922
2939
|
display: flex;
|
|
@@ -2944,18 +2961,23 @@
|
|
|
2944
2961
|
border-right: 1px solid #fff;
|
|
2945
2962
|
border-bottom: 1px solid #fff;
|
|
2946
2963
|
}
|
|
2947
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom {
|
|
2964
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom-large {
|
|
2948
2965
|
flex: 1;
|
|
2966
|
+
}
|
|
2967
|
+
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom-noLarge {
|
|
2968
|
+
height: 100%;
|
|
2969
|
+
}
|
|
2970
|
+
.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 {
|
|
2949
2971
|
display: flex;
|
|
2950
2972
|
overflow: auto;
|
|
2951
2973
|
}
|
|
2952
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom .bee-point-cloud-2d-container {
|
|
2974
|
+
.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 {
|
|
2953
2975
|
flex-direction: column;
|
|
2954
2976
|
display: flex;
|
|
2955
2977
|
overflow: hidden;
|
|
2956
2978
|
flex-shrink: 0;
|
|
2957
2979
|
}
|
|
2958
|
-
.bee-point-cloud-wrapper .bee-point-cloud-container__right .bee-point-cloud-container__right-bottom .bee-point-cloud-2d-image {
|
|
2980
|
+
.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 {
|
|
2959
2981
|
flex: 1;
|
|
2960
2982
|
height: 100%;
|
|
2961
2983
|
background-color: #4c4c4c;
|
package/es/store/Actions.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _={INIT_ALL_STATE:"@@INIT_ALL_STATE",UPDATE_TOOL_INSTANCE:"@@UPDATE_TOOL_INSTANCE",UPDATE_IMG_LIST:"@@UPDATE_IMG_LIST",UPDATE_ANNOTATION_CONFIG:"@@UPDATE_ANNOTATION_CONFIG",LOAD_FILE_DATA:"@@LOAD_FILE_DATA",SUBMIT_FILE_DATA:"@@SUBMIT_FILE_DATA",SET_TASK_CONFIG:"@@SET_TASK_CONFIG",INIT_TOOL:"@@INIT_TOOL",SET_TOOL:"@@SET_TOOL",UPDATE_ON_SUBMIT:"@@UPDATE_ON_SUBMIT",UPDATE_ON_SAVE:"@@UPDATE_ON_SAVE",UPDATE_ON_PAGE_CHANGE:"@@UPDATE_ON_PAGE_CHANGE",UPDATE_ON_STEP_CHANGE:"@@UPDATE_ON_STEP_CHANGE",UPDATE_ROTATE:"@@UPDATE_ROTATE",UPDATE_GET_FILE_DATA:"@@UPDATE_GET_FILE_DATA",UPDATE_PAGE_SIZE:"@@UPDATE_PAGE_SIZE",UPDATE_LOAD_FILE_LIST:"@@UPDATE_LOAD_FILE_LIST",GET_FILE_DATA:"@@GET_FILE_DATA",SET_FILE_DATA:"@@SET_FILE_DATA",COPY_BACKWARD_RESULT:"@@COPY_BACKWARD_RESULT",SET_STEP:"@@SET_STEP",SUBMIT_RESULT:"@@SUBMIT_RESULT",SAVE_RESULT:"@@SAVE_RESULT",SET_BASIC_INDEX:"@@SET_BASIC_INDEX",CALC_STEP_PROGRESS:"@@CALC_STEP_PROGRESS",SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED:"@@SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED",SKIP_BEFORE_PAGE_TURNING:"@@SKIP_BEFORE_PAGE_TURNING",UPDATE_BEFORE_ROTATE:"@@UPDATE_BEFORE_ROTATE",SET_LOADING:"@@SET_LOADING",SET_LOADPCDFILE_LOADING:"@@SET_LOADPCDFILE_LOADING",SET_POINT_CLOUD_LOADING:"@@SET_POINT_CLOUD_LOADING",SET_CHECK_MODE:"@@SET_CHECK_MODE",SET_TASK_STEP_LIST:"@@SET_TASK_STEP_LIST",UPDATE_ANNOTATION_VALID:"@@UPDATE_ANNOTATION_VALID",BATCH_UPDATE_TRACK_ID:"@@BATCH_UPDATE_TRACK_ID",BATCH_UPDATE_RESULT_BY_TRACK_ID:"@@BATCH_UPDATE_RESULT_BY_TRACK_ID",BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT:"@@BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT",SET_PREDICT_RESULT_VISIBLE:"@@SET_PREDICT_RESULT_VISIBLE",SET_PREDICT_RESULT:"@@SET_PREDICT_RESULT",SET_HIGHLIGHT_ATTRIBUTE:"@@SET_HIGHLIGHT_ATTRIBUTE",UPDATE_PRE_DATA_PROCESS:"@@UPDATE_PRE_DATA_PROCESS",UPDATE_IMG_INDEX_BY_EXTERNAL:"@@UPDATE_IMG_INDEX_BY_EXTERNAL",CHANGE_PAGE_CHECK:"@@CHANGE_PAGE_CHECK"},T={UPDATE_IMG_ATTRIBUTE:"@@UPDATE_IMG_ATTRIBUTE",INIT_IMG_ATTRIBUTE:"@@INIT_IMG_ATTRIBUTE"},E={INIT_TOOL_STYLE_CONFIG:"@@INIT_TOOL_STYLE_CONFIG",UPDATE_TOOL_STYLE_CONFIG:"@@UPDATE_TOOL_STYLE_CONFIG"};export{_ as ANNOTATION_ACTIONS,T as IMAGE_ATTRIBUTE_ACTIONS,E as TOOL_STYLE_ACTIONS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ANNOTATION_ACTIONS as
|
|
1
|
+
import{ANNOTATION_ACTIONS as o}from"../Actions.js";import{LoadFileAndFileData as G,getStepConfig as b}from"./reducer.js";import{ESubmitType as E}from"../../constant/index.js";import{EPageTurningOperation as y}from"../../data/enums/AnnotationSize.js";import J from"../../utils/PageOperator.js";import{jsonParser as X}from"../../utils/index.js";import{i18n as W}from"@labelbee/lb-utils";import{EVideoToolName as q}from"@labelbee/lb-annotation";import{getBoxesByTrackID as z}from"../../components/predictTracking/previewResult/util.js";import{Modal as Z}from"antd";var I=(t,n,e)=>new Promise((a,r)=>{var i=l=>{try{u(e.next(l))}catch(p){r(p)}},s=l=>{try{u(e.throw(l))}catch(p){r(p)}},u=l=>l.done?a(l.value):Promise.resolve(l.value).then(i,s);u((e=e.apply(t,n)).next())});const w=(t,n)=>n.map(e=>t(e)),$=t=>t===y.Forward?E.Forward:t===y.Backward?E.Backward:t===y.Jump?E.Jump:E.Forward,Q=(t,n)=>{var e,a,r;const{imgList:i,imgIndex:s}=t,{dataSourceStep:u}=b(t.stepList,t.step);return((r=(a=X((e=i[s-1])==null?void 0:e.result)[`step_${u}`])==null?void 0:a.result)==null?void 0:r.length)-1||n};function tt(t){return{type:o.UPDATE_TOOL_INSTANCE,payload:{toolInstance:t}}}function k({stepList:t}){return{type:o.SET_TASK_STEP_LIST,payload:{stepList:t}}}function F({stepList:t,step:n}){return{type:o.SET_TASK_CONFIG,payload:{stepList:t,step:n}}}function U(t){return{type:o.UPDATE_ON_SUBMIT,payload:{onSubmit:t}}}function L(t){return{type:o.UPDATE_ON_SAVE,payload:{onSave:t}}}function D(t){return{type:o.UPDATE_ON_PAGE_CHANGE,payload:{onPageChange:t}}}function C(t){return{type:o.UPDATE_ON_STEP_CHANGE,payload:{onStepChange:t}}}function R(t){return{type:o.UPDATE_GET_FILE_DATA,payload:{getFileData:t}}}function g(t){return{type:o.UPDATE_PAGE_SIZE,payload:{pageSize:t}}}function B(t){return{type:o.UPDATE_LOAD_FILE_LIST,payload:{loadFileList:t}}}function nt(){return{type:o.UPDATE_ROTATE}}function H(t){return{type:o.SKIP_BEFORE_PAGE_TURNING,payload:{skipBeforePageTurning:t}}}function h(t){return{type:o.UPDATE_BEFORE_ROTATE,payload:{beforeRotate:t}}}function v(t){return{type:o.UPDATE_PRE_DATA_PROCESS,payload:{preDataProcess:t}}}function et(){return{type:o.COPY_BACKWARD_RESULT}}function M(t){return{type:o.UPDATE_IMG_INDEX_BY_EXTERNAL,payload:{getImgIndexByExternal:t}}}function ot({id:t,newID:n,rangeIndex:e,imgList:a}){return{type:o.BATCH_UPDATE_TRACK_ID,payload:{id:t,newID:n,rangeIndex:e,imgList:a}}}function at(t,n,e,a){return{type:o.BATCH_UPDATE_RESULT_BY_TRACK_ID,payload:{id:t,newData:n,rangeIndex:e,imgList:a}}}function rt(){return{type:o.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT,payload:{}}}const j=t=>({type:o.SET_CHECK_MODE,payload:{checkMode:t}}),N=t=>({type:o.SET_HIGHLIGHT_ATTRIBUTE,payload:{attribute:t}});function it({onSubmit:t,onSave:n,onPageChange:e,onStepChange:a,getFileData:r,pageSize:i,loadFileList:s,step:u,stepList:l,skipBeforePageTurning:p,beforeRotate:T,checkMode:d,highlightAttribute:f,preDataProcess:_,getImgIndexByExternal:A}){const c=[];return t&&c.push(U(t)),n&&c.push(L(n)),e&&c.push(D(e)),a&&c.push(C(a)),r&&c.push(R(r)),s&&c.push(B(s)),i&&c.push(g(i)),p&&c.push(H(p)),T&&c.push(h(T)),_&&c.push(v(_)),typeof d=="boolean"&&c.push(j(d)),A&&c.push(M(A)),c.push(N(f)),c.push(F({stepList:l,step:u})),c.push({type:o.CALC_STEP_PROGRESS}),c.push({type:o.INIT_TOOL}),x=>w(x,c)}function ut({onSubmit:t,onSave:n,onPageChange:e,onStepChange:a,getFileData:r,pageSize:i,loadFileList:s,stepList:u,beforeRotate:l,highlightAttribute:p,preDataProcess:T}){const d=[];return t&&d.push(U(t)),n&&d.push(L(n)),e&&d.push(D(e)),a&&d.push(C(a)),r&&d.push(R(r)),s&&d.push(B(s)),i&&d.push(g(i)),l&&d.push(h(l)),T&&d.push(v(T)),d.push(N(p)),d.push(k({stepList:u})),f=>w(f,d)}const st=(t,n)=>{var e;const a=n==null?void 0:n.findIndex(r=>(r==null?void 0:r.step)===t);return(e=n[a+1])==null?void 0:e.step},lt=t=>(n,e)=>{const{annotation:a}=e(),{step:r,stepList:i}=a,s=st(r,i);return[n(K(s,t))]},K=(t,n)=>(e,a)=>{var r,i;const{annotation:s}=a();(r=s==null?void 0:s.onStepChange)==null||r.call(s,t);const u=(i=s==null?void 0:s.imgIndex)!=null?i:0;return[e({type:o.SUBMIT_RESULT}),e({type:o.SUBMIT_FILE_DATA,payload:{submitType:E.StepChanged}}),e({type:o.SET_STEP,payload:{toStep:t}}),e({type:o.CALC_STEP_PROGRESS}),e(G(n!=null?n:u,0))]},P=t=>n=>[n({type:o.SUBMIT_RESULT}),n({type:o.SUBMIT_FILE_DATA,payload:{submitType:t}})],pt=(t,n,e,a)=>I(void 0,null,function*(){S(t,!0),t(P(e)),yield t(Y(e)),t(G(n,a))}),dt=(t,n)=>[t({type:o.SUBMIT_RESULT}),t({type:o.SET_BASIC_INDEX,payload:{basicIndex:n}})],ct=(t,n)=>{t({type:o.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED,payload:{triggerEventAfterIndexChanged:n}})},Tt=(t=!1)=>(n,e)=>m(n,e,y.Backward,t),_t=(t=!1)=>(n,e)=>m(n,e,y.Forward,t),ft=(t,n=!1)=>(e,a)=>{if(t!==a().imgIndex)return m(e,a,y.Jump,n,t)},V=(t,n,e,a)=>I(void 0,null,function*(){var r;const{loadFileList:i,imgList:s,pageSize:u}=n().annotation,l=Math.floor(e/u);S(t,!0);try{const p=yield i(l,u);if(S(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 T=a?new Array(p.total):[...s];return T.splice(l*u,u,...p.fileList),t({type:o.UPDATE_IMG_LIST,payload:{imgList:T}}),!0}catch(p){S(t,!1),console.error(p)}}),m=(t,n,e,a=!1,r)=>I(void 0,null,function*(){t({type:o.CHANGE_PAGE_CHECK});const{t:i}=W,s=n(),{confirmPageTurning:u,stepList:l,step:p}=s.annotation||!1,T=b(l,p),{confirm:d,destroyAll:f}=Z;return!u||T.tool!==q.VideoTagTool?O(t,n,e,a,r):new Promise(_=>{f(),d({centered:!0,title:i("TheCurrentImageHasNotBeenAnnotatedYetAreYouSureToTurnThePage"),onCancel:()=>_(!1),onOk:()=>_(!0)})}).then(_=>_?O(t,n,e,a,r):Promise.resolve())}),O=(t,n,e,a=!1,r)=>I(void 0,null,function*(){var i,s;const u=n().annotation,l=$(e);let{fileIndexChanged:p,fileIndex:T,basicIndexChanged:d,basicIndex:f}=J.getNextPageInfo(e,u,r);const _=(i=u==null?void 0:u.getImgIndexByExternal)==null?void 0:i.call(u,u.imgIndex,l);if(_!==void 0&&(p=!0,T=_),ct(t,a),p){if(u.loading||!u.imgList[T]&&!(yield V(t,n,T)))return;const A=n();(s=u.onPageChange)==null||s.call(u,T);const c=l===E.Backward?Q(A.annotation,f):f;return pt(t,T,l,c)}return d?dt(t,f):t(P(l))}),Et=t=>{t(P(E.Save)),t({type:o.SAVE_RESULT})},S=(t,n)=>{t({type:o.SET_LOADING,payload:{loading:n}})},yt=(t,n)=>{t({type:o.SET_LOADPCDFILE_LOADING,payload:{loadPCDFileLoading:n}})},It=t=>{t({type:o.INIT_ALL_STATE,payload:{}})},St=(t,n)=>{t({type:o.SET_PREDICT_RESULT,payload:{result:n}})},At=(t,n)=>{t({type:o.SET_PREDICT_RESULT_VISIBLE,payload:{visible:n}})},Pt=(t,n)=>(e,a)=>{const{imgList:r,step:i}=a().annotation;return z(r,i,t,n)},mt=t=>(n,e)=>{var a,r;const{annotation:i}=e();return(r=(a=i==null?void 0:i.preDataProcess)==null?void 0:a.call(i,t))!=null?r:t.dataList},Y=t=>(n,e)=>I(void 0,null,function*(){const{annotation:a}=e(),{onSubmit:r,imgIndex:i,imgList:s}=a;!r||(yield r([s[i]],t,i,s))});export{rt as BatchUpdateImgListResultByPredictResult,at as BatchUpdateResultByTrackID,ot as BatchUpdateTrackID,Et as ChangeSave,m as CheckExecutePageTurning,et as CopyBackWordResult,O as DispatcherTurning,Pt as GetBoxesByID,It as InitAnnotationState,it as InitTaskData,Tt as PageBackward,_t as PageForward,ft as PageJump,mt as PreDataProcess,S as SetAnnotationLoading,yt as SetLoadPCDFileLoading,St as SetPredictResult,At as SetPredictResultVisible,F as SetTaskConfig,k as SetTaskStepList,Y as SubmitHandler,lt as ToNextStep,P as ToSubmitFileData,h as UpdateBeforeRotate,j as UpdateCheckMode,R as UpdateGetFileData,B as UpdateGetFileList,N as UpdateHighlightAttribute,M as UpdateImgIndexByExternal,ut as UpdateInjectFunc,D as UpdateOnPageChange,L as UpdateOnSave,C as UpdateOnStepChange,U as UpdateOnSubmit,g as UpdatePageSize,v as UpdatePreDataProcess,K as UpdateProcessingStep,nt as UpdateRotate,H as UpdateSkipBeforePageTurning,tt as UpdateToolInstance,V as loadImgList};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getFormatSize as yt}from"../../components/customResizeHook/index.js";import{ESubmitType as W}from"../../constant/index.js";import Rt from"../../constant/styleString.js";import{ANNOTATION_ACTIONS as i}from"../Actions.js";import{jsonParser as x}from"../../utils/index.js";import Y from"../../utils/AnnotationDataUtils.js";import{ConfigUtils as Pt}from"../../utils/ConfigUtils.js";import{composeResultWithBasicImgInfo as dt,composeResult as J}from"../../utils/data.js";import h from"../../utils/StepUtils.js";import q from"../../utils/ToolUtils.js";import{MathUtils as pt,CommonToolUtils as Ct,AnnotationEngine as ht,ImgUtils as Ot}from"@labelbee/lb-annotation";import{PointCloudUtils as gt,i18n as M}from"@labelbee/lb-utils";import{Modal as _t}from"antd";import{message as It}from"antd/es";import mt from"lodash";import{SetAnnotationLoading as $}from"./actionCreators.js";import{EToolName as w}from"../../data/enums/ToolType.js";var bt=Object.defineProperty,Nt=Object.defineProperties,Ut=Object.getOwnPropertyDescriptors,ft=Object.getOwnPropertySymbols,Bt=Object.prototype.hasOwnProperty,xt=Object.prototype.propertyIsEnumerable,Lt=(t,e,u)=>e in t?bt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,o=(t,e)=>{for(var u in e||(e={}))Bt.call(e,u)&&Lt(t,u,e[u]);if(ft)for(var u of ft(e))xt.call(e,u)&&Lt(t,u,e[u]);return t},s=(t,e)=>Nt(t,Ut(e)),Tt=(t,e,u)=>new Promise((S,d)=>{var A=m=>{try{E(u.next(m))}catch(y){d(y)}},T=m=>{try{E(u.throw(m))}catch(y){d(y)}},E=m=>m.done?S(m.value):Promise.resolve(m.value).then(A,T);E((u=u.apply(t,e)).next())});const F=(t,e)=>t.find(u=>u.step===e),Et={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:""},wt=t=>{const{imgList:e,imgPageSize:u}=t;return Math.ceil(e.length/u)},St=(t,e)=>t.reduce((u,S)=>{if(S){const d=S.result;if(x(d)[`step_${e}`])return u+1}return u},0)/t.length,Ft=(t,e)=>{const{step:u,stepList:S}=t,d=h.getCurrentStepInfo(u,S),A=Pt.jsonParser(d.config);if(q.isVideoTool(d==null?void 0:d.tool)||q.isAudioTool(d==null?void 0:d.tool)||q.isPointCloudTool(d==null?void 0:d.tool)||[w.LLM,w.NLP,w.LLMMultiWheel].includes(d==null?void 0:d.tool))return;const T=document.getElementById("toolContainer");if(!T)throw"Not exist dom named id-toolContainer";const E=yt({width:window.innerWidth,height:window.innerHeight}),m=new ht({container:T,toolName:d.tool,size:E,imgNode:e,config:A,style:JSON.parse(Rt)});return{toolInstance:m==null?void 0:m.toolInstance,annotationEngine:m}},jt=(t,e)=>(u,S)=>Tt(void 0,null,function*(){var d,A;const{stepList:T,step:E}=S().annotation,m=h.currentToolIsVideo(E,T),y=h.currentToolIsPointCloud(E,T),O=[w.LLM,w.LLMMultiWheel].includes((d=h.getCurrentStepInfo(E,T))==null?void 0:d.tool),b=((A=h.getCurrentStepInfo(E,T))==null?void 0:A.tool)===w.NLP,N=h.currentToolIsAudio(E,T);if($(u,!0),yield u(Gt(t)),m){u(Mt(t));return}if(y||O||N||b){u(Vt(t));return}u(kt(t,e))}),Gt=t=>(e,u)=>Tt(void 0,null,function*(){const{getFileData:S,imgList:d}=u().annotation;if(S){const A=yield S(d[t],t);e({type:i.SET_FILE_DATA,payload:{fileData:A,index:t}})}}),Mt=t=>e=>{e({type:i.LOAD_FILE_DATA,payload:{nextIndex:t}})},Vt=t=>e=>{$(e,!1),e({type:i.LOAD_FILE_DATA,payload:{nextIndex:t}})},kt=(t,e)=>(u,S)=>{var d;const{toolInstance:A,imgList:T}=S().annotation,E=(d=T==null?void 0:T[t])==null?void 0:d.url;Ot.load(E).then(m=>{$(u,!1),u({type:i.LOAD_FILE_DATA,payload:{imgNode:m,nextIndex:t,nextBasicIndex:e}})}).catch(()=>{$(u,!1),A==null||A.setErrorImg(),u({type:i.LOAD_FILE_DATA,payload:{nextIndex:t,nextBasicIndex:e}})})},Ht=({toolInstance:t,imgList:e,imgIndex:u,stepList:S,step:d=1})=>{var A,T,E,m;const y=((A=e[u])==null?void 0:A.result)||"",[O,b,N]=(T=t==null?void 0:t.exportData())!=null?T:[],V=(m=(E=t==null?void 0:t.exportCustomData)==null?void 0:E.call(t))!=null?m:{},k=dt(y,b),H=J(k,{step:d,stepList:S},{rect:O},V);return e.map((j,z)=>z===u?o(s(o({},j),{result:H}),N):o({},j))},zt=(t=o({},Et),e)=>{var u,S,d,A,T,E,m,y,O,b,N,V,k,H,j,z,Z,Q,tt,et,nt,ot,lt,st,it,rt,ut,at;switch(e.type){case i.INIT_ALL_STATE:return o(o({},t),Et);case i.UPDATE_TOOL_INSTANCE:return s(o({},t),{toolInstance:e.payload.toolInstance});case i.UPDATE_IMG_LIST:return s(o({},t),{imgList:e.payload.imgList});case i.CALC_STEP_PROGRESS:{const{imgList:n,step:l}=t,r=St(n,l);return s(o({},t),{stepProgress:r})}case i.SUBMIT_FILE_DATA:{const{imgList:n,imgIndex:l,step:r,stepList:a,toolInstance:p,onSubmit:c,resultList:f}=t;if(!p||!n[l])return t;const I=((u=n[l])==null?void 0:u.result)||"",[,_,g]=(S=p==null?void 0:p.exportData())!=null?S:[],L=(A=(d=p==null?void 0:p.exportCustomData)==null?void 0:d.call(p))!=null?A:{},D=dt(I,_),v=J(D,{step:r,stepList:a},{rect:f},L),P=t.imgList.map((C,R)=>{if(R===l){const G=Y.dataCorrection(v,I,r,a);return o(s(o({},C),{result:G}),g)}return C});if(((T=e.payload)==null?void 0:T.submitType)===W.SyncImgList)return s(o({},t),{imgList:P});const U=St(P,r);return s(o({},t),{stepProgress:U,imgList:P})}case i.SAVE_RESULT:{const{imgList:n,imgIndex:l,onSave:r}=t;return r==null||r(n[l],l,n),o({},t)}case i.SUBMIT_RESULT:{const{imgList:n,basicIndex:l,resultList:r,toolInstance:a,basicResultList:p}=t;if(!a)return t;const[c]=(E=a==null?void 0:a.exportData())!=null?E:[];let f=c;if((p==null?void 0:p.length)>0){const I=(m=p[l])==null?void 0:m.id,_=c.map(g=>s(o({},g),{sourceID:I}));f=mt.cloneDeep(r).filter(g=>g.sourceID!==I),f.push(..._)}return s(o({},t),{resultList:f,imgList:n})}case i.SET_BASIC_INDEX:{const{toolInstance:n,step:l,imgList:r,imgIndex:a,stepList:p,annotationEngine:c,resultList:f,basicResultList:I}=t;if(!n||!c)return t;const _=e.payload.basicIndex,g=(y=I[_])==null?void 0:y.id,L=x((O=r[a])==null?void 0:O.result),D=(f||[]).filter(G=>G.sourceID===g),v=F(p,l),{dataSourceStep:P,tool:U}=v,C=F(p,P);let R=[];return P&&U&&(R=(b=L[`step_${P}`])==null?void 0:b.result,(R==null?void 0:R.length)>0?(c==null||c.setBasicInfo(C.tool,R[_]),c==null||c.launchOperation()):(c==null||c.setBasicInfo(C.tool),c==null||c.forbidOperation(),It.info(M.t("NoDependency")))),n==null||n.setResult(D),n==null||n.history.initRecord(D,!0),s(o({},t),{basicIndex:_})}case i.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED:{const{triggerEventAfterIndexChanged:n}=e.payload;return s(o({},t),{triggerEventAfterIndexChanged:!!n})}case i.LOAD_FILE_DATA:{const{imgList:n,step:l,toolInstance:r,annotationEngine:a,stepList:p}=t;if(!r)return s(o({},t),{imgIndex:e.payload.nextIndex});const c=h.getCurrentStepInfo(l,p),{nextIndex:f,imgNode:I,nextBasicIndex:_,imgError:g}=e.payload,L=_!=null?_:0,D=x((N=n[f])==null?void 0:N.result),v=D[`step_${c.step}`],P=!v,U={rotate:(V=D.rotate)!=null?V:0,valid:(k=D.valid)!=null?k:!0};I&&g!==!0?a==null||a.setImgNode(I,U):r==null||r.setValid(U.valid);const C=F(p,c.step),{dataSourceStep:R,tool:G}=C,ct=F(p,R),X=R&&G,B=(j=(H=D[`step_${R}`])==null?void 0:H.result)!=null?j:[],K=Y.getInitialResultList(v==null?void 0:v.result,r,C,B,P);if(a==null||a.launchOperation(),X&&((B==null?void 0:B.length)>0?a==null||a.setBasicInfo(ct.tool,B[L]):(a==null||a.setBasicInfo(ct.tool),a==null||a.forbidOperation(),It.info(M.t("NoDependency")))),c.tool!=="check"&&X){const At=(Z=(z=B[L])==null?void 0:z.id)!=null?Z:"",Dt=X?K.filter(vt=>Ct.isSameSourceID(vt.sourceID,At)):K;(Q=r==null?void 0:r.history)==null||Q.initRecord(K,!0),r==null||r.setResult(Dt)}return s(o({},t),{imgIndex:f,basicIndex:L,basicResultList:B,resultList:K})}case i.UPDATE_ANNOTATION_CONFIG:return s(o({},t),{config:(tt=e.payload.config)!=null?tt:"{}"});case i.SET_TASK_STEP_LIST:{const{stepList:n}=e.payload;return s(o({},t),{stepList:n})}case i.SET_TASK_CONFIG:{const{stepList:n,step:l}=e.payload;return s(o({},t),{stepList:n,step:l})}case i.INIT_TOOL:{const{imgNode:n}=t,l=Ft(t,n);if(l){const{toolInstance:r,annotationEngine:a}=l;return s(o({},t),{toolInstance:r,annotationEngine:a})}return o({},t)}case i.SET_TOOL:{const n=(et=e.payload)==null?void 0:et.instance;return n?s(o({},t),{toolInstance:n}):o({},t)}case i.UPDATE_ON_SUBMIT:return s(o({},t),{onSubmit:e.payload.onSubmit});case i.UPDATE_ON_SAVE:return s(o({},t),{onSave:e.payload.onSave});case i.UPDATE_ON_PAGE_CHANGE:return s(o({},t),{onPageChange:e.payload.onPageChange});case i.SET_PREDICT_RESULT:return s(o({},t),{predictionResult:e.payload.result});case i.SET_PREDICT_RESULT_VISIBLE:return s(o({},t),{predictionResultVisible:e.payload.visible});case i.UPDATE_ON_STEP_CHANGE:return s(o({},t),{onStepChange:e.payload.onStepChange});case i.UPDATE_GET_FILE_DATA:return s(o({},t),{getFileData:e.payload.getFileData});case i.UPDATE_PAGE_SIZE:return s(o({},t),{pageSize:e.payload.pageSize});case i.UPDATE_LOAD_FILE_LIST:return s(o({},t),{loadFileList:e.payload.loadFileList});case i.UPDATE_BEFORE_ROTATE:return s(o({},t),{beforeRotate:e.payload.beforeRotate});case i.UPDATE_PRE_DATA_PROCESS:return s(o({},t),{preDataProcess:e.payload.preDataProcess});case i.UPDATE_IMG_INDEX_BY_EXTERNAL:return s(o({},t),{getImgIndexByExternal:e.payload.getImgIndexByExternal});case i.SKIP_BEFORE_PAGE_TURNING:return s(o({},t),{skipBeforePageTurning:e.payload.skipBeforePageTurning});case i.SET_FILE_DATA:{const{fileData:n,index:l}=e.payload,{imgList:r}=t,a=[...r];return a[l]=o(o({},a[l]),n),s(o({},t),{imgList:a})}case i.UPDATE_ROTATE:{const{toolInstance:n,beforeRotate:l}=t;return l&&l()===!1||(nt=n==null?void 0:n.updateRotate)==null||nt.call(n),t}case i.UPDATE_ANNOTATION_VALID:{const{toolInstance:n}=t,l=(ot=n==null?void 0:n.valid)!=null?ot:!0;return _t.destroyAll(),_t.confirm({content:M.t(l?"updateValidFromValidToInValid":"updateValidFromInValidToValid"),onOk:()=>{n==null||n.setValid(!l)},okText:M.t("Confirm"),cancelText:M.t("Cancel")}),t}case i.COPY_BACKWARD_RESULT:{const{toolInstance:n,imgIndex:l,imgList:r,step:a,stepList:p}=t;if(!n)return t;if(l===0||l>=r.length)return console.error("\u65E0\u6CD5\u590D\u5236\u8FB9\u754C\u5916\u7684\u5185\u5BB9"),t;const c=r[l-1].result;if(!c)return t;const f=h.getCurrentStepInfo(a,p),I=(lt=f==null?void 0:f.step)!=null?lt:a,_=(st=n==null?void 0:n.valid)!=null?st:!0,g=Y.copyResultChange({copyResult:c,step:I,currentResult:(it=r[l].result)!=null?it:"",preMappingImgList:(rt=r[l-1].mappingImgList)!=null?rt:[],mappingImgList:(ut=r[l].mappingImgList)!=null?ut:[],valid:_});r[l]=s(o({},r[l]),{result:g});const D=x(g)[`step_${a}`],v=(D==null?void 0:D.result)||[];return n==null||n.setResult(v),n==null||n.history.pushHistory(v),(at=n==null?void 0:n.asyncData)==null||at.call(n,r[l]),s(o({},t),{imgList:[...r]})}case i.SET_STEP:{const{stepList:n,annotationEngine:l}=t,{toStep:r}=e.payload;if(l){const a=F(n,r);return l==null||l.setToolName(a.tool,a.config),s(o({},t),{step:r,toolInstance:l==null?void 0:l.toolInstance})}return s(o({},t),{step:r})}case i.SET_LOADPCDFILE_LOADING:{const{loadPCDFileLoading:n}=e.payload;return s(o({},t),{loadPCDFileLoading:!!n})}case i.SET_LOADING:{const{loading:n}=e.payload;return s(o({},t),{loading:!!n})}case i.SET_POINT_CLOUD_LOADING:{const{pointCloudLoading:n}=e.payload;return s(o({},t),{pointCloudLoading:!!n})}case i.SET_CHECK_MODE:{const{checkMode:n}=e.payload;return s(o({},t),{checkMode:!!n})}case i.SET_HIGHLIGHT_ATTRIBUTE:{const{attribute:n}=e.payload;return s(o({},t),{highlightAttribute:n})}case i.BATCH_UPDATE_TRACK_ID:{const{id:n,newID:l,rangeIndex:r,imgList:a}=e.payload,{imgIndex:p,onSubmit:c}=t,f=[],I=a.map((_,g)=>{if(pt.isInRange(g,r)){const L=s(o({},_),{result:gt.batchUpdateTrackID({id:n,newID:l,result:_.result})});return f.push({imgIndex:g,newInfo:L}),L}return _});return c&&c([I[p]],W.BatchUpdateTrackID,p,I,{updateImgList:f}),s(o({},t),{imgList:I})}case i.BATCH_UPDATE_RESULT_BY_TRACK_ID:{const{id:n,newData:l,rangeIndex:r}=e.payload,{imgList:a,imgIndex:p,onSubmit:c}=t,f=[],I=a.map((_,g)=>{if(pt.isInRange(g,r)){const L=s(o({},_),{result:gt.batchUpdateResultByTrackID({id:n,newData:l,result:_.result})});return f.push({imgIndex:g,newInfo:L}),L}return _});return c&&c([I[p]],W.BatchUpdateTrackID,p,I,{updateImgList:f}),s(o({},t),{imgList:I})}case i.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT:{const{onSubmit:n,imgList:l,stepList:r,step:a,predictionResult:p}=t,c={};p.forEach(g=>{const{index:L}=g;c[L]=mt.pick(g,["center","width","height","depth","rotation","id","attribute","valid","trackID"])});const f=`step_${a}`,I=[],_=l.map((g,L)=>{if(c[L]){const D=g.result==="{}"?x(J("",{step:a,stepList:r},{rect:[]},{})):x(g.result);D[f].result.push(c[L]);const v=s(o({},g),{result:JSON.stringify(D)});return I.push({imgIndex:L,newInfo:v}),v}return g});return n==null||n(_,W.BatchUpdateImgList,-1,_,{updateImgList:I}),s(o({},t),{imgList:_})}default:return t}};export{jt as LoadFileAndFileData,zt as annotationReducer,Ht as composeResultByToolInstance,F as getStepConfig,wt as getTotalPage};
|
|
1
|
+
import{getFormatSize as Ct}from"../../components/customResizeHook/index.js";import{ESubmitType as W}from"../../constant/index.js";import ht from"../../constant/styleString.js";import{ANNOTATION_ACTIONS as r}from"../Actions.js";import{jsonParser as j}from"../../utils/index.js";import Y from"../../utils/AnnotationDataUtils.js";import{ConfigUtils as pt}from"../../utils/ConfigUtils.js";import{composeResultWithBasicImgInfo as gt,composeResult as J}from"../../utils/data.js";import h from"../../utils/StepUtils.js";import q from"../../utils/ToolUtils.js";import{MathUtils as _t,CommonToolUtils as Ot,AnnotationEngine as bt,ImgUtils as Nt}from"@labelbee/lb-annotation";import{PointCloudUtils as It,i18n as M}from"@labelbee/lb-utils";import{Modal as mt}from"antd";import{message as ft}from"antd/es";import Tt from"lodash";import{SetAnnotationLoading as $}from"./actionCreators.js";import{EToolName as O}from"../../data/enums/ToolType.js";var Ut=Object.defineProperty,Bt=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,wt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Et=(t,e,u)=>e in t?Ut(t,e,{enumerable:!0,configurable:!0,writable:!0,value:u}):t[e]=u,o=(t,e)=>{for(var u in e||(e={}))wt.call(e,u)&&Et(t,u,e[u]);if(Lt)for(var u of Lt(e))Ft.call(e,u)&&Et(t,u,e[u]);return t},l=(t,e)=>Bt(t,xt(e)),At=(t,e,u)=>new Promise((A,d)=>{var S=f=>{try{E(u.next(f))}catch(y){d(y)}},L=f=>{try{E(u.throw(f))}catch(y){d(y)}},E=f=>f.done?A(f.value):Promise.resolve(f.value).then(S,L);E((u=u.apply(t,e)).next())});const b=(t,e)=>t.find(u=>u.step===e),St={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:"",confirmPageTurning:!1},jt=t=>{const{imgList:e,imgPageSize:u}=t;return Math.ceil(e.length/u)},Dt=(t,e)=>t.reduce((u,A)=>{if(A){const d=A.result;if(j(d)[`step_${e}`])return u+1}return u},0)/t.length,Gt=(t,e)=>{const{step:u,stepList:A}=t,d=h.getCurrentStepInfo(u,A),S=pt.jsonParser(d.config);if(q.isVideoTool(d==null?void 0:d.tool)||q.isAudioTool(d==null?void 0:d.tool)||q.isPointCloudTool(d==null?void 0:d.tool)||[O.LLM,O.NLP,O.LLMMultiWheel].includes(d==null?void 0:d.tool))return;const L=document.getElementById("toolContainer");if(!L)throw"Not exist dom named id-toolContainer";const E=Ct({width:window.innerWidth,height:window.innerHeight}),f=new bt({container:L,toolName:d.tool,size:E,imgNode:e,config:S,style:JSON.parse(ht)});return{toolInstance:f==null?void 0:f.toolInstance,annotationEngine:f}},Mt=(t,e)=>(u,A)=>At(void 0,null,function*(){var d,S;const{stepList:L,step:E}=A().annotation,f=h.currentToolIsVideo(E,L),y=h.currentToolIsPointCloud(E,L),N=[O.LLM,O.LLMMultiWheel].includes((d=h.getCurrentStepInfo(E,L))==null?void 0:d.tool),U=((S=h.getCurrentStepInfo(E,L))==null?void 0:S.tool)===O.NLP,B=h.currentToolIsAudio(E,L);if($(u,!0),yield u(Vt(t)),f){u(kt(t));return}if(y||N||B||U){u(Ht(t));return}u(zt(t,e))}),Vt=t=>(e,u)=>At(void 0,null,function*(){const{getFileData:A,imgList:d}=u().annotation;if(A){const S=yield A(d[t],t);e({type:r.SET_FILE_DATA,payload:{fileData:S,index:t}})}}),kt=t=>e=>{e({type:r.LOAD_FILE_DATA,payload:{nextIndex:t}})},Ht=t=>e=>{$(e,!1),e({type:r.LOAD_FILE_DATA,payload:{nextIndex:t}})},zt=(t,e)=>(u,A)=>{var d;const{toolInstance:S,imgList:L}=A().annotation,E=(d=L==null?void 0:L[t])==null?void 0:d.url;Nt.load(E).then(f=>{$(u,!1),u({type:r.LOAD_FILE_DATA,payload:{imgNode:f,nextIndex:t,nextBasicIndex:e}})}).catch(()=>{$(u,!1),S==null||S.setErrorImg(),u({type:r.LOAD_FILE_DATA,payload:{nextIndex:t,nextBasicIndex:e}})})},Kt=({toolInstance:t,imgList:e,imgIndex:u,stepList:A,step:d=1})=>{var S,L,E,f;const y=((S=e[u])==null?void 0:S.result)||"",[N,U,B]=(L=t==null?void 0:t.exportData())!=null?L:[],V=(f=(E=t==null?void 0:t.exportCustomData)==null?void 0:E.call(t))!=null?f:{},k=gt(y,U),H=J(k,{step:d,stepList:A},{rect:N},V);return e.map((G,z)=>z===u?o(l(o({},G),{result:H}),B):o({},G))},Wt=(t=o({},St),e)=>{var u,A,d,S,L,E,f,y,N,U,B,V,k,H,G,z,Z,Q,tt,et,nt,ot,st,lt,it,rt,ut,at,ct;switch(e.type){case r.INIT_ALL_STATE:return o(o({},t),St);case r.UPDATE_TOOL_INSTANCE:return l(o({},t),{toolInstance:e.payload.toolInstance});case r.UPDATE_IMG_LIST:return l(o({},t),{imgList:e.payload.imgList});case r.CALC_STEP_PROGRESS:{const{imgList:n,step:s}=t,i=Dt(n,s);return l(o({},t),{stepProgress:i})}case r.SUBMIT_FILE_DATA:{const{imgList:n,imgIndex:s,step:i,stepList:a,toolInstance:p,onSubmit:c,resultList:m}=t;if(!p||!n[s])return t;const _=((u=n[s])==null?void 0:u.result)||"",[,I,g]=(A=p==null?void 0:p.exportData())!=null?A:[],T=(S=(d=p==null?void 0:p.exportCustomData)==null?void 0:d.call(p))!=null?S:{},D=gt(_,I),v=J(D,{step:i,stepList:a},{rect:m},T),R=t.imgList.map((C,P)=>{if(P===s){const w=Y.dataCorrection(v,_,i,a);return o(l(o({},C),{result:w}),g)}return C});if(((L=e.payload)==null?void 0:L.submitType)===W.SyncImgList)return l(o({},t),{imgList:R});const x=Dt(R,i);return l(o({},t),{stepProgress:x,imgList:R})}case r.SAVE_RESULT:{const{imgList:n,imgIndex:s,onSave:i}=t;return i==null||i(n[s],s,n),o({},t)}case r.SUBMIT_RESULT:{const{imgList:n,basicIndex:s,resultList:i,toolInstance:a,basicResultList:p}=t;if(!a)return t;const[c]=(E=a==null?void 0:a.exportData())!=null?E:[];let m=c;if((p==null?void 0:p.length)>0){const _=(f=p[s])==null?void 0:f.id,I=c.map(g=>l(o({},g),{sourceID:_}));m=Tt.cloneDeep(i).filter(g=>g.sourceID!==_),m.push(...I)}return l(o({},t),{resultList:m,imgList:n})}case r.SET_BASIC_INDEX:{const{toolInstance:n,step:s,imgList:i,imgIndex:a,stepList:p,annotationEngine:c,resultList:m,basicResultList:_}=t;if(!n||!c)return t;const I=e.payload.basicIndex,g=(y=_[I])==null?void 0:y.id,T=j((N=i[a])==null?void 0:N.result),D=(m||[]).filter(w=>w.sourceID===g),v=b(p,s),{dataSourceStep:R,tool:x}=v,C=b(p,R);let P=[];return R&&x&&(P=(U=T[`step_${R}`])==null?void 0:U.result,(P==null?void 0:P.length)>0?(c==null||c.setBasicInfo(C.tool,P[I]),c==null||c.launchOperation()):(c==null||c.setBasicInfo(C.tool),c==null||c.forbidOperation(),ft.info(M.t("NoDependency")))),n==null||n.setResult(D),n==null||n.history.initRecord(D,!0),l(o({},t),{basicIndex:I})}case r.SET_TRIGGER_EVENT_AFTER_INDEX_CHANGED:{const{triggerEventAfterIndexChanged:n}=e.payload;return l(o({},t),{triggerEventAfterIndexChanged:!!n})}case r.LOAD_FILE_DATA:{const{imgList:n,step:s,toolInstance:i,annotationEngine:a,stepList:p}=t;if(!i)return l(o({},t),{imgIndex:e.payload.nextIndex});const c=h.getCurrentStepInfo(s,p),{nextIndex:m,imgNode:_,nextBasicIndex:I,imgError:g}=e.payload,T=I!=null?I:0,D=j((B=n[m])==null?void 0:B.result),v=D[`step_${c.step}`],R=!v,x={rotate:(V=D.rotate)!=null?V:0,valid:(k=D.valid)!=null?k:!0};_&&g!==!0?a==null||a.setImgNode(_,x):i==null||i.setValid(x.valid);const C=b(p,c.step),{dataSourceStep:P,tool:w}=C,dt=b(p,P),X=P&&w,F=(G=(H=D[`step_${P}`])==null?void 0:H.result)!=null?G:[],K=Y.getInitialResultList(v==null?void 0:v.result,i,C,F,R);a==null||a.launchOperation();const vt=[O.Cuboid,O.ScribbleTool].includes(w);if(X&&((F==null?void 0:F.length)>0?a==null||a.setBasicInfo(dt.tool,F[T]):(a==null||a.setBasicInfo(dt.tool),a==null||a.forbidOperation(),ft.info(M.t("NoDependency")))),c.tool!=="check"&&(vt||X)){const yt=(Z=(z=F[T])==null?void 0:z.id)!=null?Z:"",Pt=X?K.filter(Rt=>Ot.isSameSourceID(Rt.sourceID,yt)):K;(Q=i==null?void 0:i.history)==null||Q.initRecord(K,!0),i==null||i.setResult(Pt)}return l(o({},t),{imgIndex:m,basicIndex:T,basicResultList:F,resultList:K})}case r.UPDATE_ANNOTATION_CONFIG:return l(o({},t),{config:(tt=e.payload.config)!=null?tt:"{}"});case r.SET_TASK_STEP_LIST:{const{stepList:n}=e.payload;return l(o({},t),{stepList:n})}case r.SET_TASK_CONFIG:{const{stepList:n,step:s}=e.payload;return l(o({},t),{stepList:n,step:s})}case r.INIT_TOOL:{const{imgNode:n}=t,s=Gt(t,n);if(s){const{toolInstance:i,annotationEngine:a}=s;return l(o({},t),{toolInstance:i,annotationEngine:a})}return o({},t)}case r.SET_TOOL:{const n=(et=e.payload)==null?void 0:et.instance;return n?l(o({},t),{toolInstance:n}):o({},t)}case r.UPDATE_ON_SUBMIT:return l(o({},t),{onSubmit:e.payload.onSubmit});case r.UPDATE_ON_SAVE:return l(o({},t),{onSave:e.payload.onSave});case r.UPDATE_ON_PAGE_CHANGE:return l(o({},t),{onPageChange:e.payload.onPageChange});case r.SET_PREDICT_RESULT:return l(o({},t),{predictionResult:e.payload.result});case r.SET_PREDICT_RESULT_VISIBLE:return l(o({},t),{predictionResultVisible:e.payload.visible});case r.UPDATE_ON_STEP_CHANGE:return l(o({},t),{onStepChange:e.payload.onStepChange});case r.UPDATE_GET_FILE_DATA:return l(o({},t),{getFileData:e.payload.getFileData});case r.UPDATE_PAGE_SIZE:return l(o({},t),{pageSize:e.payload.pageSize});case r.UPDATE_LOAD_FILE_LIST:return l(o({},t),{loadFileList:e.payload.loadFileList});case r.UPDATE_BEFORE_ROTATE:return l(o({},t),{beforeRotate:e.payload.beforeRotate});case r.UPDATE_PRE_DATA_PROCESS:return l(o({},t),{preDataProcess:e.payload.preDataProcess});case r.UPDATE_IMG_INDEX_BY_EXTERNAL:return l(o({},t),{getImgIndexByExternal:e.payload.getImgIndexByExternal});case r.SKIP_BEFORE_PAGE_TURNING:return l(o({},t),{skipBeforePageTurning:e.payload.skipBeforePageTurning});case r.SET_FILE_DATA:{const{fileData:n,index:s}=e.payload,{imgList:i}=t,a=[...i];return a[s]=o(o({},a[s]),n),l(o({},t),{imgList:a})}case r.UPDATE_ROTATE:{const{toolInstance:n,beforeRotate:s}=t;return s&&s()===!1||(nt=n==null?void 0:n.updateRotate)==null||nt.call(n),t}case r.UPDATE_ANNOTATION_VALID:{const{toolInstance:n}=t,s=(ot=n==null?void 0:n.valid)!=null?ot:!0;return mt.destroyAll(),mt.confirm({content:M.t(s?"updateValidFromValidToInValid":"updateValidFromInValidToValid"),onOk:()=>{n==null||n.setValid(!s)},okText:M.t("Confirm"),cancelText:M.t("Cancel")}),t}case r.COPY_BACKWARD_RESULT:{const{toolInstance:n,imgIndex:s,imgList:i,step:a,stepList:p}=t;if(!n)return t;if(s===0||s>=i.length)return console.error("\u65E0\u6CD5\u590D\u5236\u8FB9\u754C\u5916\u7684\u5185\u5BB9"),t;const c=i[s-1].result;if(!c)return t;const m=h.getCurrentStepInfo(a,p),_=(st=m==null?void 0:m.step)!=null?st:a,I=(lt=n==null?void 0:n.valid)!=null?lt:!0,g=Y.copyResultChange({copyResult:c,step:_,currentResult:(it=i[s].result)!=null?it:"",preMappingImgList:(rt=i[s-1].mappingImgList)!=null?rt:[],mappingImgList:(ut=i[s].mappingImgList)!=null?ut:[],valid:I});i[s]=l(o({},i[s]),{result:g});const D=j(g)[`step_${a}`],v=(D==null?void 0:D.result)||[];return n==null||n.setResult(v),n==null||n.history.pushHistory(v),(at=n==null?void 0:n.asyncData)==null||at.call(n,i[s]),l(o({},t),{imgList:[...i]})}case r.SET_STEP:{const{stepList:n,annotationEngine:s}=t,{toStep:i}=e.payload;if(s){const a=b(n,i);return s==null||s.setToolName(a.tool,a.config),l(o({},t),{step:i,toolInstance:s==null?void 0:s.toolInstance})}return l(o({},t),{step:i})}case r.SET_LOADPCDFILE_LOADING:{const{loadPCDFileLoading:n}=e.payload;return l(o({},t),{loadPCDFileLoading:!!n})}case r.SET_LOADING:{const{loading:n}=e.payload;return l(o({},t),{loading:!!n})}case r.SET_POINT_CLOUD_LOADING:{const{pointCloudLoading:n}=e.payload;return l(o({},t),{pointCloudLoading:!!n})}case r.SET_CHECK_MODE:{const{checkMode:n}=e.payload;return l(o({},t),{checkMode:!!n})}case r.SET_HIGHLIGHT_ATTRIBUTE:{const{attribute:n}=e.payload;return l(o({},t),{highlightAttribute:n})}case r.BATCH_UPDATE_TRACK_ID:{const{id:n,newID:s,rangeIndex:i,imgList:a}=e.payload,{imgIndex:p,onSubmit:c}=t,m=[],_=a.map((I,g)=>{if(_t.isInRange(g,i)){const T=l(o({},I),{result:It.batchUpdateTrackID({id:n,newID:s,result:I.result})});return m.push({imgIndex:g,newInfo:T}),T}return I});return c&&c([_[p]],W.BatchUpdateTrackID,p,_,{updateImgList:m}),l(o({},t),{imgList:_})}case r.BATCH_UPDATE_RESULT_BY_TRACK_ID:{const n=e,{id:s,newData:i,rangeIndex:a,imgList:p}=n.payload,{imgIndex:c,onSubmit:m}=t,_=[],I=p.map((g,T)=>{if(_t.isInRange(T,a)){const D=l(o({},g),{result:It.batchUpdateResultByTrackID({id:s,newData:i,result:g.result})});return _.push({imgIndex:T,newInfo:D}),D}return g});return m&&m([I[c]],W.BatchUpdateTrackID,c,I,{updateImgList:_}),l(o({},t),{imgList:I})}case r.BATCH_UPDATE_IMG_LIST_RESULT_BY_PREDICT_RESULT:{const{onSubmit:n,imgList:s,stepList:i,step:a,predictionResult:p}=t,c={};p.forEach(g=>{const{index:T}=g;c[T]=Tt.pick(g,["center","width","height","depth","rotation","id","attribute","valid","trackID"])});const m=`step_${a}`,_=[],I=s.map((g,T)=>{if(c[T]){const D=g.result==="{}"?j(J("",{step:a,stepList:i},{rect:[]},{})):j(g.result);D[m].result.push(c[T]);const v=l(o({},g),{result:JSON.stringify(D)});return _.push({imgIndex:T,newInfo:v}),v}return g});return n==null||n(I,W.BatchUpdateImgList,-1,I,{updateImgList:_}),l(o({},t),{imgList:I})}case r.CHANGE_PAGE_CHECK:{const{toolInstance:n,step:s,stepList:i}=t;if(!n)return t;const[a]=(ct=n==null?void 0:n.exportData())!=null?ct:[],p=b(i,s),c=pt.jsonParser(p.config),m=a.some(_=>(_==null?void 0:_.result)&&Object.keys(_.result).length>0);return l(o({},t),{confirmPageTurning:c.showConfirm&&!m})}default:return t}};export{Mt as LoadFileAndFileData,Wt as annotationReducer,Kt as composeResultByToolInstance,b as getStepConfig,jt as getTotalPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const i=(t,o)=>({selectBoxVisibleSwitch:!1,setSelectBoxVisibleSwitch:e=>t(()=>({selectBoxVisibleSwitch:e})),attrChangeTrigger:0,setAttrChangeTrigger:e=>t(()=>({attrChangeTrigger:e}))});export{i as default};
|
package/es/utils/LLM.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t=r=>{try{return r.replace(/\\\((.+?)\\\)/gs,(o,e)=>`$${e}$`).replace(/\\\[(.+?)\\\]/gs,(o,e)=>`$$${e}$$`)}catch(n){return r}};export{t as convertLatexFormat};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{getCuboidFromPointCloudBox as l}from"@labelbee/lb-annotation";import{isEqual as
|
|
1
|
+
import{getCuboidFromPointCloudBox as l}from"@labelbee/lb-annotation";import{isEqual as I}from"lodash";var r;(function(t){t.Default="Default",t.UndoRedo="UndoRedo",t.ClearAll="ClearAll",t.Single="Single",t.SingleDelete="SingleDelete",t.SingleToggleValid="SingleToggleValid",t.SingleRotate="SingleRotate",t.MultiPaste="MultiPaste",t.MultiMove="MultiMove",t.MulitSelect="MulitSelect"})(r||(r={}));var d;(function(t){t.ChangeAttribute="ChangeAttribute",t.Move="Move",t.ChangeDepth="ChangeDepth",t.ChangeSize="ChangeSize",t.ToggleValid="ToggleValid"})(d||(d={}));const A=(t,o)=>{const s=u(t).concat(u(o));for(const e of s){const n=g(t,e),i=g(o,e);if(!y(n,i))return!1}return!0},u=t=>{const o=[];for(let s=0;s<t.length;s++){const e=t[s],n=t[(s+1)%t.length],i={x:n.x-e.x,y:n.y-e.y},c={x:-i.y,y:i.x};o.push(c)}return o},g=(t,o)=>{let s=h(t[0],o),e=s;for(const n of t){const i=h(n,o);i<s&&(s=i),i>e&&(e=i)}return{min:s,max:e}},y=(t,o)=>!(t.max<o.min||o.max<t.min),h=(t,o)=>t.x*o.x+t.y*o.y,M=(t,o)=>{const s=[];return o.forEach(e=>{const{polygonPointList:n}=l(e);A(t,n)&&s.push(e.id)}),s},S=(t,o)=>{const s=t.map(n=>n.id),e=o.map(n=>n.id);return s.find(n=>!e.includes(n))||""},v=(t,o)=>{const s=t.map(e=>e.id);return o.find(e=>!s.includes(e.id))},x=(t,o)=>t.find(e=>{const n=o.find(i=>i.id===e.id);return n&&n.valid!==e.valid}),m=(t,o)=>t.find(e=>{const n=o.find(i=>i.id===e.id);return n&&n.rotation!==e.rotation}),f=(t,o)=>{const{polygonPointList:s}=l(t);return{ids:M(s,o.filter(n=>n.id!==t.id)),rect:s}},D=(t,o)=>{const s=(e,n)=>e.attribute===n.attribute&&e.center.x===n.center.x&&e.center.y===n.center.y&&e.depth===n.depth&&e.width===n.width&&e.height===n.height;for(const e of t){const n=o.find(i=>i.id===e.id);if(n&&!s(e,n)){let i;if(n.attribute!==e.attribute?i=d.ChangeAttribute:n.center.x!==e.center.x||n.center.y!==e.center.y?i=d.Move:n.depth!==e.depth?i=d.ChangeDepth:(n.width!==e.width||n.height!==e.height)&&(i=d.ChangeSize),i!==void 0)return{modifiedType:i,box:e}}}},C=(t,o,s)=>{try{switch(t){case r.Single:if(o.length>s.length){const e=S(o,s);return e?{modifiedBoxIds:[e],resetAreas:[]}:{modifiedBoxIds:[],resetAreas:[]}}else{const e=[],n=[],i=D(o,s);if(i&&(e.push(i.box.id),i.modifiedType===d.ChangeSize||i.modifiedType===d.Move||i.modifiedType===d.ChangeDepth)){const c=s.find(p=>p.id===i.box.id),{ids:a,rect:B}=f(c,o);e.push(...a),n.push(B)}return{modifiedBoxIds:e,resetAreas:n}}case r.SingleDelete:if(o.length<s.length){const e=v(o,s);if(e){const i=[l(e).polygonPointList],c=[];if(o.length>1){const{ids:a}=f(e,o);a.length&&c.push(...a)}return{modifiedBoxIds:c,resetAreas:i}}return{modifiedBoxIds:[],resetAreas:[]}}return{modifiedBoxIds:[],resetAreas:[]};case r.SingleRotate:if(m(o,s)){const e=m(o,s);if(e){const n=s.find(a=>a.id===e.id),{ids:i,rect:c}=f(n,o);return{modifiedBoxIds:[e.id,...i],resetAreas:[c]}}}return{modifiedBoxIds:[],resetAreas:[]};case r.SingleToggleValid:if(x(o,s)){const e=x(o,s);return e?{modifiedBoxIds:[e.id],resetAreas:[]}:{modifiedBoxIds:[],resetAreas:[]}}return{modifiedBoxIds:[],resetAreas:[]};case r.MulitSelect:return{modifiedBoxIds:V(o,s),resetAreas:[]};case r.MultiPaste:case r.MultiMove:case r.Default:case r.UndoRedo:case r.ClearAll:default:return{modifiedBoxIds:[],resetAreas:[]}}}catch(e){return console.error("calcResetAreasAndBoxIds error:",e),{modifiedBoxIds:[],resetAreas:[]}}},V=(t,o)=>{const s=new Map;for(const e of o)s.set(e.id,e);return t.filter(e=>{const n=s.get(e.id);return!n||!I(e,n)}).map(e=>e.id)};export{r as EPointCloudBoxRenderTrigger,d as EPointCloudBoxSingleModifiedType,C as calcResetAreasAndBoxIds};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import n from"../../../components/LLMMultiWheelView/index.js";import{prefix as l}from"../../../constant/index.js";import{classnames as m}from"../../../utils/index.js";import{getClassName as d}from"../../../utils/dom.js";import{Layout as a}from"antd/es";import{Resizable as s}from"re-resizable";import t from"react";import c from"../sidebar/index.js";import u from"../toolFooter/index.js";const f=`${l}-LLMMultiWheelView`,{Sider:L,Content:h}=a,r=`${l}-layout`,M=e=>{var i,o;return t.createElement(a,{className:d("layout","container")},e==null?void 0:e.leftSider,t.createElement(h,{className:m({[`${r}__content`]:!0,[`${l}-LLMLayout`]:!0})},t.createElement(n,{showTips:e.showTips,tips:e.tips,drawLayerSlot:e.drawLayerSlot}),t.createElement(u,{style:(i=e.style)==null?void 0:i.footer,mode:e.mode,footer:e==null?void 0:e.footer})),t.createElement(s,{defaultSize:{width:600},enable:{left:!0}},t.createElement(L,{className:`${r}__side`,width:"100%",style:{position:"relative",height:"100%"}},t.createElement(c,{sider:e==null?void 0:e.sider,checkMode:e==null?void 0:e.checkMode}),(o=e.drawLayerSlot)==null?void 0:o.call(e,{}))))};export{f as LLMMultiWheelViewCls,M as default};
|
|
1
|
+
import n from"../../../components/LLMMultiWheelView/index.js";import{prefix as l}from"../../../constant/index.js";import{classnames as m}from"../../../utils/index.js";import{getClassName as d}from"../../../utils/dom.js";import{Layout as a}from"antd/es";import{Resizable as s}from"re-resizable";import t from"react";import c from"../sidebar/index.js";import u from"../toolFooter/index.js";const f=`${l}-LLMMultiWheelView`,{Sider:L,Content:h}=a,r=`${l}-layout`,M=e=>{var i,o;return t.createElement(a,{className:d("layout","container")},e==null?void 0:e.leftSider,t.createElement(h,{className:m({[`${r}__content`]:!0,[`${l}-LLMLayout`]:!0})},t.createElement(n,{showTips:e.showTips,tips:e.tips,drawLayerSlot:e.drawLayerSlot}),t.createElement(u,{style:(i=e.style)==null?void 0:i.footer,mode:e.mode,footer:e==null?void 0:e.footer})),t.createElement(s,{defaultSize:{width:600},maxWidth:"95%",enable:{left:!0}},t.createElement(L,{className:`${r}__side`,width:"100%",style:{position:"relative",height:"100%"}},t.createElement(c,{sider:e==null?void 0:e.sider,checkMode:e==null?void 0:e.checkMode}),(o=e.drawLayerSlot)==null?void 0:o.call(e,{}))))};export{f as LLMMultiWheelViewCls,M as default};
|