@zzalai/leafer-point-annotation 1.0.0 → 1.1.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/README.md +2 -1
- package/README_EN.md +2 -1
- package/docs/assets/{index-L8gL3x2V.js → index-CPn8AE3g.js} +1 -1
- package/docs/assets/index-Dqqq7qvI.css +1 -0
- package/docs/index.html +2 -2
- package/package.json +3 -2
- package/project-docs/ARCHITECTURE.md +47 -4
- package/project-docs/IMPLEMENTATION_PLAN.md +37 -19
- package/project-docs/REQUIREMENTS.md +27 -8
- package/src/App.vue +8 -5
- package/src/components/PointAnnotation.vue +224 -25
- package/docs/assets/index-DGiYiG5f.css +0 -1
package/README.md
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
- 🔍 **画布缩放** - 支持缩放、平移、重置
|
|
15
15
|
- ⌨️ **热键支持** - V/P/B/E/Ctrl+Z/Ctrl+Y 等
|
|
16
16
|
- 📱 **响应式设计** - Vue3 组件化架构
|
|
17
|
+
- 🖼️ **本地上传** - 支持本地图片上传和拖拽上传
|
|
17
18
|
|
|
18
19
|
## 安装
|
|
19
20
|
|
|
@@ -132,7 +133,7 @@ const exportMask = async () => {
|
|
|
132
133
|
|
|
133
134
|
| 属性名 | 类型 | 默认值 | 说明 |
|
|
134
135
|
|--------|------|--------|------|
|
|
135
|
-
| imageSource | `{ id?: string; url: string }` |
|
|
136
|
+
| imageSource | `{ id?: string; url: string }` | `null` | 图片源配置(可选,不提供时显示本地上传入口) |
|
|
136
137
|
| options | `Object` | `{}` | 配置选项 |
|
|
137
138
|
|
|
138
139
|
#### Options 配置
|
package/README_EN.md
CHANGED
|
@@ -14,6 +14,7 @@ A point annotation and brush painting tool based on Vue3 + LeaferJS, supporting
|
|
|
14
14
|
- 🔍 **Canvas Zoom** - Zoom, pan, reset support
|
|
15
15
|
- ⌨️ **Hotkeys** - V/P/B/E/Ctrl+Z/Ctrl+Y and more
|
|
16
16
|
- 📱 **Responsive Design** - Vue3 component architecture
|
|
17
|
+
- 🖼️ **Local Upload** - Support local image upload and drag-and-drop
|
|
17
18
|
|
|
18
19
|
## Installation
|
|
19
20
|
|
|
@@ -132,7 +133,7 @@ const exportMask = async () => {
|
|
|
132
133
|
|
|
133
134
|
| Property | Type | Default | Description |
|
|
134
135
|
|----------|------|---------|-------------|
|
|
135
|
-
| imageSource | `{ id?: string; url: string }` |
|
|
136
|
+
| imageSource | `{ id?: string; url: string }` | `null` | Image source configuration (optional, shows upload UI when not provided) |
|
|
136
137
|
| options | `Object` | `{}` | Configuration options |
|
|
137
138
|
|
|
138
139
|
#### Options Configuration
|