@labelbee/lb-components 1.16.0-alpha.7 → 1.16.0-alpha.8
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var antd=require("antd"),React=require("react"),reactI18next=require("react-i18next"),PointCloudContext=require("../../../../components/pointCloudView/PointCloudContext.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const SwitchCuboidBoxIn2DView=()=>{const{cuboidBoxIn2DView:e,setCuboidBoxIn2DView:n}=React.useContext(PointCloudContext.PointCloudContext),{t}=reactI18next.useTranslation(),a
|
|
1
|
+
"use strict";var antd=require("antd"),React=require("react"),reactI18next=require("react-i18next"),PointCloudContext=require("../../../../components/pointCloudView/PointCloudContext.js"),useStatus=require("../../../../components/pointCloudView/hooks/useStatus.js");function _interopDefaultLegacy(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var React__default=_interopDefaultLegacy(React);const SwitchCuboidBoxIn2DView=()=>{const{cuboidBoxIn2DView:e,setCuboidBoxIn2DView:n}=React.useContext(PointCloudContext.PointCloudContext),{t}=reactI18next.useTranslation(),{isPointCloudSegmentationPattern:o}=useStatus.useStatus(),u=a=>{n(a)};return o?null:React__default.default.createElement(React__default.default.Fragment,null,React__default.default.createElement("span",{style:{marginRight:10}},t("ImageLabels")),React__default.default.createElement(antd.Switch,{checkedChildren:t("3DRect"),unCheckedChildren:t("2DRect"),checked:e,onChange:u}))};module.exports=SwitchCuboidBoxIn2DView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Switch as
|
|
1
|
+
import{Switch as s}from"antd";import t,{useContext as a}from"react";import{useTranslation as u}from"react-i18next";import{PointCloudContext as m}from"../../../../components/pointCloudView/PointCloudContext.js";import{useStatus as l}from"../../../../components/pointCloudView/hooks/useStatus.js";const d=()=>{const{cuboidBoxIn2DView:o,setCuboidBoxIn2DView:n}=a(m),{t:e}=u(),{isPointCloudSegmentationPattern:i}=l(),r=c=>{n(c)};return i?null:t.createElement(t.Fragment,null,t.createElement("span",{style:{marginRight:10}},e("ImageLabels")),t.createElement(s,{checkedChildren:e("3DRect"),unCheckedChildren:e("2DRect"),checked:o,onChange:r}))};export{d as default};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@labelbee/lb-components",
|
|
3
|
-
"version": "1.16.0-alpha.
|
|
3
|
+
"version": "1.16.0-alpha.8",
|
|
4
4
|
"description": "Provide a complete library of annotation components",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"es": "./es/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ant-design/icons": "^4.6.2",
|
|
46
|
-
"@labelbee/lb-annotation": "1.19.0-alpha.
|
|
46
|
+
"@labelbee/lb-annotation": "1.19.0-alpha.4",
|
|
47
47
|
"@labelbee/lb-utils": "1.12.0-alpha.2",
|
|
48
48
|
"@labelbee/wavesurfer": "1.0.0-alpha.3",
|
|
49
49
|
"@types/react-dom": "^18.2.7",
|