区段吸附点只要物理区段

This commit is contained in:
joylink_zhaoerwei 2024-01-10 13:50:49 +08:00
parent 347dec93d0
commit fc23bb11d5

View File

@ -355,7 +355,9 @@ function buildAbsorbablePositions(section: Section): AbsorbablePosition[] {
const ye = new AbsorbableLine({ x: pe.x, y: 0 }, { x: pe.x, y: height });
aps.push(xs, ys, xe, ye);
});
const sections = section.queryStore.queryByType<Section>(Section.Type);
const sections = section.queryStore
.queryByType<Section>(Section.Type)
.filter((g) => g.datas.sectionType == SectionType.Physical);
sections.forEach((item) => {
if (item.id !== section.id) {
item.localToCanvasPoints(...item.datas.points).forEach((p) => {