dsh-gallery 0.14.3 → 0.14.4

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/CHANGELOG.md CHANGED
@@ -2,11 +2,23 @@
2
2
 
3
3
  本项目遵循[语义化版本](https://semver.org/lang/zh-CN/)。
4
4
 
5
- ## [0.14.3] - 2026-11-10(本地候选,未发布)
5
+ ## [0.14.4] - 2026-11-11(发布材料已备,交 DSH 推送)
6
+
7
+ **主题:批注框跟随图片缩放平移 + 标注态中键拖动平移。**
8
+
9
+ > 发布前线上 npm latest / tag 仍是 0.14.3;本版随 0.14.4 推送(npm + tag v0.14.4 + 补建 Release)。
10
+ > 推送后以线上实测为准,详见 [LOCAL-RELEASE.md](LOCAL-RELEASE.md) 与 `G:/DSH产出/2026-11-11-releases/给DSH的发布指令.md`。
11
+
12
+ - **修 bug(老板 22:49 反馈)**:批注 SVG 原先覆盖整个预览容器且不带变换,图片却是 `object-fit:contain` 居中后单独 `translate/scale` —— 两套坐标系,1:1 圈就可能错位、放大拖图后框完全不跟随。现在量出图片真实布局盒(`offsetLeft/Top/Width/Height`,`ResizeObserver` 跟随窗口与原图切换),SVG 贴着这个盒子并复用与 `<img>` 逐字相同的 `translate(pan) scale(zoom)` 与 120ms 过渡;`toNorm` 仍取变换后的 `getBoundingClientRect()`,所以放大后新圈的框也落在原图同一处。
13
+ - **弹窗不被拖走**:批注列表与说明编辑框留在无 transform 的 `dg-annotWrap`,不随图片放大 / 平移跑出视野。
14
+ - **标注态中键平移**(老板 23:15 需求,撤回上一版「画框 / 移动」按钮切换):标注层 `onPointerDown` 过去对所有按键一律 `stopPropagation`,把中键吞掉,标注时挪不动图。现在中键(1) 放行给查看器原生拖拽平移(查看器本就支持中键 + 拦浏览器自动滚动),左键仍画框;平移进行中标注层不插手,已画框与图共用同一组 pan/zoom 自然跟随;中键拖动时光标切抓握,1:1 拖不动则不误导;标注按钮悬停提示中键用法。
15
+ - **自检**:语法全过、回归 **38/38**(`tests/annot-zoom.test.mjs` 5 条几何 + `tests/annot-middle-pan.test.mjs` 8 条中键路由 / 光标 / 边界 / CRLF)。
16
+
17
+ ## [0.14.3] - 2026-11-10(已发布 22:03)
6
18
 
7
19
  **主题:截帧自动归入当前对话资产 + 会话状态标注二次修复。**
8
20
 
9
- > 基于 npm 0.14.1 发布包,只在本机安装验证;线上 npm / tag / 线上 README 未动。
21
+ > 基于 npm 0.14.1 发布包。线上 npm latest / tag / GitHub README 均已同步;包 SHA1 `91881fca…`。
10
22
  > 详见 [LOCAL-RELEASE.md](LOCAL-RELEASE.md)。
11
23
 
12
24
  - **视频截帧不再自选保存位置**:播放器「📷 截取当前帧」把 PNG 交给 Host 直接写到源视频同目录(画廊扫描范围内),不再弹系统保存框、不再落到「下载」目录。文件名 `<视频名>_帧_<HH-MM-SS-mmm>.png`,精确到毫秒;同一帧重截自动加 `-2`。
package/README.md CHANGED
@@ -8,19 +8,20 @@
8
8
  > 视频音频能在面板里直接播放并拖进度条,
9
9
  > **让你在任务进行中就能看到产出、当场校验,而不是结束后才发现做错了。**
10
10
  >
11
- > 📌 **当前版本 `0.14.3`(2026-11-10 发布)**:实时看见、当场校验、就地处置已可用。
11
+ > 📌 **当前版本 `0.14.4`(2026-11-11 发布)**:实时看见、当场校验、就地处置已可用。
12
12
  > 判断只保留两层——原生产出标签(素材 / 过程稿 / 定稿 / 未归类,**可手动改、改过就一直生效**)与反馈篮(人工审核合并发送)。
13
13
  > **表态定性层与「自动递便条」决策包已下线**:前者多余,后者会绕过反馈栏刻意设的人工闸门。详见 [判断分两层](#判断分两层标签--反馈v0142)。
14
14
  > 视频「📷 截取当前帧」**自动存进当前对话资产**,文件名写清取自哪一帧,可直接框选批注进反馈篮;
15
15
  > 「当前对话」与「全局资产」的分类筛选行为一致,组内不再有第二套「隐藏中间产物」开关。
16
+ > 图上**批注框跟随缩放平移**(放大后圈选仍落在原图同一处);**标注态按住鼠标中键拖动**即可平移图片、已画框跟着走。
16
17
 
17
- [![Version](https://img.shields.io/badge/version-0.14.3-blue.svg)](#)
18
+ [![Version](https://img.shields.io/badge/version-0.14.4-blue.svg)](#)
18
19
  [![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
19
20
  [![Zero dependencies](https://img.shields.io/badge/dependencies-0-brightgreen.svg)](#技术说明给想改代码的人)
20
21
  [![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20macOS%20%7C%20Linux-lightgrey.svg)](#兼容性)
21
22
  [![DSH plugin](https://img.shields.io/badge/DSH-plugin-blueviolet.svg)](#)
22
23
 
23
- **关键词**:DeepSeek Harness 插件 · DSH plugin · 产出画廊 · output gallery · 图片画廊 · image gallery · 文件预览 · file preview · **音视频画廊 · media gallery · 视频预览 · video preview** · 侧边栏面板 · sidebar panel · Agent 产出管理 · output artifacts · **产出标签 · asset label · 手动改标签 · manual label · 反馈篮 · feedback basket · 批注 · annotation · region selection · 截帧 · frame capture · 批量处置 · batch actions**
24
+ **关键词**:DeepSeek Harness 插件 · DSH plugin · 产出画廊 · output gallery · 图片画廊 · image gallery · 文件预览 · file preview · **音视频画廊 · media gallery · 视频预览 · video preview** · 侧边栏面板 · sidebar panel · Agent 产出管理 · output artifacts · **产出标签 · asset label · 手动改标签 · manual label · 反馈篮 · feedback basket · 批注 · annotation · region selection · 截帧 · frame capture · 批注跟随 · annotation follow · 中键平移 · middle mouse pan · 批量处置 · batch actions**
24
25
 
25
26
  ### 界面一览
26
27
 
@@ -38,6 +39,10 @@
38
39
 
39
40
  ![截帧入库与反馈篮](docs/screenshots/03-frame-feedback.png)
40
41
 
42
+ **④ 标注跟随**:放大 / 平移后已画的框贴着图面走、不脱框;标注态按住鼠标中键拖动平移,左键仍用于画框。
43
+
44
+ ![标注框跟随缩放平移与中键移动](docs/screenshots/04-annot-follow.png)
45
+
41
46
  ---
42
47
 
43
48
  ## 它解决什么问题
@@ -87,7 +92,7 @@
87
92
  |---|---|
88
93
  | **自动刷新** | 每 5 秒轮询,查看大图时自动暂停,不打断 |
89
94
  | **缩略图** | 客户端 canvas 压缩到 200px(不是原图直塞),并发闸门 4,进入视口才加载 |
90
- | **放大查看** | 滚轮缩放(最大 8×,**以光标位置为中心**)、左键或中键拖动平移 |
95
+ | **放大查看** | 滚轮缩放(最大 8×,**以光标位置为中心**)、左键或中键拖动平移;标注态左键留给画框,改按**中键**平移 |
91
96
  | **看原图** | 缩略图右键「查看原图」直接按原图像素打开;查看器内切换原图/预览(底部按钮、右键、`O` 键),**切换时保留缩放与位置**;按需加载并显示进度,不预加载 |
92
97
  | **音视频画廊** | 视频/音频独立第三栏;视频首帧缩略图(进入视口才抽帧);点击面板内播放(原生 `<video>`/`<audio>`,支持拖动进度条);体积上限 200 MB 可调 |
93
98
  | **右侧控制列** | 放大后出现 `▲` / `▼` 按钮 + 轨道 + 滑块,**没有鼠标也能操作** |
@@ -243,8 +248,8 @@ github:Hope2023Dcr/dsh-gallery
243
248
  > git+https://github.com/Hope2023Dcr/dsh-gallery.git#260a8dadfb39b393fdb8e85b182dd1f871e3ea43
244
249
  > ```
245
250
 
246
- > 上面那个 commit 是 **v0.14.1** 的历史基线(表态层当时还在)。v0.14.3 发布后可用
247
- > `git+https://github.com/Hope2023Dcr/dsh-gallery.git#v0.14.3` 锁定版本。
251
+ > 上面那个 commit 是 **v0.14.1** 的历史基线(表态层当时还在)。v0.14.4 发布后可用
252
+ > `git+https://github.com/Hope2023Dcr/dsh-gallery.git#v0.14.4` 锁定版本。
248
253
  > **更推荐直接用 npm**(`npm i dsh-gallery`)—— 版本号跟着 `latest` 走,不用每次手工核对哈希。
249
254
 
250
255
  > ⚠️ 这种方式需要**能访问 GitHub**。DSH 的「国内镜像」只代理 npm 包,不代替 GitHub 下载。
@@ -380,8 +385,9 @@ config:
380
385
  而不是猜成某个类别。这类文件多来自早期对话或手动拷入。
381
386
  7. **批注只在内存里。** 重开面板 / 刷新 / 重启 DSH 会清空(手动标签是落盘的,不受影响)。
382
387
  批注属于「这一轮要对 Agent 说的话」,用完即弃,所以没做落盘。
383
- 8. **批注框不跟随缩放平移。** 放大并拖动图片后,已画的框不会跟着画面移动。
384
- 需要精确框选时,在 `1:1` 显示下圈。
388
+ 8. **批注框自 v0.14.4 起跟随缩放平移**,放大后圈选也落在原图同一处,不再只能 `1:1` 下圈。
389
+ **标注态下按住鼠标中键拖动可平移图片**(放大后生效),已画框跟着走;左键仍用于画框。
390
+ 一个视觉细节:框线用 `non-scaling-stroke` 固定为屏幕像素宽,放大很多倍时框会比画面内容显得细。
385
391
 
386
392
  ---
387
393
 
@@ -560,7 +566,7 @@ Annotation 1:按框选区域修改 —— 后视图.png
560
566
  | 反馈篮多动作 + 零自动发送 | ✅ 已实现 |
561
567
  | 批量改标签 / 批量处置;删磁盘入口已停用 | ✅ 已实现(少一个不可逆入口) |
562
568
  | **批注落盘(重启 / 刷新不丢)** | ❌ 只存内存 |
563
- | **批注跟随图片缩放平移** | ❌ 现在建议 1:1 下圈 |
569
+ | **批注跟随图片缩放平移;标注态中键移动不脱框** | ✅ **v0.14.4**(1:1 与放大都对齐,中键平移框跟随) |
564
570
  | **按标签导出交付清单 / 驱动下一轮** | ❌ 未做(第 4 段的核心) |
565
571
  | 版本历史(同一文件跨 turn 的修改点) | ❌ 未做 |
566
572
  | A/B 对比 / 参数回灌 | ❌ 未做 |
package/client.js CHANGED
@@ -87,6 +87,45 @@ function normalizeAnnotation(a) {
87
87
  }
88
88
  }
89
89
 
90
+ /**
91
+ * 批注层几何(v0.14.4):SVG 与 <img> 共用同一布局盒、同一组 translate/scale。
92
+ * 图片按 object-fit:contain 居中后,实际显示盒往往小于预览容器;旧版 SVG 覆盖整个
93
+ * 容器且不带变换,1:1 就可能错位,放大后更彻底脱框。抽成纯函数便于离线钉死契约。
94
+ */
95
+ function annotationSvgStyle(imgBox, pan, zoom, transition) {
96
+ return {
97
+ position: 'absolute',
98
+ left: `${imgBox.left}px`,
99
+ top: `${imgBox.top}px`,
100
+ width: `${imgBox.width}px`,
101
+ height: `${imgBox.height}px`,
102
+ transform: `translate(${pan.x}px, ${pan.y}px) scale(${zoom})`,
103
+ transformOrigin: '50% 50%',
104
+ transition,
105
+ }
106
+ }
107
+
108
+ /**
109
+ * 标注态「按下要不要拦冒泡 / 交给谁」的判定(v0.14.4)。
110
+ * 查看器本身就支持中键拖拽平移;标注层过去对所有按键一律 stopPropagation,
111
+ * 把中键吞掉,导致标注时挪不动图。现在:中键放行给查看器平移,左键留给画框。
112
+ */
113
+ function annotationPointerRouting(active, button) {
114
+ // 未激活:不拦(图片 pointerEvents:none,事件本就落到查看器)
115
+ if (!active) return 'pass'
116
+ // 中键(1):放行给查看器的中键拖拽平移,框跟着图走(已画框与图共用 pan/zoom)
117
+ if (button === 1) return 'pan'
118
+ // 左键(0)及其余:拦住,交给标注层画框;顺带防止弹窗输入被查看器拖图抢走
119
+ return 'draw'
120
+ }
121
+
122
+ /** 标注层 SVG 的光标:中键平移进行中显示抓握,否则画框态为十字。 */
123
+ function annotationSvgCursor(active, dragging, zoom) {
124
+ if (!active) return 'default'
125
+ if (dragging && zoom > 1) return 'grabbing'
126
+ return 'crosshair'
127
+ }
128
+
90
129
 
91
130
  /** tab 类型的身份;也是正文与标题在 keyed slot 里的 key。 */
92
131
  const KIND = 'gallery'
@@ -194,6 +233,7 @@ function normalizeAnnotation(a) {
194
233
  catFilterFinal: '定稿',
195
234
  annotEnter: '标注',
196
235
  annotExit: '退出标注',
236
+ annotPanHint: '按住鼠标中键拖动可平移图片(放大后生效),已画框会跟着走',
197
237
  annotNotePrompt: '这块要改什么?(可留空)',
198
238
  annotNotePlaceholder: '例如:沙发位置偏了 / 色调太暖',
199
239
  annotNoNote: '(无说明)',
@@ -511,6 +551,7 @@ function normalizeAnnotation(a) {
511
551
  catFilterFinal: 'Final',
512
552
  annotEnter: 'Annotate',
513
553
  annotExit: 'Exit annotate',
554
+ annotPanHint: 'Hold the middle mouse button to pan (works when zoomed in); drawn boxes follow the image',
514
555
  annotNotePrompt: 'What should change here? (optional)',
515
556
  annotNotePlaceholder: 'e.g. sofa position is off / color is too warm',
516
557
  annotNoNote: '(no note)',
@@ -2348,6 +2389,8 @@ function normalizeAnnotation(a) {
2348
2389
 
2349
2390
  /* ---------- v0.14.0:框选批注层 ---------- */
2350
2391
 
2392
+ /* annotWrap 故意不带 transform —— 批注列表/编辑弹窗挂在这一层,不能被图片缩放拖走。
2393
+ 变换只作用在里面的 svg 上,且必须与 img 的 translate/scale 取值完全一致(v0.14.4)。 */
2351
2394
  .dg-annotWrap { position: absolute; inset: 0; }
2352
2395
  .dg-annotSvg { position: absolute; inset: 0; width: 100%; height: 100%; }
2353
2396
  .dg-annotSvg.dg-annotActive { background: rgba(74, 124, 255, 0.04); }
@@ -4262,6 +4305,9 @@ ${absPath}
4262
4305
  const [pan, setPan] = React.useState({ x: 0, y: 0 })
4263
4306
  const [dragging, setDragging] = React.useState(false)
4264
4307
  const bodyRef = React.useRef(null)
4308
+ const imgRef = React.useRef(null)
4309
+ /** 图片在预览容器里的真实布局盒(不含 transform);批注层据此对齐,1:1 也不跑偏。 */
4310
+ const [imgBox, setImgBox] = React.useState(null)
4265
4311
  const dragRef = React.useRef(null)
4266
4312
  // 上一次拖动是否真的产生了位移(用于区分「拖图」和「单击关闭」)
4267
4313
  const lastDragMoved = React.useRef(false)
@@ -4406,8 +4452,34 @@ ${absPath}
4406
4452
  setPan({ x: 0, y: 0 })
4407
4453
  setDragging(false)
4408
4454
  dragRef.current = null
4455
+ setImgBox(null)
4409
4456
  }, [item.relPath])
4410
4457
 
4458
+ /**
4459
+ * 量出图片在容器里的真实布局盒。offsetWidth/Height 不含 transform,
4460
+ * 正是批注 SVG 该贴的基准 —— 图片按 object-fit:contain 居中后往往小于容器,
4461
+ * 拿容器当基准,1:1 圈的位置就会和画面错开。
4462
+ * 窗口缩放、原图/预览切换、换图都会改变盒子,监听容器尺寸并重新量。
4463
+ */
4464
+ const measureImgBox = React.useCallback(() => {
4465
+ const img = imgRef.current
4466
+ if (img === null || state.status !== 'ready' || isText) { setImgBox(null); return }
4467
+ const width = img.offsetWidth
4468
+ const height = img.offsetHeight
4469
+ if (width <= 0 || height <= 0) return
4470
+ // offsetLeft/Top 相对 offsetParent;img 直接挂在 position:relative 的 dg-viewerBody 下
4471
+ setImgBox({ left: img.offsetLeft, top: img.offsetTop, width, height })
4472
+ }, [state.status, isText])
4473
+
4474
+ React.useLayoutEffect(() => {
4475
+ measureImgBox()
4476
+ const body = bodyRef.current
4477
+ if (body === null || typeof ResizeObserver === 'undefined') return undefined
4478
+ const ro = new ResizeObserver(() => measureImgBox())
4479
+ ro.observe(body)
4480
+ return () => ro.disconnect()
4481
+ }, [measureImgBox, item.relPath, originalMode, original.status])
4482
+
4411
4483
  // 滚轮缩放:以鼠标位置为中心,避免放大后目标跑出视野(仅图片模式)。
4412
4484
  // 文本预览用原生滚动,不拦截滚轮。
4413
4485
  React.useEffect(() => {
@@ -4761,7 +4833,7 @@ ${absPath}
4761
4833
  key: 'annot',
4762
4834
  'data-gallery-annot-toggle': true,
4763
4835
  'aria-pressed': annotActive,
4764
- title: annotActive ? t('annotExit') : t('annotEnter'),
4836
+ title: annotActive ? `${t('annotExit')} · ${t('annotPanHint')}` : t('annotEnter'),
4765
4837
  onClick: (event) => {
4766
4838
  event.stopPropagation()
4767
4839
  setAnnotActive((v) => !v)
@@ -4812,6 +4884,8 @@ ${absPath}
4812
4884
  alt: item.name,
4813
4885
  decoding: 'async',
4814
4886
  draggable: false,
4887
+ ref: imgRef,
4888
+ onLoad: measureImgBox,
4815
4889
  style: {
4816
4890
  transform: `translate(${pan.x}px, ${pan.y}px) scale(${zoom})`,
4817
4891
  transition: dragRef.current === null ? 'transform 120ms ease-out' : 'none',
@@ -4819,14 +4893,19 @@ ${absPath}
4819
4893
  pointerEvents: 'none',
4820
4894
  },
4821
4895
  }),
4822
- // 批注层:只在图片(非文本)时出现,且随 zoom 一起变换
4823
- h(AnnotationLayer, {
4896
+ // 批注层贴着图片真实布局盒,与图片共用同一组 zoom/pan。
4897
+ // imgBox 还没量出来(图片未布局)时不画框,免得拿容器当基准错位。
4898
+ imgBox === null ? null : h(AnnotationLayer, {
4824
4899
  key: 'annot',
4825
4900
  t,
4826
4901
  annotations: annotsOfCurrent,
4827
4902
  active: annotActive,
4903
+ dragging,
4828
4904
  frameMs: null,
4829
- stageRef: bodyRef,
4905
+ zoom,
4906
+ pan,
4907
+ imgBox,
4908
+ transformTransition: dragRef.current === null ? 'transform 120ms ease-out' : 'none',
4830
4909
  onAdd: (a) => { onAddAnnotation?.(item, a) },
4831
4910
  onRemove: (id) => { onRemoveAnnotation?.(item, id) },
4832
4911
  }),
@@ -4881,9 +4960,16 @@ ${absPath}
4881
4960
  * v0.14.2 修:
4882
4961
  * ⑤ 弹窗开着时第二处按不下:改为一按下就先把当前草稿存档,可连续圈多处
4883
4962
  * ⑥ 只认「按住拖拽」:补「点两下」定义矩形(点起点 → 点终点),两种习惯都能用
4963
+ *
4964
+ * v0.14.4 本地热修:
4965
+ * ⑦ SVG 原先覆盖整个预览容器且不带 transform,图片却是 contain 居中后单独
4966
+ * translate/scale —— 两套坐标系,1:1 就可能错位、放大后彻底不跟随。
4967
+ * 现在 SVG 的布局盒对齐图片真实显示盒(imgBox),并复用同一组 zoom/pan;
4968
+ * 批注列表与编辑弹窗仍留在外层 dg-annotWrap(无 transform),
4969
+ * 不会被放大、也不会被平移拖出视野。
4884
4970
  */
4885
4971
 
4886
- function AnnotationLayer({ t, annotations, onAdd, onRemove, active, frameMs, stageRef }) {
4972
+ function AnnotationLayer({ t, annotations, onAdd, onRemove, active, dragging, frameMs, zoom, pan, imgBox, transformTransition }) {
4887
4973
  const [draft, setDraft] = React.useState(null)
4888
4974
  const [editing, setEditing] = React.useState(null)
4889
4975
  /** 已点下第一下、等第二下定终点时的起点(归一化坐标)。 */
@@ -4947,7 +5033,9 @@ function AnnotationLayer({ t, annotations, onAdd, onRemove, active, frameMs, sta
4947
5033
  }
4948
5034
 
4949
5035
  const onPointerDown = (event) => {
4950
- if (!active) return
5036
+ // 中键(1)放行给查看器的原生拖拽平移;左键留给画框(v0.14.4 标注态中键移动)。
5037
+ // 若继续对所有按键 stopPropagation,中键会被吞、标注时挪不动图。
5038
+ if (annotationPointerRouting(active, event.button) !== 'draw') return
4951
5039
  // 放大状态下查看器会在 pointerdown 里 setPointerCapture;这里必须拦住冒泡,
4952
5040
  // 否则弹窗内的输入框/按钮会被「拖图」逻辑抢走,表现为点击无反应。
4953
5041
  event.stopPropagation()
@@ -4978,6 +5066,8 @@ function AnnotationLayer({ t, annotations, onAdd, onRemove, active, frameMs, sta
4978
5066
  }
4979
5067
 
4980
5068
  const onPointerMove = (event) => {
5069
+ // 中键平移进行中:标注层一律不插手,让查看器独占指针(双保险,主保险是中键不再拦冒泡)
5070
+ if (dragging) return
4981
5071
  if (!active || draft === null || editing !== null) return
4982
5072
  event.stopPropagation()
4983
5073
  const p = toNorm(event)
@@ -4987,6 +5077,7 @@ function AnnotationLayer({ t, annotations, onAdd, onRemove, active, frameMs, sta
4987
5077
  }
4988
5078
 
4989
5079
  const finishDraft = (event) => {
5080
+ if (dragging) return
4990
5081
  if (draft === null || editing !== null) return
4991
5082
  event.preventDefault()
4992
5083
  event.stopPropagation()
@@ -5163,9 +5254,12 @@ function AnnotationLayer({ t, annotations, onAdd, onRemove, active, frameMs, sta
5163
5254
  // 不设 viewBox:坐标本来就是百分比(相对 SVG 视口),去掉 viewBox 后
5164
5255
  // 线宽与字号按屏幕像素计算,否则 12 号字会被放大成几十像素、盖住整张图。
5165
5256
  style: {
5166
- position: 'absolute', inset: 0, width: '100%', height: '100%',
5257
+ // 贴着图片真实布局盒,并用与 <img> 完全相同的 translate/scale。
5258
+ // toNorm 取 getBoundingClientRect() 拿到的是变换后的盒子,
5259
+ // 归一化坐标依旧落在原图同一位置;1:1 不偏、放大平移不脱框。
5260
+ ...annotationSvgStyle(imgBox, pan, zoom, transformTransition),
5167
5261
  pointerEvents: active ? 'auto' : 'none',
5168
- cursor: active ? 'crosshair' : 'default',
5262
+ cursor: annotationSvgCursor(active, dragging, zoom),
5169
5263
  },
5170
5264
  onPointerDown,
5171
5265
  onPointerMove,
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "dsh-gallery",
3
- "version": "0.14.3",
3
+ "version": "0.14.4",
4
4
  "type": "module",
5
- "description": "产出画廊:图片 / 文件 / 音视频实时可见、当场校验;原生产出标签(素材 / 过程稿 / 定稿 / 未归类)可手动改且持久生效,改标签动作与图上圈选批注攒进反馈篮,由人审核合并后发送,全程零自动发送;视频「截取当前帧」自动存入当前对话资产,反馈能精确指到某一帧。Output gallery for DeepSeek Harness: live image/file/audio/video preview, persistent manual asset labels, region annotations and label changes queued in a human-approved feedback basket, one-click video frame capture filed into the current session.",
5
+ "description": "产出画廊:图片 / 文件 / 音视频实时可见、当场校验;原生产出标签(素材 / 过程稿 / 定稿 / 未归类)可手动改且持久生效,改标签动作与图上圈选批注攒进反馈篮,由人审核合并后发送,全程零自动发送;视频「截取当前帧」自动存入当前对话资产,反馈能精确指到某一帧;批注框跟随图片缩放平移,标注态按住鼠标中键可平移且框不脱框。Output gallery for DeepSeek Harness: live image/file/audio/video preview, persistent manual asset labels, region annotations and label changes queued in a human-approved feedback basket, one-click video frame capture filed into the current session; region annotation boxes follow image zoom/pan, and holding the middle mouse button pans the image while annotating without losing the boxes.",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/Hope2023Dcr/dsh-gallery.git"
@@ -70,7 +70,9 @@
70
70
  "batch",
71
71
  "region-selection",
72
72
  "annotation",
73
- "frame-capture"
73
+ "frame-capture",
74
+ "annotation-follow",
75
+ "middle-mouse-pan"
74
76
  ],
75
77
  "publishConfig": {
76
78
  "access": "public",