Skip to content

Commit 28dec45

Browse files
fixed re-export types
1 parent 22124c7 commit 28dec45

File tree

25 files changed

+54
-62
lines changed

25 files changed

+54
-62
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@idapgroup/react-image-annotate",
3-
"version": "2.0.4",
3+
"version": "2.0.8",
44
"type": "module",
55
"main": "dist/react-image-annotate.js",
66
"types": "dist/lib.d.ts",
@@ -56,7 +56,6 @@
5656
"vite": "^5.2.7",
5757
"vite-plugin-dts": "^3.8.1",
5858
"vite-plugin-node-polyfills": "^0.21.0",
59-
"vite-raw-plugin": "^1.0.2",
6059
"vite-tsconfig-paths": "^4.3.2"
6160
},
6261
"peerDependencies": {

src/Annotator/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
import { ComponentType, FunctionComponent, useEffect, useReducer } from "react";
1010
import Immutable, { ImmutableObject } from "seamless-immutable";
1111

12-
import type { KeypointsDefinition } from "../ImageCanvas/region-tools";
12+
import type { KeypointsDefinition } from "../types/region-tools.ts";
1313
import MainLayout from "../MainLayout";
1414
import SettingsProvider from "../SettingsProvider";
1515
import combineReducers from "./reducers/combine-reducers";

src/Annotator/reducers/convert-expanding-line-to-polygon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// @flow
22

33
import { clamp } from "../../utils/clamp";
4-
import { ExpandingLine } from "../../ImageCanvas/region-tools.tsx";
4+
import { ExpandingLine } from "../../types/region-tools.ts";
55
import Immutable from "seamless-immutable";
66

77
export default (expandingLine: ExpandingLine) => {

src/Annotator/reducers/fix-twisted.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22

3-
import { ExpandingLine } from "../../ImageCanvas/region-tools.tsx";
3+
import { ExpandingLine } from "../../types/region-tools.ts";
44

55
export default (pointsWithAngles: ExpandingLine["points"]) => {
66
// Adjacent angles should not have an angular distance of more than Math.PI

src/Annotator/reducers/general-reducer.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
// @flow
22
import { Action, Image, MainLayoutState } from "../../MainLayout/types";
3-
import {
4-
ExpandingLine,
5-
moveRegion,
6-
Region,
7-
} from "../../ImageCanvas/region-tools";
3+
import { ExpandingLine, moveRegion, Region } from "../../types/region-tools.ts";
84
import Immutable, { ImmutableObject } from "seamless-immutable";
95
import isEqual from "lodash/isEqual";
106
import getActiveImage from "./get-active-image";
@@ -986,7 +982,7 @@ export default <T extends ImmutableObject<MainLayoutState>>(
986982
case "help": {
987983
return state;
988984
}
989-
case "full-screen": {
985+
case "fullscreen": {
990986
return Immutable(state).setIn(["fullScreen"], true) as T;
991987
}
992988
case "exit fullscreen":

src/Annotator/reducers/get-implied-video-regions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow
22

3-
import type { Region } from "../../ImageCanvas/region-tools";
3+
import type { Region } from "../../types/region-tools.ts";
44
import { MainLayoutVideoAnnotationState } from "../../MainLayout/types.ts";
55

66
const emptyArr: Region[] = [];

src/HighlightBox/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import classnames from "classnames";
44
import { createTheme, ThemeProvider } from "@mui/material/styles";
5-
import type { Point, Region } from "../ImageCanvas/region-tools.tsx";
5+
import type { Point, Region } from "../types/region-tools.ts";
66
import { MouseEvents } from "../ImageCanvas/use-mouse.ts";
77
import { tss } from "tss-react/mui";
88

src/ImageCanvas/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import type {
1818
Point,
1919
Polygon,
2020
Region,
21-
} from "./region-tools";
21+
} from "../types/region-tools.ts";
2222
import { createTheme, ThemeProvider } from "@mui/material/styles";
2323
import PreventScrollToParents from "../PreventScrollToParents";
2424
import useWindowSize from "../hooks/use-window-size.tsx";

src/ImageCanvas/use-project-box.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// @flow weak
22
import useEventCallback from "use-event-callback";
3-
import { getEnclosingBox, Region } from "./region-tools.tsx";
3+
import { getEnclosingBox, Region } from "../types/region-tools.ts";
44
import { CanvasLayoutParams } from "./index.tsx";
55
import { IMatrix } from "transformation-matrix-js";
66
import { MutableRefObject } from "react";

src/ImageMask/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CSSProperties, useEffect, useMemo, useState } from "react";
44
import { useDebounce } from "react-use";
55
import loadImage from "./load-image";
66
import autoseg, { AutosegConfig } from "autoseg/webworker";
7-
import { Region } from "../ImageCanvas/region-tools.tsx";
7+
import { Region } from "../types/region-tools.ts";
88
import { ImagePosition } from "../types/common.ts";
99

1010
function convertToUDTRegions(regions: Region[]) {

0 commit comments

Comments
 (0)