Skip to content

마우스 처리 역할 및 책임 정리 #59

Open

Description

@hjfactory

역할

  • 선택
  • 이동
  • 크기변경
  • 연결

객체

  • SelectObject :
    • MouseHandler : 마우스 이벤트 처리(마우스 정보 전달 후 필요 정보 취득)
      (FindTarget, MouseEnter/Leave Event)
  • ItemList(Collection) : Item 목록
  • Item(FaceShape(ItemConnectableItem), LineShape(ItemConnector))
  • ItemSelection(선택 시 크기변경 핸들 표시)
  • ItemConnection(마우스오버 시 AnchorPoint 표시)

MouseEnter/Leave 이벤트 역할은?

커서 변경 책임은?

  • Item / Handle ?
  • MouseHandler? : 핸들이 몇개인지, 어떤 핸들인지를 모두 관리/판단해야 해 불합리

이슈

  • DragMode(Move, Resize) 판단은 누가?
  • HotHandle 표시 위해 MouseEvent를 Layer > Obj > Items > Item > Selection > Handle 필요?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions