new eg.Axes.PinchInput(element, options)
A module that passes the amount of change to eg.Axes when two pointers are moving toward (zoom-in) or away from each other (zoom-out). use one axis.
2개의 pointer를 이용하여 zoom-in하거나 zoom-out 하는 동작의 변화량을 eg.Axes에 전달하는 모듈. 한 개 의 축을 사용한다.
-
elementType: HTMLElement | String | jQuery
An element to use the eg.Axes.PinchInput module
eg.Axes.PinchInput 모듈을 사용할 엘리먼트
-
options optionalType: PinchInputOption
The option object of the eg.Axes.PinchInput module
eg.Axes.PinchInput 모듈의 옵션 객체
Example
const pinch = new eg.Axes.PinchInput("#area", {
scale: 1
});
// Connect 'something' axis when two pointers are moving toward (zoom-in) or away from each other (zoom-out).
axes.connect("something", pinch);
Methods
-
destroy()
-
Destroys elements, properties, and events used in a module.
모듈에 사용한 엘리먼트와 속성, 이벤트를 해제한다.
-
disable(){eg.Axes.PinchInput}
-
Disables input devices
입력 장치를 사용할 수 없게 한다.
Returns:
Type Description eg.Axes.PinchInput An instance of a module itself모듈 자신의 인스턴스
-
enable(){eg.Axes.PinchInput}
-
Enables input devices
입력 장치를 사용할 수 있게 한다
Returns:
Type Description eg.Axes.PinchInput An instance of a module itself모듈 자신의 인스턴스
-
isEnable(){Boolean}
-
Returns whether to use an input device
입력 장치를 사용 여부를 반환한다.
Returns:
Type Description Boolean Whether to use an input device입력장치 사용여부