new IntersectionObserver(initParams)
element 가 viewport 영역에 노출되는지 변화를 감지
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| initParams | Partial.<IIntersectionObserverExtOption> | Properties
 | 
- Source:
- See:
Throws:
- 
        target 옵션을 지정하지 않은 경우 - throw new Error('IntersectionObserver target 설정은 필수 값 입니다.'); 
- Type
- Error
Example
.. TODO
Extends
Methods
- 
    <static> getIntersectionEntry(initParams)
- 
    
    element 가 이미 노출된 경우 등, IntersectionObserver 등록으로 판단이 어려울 경우 
 IntersectionObserver.getIntersectionEntry 를 이용하여 target 의 노출 여부를 판단Parameters:Name Type Description initParamsPartial.<IIntersectionObserverExtOption> PropertiesName Type Argument Default Description targetElement visibleRatioNumber <optional> 
 0 throttleNumber <optional> 
 300 callbackfunction | null <optional> 
 noop callback function optionsIntersectionObserverInit <optional> 
 {} - Source:
 Returns:Example.. TODO 
- 
    attach()
- 
    
    이벤트 감지 설정 - Source:
 Returns:- Type
- IntersectionObserver
 
- 
    destroy()
- 
    
    destroy - Source:
 Returns:- Type
- IntersectionObserver
 
- 
    detach()
- 
    
    이벤트 감지 해제 - Source:
 Returns:- Type
- IntersectionObserver
 
- 
    emit(eventName, values)
- 
    
    이벤트 전파 Parameters:Name Type Argument Description eventNamestring valuesArray.<any> <repeatable> 
 - Inherited From:
- Overrides:
- Source:
 Returns:- Type
- EventEmitter
 
- 
    fire(eventName, values)
- 
    
    이벤트 전파 Parameters:Name Type Description eventNamestring valuesany - Inherited From:
- Overrides:
- Source:
 Returns:- Type
- EventEmitter
 
- 
    off(eventName [, listener])
- 
    
    이벤트 감지 해제 Parameters:Name Type Argument Description eventNamestring listenerTypeVoidFunction <optional> 
 - Inherited From:
- Overrides:
- Source:
 Returns:- Type
- EventEmitter
 
- 
    on(eventName [, listener] [, context])
- 
    
    이벤트 감지 등록 Parameters:Name Type Argument Default Description eventNamestring listenerTypeVoidFunction <optional> 
 noop context* <optional> 
 - Inherited From:
- Overrides:
- Source:
 Returns:- Type
- EventEmitter
 
- 
    once(eventName [, listener] [, context])
- 
    
    이벤트 1회 감지 등록 Parameters:Name Type Argument Default Description eventNamestring listenerTypeVoidFunction <optional> 
 noop context* <optional> 
 - Inherited From:
- Overrides:
- Source:
 Returns:- Type
- EventEmitter
 
Type Definitions
- 
    INTERSECTION_DIRECTIONS
- 
    
    
        Type:- String
 - Source:
 Properties:Name Type Description UPString DOWNString UNKNOWNString 
Events
- 
    INTERSECTION_EVENTS
- 
    
    IntersectionEvent Types - Source:
 Properties:Name Type Description CHANGEString 변경 시점