feat(image-annotate): v1.2.11 选中框手柄/旋转手柄/顶栏与选项栏打磨
- 缩放手柄 17px→11px(形状/文字/位图/放置四处统一),命中半径同步收小 - 旋转手柄重绘:细弧+末端小箭头(旋转语义更直观),线更细、色 #f0b34e - Shift+X 切换选中形状 描边/实心(箭头无实心给提示);isTyping 放行 Shift 组合键, 参数数字框里按 Shift+X 不再被吞 - 硬度:滑杆 84→140px + 5 个快捷点(0/25/50/75/100);笔刷推荐大小 7→4 个 - 顶栏:标题在最前,新建/覆盖/退出跟其后且三键统一中性色;标题后与撤销组后各加竖分隔 - harness 更新/新增断言(115 项全绿)
This commit is contained in:
1 parent
0d161d6ded
commit
c176744846
10 files changed
+153
-59
No files matched your search
@@ -309,7 +309,7 @@ import { isDrawableLayer } from '../vendor/layer-logic.js'
|
||||
if (hitRotationHandle(lp, b)) return 'rotate'
|
||||
const pts = shapeHandlePoints(s)
|
||||
const offset = 8 / S.zoom
|
||||
const R = Math.max(18 / S.zoom, 11)
|
||||
const R = Math.max(14 / S.zoom, 9)
|
||||
let best = null, bestDist = 1e9
|
||||
for (const name in pts) {
|
||||
const px = pts[name][0] + (name.includes('w') ? -offset : name.includes('e') ? offset : 0)
|
||||
@@ -405,7 +405,7 @@ import { isDrawableLayer } from '../vendor/layer-logic.js'
|
||||
octx.closePath()
|
||||
octx.stroke()
|
||||
octx.setLineDash([])
|
||||
const hs = 8.5 / S.zoom
|
||||
const hs = 5.5 / S.zoom
|
||||
octx.fillStyle = '#ffffff'
|
||||
octx.strokeStyle = '#e8a735'
|
||||
const pts = shapeHandleWorld(s)
|
||||
@@ -460,7 +460,7 @@ import { isDrawableLayer } from '../vendor/layer-logic.js'
|
||||
octx.closePath()
|
||||
octx.stroke()
|
||||
octx.setLineDash([])
|
||||
const hs = 7 / S.zoom
|
||||
const hs = 5.5 / S.zoom
|
||||
octx.fillStyle = '#ffffff'
|
||||
octx.strokeStyle = '#e8a735'
|
||||
const pts = textHandlePoints(sel)
|
||||
|
||||
Reference in new issue
Block a user