@egjs/flicking 4.11.3-beta.4 → 4.11.4-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declaration/Flicking.d.ts +240 -240
- package/declaration/camera/Camera.d.ts +89 -89
- package/declaration/camera/index.d.ts +4 -4
- package/declaration/camera/mode/BoundCameraMode.d.ts +13 -13
- package/declaration/camera/mode/CameraMode.d.ts +20 -20
- package/declaration/camera/mode/CircularCameraMode.d.ts +19 -19
- package/declaration/camera/mode/LinearCameraMode.d.ts +9 -9
- package/declaration/camera/mode/index.d.ts +6 -6
- package/declaration/cfc/getDefaultCameraTransform.d.ts +3 -3
- package/declaration/cfc/getRenderingPanels.d.ts +4 -4
- package/declaration/cfc/index.d.ts +5 -5
- package/declaration/cfc/sync.d.ts +4 -4
- package/declaration/cfc/withFlickingMethods.d.ts +2 -2
- package/declaration/const/axes.d.ts +8 -8
- package/declaration/const/error.d.ts +34 -34
- package/declaration/const/external.d.ts +48 -48
- package/declaration/control/AxesController.d.ts +44 -44
- package/declaration/control/Control.d.ts +45 -45
- package/declaration/control/FreeControl.d.ts +14 -14
- package/declaration/control/SnapControl.d.ts +16 -16
- package/declaration/control/StateMachine.d.ts +14 -14
- package/declaration/control/StrictControl.d.ts +20 -20
- package/declaration/control/index.d.ts +14 -14
- package/declaration/control/states/AnimatingState.d.ts +9 -9
- package/declaration/control/states/DisabledState.d.ts +9 -9
- package/declaration/control/states/DraggingState.d.ts +8 -8
- package/declaration/control/states/HoldingState.d.ts +10 -10
- package/declaration/control/states/IdleState.d.ts +9 -9
- package/declaration/control/states/State.d.ts +47 -47
- package/declaration/core/AnchorPoint.d.ts +15 -15
- package/declaration/core/AutoResizer.d.ts +16 -16
- package/declaration/core/FlickingError.d.ts +5 -5
- package/declaration/core/ResizeWatcher.d.ts +33 -33
- package/declaration/core/Viewport.d.ts +25 -25
- package/declaration/core/VirtualManager.d.ts +37 -37
- package/declaration/core/index.d.ts +6 -6
- package/declaration/core/panel/Panel.d.ts +89 -89
- package/declaration/core/panel/VirtualPanel.d.ts +19 -19
- package/declaration/core/panel/index.d.ts +5 -5
- package/declaration/core/panel/provider/ElementProvider.d.ts +8 -8
- package/declaration/core/panel/provider/VanillaElementProvider.d.ts +12 -12
- package/declaration/core/panel/provider/VirtualElementProvider.d.ts +15 -15
- package/declaration/core/panel/provider/index.d.ts +5 -5
- package/declaration/index.cjs.d.ts +3 -3
- package/declaration/index.d.ts +13 -13
- package/declaration/index.umd.d.ts +2 -2
- package/declaration/renderer/ExternalRenderer.d.ts +7 -7
- package/declaration/renderer/Renderer.d.ts +59 -59
- package/declaration/renderer/VanillaRenderer.d.ts +10 -10
- package/declaration/renderer/index.d.ts +6 -6
- package/declaration/renderer/strategy/NormalRenderingStrategy.d.ts +23 -23
- package/declaration/renderer/strategy/RenderingStrategy.d.ts +15 -15
- package/declaration/renderer/strategy/VirtualRenderingStrategy.d.ts +17 -17
- package/declaration/renderer/strategy/index.d.ts +5 -5
- package/declaration/type/event.d.ts +88 -88
- package/declaration/type/external.d.ts +31 -31
- package/declaration/type/internal.d.ts +13 -13
- package/declaration/utils.d.ts +45 -45
- package/dist/flicking.cjs.js +9 -5
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +9 -5
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +9 -5
- package/dist/flicking.js.map +1 -1
- package/dist/flicking.min.js +2 -2
- package/dist/flicking.min.js.map +1 -1
- package/dist/flicking.pkgd.js +774 -763
- package/dist/flicking.pkgd.js.map +1 -1
- package/dist/flicking.pkgd.min.js +2 -2
- package/dist/flicking.pkgd.min.js.map +1 -1
- package/package.json +2 -2
package/dist/flicking.pkgd.js
CHANGED
|
@@ -4,7 +4,7 @@ name: @egjs/flicking
|
|
|
4
4
|
license: MIT
|
|
5
5
|
author: NAVER Corp.
|
|
6
6
|
repository: https://github.com/naver/egjs-flicking
|
|
7
|
-
version: 4.11.
|
|
7
|
+
version: 4.11.4-beta.0
|
|
8
8
|
*/
|
|
9
9
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -12,7 +12,7 @@ version: 4.11.3-beta.4
|
|
|
12
12
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Flicking = factory());
|
|
13
13
|
})(this, (function () { 'use strict';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/******************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation.
|
|
17
17
|
|
|
18
18
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -26,7 +26,7 @@ version: 4.11.3-beta.4
|
|
|
26
26
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27
27
|
PERFORMANCE OF THIS SOFTWARE.
|
|
28
28
|
***************************************************************************** */
|
|
29
|
-
/* global Reflect, Promise */
|
|
29
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
30
30
|
|
|
31
31
|
var extendStatics$3 = function (d, b) {
|
|
32
32
|
extendStatics$3 = Object.setPrototypeOf || {
|
|
@@ -111,7 +111,7 @@ version: 4.11.3-beta.4
|
|
|
111
111
|
}
|
|
112
112
|
function step(op) {
|
|
113
113
|
if (f) throw new TypeError("Generator is already executing.");
|
|
114
|
-
while (_) try {
|
|
114
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
115
115
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
116
116
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
117
117
|
switch (op[0]) {
|
|
@@ -215,6 +215,10 @@ version: 4.11.3-beta.4
|
|
|
215
215
|
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$1(arguments[i]));
|
|
216
216
|
return ar;
|
|
217
217
|
}
|
|
218
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
219
|
+
var e = new Error(message);
|
|
220
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
221
|
+
};
|
|
218
222
|
|
|
219
223
|
/*
|
|
220
224
|
Copyright (c) NAVER Corp.
|
|
@@ -2655,7 +2659,7 @@ version: 4.11.3-beta.4
|
|
|
2655
2659
|
license: MIT
|
|
2656
2660
|
author: NAVER Corp.
|
|
2657
2661
|
repository: https://github.com/naver/egjs-axes
|
|
2658
|
-
version: 3.9.0
|
|
2662
|
+
version: 3.9.1-beta.0
|
|
2659
2663
|
*/
|
|
2660
2664
|
|
|
2661
2665
|
/*! *****************************************************************************
|
|
@@ -2709,9 +2713,9 @@ version: 4.11.3-beta.4
|
|
|
2709
2713
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2710
2714
|
}
|
|
2711
2715
|
|
|
2712
|
-
/*
|
|
2713
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
2714
|
-
* egjs projects are licensed under the MIT license
|
|
2716
|
+
/*
|
|
2717
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
2718
|
+
* egjs projects are licensed under the MIT license
|
|
2715
2719
|
*/
|
|
2716
2720
|
/* eslint-disable no-new-func, no-nested-ternary */
|
|
2717
2721
|
var win;
|
|
@@ -2726,9 +2730,9 @@ version: 4.11.3-beta.4
|
|
|
2726
2730
|
win = window;
|
|
2727
2731
|
}
|
|
2728
2732
|
|
|
2729
|
-
/*
|
|
2730
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
2731
|
-
* egjs projects are licensed under the MIT license
|
|
2733
|
+
/*
|
|
2734
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
2735
|
+
* egjs projects are licensed under the MIT license
|
|
2732
2736
|
*/
|
|
2733
2737
|
var DIRECTION_NONE = 1;
|
|
2734
2738
|
var DIRECTION_LEFT = 2;
|
|
@@ -2854,19 +2858,19 @@ version: 4.11.3-beta.4
|
|
|
2854
2858
|
};
|
|
2855
2859
|
caf = win.clearTimeout;
|
|
2856
2860
|
}
|
|
2857
|
-
/**
|
|
2858
|
-
* A polyfill for the window.requestAnimationFrame() method.
|
|
2859
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
|
|
2860
|
-
* @private
|
|
2861
|
+
/**
|
|
2862
|
+
* A polyfill for the window.requestAnimationFrame() method.
|
|
2863
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
|
|
2864
|
+
* @private
|
|
2861
2865
|
*/
|
|
2862
2866
|
var requestAnimationFrame = function (fp) {
|
|
2863
2867
|
return raf(fp);
|
|
2864
2868
|
};
|
|
2865
|
-
/**
|
|
2866
|
-
* A polyfill for the window.cancelAnimationFrame() method. It cancels an animation executed through a call to the requestAnimationFrame() method.
|
|
2867
|
-
* @param {Number} key − The ID value returned through a call to the requestAnimationFrame() method. <ko>requestAnimationFrame() 메서드가 반환한 아이디 값</ko>
|
|
2868
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame
|
|
2869
|
-
* @private
|
|
2869
|
+
/**
|
|
2870
|
+
* A polyfill for the window.cancelAnimationFrame() method. It cancels an animation executed through a call to the requestAnimationFrame() method.
|
|
2871
|
+
* @param {Number} key − The ID value returned through a call to the requestAnimationFrame() method. <ko>requestAnimationFrame() 메서드가 반환한 아이디 값</ko>
|
|
2872
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame
|
|
2873
|
+
* @private
|
|
2870
2874
|
*/
|
|
2871
2875
|
var cancelAnimationFrame = function (key) {
|
|
2872
2876
|
caf(key);
|
|
@@ -2993,6 +2997,9 @@ version: 4.11.3-beta.4
|
|
|
2993
2997
|
});
|
|
2994
2998
|
Object.keys(newCssProps_1).forEach(function (prop) {
|
|
2995
2999
|
oldCssProps[prop] = element.style[prop];
|
|
3000
|
+
});
|
|
3001
|
+
// Old style props like user-select can be corrupted if you change the style directly in the logic above.
|
|
3002
|
+
Object.keys(newCssProps_1).forEach(function (prop) {
|
|
2996
3003
|
element.style[prop] = newCssProps_1[prop];
|
|
2997
3004
|
});
|
|
2998
3005
|
}
|
|
@@ -3012,32 +3019,32 @@ version: 4.11.3-beta.4
|
|
|
3012
3019
|
this._axes = _axes;
|
|
3013
3020
|
this.holdingCount = 0;
|
|
3014
3021
|
}
|
|
3015
|
-
/**
|
|
3016
|
-
* This event is fired when a user holds an element on the screen of the device.
|
|
3017
|
-
* @ko 사용자가 기기의 화면에 손을 대고 있을 때 발생하는 이벤트
|
|
3018
|
-
* @event Axes#hold
|
|
3019
|
-
* @type {object}
|
|
3020
|
-
* @property {Object.<string, number>} pos coordinate <ko>좌표 정보</ko>
|
|
3021
|
-
* @property {Object} input The instance of inputType where the event occurred<ko>이벤트가 발생한 inputType 인스턴스</ko>
|
|
3022
|
-
* @property {Object} inputEvent The event object received from inputType <ko>inputType으로 부터 받은 이벤트 객체</ko>
|
|
3023
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3024
|
-
*
|
|
3025
|
-
* @example
|
|
3026
|
-
* ```js
|
|
3027
|
-
* const axes = new eg.Axes({
|
|
3028
|
-
* "x": {
|
|
3029
|
-
* range: [0, 100]
|
|
3030
|
-
* },
|
|
3031
|
-
* "zoom": {
|
|
3032
|
-
* range: [50, 30]
|
|
3033
|
-
* }
|
|
3034
|
-
* }).on("hold", function(event) {
|
|
3035
|
-
* // event.pos
|
|
3036
|
-
* // event.input
|
|
3037
|
-
* // event.inputEvent
|
|
3038
|
-
* // isTrusted
|
|
3039
|
-
* });
|
|
3040
|
-
* ```
|
|
3022
|
+
/**
|
|
3023
|
+
* This event is fired when a user holds an element on the screen of the device.
|
|
3024
|
+
* @ko 사용자가 기기의 화면에 손을 대고 있을 때 발생하는 이벤트
|
|
3025
|
+
* @event Axes#hold
|
|
3026
|
+
* @type {object}
|
|
3027
|
+
* @property {Object.<string, number>} pos coordinate <ko>좌표 정보</ko>
|
|
3028
|
+
* @property {Object} input The instance of inputType where the event occurred<ko>이벤트가 발생한 inputType 인스턴스</ko>
|
|
3029
|
+
* @property {Object} inputEvent The event object received from inputType <ko>inputType으로 부터 받은 이벤트 객체</ko>
|
|
3030
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3031
|
+
*
|
|
3032
|
+
* @example
|
|
3033
|
+
* ```js
|
|
3034
|
+
* const axes = new eg.Axes({
|
|
3035
|
+
* "x": {
|
|
3036
|
+
* range: [0, 100]
|
|
3037
|
+
* },
|
|
3038
|
+
* "zoom": {
|
|
3039
|
+
* range: [50, 30]
|
|
3040
|
+
* }
|
|
3041
|
+
* }).on("hold", function(event) {
|
|
3042
|
+
* // event.pos
|
|
3043
|
+
* // event.input
|
|
3044
|
+
* // event.inputEvent
|
|
3045
|
+
* // isTrusted
|
|
3046
|
+
* });
|
|
3047
|
+
* ```
|
|
3041
3048
|
*/
|
|
3042
3049
|
var __proto = EventManager.prototype;
|
|
3043
3050
|
__proto.hold = function (pos, option) {
|
|
@@ -3049,78 +3056,78 @@ version: 4.11.3-beta.4
|
|
|
3049
3056
|
isTrusted: true
|
|
3050
3057
|
}));
|
|
3051
3058
|
};
|
|
3052
|
-
/**
|
|
3053
|
-
* Specifies the coordinates to move after the 'change' event. It works when the holding value of the change event is true.
|
|
3054
|
-
* @ko 'change' 이벤트 이후 이동할 좌표를 지정한다. change이벤트의 holding 값이 true일 경우에 동작한다
|
|
3055
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
3056
|
-
* @example
|
|
3057
|
-
* ```js
|
|
3058
|
-
* const axes = new eg.Axes({
|
|
3059
|
-
* "x": {
|
|
3060
|
-
* range: [0, 100]
|
|
3061
|
-
* },
|
|
3062
|
-
* "zoom": {
|
|
3063
|
-
* range: [50, 30]
|
|
3064
|
-
* }
|
|
3065
|
-
* }).on("change", function(event) {
|
|
3066
|
-
* event.holding && event.set({x: 10});
|
|
3067
|
-
* });
|
|
3068
|
-
* ```
|
|
3059
|
+
/**
|
|
3060
|
+
* Specifies the coordinates to move after the 'change' event. It works when the holding value of the change event is true.
|
|
3061
|
+
* @ko 'change' 이벤트 이후 이동할 좌표를 지정한다. change이벤트의 holding 값이 true일 경우에 동작한다
|
|
3062
|
+
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
3063
|
+
* @example
|
|
3064
|
+
* ```js
|
|
3065
|
+
* const axes = new eg.Axes({
|
|
3066
|
+
* "x": {
|
|
3067
|
+
* range: [0, 100]
|
|
3068
|
+
* },
|
|
3069
|
+
* "zoom": {
|
|
3070
|
+
* range: [50, 30]
|
|
3071
|
+
* }
|
|
3072
|
+
* }).on("change", function(event) {
|
|
3073
|
+
* event.holding && event.set({x: 10});
|
|
3074
|
+
* });
|
|
3075
|
+
* ```
|
|
3069
3076
|
*/
|
|
3070
|
-
/** Specifies the animation coordinates to move after the 'release' or 'animationStart' events.
|
|
3071
|
-
* @ko 'release' 또는 'animationStart' 이벤트 이후 이동할 좌표를 지정한다.
|
|
3072
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
3073
|
-
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>애니메이션 진행 시간(단위: ms)</ko>
|
|
3074
|
-
* @example
|
|
3075
|
-
* ```js
|
|
3076
|
-
* const axes = new eg.Axes({
|
|
3077
|
-
* "x": {
|
|
3078
|
-
* range: [0, 100]
|
|
3079
|
-
* },
|
|
3080
|
-
* "zoom": {
|
|
3081
|
-
* range: [50, 30]
|
|
3082
|
-
* }
|
|
3083
|
-
* }).on("animationStart", function(event) {
|
|
3084
|
-
* event.setTo({x: 10}, 2000);
|
|
3085
|
-
* });
|
|
3086
|
-
* ```
|
|
3077
|
+
/** Specifies the animation coordinates to move after the 'release' or 'animationStart' events.
|
|
3078
|
+
* @ko 'release' 또는 'animationStart' 이벤트 이후 이동할 좌표를 지정한다.
|
|
3079
|
+
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
3080
|
+
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>애니메이션 진행 시간(단위: ms)</ko>
|
|
3081
|
+
* @example
|
|
3082
|
+
* ```js
|
|
3083
|
+
* const axes = new eg.Axes({
|
|
3084
|
+
* "x": {
|
|
3085
|
+
* range: [0, 100]
|
|
3086
|
+
* },
|
|
3087
|
+
* "zoom": {
|
|
3088
|
+
* range: [50, 30]
|
|
3089
|
+
* }
|
|
3090
|
+
* }).on("animationStart", function(event) {
|
|
3091
|
+
* event.setTo({x: 10}, 2000);
|
|
3092
|
+
* });
|
|
3093
|
+
* ```
|
|
3087
3094
|
*/
|
|
3088
|
-
/**
|
|
3089
|
-
* This event is fired when a user release an element on the screen of the device.
|
|
3090
|
-
* @ko 사용자가 기기의 화면에서 손을 뗐을 때 발생하는 이벤트
|
|
3091
|
-
* @event Axes#release
|
|
3092
|
-
* @type {object}
|
|
3093
|
-
* @property {Object.<string, number>} depaPos The coordinates when releasing an element<ko>손을 뗐을 때의 좌표 </ko>
|
|
3094
|
-
* @property {Object.<string, number>} destPos The coordinates to move to after releasing an element<ko>손을 뗀 뒤에 이동할 좌표</ko>
|
|
3095
|
-
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>좌표의 변화량</ko>
|
|
3096
|
-
* @property {Object.<string, number>} bounceRatio If the coordinates at the time of release are in the bounce area, the current bounce value divided by the maximum bounce value <ko>손을 뗐을 때의 좌표가 bounce 영역에 있는 경우 현재 bounce된 값을 최대 bounce 값으로 나눈 수치.</ko>
|
|
3097
|
-
* @property {Object} inputEvent The event object received from inputType <ko>inputType으로 부터 받은 이벤트 객체</ko>
|
|
3098
|
-
* @property {Object} input The instance of inputType where the event occurred<ko>이벤트가 발생한 inputType 인스턴스</ko>
|
|
3099
|
-
* @property {setTo} setTo Specifies the animation coordinates to move after the event <ko>이벤트 이후 이동할 애니메이션 좌표를 지정한다</ko>
|
|
3100
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3101
|
-
*
|
|
3102
|
-
* @example
|
|
3103
|
-
* ```js
|
|
3104
|
-
* const axes = new eg.Axes({
|
|
3105
|
-
* "x": {
|
|
3106
|
-
* range: [0, 100]
|
|
3107
|
-
* },
|
|
3108
|
-
* "zoom": {
|
|
3109
|
-
* range: [50, 30]
|
|
3110
|
-
* }
|
|
3111
|
-
* }).on("release", function(event) {
|
|
3112
|
-
* // event.depaPos
|
|
3113
|
-
* // event.destPos
|
|
3114
|
-
* // event.delta
|
|
3115
|
-
* // event.input
|
|
3116
|
-
* // event.inputEvent
|
|
3117
|
-
* // event.setTo
|
|
3118
|
-
* // event.isTrusted
|
|
3119
|
-
*
|
|
3120
|
-
* // if you want to change the animation coordinates to move after the 'release' event.
|
|
3121
|
-
* event.setTo({x: 10}, 2000);
|
|
3122
|
-
* });
|
|
3123
|
-
* ```
|
|
3095
|
+
/**
|
|
3096
|
+
* This event is fired when a user release an element on the screen of the device.
|
|
3097
|
+
* @ko 사용자가 기기의 화면에서 손을 뗐을 때 발생하는 이벤트
|
|
3098
|
+
* @event Axes#release
|
|
3099
|
+
* @type {object}
|
|
3100
|
+
* @property {Object.<string, number>} depaPos The coordinates when releasing an element<ko>손을 뗐을 때의 좌표 </ko>
|
|
3101
|
+
* @property {Object.<string, number>} destPos The coordinates to move to after releasing an element<ko>손을 뗀 뒤에 이동할 좌표</ko>
|
|
3102
|
+
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>좌표의 변화량</ko>
|
|
3103
|
+
* @property {Object.<string, number>} bounceRatio If the coordinates at the time of release are in the bounce area, the current bounce value divided by the maximum bounce value <ko>손을 뗐을 때의 좌표가 bounce 영역에 있는 경우 현재 bounce된 값을 최대 bounce 값으로 나눈 수치.</ko>
|
|
3104
|
+
* @property {Object} inputEvent The event object received from inputType <ko>inputType으로 부터 받은 이벤트 객체</ko>
|
|
3105
|
+
* @property {Object} input The instance of inputType where the event occurred<ko>이벤트가 발생한 inputType 인스턴스</ko>
|
|
3106
|
+
* @property {setTo} setTo Specifies the animation coordinates to move after the event <ko>이벤트 이후 이동할 애니메이션 좌표를 지정한다</ko>
|
|
3107
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3108
|
+
*
|
|
3109
|
+
* @example
|
|
3110
|
+
* ```js
|
|
3111
|
+
* const axes = new eg.Axes({
|
|
3112
|
+
* "x": {
|
|
3113
|
+
* range: [0, 100]
|
|
3114
|
+
* },
|
|
3115
|
+
* "zoom": {
|
|
3116
|
+
* range: [50, 30]
|
|
3117
|
+
* }
|
|
3118
|
+
* }).on("release", function(event) {
|
|
3119
|
+
* // event.depaPos
|
|
3120
|
+
* // event.destPos
|
|
3121
|
+
* // event.delta
|
|
3122
|
+
* // event.input
|
|
3123
|
+
* // event.inputEvent
|
|
3124
|
+
* // event.setTo
|
|
3125
|
+
* // event.isTrusted
|
|
3126
|
+
*
|
|
3127
|
+
* // if you want to change the animation coordinates to move after the 'release' event.
|
|
3128
|
+
* event.setTo({x: 10}, 2000);
|
|
3129
|
+
* });
|
|
3130
|
+
* ```
|
|
3124
3131
|
*/
|
|
3125
3132
|
__proto.triggerRelease = function (param) {
|
|
3126
3133
|
var _a = this._getRoundPos(param.destPos, param.depaPos),
|
|
@@ -3133,43 +3140,43 @@ version: 4.11.3-beta.4
|
|
|
3133
3140
|
bounceRatio: this._getBounceRatio(roundPos)
|
|
3134
3141
|
})));
|
|
3135
3142
|
};
|
|
3136
|
-
/**
|
|
3137
|
-
* This event is fired when coordinate changes.
|
|
3138
|
-
* @ko 좌표가 변경됐을 때 발생하는 이벤트
|
|
3139
|
-
* @event Axes#change
|
|
3140
|
-
* @type {object}
|
|
3141
|
-
* @property {Object.<string, number>} pos The coordinate <ko>좌표</ko>
|
|
3142
|
-
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>좌표의 변화량</ko>
|
|
3143
|
-
* @property {Object.<string, number>} bounceRatio If the current coordinates are in the bounce area, the current bounce value divided by the maximum bounce value <ko>현재 좌표가 bounce 영역에 있는 경우 현재 bounce된 값을 최대 bounce 값으로 나눈 수치.</ko>
|
|
3144
|
-
* @property {Boolean} holding Indicates whether a user holds an element on the screen of the device.<ko>사용자가 기기의 화면을 누르고 있는지 여부</ko>
|
|
3145
|
-
* @property {Object} input The instance of inputType where the event occurred. If the value is changed by animation, it returns 'null'.<ko>이벤트가 발생한 inputType 인스턴스. 애니메이션에 의해 값이 변경될 경우에는 'null'을 반환한다.</ko>
|
|
3146
|
-
* @property {Object} inputEvent The event object received from inputType. If the value is changed by animation, it returns 'null'.<ko>inputType으로 부터 받은 이벤트 객체. 애니메이션에 의해 값이 변경될 경우에는 'null'을 반환한다.</ko>
|
|
3147
|
-
* @property {set} set Specifies the coordinates to move after the event. It works when the holding value is true <ko>이벤트 이후 이동할 좌표를 지정한다. holding 값이 true일 경우에 동작한다.</ko>
|
|
3148
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3149
|
-
*
|
|
3150
|
-
* @example
|
|
3151
|
-
* ```js
|
|
3152
|
-
* const axes = new eg.Axes({
|
|
3153
|
-
* "x": {
|
|
3154
|
-
* range: [0, 100]
|
|
3155
|
-
* },
|
|
3156
|
-
* "zoom": {
|
|
3157
|
-
* range: [50, 30]
|
|
3158
|
-
* }
|
|
3159
|
-
* }).on("change", function(event) {
|
|
3160
|
-
* // event.pos
|
|
3161
|
-
* // event.delta
|
|
3162
|
-
* // event.input
|
|
3163
|
-
* // event.inputEvent
|
|
3164
|
-
* // event.holding
|
|
3165
|
-
* // event.set
|
|
3166
|
-
* // event.isTrusted
|
|
3167
|
-
*
|
|
3168
|
-
* // if you want to change the coordinates to move after the 'change' event.
|
|
3169
|
-
* // it works when the holding value of the change event is true.
|
|
3170
|
-
* event.holding && event.set({x: 10});
|
|
3171
|
-
* });
|
|
3172
|
-
* ```
|
|
3143
|
+
/**
|
|
3144
|
+
* This event is fired when coordinate changes.
|
|
3145
|
+
* @ko 좌표가 변경됐을 때 발생하는 이벤트
|
|
3146
|
+
* @event Axes#change
|
|
3147
|
+
* @type {object}
|
|
3148
|
+
* @property {Object.<string, number>} pos The coordinate <ko>좌표</ko>
|
|
3149
|
+
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>좌표의 변화량</ko>
|
|
3150
|
+
* @property {Object.<string, number>} bounceRatio If the current coordinates are in the bounce area, the current bounce value divided by the maximum bounce value <ko>현재 좌표가 bounce 영역에 있는 경우 현재 bounce된 값을 최대 bounce 값으로 나눈 수치.</ko>
|
|
3151
|
+
* @property {Boolean} holding Indicates whether a user holds an element on the screen of the device.<ko>사용자가 기기의 화면을 누르고 있는지 여부</ko>
|
|
3152
|
+
* @property {Object} input The instance of inputType where the event occurred. If the value is changed by animation, it returns 'null'.<ko>이벤트가 발생한 inputType 인스턴스. 애니메이션에 의해 값이 변경될 경우에는 'null'을 반환한다.</ko>
|
|
3153
|
+
* @property {Object} inputEvent The event object received from inputType. If the value is changed by animation, it returns 'null'.<ko>inputType으로 부터 받은 이벤트 객체. 애니메이션에 의해 값이 변경될 경우에는 'null'을 반환한다.</ko>
|
|
3154
|
+
* @property {set} set Specifies the coordinates to move after the event. It works when the holding value is true <ko>이벤트 이후 이동할 좌표를 지정한다. holding 값이 true일 경우에 동작한다.</ko>
|
|
3155
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3156
|
+
*
|
|
3157
|
+
* @example
|
|
3158
|
+
* ```js
|
|
3159
|
+
* const axes = new eg.Axes({
|
|
3160
|
+
* "x": {
|
|
3161
|
+
* range: [0, 100]
|
|
3162
|
+
* },
|
|
3163
|
+
* "zoom": {
|
|
3164
|
+
* range: [50, 30]
|
|
3165
|
+
* }
|
|
3166
|
+
* }).on("change", function(event) {
|
|
3167
|
+
* // event.pos
|
|
3168
|
+
* // event.delta
|
|
3169
|
+
* // event.input
|
|
3170
|
+
* // event.inputEvent
|
|
3171
|
+
* // event.holding
|
|
3172
|
+
* // event.set
|
|
3173
|
+
* // event.isTrusted
|
|
3174
|
+
*
|
|
3175
|
+
* // if you want to change the coordinates to move after the 'change' event.
|
|
3176
|
+
* // it works when the holding value of the change event is true.
|
|
3177
|
+
* event.holding && event.set({x: 10});
|
|
3178
|
+
* });
|
|
3179
|
+
* ```
|
|
3173
3180
|
*/
|
|
3174
3181
|
__proto.triggerChange = function (pos, depaPos, option, holding) {
|
|
3175
3182
|
var _this = this;
|
|
@@ -3206,42 +3213,42 @@ version: 4.11.3-beta.4
|
|
|
3206
3213
|
}
|
|
3207
3214
|
return !event.isCanceled();
|
|
3208
3215
|
};
|
|
3209
|
-
/**
|
|
3210
|
-
* This event is fired when animation starts.
|
|
3211
|
-
* @ko 에니메이션이 시작할 때 발생한다.
|
|
3212
|
-
* @event Axes#animationStart
|
|
3213
|
-
* @type {object}
|
|
3214
|
-
* @property {Object.<string, number>} depaPos The coordinates when animation starts<ko>애니메이션이 시작 되었을 때의 좌표 </ko>
|
|
3215
|
-
* @property {Object.<string, number>} destPos The coordinates to move to. If you change this value, you can run the animation<ko>이동할 좌표. 이값을 변경하여 애니메이션을 동작시킬수 있다</ko>
|
|
3216
|
-
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>좌표의 변화량</ko>
|
|
3217
|
-
* @property {Number} duration Duration of the animation (unit: ms). If you change this value, you can control the animation duration time.<ko>애니메이션 진행 시간(단위: ms). 이값을 변경하여 애니메이션의 이동시간을 조절할 수 있다.</ko>
|
|
3218
|
-
* @property {Object} input The instance of inputType where the event occurred. If the value is changed by animation, it returns 'null'.<ko>이벤트가 발생한 inputType 인스턴스. 애니메이션에 의해 값이 변경될 경우에는 'null'을 반환한다.</ko>
|
|
3219
|
-
* @property {Object} inputEvent The event object received from inputType <ko>inputType으로 부터 받은 이벤트 객체</ko>
|
|
3220
|
-
* @property {setTo} setTo Specifies the animation coordinates to move after the event <ko>이벤트 이후 이동할 애니메이션 좌표를 지정한다</ko>
|
|
3221
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3222
|
-
*
|
|
3223
|
-
* @example
|
|
3224
|
-
* ```js
|
|
3225
|
-
* const axes = new eg.Axes({
|
|
3226
|
-
* "x": {
|
|
3227
|
-
* range: [0, 100]
|
|
3228
|
-
* },
|
|
3229
|
-
* "zoom": {
|
|
3230
|
-
* range: [50, 30]
|
|
3231
|
-
* }
|
|
3232
|
-
* }).on("release", function(event) {
|
|
3233
|
-
* // event.depaPos
|
|
3234
|
-
* // event.destPos
|
|
3235
|
-
* // event.delta
|
|
3236
|
-
* // event.input
|
|
3237
|
-
* // event.inputEvent
|
|
3238
|
-
* // event.setTo
|
|
3239
|
-
* // event.isTrusted
|
|
3240
|
-
*
|
|
3241
|
-
* // if you want to change the animation coordinates to move after the 'animationStart' event.
|
|
3242
|
-
* event.setTo({x: 10}, 2000);
|
|
3243
|
-
* });
|
|
3244
|
-
* ```
|
|
3216
|
+
/**
|
|
3217
|
+
* This event is fired when animation starts.
|
|
3218
|
+
* @ko 에니메이션이 시작할 때 발생한다.
|
|
3219
|
+
* @event Axes#animationStart
|
|
3220
|
+
* @type {object}
|
|
3221
|
+
* @property {Object.<string, number>} depaPos The coordinates when animation starts<ko>애니메이션이 시작 되었을 때의 좌표 </ko>
|
|
3222
|
+
* @property {Object.<string, number>} destPos The coordinates to move to. If you change this value, you can run the animation<ko>이동할 좌표. 이값을 변경하여 애니메이션을 동작시킬수 있다</ko>
|
|
3223
|
+
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>좌표의 변화량</ko>
|
|
3224
|
+
* @property {Number} duration Duration of the animation (unit: ms). If you change this value, you can control the animation duration time.<ko>애니메이션 진행 시간(단위: ms). 이값을 변경하여 애니메이션의 이동시간을 조절할 수 있다.</ko>
|
|
3225
|
+
* @property {Object} input The instance of inputType where the event occurred. If the value is changed by animation, it returns 'null'.<ko>이벤트가 발생한 inputType 인스턴스. 애니메이션에 의해 값이 변경될 경우에는 'null'을 반환한다.</ko>
|
|
3226
|
+
* @property {Object} inputEvent The event object received from inputType <ko>inputType으로 부터 받은 이벤트 객체</ko>
|
|
3227
|
+
* @property {setTo} setTo Specifies the animation coordinates to move after the event <ko>이벤트 이후 이동할 애니메이션 좌표를 지정한다</ko>
|
|
3228
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3229
|
+
*
|
|
3230
|
+
* @example
|
|
3231
|
+
* ```js
|
|
3232
|
+
* const axes = new eg.Axes({
|
|
3233
|
+
* "x": {
|
|
3234
|
+
* range: [0, 100]
|
|
3235
|
+
* },
|
|
3236
|
+
* "zoom": {
|
|
3237
|
+
* range: [50, 30]
|
|
3238
|
+
* }
|
|
3239
|
+
* }).on("release", function(event) {
|
|
3240
|
+
* // event.depaPos
|
|
3241
|
+
* // event.destPos
|
|
3242
|
+
* // event.delta
|
|
3243
|
+
* // event.input
|
|
3244
|
+
* // event.inputEvent
|
|
3245
|
+
* // event.setTo
|
|
3246
|
+
* // event.isTrusted
|
|
3247
|
+
*
|
|
3248
|
+
* // if you want to change the animation coordinates to move after the 'animationStart' event.
|
|
3249
|
+
* event.setTo({x: 10}, 2000);
|
|
3250
|
+
* });
|
|
3251
|
+
* ```
|
|
3245
3252
|
*/
|
|
3246
3253
|
__proto.triggerAnimationStart = function (param) {
|
|
3247
3254
|
var _a = this._getRoundPos(param.destPos, param.depaPos),
|
|
@@ -3254,26 +3261,26 @@ version: 4.11.3-beta.4
|
|
|
3254
3261
|
this._axes.trigger(event);
|
|
3255
3262
|
return !event.isCanceled();
|
|
3256
3263
|
};
|
|
3257
|
-
/**
|
|
3258
|
-
* This event is fired when animation ends.
|
|
3259
|
-
* @ko 에니메이션이 끝났을 때 발생한다.
|
|
3260
|
-
* @event Axes#animationEnd
|
|
3261
|
-
* @type {object}
|
|
3262
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3263
|
-
*
|
|
3264
|
-
* @example
|
|
3265
|
-
* ```js
|
|
3266
|
-
* const axes = new eg.Axes({
|
|
3267
|
-
* "x": {
|
|
3268
|
-
* range: [0, 100]
|
|
3269
|
-
* },
|
|
3270
|
-
* "zoom": {
|
|
3271
|
-
* range: [50, 30]
|
|
3272
|
-
* }
|
|
3273
|
-
* }).on("animationEnd", function(event) {
|
|
3274
|
-
* // event.isTrusted
|
|
3275
|
-
* });
|
|
3276
|
-
* ```
|
|
3264
|
+
/**
|
|
3265
|
+
* This event is fired when animation ends.
|
|
3266
|
+
* @ko 에니메이션이 끝났을 때 발생한다.
|
|
3267
|
+
* @event Axes#animationEnd
|
|
3268
|
+
* @type {object}
|
|
3269
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3270
|
+
*
|
|
3271
|
+
* @example
|
|
3272
|
+
* ```js
|
|
3273
|
+
* const axes = new eg.Axes({
|
|
3274
|
+
* "x": {
|
|
3275
|
+
* range: [0, 100]
|
|
3276
|
+
* },
|
|
3277
|
+
* "zoom": {
|
|
3278
|
+
* range: [50, 30]
|
|
3279
|
+
* }
|
|
3280
|
+
* }).on("animationEnd", function(event) {
|
|
3281
|
+
* // event.isTrusted
|
|
3282
|
+
* });
|
|
3283
|
+
* ```
|
|
3277
3284
|
*/
|
|
3278
3285
|
__proto.triggerAnimationEnd = function (isTrusted) {
|
|
3279
3286
|
if (isTrusted === void 0) {
|
|
@@ -3283,26 +3290,26 @@ version: 4.11.3-beta.4
|
|
|
3283
3290
|
isTrusted: isTrusted
|
|
3284
3291
|
}));
|
|
3285
3292
|
};
|
|
3286
|
-
/**
|
|
3287
|
-
* This event is fired when all actions have been completed.
|
|
3288
|
-
* @ko 에니메이션이 끝났을 때 발생한다.
|
|
3289
|
-
* @event Axes#finish
|
|
3290
|
-
* @type {object}
|
|
3291
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3292
|
-
*
|
|
3293
|
-
* @example
|
|
3294
|
-
* ```js
|
|
3295
|
-
* const axes = new eg.Axes({
|
|
3296
|
-
* "x": {
|
|
3297
|
-
* range: [0, 100]
|
|
3298
|
-
* },
|
|
3299
|
-
* "zoom": {
|
|
3300
|
-
* range: [50, 30]
|
|
3301
|
-
* }
|
|
3302
|
-
* }).on("finish", function(event) {
|
|
3303
|
-
* // event.isTrusted
|
|
3304
|
-
* });
|
|
3305
|
-
* ```
|
|
3293
|
+
/**
|
|
3294
|
+
* This event is fired when all actions have been completed.
|
|
3295
|
+
* @ko 에니메이션이 끝났을 때 발생한다.
|
|
3296
|
+
* @event Axes#finish
|
|
3297
|
+
* @type {object}
|
|
3298
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>사용자의 액션에 의해 이벤트가 발생하였으면 true, 스크립트나 API호출에 의해 발생하였을 경우에는 false를 반환한다.</ko>
|
|
3299
|
+
*
|
|
3300
|
+
* @example
|
|
3301
|
+
* ```js
|
|
3302
|
+
* const axes = new eg.Axes({
|
|
3303
|
+
* "x": {
|
|
3304
|
+
* range: [0, 100]
|
|
3305
|
+
* },
|
|
3306
|
+
* "zoom": {
|
|
3307
|
+
* range: [50, 30]
|
|
3308
|
+
* }
|
|
3309
|
+
* }).on("finish", function(event) {
|
|
3310
|
+
* // event.isTrusted
|
|
3311
|
+
* });
|
|
3312
|
+
* ```
|
|
3306
3313
|
*/
|
|
3307
3314
|
__proto.triggerFinish = function (isTrusted) {
|
|
3308
3315
|
if (isTrusted === void 0) {
|
|
@@ -3384,9 +3391,9 @@ version: 4.11.3-beta.4
|
|
|
3384
3391
|
return InterruptManager;
|
|
3385
3392
|
}();
|
|
3386
3393
|
|
|
3387
|
-
/*
|
|
3388
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
3389
|
-
* egjs projects are licensed under the MIT license
|
|
3394
|
+
/*
|
|
3395
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
3396
|
+
* egjs projects are licensed under the MIT license
|
|
3390
3397
|
*/
|
|
3391
3398
|
var getInsidePosition = function (destPos, range, circular, bounce) {
|
|
3392
3399
|
var toDestPos = destPos;
|
|
@@ -3515,9 +3522,9 @@ version: 4.11.3-beta.4
|
|
|
3515
3522
|
});
|
|
3516
3523
|
this._complementOptions();
|
|
3517
3524
|
};
|
|
3518
|
-
/**
|
|
3519
|
-
* set up 'css' expression
|
|
3520
|
-
* @private
|
|
3525
|
+
/**
|
|
3526
|
+
* set up 'css' expression
|
|
3527
|
+
* @private
|
|
3521
3528
|
*/
|
|
3522
3529
|
__proto._complementOptions = function () {
|
|
3523
3530
|
var _this = this;
|
|
@@ -4413,15 +4420,15 @@ version: 4.11.3-beta.4
|
|
|
4413
4420
|
complete();
|
|
4414
4421
|
}
|
|
4415
4422
|
};
|
|
4416
|
-
/**
|
|
4417
|
-
* Get estimated final value.
|
|
4418
|
-
*
|
|
4419
|
-
* If destPos is within the 'error range' of the original intended position, the initial intended position is returned.
|
|
4420
|
-
* - eg. original intended pos: 100, destPos: 100.0000000004 ==> return 100;
|
|
4421
|
-
* If dest Pos is outside the 'range of error' compared to the originally intended pos, it is returned rounded based on the originally intended pos.
|
|
4422
|
-
* - eg. original intended pos: 100.123 destPos: 50.12345 => return 50.123
|
|
4423
|
-
* @param originalIntendedPos
|
|
4424
|
-
* @param destPos
|
|
4423
|
+
/**
|
|
4424
|
+
* Get estimated final value.
|
|
4425
|
+
*
|
|
4426
|
+
* If destPos is within the 'error range' of the original intended position, the initial intended position is returned.
|
|
4427
|
+
* - eg. original intended pos: 100, destPos: 100.0000000004 ==> return 100;
|
|
4428
|
+
* If dest Pos is outside the 'range of error' compared to the originally intended pos, it is returned rounded based on the originally intended pos.
|
|
4429
|
+
* - eg. original intended pos: 100.123 destPos: 50.12345 => return 50.123
|
|
4430
|
+
* @param originalIntendedPos
|
|
4431
|
+
* @param destPos
|
|
4425
4432
|
*/
|
|
4426
4433
|
__proto._getFinalPos = function (destPos, originalIntendedPos) {
|
|
4427
4434
|
var _this = this;
|
|
@@ -4547,111 +4554,111 @@ version: 4.11.3-beta.4
|
|
|
4547
4554
|
return EasingManager;
|
|
4548
4555
|
}(AnimationManager);
|
|
4549
4556
|
|
|
4550
|
-
/**
|
|
4551
|
-
* @typedef {Object} AxisOption The Axis information. The key of the axis specifies the name to use as the logical virtual coordinate system.
|
|
4552
|
-
* @ko 축 정보. 축의 키는 논리적인 가상 좌표계로 사용할 이름을 지정한다.
|
|
4553
|
-
* @param {Number[]} [range] The range of coordinate <ko>좌표 범위</ko>
|
|
4554
|
-
* @param {Number} [range[0]=0] The coordinate of the minimum <ko>최소 좌표</ko>
|
|
4555
|
-
* @param {Number} [range[1]=0] The coordinate of the maximum <ko>최대 좌표</ko>
|
|
4556
|
-
* @param {Number} [startPos=range[0]] The coordinates to be moved when creating an instance <ko>인스턴스 생성시 이동할 좌표</ko>
|
|
4557
|
-
* @param {Number[]} [bounce] The size of bouncing area. The coordinates can exceed the coordinate area as much as the bouncing area based on user action. If the coordinates does not exceed the bouncing area when an element is dragged, the coordinates where bouncing effects are applied are retuned back into the coordinate area<ko>바운스 영역의 크기. 사용자의 동작에 따라 좌표가 좌표 영역을 넘어 바운스 영역의 크기만큼 더 이동할 수 있다. 사용자가 끌어다 놓는 동작을 했을 때 좌표가 바운스 영역에 있으면, 바운스 효과가 적용된 좌표가 다시 좌표 영역 안으로 들어온다</ko>
|
|
4558
|
-
* @param {Number} [bounce[0]=0] The size of coordinate of the minimum area <ko>최소 좌표 바운스 영역의 크기</ko>
|
|
4559
|
-
* @param {Number} [bounce[1]=0] The size of coordinate of the maximum area <ko>최대 좌표 바운스 영역의 크기</ko>
|
|
4560
|
-
* @param {Boolean[]} [circular] Indicates whether a circular element is available. If it is set to "true" and an element is dragged outside the coordinate area, the element will appear on the other side.<ko>순환 여부. 'true'로 설정한 방향의 좌표 영역 밖으로 엘리먼트가 이동하면 반대 방향에서 엘리먼트가 나타난다</ko>
|
|
4561
|
-
* @param {Boolean} [circular[0]=false] Indicates whether to circulate to the coordinate of the minimum <ko>최소 좌표 방향의 순환 여부</ko>
|
|
4562
|
-
* @param {Boolean} [circular[1]=false] Indicates whether to circulate to the coordinate of the maximum <ko>최대 좌표 방향의 순환 여부</ko>
|
|
4557
|
+
/**
|
|
4558
|
+
* @typedef {Object} AxisOption The Axis information. The key of the axis specifies the name to use as the logical virtual coordinate system.
|
|
4559
|
+
* @ko 축 정보. 축의 키는 논리적인 가상 좌표계로 사용할 이름을 지정한다.
|
|
4560
|
+
* @param {Number[]} [range] The range of coordinate <ko>좌표 범위</ko>
|
|
4561
|
+
* @param {Number} [range[0]=0] The coordinate of the minimum <ko>최소 좌표</ko>
|
|
4562
|
+
* @param {Number} [range[1]=0] The coordinate of the maximum <ko>최대 좌표</ko>
|
|
4563
|
+
* @param {Number} [startPos=range[0]] The coordinates to be moved when creating an instance <ko>인스턴스 생성시 이동할 좌표</ko>
|
|
4564
|
+
* @param {Number[]} [bounce] The size of bouncing area. The coordinates can exceed the coordinate area as much as the bouncing area based on user action. If the coordinates does not exceed the bouncing area when an element is dragged, the coordinates where bouncing effects are applied are retuned back into the coordinate area<ko>바운스 영역의 크기. 사용자의 동작에 따라 좌표가 좌표 영역을 넘어 바운스 영역의 크기만큼 더 이동할 수 있다. 사용자가 끌어다 놓는 동작을 했을 때 좌표가 바운스 영역에 있으면, 바운스 효과가 적용된 좌표가 다시 좌표 영역 안으로 들어온다</ko>
|
|
4565
|
+
* @param {Number} [bounce[0]=0] The size of coordinate of the minimum area <ko>최소 좌표 바운스 영역의 크기</ko>
|
|
4566
|
+
* @param {Number} [bounce[1]=0] The size of coordinate of the maximum area <ko>최대 좌표 바운스 영역의 크기</ko>
|
|
4567
|
+
* @param {Boolean[]} [circular] Indicates whether a circular element is available. If it is set to "true" and an element is dragged outside the coordinate area, the element will appear on the other side.<ko>순환 여부. 'true'로 설정한 방향의 좌표 영역 밖으로 엘리먼트가 이동하면 반대 방향에서 엘리먼트가 나타난다</ko>
|
|
4568
|
+
* @param {Boolean} [circular[0]=false] Indicates whether to circulate to the coordinate of the minimum <ko>최소 좌표 방향의 순환 여부</ko>
|
|
4569
|
+
* @param {Boolean} [circular[1]=false] Indicates whether to circulate to the coordinate of the maximum <ko>최대 좌표 방향의 순환 여부</ko>
|
|
4563
4570
|
**/
|
|
4564
|
-
/**
|
|
4565
|
-
* @typedef {Object} AxesOption The option object of the eg.Axes module
|
|
4566
|
-
* @ko eg.Axes 모듈의 옵션 객체
|
|
4567
|
-
* @param {Function} [easing=easing.easeOutCubic] The easing function to apply to an animation <ko>애니메이션에 적용할 easing 함수</ko>
|
|
4568
|
-
* @param {Number} [maximumDuration=Infinity] Maximum duration of the animation <ko>가속도에 의해 애니메이션이 동작할 때의 최대 좌표 이동 시간</ko>
|
|
4569
|
-
* @param {Number} [minimumDuration=0] Minimum duration of the animation <ko>가속도에 의해 애니메이션이 동작할 때의 최소 좌표 이동 시간</ko>
|
|
4570
|
-
* @param {Number} [deceleration=0.0006] Deceleration of the animation where acceleration is manually enabled by user. A higher value indicates shorter running time. <ko>사용자의 동작으로 가속도가 적용된 애니메이션의 감속도. 값이 높을수록 애니메이션 실행 시간이 짧아진다</ko>
|
|
4571
|
-
* @param {Boolean} [interruptable=true] Indicates whether an animation is interruptible.
|
|
4572
|
-
* - true: It can be paused or stopped by user action or the API.
|
|
4573
|
-
* - false: It cannot be paused or stopped by user action or the API while it is running.
|
|
4574
|
-
* <ko>진행 중인 애니메이션 중지 가능 여부.
|
|
4575
|
-
* - true: 사용자의 동작이나 API로 애니메이션을 중지할 수 있다.
|
|
4576
|
-
* - false: 애니메이션이 진행 중일 때는 사용자의 동작이나 API가 적용되지 않는다</ko>
|
|
4577
|
-
* @param {Number} [round=null] Rounding unit. For example, 0.1 rounds to 0.1 decimal point(6.1234 => 6.1), 5 rounds to 5 (93 => 95)
|
|
4578
|
-
* [Details](https://github.com/naver/egjs-axes/wiki/round-option)<ko>반올림 단위. 예를 들어 0.1 은 소숫점 0.1 까지 반올림(6.1234 => 6.1), 5 는 5 단위로 반올림(93 => 95).
|
|
4579
|
-
* [상세내용](https://github.com/naver/egjs-axes/wiki/round-option)</ko>
|
|
4580
|
-
* @param {Boolean} [nested=false] Whether the event propagates to other instances when the coordinates reach the end of the movable area <ko>좌표가 이동 가능한 영역의 끝까지 도달했을 때 다른 인스턴스들로의 이벤트 전파 여부</ko>
|
|
4571
|
+
/**
|
|
4572
|
+
* @typedef {Object} AxesOption The option object of the eg.Axes module
|
|
4573
|
+
* @ko eg.Axes 모듈의 옵션 객체
|
|
4574
|
+
* @param {Function} [easing=easing.easeOutCubic] The easing function to apply to an animation <ko>애니메이션에 적용할 easing 함수</ko>
|
|
4575
|
+
* @param {Number} [maximumDuration=Infinity] Maximum duration of the animation <ko>가속도에 의해 애니메이션이 동작할 때의 최대 좌표 이동 시간</ko>
|
|
4576
|
+
* @param {Number} [minimumDuration=0] Minimum duration of the animation <ko>가속도에 의해 애니메이션이 동작할 때의 최소 좌표 이동 시간</ko>
|
|
4577
|
+
* @param {Number} [deceleration=0.0006] Deceleration of the animation where acceleration is manually enabled by user. A higher value indicates shorter running time. <ko>사용자의 동작으로 가속도가 적용된 애니메이션의 감속도. 값이 높을수록 애니메이션 실행 시간이 짧아진다</ko>
|
|
4578
|
+
* @param {Boolean} [interruptable=true] Indicates whether an animation is interruptible.
|
|
4579
|
+
* - true: It can be paused or stopped by user action or the API.
|
|
4580
|
+
* - false: It cannot be paused or stopped by user action or the API while it is running.
|
|
4581
|
+
* <ko>진행 중인 애니메이션 중지 가능 여부.
|
|
4582
|
+
* - true: 사용자의 동작이나 API로 애니메이션을 중지할 수 있다.
|
|
4583
|
+
* - false: 애니메이션이 진행 중일 때는 사용자의 동작이나 API가 적용되지 않는다</ko>
|
|
4584
|
+
* @param {Number} [round=null] Rounding unit. For example, 0.1 rounds to 0.1 decimal point(6.1234 => 6.1), 5 rounds to 5 (93 => 95)
|
|
4585
|
+
* [Details](https://github.com/naver/egjs-axes/wiki/round-option)<ko>반올림 단위. 예를 들어 0.1 은 소숫점 0.1 까지 반올림(6.1234 => 6.1), 5 는 5 단위로 반올림(93 => 95).
|
|
4586
|
+
* [상세내용](https://github.com/naver/egjs-axes/wiki/round-option)</ko>
|
|
4587
|
+
* @param {Boolean} [nested=false] Whether the event propagates to other instances when the coordinates reach the end of the movable area <ko>좌표가 이동 가능한 영역의 끝까지 도달했을 때 다른 인스턴스들로의 이벤트 전파 여부</ko>
|
|
4581
4588
|
**/
|
|
4582
|
-
/**
|
|
4583
|
-
* A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.
|
|
4584
|
-
* @ko 터치 입력 장치나 마우스와 같은 다양한 입력 장치를 통해 전달 받은 사용자의 동작을 논리적인 가상 좌표로 변경하는 모듈이다. 사용자 동작에 반응하는 UI를 손쉽게 만들수 있다.
|
|
4585
|
-
* @extends eg.Component
|
|
4586
|
-
*
|
|
4587
|
-
* @param {Object.<string, AxisOption>} axis Axis information managed by eg.Axes. The key of the axis specifies the name to use as the logical virtual coordinate system. <ko>eg.Axes가 관리하는 축 정보. 축의 키는 논리적인 가상 좌표계로 사용할 이름을 지정한다.</ko>
|
|
4588
|
-
* @param {AxesOption} [options={}] The option object of the eg.Axes module<ko>eg.Axes 모듈의 옵션 객체</ko>
|
|
4589
|
-
* @param {Object.<string, number>} [startPos={}] The coordinates to be moved when creating an instance. It is applied with higher priority than startPos of axisOption.<ko>인스턴스 생성시 이동할 좌표, axisOption의 startPos보다 높은 우선순위로 적용된다.</ko>
|
|
4590
|
-
*
|
|
4591
|
-
* @support {"ie": "10+", "ch" : "latest", "ff" : "latest", "sf" : "latest", "edge" : "latest", "ios" : "7+", "an" : "2.3+ (except 3.x)"}
|
|
4592
|
-
* @example
|
|
4593
|
-
* ```js
|
|
4594
|
-
* // 1. Initialize eg.Axes
|
|
4595
|
-
* const axes = new eg.Axes({
|
|
4596
|
-
* something1: {
|
|
4597
|
-
* range: [0, 150],
|
|
4598
|
-
* bounce: 50
|
|
4599
|
-
* },
|
|
4600
|
-
* something2: {
|
|
4601
|
-
* range: [0, 200],
|
|
4602
|
-
* bounce: 100
|
|
4603
|
-
* },
|
|
4604
|
-
* somethingN: {
|
|
4605
|
-
* range: [1, 10],
|
|
4606
|
-
* }
|
|
4607
|
-
* }, {
|
|
4608
|
-
* deceleration : 0.0024
|
|
4609
|
-
* });
|
|
4610
|
-
*
|
|
4611
|
-
* // 2. attach event handler
|
|
4612
|
-
* axes.on({
|
|
4613
|
-
* "hold" : function(evt) {
|
|
4614
|
-
* },
|
|
4615
|
-
* "release" : function(evt) {
|
|
4616
|
-
* },
|
|
4617
|
-
* "animationStart" : function(evt) {
|
|
4618
|
-
* },
|
|
4619
|
-
* "animationEnd" : function(evt) {
|
|
4620
|
-
* },
|
|
4621
|
-
* "change" : function(evt) {
|
|
4622
|
-
* }
|
|
4623
|
-
* });
|
|
4624
|
-
*
|
|
4625
|
-
* // 3. Initialize inputTypes
|
|
4626
|
-
* const panInputArea = new eg.Axes.PanInput("#area", {
|
|
4627
|
-
* scale: [0.5, 1]
|
|
4628
|
-
* });
|
|
4629
|
-
* const panInputHmove = new eg.Axes.PanInput("#hmove");
|
|
4630
|
-
* const panInputVmove = new eg.Axes.PanInput("#vmove");
|
|
4631
|
-
* const pinchInputArea = new eg.Axes.PinchInput("#area", {
|
|
4632
|
-
* scale: 1.5
|
|
4633
|
-
* });
|
|
4634
|
-
*
|
|
4635
|
-
* // 4. Connect eg.Axes and InputTypes
|
|
4636
|
-
* // [PanInput] When the mouse or touchscreen is down and moved.
|
|
4637
|
-
* // Connect the 'something2' axis to the mouse or touchscreen x position and
|
|
4638
|
-
* // connect the 'somethingN' axis to the mouse or touchscreen y position.
|
|
4639
|
-
* axes.connect(["something2", "somethingN"], panInputArea); // or axes.connect("something2 somethingN", panInputArea);
|
|
4640
|
-
*
|
|
4641
|
-
* // Connect only one 'something1' axis to the mouse or touchscreen x position.
|
|
4642
|
-
* axes.connect(["something1"], panInputHmove); // or axes.connect("something1", panInputHmove);
|
|
4643
|
-
*
|
|
4644
|
-
* // Connect only one 'something2' axis to the mouse or touchscreen y position.
|
|
4645
|
-
* axes.connect(["", "something2"], panInputVmove); // or axes.connect(" something2", panInputVmove);
|
|
4646
|
-
*
|
|
4647
|
-
* // [PinchInput] Connect 'something2' axis when two pointers are moving toward (zoom-in) or away from each other (zoom-out).
|
|
4648
|
-
* axes.connect("something2", pinchInputArea);
|
|
4649
|
-
* ```
|
|
4589
|
+
/**
|
|
4590
|
+
* A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.
|
|
4591
|
+
* @ko 터치 입력 장치나 마우스와 같은 다양한 입력 장치를 통해 전달 받은 사용자의 동작을 논리적인 가상 좌표로 변경하는 모듈이다. 사용자 동작에 반응하는 UI를 손쉽게 만들수 있다.
|
|
4592
|
+
* @extends eg.Component
|
|
4593
|
+
*
|
|
4594
|
+
* @param {Object.<string, AxisOption>} axis Axis information managed by eg.Axes. The key of the axis specifies the name to use as the logical virtual coordinate system. <ko>eg.Axes가 관리하는 축 정보. 축의 키는 논리적인 가상 좌표계로 사용할 이름을 지정한다.</ko>
|
|
4595
|
+
* @param {AxesOption} [options={}] The option object of the eg.Axes module<ko>eg.Axes 모듈의 옵션 객체</ko>
|
|
4596
|
+
* @param {Object.<string, number>} [startPos={}] The coordinates to be moved when creating an instance. It is applied with higher priority than startPos of axisOption.<ko>인스턴스 생성시 이동할 좌표, axisOption의 startPos보다 높은 우선순위로 적용된다.</ko>
|
|
4597
|
+
*
|
|
4598
|
+
* @support {"ie": "10+", "ch" : "latest", "ff" : "latest", "sf" : "latest", "edge" : "latest", "ios" : "7+", "an" : "2.3+ (except 3.x)"}
|
|
4599
|
+
* @example
|
|
4600
|
+
* ```js
|
|
4601
|
+
* // 1. Initialize eg.Axes
|
|
4602
|
+
* const axes = new eg.Axes({
|
|
4603
|
+
* something1: {
|
|
4604
|
+
* range: [0, 150],
|
|
4605
|
+
* bounce: 50
|
|
4606
|
+
* },
|
|
4607
|
+
* something2: {
|
|
4608
|
+
* range: [0, 200],
|
|
4609
|
+
* bounce: 100
|
|
4610
|
+
* },
|
|
4611
|
+
* somethingN: {
|
|
4612
|
+
* range: [1, 10],
|
|
4613
|
+
* }
|
|
4614
|
+
* }, {
|
|
4615
|
+
* deceleration : 0.0024
|
|
4616
|
+
* });
|
|
4617
|
+
*
|
|
4618
|
+
* // 2. attach event handler
|
|
4619
|
+
* axes.on({
|
|
4620
|
+
* "hold" : function(evt) {
|
|
4621
|
+
* },
|
|
4622
|
+
* "release" : function(evt) {
|
|
4623
|
+
* },
|
|
4624
|
+
* "animationStart" : function(evt) {
|
|
4625
|
+
* },
|
|
4626
|
+
* "animationEnd" : function(evt) {
|
|
4627
|
+
* },
|
|
4628
|
+
* "change" : function(evt) {
|
|
4629
|
+
* }
|
|
4630
|
+
* });
|
|
4631
|
+
*
|
|
4632
|
+
* // 3. Initialize inputTypes
|
|
4633
|
+
* const panInputArea = new eg.Axes.PanInput("#area", {
|
|
4634
|
+
* scale: [0.5, 1]
|
|
4635
|
+
* });
|
|
4636
|
+
* const panInputHmove = new eg.Axes.PanInput("#hmove");
|
|
4637
|
+
* const panInputVmove = new eg.Axes.PanInput("#vmove");
|
|
4638
|
+
* const pinchInputArea = new eg.Axes.PinchInput("#area", {
|
|
4639
|
+
* scale: 1.5
|
|
4640
|
+
* });
|
|
4641
|
+
*
|
|
4642
|
+
* // 4. Connect eg.Axes and InputTypes
|
|
4643
|
+
* // [PanInput] When the mouse or touchscreen is down and moved.
|
|
4644
|
+
* // Connect the 'something2' axis to the mouse or touchscreen x position and
|
|
4645
|
+
* // connect the 'somethingN' axis to the mouse or touchscreen y position.
|
|
4646
|
+
* axes.connect(["something2", "somethingN"], panInputArea); // or axes.connect("something2 somethingN", panInputArea);
|
|
4647
|
+
*
|
|
4648
|
+
* // Connect only one 'something1' axis to the mouse or touchscreen x position.
|
|
4649
|
+
* axes.connect(["something1"], panInputHmove); // or axes.connect("something1", panInputHmove);
|
|
4650
|
+
*
|
|
4651
|
+
* // Connect only one 'something2' axis to the mouse or touchscreen y position.
|
|
4652
|
+
* axes.connect(["", "something2"], panInputVmove); // or axes.connect(" something2", panInputVmove);
|
|
4653
|
+
*
|
|
4654
|
+
* // [PinchInput] Connect 'something2' axis when two pointers are moving toward (zoom-in) or away from each other (zoom-out).
|
|
4655
|
+
* axes.connect("something2", pinchInputArea);
|
|
4656
|
+
* ```
|
|
4650
4657
|
*/
|
|
4651
4658
|
var Axes = /*#__PURE__*/function (_super) {
|
|
4652
4659
|
__extends$1(Axes, _super);
|
|
4653
|
-
/**
|
|
4654
|
-
*
|
|
4660
|
+
/**
|
|
4661
|
+
*
|
|
4655
4662
|
*/
|
|
4656
4663
|
function Axes(axis, options, startPos) {
|
|
4657
4664
|
if (axis === void 0) {
|
|
@@ -4691,23 +4698,23 @@ version: 4.11.3-beta.4
|
|
|
4691
4698
|
}
|
|
4692
4699
|
var __proto = Axes.prototype;
|
|
4693
4700
|
Object.defineProperty(__proto, "holding", {
|
|
4694
|
-
/**
|
|
4695
|
-
* @name Axes#holding
|
|
4696
|
-
* @desc Returns true if at least one input is in progress.
|
|
4697
|
-
* @ko 입력이 하나 이상 진행 중인지 여부를 반환한다.
|
|
4698
|
-
*
|
|
4699
|
-
* @readonly
|
|
4700
|
-
* @type {boolean}
|
|
4701
|
-
* @example
|
|
4702
|
-
* ```js
|
|
4703
|
-
* const axes = new eg.Axes({
|
|
4704
|
-
* x: {
|
|
4705
|
-
* range: [0, 100],
|
|
4706
|
-
* },
|
|
4707
|
-
* });
|
|
4708
|
-
*
|
|
4709
|
-
* axes.holding
|
|
4710
|
-
* ```
|
|
4701
|
+
/**
|
|
4702
|
+
* @name Axes#holding
|
|
4703
|
+
* @desc Returns true if at least one input is in progress.
|
|
4704
|
+
* @ko 입력이 하나 이상 진행 중인지 여부를 반환한다.
|
|
4705
|
+
*
|
|
4706
|
+
* @readonly
|
|
4707
|
+
* @type {boolean}
|
|
4708
|
+
* @example
|
|
4709
|
+
* ```js
|
|
4710
|
+
* const axes = new eg.Axes({
|
|
4711
|
+
* x: {
|
|
4712
|
+
* range: [0, 100],
|
|
4713
|
+
* },
|
|
4714
|
+
* });
|
|
4715
|
+
*
|
|
4716
|
+
* axes.holding
|
|
4717
|
+
* ```
|
|
4711
4718
|
*/
|
|
4712
4719
|
get: function () {
|
|
4713
4720
|
return this.eventManager.holdingCount > 0;
|
|
@@ -4715,30 +4722,30 @@ version: 4.11.3-beta.4
|
|
|
4715
4722
|
enumerable: false,
|
|
4716
4723
|
configurable: true
|
|
4717
4724
|
});
|
|
4718
|
-
/**
|
|
4719
|
-
* Connect the axis of eg.Axes to the inputType.
|
|
4720
|
-
* @ko eg.Axes의 축과 inputType을 연결한다
|
|
4721
|
-
* @param {(String[]|String)} axes The name of the axis to associate with inputType <ko>inputType과 연결할 축의 이름</ko>
|
|
4722
|
-
* @param {Object} inputType The inputType instance to associate with the axis of eg.Axes <ko>eg.Axes의 축과 연결할 inputType 인스턴스</ko>
|
|
4723
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4724
|
-
* @example
|
|
4725
|
-
* ```js
|
|
4726
|
-
* const axes = new eg.Axes({
|
|
4727
|
-
* "x": {
|
|
4728
|
-
* range: [0, 100]
|
|
4729
|
-
* },
|
|
4730
|
-
* "xOther": {
|
|
4731
|
-
* range: [-100, 100]
|
|
4732
|
-
* }
|
|
4733
|
-
* });
|
|
4734
|
-
*
|
|
4735
|
-
* axes.connect("x", new eg.Axes.PanInput("#area1"))
|
|
4736
|
-
* .connect("x xOther", new eg.Axes.PanInput("#area2"))
|
|
4737
|
-
* .connect(" xOther", new eg.Axes.PanInput("#area3"))
|
|
4738
|
-
* .connect(["x"], new eg.Axes.PanInput("#area4"))
|
|
4739
|
-
* .connect(["xOther", "x"], new eg.Axes.PanInput("#area5"))
|
|
4740
|
-
* .connect(["", "xOther"], new eg.Axes.PanInput("#area6"));
|
|
4741
|
-
* ```
|
|
4725
|
+
/**
|
|
4726
|
+
* Connect the axis of eg.Axes to the inputType.
|
|
4727
|
+
* @ko eg.Axes의 축과 inputType을 연결한다
|
|
4728
|
+
* @param {(String[]|String)} axes The name of the axis to associate with inputType <ko>inputType과 연결할 축의 이름</ko>
|
|
4729
|
+
* @param {Object} inputType The inputType instance to associate with the axis of eg.Axes <ko>eg.Axes의 축과 연결할 inputType 인스턴스</ko>
|
|
4730
|
+
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4731
|
+
* @example
|
|
4732
|
+
* ```js
|
|
4733
|
+
* const axes = new eg.Axes({
|
|
4734
|
+
* "x": {
|
|
4735
|
+
* range: [0, 100]
|
|
4736
|
+
* },
|
|
4737
|
+
* "xOther": {
|
|
4738
|
+
* range: [-100, 100]
|
|
4739
|
+
* }
|
|
4740
|
+
* });
|
|
4741
|
+
*
|
|
4742
|
+
* axes.connect("x", new eg.Axes.PanInput("#area1"))
|
|
4743
|
+
* .connect("x xOther", new eg.Axes.PanInput("#area2"))
|
|
4744
|
+
* .connect(" xOther", new eg.Axes.PanInput("#area3"))
|
|
4745
|
+
* .connect(["x"], new eg.Axes.PanInput("#area4"))
|
|
4746
|
+
* .connect(["xOther", "x"], new eg.Axes.PanInput("#area5"))
|
|
4747
|
+
* .connect(["", "xOther"], new eg.Axes.PanInput("#area6"));
|
|
4748
|
+
* ```
|
|
4742
4749
|
*/
|
|
4743
4750
|
__proto.connect = function (axes, inputType) {
|
|
4744
4751
|
var mapped;
|
|
@@ -4756,33 +4763,33 @@ version: 4.11.3-beta.4
|
|
|
4756
4763
|
this._inputs.push(inputType);
|
|
4757
4764
|
return this;
|
|
4758
4765
|
};
|
|
4759
|
-
/**
|
|
4760
|
-
* Disconnect the axis of eg.Axes from the inputType.
|
|
4761
|
-
* @ko eg.Axes의 축과 inputType의 연결을 끊는다.
|
|
4762
|
-
* @param {Object} [inputType] An inputType instance associated with the axis of eg.Axes <ko>eg.Axes의 축과 연결한 inputType 인스턴스</ko>
|
|
4763
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4764
|
-
* @example
|
|
4765
|
-
* ```js
|
|
4766
|
-
* const axes = new eg.Axes({
|
|
4767
|
-
* "x": {
|
|
4768
|
-
* range: [0, 100]
|
|
4769
|
-
* },
|
|
4770
|
-
* "xOther": {
|
|
4771
|
-
* range: [-100, 100]
|
|
4772
|
-
* }
|
|
4773
|
-
* });
|
|
4774
|
-
*
|
|
4775
|
-
* const input1 = new eg.Axes.PanInput("#area1");
|
|
4776
|
-
* const input2 = new eg.Axes.PanInput("#area2");
|
|
4777
|
-
* const input3 = new eg.Axes.PanInput("#area3");
|
|
4778
|
-
*
|
|
4779
|
-
* axes.connect("x", input1);
|
|
4780
|
-
* .connect("x xOther", input2)
|
|
4781
|
-
* .connect(["xOther", "x"], input3);
|
|
4782
|
-
*
|
|
4783
|
-
* axes.disconnect(input1); // disconnects input1
|
|
4784
|
-
* axes.disconnect(); // disconnects all of them
|
|
4785
|
-
* ```
|
|
4766
|
+
/**
|
|
4767
|
+
* Disconnect the axis of eg.Axes from the inputType.
|
|
4768
|
+
* @ko eg.Axes의 축과 inputType의 연결을 끊는다.
|
|
4769
|
+
* @param {Object} [inputType] An inputType instance associated with the axis of eg.Axes <ko>eg.Axes의 축과 연결한 inputType 인스턴스</ko>
|
|
4770
|
+
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4771
|
+
* @example
|
|
4772
|
+
* ```js
|
|
4773
|
+
* const axes = new eg.Axes({
|
|
4774
|
+
* "x": {
|
|
4775
|
+
* range: [0, 100]
|
|
4776
|
+
* },
|
|
4777
|
+
* "xOther": {
|
|
4778
|
+
* range: [-100, 100]
|
|
4779
|
+
* }
|
|
4780
|
+
* });
|
|
4781
|
+
*
|
|
4782
|
+
* const input1 = new eg.Axes.PanInput("#area1");
|
|
4783
|
+
* const input2 = new eg.Axes.PanInput("#area2");
|
|
4784
|
+
* const input3 = new eg.Axes.PanInput("#area3");
|
|
4785
|
+
*
|
|
4786
|
+
* axes.connect("x", input1);
|
|
4787
|
+
* .connect("x xOther", input2)
|
|
4788
|
+
* .connect(["xOther", "x"], input3);
|
|
4789
|
+
*
|
|
4790
|
+
* axes.disconnect(input1); // disconnects input1
|
|
4791
|
+
* axes.disconnect(); // disconnects all of them
|
|
4792
|
+
* ```
|
|
4786
4793
|
*/
|
|
4787
4794
|
__proto.disconnect = function (inputType) {
|
|
4788
4795
|
if (inputType) {
|
|
@@ -4799,60 +4806,60 @@ version: 4.11.3-beta.4
|
|
|
4799
4806
|
}
|
|
4800
4807
|
return this;
|
|
4801
4808
|
};
|
|
4802
|
-
/**
|
|
4803
|
-
* Returns the current position of the coordinates.
|
|
4804
|
-
* @ko 좌표의 현재 위치를 반환한다
|
|
4805
|
-
* @param {Object} [axes] The names of the axis <ko>축 이름들</ko>
|
|
4806
|
-
* @return {Object.<string, number>} Axis coordinate information <ko>축 좌표 정보</ko>
|
|
4807
|
-
* @example
|
|
4808
|
-
* ```js
|
|
4809
|
-
* const axes = new eg.Axes({
|
|
4810
|
-
* "x": {
|
|
4811
|
-
* range: [0, 100]
|
|
4812
|
-
* },
|
|
4813
|
-
* "xOther": {
|
|
4814
|
-
* range: [-100, 100]
|
|
4815
|
-
* },
|
|
4816
|
-
* "zoom": {
|
|
4817
|
-
* range: [50, 30]
|
|
4818
|
-
* }
|
|
4819
|
-
* });
|
|
4820
|
-
*
|
|
4821
|
-
* axes.get(); // {"x": 0, "xOther": -100, "zoom": 50}
|
|
4822
|
-
* axes.get(["x", "zoom"]); // {"x": 0, "zoom": 50}
|
|
4823
|
-
* ```
|
|
4809
|
+
/**
|
|
4810
|
+
* Returns the current position of the coordinates.
|
|
4811
|
+
* @ko 좌표의 현재 위치를 반환한다
|
|
4812
|
+
* @param {Object} [axes] The names of the axis <ko>축 이름들</ko>
|
|
4813
|
+
* @return {Object.<string, number>} Axis coordinate information <ko>축 좌표 정보</ko>
|
|
4814
|
+
* @example
|
|
4815
|
+
* ```js
|
|
4816
|
+
* const axes = new eg.Axes({
|
|
4817
|
+
* "x": {
|
|
4818
|
+
* range: [0, 100]
|
|
4819
|
+
* },
|
|
4820
|
+
* "xOther": {
|
|
4821
|
+
* range: [-100, 100]
|
|
4822
|
+
* },
|
|
4823
|
+
* "zoom": {
|
|
4824
|
+
* range: [50, 30]
|
|
4825
|
+
* }
|
|
4826
|
+
* });
|
|
4827
|
+
*
|
|
4828
|
+
* axes.get(); // {"x": 0, "xOther": -100, "zoom": 50}
|
|
4829
|
+
* axes.get(["x", "zoom"]); // {"x": 0, "zoom": 50}
|
|
4830
|
+
* ```
|
|
4824
4831
|
*/
|
|
4825
4832
|
__proto.get = function (axes) {
|
|
4826
4833
|
return this.axisManager.get(axes);
|
|
4827
4834
|
};
|
|
4828
|
-
/**
|
|
4829
|
-
* Moves an axis to specific coordinates.
|
|
4830
|
-
* @ko 좌표를 이동한다.
|
|
4831
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
4832
|
-
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>애니메이션 진행 시간(단위: ms)</ko>
|
|
4833
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4834
|
-
* @example
|
|
4835
|
-
* ```js
|
|
4836
|
-
* const axes = new eg.Axes({
|
|
4837
|
-
* "x": {
|
|
4838
|
-
* range: [0, 100]
|
|
4839
|
-
* },
|
|
4840
|
-
* "xOther": {
|
|
4841
|
-
* range: [-100, 100]
|
|
4842
|
-
* },
|
|
4843
|
-
* "zoom": {
|
|
4844
|
-
* range: [50, 30]
|
|
4845
|
-
* }
|
|
4846
|
-
* });
|
|
4847
|
-
*
|
|
4848
|
-
* axes.setTo({"x": 30, "zoom": 60});
|
|
4849
|
-
* axes.get(); // {"x": 30, "xOther": -100, "zoom": 60}
|
|
4850
|
-
*
|
|
4851
|
-
* axes.setTo({"x": 100, "xOther": 60}, 1000); // animatation
|
|
4852
|
-
*
|
|
4853
|
-
* // after 1000 ms
|
|
4854
|
-
* axes.get(); // {"x": 100, "xOther": 60, "zoom": 60}
|
|
4855
|
-
* ```
|
|
4835
|
+
/**
|
|
4836
|
+
* Moves an axis to specific coordinates.
|
|
4837
|
+
* @ko 좌표를 이동한다.
|
|
4838
|
+
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
4839
|
+
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>애니메이션 진행 시간(단위: ms)</ko>
|
|
4840
|
+
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4841
|
+
* @example
|
|
4842
|
+
* ```js
|
|
4843
|
+
* const axes = new eg.Axes({
|
|
4844
|
+
* "x": {
|
|
4845
|
+
* range: [0, 100]
|
|
4846
|
+
* },
|
|
4847
|
+
* "xOther": {
|
|
4848
|
+
* range: [-100, 100]
|
|
4849
|
+
* },
|
|
4850
|
+
* "zoom": {
|
|
4851
|
+
* range: [50, 30]
|
|
4852
|
+
* }
|
|
4853
|
+
* });
|
|
4854
|
+
*
|
|
4855
|
+
* axes.setTo({"x": 30, "zoom": 60});
|
|
4856
|
+
* axes.get(); // {"x": 30, "xOther": -100, "zoom": 60}
|
|
4857
|
+
*
|
|
4858
|
+
* axes.setTo({"x": 100, "xOther": 60}, 1000); // animatation
|
|
4859
|
+
*
|
|
4860
|
+
* // after 1000 ms
|
|
4861
|
+
* axes.get(); // {"x": 100, "xOther": 60, "zoom": 60}
|
|
4862
|
+
* ```
|
|
4856
4863
|
*/
|
|
4857
4864
|
__proto.setTo = function (pos, duration) {
|
|
4858
4865
|
if (duration === void 0) {
|
|
@@ -4861,34 +4868,34 @@ version: 4.11.3-beta.4
|
|
|
4861
4868
|
this.animationManager.setTo(pos, duration);
|
|
4862
4869
|
return this;
|
|
4863
4870
|
};
|
|
4864
|
-
/**
|
|
4865
|
-
* Moves an axis from the current coordinates to specific coordinates.
|
|
4866
|
-
* @ko 현재 좌표를 기준으로 좌표를 이동한다.
|
|
4867
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
4868
|
-
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>애니메이션 진행 시간(단위: ms)</ko>
|
|
4869
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4870
|
-
* @example
|
|
4871
|
-
* ```js
|
|
4872
|
-
* const axes = new eg.Axes({
|
|
4873
|
-
* "x": {
|
|
4874
|
-
* range: [0, 100]
|
|
4875
|
-
* },
|
|
4876
|
-
* "xOther": {
|
|
4877
|
-
* range: [-100, 100]
|
|
4878
|
-
* },
|
|
4879
|
-
* "zoom": {
|
|
4880
|
-
* range: [50, 30]
|
|
4881
|
-
* }
|
|
4882
|
-
* });
|
|
4883
|
-
*
|
|
4884
|
-
* axes.setBy({"x": 30, "zoom": 10});
|
|
4885
|
-
* axes.get(); // {"x": 30, "xOther": -100, "zoom": 60}
|
|
4886
|
-
*
|
|
4887
|
-
* axes.setBy({"x": 70, "xOther": 60}, 1000); // animatation
|
|
4888
|
-
*
|
|
4889
|
-
* // after 1000 ms
|
|
4890
|
-
* axes.get(); // {"x": 100, "xOther": -40, "zoom": 60}
|
|
4891
|
-
* ```
|
|
4871
|
+
/**
|
|
4872
|
+
* Moves an axis from the current coordinates to specific coordinates.
|
|
4873
|
+
* @ko 현재 좌표를 기준으로 좌표를 이동한다.
|
|
4874
|
+
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
4875
|
+
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>애니메이션 진행 시간(단위: ms)</ko>
|
|
4876
|
+
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4877
|
+
* @example
|
|
4878
|
+
* ```js
|
|
4879
|
+
* const axes = new eg.Axes({
|
|
4880
|
+
* "x": {
|
|
4881
|
+
* range: [0, 100]
|
|
4882
|
+
* },
|
|
4883
|
+
* "xOther": {
|
|
4884
|
+
* range: [-100, 100]
|
|
4885
|
+
* },
|
|
4886
|
+
* "zoom": {
|
|
4887
|
+
* range: [50, 30]
|
|
4888
|
+
* }
|
|
4889
|
+
* });
|
|
4890
|
+
*
|
|
4891
|
+
* axes.setBy({"x": 30, "zoom": 10});
|
|
4892
|
+
* axes.get(); // {"x": 30, "xOther": -100, "zoom": 60}
|
|
4893
|
+
*
|
|
4894
|
+
* axes.setBy({"x": 70, "xOther": 60}, 1000); // animatation
|
|
4895
|
+
*
|
|
4896
|
+
* // after 1000 ms
|
|
4897
|
+
* axes.get(); // {"x": 100, "xOther": -40, "zoom": 60}
|
|
4898
|
+
* ```
|
|
4892
4899
|
*/
|
|
4893
4900
|
__proto.setBy = function (pos, duration) {
|
|
4894
4901
|
if (duration === void 0) {
|
|
@@ -4897,230 +4904,230 @@ version: 4.11.3-beta.4
|
|
|
4897
4904
|
this.animationManager.setBy(pos, duration);
|
|
4898
4905
|
return this;
|
|
4899
4906
|
};
|
|
4900
|
-
/**
|
|
4901
|
-
* Change the options of Axes instance.
|
|
4902
|
-
* @ko 인스턴스의 옵션을 변경한다.
|
|
4903
|
-
* @param {AxesOption} options Axes options to change <ko>변경할 옵션 목록</ko>
|
|
4904
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4905
|
-
* @example
|
|
4906
|
-
* ```js
|
|
4907
|
-
* const axes = new eg.Axes({
|
|
4908
|
-
* "x": {
|
|
4909
|
-
* range: [0, 100]
|
|
4910
|
-
* },
|
|
4911
|
-
* }, {
|
|
4912
|
-
* round: 10,
|
|
4913
|
-
* });
|
|
4914
|
-
*
|
|
4915
|
-
* axes.setTo({"x": 48});
|
|
4916
|
-
* axes.get(); // {"x": 50}
|
|
4917
|
-
*
|
|
4918
|
-
* axes.setOptions({
|
|
4919
|
-
* round: 1,
|
|
4920
|
-
* });
|
|
4921
|
-
*
|
|
4922
|
-
* axes.setTo({"x": 48});
|
|
4923
|
-
* axes.get(); // {"x": 48}
|
|
4924
|
-
* ```
|
|
4907
|
+
/**
|
|
4908
|
+
* Change the options of Axes instance.
|
|
4909
|
+
* @ko 인스턴스의 옵션을 변경한다.
|
|
4910
|
+
* @param {AxesOption} options Axes options to change <ko>변경할 옵션 목록</ko>
|
|
4911
|
+
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4912
|
+
* @example
|
|
4913
|
+
* ```js
|
|
4914
|
+
* const axes = new eg.Axes({
|
|
4915
|
+
* "x": {
|
|
4916
|
+
* range: [0, 100]
|
|
4917
|
+
* },
|
|
4918
|
+
* }, {
|
|
4919
|
+
* round: 10,
|
|
4920
|
+
* });
|
|
4921
|
+
*
|
|
4922
|
+
* axes.setTo({"x": 48});
|
|
4923
|
+
* axes.get(); // {"x": 50}
|
|
4924
|
+
*
|
|
4925
|
+
* axes.setOptions({
|
|
4926
|
+
* round: 1,
|
|
4927
|
+
* });
|
|
4928
|
+
*
|
|
4929
|
+
* axes.setTo({"x": 48});
|
|
4930
|
+
* axes.get(); // {"x": 48}
|
|
4931
|
+
* ```
|
|
4925
4932
|
*/
|
|
4926
4933
|
__proto.setOptions = function (options) {
|
|
4927
4934
|
this.options = __assign$1(__assign$1({}, this.options), options);
|
|
4928
4935
|
this.animationManager.setOptions(options);
|
|
4929
4936
|
return this;
|
|
4930
4937
|
};
|
|
4931
|
-
/**
|
|
4932
|
-
* Change the information of an existing axis.
|
|
4933
|
-
* @ko 존재하는 축의 정보를 변경한다.
|
|
4934
|
-
* @param {Object.<string, AxisOption>} axis Axis options to change <ko>변경할 축의 정보</ko>
|
|
4935
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4936
|
-
* @example
|
|
4937
|
-
* ```js
|
|
4938
|
-
* const axes = new eg.Axes({
|
|
4939
|
-
* "x": {
|
|
4940
|
-
* range: [0, 100]
|
|
4941
|
-
* },
|
|
4942
|
-
* });
|
|
4943
|
-
*
|
|
4944
|
-
* axes.setTo({"x": 150});
|
|
4945
|
-
* axes.get(); // {"x": 100}
|
|
4946
|
-
*
|
|
4947
|
-
* axes.setAxis({
|
|
4948
|
-
* "x": {
|
|
4949
|
-
* range: [0, 200]
|
|
4950
|
-
* },
|
|
4951
|
-
* });
|
|
4952
|
-
*
|
|
4953
|
-
* axes.setTo({"x": 150});
|
|
4954
|
-
* axes.get(); // {"x": 150}
|
|
4955
|
-
* ```
|
|
4938
|
+
/**
|
|
4939
|
+
* Change the information of an existing axis.
|
|
4940
|
+
* @ko 존재하는 축의 정보를 변경한다.
|
|
4941
|
+
* @param {Object.<string, AxisOption>} axis Axis options to change <ko>변경할 축의 정보</ko>
|
|
4942
|
+
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4943
|
+
* @example
|
|
4944
|
+
* ```js
|
|
4945
|
+
* const axes = new eg.Axes({
|
|
4946
|
+
* "x": {
|
|
4947
|
+
* range: [0, 100]
|
|
4948
|
+
* },
|
|
4949
|
+
* });
|
|
4950
|
+
*
|
|
4951
|
+
* axes.setTo({"x": 150});
|
|
4952
|
+
* axes.get(); // {"x": 100}
|
|
4953
|
+
*
|
|
4954
|
+
* axes.setAxis({
|
|
4955
|
+
* "x": {
|
|
4956
|
+
* range: [0, 200]
|
|
4957
|
+
* },
|
|
4958
|
+
* });
|
|
4959
|
+
*
|
|
4960
|
+
* axes.setTo({"x": 150});
|
|
4961
|
+
* axes.get(); // {"x": 150}
|
|
4962
|
+
* ```
|
|
4956
4963
|
*/
|
|
4957
4964
|
__proto.setAxis = function (axis) {
|
|
4958
4965
|
this.axisManager.setAxis(axis);
|
|
4959
4966
|
return this;
|
|
4960
4967
|
};
|
|
4961
|
-
/**
|
|
4962
|
-
* Stop an animation in progress.
|
|
4963
|
-
* @ko 재생 중인 애니메이션을 정지한다.
|
|
4964
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4965
|
-
* @example
|
|
4966
|
-
* ```js
|
|
4967
|
-
* const axes = new eg.Axes({
|
|
4968
|
-
* "x": {
|
|
4969
|
-
* range: [0, 100]
|
|
4970
|
-
* },
|
|
4971
|
-
* });
|
|
4972
|
-
*
|
|
4973
|
-
* axes.setTo({"x": 10}, 1000); // start animatation
|
|
4974
|
-
*
|
|
4975
|
-
* // after 500 ms
|
|
4976
|
-
* axes.stopAnimation(); // stop animation during movement.
|
|
4977
|
-
* ```
|
|
4968
|
+
/**
|
|
4969
|
+
* Stop an animation in progress.
|
|
4970
|
+
* @ko 재생 중인 애니메이션을 정지한다.
|
|
4971
|
+
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4972
|
+
* @example
|
|
4973
|
+
* ```js
|
|
4974
|
+
* const axes = new eg.Axes({
|
|
4975
|
+
* "x": {
|
|
4976
|
+
* range: [0, 100]
|
|
4977
|
+
* },
|
|
4978
|
+
* });
|
|
4979
|
+
*
|
|
4980
|
+
* axes.setTo({"x": 10}, 1000); // start animatation
|
|
4981
|
+
*
|
|
4982
|
+
* // after 500 ms
|
|
4983
|
+
* axes.stopAnimation(); // stop animation during movement.
|
|
4984
|
+
* ```
|
|
4978
4985
|
*/
|
|
4979
4986
|
__proto.stopAnimation = function () {
|
|
4980
4987
|
this.animationManager.stopAnimation();
|
|
4981
4988
|
this.animationManager.finish(false);
|
|
4982
4989
|
return this;
|
|
4983
4990
|
};
|
|
4984
|
-
/**
|
|
4985
|
-
* Change the destination of an animation in progress.
|
|
4986
|
-
* @ko 재생 중인 애니메이션의 목적지와 진행 시간을 변경한다.
|
|
4987
|
-
* @param {UpdateAnimationOption} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
4988
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4989
|
-
* @example
|
|
4990
|
-
* ```js
|
|
4991
|
-
* const axes = new eg.Axes({
|
|
4992
|
-
* "x": {
|
|
4993
|
-
* range: [0, 200]
|
|
4994
|
-
* },
|
|
4995
|
-
* "y": {
|
|
4996
|
-
* range: [0, 200]
|
|
4997
|
-
* }
|
|
4998
|
-
* });
|
|
4999
|
-
*
|
|
5000
|
-
* axes.setTo({"x": 50, "y": 50}, 1000); // trigger animation by setTo
|
|
5001
|
-
*
|
|
5002
|
-
* // after 500 ms
|
|
5003
|
-
* axes.updateAnimation({destPos: {"x": 100, "y": 100}}); // animation will end after 500 ms, at {"x": 100, "y": 100}
|
|
5004
|
-
*
|
|
5005
|
-
* // after 500 ms
|
|
5006
|
-
* axes.setTo({"x": 50, "y": 50}, 1000); // trigger animation by setTo
|
|
5007
|
-
*
|
|
5008
|
-
* // after 700 ms
|
|
5009
|
-
* axes.updateAnimation({destPos: {"x": 100, "y": 100}, duration: 1500, restart: true}); // this works same as axes.setTo({"x": 100, "y": 100}, 800) since restart is true.
|
|
5010
|
-
* ```
|
|
4991
|
+
/**
|
|
4992
|
+
* Change the destination of an animation in progress.
|
|
4993
|
+
* @ko 재생 중인 애니메이션의 목적지와 진행 시간을 변경한다.
|
|
4994
|
+
* @param {UpdateAnimationOption} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
4995
|
+
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4996
|
+
* @example
|
|
4997
|
+
* ```js
|
|
4998
|
+
* const axes = new eg.Axes({
|
|
4999
|
+
* "x": {
|
|
5000
|
+
* range: [0, 200]
|
|
5001
|
+
* },
|
|
5002
|
+
* "y": {
|
|
5003
|
+
* range: [0, 200]
|
|
5004
|
+
* }
|
|
5005
|
+
* });
|
|
5006
|
+
*
|
|
5007
|
+
* axes.setTo({"x": 50, "y": 50}, 1000); // trigger animation by setTo
|
|
5008
|
+
*
|
|
5009
|
+
* // after 500 ms
|
|
5010
|
+
* axes.updateAnimation({destPos: {"x": 100, "y": 100}}); // animation will end after 500 ms, at {"x": 100, "y": 100}
|
|
5011
|
+
*
|
|
5012
|
+
* // after 500 ms
|
|
5013
|
+
* axes.setTo({"x": 50, "y": 50}, 1000); // trigger animation by setTo
|
|
5014
|
+
*
|
|
5015
|
+
* // after 700 ms
|
|
5016
|
+
* axes.updateAnimation({destPos: {"x": 100, "y": 100}, duration: 1500, restart: true}); // this works same as axes.setTo({"x": 100, "y": 100}, 800) since restart is true.
|
|
5017
|
+
* ```
|
|
5011
5018
|
*/
|
|
5012
5019
|
__proto.updateAnimation = function (options) {
|
|
5013
5020
|
this.animationManager.updateAnimation(options);
|
|
5014
5021
|
return this;
|
|
5015
5022
|
};
|
|
5016
|
-
/**
|
|
5017
|
-
* Returns whether there is a coordinate in the bounce area of the target axis.
|
|
5018
|
-
* @ko 대상 축 중 bounce영역에 좌표가 존재하는지를 반환한다
|
|
5019
|
-
* @param {Object} [axes] The names of the axis <ko>축 이름들</ko>
|
|
5020
|
-
* @return {Boolen} Whether the bounce area exists. <ko>bounce 영역 존재 여부</ko>
|
|
5021
|
-
* @example
|
|
5022
|
-
* ```js
|
|
5023
|
-
* const axes = new eg.Axes({
|
|
5024
|
-
* "x": {
|
|
5025
|
-
* range: [0, 100]
|
|
5026
|
-
* },
|
|
5027
|
-
* "xOther": {
|
|
5028
|
-
* range: [-100, 100]
|
|
5029
|
-
* },
|
|
5030
|
-
* "zoom": {
|
|
5031
|
-
* range: [50, 30]
|
|
5032
|
-
* }
|
|
5033
|
-
* });
|
|
5034
|
-
*
|
|
5035
|
-
* axes.isBounceArea(["x"]);
|
|
5036
|
-
* axes.isBounceArea(["x", "zoom"]);
|
|
5037
|
-
* axes.isBounceArea();
|
|
5038
|
-
* ```
|
|
5023
|
+
/**
|
|
5024
|
+
* Returns whether there is a coordinate in the bounce area of the target axis.
|
|
5025
|
+
* @ko 대상 축 중 bounce영역에 좌표가 존재하는지를 반환한다
|
|
5026
|
+
* @param {Object} [axes] The names of the axis <ko>축 이름들</ko>
|
|
5027
|
+
* @return {Boolen} Whether the bounce area exists. <ko>bounce 영역 존재 여부</ko>
|
|
5028
|
+
* @example
|
|
5029
|
+
* ```js
|
|
5030
|
+
* const axes = new eg.Axes({
|
|
5031
|
+
* "x": {
|
|
5032
|
+
* range: [0, 100]
|
|
5033
|
+
* },
|
|
5034
|
+
* "xOther": {
|
|
5035
|
+
* range: [-100, 100]
|
|
5036
|
+
* },
|
|
5037
|
+
* "zoom": {
|
|
5038
|
+
* range: [50, 30]
|
|
5039
|
+
* }
|
|
5040
|
+
* });
|
|
5041
|
+
*
|
|
5042
|
+
* axes.isBounceArea(["x"]);
|
|
5043
|
+
* axes.isBounceArea(["x", "zoom"]);
|
|
5044
|
+
* axes.isBounceArea();
|
|
5045
|
+
* ```
|
|
5039
5046
|
*/
|
|
5040
5047
|
__proto.isBounceArea = function (axes) {
|
|
5041
5048
|
return this.axisManager.isOutside(axes);
|
|
5042
5049
|
};
|
|
5043
|
-
/**
|
|
5044
|
-
* Destroys properties, and events used in a module and disconnect all connections to inputTypes.
|
|
5045
|
-
* @ko 모듈에 사용한 속성, 이벤트를 해제한다. 모든 inputType과의 연결을 끊는다.
|
|
5050
|
+
/**
|
|
5051
|
+
* Destroys properties, and events used in a module and disconnect all connections to inputTypes.
|
|
5052
|
+
* @ko 모듈에 사용한 속성, 이벤트를 해제한다. 모든 inputType과의 연결을 끊는다.
|
|
5046
5053
|
*/
|
|
5047
5054
|
__proto.destroy = function () {
|
|
5048
5055
|
this.disconnect();
|
|
5049
5056
|
this.eventManager.destroy();
|
|
5050
5057
|
};
|
|
5051
|
-
/**
|
|
5052
|
-
* @name VERSION
|
|
5053
|
-
* @desc Version info string
|
|
5054
|
-
* @ko 버전정보 문자열
|
|
5055
|
-
*
|
|
5056
|
-
* @constant
|
|
5057
|
-
* @type {String}
|
|
5058
|
-
* @example
|
|
5059
|
-
* ```js
|
|
5060
|
-
* eg.Axes.VERSION; // ex) 3.3.3
|
|
5061
|
-
* ```
|
|
5058
|
+
/**
|
|
5059
|
+
* @name VERSION
|
|
5060
|
+
* @desc Version info string
|
|
5061
|
+
* @ko 버전정보 문자열
|
|
5062
|
+
*
|
|
5063
|
+
* @constant
|
|
5064
|
+
* @type {String}
|
|
5065
|
+
* @example
|
|
5066
|
+
* ```js
|
|
5067
|
+
* eg.Axes.VERSION; // ex) 3.3.3
|
|
5068
|
+
* ```
|
|
5062
5069
|
*/
|
|
5063
|
-
Axes.VERSION = "3.9.0";
|
|
5070
|
+
Axes.VERSION = "3.9.1-beta.0";
|
|
5064
5071
|
/* eslint-enable */
|
|
5065
|
-
/**
|
|
5066
|
-
* @name TRANSFORM
|
|
5067
|
-
* @desc Returns the transform attribute with CSS vendor prefixes.
|
|
5068
|
-
* @ko CSS vendor prefixes를 붙인 transform 속성을 반환한다.
|
|
5069
|
-
*
|
|
5070
|
-
* @constant
|
|
5071
|
-
* @type {String}
|
|
5072
|
-
* @example
|
|
5073
|
-
* ```js
|
|
5074
|
-
* eg.Axes.TRANSFORM; // "transform" or "webkitTransform"
|
|
5075
|
-
* ```
|
|
5072
|
+
/**
|
|
5073
|
+
* @name TRANSFORM
|
|
5074
|
+
* @desc Returns the transform attribute with CSS vendor prefixes.
|
|
5075
|
+
* @ko CSS vendor prefixes를 붙인 transform 속성을 반환한다.
|
|
5076
|
+
*
|
|
5077
|
+
* @constant
|
|
5078
|
+
* @type {String}
|
|
5079
|
+
* @example
|
|
5080
|
+
* ```js
|
|
5081
|
+
* eg.Axes.TRANSFORM; // "transform" or "webkitTransform"
|
|
5082
|
+
* ```
|
|
5076
5083
|
*/
|
|
5077
5084
|
Axes.TRANSFORM = TRANSFORM;
|
|
5078
|
-
/**
|
|
5079
|
-
* @name DIRECTION_NONE
|
|
5080
|
-
* @constant
|
|
5081
|
-
* @type {Number}
|
|
5085
|
+
/**
|
|
5086
|
+
* @name DIRECTION_NONE
|
|
5087
|
+
* @constant
|
|
5088
|
+
* @type {Number}
|
|
5082
5089
|
*/
|
|
5083
5090
|
Axes.DIRECTION_NONE = DIRECTION_NONE;
|
|
5084
|
-
/**
|
|
5085
|
-
* @name DIRECTION_LEFT
|
|
5086
|
-
* @constant
|
|
5087
|
-
* @type {Number}
|
|
5091
|
+
/**
|
|
5092
|
+
* @name DIRECTION_LEFT
|
|
5093
|
+
* @constant
|
|
5094
|
+
* @type {Number}
|
|
5088
5095
|
*/
|
|
5089
5096
|
Axes.DIRECTION_LEFT = DIRECTION_LEFT;
|
|
5090
|
-
/**
|
|
5091
|
-
* @name DIRECTION_RIGHT
|
|
5092
|
-
* @constant
|
|
5093
|
-
* @type {Number}
|
|
5097
|
+
/**
|
|
5098
|
+
* @name DIRECTION_RIGHT
|
|
5099
|
+
* @constant
|
|
5100
|
+
* @type {Number}
|
|
5094
5101
|
*/
|
|
5095
5102
|
Axes.DIRECTION_RIGHT = DIRECTION_RIGHT;
|
|
5096
|
-
/**
|
|
5097
|
-
* @name DIRECTION_UP
|
|
5098
|
-
* @constant
|
|
5099
|
-
* @type {Number}
|
|
5103
|
+
/**
|
|
5104
|
+
* @name DIRECTION_UP
|
|
5105
|
+
* @constant
|
|
5106
|
+
* @type {Number}
|
|
5100
5107
|
*/
|
|
5101
5108
|
Axes.DIRECTION_UP = DIRECTION_UP;
|
|
5102
|
-
/**
|
|
5103
|
-
* @name DIRECTION_DOWN
|
|
5104
|
-
* @constant
|
|
5105
|
-
* @type {Number}
|
|
5109
|
+
/**
|
|
5110
|
+
* @name DIRECTION_DOWN
|
|
5111
|
+
* @constant
|
|
5112
|
+
* @type {Number}
|
|
5106
5113
|
*/
|
|
5107
5114
|
Axes.DIRECTION_DOWN = DIRECTION_DOWN;
|
|
5108
|
-
/**
|
|
5109
|
-
* @name DIRECTION_HORIZONTAL
|
|
5110
|
-
* @constant
|
|
5111
|
-
* @type {Number}
|
|
5115
|
+
/**
|
|
5116
|
+
* @name DIRECTION_HORIZONTAL
|
|
5117
|
+
* @constant
|
|
5118
|
+
* @type {Number}
|
|
5112
5119
|
*/
|
|
5113
5120
|
Axes.DIRECTION_HORIZONTAL = DIRECTION_HORIZONTAL;
|
|
5114
|
-
/**
|
|
5115
|
-
* @name DIRECTION_VERTICAL
|
|
5116
|
-
* @constant
|
|
5117
|
-
* @type {Number}
|
|
5121
|
+
/**
|
|
5122
|
+
* @name DIRECTION_VERTICAL
|
|
5123
|
+
* @constant
|
|
5124
|
+
* @type {Number}
|
|
5118
5125
|
*/
|
|
5119
5126
|
Axes.DIRECTION_VERTICAL = DIRECTION_VERTICAL;
|
|
5120
|
-
/**
|
|
5121
|
-
* @name DIRECTION_ALL
|
|
5122
|
-
* @constant
|
|
5123
|
-
* @type {Number}
|
|
5127
|
+
/**
|
|
5128
|
+
* @name DIRECTION_ALL
|
|
5129
|
+
* @constant
|
|
5130
|
+
* @type {Number}
|
|
5124
5131
|
*/
|
|
5125
5132
|
Axes.DIRECTION_ALL = DIRECTION_ALL;
|
|
5126
5133
|
__decorate([Computed], Axes.prototype, "holding", null);
|
|
@@ -5128,9 +5135,9 @@ version: 4.11.3-beta.4
|
|
|
5128
5135
|
return Axes;
|
|
5129
5136
|
}(Component);
|
|
5130
5137
|
|
|
5131
|
-
/*
|
|
5132
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
5133
|
-
* egjs projects are licensed under the MIT license
|
|
5138
|
+
/*
|
|
5139
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
5140
|
+
* egjs projects are licensed under the MIT license
|
|
5134
5141
|
*/
|
|
5135
5142
|
// get user's direction
|
|
5136
5143
|
var getDirectionByAngle = function (angle, thresholdAngle) {
|
|
@@ -5140,73 +5147,73 @@ version: 4.11.3-beta.4
|
|
|
5140
5147
|
var toAngle = Math.abs(angle);
|
|
5141
5148
|
return toAngle > thresholdAngle && toAngle < 180 - thresholdAngle ? DIRECTION_VERTICAL : DIRECTION_HORIZONTAL;
|
|
5142
5149
|
};
|
|
5143
|
-
/**
|
|
5144
|
-
* @typedef {Object} PanInputOption The option object of the eg.Axes.PanInput module.
|
|
5145
|
-
* @ko eg.Axes.PanInput 모듈의 옵션 객체
|
|
5146
|
-
* @param {String[]} [inputType=["touch", "mouse", "pointer"]] Types of input devices
|
|
5147
|
-
* - touch: Touch screen
|
|
5148
|
-
* - mouse: Mouse
|
|
5149
|
-
* - pointer: Mouse and touch <ko>입력 장치 종류
|
|
5150
|
-
* - touch: 터치 입력 장치
|
|
5151
|
-
* - mouse: 마우스
|
|
5152
|
-
* - pointer: 마우스 및 터치</ko>
|
|
5153
|
-
* @param {String[]} [inputKey=["any"]] List of key combinations to allow input
|
|
5154
|
-
* - any: any key
|
|
5155
|
-
* - shift: shift key
|
|
5156
|
-
* - ctrl: ctrl key and pinch gesture on the trackpad
|
|
5157
|
-
* - alt: alt key
|
|
5158
|
-
* - meta: meta key
|
|
5159
|
-
* - none: none of these keys are pressed <ko>입력을 허용할 키 조합 목록
|
|
5160
|
-
* - any: 아무 키
|
|
5161
|
-
* - shift: shift 키
|
|
5162
|
-
* - ctrl: ctrl 키 및 트랙패드의 pinch 제스쳐
|
|
5163
|
-
* - alt: alt 키
|
|
5164
|
-
* - meta: meta 키
|
|
5165
|
-
* - none: 아무 키도 눌리지 않은 상태 </ko>
|
|
5166
|
-
* @param {String[]} [inputButton=["left"]] List of buttons to allow input
|
|
5167
|
-
* - left: Left mouse button and normal touch
|
|
5168
|
-
* - middle: Mouse wheel press
|
|
5169
|
-
* - right: Right mouse button <ko>입력을 허용할 버튼 목록
|
|
5170
|
-
* - left: 마우스 왼쪽 버튼
|
|
5171
|
-
* - middle: 마우스 휠 눌림
|
|
5172
|
-
* - right: 마우스 오른쪽 버튼 </ko>
|
|
5173
|
-
* @param {Number[]} [scale] Coordinate scale that a user can move<ko>사용자의 동작으로 이동하는 좌표의 배율</ko>
|
|
5174
|
-
* @param {Number} [scale[0]=1] horizontal axis scale <ko>수평축 배율</ko>
|
|
5175
|
-
* @param {Number} [scale[1]=1] vertical axis scale <ko>수직축 배율</ko>
|
|
5176
|
-
* @param {Number} [thresholdAngle=45] The threshold value that determines whether user action is horizontal or vertical (0~90) <ko>사용자의 동작이 가로 방향인지 세로 방향인지 판단하는 기준 각도(0~90)</ko>
|
|
5177
|
-
* @param {Number} [threshold=0] Minimal pan distance required before recognizing <ko>사용자의 Pan 동작을 인식하기 위해산 최소한의 거리</ko>
|
|
5178
|
-
* @param {Boolean} [preventClickOnDrag=false] Whether to cancel the {@link https://developer.mozilla.org/en/docs/Web/API/Element/click_event click} event when the user finishes dragging more than 1 pixel <ko>사용자가 1픽셀 이상 드래그를 마쳤을 때 {@link https://developer.mozilla.org/ko/docs/Web/API/Element/click_event click} 이벤트 취소 여부</ko>
|
|
5179
|
-
* @param {Boolean} [preventDefaultOnDrag=false] Whether to use the {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} when the user starts dragging <ko>사용자가 드래그를 시작할 때 {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} 실행 여부</ko>
|
|
5180
|
-
* @param {Number} [iOSEdgeSwipeThreshold=30] Area (px) that can go to the next page when swiping the right edge in iOS safari <ko>iOS Safari에서 오른쪽 엣지를 스와이프 하는 경우 다음 페이지로 넘어갈 수 있는 영역(px)</ko>
|
|
5181
|
-
* @param {String} [touchAction=null] Value that overrides the element's "touch-action" css property. If set to null, it is automatically set to prevent scrolling in the direction of the connected axis. <ko>엘리먼트의 "touch-action" CSS 속성을 덮어쓰는 값. 만약 null로 설정된 경우, 연결된 축 방향으로의 스크롤을 방지하게끔 자동으로 설정된다.</ko>
|
|
5150
|
+
/**
|
|
5151
|
+
* @typedef {Object} PanInputOption The option object of the eg.Axes.PanInput module.
|
|
5152
|
+
* @ko eg.Axes.PanInput 모듈의 옵션 객체
|
|
5153
|
+
* @param {String[]} [inputType=["touch", "mouse", "pointer"]] Types of input devices
|
|
5154
|
+
* - touch: Touch screen
|
|
5155
|
+
* - mouse: Mouse
|
|
5156
|
+
* - pointer: Mouse and touch <ko>입력 장치 종류
|
|
5157
|
+
* - touch: 터치 입력 장치
|
|
5158
|
+
* - mouse: 마우스
|
|
5159
|
+
* - pointer: 마우스 및 터치</ko>
|
|
5160
|
+
* @param {String[]} [inputKey=["any"]] List of key combinations to allow input
|
|
5161
|
+
* - any: any key
|
|
5162
|
+
* - shift: shift key
|
|
5163
|
+
* - ctrl: ctrl key and pinch gesture on the trackpad
|
|
5164
|
+
* - alt: alt key
|
|
5165
|
+
* - meta: meta key
|
|
5166
|
+
* - none: none of these keys are pressed <ko>입력을 허용할 키 조합 목록
|
|
5167
|
+
* - any: 아무 키
|
|
5168
|
+
* - shift: shift 키
|
|
5169
|
+
* - ctrl: ctrl 키 및 트랙패드의 pinch 제스쳐
|
|
5170
|
+
* - alt: alt 키
|
|
5171
|
+
* - meta: meta 키
|
|
5172
|
+
* - none: 아무 키도 눌리지 않은 상태 </ko>
|
|
5173
|
+
* @param {String[]} [inputButton=["left"]] List of buttons to allow input
|
|
5174
|
+
* - left: Left mouse button and normal touch
|
|
5175
|
+
* - middle: Mouse wheel press
|
|
5176
|
+
* - right: Right mouse button <ko>입력을 허용할 버튼 목록
|
|
5177
|
+
* - left: 마우스 왼쪽 버튼
|
|
5178
|
+
* - middle: 마우스 휠 눌림
|
|
5179
|
+
* - right: 마우스 오른쪽 버튼 </ko>
|
|
5180
|
+
* @param {Number[]} [scale] Coordinate scale that a user can move<ko>사용자의 동작으로 이동하는 좌표의 배율</ko>
|
|
5181
|
+
* @param {Number} [scale[0]=1] horizontal axis scale <ko>수평축 배율</ko>
|
|
5182
|
+
* @param {Number} [scale[1]=1] vertical axis scale <ko>수직축 배율</ko>
|
|
5183
|
+
* @param {Number} [thresholdAngle=45] The threshold value that determines whether user action is horizontal or vertical (0~90) <ko>사용자의 동작이 가로 방향인지 세로 방향인지 판단하는 기준 각도(0~90)</ko>
|
|
5184
|
+
* @param {Number} [threshold=0] Minimal pan distance required before recognizing <ko>사용자의 Pan 동작을 인식하기 위해산 최소한의 거리</ko>
|
|
5185
|
+
* @param {Boolean} [preventClickOnDrag=false] Whether to cancel the {@link https://developer.mozilla.org/en/docs/Web/API/Element/click_event click} event when the user finishes dragging more than 1 pixel <ko>사용자가 1픽셀 이상 드래그를 마쳤을 때 {@link https://developer.mozilla.org/ko/docs/Web/API/Element/click_event click} 이벤트 취소 여부</ko>
|
|
5186
|
+
* @param {Boolean} [preventDefaultOnDrag=false] Whether to use the {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} when the user starts dragging <ko>사용자가 드래그를 시작할 때 {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} 실행 여부</ko>
|
|
5187
|
+
* @param {Number} [iOSEdgeSwipeThreshold=30] Area (px) that can go to the next page when swiping the right edge in iOS safari <ko>iOS Safari에서 오른쪽 엣지를 스와이프 하는 경우 다음 페이지로 넘어갈 수 있는 영역(px)</ko>
|
|
5188
|
+
* @param {String} [touchAction=null] Value that overrides the element's "touch-action" css property. If set to null, it is automatically set to prevent scrolling in the direction of the connected axis. <ko>엘리먼트의 "touch-action" CSS 속성을 덮어쓰는 값. 만약 null로 설정된 경우, 연결된 축 방향으로의 스크롤을 방지하게끔 자동으로 설정된다.</ko>
|
|
5182
5189
|
**/
|
|
5183
|
-
/**
|
|
5184
|
-
* A module that passes the amount of change to eg.Axes when the mouse or touchscreen is down and moved. use less than two axes.
|
|
5185
|
-
* @ko 마우스나 터치 스크린을 누르고 움직일때의 변화량을 eg.Axes에 전달하는 모듈. 두개 이하의 축을 사용한다.
|
|
5186
|
-
*
|
|
5187
|
-
* @example
|
|
5188
|
-
* ```js
|
|
5189
|
-
* const pan = new eg.Axes.PanInput("#area", {
|
|
5190
|
-
* inputType: ["touch"],
|
|
5191
|
-
* scale: [1, 1.3],
|
|
5192
|
-
* });
|
|
5193
|
-
*
|
|
5194
|
-
* // Connect the 'something2' axis to the mouse or touchscreen x position when the mouse or touchscreen is down and moved.
|
|
5195
|
-
* // Connect the 'somethingN' axis to the mouse or touchscreen y position when the mouse or touchscreen is down and moved.
|
|
5196
|
-
* axes.connect(["something2", "somethingN"], pan); // or axes.connect("something2 somethingN", pan);
|
|
5197
|
-
*
|
|
5198
|
-
* // Connect only one 'something1' axis to the mouse or touchscreen x position when the mouse or touchscreen is down and moved.
|
|
5199
|
-
* axes.connect(["something1"], pan); // or axes.connect("something1", pan);
|
|
5200
|
-
*
|
|
5201
|
-
* // Connect only one 'something2' axis to the mouse or touchscreen y position when the mouse or touchscreen is down and moved.
|
|
5202
|
-
* axes.connect(["", "something2"], pan); // or axes.connect(" something2", pan);
|
|
5203
|
-
* ```
|
|
5204
|
-
* @param {String|HTMLElement|Ref<HTMLElement>|jQuery} element An element to use the eg.Axes.PanInput module <ko>eg.Axes.PanInput 모듈을 사용할 엘리먼트</ko>
|
|
5205
|
-
* @param {PanInputOption} [options={}] The option object of the eg.Axes.PanInput module<ko>eg.Axes.PanInput 모듈의 옵션 객체</ko>
|
|
5190
|
+
/**
|
|
5191
|
+
* A module that passes the amount of change to eg.Axes when the mouse or touchscreen is down and moved. use less than two axes.
|
|
5192
|
+
* @ko 마우스나 터치 스크린을 누르고 움직일때의 변화량을 eg.Axes에 전달하는 모듈. 두개 이하의 축을 사용한다.
|
|
5193
|
+
*
|
|
5194
|
+
* @example
|
|
5195
|
+
* ```js
|
|
5196
|
+
* const pan = new eg.Axes.PanInput("#area", {
|
|
5197
|
+
* inputType: ["touch"],
|
|
5198
|
+
* scale: [1, 1.3],
|
|
5199
|
+
* });
|
|
5200
|
+
*
|
|
5201
|
+
* // Connect the 'something2' axis to the mouse or touchscreen x position when the mouse or touchscreen is down and moved.
|
|
5202
|
+
* // Connect the 'somethingN' axis to the mouse or touchscreen y position when the mouse or touchscreen is down and moved.
|
|
5203
|
+
* axes.connect(["something2", "somethingN"], pan); // or axes.connect("something2 somethingN", pan);
|
|
5204
|
+
*
|
|
5205
|
+
* // Connect only one 'something1' axis to the mouse or touchscreen x position when the mouse or touchscreen is down and moved.
|
|
5206
|
+
* axes.connect(["something1"], pan); // or axes.connect("something1", pan);
|
|
5207
|
+
*
|
|
5208
|
+
* // Connect only one 'something2' axis to the mouse or touchscreen y position when the mouse or touchscreen is down and moved.
|
|
5209
|
+
* axes.connect(["", "something2"], pan); // or axes.connect(" something2", pan);
|
|
5210
|
+
* ```
|
|
5211
|
+
* @param {String|HTMLElement|Ref<HTMLElement>|jQuery} element An element to use the eg.Axes.PanInput module <ko>eg.Axes.PanInput 모듈을 사용할 엘리먼트</ko>
|
|
5212
|
+
* @param {PanInputOption} [options={}] The option object of the eg.Axes.PanInput module<ko>eg.Axes.PanInput 모듈의 옵션 객체</ko>
|
|
5206
5213
|
*/
|
|
5207
5214
|
var PanInput = /*#__PURE__*/function () {
|
|
5208
|
-
/**
|
|
5209
|
-
*
|
|
5215
|
+
/**
|
|
5216
|
+
*
|
|
5210
5217
|
*/
|
|
5211
5218
|
function PanInput(el, options) {
|
|
5212
5219
|
var _this = this;
|
|
@@ -5255,56 +5262,60 @@ version: 4.11.3-beta.4
|
|
|
5255
5262
|
this._detachWindowEvent(this._activeEvent);
|
|
5256
5263
|
}
|
|
5257
5264
|
this._attachElementEvent(observer);
|
|
5258
|
-
this._originalCssProps = setCssProps(this.element, this.options, this._direction);
|
|
5259
5265
|
return this;
|
|
5260
5266
|
};
|
|
5261
5267
|
__proto.disconnect = function () {
|
|
5262
5268
|
this._detachElementEvent();
|
|
5263
5269
|
this._detachWindowEvent(this._activeEvent);
|
|
5264
|
-
if (!isCssPropsFromAxes(this._originalCssProps)) {
|
|
5265
|
-
revertCssProps(this.element, this._originalCssProps);
|
|
5266
|
-
}
|
|
5267
5270
|
this._direction = DIRECTION_NONE;
|
|
5268
5271
|
return this;
|
|
5269
5272
|
};
|
|
5270
|
-
/**
|
|
5271
|
-
* Destroys elements, properties, and events used in a module.
|
|
5272
|
-
* @ko 모듈에 사용한 엘리먼트와 속성, 이벤트를 해제한다.
|
|
5273
|
+
/**
|
|
5274
|
+
* Destroys elements, properties, and events used in a module.
|
|
5275
|
+
* @ko 모듈에 사용한 엘리먼트와 속성, 이벤트를 해제한다.
|
|
5273
5276
|
*/
|
|
5274
5277
|
__proto.destroy = function () {
|
|
5275
5278
|
this.disconnect();
|
|
5276
5279
|
this.element = null;
|
|
5277
5280
|
};
|
|
5278
|
-
/**
|
|
5279
|
-
* Enables input devices
|
|
5280
|
-
* @ko 입력 장치를 사용할 수 있게 한다
|
|
5281
|
-
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5281
|
+
/**
|
|
5282
|
+
* Enables input devices
|
|
5283
|
+
* @ko 입력 장치를 사용할 수 있게 한다
|
|
5284
|
+
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5282
5285
|
*/
|
|
5283
5286
|
__proto.enable = function () {
|
|
5284
|
-
this._enabled
|
|
5287
|
+
if (!this._enabled) {
|
|
5288
|
+
this._enabled = true;
|
|
5289
|
+
this._originalCssProps = setCssProps(this.element, this.options, this._direction);
|
|
5290
|
+
}
|
|
5285
5291
|
return this;
|
|
5286
5292
|
};
|
|
5287
|
-
/**
|
|
5288
|
-
* Disables input devices
|
|
5289
|
-
* @ko 입력 장치를 사용할 수 없게 한다.
|
|
5290
|
-
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5293
|
+
/**
|
|
5294
|
+
* Disables input devices
|
|
5295
|
+
* @ko 입력 장치를 사용할 수 없게 한다.
|
|
5296
|
+
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5291
5297
|
*/
|
|
5292
5298
|
__proto.disable = function () {
|
|
5293
|
-
this._enabled
|
|
5299
|
+
if (this._enabled) {
|
|
5300
|
+
this._enabled = false;
|
|
5301
|
+
if (!isCssPropsFromAxes(this._originalCssProps)) {
|
|
5302
|
+
revertCssProps(this.element, this._originalCssProps);
|
|
5303
|
+
}
|
|
5304
|
+
}
|
|
5294
5305
|
return this;
|
|
5295
5306
|
};
|
|
5296
|
-
/**
|
|
5297
|
-
* Returns whether to use an input device
|
|
5298
|
-
* @ko 입력 장치 사용 여부를 반환한다.
|
|
5299
|
-
* @return {Boolean} Whether to use an input device <ko>입력장치 사용여부</ko>
|
|
5307
|
+
/**
|
|
5308
|
+
* Returns whether to use an input device
|
|
5309
|
+
* @ko 입력 장치 사용 여부를 반환한다.
|
|
5310
|
+
* @return {Boolean} Whether to use an input device <ko>입력장치 사용여부</ko>
|
|
5300
5311
|
*/
|
|
5301
5312
|
__proto.isEnabled = function () {
|
|
5302
5313
|
return this._enabled;
|
|
5303
5314
|
};
|
|
5304
|
-
/**
|
|
5305
|
-
* Releases current user input.
|
|
5306
|
-
* @ko 사용자의 입력을 강제로 중단시킨다.
|
|
5307
|
-
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5315
|
+
/**
|
|
5316
|
+
* Releases current user input.
|
|
5317
|
+
* @ko 사용자의 입력을 강제로 중단시킨다.
|
|
5318
|
+
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5308
5319
|
*/
|
|
5309
5320
|
__proto.release = function () {
|
|
5310
5321
|
var activeEvent = this._activeEvent;
|
|
@@ -5447,7 +5458,7 @@ version: 4.11.3-beta.4
|
|
|
5447
5458
|
throw new Error("Element to connect input does not exist.");
|
|
5448
5459
|
}
|
|
5449
5460
|
this._observer = observer;
|
|
5450
|
-
this.
|
|
5461
|
+
this.enable();
|
|
5451
5462
|
this._activeEvent = activeEvent;
|
|
5452
5463
|
element.addEventListener("click", this._preventClickWhenDragged, true);
|
|
5453
5464
|
activeEvent.start.forEach(function (event) {
|
|
@@ -5471,15 +5482,15 @@ version: 4.11.3-beta.4
|
|
|
5471
5482
|
element.removeEventListener(event, _this._voidFunction);
|
|
5472
5483
|
});
|
|
5473
5484
|
}
|
|
5474
|
-
this.
|
|
5485
|
+
this.disable();
|
|
5475
5486
|
this._observer = null;
|
|
5476
5487
|
};
|
|
5477
5488
|
return PanInput;
|
|
5478
5489
|
}();
|
|
5479
5490
|
|
|
5480
|
-
/*
|
|
5481
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
5482
|
-
* egjs projects are licensed under the MIT license
|
|
5491
|
+
/*
|
|
5492
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
5493
|
+
* egjs projects are licensed under the MIT license
|
|
5483
5494
|
*/
|
|
5484
5495
|
|
|
5485
5496
|
var Axes$1 = Axes;
|
|
@@ -12955,7 +12966,7 @@ version: 4.11.3-beta.4
|
|
|
12955
12966
|
* Flicking.VERSION; // ex) 4.0.0
|
|
12956
12967
|
* ```
|
|
12957
12968
|
*/
|
|
12958
|
-
Flicking.VERSION = "4.11.
|
|
12969
|
+
Flicking.VERSION = "4.11.4-beta.0";
|
|
12959
12970
|
return Flicking;
|
|
12960
12971
|
}(Component);
|
|
12961
12972
|
|