data-preview 1.0.5 → 1.0.6
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 +4 -4
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ AI-native semantic preview runtime for modern web.
|
|
|
10
10
|
|
|
11
11
|
- Zero Dependency
|
|
12
12
|
- Framework Agnostic
|
|
13
|
-
- Hover Preview(PC)/
|
|
13
|
+
- Hover Preview(PC)/ Tap Preview(Mobile)
|
|
14
14
|
- Smart Positioning — 自动适应窗口边界与图片比例
|
|
15
15
|
- SPA Compatible — 内置 `destroy()` 支持路由卸载
|
|
16
16
|
- Auto Dark Mode
|
|
@@ -181,14 +181,14 @@ DataPreview.init()
|
|
|
181
181
|
| `imgPad` | `8` | 预览框内边距 px |
|
|
182
182
|
| `maxWRatio` | `0.9` | 预览框最大宽度占窗口比例 |
|
|
183
183
|
| `maxHRatio` | `0.85` | 预览框最大高度占窗口比例 |
|
|
184
|
-
| `delayHide` | `
|
|
185
|
-
| `
|
|
184
|
+
| `delayHide` | `150` | 鼠标离开后隐藏延迟 ms |
|
|
185
|
+
| `badgeOffset` | `6` | 预览图标距右上角偏移 px |
|
|
186
186
|
|
|
187
187
|
------
|
|
188
188
|
|
|
189
189
|
## Mobile
|
|
190
190
|
|
|
191
|
-
移动端通过 `(pointer: coarse)`
|
|
191
|
+
移动端通过 `(pointer: coarse)` 自动识别触摸设备,采用点击触发预览,点击遮罩或右上角 ✕ 关闭。无需额外配置。
|
|
192
192
|
|
|
193
193
|
------
|
|
194
194
|
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "data-preview",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "AI-native semantic preview runtime for modern web.",
|
|
5
5
|
"keywords": ["image preview", "big image", "semantic protocol", "ai-native","data preview protocol"],
|
|
6
6
|
"type": "module",
|
|
7
7
|
|
|
8
8
|
"main": "./dist/data-preview.umd.js",
|
|
9
|
-
"module": "./dist/data-preview.js",
|
|
9
|
+
"module": "./dist/data-preview.es.js",
|
|
10
10
|
|
|
11
11
|
"exports": {
|
|
12
12
|
".": {
|
|
13
|
-
"import": "./dist/data-preview.js",
|
|
13
|
+
"import": "./dist/data-preview.es.js",
|
|
14
14
|
"default": "./dist/data-preview.umd.js"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"type": "git",
|
|
35
35
|
"url": "https://github.com/doc-war/data-preview"
|
|
36
36
|
},
|
|
37
|
-
"homepage": "https://doc-war.com
|
|
37
|
+
"homepage": "https://doc-war.com",
|
|
38
38
|
|
|
39
39
|
"license": "MIT"
|
|
40
40
|
}
|