Skip to content

Commit

Permalink
Revert "fix: #506 (#510)" (#511)
Browse files Browse the repository at this point in the history
This reverts commit 3c4adde.
  • Loading branch information
gary-Shen authored Oct 24, 2024
1 parent aadaf46 commit 1f80b64
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 13 deletions.
4 changes: 2 additions & 2 deletions apps/frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ search labelu in [Test Pypi](https://test.pypi.org/), to find the right version

```bash
# change version '0.1.220' to the version you need.
pip install -i https://test.pypi.org/simple/ labelu==1.0.6a5
pip install -i https://test.pypi.org/simple/ labelu==0.1.220
labelu --help
labelu --port 8000
```
Expand All @@ -24,4 +24,4 @@ vim vite.config.js
npm run start

open http://localhost:3000/
```
```
2 changes: 1 addition & 1 deletion packages/image-annotator-react/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @labelu/image-annotator-react
# @labelu/video-annotator-react

[![npm](https://img.shields.io/npm/v/%40labelu/image-annotator-react.svg)](https://www.npmjs.com/package/@labelu/image-annotator-react)

Expand Down
6 changes: 0 additions & 6 deletions packages/image-annotator-react/src/ImageAnnotator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -376,10 +376,6 @@ function ForwardAnnotator(
imageAnnotations![toolName]!.push(_item as AnnotationDataInUI);
}
});

Object.keys(imageAnnotations).forEach((key) => {
engine?.loadData(key as ToolName, imageAnnotations[key as ToolName] as AnnotationToolData<ToolName>);
});
},
[engine],
);
Expand Down Expand Up @@ -419,8 +415,6 @@ function ForwardAnnotator(
onUndo: onRedoUndo,
});

console.log('annotationsWithGlobal', annotationsWithGlobal);

const onAnnotationClear = useCallback(() => {
engine?.clearData();
updateAnnotationsWithGlobal(() => {
Expand Down
2 changes: 1 addition & 1 deletion packages/image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Image annotation engine for LabelU

Try it out at [opendatalab.github.io/labelU-Kit/](https://opendatalab.github.io/labelU-Kit/#/image)
Try it out at [opendatalab.github.io/labelU-Kit/](https://opendatalab.github.io/labelU-Kit/image)

## Usage

Expand Down
3 changes: 1 addition & 2 deletions packages/image/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,12 @@
"author": "",
"license": "ISC",
"devDependencies": {
"@labelu/image": "^1.1.0",
"typescript": "4.8.4",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@vitejs/plugin-react": "^4.0.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "4.8.4",
"vite": "^4.4.9"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/image/example/readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# StackBlitz Example

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/opendatalab/labelU-Kit/tree/main/packages/image/example)
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/opendatalab/labelU-Kit/tree/website/packages/audio-react/example)
1 change: 1 addition & 0 deletions packages/image/example/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export default defineConfig({
resolve: {
alias: {
'@': resolve(__dirname, 'src'),
'@labelu/image': resolve(__dirname, '../src'),
},
},
});

0 comments on commit 1f80b64

Please sign in to comment.