@labelbee/lb-annotation 1.5.2
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/README.md +143 -0
- package/dist/index.js +76 -0
- package/dist/types/constant/annotation.d.ts +63 -0
- package/dist/types/constant/annotationTask.d.ts +16 -0
- package/dist/types/constant/defaultConfig.d.ts +259 -0
- package/dist/types/constant/keyCode.d.ts +32 -0
- package/dist/types/constant/style.d.ts +43 -0
- package/dist/types/constant/tool.d.ts +161 -0
- package/dist/types/core/index.d.ts +74 -0
- package/dist/types/core/toolOperation/LineToolOperation.d.ts +419 -0
- package/dist/types/core/toolOperation/TextToolOperation.d.ts +41 -0
- package/dist/types/core/toolOperation/ViewOperation.d.ts +55 -0
- package/dist/types/core/toolOperation/basicToolOperation.d.ts +188 -0
- package/dist/types/core/toolOperation/checkOperation.d.ts +37 -0
- package/dist/types/core/toolOperation/eventListener.d.ts +33 -0
- package/dist/types/core/toolOperation/measureOperation.d.ts +8 -0
- package/dist/types/core/toolOperation/pointOperation.d.ts +85 -0
- package/dist/types/core/toolOperation/polygonOperation.d.ts +134 -0
- package/dist/types/core/toolOperation/rectOperation.d.ts +141 -0
- package/dist/types/core/toolOperation/tagOperation.d.ts +44 -0
- package/dist/types/core/toolOperation/textAttributeClass.d.ts +56 -0
- package/dist/types/index.d.ts +26 -0
- package/dist/types/locales/constants.d.ts +15 -0
- package/dist/types/locales/en_US/message.d.ts +2 -0
- package/dist/types/locales/index.d.ts +4 -0
- package/dist/types/locales/zh_CN/message.d.ts +2 -0
- package/dist/types/utils/ActionsHistory.d.ts +32 -0
- package/dist/types/utils/EventBus.d.ts +40 -0
- package/dist/types/utils/ImgUtils.d.ts +3 -0
- package/dist/types/utils/MathUtils.d.ts +43 -0
- package/dist/types/utils/tool/AttributeUtils.d.ts +87 -0
- package/dist/types/utils/tool/AxisUtils.d.ts +189 -0
- package/dist/types/utils/tool/CanvasUtils.d.ts +40 -0
- package/dist/types/utils/tool/CommonToolUtils.d.ts +118 -0
- package/dist/types/utils/tool/DblClickEventListener.d.ts +47 -0
- package/dist/types/utils/tool/DrawUtils.d.ts +117 -0
- package/dist/types/utils/tool/ImgPosUtils.d.ts +34 -0
- package/dist/types/utils/tool/LineToolUtils.d.ts +105 -0
- package/dist/types/utils/tool/MarkerUtils.d.ts +9 -0
- package/dist/types/utils/tool/PolygonUtils.d.ts +60 -0
- package/dist/types/utils/tool/RectUtils.d.ts +69 -0
- package/dist/types/utils/tool/RenderDomUtils.d.ts +3 -0
- package/dist/types/utils/tool/StyleUtils.d.ts +9 -0
- package/dist/types/utils/tool/TagUtils.d.ts +54 -0
- package/dist/types/utils/tool/UnitUtils.d.ts +4 -0
- package/dist/types/utils/tool/ZoomUtils.d.ts +16 -0
- package/dist/types/utils/tool/polygonTool.d.ts +32 -0
- package/dist/types/utils/uuid.d.ts +1 -0
- package/es/index.js +76 -0
- package/package.json +96 -0
package/package.json
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@labelbee/lb-annotation",
|
|
3
|
+
"version": "1.5.2",
|
|
4
|
+
"description": "Annotation tool collection",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"annotation",
|
|
7
|
+
"canvas"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://github.com/open-mmlab/labelbee/tree/main/packages/lb-annotation",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/open-mmlab/labelbee/issues",
|
|
12
|
+
"email": "brady_luo.sz@foxmail.com"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git@github.com:open-mmlab/labelbee.git"
|
|
17
|
+
},
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"es"
|
|
22
|
+
],
|
|
23
|
+
"main": "./dist/index.js",
|
|
24
|
+
"module": "./es/index.js",
|
|
25
|
+
"types": "./dist/types/index.d.ts",
|
|
26
|
+
"author": "laoluo",
|
|
27
|
+
"email": "brady_luo.sz@foxmail.com",
|
|
28
|
+
"contributors": [
|
|
29
|
+
"lijingchi",
|
|
30
|
+
"tanjunbao",
|
|
31
|
+
"chenlu",
|
|
32
|
+
"lihuaqi"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"dev": "cross-env NODE_ENV=developemnt rollup -c rollup.config.js -w",
|
|
36
|
+
"start": "npm run dev",
|
|
37
|
+
"build:type": "tsc --emitDeclarationOnly",
|
|
38
|
+
"build": "rm -rf dist && cross-env NODE_ENV=production rollup -c rollup.config.js && npm run build:type",
|
|
39
|
+
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
|
|
40
|
+
"lint": "eslint --cache --ext .js,.jsx,.ts,.tsx --fix --format=pretty ./src && npm run lint:prettier && npm run build:type",
|
|
41
|
+
"lint:prettier": "npm run prettier && prettier --version && prettier --check \"src/**/*.{js,jsx,ts,tsx,less,md,json}\" --end-of-line auto",
|
|
42
|
+
"prettier": "prettier --write \"**/**.{js,jsx,tsx,ts,less,md,json}\"",
|
|
43
|
+
"prepublishOnly": "npm run build"
|
|
44
|
+
},
|
|
45
|
+
"lint-staged": {
|
|
46
|
+
"src/**/*.{ts,tsx}": [
|
|
47
|
+
"eslint",
|
|
48
|
+
"pretty-quick - staged",
|
|
49
|
+
"git add"
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
"devDependencies": {
|
|
53
|
+
"@babel/core": "^7.6.4",
|
|
54
|
+
"@babel/preset-env": "^7.6.3",
|
|
55
|
+
"@commitlint/cli": "8.3.5",
|
|
56
|
+
"@commitlint/config-conventional": "8.3.4",
|
|
57
|
+
"@rollup/plugin-alias": "^3.1.2",
|
|
58
|
+
"@rollup/plugin-image": "^2.0.6",
|
|
59
|
+
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
60
|
+
"@types/jest": "^24.0.19",
|
|
61
|
+
"@types/lodash": "^4.14.165",
|
|
62
|
+
"@typescript-eslint/eslint-plugin": "^4.18.0",
|
|
63
|
+
"@typescript-eslint/parser": "^4.18.0",
|
|
64
|
+
"cross-env": "^7.0.3",
|
|
65
|
+
"esbuild": "^0.11.0",
|
|
66
|
+
"eslint": "^7.27.0",
|
|
67
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
68
|
+
"eslint-config-prettier": "^8.1.0",
|
|
69
|
+
"eslint-formatter-pretty": "^4.0.0",
|
|
70
|
+
"eslint-import-resolver-typescript": "^2.4.0",
|
|
71
|
+
"eslint-plugin-babel": "^5.3.1",
|
|
72
|
+
"eslint-plugin-import": "^2.22.1",
|
|
73
|
+
"eslint-plugin-jest": "^24.3.2",
|
|
74
|
+
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
75
|
+
"eslint-plugin-markdown": "^2.0.0",
|
|
76
|
+
"eslint-plugin-prettier": "^3.3.1",
|
|
77
|
+
"eslint-plugin-react": "^7.22.0",
|
|
78
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
79
|
+
"eslint-plugin-unicorn": "^29.0.0",
|
|
80
|
+
"husky": "^6.0.0",
|
|
81
|
+
"lint-staged": "^10.5.4",
|
|
82
|
+
"prettier": "^2.2.1",
|
|
83
|
+
"pretty-quick": "^3.1.0",
|
|
84
|
+
"rollup": "^2.43.1",
|
|
85
|
+
"rollup-plugin-esbuild": "^3.0.2",
|
|
86
|
+
"rollup-plugin-svg": "^2.0.0",
|
|
87
|
+
"tslib": "^1.10.0",
|
|
88
|
+
"tslint": "^6.1.3",
|
|
89
|
+
"tslint-config-prettier": "^1.18.0",
|
|
90
|
+
"typescript": "^4.2.3"
|
|
91
|
+
},
|
|
92
|
+
"dependencies": {
|
|
93
|
+
"color-rgba": "^2.3.0",
|
|
94
|
+
"lodash": "^4.17.20"
|
|
95
|
+
}
|
|
96
|
+
}
|