@egjs/flicking 4.12.0-beta.2 → 4.12.0-beta.4
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 +244 -244
- package/declaration/camera/Camera.d.ts +90 -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 -54
- 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 -14
- 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 +14 -254
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +15 -251
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +14 -257
- 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 +772 -1022
- 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/src/camera/Camera.ts +9 -0
- package/src/const/external.ts +0 -14
- package/src/index.ts +0 -2
- package/src/index.umd.ts +0 -2
- package/declaration/CrossFlicking.d.ts +0 -34
- package/src/CrossFlicking.ts +0 -296
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.12.0-beta.
|
|
7
|
+
version: 4.12.0-beta.4
|
|
8
8
|
*/
|
|
9
9
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -12,7 +12,7 @@ version: 4.12.0-beta.2
|
|
|
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.12.0-beta.2
|
|
|
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 */
|
|
30
30
|
|
|
31
31
|
var extendStatics$3 = function (d, b) {
|
|
32
32
|
extendStatics$3 = Object.setPrototypeOf || {
|
|
@@ -111,7 +111,7 @@ version: 4.12.0-beta.2
|
|
|
111
111
|
}
|
|
112
112
|
function step(op) {
|
|
113
113
|
if (f) throw new TypeError("Generator is already executing.");
|
|
114
|
-
while (
|
|
114
|
+
while (_) 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,10 +215,6 @@ version: 4.12.0-beta.2
|
|
|
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
|
-
};
|
|
222
218
|
|
|
223
219
|
/*
|
|
224
220
|
Copyright (c) NAVER Corp.
|
|
@@ -794,8 +790,6 @@ version: 4.12.0-beta.2
|
|
|
794
790
|
STRICT: "strict"
|
|
795
791
|
};
|
|
796
792
|
var CLASS = {
|
|
797
|
-
VIEWPORT: "flicking-viewport",
|
|
798
|
-
CAMERA: "flicking-camera",
|
|
799
793
|
VERTICAL: "vertical",
|
|
800
794
|
HIDDEN: "flicking-hidden",
|
|
801
795
|
DEFAULT_VIRTUAL: "flicking-panel"
|
|
@@ -822,17 +816,6 @@ version: 4.12.0-beta.2
|
|
|
822
816
|
LTR: "ltr",
|
|
823
817
|
RTL: "rtl"
|
|
824
818
|
};
|
|
825
|
-
/**
|
|
826
|
-
* An object that contains the direction that {@link Flicking} is moving
|
|
827
|
-
* @ko {@link Flicking}이 움직이는 방향을 담고 있는 객체
|
|
828
|
-
* @type {object}
|
|
829
|
-
* @property {"horizontal"} HORIZONTAL horizontal<ko>수평 방향</ko>
|
|
830
|
-
* @property {"vertical"} VERTICAL vertical<ko>수직 방향</ko>
|
|
831
|
-
*/
|
|
832
|
-
var MOVE_DIRECTION = {
|
|
833
|
-
HORIZONTAL: "horizontal",
|
|
834
|
-
VERTICAL: "vertical"
|
|
835
|
-
};
|
|
836
819
|
|
|
837
820
|
var Constants = {
|
|
838
821
|
__proto__: null,
|
|
@@ -843,7 +826,6 @@ version: 4.12.0-beta.2
|
|
|
843
826
|
CLASS: CLASS,
|
|
844
827
|
CIRCULAR_FALLBACK: CIRCULAR_FALLBACK,
|
|
845
828
|
ORDER: ORDER,
|
|
846
|
-
MOVE_DIRECTION: MOVE_DIRECTION,
|
|
847
829
|
ERROR_CODE: CODE
|
|
848
830
|
};
|
|
849
831
|
|
|
@@ -2673,7 +2655,7 @@ version: 4.12.0-beta.2
|
|
|
2673
2655
|
license: MIT
|
|
2674
2656
|
author: NAVER Corp.
|
|
2675
2657
|
repository: https://github.com/naver/egjs-axes
|
|
2676
|
-
version: 3.9.
|
|
2658
|
+
version: 3.9.0
|
|
2677
2659
|
*/
|
|
2678
2660
|
|
|
2679
2661
|
/*! *****************************************************************************
|
|
@@ -2727,9 +2709,9 @@ version: 4.12.0-beta.2
|
|
|
2727
2709
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2728
2710
|
}
|
|
2729
2711
|
|
|
2730
|
-
/*
|
|
2731
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
2732
|
-
* egjs projects are licensed under the MIT license
|
|
2712
|
+
/*
|
|
2713
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
2714
|
+
* egjs projects are licensed under the MIT license
|
|
2733
2715
|
*/
|
|
2734
2716
|
/* eslint-disable no-new-func, no-nested-ternary */
|
|
2735
2717
|
var win;
|
|
@@ -2744,9 +2726,9 @@ version: 4.12.0-beta.2
|
|
|
2744
2726
|
win = window;
|
|
2745
2727
|
}
|
|
2746
2728
|
|
|
2747
|
-
/*
|
|
2748
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
2749
|
-
* egjs projects are licensed under the MIT license
|
|
2729
|
+
/*
|
|
2730
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
2731
|
+
* egjs projects are licensed under the MIT license
|
|
2750
2732
|
*/
|
|
2751
2733
|
var DIRECTION_NONE = 1;
|
|
2752
2734
|
var DIRECTION_LEFT = 2;
|
|
@@ -2872,19 +2854,19 @@ version: 4.12.0-beta.2
|
|
|
2872
2854
|
};
|
|
2873
2855
|
caf = win.clearTimeout;
|
|
2874
2856
|
}
|
|
2875
|
-
/**
|
|
2876
|
-
* A polyfill for the window.requestAnimationFrame() method.
|
|
2877
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
|
|
2878
|
-
* @private
|
|
2857
|
+
/**
|
|
2858
|
+
* A polyfill for the window.requestAnimationFrame() method.
|
|
2859
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
|
|
2860
|
+
* @private
|
|
2879
2861
|
*/
|
|
2880
2862
|
var requestAnimationFrame = function (fp) {
|
|
2881
2863
|
return raf(fp);
|
|
2882
2864
|
};
|
|
2883
|
-
/**
|
|
2884
|
-
* A polyfill for the window.cancelAnimationFrame() method. It cancels an animation executed through a call to the requestAnimationFrame() method.
|
|
2885
|
-
* @param {Number} key − The ID value returned through a call to the requestAnimationFrame() method. <ko>requestAnimationFrame() 메서드가 반환한 아이디 값</ko>
|
|
2886
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame
|
|
2887
|
-
* @private
|
|
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
|
|
2888
2870
|
*/
|
|
2889
2871
|
var cancelAnimationFrame = function (key) {
|
|
2890
2872
|
caf(key);
|
|
@@ -3011,9 +2993,6 @@ version: 4.12.0-beta.2
|
|
|
3011
2993
|
});
|
|
3012
2994
|
Object.keys(newCssProps_1).forEach(function (prop) {
|
|
3013
2995
|
oldCssProps[prop] = element.style[prop];
|
|
3014
|
-
});
|
|
3015
|
-
// Old style props like user-select can be corrupted if you change the style directly in the logic above.
|
|
3016
|
-
Object.keys(newCssProps_1).forEach(function (prop) {
|
|
3017
2996
|
element.style[prop] = newCssProps_1[prop];
|
|
3018
2997
|
});
|
|
3019
2998
|
}
|
|
@@ -3033,32 +3012,32 @@ version: 4.12.0-beta.2
|
|
|
3033
3012
|
this._axes = _axes;
|
|
3034
3013
|
this.holdingCount = 0;
|
|
3035
3014
|
}
|
|
3036
|
-
/**
|
|
3037
|
-
* This event is fired when a user holds an element on the screen of the device.
|
|
3038
|
-
* @ko 사용자가 기기의 화면에 손을 대고 있을 때 발생하는 이벤트
|
|
3039
|
-
* @event Axes#hold
|
|
3040
|
-
* @type {object}
|
|
3041
|
-
* @property {Object.<string, number>} pos coordinate <ko>좌표 정보</ko>
|
|
3042
|
-
* @property {Object} input The instance of inputType where the event occurred<ko>이벤트가 발생한 inputType 인스턴스</ko>
|
|
3043
|
-
* @property {Object} inputEvent The event object received from inputType <ko>inputType으로 부터 받은 이벤트 객체</ko>
|
|
3044
|
-
* @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>
|
|
3045
|
-
*
|
|
3046
|
-
* @example
|
|
3047
|
-
* ```js
|
|
3048
|
-
* const axes = new eg.Axes({
|
|
3049
|
-
* "x": {
|
|
3050
|
-
* range: [0, 100]
|
|
3051
|
-
* },
|
|
3052
|
-
* "zoom": {
|
|
3053
|
-
* range: [50, 30]
|
|
3054
|
-
* }
|
|
3055
|
-
* }).on("hold", function(event) {
|
|
3056
|
-
* // event.pos
|
|
3057
|
-
* // event.input
|
|
3058
|
-
* // event.inputEvent
|
|
3059
|
-
* // isTrusted
|
|
3060
|
-
* });
|
|
3061
|
-
* ```
|
|
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
|
+
* ```
|
|
3062
3041
|
*/
|
|
3063
3042
|
var __proto = EventManager.prototype;
|
|
3064
3043
|
__proto.hold = function (pos, option) {
|
|
@@ -3070,78 +3049,78 @@ version: 4.12.0-beta.2
|
|
|
3070
3049
|
isTrusted: true
|
|
3071
3050
|
}));
|
|
3072
3051
|
};
|
|
3073
|
-
/**
|
|
3074
|
-
* Specifies the coordinates to move after the 'change' event. It works when the holding value of the change event is true.
|
|
3075
|
-
* @ko 'change' 이벤트 이후 이동할 좌표를 지정한다. change이벤트의 holding 값이 true일 경우에 동작한다
|
|
3076
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
3077
|
-
* @example
|
|
3078
|
-
* ```js
|
|
3079
|
-
* const axes = new eg.Axes({
|
|
3080
|
-
* "x": {
|
|
3081
|
-
* range: [0, 100]
|
|
3082
|
-
* },
|
|
3083
|
-
* "zoom": {
|
|
3084
|
-
* range: [50, 30]
|
|
3085
|
-
* }
|
|
3086
|
-
* }).on("change", function(event) {
|
|
3087
|
-
* event.holding && event.set({x: 10});
|
|
3088
|
-
* });
|
|
3089
|
-
* ```
|
|
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
|
+
* ```
|
|
3090
3069
|
*/
|
|
3091
|
-
/** Specifies the animation coordinates to move after the 'release' or 'animationStart' events.
|
|
3092
|
-
* @ko 'release' 또는 'animationStart' 이벤트 이후 이동할 좌표를 지정한다.
|
|
3093
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
3094
|
-
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>애니메이션 진행 시간(단위: ms)</ko>
|
|
3095
|
-
* @example
|
|
3096
|
-
* ```js
|
|
3097
|
-
* const axes = new eg.Axes({
|
|
3098
|
-
* "x": {
|
|
3099
|
-
* range: [0, 100]
|
|
3100
|
-
* },
|
|
3101
|
-
* "zoom": {
|
|
3102
|
-
* range: [50, 30]
|
|
3103
|
-
* }
|
|
3104
|
-
* }).on("animationStart", function(event) {
|
|
3105
|
-
* event.setTo({x: 10}, 2000);
|
|
3106
|
-
* });
|
|
3107
|
-
* ```
|
|
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
|
+
* ```
|
|
3108
3087
|
*/
|
|
3109
|
-
/**
|
|
3110
|
-
* This event is fired when a user release an element on the screen of the device.
|
|
3111
|
-
* @ko 사용자가 기기의 화면에서 손을 뗐을 때 발생하는 이벤트
|
|
3112
|
-
* @event Axes#release
|
|
3113
|
-
* @type {object}
|
|
3114
|
-
* @property {Object.<string, number>} depaPos The coordinates when releasing an element<ko>손을 뗐을 때의 좌표 </ko>
|
|
3115
|
-
* @property {Object.<string, number>} destPos The coordinates to move to after releasing an element<ko>손을 뗀 뒤에 이동할 좌표</ko>
|
|
3116
|
-
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>좌표의 변화량</ko>
|
|
3117
|
-
* @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>
|
|
3118
|
-
* @property {Object} inputEvent The event object received from inputType <ko>inputType으로 부터 받은 이벤트 객체</ko>
|
|
3119
|
-
* @property {Object} input The instance of inputType where the event occurred<ko>이벤트가 발생한 inputType 인스턴스</ko>
|
|
3120
|
-
* @property {setTo} setTo Specifies the animation coordinates to move after the event <ko>이벤트 이후 이동할 애니메이션 좌표를 지정한다</ko>
|
|
3121
|
-
* @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>
|
|
3122
|
-
*
|
|
3123
|
-
* @example
|
|
3124
|
-
* ```js
|
|
3125
|
-
* const axes = new eg.Axes({
|
|
3126
|
-
* "x": {
|
|
3127
|
-
* range: [0, 100]
|
|
3128
|
-
* },
|
|
3129
|
-
* "zoom": {
|
|
3130
|
-
* range: [50, 30]
|
|
3131
|
-
* }
|
|
3132
|
-
* }).on("release", function(event) {
|
|
3133
|
-
* // event.depaPos
|
|
3134
|
-
* // event.destPos
|
|
3135
|
-
* // event.delta
|
|
3136
|
-
* // event.input
|
|
3137
|
-
* // event.inputEvent
|
|
3138
|
-
* // event.setTo
|
|
3139
|
-
* // event.isTrusted
|
|
3140
|
-
*
|
|
3141
|
-
* // if you want to change the animation coordinates to move after the 'release' event.
|
|
3142
|
-
* event.setTo({x: 10}, 2000);
|
|
3143
|
-
* });
|
|
3144
|
-
* ```
|
|
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
|
+
* ```
|
|
3145
3124
|
*/
|
|
3146
3125
|
__proto.triggerRelease = function (param) {
|
|
3147
3126
|
var _a = this._getRoundPos(param.destPos, param.depaPos),
|
|
@@ -3154,43 +3133,43 @@ version: 4.12.0-beta.2
|
|
|
3154
3133
|
bounceRatio: this._getBounceRatio(roundPos)
|
|
3155
3134
|
})));
|
|
3156
3135
|
};
|
|
3157
|
-
/**
|
|
3158
|
-
* This event is fired when coordinate changes.
|
|
3159
|
-
* @ko 좌표가 변경됐을 때 발생하는 이벤트
|
|
3160
|
-
* @event Axes#change
|
|
3161
|
-
* @type {object}
|
|
3162
|
-
* @property {Object.<string, number>} pos The coordinate <ko>좌표</ko>
|
|
3163
|
-
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>좌표의 변화량</ko>
|
|
3164
|
-
* @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>
|
|
3165
|
-
* @property {Boolean} holding Indicates whether a user holds an element on the screen of the device.<ko>사용자가 기기의 화면을 누르고 있는지 여부</ko>
|
|
3166
|
-
* @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>
|
|
3167
|
-
* @property {Object} inputEvent The event object received from inputType. If the value is changed by animation, it returns 'null'.<ko>inputType으로 부터 받은 이벤트 객체. 애니메이션에 의해 값이 변경될 경우에는 'null'을 반환한다.</ko>
|
|
3168
|
-
* @property {set} set Specifies the coordinates to move after the event. It works when the holding value is true <ko>이벤트 이후 이동할 좌표를 지정한다. holding 값이 true일 경우에 동작한다.</ko>
|
|
3169
|
-
* @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>
|
|
3170
|
-
*
|
|
3171
|
-
* @example
|
|
3172
|
-
* ```js
|
|
3173
|
-
* const axes = new eg.Axes({
|
|
3174
|
-
* "x": {
|
|
3175
|
-
* range: [0, 100]
|
|
3176
|
-
* },
|
|
3177
|
-
* "zoom": {
|
|
3178
|
-
* range: [50, 30]
|
|
3179
|
-
* }
|
|
3180
|
-
* }).on("change", function(event) {
|
|
3181
|
-
* // event.pos
|
|
3182
|
-
* // event.delta
|
|
3183
|
-
* // event.input
|
|
3184
|
-
* // event.inputEvent
|
|
3185
|
-
* // event.holding
|
|
3186
|
-
* // event.set
|
|
3187
|
-
* // event.isTrusted
|
|
3188
|
-
*
|
|
3189
|
-
* // if you want to change the coordinates to move after the 'change' event.
|
|
3190
|
-
* // it works when the holding value of the change event is true.
|
|
3191
|
-
* event.holding && event.set({x: 10});
|
|
3192
|
-
* });
|
|
3193
|
-
* ```
|
|
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
|
+
* ```
|
|
3194
3173
|
*/
|
|
3195
3174
|
__proto.triggerChange = function (pos, depaPos, option, holding) {
|
|
3196
3175
|
var _this = this;
|
|
@@ -3227,42 +3206,42 @@ version: 4.12.0-beta.2
|
|
|
3227
3206
|
}
|
|
3228
3207
|
return !event.isCanceled();
|
|
3229
3208
|
};
|
|
3230
|
-
/**
|
|
3231
|
-
* This event is fired when animation starts.
|
|
3232
|
-
* @ko 에니메이션이 시작할 때 발생한다.
|
|
3233
|
-
* @event Axes#animationStart
|
|
3234
|
-
* @type {object}
|
|
3235
|
-
* @property {Object.<string, number>} depaPos The coordinates when animation starts<ko>애니메이션이 시작 되었을 때의 좌표 </ko>
|
|
3236
|
-
* @property {Object.<string, number>} destPos The coordinates to move to. If you change this value, you can run the animation<ko>이동할 좌표. 이값을 변경하여 애니메이션을 동작시킬수 있다</ko>
|
|
3237
|
-
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>좌표의 변화량</ko>
|
|
3238
|
-
* @property {Number} duration Duration of the animation (unit: ms). If you change this value, you can control the animation duration time.<ko>애니메이션 진행 시간(단위: ms). 이값을 변경하여 애니메이션의 이동시간을 조절할 수 있다.</ko>
|
|
3239
|
-
* @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>
|
|
3240
|
-
* @property {Object} inputEvent The event object received from inputType <ko>inputType으로 부터 받은 이벤트 객체</ko>
|
|
3241
|
-
* @property {setTo} setTo Specifies the animation coordinates to move after the event <ko>이벤트 이후 이동할 애니메이션 좌표를 지정한다</ko>
|
|
3242
|
-
* @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>
|
|
3243
|
-
*
|
|
3244
|
-
* @example
|
|
3245
|
-
* ```js
|
|
3246
|
-
* const axes = new eg.Axes({
|
|
3247
|
-
* "x": {
|
|
3248
|
-
* range: [0, 100]
|
|
3249
|
-
* },
|
|
3250
|
-
* "zoom": {
|
|
3251
|
-
* range: [50, 30]
|
|
3252
|
-
* }
|
|
3253
|
-
* }).on("release", function(event) {
|
|
3254
|
-
* // event.depaPos
|
|
3255
|
-
* // event.destPos
|
|
3256
|
-
* // event.delta
|
|
3257
|
-
* // event.input
|
|
3258
|
-
* // event.inputEvent
|
|
3259
|
-
* // event.setTo
|
|
3260
|
-
* // event.isTrusted
|
|
3261
|
-
*
|
|
3262
|
-
* // if you want to change the animation coordinates to move after the 'animationStart' event.
|
|
3263
|
-
* event.setTo({x: 10}, 2000);
|
|
3264
|
-
* });
|
|
3265
|
-
* ```
|
|
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
|
+
* ```
|
|
3266
3245
|
*/
|
|
3267
3246
|
__proto.triggerAnimationStart = function (param) {
|
|
3268
3247
|
var _a = this._getRoundPos(param.destPos, param.depaPos),
|
|
@@ -3275,26 +3254,26 @@ version: 4.12.0-beta.2
|
|
|
3275
3254
|
this._axes.trigger(event);
|
|
3276
3255
|
return !event.isCanceled();
|
|
3277
3256
|
};
|
|
3278
|
-
/**
|
|
3279
|
-
* This event is fired when animation ends.
|
|
3280
|
-
* @ko 에니메이션이 끝났을 때 발생한다.
|
|
3281
|
-
* @event Axes#animationEnd
|
|
3282
|
-
* @type {object}
|
|
3283
|
-
* @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>
|
|
3284
|
-
*
|
|
3285
|
-
* @example
|
|
3286
|
-
* ```js
|
|
3287
|
-
* const axes = new eg.Axes({
|
|
3288
|
-
* "x": {
|
|
3289
|
-
* range: [0, 100]
|
|
3290
|
-
* },
|
|
3291
|
-
* "zoom": {
|
|
3292
|
-
* range: [50, 30]
|
|
3293
|
-
* }
|
|
3294
|
-
* }).on("animationEnd", function(event) {
|
|
3295
|
-
* // event.isTrusted
|
|
3296
|
-
* });
|
|
3297
|
-
* ```
|
|
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
|
+
* ```
|
|
3298
3277
|
*/
|
|
3299
3278
|
__proto.triggerAnimationEnd = function (isTrusted) {
|
|
3300
3279
|
if (isTrusted === void 0) {
|
|
@@ -3304,26 +3283,26 @@ version: 4.12.0-beta.2
|
|
|
3304
3283
|
isTrusted: isTrusted
|
|
3305
3284
|
}));
|
|
3306
3285
|
};
|
|
3307
|
-
/**
|
|
3308
|
-
* This event is fired when all actions have been completed.
|
|
3309
|
-
* @ko 에니메이션이 끝났을 때 발생한다.
|
|
3310
|
-
* @event Axes#finish
|
|
3311
|
-
* @type {object}
|
|
3312
|
-
* @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>
|
|
3313
|
-
*
|
|
3314
|
-
* @example
|
|
3315
|
-
* ```js
|
|
3316
|
-
* const axes = new eg.Axes({
|
|
3317
|
-
* "x": {
|
|
3318
|
-
* range: [0, 100]
|
|
3319
|
-
* },
|
|
3320
|
-
* "zoom": {
|
|
3321
|
-
* range: [50, 30]
|
|
3322
|
-
* }
|
|
3323
|
-
* }).on("finish", function(event) {
|
|
3324
|
-
* // event.isTrusted
|
|
3325
|
-
* });
|
|
3326
|
-
* ```
|
|
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
|
+
* ```
|
|
3327
3306
|
*/
|
|
3328
3307
|
__proto.triggerFinish = function (isTrusted) {
|
|
3329
3308
|
if (isTrusted === void 0) {
|
|
@@ -3405,9 +3384,9 @@ version: 4.12.0-beta.2
|
|
|
3405
3384
|
return InterruptManager;
|
|
3406
3385
|
}();
|
|
3407
3386
|
|
|
3408
|
-
/*
|
|
3409
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
3410
|
-
* egjs projects are licensed under the MIT license
|
|
3387
|
+
/*
|
|
3388
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
3389
|
+
* egjs projects are licensed under the MIT license
|
|
3411
3390
|
*/
|
|
3412
3391
|
var getInsidePosition = function (destPos, range, circular, bounce) {
|
|
3413
3392
|
var toDestPos = destPos;
|
|
@@ -3536,9 +3515,9 @@ version: 4.12.0-beta.2
|
|
|
3536
3515
|
});
|
|
3537
3516
|
this._complementOptions();
|
|
3538
3517
|
};
|
|
3539
|
-
/**
|
|
3540
|
-
* set up 'css' expression
|
|
3541
|
-
* @private
|
|
3518
|
+
/**
|
|
3519
|
+
* set up 'css' expression
|
|
3520
|
+
* @private
|
|
3542
3521
|
*/
|
|
3543
3522
|
__proto._complementOptions = function () {
|
|
3544
3523
|
var _this = this;
|
|
@@ -4434,15 +4413,15 @@ version: 4.12.0-beta.2
|
|
|
4434
4413
|
complete();
|
|
4435
4414
|
}
|
|
4436
4415
|
};
|
|
4437
|
-
/**
|
|
4438
|
-
* Get estimated final value.
|
|
4439
|
-
*
|
|
4440
|
-
* If destPos is within the 'error range' of the original intended position, the initial intended position is returned.
|
|
4441
|
-
* - eg. original intended pos: 100, destPos: 100.0000000004 ==> return 100;
|
|
4442
|
-
* 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.
|
|
4443
|
-
* - eg. original intended pos: 100.123 destPos: 50.12345 => return 50.123
|
|
4444
|
-
* @param originalIntendedPos
|
|
4445
|
-
* @param destPos
|
|
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
|
|
4446
4425
|
*/
|
|
4447
4426
|
__proto._getFinalPos = function (destPos, originalIntendedPos) {
|
|
4448
4427
|
var _this = this;
|
|
@@ -4568,111 +4547,111 @@ version: 4.12.0-beta.2
|
|
|
4568
4547
|
return EasingManager;
|
|
4569
4548
|
}(AnimationManager);
|
|
4570
4549
|
|
|
4571
|
-
/**
|
|
4572
|
-
* @typedef {Object} AxisOption The Axis information. The key of the axis specifies the name to use as the logical virtual coordinate system.
|
|
4573
|
-
* @ko 축 정보. 축의 키는 논리적인 가상 좌표계로 사용할 이름을 지정한다.
|
|
4574
|
-
* @param {Number[]} [range] The range of coordinate <ko>좌표 범위</ko>
|
|
4575
|
-
* @param {Number} [range[0]=0] The coordinate of the minimum <ko>최소 좌표</ko>
|
|
4576
|
-
* @param {Number} [range[1]=0] The coordinate of the maximum <ko>최대 좌표</ko>
|
|
4577
|
-
* @param {Number} [startPos=range[0]] The coordinates to be moved when creating an instance <ko>인스턴스 생성시 이동할 좌표</ko>
|
|
4578
|
-
* @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>
|
|
4579
|
-
* @param {Number} [bounce[0]=0] The size of coordinate of the minimum area <ko>최소 좌표 바운스 영역의 크기</ko>
|
|
4580
|
-
* @param {Number} [bounce[1]=0] The size of coordinate of the maximum area <ko>최대 좌표 바운스 영역의 크기</ko>
|
|
4581
|
-
* @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>
|
|
4582
|
-
* @param {Boolean} [circular[0]=false] Indicates whether to circulate to the coordinate of the minimum <ko>최소 좌표 방향의 순환 여부</ko>
|
|
4583
|
-
* @param {Boolean} [circular[1]=false] Indicates whether to circulate to the coordinate of the maximum <ko>최대 좌표 방향의 순환 여부</ko>
|
|
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>
|
|
4584
4563
|
**/
|
|
4585
|
-
/**
|
|
4586
|
-
* @typedef {Object} AxesOption The option object of the eg.Axes module
|
|
4587
|
-
* @ko eg.Axes 모듈의 옵션 객체
|
|
4588
|
-
* @param {Function} [easing=easing.easeOutCubic] The easing function to apply to an animation <ko>애니메이션에 적용할 easing 함수</ko>
|
|
4589
|
-
* @param {Number} [maximumDuration=Infinity] Maximum duration of the animation <ko>가속도에 의해 애니메이션이 동작할 때의 최대 좌표 이동 시간</ko>
|
|
4590
|
-
* @param {Number} [minimumDuration=0] Minimum duration of the animation <ko>가속도에 의해 애니메이션이 동작할 때의 최소 좌표 이동 시간</ko>
|
|
4591
|
-
* @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>
|
|
4592
|
-
* @param {Boolean} [interruptable=true] Indicates whether an animation is interruptible.
|
|
4593
|
-
* - true: It can be paused or stopped by user action or the API.
|
|
4594
|
-
* - false: It cannot be paused or stopped by user action or the API while it is running.
|
|
4595
|
-
* <ko>진행 중인 애니메이션 중지 가능 여부.
|
|
4596
|
-
* - true: 사용자의 동작이나 API로 애니메이션을 중지할 수 있다.
|
|
4597
|
-
* - false: 애니메이션이 진행 중일 때는 사용자의 동작이나 API가 적용되지 않는다</ko>
|
|
4598
|
-
* @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)
|
|
4599
|
-
* [Details](https://github.com/naver/egjs-axes/wiki/round-option)<ko>반올림 단위. 예를 들어 0.1 은 소숫점 0.1 까지 반올림(6.1234 => 6.1), 5 는 5 단위로 반올림(93 => 95).
|
|
4600
|
-
* [상세내용](https://github.com/naver/egjs-axes/wiki/round-option)</ko>
|
|
4601
|
-
* @param {Boolean} [nested=false] Whether the event propagates to other instances when the coordinates reach the end of the movable area <ko>좌표가 이동 가능한 영역의 끝까지 도달했을 때 다른 인스턴스들로의 이벤트 전파 여부</ko>
|
|
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>
|
|
4602
4581
|
**/
|
|
4603
|
-
/**
|
|
4604
|
-
* 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.
|
|
4605
|
-
* @ko 터치 입력 장치나 마우스와 같은 다양한 입력 장치를 통해 전달 받은 사용자의 동작을 논리적인 가상 좌표로 변경하는 모듈이다. 사용자 동작에 반응하는 UI를 손쉽게 만들수 있다.
|
|
4606
|
-
* @extends eg.Component
|
|
4607
|
-
*
|
|
4608
|
-
* @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>
|
|
4609
|
-
* @param {AxesOption} [options={}] The option object of the eg.Axes module<ko>eg.Axes 모듈의 옵션 객체</ko>
|
|
4610
|
-
* @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>
|
|
4611
|
-
*
|
|
4612
|
-
* @support {"ie": "10+", "ch" : "latest", "ff" : "latest", "sf" : "latest", "edge" : "latest", "ios" : "7+", "an" : "2.3+ (except 3.x)"}
|
|
4613
|
-
* @example
|
|
4614
|
-
* ```js
|
|
4615
|
-
* // 1. Initialize eg.Axes
|
|
4616
|
-
* const axes = new eg.Axes({
|
|
4617
|
-
* something1: {
|
|
4618
|
-
* range: [0, 150],
|
|
4619
|
-
* bounce: 50
|
|
4620
|
-
* },
|
|
4621
|
-
* something2: {
|
|
4622
|
-
* range: [0, 200],
|
|
4623
|
-
* bounce: 100
|
|
4624
|
-
* },
|
|
4625
|
-
* somethingN: {
|
|
4626
|
-
* range: [1, 10],
|
|
4627
|
-
* }
|
|
4628
|
-
* }, {
|
|
4629
|
-
* deceleration : 0.0024
|
|
4630
|
-
* });
|
|
4631
|
-
*
|
|
4632
|
-
* // 2. attach event handler
|
|
4633
|
-
* axes.on({
|
|
4634
|
-
* "hold" : function(evt) {
|
|
4635
|
-
* },
|
|
4636
|
-
* "release" : function(evt) {
|
|
4637
|
-
* },
|
|
4638
|
-
* "animationStart" : function(evt) {
|
|
4639
|
-
* },
|
|
4640
|
-
* "animationEnd" : function(evt) {
|
|
4641
|
-
* },
|
|
4642
|
-
* "change" : function(evt) {
|
|
4643
|
-
* }
|
|
4644
|
-
* });
|
|
4645
|
-
*
|
|
4646
|
-
* // 3. Initialize inputTypes
|
|
4647
|
-
* const panInputArea = new eg.Axes.PanInput("#area", {
|
|
4648
|
-
* scale: [0.5, 1]
|
|
4649
|
-
* });
|
|
4650
|
-
* const panInputHmove = new eg.Axes.PanInput("#hmove");
|
|
4651
|
-
* const panInputVmove = new eg.Axes.PanInput("#vmove");
|
|
4652
|
-
* const pinchInputArea = new eg.Axes.PinchInput("#area", {
|
|
4653
|
-
* scale: 1.5
|
|
4654
|
-
* });
|
|
4655
|
-
*
|
|
4656
|
-
* // 4. Connect eg.Axes and InputTypes
|
|
4657
|
-
* // [PanInput] When the mouse or touchscreen is down and moved.
|
|
4658
|
-
* // Connect the 'something2' axis to the mouse or touchscreen x position and
|
|
4659
|
-
* // connect the 'somethingN' axis to the mouse or touchscreen y position.
|
|
4660
|
-
* axes.connect(["something2", "somethingN"], panInputArea); // or axes.connect("something2 somethingN", panInputArea);
|
|
4661
|
-
*
|
|
4662
|
-
* // Connect only one 'something1' axis to the mouse or touchscreen x position.
|
|
4663
|
-
* axes.connect(["something1"], panInputHmove); // or axes.connect("something1", panInputHmove);
|
|
4664
|
-
*
|
|
4665
|
-
* // Connect only one 'something2' axis to the mouse or touchscreen y position.
|
|
4666
|
-
* axes.connect(["", "something2"], panInputVmove); // or axes.connect(" something2", panInputVmove);
|
|
4667
|
-
*
|
|
4668
|
-
* // [PinchInput] Connect 'something2' axis when two pointers are moving toward (zoom-in) or away from each other (zoom-out).
|
|
4669
|
-
* axes.connect("something2", pinchInputArea);
|
|
4670
|
-
* ```
|
|
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
|
+
* ```
|
|
4671
4650
|
*/
|
|
4672
4651
|
var Axes = /*#__PURE__*/function (_super) {
|
|
4673
4652
|
__extends$1(Axes, _super);
|
|
4674
|
-
/**
|
|
4675
|
-
*
|
|
4653
|
+
/**
|
|
4654
|
+
*
|
|
4676
4655
|
*/
|
|
4677
4656
|
function Axes(axis, options, startPos) {
|
|
4678
4657
|
if (axis === void 0) {
|
|
@@ -4712,23 +4691,23 @@ version: 4.12.0-beta.2
|
|
|
4712
4691
|
}
|
|
4713
4692
|
var __proto = Axes.prototype;
|
|
4714
4693
|
Object.defineProperty(__proto, "holding", {
|
|
4715
|
-
/**
|
|
4716
|
-
* @name Axes#holding
|
|
4717
|
-
* @desc Returns true if at least one input is in progress.
|
|
4718
|
-
* @ko 입력이 하나 이상 진행 중인지 여부를 반환한다.
|
|
4719
|
-
*
|
|
4720
|
-
* @readonly
|
|
4721
|
-
* @type {boolean}
|
|
4722
|
-
* @example
|
|
4723
|
-
* ```js
|
|
4724
|
-
* const axes = new eg.Axes({
|
|
4725
|
-
* x: {
|
|
4726
|
-
* range: [0, 100],
|
|
4727
|
-
* },
|
|
4728
|
-
* });
|
|
4729
|
-
*
|
|
4730
|
-
* axes.holding
|
|
4731
|
-
* ```
|
|
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
|
+
* ```
|
|
4732
4711
|
*/
|
|
4733
4712
|
get: function () {
|
|
4734
4713
|
return this.eventManager.holdingCount > 0;
|
|
@@ -4736,30 +4715,30 @@ version: 4.12.0-beta.2
|
|
|
4736
4715
|
enumerable: false,
|
|
4737
4716
|
configurable: true
|
|
4738
4717
|
});
|
|
4739
|
-
/**
|
|
4740
|
-
* Connect the axis of eg.Axes to the inputType.
|
|
4741
|
-
* @ko eg.Axes의 축과 inputType을 연결한다
|
|
4742
|
-
* @param {(String[]|String)} axes The name of the axis to associate with inputType <ko>inputType과 연결할 축의 이름</ko>
|
|
4743
|
-
* @param {Object} inputType The inputType instance to associate with the axis of eg.Axes <ko>eg.Axes의 축과 연결할 inputType 인스턴스</ko>
|
|
4744
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4745
|
-
* @example
|
|
4746
|
-
* ```js
|
|
4747
|
-
* const axes = new eg.Axes({
|
|
4748
|
-
* "x": {
|
|
4749
|
-
* range: [0, 100]
|
|
4750
|
-
* },
|
|
4751
|
-
* "xOther": {
|
|
4752
|
-
* range: [-100, 100]
|
|
4753
|
-
* }
|
|
4754
|
-
* });
|
|
4755
|
-
*
|
|
4756
|
-
* axes.connect("x", new eg.Axes.PanInput("#area1"))
|
|
4757
|
-
* .connect("x xOther", new eg.Axes.PanInput("#area2"))
|
|
4758
|
-
* .connect(" xOther", new eg.Axes.PanInput("#area3"))
|
|
4759
|
-
* .connect(["x"], new eg.Axes.PanInput("#area4"))
|
|
4760
|
-
* .connect(["xOther", "x"], new eg.Axes.PanInput("#area5"))
|
|
4761
|
-
* .connect(["", "xOther"], new eg.Axes.PanInput("#area6"));
|
|
4762
|
-
* ```
|
|
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
|
+
* ```
|
|
4763
4742
|
*/
|
|
4764
4743
|
__proto.connect = function (axes, inputType) {
|
|
4765
4744
|
var mapped;
|
|
@@ -4777,33 +4756,33 @@ version: 4.12.0-beta.2
|
|
|
4777
4756
|
this._inputs.push(inputType);
|
|
4778
4757
|
return this;
|
|
4779
4758
|
};
|
|
4780
|
-
/**
|
|
4781
|
-
* Disconnect the axis of eg.Axes from the inputType.
|
|
4782
|
-
* @ko eg.Axes의 축과 inputType의 연결을 끊는다.
|
|
4783
|
-
* @param {Object} [inputType] An inputType instance associated with the axis of eg.Axes <ko>eg.Axes의 축과 연결한 inputType 인스턴스</ko>
|
|
4784
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4785
|
-
* @example
|
|
4786
|
-
* ```js
|
|
4787
|
-
* const axes = new eg.Axes({
|
|
4788
|
-
* "x": {
|
|
4789
|
-
* range: [0, 100]
|
|
4790
|
-
* },
|
|
4791
|
-
* "xOther": {
|
|
4792
|
-
* range: [-100, 100]
|
|
4793
|
-
* }
|
|
4794
|
-
* });
|
|
4795
|
-
*
|
|
4796
|
-
* const input1 = new eg.Axes.PanInput("#area1");
|
|
4797
|
-
* const input2 = new eg.Axes.PanInput("#area2");
|
|
4798
|
-
* const input3 = new eg.Axes.PanInput("#area3");
|
|
4799
|
-
*
|
|
4800
|
-
* axes.connect("x", input1);
|
|
4801
|
-
* .connect("x xOther", input2)
|
|
4802
|
-
* .connect(["xOther", "x"], input3);
|
|
4803
|
-
*
|
|
4804
|
-
* axes.disconnect(input1); // disconnects input1
|
|
4805
|
-
* axes.disconnect(); // disconnects all of them
|
|
4806
|
-
* ```
|
|
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
|
+
* ```
|
|
4807
4786
|
*/
|
|
4808
4787
|
__proto.disconnect = function (inputType) {
|
|
4809
4788
|
if (inputType) {
|
|
@@ -4820,60 +4799,60 @@ version: 4.12.0-beta.2
|
|
|
4820
4799
|
}
|
|
4821
4800
|
return this;
|
|
4822
4801
|
};
|
|
4823
|
-
/**
|
|
4824
|
-
* Returns the current position of the coordinates.
|
|
4825
|
-
* @ko 좌표의 현재 위치를 반환한다
|
|
4826
|
-
* @param {Object} [axes] The names of the axis <ko>축 이름들</ko>
|
|
4827
|
-
* @return {Object.<string, number>} Axis coordinate information <ko>축 좌표 정보</ko>
|
|
4828
|
-
* @example
|
|
4829
|
-
* ```js
|
|
4830
|
-
* const axes = new eg.Axes({
|
|
4831
|
-
* "x": {
|
|
4832
|
-
* range: [0, 100]
|
|
4833
|
-
* },
|
|
4834
|
-
* "xOther": {
|
|
4835
|
-
* range: [-100, 100]
|
|
4836
|
-
* },
|
|
4837
|
-
* "zoom": {
|
|
4838
|
-
* range: [50, 30]
|
|
4839
|
-
* }
|
|
4840
|
-
* });
|
|
4841
|
-
*
|
|
4842
|
-
* axes.get(); // {"x": 0, "xOther": -100, "zoom": 50}
|
|
4843
|
-
* axes.get(["x", "zoom"]); // {"x": 0, "zoom": 50}
|
|
4844
|
-
* ```
|
|
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
|
+
* ```
|
|
4845
4824
|
*/
|
|
4846
4825
|
__proto.get = function (axes) {
|
|
4847
4826
|
return this.axisManager.get(axes);
|
|
4848
4827
|
};
|
|
4849
|
-
/**
|
|
4850
|
-
* Moves an axis to specific coordinates.
|
|
4851
|
-
* @ko 좌표를 이동한다.
|
|
4852
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
4853
|
-
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>애니메이션 진행 시간(단위: ms)</ko>
|
|
4854
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4855
|
-
* @example
|
|
4856
|
-
* ```js
|
|
4857
|
-
* const axes = new eg.Axes({
|
|
4858
|
-
* "x": {
|
|
4859
|
-
* range: [0, 100]
|
|
4860
|
-
* },
|
|
4861
|
-
* "xOther": {
|
|
4862
|
-
* range: [-100, 100]
|
|
4863
|
-
* },
|
|
4864
|
-
* "zoom": {
|
|
4865
|
-
* range: [50, 30]
|
|
4866
|
-
* }
|
|
4867
|
-
* });
|
|
4868
|
-
*
|
|
4869
|
-
* axes.setTo({"x": 30, "zoom": 60});
|
|
4870
|
-
* axes.get(); // {"x": 30, "xOther": -100, "zoom": 60}
|
|
4871
|
-
*
|
|
4872
|
-
* axes.setTo({"x": 100, "xOther": 60}, 1000); // animatation
|
|
4873
|
-
*
|
|
4874
|
-
* // after 1000 ms
|
|
4875
|
-
* axes.get(); // {"x": 100, "xOther": 60, "zoom": 60}
|
|
4876
|
-
* ```
|
|
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
|
+
* ```
|
|
4877
4856
|
*/
|
|
4878
4857
|
__proto.setTo = function (pos, duration) {
|
|
4879
4858
|
if (duration === void 0) {
|
|
@@ -4882,34 +4861,34 @@ version: 4.12.0-beta.2
|
|
|
4882
4861
|
this.animationManager.setTo(pos, duration);
|
|
4883
4862
|
return this;
|
|
4884
4863
|
};
|
|
4885
|
-
/**
|
|
4886
|
-
* Moves an axis from the current coordinates to specific coordinates.
|
|
4887
|
-
* @ko 현재 좌표를 기준으로 좌표를 이동한다.
|
|
4888
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
4889
|
-
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>애니메이션 진행 시간(단위: ms)</ko>
|
|
4890
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4891
|
-
* @example
|
|
4892
|
-
* ```js
|
|
4893
|
-
* const axes = new eg.Axes({
|
|
4894
|
-
* "x": {
|
|
4895
|
-
* range: [0, 100]
|
|
4896
|
-
* },
|
|
4897
|
-
* "xOther": {
|
|
4898
|
-
* range: [-100, 100]
|
|
4899
|
-
* },
|
|
4900
|
-
* "zoom": {
|
|
4901
|
-
* range: [50, 30]
|
|
4902
|
-
* }
|
|
4903
|
-
* });
|
|
4904
|
-
*
|
|
4905
|
-
* axes.setBy({"x": 30, "zoom": 10});
|
|
4906
|
-
* axes.get(); // {"x": 30, "xOther": -100, "zoom": 60}
|
|
4907
|
-
*
|
|
4908
|
-
* axes.setBy({"x": 70, "xOther": 60}, 1000); // animatation
|
|
4909
|
-
*
|
|
4910
|
-
* // after 1000 ms
|
|
4911
|
-
* axes.get(); // {"x": 100, "xOther": -40, "zoom": 60}
|
|
4912
|
-
* ```
|
|
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
|
+
* ```
|
|
4913
4892
|
*/
|
|
4914
4893
|
__proto.setBy = function (pos, duration) {
|
|
4915
4894
|
if (duration === void 0) {
|
|
@@ -4918,230 +4897,230 @@ version: 4.12.0-beta.2
|
|
|
4918
4897
|
this.animationManager.setBy(pos, duration);
|
|
4919
4898
|
return this;
|
|
4920
4899
|
};
|
|
4921
|
-
/**
|
|
4922
|
-
* Change the options of Axes instance.
|
|
4923
|
-
* @ko 인스턴스의 옵션을 변경한다.
|
|
4924
|
-
* @param {AxesOption} options Axes options to change <ko>변경할 옵션 목록</ko>
|
|
4925
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4926
|
-
* @example
|
|
4927
|
-
* ```js
|
|
4928
|
-
* const axes = new eg.Axes({
|
|
4929
|
-
* "x": {
|
|
4930
|
-
* range: [0, 100]
|
|
4931
|
-
* },
|
|
4932
|
-
* }, {
|
|
4933
|
-
* round: 10,
|
|
4934
|
-
* });
|
|
4935
|
-
*
|
|
4936
|
-
* axes.setTo({"x": 48});
|
|
4937
|
-
* axes.get(); // {"x": 50}
|
|
4938
|
-
*
|
|
4939
|
-
* axes.setOptions({
|
|
4940
|
-
* round: 1,
|
|
4941
|
-
* });
|
|
4942
|
-
*
|
|
4943
|
-
* axes.setTo({"x": 48});
|
|
4944
|
-
* axes.get(); // {"x": 48}
|
|
4945
|
-
* ```
|
|
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
|
+
* ```
|
|
4946
4925
|
*/
|
|
4947
4926
|
__proto.setOptions = function (options) {
|
|
4948
4927
|
this.options = __assign$1(__assign$1({}, this.options), options);
|
|
4949
4928
|
this.animationManager.setOptions(options);
|
|
4950
4929
|
return this;
|
|
4951
4930
|
};
|
|
4952
|
-
/**
|
|
4953
|
-
* Change the information of an existing axis.
|
|
4954
|
-
* @ko 존재하는 축의 정보를 변경한다.
|
|
4955
|
-
* @param {Object.<string, AxisOption>} axis Axis options to change <ko>변경할 축의 정보</ko>
|
|
4956
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4957
|
-
* @example
|
|
4958
|
-
* ```js
|
|
4959
|
-
* const axes = new eg.Axes({
|
|
4960
|
-
* "x": {
|
|
4961
|
-
* range: [0, 100]
|
|
4962
|
-
* },
|
|
4963
|
-
* });
|
|
4964
|
-
*
|
|
4965
|
-
* axes.setTo({"x": 150});
|
|
4966
|
-
* axes.get(); // {"x": 100}
|
|
4967
|
-
*
|
|
4968
|
-
* axes.setAxis({
|
|
4969
|
-
* "x": {
|
|
4970
|
-
* range: [0, 200]
|
|
4971
|
-
* },
|
|
4972
|
-
* });
|
|
4973
|
-
*
|
|
4974
|
-
* axes.setTo({"x": 150});
|
|
4975
|
-
* axes.get(); // {"x": 150}
|
|
4976
|
-
* ```
|
|
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
|
+
* ```
|
|
4977
4956
|
*/
|
|
4978
4957
|
__proto.setAxis = function (axis) {
|
|
4979
4958
|
this.axisManager.setAxis(axis);
|
|
4980
4959
|
return this;
|
|
4981
4960
|
};
|
|
4982
|
-
/**
|
|
4983
|
-
* Stop an animation in progress.
|
|
4984
|
-
* @ko 재생 중인 애니메이션을 정지한다.
|
|
4985
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
4986
|
-
* @example
|
|
4987
|
-
* ```js
|
|
4988
|
-
* const axes = new eg.Axes({
|
|
4989
|
-
* "x": {
|
|
4990
|
-
* range: [0, 100]
|
|
4991
|
-
* },
|
|
4992
|
-
* });
|
|
4993
|
-
*
|
|
4994
|
-
* axes.setTo({"x": 10}, 1000); // start animatation
|
|
4995
|
-
*
|
|
4996
|
-
* // after 500 ms
|
|
4997
|
-
* axes.stopAnimation(); // stop animation during movement.
|
|
4998
|
-
* ```
|
|
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
|
+
* ```
|
|
4999
4978
|
*/
|
|
5000
4979
|
__proto.stopAnimation = function () {
|
|
5001
4980
|
this.animationManager.stopAnimation();
|
|
5002
4981
|
this.animationManager.finish(false);
|
|
5003
4982
|
return this;
|
|
5004
4983
|
};
|
|
5005
|
-
/**
|
|
5006
|
-
* Change the destination of an animation in progress.
|
|
5007
|
-
* @ko 재생 중인 애니메이션의 목적지와 진행 시간을 변경한다.
|
|
5008
|
-
* @param {UpdateAnimationOption} pos The coordinate to move to <ko>이동할 좌표</ko>
|
|
5009
|
-
* @return {eg.Axes} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5010
|
-
* @example
|
|
5011
|
-
* ```js
|
|
5012
|
-
* const axes = new eg.Axes({
|
|
5013
|
-
* "x": {
|
|
5014
|
-
* range: [0, 200]
|
|
5015
|
-
* },
|
|
5016
|
-
* "y": {
|
|
5017
|
-
* range: [0, 200]
|
|
5018
|
-
* }
|
|
5019
|
-
* });
|
|
5020
|
-
*
|
|
5021
|
-
* axes.setTo({"x": 50, "y": 50}, 1000); // trigger animation by setTo
|
|
5022
|
-
*
|
|
5023
|
-
* // after 500 ms
|
|
5024
|
-
* axes.updateAnimation({destPos: {"x": 100, "y": 100}}); // animation will end after 500 ms, at {"x": 100, "y": 100}
|
|
5025
|
-
*
|
|
5026
|
-
* // after 500 ms
|
|
5027
|
-
* axes.setTo({"x": 50, "y": 50}, 1000); // trigger animation by setTo
|
|
5028
|
-
*
|
|
5029
|
-
* // after 700 ms
|
|
5030
|
-
* 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.
|
|
5031
|
-
* ```
|
|
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
|
+
* ```
|
|
5032
5011
|
*/
|
|
5033
5012
|
__proto.updateAnimation = function (options) {
|
|
5034
5013
|
this.animationManager.updateAnimation(options);
|
|
5035
5014
|
return this;
|
|
5036
5015
|
};
|
|
5037
|
-
/**
|
|
5038
|
-
* Returns whether there is a coordinate in the bounce area of the target axis.
|
|
5039
|
-
* @ko 대상 축 중 bounce영역에 좌표가 존재하는지를 반환한다
|
|
5040
|
-
* @param {Object} [axes] The names of the axis <ko>축 이름들</ko>
|
|
5041
|
-
* @return {Boolen} Whether the bounce area exists. <ko>bounce 영역 존재 여부</ko>
|
|
5042
|
-
* @example
|
|
5043
|
-
* ```js
|
|
5044
|
-
* const axes = new eg.Axes({
|
|
5045
|
-
* "x": {
|
|
5046
|
-
* range: [0, 100]
|
|
5047
|
-
* },
|
|
5048
|
-
* "xOther": {
|
|
5049
|
-
* range: [-100, 100]
|
|
5050
|
-
* },
|
|
5051
|
-
* "zoom": {
|
|
5052
|
-
* range: [50, 30]
|
|
5053
|
-
* }
|
|
5054
|
-
* });
|
|
5055
|
-
*
|
|
5056
|
-
* axes.isBounceArea(["x"]);
|
|
5057
|
-
* axes.isBounceArea(["x", "zoom"]);
|
|
5058
|
-
* axes.isBounceArea();
|
|
5059
|
-
* ```
|
|
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
|
+
* ```
|
|
5060
5039
|
*/
|
|
5061
5040
|
__proto.isBounceArea = function (axes) {
|
|
5062
5041
|
return this.axisManager.isOutside(axes);
|
|
5063
5042
|
};
|
|
5064
|
-
/**
|
|
5065
|
-
* Destroys properties, and events used in a module and disconnect all connections to inputTypes.
|
|
5066
|
-
* @ko 모듈에 사용한 속성, 이벤트를 해제한다. 모든 inputType과의 연결을 끊는다.
|
|
5043
|
+
/**
|
|
5044
|
+
* Destroys properties, and events used in a module and disconnect all connections to inputTypes.
|
|
5045
|
+
* @ko 모듈에 사용한 속성, 이벤트를 해제한다. 모든 inputType과의 연결을 끊는다.
|
|
5067
5046
|
*/
|
|
5068
5047
|
__proto.destroy = function () {
|
|
5069
5048
|
this.disconnect();
|
|
5070
5049
|
this.eventManager.destroy();
|
|
5071
5050
|
};
|
|
5072
|
-
/**
|
|
5073
|
-
* @name VERSION
|
|
5074
|
-
* @desc Version info string
|
|
5075
|
-
* @ko 버전정보 문자열
|
|
5076
|
-
*
|
|
5077
|
-
* @constant
|
|
5078
|
-
* @type {String}
|
|
5079
|
-
* @example
|
|
5080
|
-
* ```js
|
|
5081
|
-
* eg.Axes.VERSION; // ex) 3.3.3
|
|
5082
|
-
* ```
|
|
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
|
+
* ```
|
|
5083
5062
|
*/
|
|
5084
|
-
Axes.VERSION = "3.9.
|
|
5063
|
+
Axes.VERSION = "3.9.0";
|
|
5085
5064
|
/* eslint-enable */
|
|
5086
|
-
/**
|
|
5087
|
-
* @name TRANSFORM
|
|
5088
|
-
* @desc Returns the transform attribute with CSS vendor prefixes.
|
|
5089
|
-
* @ko CSS vendor prefixes를 붙인 transform 속성을 반환한다.
|
|
5090
|
-
*
|
|
5091
|
-
* @constant
|
|
5092
|
-
* @type {String}
|
|
5093
|
-
* @example
|
|
5094
|
-
* ```js
|
|
5095
|
-
* eg.Axes.TRANSFORM; // "transform" or "webkitTransform"
|
|
5096
|
-
* ```
|
|
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
|
+
* ```
|
|
5097
5076
|
*/
|
|
5098
5077
|
Axes.TRANSFORM = TRANSFORM;
|
|
5099
|
-
/**
|
|
5100
|
-
* @name DIRECTION_NONE
|
|
5101
|
-
* @constant
|
|
5102
|
-
* @type {Number}
|
|
5078
|
+
/**
|
|
5079
|
+
* @name DIRECTION_NONE
|
|
5080
|
+
* @constant
|
|
5081
|
+
* @type {Number}
|
|
5103
5082
|
*/
|
|
5104
5083
|
Axes.DIRECTION_NONE = DIRECTION_NONE;
|
|
5105
|
-
/**
|
|
5106
|
-
* @name DIRECTION_LEFT
|
|
5107
|
-
* @constant
|
|
5108
|
-
* @type {Number}
|
|
5084
|
+
/**
|
|
5085
|
+
* @name DIRECTION_LEFT
|
|
5086
|
+
* @constant
|
|
5087
|
+
* @type {Number}
|
|
5109
5088
|
*/
|
|
5110
5089
|
Axes.DIRECTION_LEFT = DIRECTION_LEFT;
|
|
5111
|
-
/**
|
|
5112
|
-
* @name DIRECTION_RIGHT
|
|
5113
|
-
* @constant
|
|
5114
|
-
* @type {Number}
|
|
5090
|
+
/**
|
|
5091
|
+
* @name DIRECTION_RIGHT
|
|
5092
|
+
* @constant
|
|
5093
|
+
* @type {Number}
|
|
5115
5094
|
*/
|
|
5116
5095
|
Axes.DIRECTION_RIGHT = DIRECTION_RIGHT;
|
|
5117
|
-
/**
|
|
5118
|
-
* @name DIRECTION_UP
|
|
5119
|
-
* @constant
|
|
5120
|
-
* @type {Number}
|
|
5096
|
+
/**
|
|
5097
|
+
* @name DIRECTION_UP
|
|
5098
|
+
* @constant
|
|
5099
|
+
* @type {Number}
|
|
5121
5100
|
*/
|
|
5122
5101
|
Axes.DIRECTION_UP = DIRECTION_UP;
|
|
5123
|
-
/**
|
|
5124
|
-
* @name DIRECTION_DOWN
|
|
5125
|
-
* @constant
|
|
5126
|
-
* @type {Number}
|
|
5102
|
+
/**
|
|
5103
|
+
* @name DIRECTION_DOWN
|
|
5104
|
+
* @constant
|
|
5105
|
+
* @type {Number}
|
|
5127
5106
|
*/
|
|
5128
5107
|
Axes.DIRECTION_DOWN = DIRECTION_DOWN;
|
|
5129
|
-
/**
|
|
5130
|
-
* @name DIRECTION_HORIZONTAL
|
|
5131
|
-
* @constant
|
|
5132
|
-
* @type {Number}
|
|
5108
|
+
/**
|
|
5109
|
+
* @name DIRECTION_HORIZONTAL
|
|
5110
|
+
* @constant
|
|
5111
|
+
* @type {Number}
|
|
5133
5112
|
*/
|
|
5134
5113
|
Axes.DIRECTION_HORIZONTAL = DIRECTION_HORIZONTAL;
|
|
5135
|
-
/**
|
|
5136
|
-
* @name DIRECTION_VERTICAL
|
|
5137
|
-
* @constant
|
|
5138
|
-
* @type {Number}
|
|
5114
|
+
/**
|
|
5115
|
+
* @name DIRECTION_VERTICAL
|
|
5116
|
+
* @constant
|
|
5117
|
+
* @type {Number}
|
|
5139
5118
|
*/
|
|
5140
5119
|
Axes.DIRECTION_VERTICAL = DIRECTION_VERTICAL;
|
|
5141
|
-
/**
|
|
5142
|
-
* @name DIRECTION_ALL
|
|
5143
|
-
* @constant
|
|
5144
|
-
* @type {Number}
|
|
5120
|
+
/**
|
|
5121
|
+
* @name DIRECTION_ALL
|
|
5122
|
+
* @constant
|
|
5123
|
+
* @type {Number}
|
|
5145
5124
|
*/
|
|
5146
5125
|
Axes.DIRECTION_ALL = DIRECTION_ALL;
|
|
5147
5126
|
__decorate([Computed], Axes.prototype, "holding", null);
|
|
@@ -5149,9 +5128,9 @@ version: 4.12.0-beta.2
|
|
|
5149
5128
|
return Axes;
|
|
5150
5129
|
}(Component);
|
|
5151
5130
|
|
|
5152
|
-
/*
|
|
5153
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
5154
|
-
* egjs projects are licensed under the MIT license
|
|
5131
|
+
/*
|
|
5132
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
5133
|
+
* egjs projects are licensed under the MIT license
|
|
5155
5134
|
*/
|
|
5156
5135
|
// get user's direction
|
|
5157
5136
|
var getDirectionByAngle = function (angle, thresholdAngle) {
|
|
@@ -5161,73 +5140,73 @@ version: 4.12.0-beta.2
|
|
|
5161
5140
|
var toAngle = Math.abs(angle);
|
|
5162
5141
|
return toAngle > thresholdAngle && toAngle < 180 - thresholdAngle ? DIRECTION_VERTICAL : DIRECTION_HORIZONTAL;
|
|
5163
5142
|
};
|
|
5164
|
-
/**
|
|
5165
|
-
* @typedef {Object} PanInputOption The option object of the eg.Axes.PanInput module.
|
|
5166
|
-
* @ko eg.Axes.PanInput 모듈의 옵션 객체
|
|
5167
|
-
* @param {String[]} [inputType=["touch", "mouse", "pointer"]] Types of input devices
|
|
5168
|
-
* - touch: Touch screen
|
|
5169
|
-
* - mouse: Mouse
|
|
5170
|
-
* - pointer: Mouse and touch <ko>입력 장치 종류
|
|
5171
|
-
* - touch: 터치 입력 장치
|
|
5172
|
-
* - mouse: 마우스
|
|
5173
|
-
* - pointer: 마우스 및 터치</ko>
|
|
5174
|
-
* @param {String[]} [inputKey=["any"]] List of key combinations to allow input
|
|
5175
|
-
* - any: any key
|
|
5176
|
-
* - shift: shift key
|
|
5177
|
-
* - ctrl: ctrl key and pinch gesture on the trackpad
|
|
5178
|
-
* - alt: alt key
|
|
5179
|
-
* - meta: meta key
|
|
5180
|
-
* - none: none of these keys are pressed <ko>입력을 허용할 키 조합 목록
|
|
5181
|
-
* - any: 아무 키
|
|
5182
|
-
* - shift: shift 키
|
|
5183
|
-
* - ctrl: ctrl 키 및 트랙패드의 pinch 제스쳐
|
|
5184
|
-
* - alt: alt 키
|
|
5185
|
-
* - meta: meta 키
|
|
5186
|
-
* - none: 아무 키도 눌리지 않은 상태 </ko>
|
|
5187
|
-
* @param {String[]} [inputButton=["left"]] List of buttons to allow input
|
|
5188
|
-
* - left: Left mouse button and normal touch
|
|
5189
|
-
* - middle: Mouse wheel press
|
|
5190
|
-
* - right: Right mouse button <ko>입력을 허용할 버튼 목록
|
|
5191
|
-
* - left: 마우스 왼쪽 버튼
|
|
5192
|
-
* - middle: 마우스 휠 눌림
|
|
5193
|
-
* - right: 마우스 오른쪽 버튼 </ko>
|
|
5194
|
-
* @param {Number[]} [scale] Coordinate scale that a user can move<ko>사용자의 동작으로 이동하는 좌표의 배율</ko>
|
|
5195
|
-
* @param {Number} [scale[0]=1] horizontal axis scale <ko>수평축 배율</ko>
|
|
5196
|
-
* @param {Number} [scale[1]=1] vertical axis scale <ko>수직축 배율</ko>
|
|
5197
|
-
* @param {Number} [thresholdAngle=45] The threshold value that determines whether user action is horizontal or vertical (0~90) <ko>사용자의 동작이 가로 방향인지 세로 방향인지 판단하는 기준 각도(0~90)</ko>
|
|
5198
|
-
* @param {Number} [threshold=0] Minimal pan distance required before recognizing <ko>사용자의 Pan 동작을 인식하기 위해산 최소한의 거리</ko>
|
|
5199
|
-
* @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>
|
|
5200
|
-
* @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>
|
|
5201
|
-
* @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>
|
|
5202
|
-
* @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>
|
|
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>
|
|
5203
5182
|
**/
|
|
5204
|
-
/**
|
|
5205
|
-
* 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.
|
|
5206
|
-
* @ko 마우스나 터치 스크린을 누르고 움직일때의 변화량을 eg.Axes에 전달하는 모듈. 두개 이하의 축을 사용한다.
|
|
5207
|
-
*
|
|
5208
|
-
* @example
|
|
5209
|
-
* ```js
|
|
5210
|
-
* const pan = new eg.Axes.PanInput("#area", {
|
|
5211
|
-
* inputType: ["touch"],
|
|
5212
|
-
* scale: [1, 1.3],
|
|
5213
|
-
* });
|
|
5214
|
-
*
|
|
5215
|
-
* // Connect the 'something2' axis to the mouse or touchscreen x position when the mouse or touchscreen is down and moved.
|
|
5216
|
-
* // Connect the 'somethingN' axis to the mouse or touchscreen y position when the mouse or touchscreen is down and moved.
|
|
5217
|
-
* axes.connect(["something2", "somethingN"], pan); // or axes.connect("something2 somethingN", pan);
|
|
5218
|
-
*
|
|
5219
|
-
* // Connect only one 'something1' axis to the mouse or touchscreen x position when the mouse or touchscreen is down and moved.
|
|
5220
|
-
* axes.connect(["something1"], pan); // or axes.connect("something1", pan);
|
|
5221
|
-
*
|
|
5222
|
-
* // Connect only one 'something2' axis to the mouse or touchscreen y position when the mouse or touchscreen is down and moved.
|
|
5223
|
-
* axes.connect(["", "something2"], pan); // or axes.connect(" something2", pan);
|
|
5224
|
-
* ```
|
|
5225
|
-
* @param {String|HTMLElement|Ref<HTMLElement>|jQuery} element An element to use the eg.Axes.PanInput module <ko>eg.Axes.PanInput 모듈을 사용할 엘리먼트</ko>
|
|
5226
|
-
* @param {PanInputOption} [options={}] The option object of the eg.Axes.PanInput module<ko>eg.Axes.PanInput 모듈의 옵션 객체</ko>
|
|
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>
|
|
5227
5206
|
*/
|
|
5228
5207
|
var PanInput = /*#__PURE__*/function () {
|
|
5229
|
-
/**
|
|
5230
|
-
*
|
|
5208
|
+
/**
|
|
5209
|
+
*
|
|
5231
5210
|
*/
|
|
5232
5211
|
function PanInput(el, options) {
|
|
5233
5212
|
var _this = this;
|
|
@@ -5276,60 +5255,56 @@ version: 4.12.0-beta.2
|
|
|
5276
5255
|
this._detachWindowEvent(this._activeEvent);
|
|
5277
5256
|
}
|
|
5278
5257
|
this._attachElementEvent(observer);
|
|
5258
|
+
this._originalCssProps = setCssProps(this.element, this.options, this._direction);
|
|
5279
5259
|
return this;
|
|
5280
5260
|
};
|
|
5281
5261
|
__proto.disconnect = function () {
|
|
5282
5262
|
this._detachElementEvent();
|
|
5283
5263
|
this._detachWindowEvent(this._activeEvent);
|
|
5264
|
+
if (!isCssPropsFromAxes(this._originalCssProps)) {
|
|
5265
|
+
revertCssProps(this.element, this._originalCssProps);
|
|
5266
|
+
}
|
|
5284
5267
|
this._direction = DIRECTION_NONE;
|
|
5285
5268
|
return this;
|
|
5286
5269
|
};
|
|
5287
|
-
/**
|
|
5288
|
-
* Destroys elements, properties, and events used in a module.
|
|
5289
|
-
* @ko 모듈에 사용한 엘리먼트와 속성, 이벤트를 해제한다.
|
|
5270
|
+
/**
|
|
5271
|
+
* Destroys elements, properties, and events used in a module.
|
|
5272
|
+
* @ko 모듈에 사용한 엘리먼트와 속성, 이벤트를 해제한다.
|
|
5290
5273
|
*/
|
|
5291
5274
|
__proto.destroy = function () {
|
|
5292
5275
|
this.disconnect();
|
|
5293
5276
|
this.element = null;
|
|
5294
5277
|
};
|
|
5295
|
-
/**
|
|
5296
|
-
* Enables input devices
|
|
5297
|
-
* @ko 입력 장치를 사용할 수 있게 한다
|
|
5298
|
-
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5278
|
+
/**
|
|
5279
|
+
* Enables input devices
|
|
5280
|
+
* @ko 입력 장치를 사용할 수 있게 한다
|
|
5281
|
+
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5299
5282
|
*/
|
|
5300
5283
|
__proto.enable = function () {
|
|
5301
|
-
|
|
5302
|
-
this._enabled = true;
|
|
5303
|
-
this._originalCssProps = setCssProps(this.element, this.options, this._direction);
|
|
5304
|
-
}
|
|
5284
|
+
this._enabled = true;
|
|
5305
5285
|
return this;
|
|
5306
5286
|
};
|
|
5307
|
-
/**
|
|
5308
|
-
* Disables input devices
|
|
5309
|
-
* @ko 입력 장치를 사용할 수 없게 한다.
|
|
5310
|
-
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5287
|
+
/**
|
|
5288
|
+
* Disables input devices
|
|
5289
|
+
* @ko 입력 장치를 사용할 수 없게 한다.
|
|
5290
|
+
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5311
5291
|
*/
|
|
5312
5292
|
__proto.disable = function () {
|
|
5313
|
-
|
|
5314
|
-
this._enabled = false;
|
|
5315
|
-
if (!isCssPropsFromAxes(this._originalCssProps)) {
|
|
5316
|
-
revertCssProps(this.element, this._originalCssProps);
|
|
5317
|
-
}
|
|
5318
|
-
}
|
|
5293
|
+
this._enabled = false;
|
|
5319
5294
|
return this;
|
|
5320
5295
|
};
|
|
5321
|
-
/**
|
|
5322
|
-
* Returns whether to use an input device
|
|
5323
|
-
* @ko 입력 장치 사용 여부를 반환한다.
|
|
5324
|
-
* @return {Boolean} Whether to use an input device <ko>입력장치 사용여부</ko>
|
|
5296
|
+
/**
|
|
5297
|
+
* Returns whether to use an input device
|
|
5298
|
+
* @ko 입력 장치 사용 여부를 반환한다.
|
|
5299
|
+
* @return {Boolean} Whether to use an input device <ko>입력장치 사용여부</ko>
|
|
5325
5300
|
*/
|
|
5326
5301
|
__proto.isEnabled = function () {
|
|
5327
5302
|
return this._enabled;
|
|
5328
5303
|
};
|
|
5329
|
-
/**
|
|
5330
|
-
* Releases current user input.
|
|
5331
|
-
* @ko 사용자의 입력을 강제로 중단시킨다.
|
|
5332
|
-
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5304
|
+
/**
|
|
5305
|
+
* Releases current user input.
|
|
5306
|
+
* @ko 사용자의 입력을 강제로 중단시킨다.
|
|
5307
|
+
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5333
5308
|
*/
|
|
5334
5309
|
__proto.release = function () {
|
|
5335
5310
|
var activeEvent = this._activeEvent;
|
|
@@ -5472,7 +5447,7 @@ version: 4.12.0-beta.2
|
|
|
5472
5447
|
throw new Error("Element to connect input does not exist.");
|
|
5473
5448
|
}
|
|
5474
5449
|
this._observer = observer;
|
|
5475
|
-
this.
|
|
5450
|
+
this._enabled = true;
|
|
5476
5451
|
this._activeEvent = activeEvent;
|
|
5477
5452
|
element.addEventListener("click", this._preventClickWhenDragged, true);
|
|
5478
5453
|
activeEvent.start.forEach(function (event) {
|
|
@@ -5496,15 +5471,15 @@ version: 4.12.0-beta.2
|
|
|
5496
5471
|
element.removeEventListener(event, _this._voidFunction);
|
|
5497
5472
|
});
|
|
5498
5473
|
}
|
|
5499
|
-
this.
|
|
5474
|
+
this._enabled = false;
|
|
5500
5475
|
this._observer = null;
|
|
5501
5476
|
};
|
|
5502
5477
|
return PanInput;
|
|
5503
5478
|
}();
|
|
5504
5479
|
|
|
5505
|
-
/*
|
|
5506
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
5507
|
-
* egjs projects are licensed under the MIT license
|
|
5480
|
+
/*
|
|
5481
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
5482
|
+
* egjs projects are licensed under the MIT license
|
|
5508
5483
|
*/
|
|
5509
5484
|
|
|
5510
5485
|
var Axes$1 = Axes;
|
|
@@ -7958,6 +7933,7 @@ version: 4.12.0-beta.2
|
|
|
7958
7933
|
var _this = this;
|
|
7959
7934
|
var _b = (_a === void 0 ? {} : _a).align,
|
|
7960
7935
|
align = _b === void 0 ? ALIGN.CENTER : _b;
|
|
7936
|
+
this._lookedOffset = 0;
|
|
7961
7937
|
this._checkTranslateSupport = function () {
|
|
7962
7938
|
var e_1, _a;
|
|
7963
7939
|
var transforms = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"];
|
|
@@ -8317,6 +8293,8 @@ version: 4.12.0-beta.2
|
|
|
8317
8293
|
*/
|
|
8318
8294
|
__proto.lookAt = function (pos) {
|
|
8319
8295
|
var _this = this;
|
|
8296
|
+
var prevOffset = this._offset;
|
|
8297
|
+
var isChangedOffset = this._lookedOffset !== prevOffset;
|
|
8320
8298
|
var flicking = getFlickingAttached(this._flicking);
|
|
8321
8299
|
var prevPos = this._position;
|
|
8322
8300
|
this._position = pos;
|
|
@@ -8327,7 +8305,12 @@ version: 4.12.0-beta.2
|
|
|
8327
8305
|
if (toggled) {
|
|
8328
8306
|
void flicking.renderer.render().then(function () {
|
|
8329
8307
|
_this.updateOffset();
|
|
8308
|
+
_this._lookedOffset = _this._offset;
|
|
8330
8309
|
});
|
|
8310
|
+
} else if (isChangedOffset) {
|
|
8311
|
+
// sync offset for renderOnlyVisible on resize
|
|
8312
|
+
this.updateOffset();
|
|
8313
|
+
this._lookedOffset = this._offset;
|
|
8331
8314
|
} else {
|
|
8332
8315
|
this.applyTransform();
|
|
8333
8316
|
}
|
|
@@ -8586,6 +8569,7 @@ version: 4.12.0-beta.2
|
|
|
8586
8569
|
};
|
|
8587
8570
|
__proto._resetInternalValues = function () {
|
|
8588
8571
|
this._position = 0;
|
|
8572
|
+
this._lookedOffset = 0;
|
|
8589
8573
|
this._alignPos = 0;
|
|
8590
8574
|
this._offset = 0;
|
|
8591
8575
|
this._circularOffset = 0;
|
|
@@ -13004,243 +12988,10 @@ version: 4.12.0-beta.2
|
|
|
13004
12988
|
* Flicking.VERSION; // ex) 4.0.0
|
|
13005
12989
|
* ```
|
|
13006
12990
|
*/
|
|
13007
|
-
Flicking.VERSION = "4.12.0-beta.
|
|
12991
|
+
Flicking.VERSION = "4.12.0-beta.4";
|
|
13008
12992
|
return Flicking;
|
|
13009
12993
|
}(Component);
|
|
13010
12994
|
|
|
13011
|
-
/*
|
|
13012
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
13013
|
-
* egjs projects are licensed under the MIT license
|
|
13014
|
-
*/
|
|
13015
|
-
/**
|
|
13016
|
-
* @extends Component
|
|
13017
|
-
* @support {"ie": "9+(with polyfill)", "ch" : "latest", "ff" : "latest", "sf" : "latest", "edge" : "latest", "ios" : "7+", "an" : "4.X+"}
|
|
13018
|
-
* @requires {@link https://github.com/naver/egjs-component|@egjs/component}
|
|
13019
|
-
* @requires {@link https://github.com/naver/egjs-axes|@egjs/axes}
|
|
13020
|
-
*/
|
|
13021
|
-
var CrossFlicking = /*#__PURE__*/function (_super) {
|
|
13022
|
-
__extends$3(CrossFlicking, _super);
|
|
13023
|
-
// Options Setter
|
|
13024
|
-
// public set align(val: FlickingOptions["align"]) {
|
|
13025
|
-
// this._align = val;
|
|
13026
|
-
// }
|
|
13027
|
-
function CrossFlicking(root, _a) {
|
|
13028
|
-
var _b = (_a === void 0 ? {} : _a).verticalOptions,
|
|
13029
|
-
verticalOptions = _b === void 0 ? undefined : _b;
|
|
13030
|
-
var _this = _super.call(this, root) || this;
|
|
13031
|
-
_this._onHorizontalHoldStart = function () {
|
|
13032
|
-
_this.dragThreshold = 10;
|
|
13033
|
-
_this._moveDirection = null;
|
|
13034
|
-
};
|
|
13035
|
-
_this._onHorizontalMove = function (e) {
|
|
13036
|
-
if (e.isTrusted && !_this._moveDirection) {
|
|
13037
|
-
_this._verticalFlicking.forEach(function (child) {
|
|
13038
|
-
child.dragThreshold = Infinity;
|
|
13039
|
-
});
|
|
13040
|
-
_this._moveDirection = MOVE_DIRECTION.HORIZONTAL;
|
|
13041
|
-
}
|
|
13042
|
-
};
|
|
13043
|
-
_this._onHorizontalMoveEnd = function (e) {
|
|
13044
|
-
var visiblePanels = _this.visiblePanels;
|
|
13045
|
-
_this._verticalFlicking.forEach(function (child) {
|
|
13046
|
-
child.dragThreshold = 10;
|
|
13047
|
-
});
|
|
13048
|
-
_this._moveDirection = null;
|
|
13049
|
-
if (visiblePanels.length > 1) {
|
|
13050
|
-
_this._nextIndex = e.direction === "NEXT" ? visiblePanels[1].index : visiblePanels[0].index;
|
|
13051
|
-
} else {
|
|
13052
|
-
_this._nextIndex = visiblePanels[0].index;
|
|
13053
|
-
}
|
|
13054
|
-
_this._verticalFlicking.forEach(function (child, i) {
|
|
13055
|
-
if (_this._nextIndex !== i) {
|
|
13056
|
-
var _a = _this._verticalState[i],
|
|
13057
|
-
start = _a.start,
|
|
13058
|
-
end = _a.end;
|
|
13059
|
-
if (child.index < start) {
|
|
13060
|
-
child.stopAnimation();
|
|
13061
|
-
void child.moveTo(start, 0);
|
|
13062
|
-
} else if (child.index > end) {
|
|
13063
|
-
child.stopAnimation();
|
|
13064
|
-
void child.moveTo(end, 0);
|
|
13065
|
-
}
|
|
13066
|
-
}
|
|
13067
|
-
});
|
|
13068
|
-
if (e.isTrusted) {
|
|
13069
|
-
_this._syncToCategory(_this._verticalFlicking[_this._nextIndex].index, _this._nextIndex);
|
|
13070
|
-
}
|
|
13071
|
-
};
|
|
13072
|
-
_this._onVerticalHoldStart = function () {
|
|
13073
|
-
_this._verticalFlicking.forEach(function (child) {
|
|
13074
|
-
child.dragThreshold = 10;
|
|
13075
|
-
});
|
|
13076
|
-
_this._moveDirection = null;
|
|
13077
|
-
};
|
|
13078
|
-
_this._onVerticalMove = function (e) {
|
|
13079
|
-
if (e.isTrusted && !_this._moveDirection) {
|
|
13080
|
-
_this.dragThreshold = Infinity;
|
|
13081
|
-
_this._moveDirection = MOVE_DIRECTION.VERTICAL;
|
|
13082
|
-
}
|
|
13083
|
-
};
|
|
13084
|
-
_this._onVerticalMoveEnd = function () {
|
|
13085
|
-
_this.dragThreshold = 10;
|
|
13086
|
-
_this._moveDirection = null;
|
|
13087
|
-
};
|
|
13088
|
-
_this._onVerticalChanged = function (e) {
|
|
13089
|
-
// this.visiblePanels.length 가 2보다 크다면 가로 방향 Flicking이 조작 중이라는 것을 의미합니다.
|
|
13090
|
-
// 이 경우 가로 방향 Flicking의 이동이 완전히 끝난 뒤 _onHorizontalMoveEnd 에서 syncToCategory할 것이므로 여기서는 하지 않습니다.
|
|
13091
|
-
if (_this.visiblePanels.length < 2 && _this._verticalFlicking[_this.index] === e.currentTarget) {
|
|
13092
|
-
_this._syncToCategory(e.index, _this.index);
|
|
13093
|
-
}
|
|
13094
|
-
};
|
|
13095
|
-
var horizontalPanels = toArray$2(getElement(root).children[0].children);
|
|
13096
|
-
// Internal states
|
|
13097
|
-
_this._verticalState = _this._createVerticalState(horizontalPanels);
|
|
13098
|
-
_this._moveDirection = null;
|
|
13099
|
-
_this._nextIndex = 0;
|
|
13100
|
-
// Bind options
|
|
13101
|
-
_this._verticalOptions = verticalOptions;
|
|
13102
|
-
// Create core components
|
|
13103
|
-
_this._verticalFlicking = _this._createVerticalFlicking(horizontalPanels);
|
|
13104
|
-
return _this;
|
|
13105
|
-
}
|
|
13106
|
-
var __proto = CrossFlicking.prototype;
|
|
13107
|
-
Object.defineProperty(__proto, "verticalFlicking", {
|
|
13108
|
-
// Components
|
|
13109
|
-
/**
|
|
13110
|
-
* {@link Control} instance of the Flicking
|
|
13111
|
-
* @ko 현재 Flicking에 활성화된 {@link Control} 인스턴스
|
|
13112
|
-
* @type {Control}
|
|
13113
|
-
* @default SnapControl
|
|
13114
|
-
* @readonly
|
|
13115
|
-
* @see Control
|
|
13116
|
-
* @see SnapControl
|
|
13117
|
-
* @see FreeControl
|
|
13118
|
-
*/
|
|
13119
|
-
get: function () {
|
|
13120
|
-
return this._verticalFlicking;
|
|
13121
|
-
},
|
|
13122
|
-
enumerable: false,
|
|
13123
|
-
configurable: true
|
|
13124
|
-
});
|
|
13125
|
-
Object.defineProperty(__proto, "verticalState", {
|
|
13126
|
-
// Internal States
|
|
13127
|
-
/**
|
|
13128
|
-
* Whether Flicking's {@link Flicking#init init()} is called.
|
|
13129
|
-
* This is `true` when {@link Flicking#init init()} is called, and is `false` after calling {@link Flicking#destroy destroy()}.
|
|
13130
|
-
* @ko Flicking의 {@link Flicking#init init()}이 호출되었는지를 나타내는 멤버 변수.
|
|
13131
|
-
* 이 값은 {@link Flicking#init init()}이 호출되었으면 `true`로 변하고, {@link Flicking#destroy destroy()}호출 이후에 다시 `false`로 변경됩니다.
|
|
13132
|
-
* @type {boolean}
|
|
13133
|
-
* @default false
|
|
13134
|
-
* @readonly
|
|
13135
|
-
*/
|
|
13136
|
-
get: function () {
|
|
13137
|
-
return this._verticalState;
|
|
13138
|
-
},
|
|
13139
|
-
enumerable: false,
|
|
13140
|
-
configurable: true
|
|
13141
|
-
});
|
|
13142
|
-
Object.defineProperty(__proto, "verticalOptions", {
|
|
13143
|
-
// Options Getter
|
|
13144
|
-
/**
|
|
13145
|
-
* Change active panel index on mouse/touch hold while animating.
|
|
13146
|
-
* `index` of the `willChange`/`willRestore` event will be used as new index.
|
|
13147
|
-
* @ko 애니메이션 도중 마우스/터치 입력시 현재 활성화된 패널의 인덱스를 변경합니다.
|
|
13148
|
-
* `willChange`/`willRestore` 이벤트의 `index`값이 새로운 인덱스로 사용될 것입니다.
|
|
13149
|
-
* @type {FlickingOptions}
|
|
13150
|
-
* @default undefined
|
|
13151
|
-
* @see {@link https://naver.github.io/egjs-flicking/Options#changeonhold changeOnHold ( Options )}
|
|
13152
|
-
*/
|
|
13153
|
-
get: function () {
|
|
13154
|
-
return this._verticalOptions;
|
|
13155
|
-
},
|
|
13156
|
-
enumerable: false,
|
|
13157
|
-
configurable: true
|
|
13158
|
-
});
|
|
13159
|
-
/**
|
|
13160
|
-
* Initialize Flicking and move to the default index
|
|
13161
|
-
* This is automatically called on Flicking's constructor when `autoInit` is true(default)
|
|
13162
|
-
* @ko Flicking을 초기화하고, 디폴트 인덱스로 이동합니다
|
|
13163
|
-
* 이 메소드는 `autoInit` 옵션이 true(default)일 경우 Flicking이 생성될 때 자동으로 호출됩니다
|
|
13164
|
-
* @fires Flicking#ready
|
|
13165
|
-
* @return {Promise<void>}
|
|
13166
|
-
*/
|
|
13167
|
-
__proto.init = function () {
|
|
13168
|
-
var _this = this;
|
|
13169
|
-
return _super.prototype.init.call(this).then(function () {
|
|
13170
|
-
return _this._addComponentEvents();
|
|
13171
|
-
});
|
|
13172
|
-
};
|
|
13173
|
-
__proto._addComponentEvents = function () {
|
|
13174
|
-
var _this = this;
|
|
13175
|
-
this.on(EVENTS.HOLD_START, this._onHorizontalHoldStart);
|
|
13176
|
-
this.on(EVENTS.MOVE, this._onHorizontalMove);
|
|
13177
|
-
this.on(EVENTS.MOVE_END, this._onHorizontalMoveEnd);
|
|
13178
|
-
this._verticalFlicking.forEach(function (flicking) {
|
|
13179
|
-
flicking.on(EVENTS.HOLD_START, _this._onVerticalHoldStart);
|
|
13180
|
-
flicking.on(EVENTS.MOVE, _this._onVerticalMove);
|
|
13181
|
-
flicking.on(EVENTS.MOVE_END, _this._onVerticalMoveEnd);
|
|
13182
|
-
flicking.on(EVENTS.CHANGED, _this._onVerticalChanged);
|
|
13183
|
-
});
|
|
13184
|
-
};
|
|
13185
|
-
__proto._createVerticalState = function (panels) {
|
|
13186
|
-
// data-index로 분류하기 전에 임시로 모든 children에 대해 vertical flicking으로 해보자.
|
|
13187
|
-
// panels에 data-attributes가 붙어있을 때와 안 붙어있을 때를 다르게 처리
|
|
13188
|
-
// 붙어있다면 가상의 viewport들을 index 갯수만큼 만들어줘야 한다
|
|
13189
|
-
var verticalPanels = "";
|
|
13190
|
-
var verticalState = panels.reduce(function (state, panel) {
|
|
13191
|
-
var start = state.length ? +state[state.length - 1].end + 1 : 0;
|
|
13192
|
-
verticalPanels += panel.innerHTML;
|
|
13193
|
-
return __spread$1(state, [{
|
|
13194
|
-
start: start,
|
|
13195
|
-
end: start + panel.children.length - 1,
|
|
13196
|
-
element: panel
|
|
13197
|
-
}]);
|
|
13198
|
-
}, []);
|
|
13199
|
-
var verticalCamera = document.createElement("div");
|
|
13200
|
-
verticalCamera.classList.add(CLASS.CAMERA);
|
|
13201
|
-
verticalCamera.innerHTML = verticalPanels;
|
|
13202
|
-
panels.forEach(function (panel) {
|
|
13203
|
-
[CLASS.VIEWPORT, CLASS.VERTICAL].forEach(function (className) {
|
|
13204
|
-
if (!panel.classList.contains(className)) {
|
|
13205
|
-
panel.classList.add(className);
|
|
13206
|
-
}
|
|
13207
|
-
});
|
|
13208
|
-
panel.innerHTML = verticalCamera.outerHTML;
|
|
13209
|
-
});
|
|
13210
|
-
return verticalState;
|
|
13211
|
-
};
|
|
13212
|
-
__proto._createVerticalFlicking = function (panels) {
|
|
13213
|
-
var _this = this;
|
|
13214
|
-
return panels.map(function (panel, i) {
|
|
13215
|
-
return new Flicking(panel, __assign$2(__assign$2({}, _this.verticalOptions), {
|
|
13216
|
-
horizontal: false,
|
|
13217
|
-
panelsPerView: 1,
|
|
13218
|
-
defaultIndex: _this._verticalState[i].start
|
|
13219
|
-
}));
|
|
13220
|
-
});
|
|
13221
|
-
};
|
|
13222
|
-
__proto._syncToCategory = function (index, outerIndex) {
|
|
13223
|
-
var _this = this;
|
|
13224
|
-
this.stopAnimation();
|
|
13225
|
-
this._verticalFlicking.forEach(function (child, i) {
|
|
13226
|
-
var _a = _this._verticalState[i],
|
|
13227
|
-
start = _a.start,
|
|
13228
|
-
end = _a.end;
|
|
13229
|
-
if (start <= index && end >= index && outerIndex !== i) {
|
|
13230
|
-
child.stopAnimation();
|
|
13231
|
-
void child.moveTo(index, 0);
|
|
13232
|
-
void _this.moveTo(i, 0);
|
|
13233
|
-
}
|
|
13234
|
-
});
|
|
13235
|
-
};
|
|
13236
|
-
return CrossFlicking;
|
|
13237
|
-
}(Flicking);
|
|
13238
|
-
|
|
13239
|
-
var CrossFlicking$1 = {
|
|
13240
|
-
__proto__: null,
|
|
13241
|
-
CrossFlicking: CrossFlicking
|
|
13242
|
-
};
|
|
13243
|
-
|
|
13244
12995
|
/*
|
|
13245
12996
|
* Copyright (c) 2015 NAVER Corp.
|
|
13246
12997
|
* egjs projects are licensed under the MIT license
|
|
@@ -13486,7 +13237,6 @@ version: 4.12.0-beta.2
|
|
|
13486
13237
|
merge(Flicking, Constants);
|
|
13487
13238
|
merge(Flicking, CFC);
|
|
13488
13239
|
merge(Flicking, Utils);
|
|
13489
|
-
merge(Flicking, CrossFlicking$1);
|
|
13490
13240
|
|
|
13491
13241
|
return Flicking;
|
|
13492
13242
|
|