@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 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 }` | Required | Image source configuration |
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