feat(shell): 一级导航(52px 纯图标)+ 插件整页 + 快捷键弹窗分区罗列(v3.25.59)
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m5s
Verify (Gitea) / gate (build · unit · facts) (push) Failing after 1m5s
This commit is contained in:
1 parent
6db5a143a8
commit
7b2f07bdad
37 files changed
+676
-177
No files matched your search
@@ -1194,7 +1194,7 @@
|
||||
if (refs.zoomAnim) { cancelAnimationFrame(refs.zoomAnim); refs.zoomAnim = null }
|
||||
// 面板区域(抽屉/历史图/工具栏/侧栏/弹窗等)滚轮只滚动内容,不缩放画布
|
||||
const t0 = e.target
|
||||
if (t0 && t0.closest && t0.closest('.iwb-dock, .iwb-drawer, .iwb-toolbar, .iwb-rightrail, .iwb-wsrail, .iwb-statusbar, .iwb-minimap, .iwb-hint-bottom, .iwb-lib, .iwb-modal, .iwb-fullpanel')) return
|
||||
if (t0 && t0.closest && t0.closest('.iwb-dock, .iwb-drawer, .iwb-toolbar, .iwb-rightrail, .iwb-navrail, .iwb-plugin-page, .iwb-statusbar, .iwb-minimap, .iwb-hint-bottom, .iwb-lib, .iwb-modal, .iwb-fullpanel')) return
|
||||
e.preventDefault()
|
||||
// 标记"缩放窗口"(去抖 160ms):缩放下每帧会生成新的 nodes 数组,让节点 memo 在此期间放宽比较
|
||||
try {
|
||||
@@ -1923,7 +1923,7 @@
|
||||
// (面板常停靠左侧),候选位与禁区相交也一律跳过。世界→屏幕换算:screen = world * scale + vp
|
||||
const blockedRects = []
|
||||
try {
|
||||
document.querySelectorAll('.iwb-fullmask, .iwb-wsrail, .iwb-lib, .iwb-lib-embedded').forEach((elm) => {
|
||||
document.querySelectorAll('.iwb-fullmask, .iwb-navrail, .iwb-plugin-page, .iwb-lib, .iwb-lib-embedded').forEach((elm) => {
|
||||
const r = elm.getBoundingClientRect()
|
||||
if (r && r.width > 4 && r.height > 4) blockedRects.push(r)
|
||||
})
|
||||
@@ -1982,7 +1982,7 @@
|
||||
const obstacles = refs.nodes.map((n) => ({ x: n.x, y: n.y, w: nodeWidth(n), h: refs.measuredH[n.id] || n.h || nodeTypeH(n.type) }))
|
||||
// 浮层(插件面板/资源中心/左右侧栏)也是禁区:落在这些区域等于被盖住看不见,与 findSpot 同一份清单
|
||||
try {
|
||||
document.querySelectorAll('.iwb-fullmask, .iwb-wsrail, .iwb-lib, .iwb-lib-embedded').forEach((elm) => {
|
||||
document.querySelectorAll('.iwb-fullmask, .iwb-navrail, .iwb-plugin-page, .iwb-lib, .iwb-lib-embedded').forEach((elm) => {
|
||||
const r = elm.getBoundingClientRect()
|
||||
if (!r || r.width <= 4 || r.height <= 4) return
|
||||
obstacles.push({ x: (r.left - vp.x) / vp.scale, y: (r.top - vp.y) / vp.scale, w: r.width / vp.scale, h: r.height / vp.scale })
|
||||
@@ -2075,7 +2075,7 @@
|
||||
const topNode = nodeList.find((n) => n.y === minY)
|
||||
if (hasNodeTitle(topNode)) minY -= NODE_HEAD_H
|
||||
// 排除左侧工作台栏(含展开态)与可见的右侧提示词库,避免节点被遮挡
|
||||
const railEl = document.querySelector('.iwb-wsrail')
|
||||
const railEl = document.querySelector('.iwb-navrail, .iwb-plugin-page')
|
||||
const railW = railEl ? railEl.getBoundingClientRect().width : 0
|
||||
const libEl = document.querySelector('.iwb-lib')
|
||||
const libW = (libEl && libEl.getBoundingClientRect().width > 0) ? libEl.getBoundingClientRect().width : 0
|
||||
|
||||
Reference in new issue
Block a user