Skip to content

Releases

v0.4.1 — 撤销/清空在打字时可用

Choose a tag to compare

@janewas janewas released this 14 Sep 12:37

0.4.1

  • 撤销 / 清空在框内打字时不再置灰。 以前这两个按钮的可用性只看"已提交的操作历史",而你正在输入框里打的字还没落进历史,于是它们一直是灰的。现在:撤销 = 放弃这段还没落下的文字(等同 Esc),清空 = 放弃这段文字并清掉已画的标注;只有确实没东西可撤/可清时才置灰,两个键都带 tooltip 说明当前作用。
  • 框内输入框的占位提示改为跟随框的颜色,浅色图和深色图上都看得清。
  • 同步更新 assets/screenshot-1-editor.png(旧图正好拍的是"两个按钮灰着"的状态)。

Undo / Clear are no longer greyed out while you are typing inside a text frame. Undo now discards the in-progress frame text (same as Esc) and Clear discards it and wipes the committed annotations; both are greyed out only when there is genuinely nothing to undo or clear, and each explains itself in a tooltip. The in-place textarea placeholder now follows the frame colour.

Install

dsh plugin --profile web add github:janewas/dsh-image-annotate

Or download dsh-image-annotate.tgz below and run bash install.sh inside the unpacked folder (idempotent, live without a restart). Verified on DSH 2.x web profile; the tarball below was installed into a clean DSH_HOME and re-tested end-to-end.

v0.4.0

Choose a tag to compare

@janewas janewas released this 14 Sep 11:50

Text frames can now be moved and resized after they are placed.

0.4.0

  • Move and resize a text frame: with the text tool, drag the frame body to move it, or any of its eight handles to resize it. The text re-fits live while dragging, handles are drawn at a constant screen size, and the cursor reflects the handle under the pointer.
  • A frame cannot be shrunk small enough to clip its text: a shared minimum readable font size doubles as the resize floor.
  • Edit and delete: double-click inside a frame to change its text (clearing the text removes the frame); select a frame and press Delete to remove it.
  • Undo covers everything: the undo stack is now a snapshot history instead of "drop the last shape", so moves, resizes, text changes, deletes and drawn strokes are all undoable.
  • Text frames stay independent of the box tool — the box tool still only draws an outline, and frames are selectable only while the text tool is active.
  • Fixes: editing text used to append a second frame instead of replacing the first (the in-place editor dropped its editing id on every keystroke), the caret started at offset 0 when editing existing text, and drawn pen/box/arrow strokes were not recorded in the undo history.

Install

dsh plugin --profile web add github:janewas/dsh-image-annotate   # restart dsh web afterwards

or download the tarball below, extract it, and run bash install.sh (no restart, refresh the page).

Requires DSH 0.1.5-rc.1 or a compatible release.

v0.3.0

Choose a tag to compare

@janewas janewas released this 14 Sep 11:26

Text is now written inside a frame you draw.

0.3.0

  • Text goes in a frame: with the text tool, drag a box on the image (a plain click gives one at a default size) and type inside it. Lines wrap to the frame and the font size is solved for it by binary search, so a long paragraph shrinks instead of running off the image — nothing is ever truncated. If even the minimum size cannot fit, the frame grows downwards.
  • Frame shape and fill: rectangle / rounded / ellipse, and transparent / tinted / solid. Transparent keeps only the border and the text. Multi-line text with Shift+Enter.
  • The width buttons now only set pen / box / arrow line width; text size follows the frame.
  • Settings: 文字框形状 and 文字框底纹 replace 文字默认加底框; 默认粗细 is now 默认线宽.
  • Preview and export share one layout solver; the preview self-corrects when the browser's text metrics differ by a line.

Install

dsh plugin --profile web add github:janewas/dsh-image-annotate   # restart dsh web afterwards

or download the tarball below, extract it, and run bash install.sh (no restart, refresh the page).

Requires DSH 0.1.5-rc.1 or a compatible release.

v0.2.0

Choose a tag to compare

@janewas janewas released this 13 Sep 07:00

DSH web plugin: click a pending composer image to annotate it, and insert the annotated PNG back next to the original.

0.2.0

  • Text tool: click a spot, type, Enter to confirm. New text is drawn as a colour-filled pill with contrasting type (visible even in the 64 px thumbnail); the toolbar's 底框 button switches that off for plain outlined text.
  • Settings page (Settings → 图片标注): enable/disable, default tool / colour / width, text label, insert mode (append or replace), output file name suffix, reset.
  • Text/copy in English and Chinese; prebuilt tarball attached for the no-pnpm install route.

Install

dsh plugin --profile web add github:janewas/dsh-image-annotate   # restart dsh web afterwards

or download the tarball below, extract it, and run bash install.sh (no restart, refresh the page).

Requires DSH 0.1.5-rc.1 or a compatible release.