Skip to content

Interface: HoverChangeDetail ​

Defined in: packages/viewer-core/src/public/types.ts:940

hover-changed 事件 payload:当前 hover 项,无 hover 时为 null。

Properties ​

item ​

readonly item: SelectionItem | null

Defined in: packages/viewer-core/src/public/types.ts:941


worldNormal? ​

readonly optional worldNormal?: Vec3 | null

Defined in: packages/viewer-core/src/public/types.ts:953


worldPoint? ​

readonly optional worldPoint?: Vec3 | null

Defined in: packages/viewer-core/src/public/types.ts:952

悬停处的世界命中点 / 法向;光标下无实体面命中时为 null(轮廓边就是这种)。

与 item 出自同一次 raycast —— pickItemDetailed 只是多读了 pickCore 已经算好的 nearestMeshHit,没有额外的光线求交开销。

存在的理由:平面在 .fmbv 里不存 origin,「面上是哪一点」只能由命中点兼任。 少了它,悬停预解算对四分之一的面解不出来(真机实测 60/80),而同一处点下去却能成功 —— 表现为「悬停没反应,点了却成了」。