@abidibo/react-cam-roi 0.9.0 → 0.10.0
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/index.cjs.js +78 -39
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +78 -39
- package/dist/index.esm.js.map +1 -1
- package/dist/types/Components/RoiEditor/Polygon.d.ts +4 -0
- package/dist/types/Components/RoiEditor/Toolbar.d.ts +8 -1
- package/dist/types/Icons/FullRoiIcon.d.ts +6 -0
- package/package.json +7 -11
@@ -15,4 +15,8 @@ export declare const handleDoubleClickPolygon: (editorId: string, canvas: fabric
|
|
15
15
|
x: number;
|
16
16
|
y: number;
|
17
17
|
}[]) => void, lines: fabric.Line[], setLines: (v: fabric.Line[]) => void) => void;
|
18
|
+
export declare const renderFullImagePolygon: (editorId: string, canvas: fabric.Canvas, activeColor: string, imageSize: {
|
19
|
+
width: number;
|
20
|
+
height: number;
|
21
|
+
}) => void;
|
18
22
|
export declare const copyPolygon: (editorId: string, canvas: fabric.Canvas, polygon: fabric.Polygon) => fabric.Polygon;
|
@@ -1,2 +1,9 @@
|
|
1
|
-
|
1
|
+
type ToolbarProps = {
|
2
|
+
imageSize: {
|
3
|
+
width: number;
|
4
|
+
height: number;
|
5
|
+
};
|
6
|
+
canvasRef: React.MutableRefObject<fabric.Canvas | null>;
|
7
|
+
};
|
8
|
+
declare const Toolbar: React.FC<ToolbarProps>;
|
2
9
|
export default Toolbar;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@abidibo/react-cam-roi",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.10.0",
|
4
4
|
"description": "A react component for drawing ROI over images and managing metadata",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"author": "abidibo",
|
66
66
|
"license": "MIT",
|
67
67
|
"devDependencies": {
|
68
|
-
"@chromatic-com/storybook": "^
|
68
|
+
"@chromatic-com/storybook": "^4.0.0",
|
69
69
|
"@emotion/react": "^11.14.0",
|
70
70
|
"@emotion/styled": "^11.14.0",
|
71
71
|
"@eslint/js": "^9.18.0",
|
@@ -76,14 +76,9 @@
|
|
76
76
|
"@rollup/plugin-typescript": "^12.1.2",
|
77
77
|
"@semantic-release/changelog": "^6.0.3",
|
78
78
|
"@semantic-release/git": "^10.0.1",
|
79
|
-
"@storybook/addon-
|
80
|
-
"@storybook/addon-
|
81
|
-
"@storybook/
|
82
|
-
"@storybook/addon-toolbars": "^8.5.0",
|
83
|
-
"@storybook/blocks": "^8.4.7",
|
84
|
-
"@storybook/react": "^8.4.7",
|
85
|
-
"@storybook/react-vite": "^8.4.7",
|
86
|
-
"@storybook/test": "^8.4.7",
|
79
|
+
"@storybook/addon-docs": "^9.0.8",
|
80
|
+
"@storybook/addon-onboarding": "^9.0.8",
|
81
|
+
"@storybook/react-vite": "^9.0.8",
|
87
82
|
"@trivago/prettier-plugin-sort-imports": "^5.2.1",
|
88
83
|
"@types/react": "^18.0.0",
|
89
84
|
"@types/react-dom": "^18.0.0",
|
@@ -91,6 +86,7 @@
|
|
91
86
|
"eslint": "^9.18.0",
|
92
87
|
"eslint-plugin-react-hooks": "^5.1.0",
|
93
88
|
"eslint-plugin-react-refresh": "^0.4.18",
|
89
|
+
"eslint-plugin-storybook": "9.0.8",
|
94
90
|
"globals": "^15.14.0",
|
95
91
|
"prettier": "^3.4.2",
|
96
92
|
"rimraf": "^6.0.1",
|
@@ -98,7 +94,7 @@
|
|
98
94
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
99
95
|
"rollup-plugin-postcss": "^4.0.2",
|
100
96
|
"semantic-release": "^24.2.2",
|
101
|
-
"storybook": "^
|
97
|
+
"storybook": "^9.0.8",
|
102
98
|
"tinyglobby": "^0.2.13",
|
103
99
|
"typescript": "^5.7.3",
|
104
100
|
"typescript-eslint": "^8.20.0"
|