Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DragableBox

エレメントにD&Dを適応するクラス

Hierarchy

  • DragableBox

Index

Constructors

constructor

  • new DragableBox(dragableBoxElement: HTMLElement, triggerBoxElement: HTMLElement, onDragableBoxElementFixed: Function): DragableBox

Properties

Private _isOverlapedTriggerBox

_isOverlapedTriggerBox: boolean = false

Private dragableBoxElement

dragableBoxElement: HTMLElement

Private isMoving

isMoving: boolean = false

Private isVideoBoxFixed

isVideoBoxFixed: Boolean = true

Private offsetX

offsetX: number = 0

Private offsetY

offsetY: number = 0

Private onDragableBoxElementFixed

onDragableBoxElementFixed: Function

Private triggerBoxElement

triggerBoxElement: HTMLElement

Private videoViewX

videoViewX: number = 0

Private videoViewY

videoViewY: number = 0

Accessors

isOverlapedTriggerBox

  • get isOverlapedTriggerBox(): boolean

Methods

beginMove

  • beginMove(e: any): void

Private isCollisionEnter

  • isCollisionEnter(rect1: ClientRect, rect2: ClientRect): boolean

onEndMove

  • onEndMove(e: any): void

onMove

  • onMove(e: any): void

Generated using TypeDoc