@egjs/flicking 4.11.4-beta.0 โ 4.11.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 +240 -240
- package/declaration/camera/Camera.d.ts +89 -89
- package/declaration/camera/index.d.ts +4 -4
- package/declaration/camera/mode/BoundCameraMode.d.ts +13 -13
- package/declaration/camera/mode/CameraMode.d.ts +20 -20
- package/declaration/camera/mode/CircularCameraMode.d.ts +19 -19
- package/declaration/camera/mode/LinearCameraMode.d.ts +9 -9
- package/declaration/camera/mode/index.d.ts +6 -6
- package/declaration/cfc/getDefaultCameraTransform.d.ts +3 -3
- package/declaration/cfc/getRenderingPanels.d.ts +4 -4
- package/declaration/cfc/index.d.ts +5 -5
- package/declaration/cfc/sync.d.ts +4 -4
- package/declaration/cfc/withFlickingMethods.d.ts +2 -2
- package/declaration/const/axes.d.ts +8 -8
- package/declaration/const/error.d.ts +34 -34
- package/declaration/const/external.d.ts +48 -48
- package/declaration/control/AxesController.d.ts +44 -44
- package/declaration/control/Control.d.ts +45 -45
- package/declaration/control/FreeControl.d.ts +14 -14
- package/declaration/control/SnapControl.d.ts +16 -16
- package/declaration/control/StateMachine.d.ts +14 -14
- package/declaration/control/StrictControl.d.ts +20 -20
- package/declaration/control/index.d.ts +14 -14
- package/declaration/control/states/AnimatingState.d.ts +9 -9
- package/declaration/control/states/DisabledState.d.ts +9 -9
- package/declaration/control/states/DraggingState.d.ts +8 -8
- package/declaration/control/states/HoldingState.d.ts +10 -10
- package/declaration/control/states/IdleState.d.ts +9 -9
- package/declaration/control/states/State.d.ts +47 -47
- package/declaration/core/AnchorPoint.d.ts +15 -15
- package/declaration/core/AutoResizer.d.ts +16 -16
- package/declaration/core/FlickingError.d.ts +5 -5
- package/declaration/core/ResizeWatcher.d.ts +33 -33
- package/declaration/core/Viewport.d.ts +25 -25
- package/declaration/core/VirtualManager.d.ts +37 -37
- package/declaration/core/index.d.ts +6 -6
- package/declaration/core/panel/Panel.d.ts +89 -89
- package/declaration/core/panel/VirtualPanel.d.ts +19 -19
- package/declaration/core/panel/index.d.ts +5 -5
- package/declaration/core/panel/provider/ElementProvider.d.ts +8 -8
- package/declaration/core/panel/provider/VanillaElementProvider.d.ts +12 -12
- package/declaration/core/panel/provider/VirtualElementProvider.d.ts +15 -15
- package/declaration/core/panel/provider/index.d.ts +5 -5
- package/declaration/index.cjs.d.ts +3 -3
- package/declaration/index.d.ts +13 -13
- package/declaration/index.umd.d.ts +2 -2
- package/declaration/renderer/ExternalRenderer.d.ts +7 -7
- package/declaration/renderer/Renderer.d.ts +59 -59
- package/declaration/renderer/VanillaRenderer.d.ts +10 -10
- package/declaration/renderer/index.d.ts +6 -6
- package/declaration/renderer/strategy/NormalRenderingStrategy.d.ts +23 -23
- package/declaration/renderer/strategy/RenderingStrategy.d.ts +15 -15
- package/declaration/renderer/strategy/VirtualRenderingStrategy.d.ts +17 -17
- package/declaration/renderer/strategy/index.d.ts +5 -5
- package/declaration/type/event.d.ts +88 -88
- package/declaration/type/external.d.ts +31 -31
- package/declaration/type/internal.d.ts +13 -13
- package/declaration/utils.d.ts +45 -45
- package/dist/flicking.cjs.js +2 -2
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +2 -2
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +2 -2
- 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 +752 -752
- package/dist/flicking.pkgd.js.map +1 -1
- package/dist/flicking.pkgd.min.js +2 -2
- package/dist/flicking.pkgd.min.js.map +1 -1
- package/package.json +2 -2
package/dist/flicking.pkgd.js
CHANGED
|
@@ -4,7 +4,7 @@ name: @egjs/flicking
|
|
|
4
4
|
license: MIT
|
|
5
5
|
author: NAVER Corp.
|
|
6
6
|
repository: https://github.com/naver/egjs-flicking
|
|
7
|
-
version: 4.11.4
|
|
7
|
+
version: 4.11.4
|
|
8
8
|
*/
|
|
9
9
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2659,7 +2659,7 @@ version: 4.11.4-beta.0
|
|
|
2659
2659
|
license: MIT
|
|
2660
2660
|
author: NAVER Corp.
|
|
2661
2661
|
repository: https://github.com/naver/egjs-axes
|
|
2662
|
-
version: 3.9.1
|
|
2662
|
+
version: 3.9.1
|
|
2663
2663
|
*/
|
|
2664
2664
|
|
|
2665
2665
|
/*! *****************************************************************************
|
|
@@ -2713,9 +2713,9 @@ version: 4.11.4-beta.0
|
|
|
2713
2713
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
2714
2714
|
}
|
|
2715
2715
|
|
|
2716
|
-
/*
|
|
2717
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
2718
|
-
* egjs projects are licensed under the MIT license
|
|
2716
|
+
/*
|
|
2717
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
2718
|
+
* egjs projects are licensed under the MIT license
|
|
2719
2719
|
*/
|
|
2720
2720
|
/* eslint-disable no-new-func, no-nested-ternary */
|
|
2721
2721
|
var win;
|
|
@@ -2730,9 +2730,9 @@ version: 4.11.4-beta.0
|
|
|
2730
2730
|
win = window;
|
|
2731
2731
|
}
|
|
2732
2732
|
|
|
2733
|
-
/*
|
|
2734
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
2735
|
-
* egjs projects are licensed under the MIT license
|
|
2733
|
+
/*
|
|
2734
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
2735
|
+
* egjs projects are licensed under the MIT license
|
|
2736
2736
|
*/
|
|
2737
2737
|
var DIRECTION_NONE = 1;
|
|
2738
2738
|
var DIRECTION_LEFT = 2;
|
|
@@ -2858,19 +2858,19 @@ version: 4.11.4-beta.0
|
|
|
2858
2858
|
};
|
|
2859
2859
|
caf = win.clearTimeout;
|
|
2860
2860
|
}
|
|
2861
|
-
/**
|
|
2862
|
-
* A polyfill for the window.requestAnimationFrame() method.
|
|
2863
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
|
|
2864
|
-
* @private
|
|
2861
|
+
/**
|
|
2862
|
+
* A polyfill for the window.requestAnimationFrame() method.
|
|
2863
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/window/requestAnimationFrame
|
|
2864
|
+
* @private
|
|
2865
2865
|
*/
|
|
2866
2866
|
var requestAnimationFrame = function (fp) {
|
|
2867
2867
|
return raf(fp);
|
|
2868
2868
|
};
|
|
2869
|
-
/**
|
|
2870
|
-
* A polyfill for the window.cancelAnimationFrame() method. It cancels an animation executed through a call to the requestAnimationFrame() method.
|
|
2871
|
-
* @param {Number} key โ The ID value returned through a call to the requestAnimationFrame() method. <ko>requestAnimationFrame() ๋ฉ์๋๊ฐ ๋ฐํํ ์์ด๋ ๊ฐ</ko>
|
|
2872
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame
|
|
2873
|
-
* @private
|
|
2869
|
+
/**
|
|
2870
|
+
* A polyfill for the window.cancelAnimationFrame() method. It cancels an animation executed through a call to the requestAnimationFrame() method.
|
|
2871
|
+
* @param {Number} key โ The ID value returned through a call to the requestAnimationFrame() method. <ko>requestAnimationFrame() ๋ฉ์๋๊ฐ ๋ฐํํ ์์ด๋ ๊ฐ</ko>
|
|
2872
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/Window/cancelAnimationFrame
|
|
2873
|
+
* @private
|
|
2874
2874
|
*/
|
|
2875
2875
|
var cancelAnimationFrame = function (key) {
|
|
2876
2876
|
caf(key);
|
|
@@ -3019,32 +3019,32 @@ version: 4.11.4-beta.0
|
|
|
3019
3019
|
this._axes = _axes;
|
|
3020
3020
|
this.holdingCount = 0;
|
|
3021
3021
|
}
|
|
3022
|
-
/**
|
|
3023
|
-
* This event is fired when a user holds an element on the screen of the device.
|
|
3024
|
-
* @ko ์ฌ์ฉ์๊ฐ ๊ธฐ๊ธฐ์ ํ๋ฉด์ ์์ ๋๊ณ ์์ ๋ ๋ฐ์ํ๋ ์ด๋ฒคํธ
|
|
3025
|
-
* @event Axes#hold
|
|
3026
|
-
* @type {object}
|
|
3027
|
-
* @property {Object.<string, number>} pos coordinate <ko>์ขํ ์ ๋ณด</ko>
|
|
3028
|
-
* @property {Object} input The instance of inputType where the event occurred<ko>์ด๋ฒคํธ๊ฐ ๋ฐ์ํ inputType ์ธ์คํด์ค</ko>
|
|
3029
|
-
* @property {Object} inputEvent The event object received from inputType <ko>inputType์ผ๋ก ๋ถํฐ ๋ฐ์ ์ด๋ฒคํธ ๊ฐ์ฒด</ko>
|
|
3030
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3031
|
-
*
|
|
3032
|
-
* @example
|
|
3033
|
-
* ```js
|
|
3034
|
-
* const axes = new eg.Axes({
|
|
3035
|
-
* "x": {
|
|
3036
|
-
* range: [0, 100]
|
|
3037
|
-
* },
|
|
3038
|
-
* "zoom": {
|
|
3039
|
-
* range: [50, 30]
|
|
3040
|
-
* }
|
|
3041
|
-
* }).on("hold", function(event) {
|
|
3042
|
-
* // event.pos
|
|
3043
|
-
* // event.input
|
|
3044
|
-
* // event.inputEvent
|
|
3045
|
-
* // isTrusted
|
|
3046
|
-
* });
|
|
3047
|
-
* ```
|
|
3022
|
+
/**
|
|
3023
|
+
* This event is fired when a user holds an element on the screen of the device.
|
|
3024
|
+
* @ko ์ฌ์ฉ์๊ฐ ๊ธฐ๊ธฐ์ ํ๋ฉด์ ์์ ๋๊ณ ์์ ๋ ๋ฐ์ํ๋ ์ด๋ฒคํธ
|
|
3025
|
+
* @event Axes#hold
|
|
3026
|
+
* @type {object}
|
|
3027
|
+
* @property {Object.<string, number>} pos coordinate <ko>์ขํ ์ ๋ณด</ko>
|
|
3028
|
+
* @property {Object} input The instance of inputType where the event occurred<ko>์ด๋ฒคํธ๊ฐ ๋ฐ์ํ inputType ์ธ์คํด์ค</ko>
|
|
3029
|
+
* @property {Object} inputEvent The event object received from inputType <ko>inputType์ผ๋ก ๋ถํฐ ๋ฐ์ ์ด๋ฒคํธ ๊ฐ์ฒด</ko>
|
|
3030
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3031
|
+
*
|
|
3032
|
+
* @example
|
|
3033
|
+
* ```js
|
|
3034
|
+
* const axes = new eg.Axes({
|
|
3035
|
+
* "x": {
|
|
3036
|
+
* range: [0, 100]
|
|
3037
|
+
* },
|
|
3038
|
+
* "zoom": {
|
|
3039
|
+
* range: [50, 30]
|
|
3040
|
+
* }
|
|
3041
|
+
* }).on("hold", function(event) {
|
|
3042
|
+
* // event.pos
|
|
3043
|
+
* // event.input
|
|
3044
|
+
* // event.inputEvent
|
|
3045
|
+
* // isTrusted
|
|
3046
|
+
* });
|
|
3047
|
+
* ```
|
|
3048
3048
|
*/
|
|
3049
3049
|
var __proto = EventManager.prototype;
|
|
3050
3050
|
__proto.hold = function (pos, option) {
|
|
@@ -3056,78 +3056,78 @@ version: 4.11.4-beta.0
|
|
|
3056
3056
|
isTrusted: true
|
|
3057
3057
|
}));
|
|
3058
3058
|
};
|
|
3059
|
-
/**
|
|
3060
|
-
* Specifies the coordinates to move after the 'change' event. It works when the holding value of the change event is true.
|
|
3061
|
-
* @ko 'change' ์ด๋ฒคํธ ์ดํ ์ด๋ํ ์ขํ๋ฅผ ์ง์ ํ๋ค. change์ด๋ฒคํธ์ holding ๊ฐ์ด true์ผ ๊ฒฝ์ฐ์ ๋์ํ๋ค
|
|
3062
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>์ด๋ํ ์ขํ</ko>
|
|
3063
|
-
* @example
|
|
3064
|
-
* ```js
|
|
3065
|
-
* const axes = new eg.Axes({
|
|
3066
|
-
* "x": {
|
|
3067
|
-
* range: [0, 100]
|
|
3068
|
-
* },
|
|
3069
|
-
* "zoom": {
|
|
3070
|
-
* range: [50, 30]
|
|
3071
|
-
* }
|
|
3072
|
-
* }).on("change", function(event) {
|
|
3073
|
-
* event.holding && event.set({x: 10});
|
|
3074
|
-
* });
|
|
3075
|
-
* ```
|
|
3059
|
+
/**
|
|
3060
|
+
* Specifies the coordinates to move after the 'change' event. It works when the holding value of the change event is true.
|
|
3061
|
+
* @ko 'change' ์ด๋ฒคํธ ์ดํ ์ด๋ํ ์ขํ๋ฅผ ์ง์ ํ๋ค. change์ด๋ฒคํธ์ holding ๊ฐ์ด true์ผ ๊ฒฝ์ฐ์ ๋์ํ๋ค
|
|
3062
|
+
* @param {Object.<string, number>} pos The coordinate to move to <ko>์ด๋ํ ์ขํ</ko>
|
|
3063
|
+
* @example
|
|
3064
|
+
* ```js
|
|
3065
|
+
* const axes = new eg.Axes({
|
|
3066
|
+
* "x": {
|
|
3067
|
+
* range: [0, 100]
|
|
3068
|
+
* },
|
|
3069
|
+
* "zoom": {
|
|
3070
|
+
* range: [50, 30]
|
|
3071
|
+
* }
|
|
3072
|
+
* }).on("change", function(event) {
|
|
3073
|
+
* event.holding && event.set({x: 10});
|
|
3074
|
+
* });
|
|
3075
|
+
* ```
|
|
3076
3076
|
*/
|
|
3077
|
-
/** Specifies the animation coordinates to move after the 'release' or 'animationStart' events.
|
|
3078
|
-
* @ko 'release' ๋๋ 'animationStart' ์ด๋ฒคํธ ์ดํ ์ด๋ํ ์ขํ๋ฅผ ์ง์ ํ๋ค.
|
|
3079
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>์ด๋ํ ์ขํ</ko>
|
|
3080
|
-
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>์ ๋๋ฉ์ด์
์งํ ์๊ฐ(๋จ์: ms)</ko>
|
|
3081
|
-
* @example
|
|
3082
|
-
* ```js
|
|
3083
|
-
* const axes = new eg.Axes({
|
|
3084
|
-
* "x": {
|
|
3085
|
-
* range: [0, 100]
|
|
3086
|
-
* },
|
|
3087
|
-
* "zoom": {
|
|
3088
|
-
* range: [50, 30]
|
|
3089
|
-
* }
|
|
3090
|
-
* }).on("animationStart", function(event) {
|
|
3091
|
-
* event.setTo({x: 10}, 2000);
|
|
3092
|
-
* });
|
|
3093
|
-
* ```
|
|
3077
|
+
/** Specifies the animation coordinates to move after the 'release' or 'animationStart' events.
|
|
3078
|
+
* @ko 'release' ๋๋ 'animationStart' ์ด๋ฒคํธ ์ดํ ์ด๋ํ ์ขํ๋ฅผ ์ง์ ํ๋ค.
|
|
3079
|
+
* @param {Object.<string, number>} pos The coordinate to move to <ko>์ด๋ํ ์ขํ</ko>
|
|
3080
|
+
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>์ ๋๋ฉ์ด์
์งํ ์๊ฐ(๋จ์: ms)</ko>
|
|
3081
|
+
* @example
|
|
3082
|
+
* ```js
|
|
3083
|
+
* const axes = new eg.Axes({
|
|
3084
|
+
* "x": {
|
|
3085
|
+
* range: [0, 100]
|
|
3086
|
+
* },
|
|
3087
|
+
* "zoom": {
|
|
3088
|
+
* range: [50, 30]
|
|
3089
|
+
* }
|
|
3090
|
+
* }).on("animationStart", function(event) {
|
|
3091
|
+
* event.setTo({x: 10}, 2000);
|
|
3092
|
+
* });
|
|
3093
|
+
* ```
|
|
3094
3094
|
*/
|
|
3095
|
-
/**
|
|
3096
|
-
* This event is fired when a user release an element on the screen of the device.
|
|
3097
|
-
* @ko ์ฌ์ฉ์๊ฐ ๊ธฐ๊ธฐ์ ํ๋ฉด์์ ์์ ๋์ ๋ ๋ฐ์ํ๋ ์ด๋ฒคํธ
|
|
3098
|
-
* @event Axes#release
|
|
3099
|
-
* @type {object}
|
|
3100
|
-
* @property {Object.<string, number>} depaPos The coordinates when releasing an element<ko>์์ ๋์ ๋์ ์ขํ </ko>
|
|
3101
|
-
* @property {Object.<string, number>} destPos The coordinates to move to after releasing an element<ko>์์ ๋ ๋ค์ ์ด๋ํ ์ขํ</ko>
|
|
3102
|
-
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>์ขํ์ ๋ณํ๋</ko>
|
|
3103
|
-
* @property {Object.<string, number>} bounceRatio If the coordinates at the time of release are in the bounce area, the current bounce value divided by the maximum bounce value <ko>์์ ๋์ ๋์ ์ขํ๊ฐ bounce ์์ญ์ ์๋ ๊ฒฝ์ฐ ํ์ฌ bounce๋ ๊ฐ์ ์ต๋ bounce ๊ฐ์ผ๋ก ๋๋ ์์น.</ko>
|
|
3104
|
-
* @property {Object} inputEvent The event object received from inputType <ko>inputType์ผ๋ก ๋ถํฐ ๋ฐ์ ์ด๋ฒคํธ ๊ฐ์ฒด</ko>
|
|
3105
|
-
* @property {Object} input The instance of inputType where the event occurred<ko>์ด๋ฒคํธ๊ฐ ๋ฐ์ํ inputType ์ธ์คํด์ค</ko>
|
|
3106
|
-
* @property {setTo} setTo Specifies the animation coordinates to move after the event <ko>์ด๋ฒคํธ ์ดํ ์ด๋ํ ์ ๋๋ฉ์ด์
์ขํ๋ฅผ ์ง์ ํ๋ค</ko>
|
|
3107
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3108
|
-
*
|
|
3109
|
-
* @example
|
|
3110
|
-
* ```js
|
|
3111
|
-
* const axes = new eg.Axes({
|
|
3112
|
-
* "x": {
|
|
3113
|
-
* range: [0, 100]
|
|
3114
|
-
* },
|
|
3115
|
-
* "zoom": {
|
|
3116
|
-
* range: [50, 30]
|
|
3117
|
-
* }
|
|
3118
|
-
* }).on("release", function(event) {
|
|
3119
|
-
* // event.depaPos
|
|
3120
|
-
* // event.destPos
|
|
3121
|
-
* // event.delta
|
|
3122
|
-
* // event.input
|
|
3123
|
-
* // event.inputEvent
|
|
3124
|
-
* // event.setTo
|
|
3125
|
-
* // event.isTrusted
|
|
3126
|
-
*
|
|
3127
|
-
* // if you want to change the animation coordinates to move after the 'release' event.
|
|
3128
|
-
* event.setTo({x: 10}, 2000);
|
|
3129
|
-
* });
|
|
3130
|
-
* ```
|
|
3095
|
+
/**
|
|
3096
|
+
* This event is fired when a user release an element on the screen of the device.
|
|
3097
|
+
* @ko ์ฌ์ฉ์๊ฐ ๊ธฐ๊ธฐ์ ํ๋ฉด์์ ์์ ๋์ ๋ ๋ฐ์ํ๋ ์ด๋ฒคํธ
|
|
3098
|
+
* @event Axes#release
|
|
3099
|
+
* @type {object}
|
|
3100
|
+
* @property {Object.<string, number>} depaPos The coordinates when releasing an element<ko>์์ ๋์ ๋์ ์ขํ </ko>
|
|
3101
|
+
* @property {Object.<string, number>} destPos The coordinates to move to after releasing an element<ko>์์ ๋ ๋ค์ ์ด๋ํ ์ขํ</ko>
|
|
3102
|
+
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>์ขํ์ ๋ณํ๋</ko>
|
|
3103
|
+
* @property {Object.<string, number>} bounceRatio If the coordinates at the time of release are in the bounce area, the current bounce value divided by the maximum bounce value <ko>์์ ๋์ ๋์ ์ขํ๊ฐ bounce ์์ญ์ ์๋ ๊ฒฝ์ฐ ํ์ฌ bounce๋ ๊ฐ์ ์ต๋ bounce ๊ฐ์ผ๋ก ๋๋ ์์น.</ko>
|
|
3104
|
+
* @property {Object} inputEvent The event object received from inputType <ko>inputType์ผ๋ก ๋ถํฐ ๋ฐ์ ์ด๋ฒคํธ ๊ฐ์ฒด</ko>
|
|
3105
|
+
* @property {Object} input The instance of inputType where the event occurred<ko>์ด๋ฒคํธ๊ฐ ๋ฐ์ํ inputType ์ธ์คํด์ค</ko>
|
|
3106
|
+
* @property {setTo} setTo Specifies the animation coordinates to move after the event <ko>์ด๋ฒคํธ ์ดํ ์ด๋ํ ์ ๋๋ฉ์ด์
์ขํ๋ฅผ ์ง์ ํ๋ค</ko>
|
|
3107
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3108
|
+
*
|
|
3109
|
+
* @example
|
|
3110
|
+
* ```js
|
|
3111
|
+
* const axes = new eg.Axes({
|
|
3112
|
+
* "x": {
|
|
3113
|
+
* range: [0, 100]
|
|
3114
|
+
* },
|
|
3115
|
+
* "zoom": {
|
|
3116
|
+
* range: [50, 30]
|
|
3117
|
+
* }
|
|
3118
|
+
* }).on("release", function(event) {
|
|
3119
|
+
* // event.depaPos
|
|
3120
|
+
* // event.destPos
|
|
3121
|
+
* // event.delta
|
|
3122
|
+
* // event.input
|
|
3123
|
+
* // event.inputEvent
|
|
3124
|
+
* // event.setTo
|
|
3125
|
+
* // event.isTrusted
|
|
3126
|
+
*
|
|
3127
|
+
* // if you want to change the animation coordinates to move after the 'release' event.
|
|
3128
|
+
* event.setTo({x: 10}, 2000);
|
|
3129
|
+
* });
|
|
3130
|
+
* ```
|
|
3131
3131
|
*/
|
|
3132
3132
|
__proto.triggerRelease = function (param) {
|
|
3133
3133
|
var _a = this._getRoundPos(param.destPos, param.depaPos),
|
|
@@ -3140,43 +3140,43 @@ version: 4.11.4-beta.0
|
|
|
3140
3140
|
bounceRatio: this._getBounceRatio(roundPos)
|
|
3141
3141
|
})));
|
|
3142
3142
|
};
|
|
3143
|
-
/**
|
|
3144
|
-
* This event is fired when coordinate changes.
|
|
3145
|
-
* @ko ์ขํ๊ฐ ๋ณ๊ฒฝ๋์ ๋ ๋ฐ์ํ๋ ์ด๋ฒคํธ
|
|
3146
|
-
* @event Axes#change
|
|
3147
|
-
* @type {object}
|
|
3148
|
-
* @property {Object.<string, number>} pos The coordinate <ko>์ขํ</ko>
|
|
3149
|
-
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>์ขํ์ ๋ณํ๋</ko>
|
|
3150
|
-
* @property {Object.<string, number>} bounceRatio If the current coordinates are in the bounce area, the current bounce value divided by the maximum bounce value <ko>ํ์ฌ ์ขํ๊ฐ bounce ์์ญ์ ์๋ ๊ฒฝ์ฐ ํ์ฌ bounce๋ ๊ฐ์ ์ต๋ bounce ๊ฐ์ผ๋ก ๋๋ ์์น.</ko>
|
|
3151
|
-
* @property {Boolean} holding Indicates whether a user holds an element on the screen of the device.<ko>์ฌ์ฉ์๊ฐ ๊ธฐ๊ธฐ์ ํ๋ฉด์ ๋๋ฅด๊ณ ์๋์ง ์ฌ๋ถ</ko>
|
|
3152
|
-
* @property {Object} input The instance of inputType where the event occurred. If the value is changed by animation, it returns 'null'.<ko>์ด๋ฒคํธ๊ฐ ๋ฐ์ํ inputType ์ธ์คํด์ค. ์ ๋๋ฉ์ด์
์ ์ํด ๊ฐ์ด ๋ณ๊ฒฝ๋ ๊ฒฝ์ฐ์๋ 'null'์ ๋ฐํํ๋ค.</ko>
|
|
3153
|
-
* @property {Object} inputEvent The event object received from inputType. If the value is changed by animation, it returns 'null'.<ko>inputType์ผ๋ก ๋ถํฐ ๋ฐ์ ์ด๋ฒคํธ ๊ฐ์ฒด. ์ ๋๋ฉ์ด์
์ ์ํด ๊ฐ์ด ๋ณ๊ฒฝ๋ ๊ฒฝ์ฐ์๋ 'null'์ ๋ฐํํ๋ค.</ko>
|
|
3154
|
-
* @property {set} set Specifies the coordinates to move after the event. It works when the holding value is true <ko>์ด๋ฒคํธ ์ดํ ์ด๋ํ ์ขํ๋ฅผ ์ง์ ํ๋ค. holding ๊ฐ์ด true์ผ ๊ฒฝ์ฐ์ ๋์ํ๋ค.</ko>
|
|
3155
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3156
|
-
*
|
|
3157
|
-
* @example
|
|
3158
|
-
* ```js
|
|
3159
|
-
* const axes = new eg.Axes({
|
|
3160
|
-
* "x": {
|
|
3161
|
-
* range: [0, 100]
|
|
3162
|
-
* },
|
|
3163
|
-
* "zoom": {
|
|
3164
|
-
* range: [50, 30]
|
|
3165
|
-
* }
|
|
3166
|
-
* }).on("change", function(event) {
|
|
3167
|
-
* // event.pos
|
|
3168
|
-
* // event.delta
|
|
3169
|
-
* // event.input
|
|
3170
|
-
* // event.inputEvent
|
|
3171
|
-
* // event.holding
|
|
3172
|
-
* // event.set
|
|
3173
|
-
* // event.isTrusted
|
|
3174
|
-
*
|
|
3175
|
-
* // if you want to change the coordinates to move after the 'change' event.
|
|
3176
|
-
* // it works when the holding value of the change event is true.
|
|
3177
|
-
* event.holding && event.set({x: 10});
|
|
3178
|
-
* });
|
|
3179
|
-
* ```
|
|
3143
|
+
/**
|
|
3144
|
+
* This event is fired when coordinate changes.
|
|
3145
|
+
* @ko ์ขํ๊ฐ ๋ณ๊ฒฝ๋์ ๋ ๋ฐ์ํ๋ ์ด๋ฒคํธ
|
|
3146
|
+
* @event Axes#change
|
|
3147
|
+
* @type {object}
|
|
3148
|
+
* @property {Object.<string, number>} pos The coordinate <ko>์ขํ</ko>
|
|
3149
|
+
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>์ขํ์ ๋ณํ๋</ko>
|
|
3150
|
+
* @property {Object.<string, number>} bounceRatio If the current coordinates are in the bounce area, the current bounce value divided by the maximum bounce value <ko>ํ์ฌ ์ขํ๊ฐ bounce ์์ญ์ ์๋ ๊ฒฝ์ฐ ํ์ฌ bounce๋ ๊ฐ์ ์ต๋ bounce ๊ฐ์ผ๋ก ๋๋ ์์น.</ko>
|
|
3151
|
+
* @property {Boolean} holding Indicates whether a user holds an element on the screen of the device.<ko>์ฌ์ฉ์๊ฐ ๊ธฐ๊ธฐ์ ํ๋ฉด์ ๋๋ฅด๊ณ ์๋์ง ์ฌ๋ถ</ko>
|
|
3152
|
+
* @property {Object} input The instance of inputType where the event occurred. If the value is changed by animation, it returns 'null'.<ko>์ด๋ฒคํธ๊ฐ ๋ฐ์ํ inputType ์ธ์คํด์ค. ์ ๋๋ฉ์ด์
์ ์ํด ๊ฐ์ด ๋ณ๊ฒฝ๋ ๊ฒฝ์ฐ์๋ 'null'์ ๋ฐํํ๋ค.</ko>
|
|
3153
|
+
* @property {Object} inputEvent The event object received from inputType. If the value is changed by animation, it returns 'null'.<ko>inputType์ผ๋ก ๋ถํฐ ๋ฐ์ ์ด๋ฒคํธ ๊ฐ์ฒด. ์ ๋๋ฉ์ด์
์ ์ํด ๊ฐ์ด ๋ณ๊ฒฝ๋ ๊ฒฝ์ฐ์๋ 'null'์ ๋ฐํํ๋ค.</ko>
|
|
3154
|
+
* @property {set} set Specifies the coordinates to move after the event. It works when the holding value is true <ko>์ด๋ฒคํธ ์ดํ ์ด๋ํ ์ขํ๋ฅผ ์ง์ ํ๋ค. holding ๊ฐ์ด true์ผ ๊ฒฝ์ฐ์ ๋์ํ๋ค.</ko>
|
|
3155
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3156
|
+
*
|
|
3157
|
+
* @example
|
|
3158
|
+
* ```js
|
|
3159
|
+
* const axes = new eg.Axes({
|
|
3160
|
+
* "x": {
|
|
3161
|
+
* range: [0, 100]
|
|
3162
|
+
* },
|
|
3163
|
+
* "zoom": {
|
|
3164
|
+
* range: [50, 30]
|
|
3165
|
+
* }
|
|
3166
|
+
* }).on("change", function(event) {
|
|
3167
|
+
* // event.pos
|
|
3168
|
+
* // event.delta
|
|
3169
|
+
* // event.input
|
|
3170
|
+
* // event.inputEvent
|
|
3171
|
+
* // event.holding
|
|
3172
|
+
* // event.set
|
|
3173
|
+
* // event.isTrusted
|
|
3174
|
+
*
|
|
3175
|
+
* // if you want to change the coordinates to move after the 'change' event.
|
|
3176
|
+
* // it works when the holding value of the change event is true.
|
|
3177
|
+
* event.holding && event.set({x: 10});
|
|
3178
|
+
* });
|
|
3179
|
+
* ```
|
|
3180
3180
|
*/
|
|
3181
3181
|
__proto.triggerChange = function (pos, depaPos, option, holding) {
|
|
3182
3182
|
var _this = this;
|
|
@@ -3213,42 +3213,42 @@ version: 4.11.4-beta.0
|
|
|
3213
3213
|
}
|
|
3214
3214
|
return !event.isCanceled();
|
|
3215
3215
|
};
|
|
3216
|
-
/**
|
|
3217
|
-
* This event is fired when animation starts.
|
|
3218
|
-
* @ko ์๋๋ฉ์ด์
์ด ์์ํ ๋ ๋ฐ์ํ๋ค.
|
|
3219
|
-
* @event Axes#animationStart
|
|
3220
|
-
* @type {object}
|
|
3221
|
-
* @property {Object.<string, number>} depaPos The coordinates when animation starts<ko>์ ๋๋ฉ์ด์
์ด ์์ ๋์์ ๋์ ์ขํ </ko>
|
|
3222
|
-
* @property {Object.<string, number>} destPos The coordinates to move to. If you change this value, you can run the animation<ko>์ด๋ํ ์ขํ. ์ด๊ฐ์ ๋ณ๊ฒฝํ์ฌ ์ ๋๋ฉ์ด์
์ ๋์์ํฌ์ ์๋ค</ko>
|
|
3223
|
-
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>์ขํ์ ๋ณํ๋</ko>
|
|
3224
|
-
* @property {Number} duration Duration of the animation (unit: ms). If you change this value, you can control the animation duration time.<ko>์ ๋๋ฉ์ด์
์งํ ์๊ฐ(๋จ์: ms). ์ด๊ฐ์ ๋ณ๊ฒฝํ์ฌ ์ ๋๋ฉ์ด์
์ ์ด๋์๊ฐ์ ์กฐ์ ํ ์ ์๋ค.</ko>
|
|
3225
|
-
* @property {Object} input The instance of inputType where the event occurred. If the value is changed by animation, it returns 'null'.<ko>์ด๋ฒคํธ๊ฐ ๋ฐ์ํ inputType ์ธ์คํด์ค. ์ ๋๋ฉ์ด์
์ ์ํด ๊ฐ์ด ๋ณ๊ฒฝ๋ ๊ฒฝ์ฐ์๋ 'null'์ ๋ฐํํ๋ค.</ko>
|
|
3226
|
-
* @property {Object} inputEvent The event object received from inputType <ko>inputType์ผ๋ก ๋ถํฐ ๋ฐ์ ์ด๋ฒคํธ ๊ฐ์ฒด</ko>
|
|
3227
|
-
* @property {setTo} setTo Specifies the animation coordinates to move after the event <ko>์ด๋ฒคํธ ์ดํ ์ด๋ํ ์ ๋๋ฉ์ด์
์ขํ๋ฅผ ์ง์ ํ๋ค</ko>
|
|
3228
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3229
|
-
*
|
|
3230
|
-
* @example
|
|
3231
|
-
* ```js
|
|
3232
|
-
* const axes = new eg.Axes({
|
|
3233
|
-
* "x": {
|
|
3234
|
-
* range: [0, 100]
|
|
3235
|
-
* },
|
|
3236
|
-
* "zoom": {
|
|
3237
|
-
* range: [50, 30]
|
|
3238
|
-
* }
|
|
3239
|
-
* }).on("release", function(event) {
|
|
3240
|
-
* // event.depaPos
|
|
3241
|
-
* // event.destPos
|
|
3242
|
-
* // event.delta
|
|
3243
|
-
* // event.input
|
|
3244
|
-
* // event.inputEvent
|
|
3245
|
-
* // event.setTo
|
|
3246
|
-
* // event.isTrusted
|
|
3247
|
-
*
|
|
3248
|
-
* // if you want to change the animation coordinates to move after the 'animationStart' event.
|
|
3249
|
-
* event.setTo({x: 10}, 2000);
|
|
3250
|
-
* });
|
|
3251
|
-
* ```
|
|
3216
|
+
/**
|
|
3217
|
+
* This event is fired when animation starts.
|
|
3218
|
+
* @ko ์๋๋ฉ์ด์
์ด ์์ํ ๋ ๋ฐ์ํ๋ค.
|
|
3219
|
+
* @event Axes#animationStart
|
|
3220
|
+
* @type {object}
|
|
3221
|
+
* @property {Object.<string, number>} depaPos The coordinates when animation starts<ko>์ ๋๋ฉ์ด์
์ด ์์ ๋์์ ๋์ ์ขํ </ko>
|
|
3222
|
+
* @property {Object.<string, number>} destPos The coordinates to move to. If you change this value, you can run the animation<ko>์ด๋ํ ์ขํ. ์ด๊ฐ์ ๋ณ๊ฒฝํ์ฌ ์ ๋๋ฉ์ด์
์ ๋์์ํฌ์ ์๋ค</ko>
|
|
3223
|
+
* @property {Object.<string, number>} delta The movement variation of coordinate <ko>์ขํ์ ๋ณํ๋</ko>
|
|
3224
|
+
* @property {Number} duration Duration of the animation (unit: ms). If you change this value, you can control the animation duration time.<ko>์ ๋๋ฉ์ด์
์งํ ์๊ฐ(๋จ์: ms). ์ด๊ฐ์ ๋ณ๊ฒฝํ์ฌ ์ ๋๋ฉ์ด์
์ ์ด๋์๊ฐ์ ์กฐ์ ํ ์ ์๋ค.</ko>
|
|
3225
|
+
* @property {Object} input The instance of inputType where the event occurred. If the value is changed by animation, it returns 'null'.<ko>์ด๋ฒคํธ๊ฐ ๋ฐ์ํ inputType ์ธ์คํด์ค. ์ ๋๋ฉ์ด์
์ ์ํด ๊ฐ์ด ๋ณ๊ฒฝ๋ ๊ฒฝ์ฐ์๋ 'null'์ ๋ฐํํ๋ค.</ko>
|
|
3226
|
+
* @property {Object} inputEvent The event object received from inputType <ko>inputType์ผ๋ก ๋ถํฐ ๋ฐ์ ์ด๋ฒคํธ ๊ฐ์ฒด</ko>
|
|
3227
|
+
* @property {setTo} setTo Specifies the animation coordinates to move after the event <ko>์ด๋ฒคํธ ์ดํ ์ด๋ํ ์ ๋๋ฉ์ด์
์ขํ๋ฅผ ์ง์ ํ๋ค</ko>
|
|
3228
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3229
|
+
*
|
|
3230
|
+
* @example
|
|
3231
|
+
* ```js
|
|
3232
|
+
* const axes = new eg.Axes({
|
|
3233
|
+
* "x": {
|
|
3234
|
+
* range: [0, 100]
|
|
3235
|
+
* },
|
|
3236
|
+
* "zoom": {
|
|
3237
|
+
* range: [50, 30]
|
|
3238
|
+
* }
|
|
3239
|
+
* }).on("release", function(event) {
|
|
3240
|
+
* // event.depaPos
|
|
3241
|
+
* // event.destPos
|
|
3242
|
+
* // event.delta
|
|
3243
|
+
* // event.input
|
|
3244
|
+
* // event.inputEvent
|
|
3245
|
+
* // event.setTo
|
|
3246
|
+
* // event.isTrusted
|
|
3247
|
+
*
|
|
3248
|
+
* // if you want to change the animation coordinates to move after the 'animationStart' event.
|
|
3249
|
+
* event.setTo({x: 10}, 2000);
|
|
3250
|
+
* });
|
|
3251
|
+
* ```
|
|
3252
3252
|
*/
|
|
3253
3253
|
__proto.triggerAnimationStart = function (param) {
|
|
3254
3254
|
var _a = this._getRoundPos(param.destPos, param.depaPos),
|
|
@@ -3261,26 +3261,26 @@ version: 4.11.4-beta.0
|
|
|
3261
3261
|
this._axes.trigger(event);
|
|
3262
3262
|
return !event.isCanceled();
|
|
3263
3263
|
};
|
|
3264
|
-
/**
|
|
3265
|
-
* This event is fired when animation ends.
|
|
3266
|
-
* @ko ์๋๋ฉ์ด์
์ด ๋๋ฌ์ ๋ ๋ฐ์ํ๋ค.
|
|
3267
|
-
* @event Axes#animationEnd
|
|
3268
|
-
* @type {object}
|
|
3269
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3270
|
-
*
|
|
3271
|
-
* @example
|
|
3272
|
-
* ```js
|
|
3273
|
-
* const axes = new eg.Axes({
|
|
3274
|
-
* "x": {
|
|
3275
|
-
* range: [0, 100]
|
|
3276
|
-
* },
|
|
3277
|
-
* "zoom": {
|
|
3278
|
-
* range: [50, 30]
|
|
3279
|
-
* }
|
|
3280
|
-
* }).on("animationEnd", function(event) {
|
|
3281
|
-
* // event.isTrusted
|
|
3282
|
-
* });
|
|
3283
|
-
* ```
|
|
3264
|
+
/**
|
|
3265
|
+
* This event is fired when animation ends.
|
|
3266
|
+
* @ko ์๋๋ฉ์ด์
์ด ๋๋ฌ์ ๋ ๋ฐ์ํ๋ค.
|
|
3267
|
+
* @event Axes#animationEnd
|
|
3268
|
+
* @type {object}
|
|
3269
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3270
|
+
*
|
|
3271
|
+
* @example
|
|
3272
|
+
* ```js
|
|
3273
|
+
* const axes = new eg.Axes({
|
|
3274
|
+
* "x": {
|
|
3275
|
+
* range: [0, 100]
|
|
3276
|
+
* },
|
|
3277
|
+
* "zoom": {
|
|
3278
|
+
* range: [50, 30]
|
|
3279
|
+
* }
|
|
3280
|
+
* }).on("animationEnd", function(event) {
|
|
3281
|
+
* // event.isTrusted
|
|
3282
|
+
* });
|
|
3283
|
+
* ```
|
|
3284
3284
|
*/
|
|
3285
3285
|
__proto.triggerAnimationEnd = function (isTrusted) {
|
|
3286
3286
|
if (isTrusted === void 0) {
|
|
@@ -3290,26 +3290,26 @@ version: 4.11.4-beta.0
|
|
|
3290
3290
|
isTrusted: isTrusted
|
|
3291
3291
|
}));
|
|
3292
3292
|
};
|
|
3293
|
-
/**
|
|
3294
|
-
* This event is fired when all actions have been completed.
|
|
3295
|
-
* @ko ์๋๋ฉ์ด์
์ด ๋๋ฌ์ ๋ ๋ฐ์ํ๋ค.
|
|
3296
|
-
* @event Axes#finish
|
|
3297
|
-
* @type {object}
|
|
3298
|
-
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3299
|
-
*
|
|
3300
|
-
* @example
|
|
3301
|
-
* ```js
|
|
3302
|
-
* const axes = new eg.Axes({
|
|
3303
|
-
* "x": {
|
|
3304
|
-
* range: [0, 100]
|
|
3305
|
-
* },
|
|
3306
|
-
* "zoom": {
|
|
3307
|
-
* range: [50, 30]
|
|
3308
|
-
* }
|
|
3309
|
-
* }).on("finish", function(event) {
|
|
3310
|
-
* // event.isTrusted
|
|
3311
|
-
* });
|
|
3312
|
-
* ```
|
|
3293
|
+
/**
|
|
3294
|
+
* This event is fired when all actions have been completed.
|
|
3295
|
+
* @ko ์๋๋ฉ์ด์
์ด ๋๋ฌ์ ๋ ๋ฐ์ํ๋ค.
|
|
3296
|
+
* @event Axes#finish
|
|
3297
|
+
* @type {object}
|
|
3298
|
+
* @property {Boolean} isTrusted Returns true if an event was generated by the user action, or false if it was caused by a script or API call <ko>์ฌ์ฉ์์ ์ก์
์ ์ํด ์ด๋ฒคํธ๊ฐ ๋ฐ์ํ์์ผ๋ฉด true, ์คํฌ๋ฆฝํธ๋ APIํธ์ถ์ ์ํด ๋ฐ์ํ์์ ๊ฒฝ์ฐ์๋ false๋ฅผ ๋ฐํํ๋ค.</ko>
|
|
3299
|
+
*
|
|
3300
|
+
* @example
|
|
3301
|
+
* ```js
|
|
3302
|
+
* const axes = new eg.Axes({
|
|
3303
|
+
* "x": {
|
|
3304
|
+
* range: [0, 100]
|
|
3305
|
+
* },
|
|
3306
|
+
* "zoom": {
|
|
3307
|
+
* range: [50, 30]
|
|
3308
|
+
* }
|
|
3309
|
+
* }).on("finish", function(event) {
|
|
3310
|
+
* // event.isTrusted
|
|
3311
|
+
* });
|
|
3312
|
+
* ```
|
|
3313
3313
|
*/
|
|
3314
3314
|
__proto.triggerFinish = function (isTrusted) {
|
|
3315
3315
|
if (isTrusted === void 0) {
|
|
@@ -3391,9 +3391,9 @@ version: 4.11.4-beta.0
|
|
|
3391
3391
|
return InterruptManager;
|
|
3392
3392
|
}();
|
|
3393
3393
|
|
|
3394
|
-
/*
|
|
3395
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
3396
|
-
* egjs projects are licensed under the MIT license
|
|
3394
|
+
/*
|
|
3395
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
3396
|
+
* egjs projects are licensed under the MIT license
|
|
3397
3397
|
*/
|
|
3398
3398
|
var getInsidePosition = function (destPos, range, circular, bounce) {
|
|
3399
3399
|
var toDestPos = destPos;
|
|
@@ -3522,9 +3522,9 @@ version: 4.11.4-beta.0
|
|
|
3522
3522
|
});
|
|
3523
3523
|
this._complementOptions();
|
|
3524
3524
|
};
|
|
3525
|
-
/**
|
|
3526
|
-
* set up 'css' expression
|
|
3527
|
-
* @private
|
|
3525
|
+
/**
|
|
3526
|
+
* set up 'css' expression
|
|
3527
|
+
* @private
|
|
3528
3528
|
*/
|
|
3529
3529
|
__proto._complementOptions = function () {
|
|
3530
3530
|
var _this = this;
|
|
@@ -4420,15 +4420,15 @@ version: 4.11.4-beta.0
|
|
|
4420
4420
|
complete();
|
|
4421
4421
|
}
|
|
4422
4422
|
};
|
|
4423
|
-
/**
|
|
4424
|
-
* Get estimated final value.
|
|
4425
|
-
*
|
|
4426
|
-
* If destPos is within the 'error range' of the original intended position, the initial intended position is returned.
|
|
4427
|
-
* - eg. original intended pos: 100, destPos: 100.0000000004 ==> return 100;
|
|
4428
|
-
* If dest Pos is outside the 'range of error' compared to the originally intended pos, it is returned rounded based on the originally intended pos.
|
|
4429
|
-
* - eg. original intended pos: 100.123 destPos: 50.12345 => return 50.123
|
|
4430
|
-
* @param originalIntendedPos
|
|
4431
|
-
* @param destPos
|
|
4423
|
+
/**
|
|
4424
|
+
* Get estimated final value.
|
|
4425
|
+
*
|
|
4426
|
+
* If destPos is within the 'error range' of the original intended position, the initial intended position is returned.
|
|
4427
|
+
* - eg. original intended pos: 100, destPos: 100.0000000004 ==> return 100;
|
|
4428
|
+
* If dest Pos is outside the 'range of error' compared to the originally intended pos, it is returned rounded based on the originally intended pos.
|
|
4429
|
+
* - eg. original intended pos: 100.123 destPos: 50.12345 => return 50.123
|
|
4430
|
+
* @param originalIntendedPos
|
|
4431
|
+
* @param destPos
|
|
4432
4432
|
*/
|
|
4433
4433
|
__proto._getFinalPos = function (destPos, originalIntendedPos) {
|
|
4434
4434
|
var _this = this;
|
|
@@ -4554,111 +4554,111 @@ version: 4.11.4-beta.0
|
|
|
4554
4554
|
return EasingManager;
|
|
4555
4555
|
}(AnimationManager);
|
|
4556
4556
|
|
|
4557
|
-
/**
|
|
4558
|
-
* @typedef {Object} AxisOption The Axis information. The key of the axis specifies the name to use as the logical virtual coordinate system.
|
|
4559
|
-
* @ko ์ถ ์ ๋ณด. ์ถ์ ํค๋ ๋
ผ๋ฆฌ์ ์ธ ๊ฐ์ ์ขํ๊ณ๋ก ์ฌ์ฉํ ์ด๋ฆ์ ์ง์ ํ๋ค.
|
|
4560
|
-
* @param {Number[]} [range] The range of coordinate <ko>์ขํ ๋ฒ์</ko>
|
|
4561
|
-
* @param {Number} [range[0]=0] The coordinate of the minimum <ko>์ต์ ์ขํ</ko>
|
|
4562
|
-
* @param {Number} [range[1]=0] The coordinate of the maximum <ko>์ต๋ ์ขํ</ko>
|
|
4563
|
-
* @param {Number} [startPos=range[0]] The coordinates to be moved when creating an instance <ko>์ธ์คํด์ค ์์ฑ์ ์ด๋ํ ์ขํ</ko>
|
|
4564
|
-
* @param {Number[]} [bounce] The size of bouncing area. The coordinates can exceed the coordinate area as much as the bouncing area based on user action. If the coordinates does not exceed the bouncing area when an element is dragged, the coordinates where bouncing effects are applied are retuned back into the coordinate area<ko>๋ฐ์ด์ค ์์ญ์ ํฌ๊ธฐ. ์ฌ์ฉ์์ ๋์์ ๋ฐ๋ผ ์ขํ๊ฐ ์ขํ ์์ญ์ ๋์ด ๋ฐ์ด์ค ์์ญ์ ํฌ๊ธฐ๋งํผ ๋ ์ด๋ํ ์ ์๋ค. ์ฌ์ฉ์๊ฐ ๋์ด๋ค ๋๋ ๋์์ ํ์ ๋ ์ขํ๊ฐ ๋ฐ์ด์ค ์์ญ์ ์์ผ๋ฉด, ๋ฐ์ด์ค ํจ๊ณผ๊ฐ ์ ์ฉ๋ ์ขํ๊ฐ ๋ค์ ์ขํ ์์ญ ์์ผ๋ก ๋ค์ด์จ๋ค</ko>
|
|
4565
|
-
* @param {Number} [bounce[0]=0] The size of coordinate of the minimum area <ko>์ต์ ์ขํ ๋ฐ์ด์ค ์์ญ์ ํฌ๊ธฐ</ko>
|
|
4566
|
-
* @param {Number} [bounce[1]=0] The size of coordinate of the maximum area <ko>์ต๋ ์ขํ ๋ฐ์ด์ค ์์ญ์ ํฌ๊ธฐ</ko>
|
|
4567
|
-
* @param {Boolean[]} [circular] Indicates whether a circular element is available. If it is set to "true" and an element is dragged outside the coordinate area, the element will appear on the other side.<ko>์ํ ์ฌ๋ถ. 'true'๋ก ์ค์ ํ ๋ฐฉํฅ์ ์ขํ ์์ญ ๋ฐ์ผ๋ก ์๋ฆฌ๋จผํธ๊ฐ ์ด๋ํ๋ฉด ๋ฐ๋ ๋ฐฉํฅ์์ ์๋ฆฌ๋จผํธ๊ฐ ๋ํ๋๋ค</ko>
|
|
4568
|
-
* @param {Boolean} [circular[0]=false] Indicates whether to circulate to the coordinate of the minimum <ko>์ต์ ์ขํ ๋ฐฉํฅ์ ์ํ ์ฌ๋ถ</ko>
|
|
4569
|
-
* @param {Boolean} [circular[1]=false] Indicates whether to circulate to the coordinate of the maximum <ko>์ต๋ ์ขํ ๋ฐฉํฅ์ ์ํ ์ฌ๋ถ</ko>
|
|
4557
|
+
/**
|
|
4558
|
+
* @typedef {Object} AxisOption The Axis information. The key of the axis specifies the name to use as the logical virtual coordinate system.
|
|
4559
|
+
* @ko ์ถ ์ ๋ณด. ์ถ์ ํค๋ ๋
ผ๋ฆฌ์ ์ธ ๊ฐ์ ์ขํ๊ณ๋ก ์ฌ์ฉํ ์ด๋ฆ์ ์ง์ ํ๋ค.
|
|
4560
|
+
* @param {Number[]} [range] The range of coordinate <ko>์ขํ ๋ฒ์</ko>
|
|
4561
|
+
* @param {Number} [range[0]=0] The coordinate of the minimum <ko>์ต์ ์ขํ</ko>
|
|
4562
|
+
* @param {Number} [range[1]=0] The coordinate of the maximum <ko>์ต๋ ์ขํ</ko>
|
|
4563
|
+
* @param {Number} [startPos=range[0]] The coordinates to be moved when creating an instance <ko>์ธ์คํด์ค ์์ฑ์ ์ด๋ํ ์ขํ</ko>
|
|
4564
|
+
* @param {Number[]} [bounce] The size of bouncing area. The coordinates can exceed the coordinate area as much as the bouncing area based on user action. If the coordinates does not exceed the bouncing area when an element is dragged, the coordinates where bouncing effects are applied are retuned back into the coordinate area<ko>๋ฐ์ด์ค ์์ญ์ ํฌ๊ธฐ. ์ฌ์ฉ์์ ๋์์ ๋ฐ๋ผ ์ขํ๊ฐ ์ขํ ์์ญ์ ๋์ด ๋ฐ์ด์ค ์์ญ์ ํฌ๊ธฐ๋งํผ ๋ ์ด๋ํ ์ ์๋ค. ์ฌ์ฉ์๊ฐ ๋์ด๋ค ๋๋ ๋์์ ํ์ ๋ ์ขํ๊ฐ ๋ฐ์ด์ค ์์ญ์ ์์ผ๋ฉด, ๋ฐ์ด์ค ํจ๊ณผ๊ฐ ์ ์ฉ๋ ์ขํ๊ฐ ๋ค์ ์ขํ ์์ญ ์์ผ๋ก ๋ค์ด์จ๋ค</ko>
|
|
4565
|
+
* @param {Number} [bounce[0]=0] The size of coordinate of the minimum area <ko>์ต์ ์ขํ ๋ฐ์ด์ค ์์ญ์ ํฌ๊ธฐ</ko>
|
|
4566
|
+
* @param {Number} [bounce[1]=0] The size of coordinate of the maximum area <ko>์ต๋ ์ขํ ๋ฐ์ด์ค ์์ญ์ ํฌ๊ธฐ</ko>
|
|
4567
|
+
* @param {Boolean[]} [circular] Indicates whether a circular element is available. If it is set to "true" and an element is dragged outside the coordinate area, the element will appear on the other side.<ko>์ํ ์ฌ๋ถ. 'true'๋ก ์ค์ ํ ๋ฐฉํฅ์ ์ขํ ์์ญ ๋ฐ์ผ๋ก ์๋ฆฌ๋จผํธ๊ฐ ์ด๋ํ๋ฉด ๋ฐ๋ ๋ฐฉํฅ์์ ์๋ฆฌ๋จผํธ๊ฐ ๋ํ๋๋ค</ko>
|
|
4568
|
+
* @param {Boolean} [circular[0]=false] Indicates whether to circulate to the coordinate of the minimum <ko>์ต์ ์ขํ ๋ฐฉํฅ์ ์ํ ์ฌ๋ถ</ko>
|
|
4569
|
+
* @param {Boolean} [circular[1]=false] Indicates whether to circulate to the coordinate of the maximum <ko>์ต๋ ์ขํ ๋ฐฉํฅ์ ์ํ ์ฌ๋ถ</ko>
|
|
4570
4570
|
**/
|
|
4571
|
-
/**
|
|
4572
|
-
* @typedef {Object} AxesOption The option object of the eg.Axes module
|
|
4573
|
-
* @ko eg.Axes ๋ชจ๋์ ์ต์
๊ฐ์ฒด
|
|
4574
|
-
* @param {Function} [easing=easing.easeOutCubic] The easing function to apply to an animation <ko>์ ๋๋ฉ์ด์
์ ์ ์ฉํ easing ํจ์</ko>
|
|
4575
|
-
* @param {Number} [maximumDuration=Infinity] Maximum duration of the animation <ko>๊ฐ์๋์ ์ํด ์ ๋๋ฉ์ด์
์ด ๋์ํ ๋์ ์ต๋ ์ขํ ์ด๋ ์๊ฐ</ko>
|
|
4576
|
-
* @param {Number} [minimumDuration=0] Minimum duration of the animation <ko>๊ฐ์๋์ ์ํด ์ ๋๋ฉ์ด์
์ด ๋์ํ ๋์ ์ต์ ์ขํ ์ด๋ ์๊ฐ</ko>
|
|
4577
|
-
* @param {Number} [deceleration=0.0006] Deceleration of the animation where acceleration is manually enabled by user. A higher value indicates shorter running time. <ko>์ฌ์ฉ์์ ๋์์ผ๋ก ๊ฐ์๋๊ฐ ์ ์ฉ๋ ์ ๋๋ฉ์ด์
์ ๊ฐ์๋. ๊ฐ์ด ๋์์๋ก ์ ๋๋ฉ์ด์
์คํ ์๊ฐ์ด ์งง์์ง๋ค</ko>
|
|
4578
|
-
* @param {Boolean} [interruptable=true] Indicates whether an animation is interruptible.
|
|
4579
|
-
* - true: It can be paused or stopped by user action or the API.
|
|
4580
|
-
* - false: It cannot be paused or stopped by user action or the API while it is running.
|
|
4581
|
-
* <ko>์งํ ์ค์ธ ์ ๋๋ฉ์ด์
์ค์ง ๊ฐ๋ฅ ์ฌ๋ถ.
|
|
4582
|
-
* - true: ์ฌ์ฉ์์ ๋์์ด๋ API๋ก ์ ๋๋ฉ์ด์
์ ์ค์งํ ์ ์๋ค.
|
|
4583
|
-
* - false: ์ ๋๋ฉ์ด์
์ด ์งํ ์ค์ผ ๋๋ ์ฌ์ฉ์์ ๋์์ด๋ API๊ฐ ์ ์ฉ๋์ง ์๋๋ค</ko>
|
|
4584
|
-
* @param {Number} [round=null] Rounding unit. For example, 0.1 rounds to 0.1 decimal point(6.1234 => 6.1), 5 rounds to 5 (93 => 95)
|
|
4585
|
-
* [Details](https://github.com/naver/egjs-axes/wiki/round-option)<ko>๋ฐ์ฌ๋ฆผ ๋จ์. ์๋ฅผ ๋ค์ด 0.1 ์ ์์ซ์ 0.1 ๊น์ง ๋ฐ์ฌ๋ฆผ(6.1234 => 6.1), 5 ๋ 5 ๋จ์๋ก ๋ฐ์ฌ๋ฆผ(93 => 95).
|
|
4586
|
-
* [์์ธ๋ด์ฉ](https://github.com/naver/egjs-axes/wiki/round-option)</ko>
|
|
4587
|
-
* @param {Boolean} [nested=false] Whether the event propagates to other instances when the coordinates reach the end of the movable area <ko>์ขํ๊ฐ ์ด๋ ๊ฐ๋ฅํ ์์ญ์ ๋๊น์ง ๋๋ฌํ์ ๋ ๋ค๋ฅธ ์ธ์คํด์ค๋ค๋ก์ ์ด๋ฒคํธ ์ ํ ์ฌ๋ถ</ko>
|
|
4571
|
+
/**
|
|
4572
|
+
* @typedef {Object} AxesOption The option object of the eg.Axes module
|
|
4573
|
+
* @ko eg.Axes ๋ชจ๋์ ์ต์
๊ฐ์ฒด
|
|
4574
|
+
* @param {Function} [easing=easing.easeOutCubic] The easing function to apply to an animation <ko>์ ๋๋ฉ์ด์
์ ์ ์ฉํ easing ํจ์</ko>
|
|
4575
|
+
* @param {Number} [maximumDuration=Infinity] Maximum duration of the animation <ko>๊ฐ์๋์ ์ํด ์ ๋๋ฉ์ด์
์ด ๋์ํ ๋์ ์ต๋ ์ขํ ์ด๋ ์๊ฐ</ko>
|
|
4576
|
+
* @param {Number} [minimumDuration=0] Minimum duration of the animation <ko>๊ฐ์๋์ ์ํด ์ ๋๋ฉ์ด์
์ด ๋์ํ ๋์ ์ต์ ์ขํ ์ด๋ ์๊ฐ</ko>
|
|
4577
|
+
* @param {Number} [deceleration=0.0006] Deceleration of the animation where acceleration is manually enabled by user. A higher value indicates shorter running time. <ko>์ฌ์ฉ์์ ๋์์ผ๋ก ๊ฐ์๋๊ฐ ์ ์ฉ๋ ์ ๋๋ฉ์ด์
์ ๊ฐ์๋. ๊ฐ์ด ๋์์๋ก ์ ๋๋ฉ์ด์
์คํ ์๊ฐ์ด ์งง์์ง๋ค</ko>
|
|
4578
|
+
* @param {Boolean} [interruptable=true] Indicates whether an animation is interruptible.
|
|
4579
|
+
* - true: It can be paused or stopped by user action or the API.
|
|
4580
|
+
* - false: It cannot be paused or stopped by user action or the API while it is running.
|
|
4581
|
+
* <ko>์งํ ์ค์ธ ์ ๋๋ฉ์ด์
์ค์ง ๊ฐ๋ฅ ์ฌ๋ถ.
|
|
4582
|
+
* - true: ์ฌ์ฉ์์ ๋์์ด๋ API๋ก ์ ๋๋ฉ์ด์
์ ์ค์งํ ์ ์๋ค.
|
|
4583
|
+
* - false: ์ ๋๋ฉ์ด์
์ด ์งํ ์ค์ผ ๋๋ ์ฌ์ฉ์์ ๋์์ด๋ API๊ฐ ์ ์ฉ๋์ง ์๋๋ค</ko>
|
|
4584
|
+
* @param {Number} [round=null] Rounding unit. For example, 0.1 rounds to 0.1 decimal point(6.1234 => 6.1), 5 rounds to 5 (93 => 95)
|
|
4585
|
+
* [Details](https://github.com/naver/egjs-axes/wiki/round-option)<ko>๋ฐ์ฌ๋ฆผ ๋จ์. ์๋ฅผ ๋ค์ด 0.1 ์ ์์ซ์ 0.1 ๊น์ง ๋ฐ์ฌ๋ฆผ(6.1234 => 6.1), 5 ๋ 5 ๋จ์๋ก ๋ฐ์ฌ๋ฆผ(93 => 95).
|
|
4586
|
+
* [์์ธ๋ด์ฉ](https://github.com/naver/egjs-axes/wiki/round-option)</ko>
|
|
4587
|
+
* @param {Boolean} [nested=false] Whether the event propagates to other instances when the coordinates reach the end of the movable area <ko>์ขํ๊ฐ ์ด๋ ๊ฐ๋ฅํ ์์ญ์ ๋๊น์ง ๋๋ฌํ์ ๋ ๋ค๋ฅธ ์ธ์คํด์ค๋ค๋ก์ ์ด๋ฒคํธ ์ ํ ์ฌ๋ถ</ko>
|
|
4588
4588
|
**/
|
|
4589
|
-
/**
|
|
4590
|
-
* A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.
|
|
4591
|
-
* @ko ํฐ์น ์
๋ ฅ ์ฅ์น๋ ๋ง์ฐ์ค์ ๊ฐ์ ๋ค์ํ ์
๋ ฅ ์ฅ์น๋ฅผ ํตํด ์ ๋ฌ ๋ฐ์ ์ฌ์ฉ์์ ๋์์ ๋
ผ๋ฆฌ์ ์ธ ๊ฐ์ ์ขํ๋ก ๋ณ๊ฒฝํ๋ ๋ชจ๋์ด๋ค. ์ฌ์ฉ์ ๋์์ ๋ฐ์ํ๋ UI๋ฅผ ์์ฝ๊ฒ ๋ง๋ค์ ์๋ค.
|
|
4592
|
-
* @extends eg.Component
|
|
4593
|
-
*
|
|
4594
|
-
* @param {Object.<string, AxisOption>} axis Axis information managed by eg.Axes. The key of the axis specifies the name to use as the logical virtual coordinate system. <ko>eg.Axes๊ฐ ๊ด๋ฆฌํ๋ ์ถ ์ ๋ณด. ์ถ์ ํค๋ ๋
ผ๋ฆฌ์ ์ธ ๊ฐ์ ์ขํ๊ณ๋ก ์ฌ์ฉํ ์ด๋ฆ์ ์ง์ ํ๋ค.</ko>
|
|
4595
|
-
* @param {AxesOption} [options={}] The option object of the eg.Axes module<ko>eg.Axes ๋ชจ๋์ ์ต์
๊ฐ์ฒด</ko>
|
|
4596
|
-
* @param {Object.<string, number>} [startPos={}] The coordinates to be moved when creating an instance. It is applied with higher priority than startPos of axisOption.<ko>์ธ์คํด์ค ์์ฑ์ ์ด๋ํ ์ขํ, axisOption์ startPos๋ณด๋ค ๋์ ์ฐ์ ์์๋ก ์ ์ฉ๋๋ค.</ko>
|
|
4597
|
-
*
|
|
4598
|
-
* @support {"ie": "10+", "ch" : "latest", "ff" : "latest", "sf" : "latest", "edge" : "latest", "ios" : "7+", "an" : "2.3+ (except 3.x)"}
|
|
4599
|
-
* @example
|
|
4600
|
-
* ```js
|
|
4601
|
-
* // 1. Initialize eg.Axes
|
|
4602
|
-
* const axes = new eg.Axes({
|
|
4603
|
-
* something1: {
|
|
4604
|
-
* range: [0, 150],
|
|
4605
|
-
* bounce: 50
|
|
4606
|
-
* },
|
|
4607
|
-
* something2: {
|
|
4608
|
-
* range: [0, 200],
|
|
4609
|
-
* bounce: 100
|
|
4610
|
-
* },
|
|
4611
|
-
* somethingN: {
|
|
4612
|
-
* range: [1, 10],
|
|
4613
|
-
* }
|
|
4614
|
-
* }, {
|
|
4615
|
-
* deceleration : 0.0024
|
|
4616
|
-
* });
|
|
4617
|
-
*
|
|
4618
|
-
* // 2. attach event handler
|
|
4619
|
-
* axes.on({
|
|
4620
|
-
* "hold" : function(evt) {
|
|
4621
|
-
* },
|
|
4622
|
-
* "release" : function(evt) {
|
|
4623
|
-
* },
|
|
4624
|
-
* "animationStart" : function(evt) {
|
|
4625
|
-
* },
|
|
4626
|
-
* "animationEnd" : function(evt) {
|
|
4627
|
-
* },
|
|
4628
|
-
* "change" : function(evt) {
|
|
4629
|
-
* }
|
|
4630
|
-
* });
|
|
4631
|
-
*
|
|
4632
|
-
* // 3. Initialize inputTypes
|
|
4633
|
-
* const panInputArea = new eg.Axes.PanInput("#area", {
|
|
4634
|
-
* scale: [0.5, 1]
|
|
4635
|
-
* });
|
|
4636
|
-
* const panInputHmove = new eg.Axes.PanInput("#hmove");
|
|
4637
|
-
* const panInputVmove = new eg.Axes.PanInput("#vmove");
|
|
4638
|
-
* const pinchInputArea = new eg.Axes.PinchInput("#area", {
|
|
4639
|
-
* scale: 1.5
|
|
4640
|
-
* });
|
|
4641
|
-
*
|
|
4642
|
-
* // 4. Connect eg.Axes and InputTypes
|
|
4643
|
-
* // [PanInput] When the mouse or touchscreen is down and moved.
|
|
4644
|
-
* // Connect the 'something2' axis to the mouse or touchscreen x position and
|
|
4645
|
-
* // connect the 'somethingN' axis to the mouse or touchscreen y position.
|
|
4646
|
-
* axes.connect(["something2", "somethingN"], panInputArea); // or axes.connect("something2 somethingN", panInputArea);
|
|
4647
|
-
*
|
|
4648
|
-
* // Connect only one 'something1' axis to the mouse or touchscreen x position.
|
|
4649
|
-
* axes.connect(["something1"], panInputHmove); // or axes.connect("something1", panInputHmove);
|
|
4650
|
-
*
|
|
4651
|
-
* // Connect only one 'something2' axis to the mouse or touchscreen y position.
|
|
4652
|
-
* axes.connect(["", "something2"], panInputVmove); // or axes.connect(" something2", panInputVmove);
|
|
4653
|
-
*
|
|
4654
|
-
* // [PinchInput] Connect 'something2' axis when two pointers are moving toward (zoom-in) or away from each other (zoom-out).
|
|
4655
|
-
* axes.connect("something2", pinchInputArea);
|
|
4656
|
-
* ```
|
|
4589
|
+
/**
|
|
4590
|
+
* A module used to change the information of user action entered by various input devices such as touch screen or mouse into the logical virtual coordinates. You can easily create a UI that responds to user actions.
|
|
4591
|
+
* @ko ํฐ์น ์
๋ ฅ ์ฅ์น๋ ๋ง์ฐ์ค์ ๊ฐ์ ๋ค์ํ ์
๋ ฅ ์ฅ์น๋ฅผ ํตํด ์ ๋ฌ ๋ฐ์ ์ฌ์ฉ์์ ๋์์ ๋
ผ๋ฆฌ์ ์ธ ๊ฐ์ ์ขํ๋ก ๋ณ๊ฒฝํ๋ ๋ชจ๋์ด๋ค. ์ฌ์ฉ์ ๋์์ ๋ฐ์ํ๋ UI๋ฅผ ์์ฝ๊ฒ ๋ง๋ค์ ์๋ค.
|
|
4592
|
+
* @extends eg.Component
|
|
4593
|
+
*
|
|
4594
|
+
* @param {Object.<string, AxisOption>} axis Axis information managed by eg.Axes. The key of the axis specifies the name to use as the logical virtual coordinate system. <ko>eg.Axes๊ฐ ๊ด๋ฆฌํ๋ ์ถ ์ ๋ณด. ์ถ์ ํค๋ ๋
ผ๋ฆฌ์ ์ธ ๊ฐ์ ์ขํ๊ณ๋ก ์ฌ์ฉํ ์ด๋ฆ์ ์ง์ ํ๋ค.</ko>
|
|
4595
|
+
* @param {AxesOption} [options={}] The option object of the eg.Axes module<ko>eg.Axes ๋ชจ๋์ ์ต์
๊ฐ์ฒด</ko>
|
|
4596
|
+
* @param {Object.<string, number>} [startPos={}] The coordinates to be moved when creating an instance. It is applied with higher priority than startPos of axisOption.<ko>์ธ์คํด์ค ์์ฑ์ ์ด๋ํ ์ขํ, axisOption์ startPos๋ณด๋ค ๋์ ์ฐ์ ์์๋ก ์ ์ฉ๋๋ค.</ko>
|
|
4597
|
+
*
|
|
4598
|
+
* @support {"ie": "10+", "ch" : "latest", "ff" : "latest", "sf" : "latest", "edge" : "latest", "ios" : "7+", "an" : "2.3+ (except 3.x)"}
|
|
4599
|
+
* @example
|
|
4600
|
+
* ```js
|
|
4601
|
+
* // 1. Initialize eg.Axes
|
|
4602
|
+
* const axes = new eg.Axes({
|
|
4603
|
+
* something1: {
|
|
4604
|
+
* range: [0, 150],
|
|
4605
|
+
* bounce: 50
|
|
4606
|
+
* },
|
|
4607
|
+
* something2: {
|
|
4608
|
+
* range: [0, 200],
|
|
4609
|
+
* bounce: 100
|
|
4610
|
+
* },
|
|
4611
|
+
* somethingN: {
|
|
4612
|
+
* range: [1, 10],
|
|
4613
|
+
* }
|
|
4614
|
+
* }, {
|
|
4615
|
+
* deceleration : 0.0024
|
|
4616
|
+
* });
|
|
4617
|
+
*
|
|
4618
|
+
* // 2. attach event handler
|
|
4619
|
+
* axes.on({
|
|
4620
|
+
* "hold" : function(evt) {
|
|
4621
|
+
* },
|
|
4622
|
+
* "release" : function(evt) {
|
|
4623
|
+
* },
|
|
4624
|
+
* "animationStart" : function(evt) {
|
|
4625
|
+
* },
|
|
4626
|
+
* "animationEnd" : function(evt) {
|
|
4627
|
+
* },
|
|
4628
|
+
* "change" : function(evt) {
|
|
4629
|
+
* }
|
|
4630
|
+
* });
|
|
4631
|
+
*
|
|
4632
|
+
* // 3. Initialize inputTypes
|
|
4633
|
+
* const panInputArea = new eg.Axes.PanInput("#area", {
|
|
4634
|
+
* scale: [0.5, 1]
|
|
4635
|
+
* });
|
|
4636
|
+
* const panInputHmove = new eg.Axes.PanInput("#hmove");
|
|
4637
|
+
* const panInputVmove = new eg.Axes.PanInput("#vmove");
|
|
4638
|
+
* const pinchInputArea = new eg.Axes.PinchInput("#area", {
|
|
4639
|
+
* scale: 1.5
|
|
4640
|
+
* });
|
|
4641
|
+
*
|
|
4642
|
+
* // 4. Connect eg.Axes and InputTypes
|
|
4643
|
+
* // [PanInput] When the mouse or touchscreen is down and moved.
|
|
4644
|
+
* // Connect the 'something2' axis to the mouse or touchscreen x position and
|
|
4645
|
+
* // connect the 'somethingN' axis to the mouse or touchscreen y position.
|
|
4646
|
+
* axes.connect(["something2", "somethingN"], panInputArea); // or axes.connect("something2 somethingN", panInputArea);
|
|
4647
|
+
*
|
|
4648
|
+
* // Connect only one 'something1' axis to the mouse or touchscreen x position.
|
|
4649
|
+
* axes.connect(["something1"], panInputHmove); // or axes.connect("something1", panInputHmove);
|
|
4650
|
+
*
|
|
4651
|
+
* // Connect only one 'something2' axis to the mouse or touchscreen y position.
|
|
4652
|
+
* axes.connect(["", "something2"], panInputVmove); // or axes.connect(" something2", panInputVmove);
|
|
4653
|
+
*
|
|
4654
|
+
* // [PinchInput] Connect 'something2' axis when two pointers are moving toward (zoom-in) or away from each other (zoom-out).
|
|
4655
|
+
* axes.connect("something2", pinchInputArea);
|
|
4656
|
+
* ```
|
|
4657
4657
|
*/
|
|
4658
4658
|
var Axes = /*#__PURE__*/function (_super) {
|
|
4659
4659
|
__extends$1(Axes, _super);
|
|
4660
|
-
/**
|
|
4661
|
-
*
|
|
4660
|
+
/**
|
|
4661
|
+
*
|
|
4662
4662
|
*/
|
|
4663
4663
|
function Axes(axis, options, startPos) {
|
|
4664
4664
|
if (axis === void 0) {
|
|
@@ -4698,23 +4698,23 @@ version: 4.11.4-beta.0
|
|
|
4698
4698
|
}
|
|
4699
4699
|
var __proto = Axes.prototype;
|
|
4700
4700
|
Object.defineProperty(__proto, "holding", {
|
|
4701
|
-
/**
|
|
4702
|
-
* @name Axes#holding
|
|
4703
|
-
* @desc Returns true if at least one input is in progress.
|
|
4704
|
-
* @ko ์
๋ ฅ์ด ํ๋ ์ด์ ์งํ ์ค์ธ์ง ์ฌ๋ถ๋ฅผ ๋ฐํํ๋ค.
|
|
4705
|
-
*
|
|
4706
|
-
* @readonly
|
|
4707
|
-
* @type {boolean}
|
|
4708
|
-
* @example
|
|
4709
|
-
* ```js
|
|
4710
|
-
* const axes = new eg.Axes({
|
|
4711
|
-
* x: {
|
|
4712
|
-
* range: [0, 100],
|
|
4713
|
-
* },
|
|
4714
|
-
* });
|
|
4715
|
-
*
|
|
4716
|
-
* axes.holding
|
|
4717
|
-
* ```
|
|
4701
|
+
/**
|
|
4702
|
+
* @name Axes#holding
|
|
4703
|
+
* @desc Returns true if at least one input is in progress.
|
|
4704
|
+
* @ko ์
๋ ฅ์ด ํ๋ ์ด์ ์งํ ์ค์ธ์ง ์ฌ๋ถ๋ฅผ ๋ฐํํ๋ค.
|
|
4705
|
+
*
|
|
4706
|
+
* @readonly
|
|
4707
|
+
* @type {boolean}
|
|
4708
|
+
* @example
|
|
4709
|
+
* ```js
|
|
4710
|
+
* const axes = new eg.Axes({
|
|
4711
|
+
* x: {
|
|
4712
|
+
* range: [0, 100],
|
|
4713
|
+
* },
|
|
4714
|
+
* });
|
|
4715
|
+
*
|
|
4716
|
+
* axes.holding
|
|
4717
|
+
* ```
|
|
4718
4718
|
*/
|
|
4719
4719
|
get: function () {
|
|
4720
4720
|
return this.eventManager.holdingCount > 0;
|
|
@@ -4722,30 +4722,30 @@ version: 4.11.4-beta.0
|
|
|
4722
4722
|
enumerable: false,
|
|
4723
4723
|
configurable: true
|
|
4724
4724
|
});
|
|
4725
|
-
/**
|
|
4726
|
-
* Connect the axis of eg.Axes to the inputType.
|
|
4727
|
-
* @ko eg.Axes์ ์ถ๊ณผ inputType์ ์ฐ๊ฒฐํ๋ค
|
|
4728
|
-
* @param {(String[]|String)} axes The name of the axis to associate with inputType <ko>inputType๊ณผ ์ฐ๊ฒฐํ ์ถ์ ์ด๋ฆ</ko>
|
|
4729
|
-
* @param {Object} inputType The inputType instance to associate with the axis of eg.Axes <ko>eg.Axes์ ์ถ๊ณผ ์ฐ๊ฒฐํ inputType ์ธ์คํด์ค</ko>
|
|
4730
|
-
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4731
|
-
* @example
|
|
4732
|
-
* ```js
|
|
4733
|
-
* const axes = new eg.Axes({
|
|
4734
|
-
* "x": {
|
|
4735
|
-
* range: [0, 100]
|
|
4736
|
-
* },
|
|
4737
|
-
* "xOther": {
|
|
4738
|
-
* range: [-100, 100]
|
|
4739
|
-
* }
|
|
4740
|
-
* });
|
|
4741
|
-
*
|
|
4742
|
-
* axes.connect("x", new eg.Axes.PanInput("#area1"))
|
|
4743
|
-
* .connect("x xOther", new eg.Axes.PanInput("#area2"))
|
|
4744
|
-
* .connect(" xOther", new eg.Axes.PanInput("#area3"))
|
|
4745
|
-
* .connect(["x"], new eg.Axes.PanInput("#area4"))
|
|
4746
|
-
* .connect(["xOther", "x"], new eg.Axes.PanInput("#area5"))
|
|
4747
|
-
* .connect(["", "xOther"], new eg.Axes.PanInput("#area6"));
|
|
4748
|
-
* ```
|
|
4725
|
+
/**
|
|
4726
|
+
* Connect the axis of eg.Axes to the inputType.
|
|
4727
|
+
* @ko eg.Axes์ ์ถ๊ณผ inputType์ ์ฐ๊ฒฐํ๋ค
|
|
4728
|
+
* @param {(String[]|String)} axes The name of the axis to associate with inputType <ko>inputType๊ณผ ์ฐ๊ฒฐํ ์ถ์ ์ด๋ฆ</ko>
|
|
4729
|
+
* @param {Object} inputType The inputType instance to associate with the axis of eg.Axes <ko>eg.Axes์ ์ถ๊ณผ ์ฐ๊ฒฐํ inputType ์ธ์คํด์ค</ko>
|
|
4730
|
+
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4731
|
+
* @example
|
|
4732
|
+
* ```js
|
|
4733
|
+
* const axes = new eg.Axes({
|
|
4734
|
+
* "x": {
|
|
4735
|
+
* range: [0, 100]
|
|
4736
|
+
* },
|
|
4737
|
+
* "xOther": {
|
|
4738
|
+
* range: [-100, 100]
|
|
4739
|
+
* }
|
|
4740
|
+
* });
|
|
4741
|
+
*
|
|
4742
|
+
* axes.connect("x", new eg.Axes.PanInput("#area1"))
|
|
4743
|
+
* .connect("x xOther", new eg.Axes.PanInput("#area2"))
|
|
4744
|
+
* .connect(" xOther", new eg.Axes.PanInput("#area3"))
|
|
4745
|
+
* .connect(["x"], new eg.Axes.PanInput("#area4"))
|
|
4746
|
+
* .connect(["xOther", "x"], new eg.Axes.PanInput("#area5"))
|
|
4747
|
+
* .connect(["", "xOther"], new eg.Axes.PanInput("#area6"));
|
|
4748
|
+
* ```
|
|
4749
4749
|
*/
|
|
4750
4750
|
__proto.connect = function (axes, inputType) {
|
|
4751
4751
|
var mapped;
|
|
@@ -4763,33 +4763,33 @@ version: 4.11.4-beta.0
|
|
|
4763
4763
|
this._inputs.push(inputType);
|
|
4764
4764
|
return this;
|
|
4765
4765
|
};
|
|
4766
|
-
/**
|
|
4767
|
-
* Disconnect the axis of eg.Axes from the inputType.
|
|
4768
|
-
* @ko eg.Axes์ ์ถ๊ณผ inputType์ ์ฐ๊ฒฐ์ ๋๋๋ค.
|
|
4769
|
-
* @param {Object} [inputType] An inputType instance associated with the axis of eg.Axes <ko>eg.Axes์ ์ถ๊ณผ ์ฐ๊ฒฐํ inputType ์ธ์คํด์ค</ko>
|
|
4770
|
-
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4771
|
-
* @example
|
|
4772
|
-
* ```js
|
|
4773
|
-
* const axes = new eg.Axes({
|
|
4774
|
-
* "x": {
|
|
4775
|
-
* range: [0, 100]
|
|
4776
|
-
* },
|
|
4777
|
-
* "xOther": {
|
|
4778
|
-
* range: [-100, 100]
|
|
4779
|
-
* }
|
|
4780
|
-
* });
|
|
4781
|
-
*
|
|
4782
|
-
* const input1 = new eg.Axes.PanInput("#area1");
|
|
4783
|
-
* const input2 = new eg.Axes.PanInput("#area2");
|
|
4784
|
-
* const input3 = new eg.Axes.PanInput("#area3");
|
|
4785
|
-
*
|
|
4786
|
-
* axes.connect("x", input1);
|
|
4787
|
-
* .connect("x xOther", input2)
|
|
4788
|
-
* .connect(["xOther", "x"], input3);
|
|
4789
|
-
*
|
|
4790
|
-
* axes.disconnect(input1); // disconnects input1
|
|
4791
|
-
* axes.disconnect(); // disconnects all of them
|
|
4792
|
-
* ```
|
|
4766
|
+
/**
|
|
4767
|
+
* Disconnect the axis of eg.Axes from the inputType.
|
|
4768
|
+
* @ko eg.Axes์ ์ถ๊ณผ inputType์ ์ฐ๊ฒฐ์ ๋๋๋ค.
|
|
4769
|
+
* @param {Object} [inputType] An inputType instance associated with the axis of eg.Axes <ko>eg.Axes์ ์ถ๊ณผ ์ฐ๊ฒฐํ inputType ์ธ์คํด์ค</ko>
|
|
4770
|
+
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4771
|
+
* @example
|
|
4772
|
+
* ```js
|
|
4773
|
+
* const axes = new eg.Axes({
|
|
4774
|
+
* "x": {
|
|
4775
|
+
* range: [0, 100]
|
|
4776
|
+
* },
|
|
4777
|
+
* "xOther": {
|
|
4778
|
+
* range: [-100, 100]
|
|
4779
|
+
* }
|
|
4780
|
+
* });
|
|
4781
|
+
*
|
|
4782
|
+
* const input1 = new eg.Axes.PanInput("#area1");
|
|
4783
|
+
* const input2 = new eg.Axes.PanInput("#area2");
|
|
4784
|
+
* const input3 = new eg.Axes.PanInput("#area3");
|
|
4785
|
+
*
|
|
4786
|
+
* axes.connect("x", input1);
|
|
4787
|
+
* .connect("x xOther", input2)
|
|
4788
|
+
* .connect(["xOther", "x"], input3);
|
|
4789
|
+
*
|
|
4790
|
+
* axes.disconnect(input1); // disconnects input1
|
|
4791
|
+
* axes.disconnect(); // disconnects all of them
|
|
4792
|
+
* ```
|
|
4793
4793
|
*/
|
|
4794
4794
|
__proto.disconnect = function (inputType) {
|
|
4795
4795
|
if (inputType) {
|
|
@@ -4806,60 +4806,60 @@ version: 4.11.4-beta.0
|
|
|
4806
4806
|
}
|
|
4807
4807
|
return this;
|
|
4808
4808
|
};
|
|
4809
|
-
/**
|
|
4810
|
-
* Returns the current position of the coordinates.
|
|
4811
|
-
* @ko ์ขํ์ ํ์ฌ ์์น๋ฅผ ๋ฐํํ๋ค
|
|
4812
|
-
* @param {Object} [axes] The names of the axis <ko>์ถ ์ด๋ฆ๋ค</ko>
|
|
4813
|
-
* @return {Object.<string, number>} Axis coordinate information <ko>์ถ ์ขํ ์ ๋ณด</ko>
|
|
4814
|
-
* @example
|
|
4815
|
-
* ```js
|
|
4816
|
-
* const axes = new eg.Axes({
|
|
4817
|
-
* "x": {
|
|
4818
|
-
* range: [0, 100]
|
|
4819
|
-
* },
|
|
4820
|
-
* "xOther": {
|
|
4821
|
-
* range: [-100, 100]
|
|
4822
|
-
* },
|
|
4823
|
-
* "zoom": {
|
|
4824
|
-
* range: [50, 30]
|
|
4825
|
-
* }
|
|
4826
|
-
* });
|
|
4827
|
-
*
|
|
4828
|
-
* axes.get(); // {"x": 0, "xOther": -100, "zoom": 50}
|
|
4829
|
-
* axes.get(["x", "zoom"]); // {"x": 0, "zoom": 50}
|
|
4830
|
-
* ```
|
|
4809
|
+
/**
|
|
4810
|
+
* Returns the current position of the coordinates.
|
|
4811
|
+
* @ko ์ขํ์ ํ์ฌ ์์น๋ฅผ ๋ฐํํ๋ค
|
|
4812
|
+
* @param {Object} [axes] The names of the axis <ko>์ถ ์ด๋ฆ๋ค</ko>
|
|
4813
|
+
* @return {Object.<string, number>} Axis coordinate information <ko>์ถ ์ขํ ์ ๋ณด</ko>
|
|
4814
|
+
* @example
|
|
4815
|
+
* ```js
|
|
4816
|
+
* const axes = new eg.Axes({
|
|
4817
|
+
* "x": {
|
|
4818
|
+
* range: [0, 100]
|
|
4819
|
+
* },
|
|
4820
|
+
* "xOther": {
|
|
4821
|
+
* range: [-100, 100]
|
|
4822
|
+
* },
|
|
4823
|
+
* "zoom": {
|
|
4824
|
+
* range: [50, 30]
|
|
4825
|
+
* }
|
|
4826
|
+
* });
|
|
4827
|
+
*
|
|
4828
|
+
* axes.get(); // {"x": 0, "xOther": -100, "zoom": 50}
|
|
4829
|
+
* axes.get(["x", "zoom"]); // {"x": 0, "zoom": 50}
|
|
4830
|
+
* ```
|
|
4831
4831
|
*/
|
|
4832
4832
|
__proto.get = function (axes) {
|
|
4833
4833
|
return this.axisManager.get(axes);
|
|
4834
4834
|
};
|
|
4835
|
-
/**
|
|
4836
|
-
* Moves an axis to specific coordinates.
|
|
4837
|
-
* @ko ์ขํ๋ฅผ ์ด๋ํ๋ค.
|
|
4838
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>์ด๋ํ ์ขํ</ko>
|
|
4839
|
-
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>์ ๋๋ฉ์ด์
์งํ ์๊ฐ(๋จ์: ms)</ko>
|
|
4840
|
-
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4841
|
-
* @example
|
|
4842
|
-
* ```js
|
|
4843
|
-
* const axes = new eg.Axes({
|
|
4844
|
-
* "x": {
|
|
4845
|
-
* range: [0, 100]
|
|
4846
|
-
* },
|
|
4847
|
-
* "xOther": {
|
|
4848
|
-
* range: [-100, 100]
|
|
4849
|
-
* },
|
|
4850
|
-
* "zoom": {
|
|
4851
|
-
* range: [50, 30]
|
|
4852
|
-
* }
|
|
4853
|
-
* });
|
|
4854
|
-
*
|
|
4855
|
-
* axes.setTo({"x": 30, "zoom": 60});
|
|
4856
|
-
* axes.get(); // {"x": 30, "xOther": -100, "zoom": 60}
|
|
4857
|
-
*
|
|
4858
|
-
* axes.setTo({"x": 100, "xOther": 60}, 1000); // animatation
|
|
4859
|
-
*
|
|
4860
|
-
* // after 1000 ms
|
|
4861
|
-
* axes.get(); // {"x": 100, "xOther": 60, "zoom": 60}
|
|
4862
|
-
* ```
|
|
4835
|
+
/**
|
|
4836
|
+
* Moves an axis to specific coordinates.
|
|
4837
|
+
* @ko ์ขํ๋ฅผ ์ด๋ํ๋ค.
|
|
4838
|
+
* @param {Object.<string, number>} pos The coordinate to move to <ko>์ด๋ํ ์ขํ</ko>
|
|
4839
|
+
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>์ ๋๋ฉ์ด์
์งํ ์๊ฐ(๋จ์: ms)</ko>
|
|
4840
|
+
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4841
|
+
* @example
|
|
4842
|
+
* ```js
|
|
4843
|
+
* const axes = new eg.Axes({
|
|
4844
|
+
* "x": {
|
|
4845
|
+
* range: [0, 100]
|
|
4846
|
+
* },
|
|
4847
|
+
* "xOther": {
|
|
4848
|
+
* range: [-100, 100]
|
|
4849
|
+
* },
|
|
4850
|
+
* "zoom": {
|
|
4851
|
+
* range: [50, 30]
|
|
4852
|
+
* }
|
|
4853
|
+
* });
|
|
4854
|
+
*
|
|
4855
|
+
* axes.setTo({"x": 30, "zoom": 60});
|
|
4856
|
+
* axes.get(); // {"x": 30, "xOther": -100, "zoom": 60}
|
|
4857
|
+
*
|
|
4858
|
+
* axes.setTo({"x": 100, "xOther": 60}, 1000); // animatation
|
|
4859
|
+
*
|
|
4860
|
+
* // after 1000 ms
|
|
4861
|
+
* axes.get(); // {"x": 100, "xOther": 60, "zoom": 60}
|
|
4862
|
+
* ```
|
|
4863
4863
|
*/
|
|
4864
4864
|
__proto.setTo = function (pos, duration) {
|
|
4865
4865
|
if (duration === void 0) {
|
|
@@ -4868,34 +4868,34 @@ version: 4.11.4-beta.0
|
|
|
4868
4868
|
this.animationManager.setTo(pos, duration);
|
|
4869
4869
|
return this;
|
|
4870
4870
|
};
|
|
4871
|
-
/**
|
|
4872
|
-
* Moves an axis from the current coordinates to specific coordinates.
|
|
4873
|
-
* @ko ํ์ฌ ์ขํ๋ฅผ ๊ธฐ์ค์ผ๋ก ์ขํ๋ฅผ ์ด๋ํ๋ค.
|
|
4874
|
-
* @param {Object.<string, number>} pos The coordinate to move to <ko>์ด๋ํ ์ขํ</ko>
|
|
4875
|
-
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>์ ๋๋ฉ์ด์
์งํ ์๊ฐ(๋จ์: ms)</ko>
|
|
4876
|
-
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4877
|
-
* @example
|
|
4878
|
-
* ```js
|
|
4879
|
-
* const axes = new eg.Axes({
|
|
4880
|
-
* "x": {
|
|
4881
|
-
* range: [0, 100]
|
|
4882
|
-
* },
|
|
4883
|
-
* "xOther": {
|
|
4884
|
-
* range: [-100, 100]
|
|
4885
|
-
* },
|
|
4886
|
-
* "zoom": {
|
|
4887
|
-
* range: [50, 30]
|
|
4888
|
-
* }
|
|
4889
|
-
* });
|
|
4890
|
-
*
|
|
4891
|
-
* axes.setBy({"x": 30, "zoom": 10});
|
|
4892
|
-
* axes.get(); // {"x": 30, "xOther": -100, "zoom": 60}
|
|
4893
|
-
*
|
|
4894
|
-
* axes.setBy({"x": 70, "xOther": 60}, 1000); // animatation
|
|
4895
|
-
*
|
|
4896
|
-
* // after 1000 ms
|
|
4897
|
-
* axes.get(); // {"x": 100, "xOther": -40, "zoom": 60}
|
|
4898
|
-
* ```
|
|
4871
|
+
/**
|
|
4872
|
+
* Moves an axis from the current coordinates to specific coordinates.
|
|
4873
|
+
* @ko ํ์ฌ ์ขํ๋ฅผ ๊ธฐ์ค์ผ๋ก ์ขํ๋ฅผ ์ด๋ํ๋ค.
|
|
4874
|
+
* @param {Object.<string, number>} pos The coordinate to move to <ko>์ด๋ํ ์ขํ</ko>
|
|
4875
|
+
* @param {Number} [duration=0] Duration of the animation (unit: ms) <ko>์ ๋๋ฉ์ด์
์งํ ์๊ฐ(๋จ์: ms)</ko>
|
|
4876
|
+
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4877
|
+
* @example
|
|
4878
|
+
* ```js
|
|
4879
|
+
* const axes = new eg.Axes({
|
|
4880
|
+
* "x": {
|
|
4881
|
+
* range: [0, 100]
|
|
4882
|
+
* },
|
|
4883
|
+
* "xOther": {
|
|
4884
|
+
* range: [-100, 100]
|
|
4885
|
+
* },
|
|
4886
|
+
* "zoom": {
|
|
4887
|
+
* range: [50, 30]
|
|
4888
|
+
* }
|
|
4889
|
+
* });
|
|
4890
|
+
*
|
|
4891
|
+
* axes.setBy({"x": 30, "zoom": 10});
|
|
4892
|
+
* axes.get(); // {"x": 30, "xOther": -100, "zoom": 60}
|
|
4893
|
+
*
|
|
4894
|
+
* axes.setBy({"x": 70, "xOther": 60}, 1000); // animatation
|
|
4895
|
+
*
|
|
4896
|
+
* // after 1000 ms
|
|
4897
|
+
* axes.get(); // {"x": 100, "xOther": -40, "zoom": 60}
|
|
4898
|
+
* ```
|
|
4899
4899
|
*/
|
|
4900
4900
|
__proto.setBy = function (pos, duration) {
|
|
4901
4901
|
if (duration === void 0) {
|
|
@@ -4904,230 +4904,230 @@ version: 4.11.4-beta.0
|
|
|
4904
4904
|
this.animationManager.setBy(pos, duration);
|
|
4905
4905
|
return this;
|
|
4906
4906
|
};
|
|
4907
|
-
/**
|
|
4908
|
-
* Change the options of Axes instance.
|
|
4909
|
-
* @ko ์ธ์คํด์ค์ ์ต์
์ ๋ณ๊ฒฝํ๋ค.
|
|
4910
|
-
* @param {AxesOption} options Axes options to change <ko>๋ณ๊ฒฝํ ์ต์
๋ชฉ๋ก</ko>
|
|
4911
|
-
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4912
|
-
* @example
|
|
4913
|
-
* ```js
|
|
4914
|
-
* const axes = new eg.Axes({
|
|
4915
|
-
* "x": {
|
|
4916
|
-
* range: [0, 100]
|
|
4917
|
-
* },
|
|
4918
|
-
* }, {
|
|
4919
|
-
* round: 10,
|
|
4920
|
-
* });
|
|
4921
|
-
*
|
|
4922
|
-
* axes.setTo({"x": 48});
|
|
4923
|
-
* axes.get(); // {"x": 50}
|
|
4924
|
-
*
|
|
4925
|
-
* axes.setOptions({
|
|
4926
|
-
* round: 1,
|
|
4927
|
-
* });
|
|
4928
|
-
*
|
|
4929
|
-
* axes.setTo({"x": 48});
|
|
4930
|
-
* axes.get(); // {"x": 48}
|
|
4931
|
-
* ```
|
|
4907
|
+
/**
|
|
4908
|
+
* Change the options of Axes instance.
|
|
4909
|
+
* @ko ์ธ์คํด์ค์ ์ต์
์ ๋ณ๊ฒฝํ๋ค.
|
|
4910
|
+
* @param {AxesOption} options Axes options to change <ko>๋ณ๊ฒฝํ ์ต์
๋ชฉ๋ก</ko>
|
|
4911
|
+
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4912
|
+
* @example
|
|
4913
|
+
* ```js
|
|
4914
|
+
* const axes = new eg.Axes({
|
|
4915
|
+
* "x": {
|
|
4916
|
+
* range: [0, 100]
|
|
4917
|
+
* },
|
|
4918
|
+
* }, {
|
|
4919
|
+
* round: 10,
|
|
4920
|
+
* });
|
|
4921
|
+
*
|
|
4922
|
+
* axes.setTo({"x": 48});
|
|
4923
|
+
* axes.get(); // {"x": 50}
|
|
4924
|
+
*
|
|
4925
|
+
* axes.setOptions({
|
|
4926
|
+
* round: 1,
|
|
4927
|
+
* });
|
|
4928
|
+
*
|
|
4929
|
+
* axes.setTo({"x": 48});
|
|
4930
|
+
* axes.get(); // {"x": 48}
|
|
4931
|
+
* ```
|
|
4932
4932
|
*/
|
|
4933
4933
|
__proto.setOptions = function (options) {
|
|
4934
4934
|
this.options = __assign$1(__assign$1({}, this.options), options);
|
|
4935
4935
|
this.animationManager.setOptions(options);
|
|
4936
4936
|
return this;
|
|
4937
4937
|
};
|
|
4938
|
-
/**
|
|
4939
|
-
* Change the information of an existing axis.
|
|
4940
|
-
* @ko ์กด์ฌํ๋ ์ถ์ ์ ๋ณด๋ฅผ ๋ณ๊ฒฝํ๋ค.
|
|
4941
|
-
* @param {Object.<string, AxisOption>} axis Axis options to change <ko>๋ณ๊ฒฝํ ์ถ์ ์ ๋ณด</ko>
|
|
4942
|
-
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4943
|
-
* @example
|
|
4944
|
-
* ```js
|
|
4945
|
-
* const axes = new eg.Axes({
|
|
4946
|
-
* "x": {
|
|
4947
|
-
* range: [0, 100]
|
|
4948
|
-
* },
|
|
4949
|
-
* });
|
|
4950
|
-
*
|
|
4951
|
-
* axes.setTo({"x": 150});
|
|
4952
|
-
* axes.get(); // {"x": 100}
|
|
4953
|
-
*
|
|
4954
|
-
* axes.setAxis({
|
|
4955
|
-
* "x": {
|
|
4956
|
-
* range: [0, 200]
|
|
4957
|
-
* },
|
|
4958
|
-
* });
|
|
4959
|
-
*
|
|
4960
|
-
* axes.setTo({"x": 150});
|
|
4961
|
-
* axes.get(); // {"x": 150}
|
|
4962
|
-
* ```
|
|
4938
|
+
/**
|
|
4939
|
+
* Change the information of an existing axis.
|
|
4940
|
+
* @ko ์กด์ฌํ๋ ์ถ์ ์ ๋ณด๋ฅผ ๋ณ๊ฒฝํ๋ค.
|
|
4941
|
+
* @param {Object.<string, AxisOption>} axis Axis options to change <ko>๋ณ๊ฒฝํ ์ถ์ ์ ๋ณด</ko>
|
|
4942
|
+
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4943
|
+
* @example
|
|
4944
|
+
* ```js
|
|
4945
|
+
* const axes = new eg.Axes({
|
|
4946
|
+
* "x": {
|
|
4947
|
+
* range: [0, 100]
|
|
4948
|
+
* },
|
|
4949
|
+
* });
|
|
4950
|
+
*
|
|
4951
|
+
* axes.setTo({"x": 150});
|
|
4952
|
+
* axes.get(); // {"x": 100}
|
|
4953
|
+
*
|
|
4954
|
+
* axes.setAxis({
|
|
4955
|
+
* "x": {
|
|
4956
|
+
* range: [0, 200]
|
|
4957
|
+
* },
|
|
4958
|
+
* });
|
|
4959
|
+
*
|
|
4960
|
+
* axes.setTo({"x": 150});
|
|
4961
|
+
* axes.get(); // {"x": 150}
|
|
4962
|
+
* ```
|
|
4963
4963
|
*/
|
|
4964
4964
|
__proto.setAxis = function (axis) {
|
|
4965
4965
|
this.axisManager.setAxis(axis);
|
|
4966
4966
|
return this;
|
|
4967
4967
|
};
|
|
4968
|
-
/**
|
|
4969
|
-
* Stop an animation in progress.
|
|
4970
|
-
* @ko ์ฌ์ ์ค์ธ ์ ๋๋ฉ์ด์
์ ์ ์งํ๋ค.
|
|
4971
|
-
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4972
|
-
* @example
|
|
4973
|
-
* ```js
|
|
4974
|
-
* const axes = new eg.Axes({
|
|
4975
|
-
* "x": {
|
|
4976
|
-
* range: [0, 100]
|
|
4977
|
-
* },
|
|
4978
|
-
* });
|
|
4979
|
-
*
|
|
4980
|
-
* axes.setTo({"x": 10}, 1000); // start animatation
|
|
4981
|
-
*
|
|
4982
|
-
* // after 500 ms
|
|
4983
|
-
* axes.stopAnimation(); // stop animation during movement.
|
|
4984
|
-
* ```
|
|
4968
|
+
/**
|
|
4969
|
+
* Stop an animation in progress.
|
|
4970
|
+
* @ko ์ฌ์ ์ค์ธ ์ ๋๋ฉ์ด์
์ ์ ์งํ๋ค.
|
|
4971
|
+
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4972
|
+
* @example
|
|
4973
|
+
* ```js
|
|
4974
|
+
* const axes = new eg.Axes({
|
|
4975
|
+
* "x": {
|
|
4976
|
+
* range: [0, 100]
|
|
4977
|
+
* },
|
|
4978
|
+
* });
|
|
4979
|
+
*
|
|
4980
|
+
* axes.setTo({"x": 10}, 1000); // start animatation
|
|
4981
|
+
*
|
|
4982
|
+
* // after 500 ms
|
|
4983
|
+
* axes.stopAnimation(); // stop animation during movement.
|
|
4984
|
+
* ```
|
|
4985
4985
|
*/
|
|
4986
4986
|
__proto.stopAnimation = function () {
|
|
4987
4987
|
this.animationManager.stopAnimation();
|
|
4988
4988
|
this.animationManager.finish(false);
|
|
4989
4989
|
return this;
|
|
4990
4990
|
};
|
|
4991
|
-
/**
|
|
4992
|
-
* Change the destination of an animation in progress.
|
|
4993
|
-
* @ko ์ฌ์ ์ค์ธ ์ ๋๋ฉ์ด์
์ ๋ชฉ์ ์ง์ ์งํ ์๊ฐ์ ๋ณ๊ฒฝํ๋ค.
|
|
4994
|
-
* @param {UpdateAnimationOption} pos The coordinate to move to <ko>์ด๋ํ ์ขํ</ko>
|
|
4995
|
-
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4996
|
-
* @example
|
|
4997
|
-
* ```js
|
|
4998
|
-
* const axes = new eg.Axes({
|
|
4999
|
-
* "x": {
|
|
5000
|
-
* range: [0, 200]
|
|
5001
|
-
* },
|
|
5002
|
-
* "y": {
|
|
5003
|
-
* range: [0, 200]
|
|
5004
|
-
* }
|
|
5005
|
-
* });
|
|
5006
|
-
*
|
|
5007
|
-
* axes.setTo({"x": 50, "y": 50}, 1000); // trigger animation by setTo
|
|
5008
|
-
*
|
|
5009
|
-
* // after 500 ms
|
|
5010
|
-
* axes.updateAnimation({destPos: {"x": 100, "y": 100}}); // animation will end after 500 ms, at {"x": 100, "y": 100}
|
|
5011
|
-
*
|
|
5012
|
-
* // after 500 ms
|
|
5013
|
-
* axes.setTo({"x": 50, "y": 50}, 1000); // trigger animation by setTo
|
|
5014
|
-
*
|
|
5015
|
-
* // after 700 ms
|
|
5016
|
-
* axes.updateAnimation({destPos: {"x": 100, "y": 100}, duration: 1500, restart: true}); // this works same as axes.setTo({"x": 100, "y": 100}, 800) since restart is true.
|
|
5017
|
-
* ```
|
|
4991
|
+
/**
|
|
4992
|
+
* Change the destination of an animation in progress.
|
|
4993
|
+
* @ko ์ฌ์ ์ค์ธ ์ ๋๋ฉ์ด์
์ ๋ชฉ์ ์ง์ ์งํ ์๊ฐ์ ๋ณ๊ฒฝํ๋ค.
|
|
4994
|
+
* @param {UpdateAnimationOption} pos The coordinate to move to <ko>์ด๋ํ ์ขํ</ko>
|
|
4995
|
+
* @return {eg.Axes} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
4996
|
+
* @example
|
|
4997
|
+
* ```js
|
|
4998
|
+
* const axes = new eg.Axes({
|
|
4999
|
+
* "x": {
|
|
5000
|
+
* range: [0, 200]
|
|
5001
|
+
* },
|
|
5002
|
+
* "y": {
|
|
5003
|
+
* range: [0, 200]
|
|
5004
|
+
* }
|
|
5005
|
+
* });
|
|
5006
|
+
*
|
|
5007
|
+
* axes.setTo({"x": 50, "y": 50}, 1000); // trigger animation by setTo
|
|
5008
|
+
*
|
|
5009
|
+
* // after 500 ms
|
|
5010
|
+
* axes.updateAnimation({destPos: {"x": 100, "y": 100}}); // animation will end after 500 ms, at {"x": 100, "y": 100}
|
|
5011
|
+
*
|
|
5012
|
+
* // after 500 ms
|
|
5013
|
+
* axes.setTo({"x": 50, "y": 50}, 1000); // trigger animation by setTo
|
|
5014
|
+
*
|
|
5015
|
+
* // after 700 ms
|
|
5016
|
+
* axes.updateAnimation({destPos: {"x": 100, "y": 100}, duration: 1500, restart: true}); // this works same as axes.setTo({"x": 100, "y": 100}, 800) since restart is true.
|
|
5017
|
+
* ```
|
|
5018
5018
|
*/
|
|
5019
5019
|
__proto.updateAnimation = function (options) {
|
|
5020
5020
|
this.animationManager.updateAnimation(options);
|
|
5021
5021
|
return this;
|
|
5022
5022
|
};
|
|
5023
|
-
/**
|
|
5024
|
-
* Returns whether there is a coordinate in the bounce area of โโthe target axis.
|
|
5025
|
-
* @ko ๋์ ์ถ ์ค bounce์์ญ์ ์ขํ๊ฐ ์กด์ฌํ๋์ง๋ฅผ ๋ฐํํ๋ค
|
|
5026
|
-
* @param {Object} [axes] The names of the axis <ko>์ถ ์ด๋ฆ๋ค</ko>
|
|
5027
|
-
* @return {Boolen} Whether the bounce area exists. <ko>bounce ์์ญ ์กด์ฌ ์ฌ๋ถ</ko>
|
|
5028
|
-
* @example
|
|
5029
|
-
* ```js
|
|
5030
|
-
* const axes = new eg.Axes({
|
|
5031
|
-
* "x": {
|
|
5032
|
-
* range: [0, 100]
|
|
5033
|
-
* },
|
|
5034
|
-
* "xOther": {
|
|
5035
|
-
* range: [-100, 100]
|
|
5036
|
-
* },
|
|
5037
|
-
* "zoom": {
|
|
5038
|
-
* range: [50, 30]
|
|
5039
|
-
* }
|
|
5040
|
-
* });
|
|
5041
|
-
*
|
|
5042
|
-
* axes.isBounceArea(["x"]);
|
|
5043
|
-
* axes.isBounceArea(["x", "zoom"]);
|
|
5044
|
-
* axes.isBounceArea();
|
|
5045
|
-
* ```
|
|
5023
|
+
/**
|
|
5024
|
+
* Returns whether there is a coordinate in the bounce area of โโthe target axis.
|
|
5025
|
+
* @ko ๋์ ์ถ ์ค bounce์์ญ์ ์ขํ๊ฐ ์กด์ฌํ๋์ง๋ฅผ ๋ฐํํ๋ค
|
|
5026
|
+
* @param {Object} [axes] The names of the axis <ko>์ถ ์ด๋ฆ๋ค</ko>
|
|
5027
|
+
* @return {Boolen} Whether the bounce area exists. <ko>bounce ์์ญ ์กด์ฌ ์ฌ๋ถ</ko>
|
|
5028
|
+
* @example
|
|
5029
|
+
* ```js
|
|
5030
|
+
* const axes = new eg.Axes({
|
|
5031
|
+
* "x": {
|
|
5032
|
+
* range: [0, 100]
|
|
5033
|
+
* },
|
|
5034
|
+
* "xOther": {
|
|
5035
|
+
* range: [-100, 100]
|
|
5036
|
+
* },
|
|
5037
|
+
* "zoom": {
|
|
5038
|
+
* range: [50, 30]
|
|
5039
|
+
* }
|
|
5040
|
+
* });
|
|
5041
|
+
*
|
|
5042
|
+
* axes.isBounceArea(["x"]);
|
|
5043
|
+
* axes.isBounceArea(["x", "zoom"]);
|
|
5044
|
+
* axes.isBounceArea();
|
|
5045
|
+
* ```
|
|
5046
5046
|
*/
|
|
5047
5047
|
__proto.isBounceArea = function (axes) {
|
|
5048
5048
|
return this.axisManager.isOutside(axes);
|
|
5049
5049
|
};
|
|
5050
|
-
/**
|
|
5051
|
-
* Destroys properties, and events used in a module and disconnect all connections to inputTypes.
|
|
5052
|
-
* @ko ๋ชจ๋์ ์ฌ์ฉํ ์์ฑ, ์ด๋ฒคํธ๋ฅผ ํด์ ํ๋ค. ๋ชจ๋ inputType๊ณผ์ ์ฐ๊ฒฐ์ ๋๋๋ค.
|
|
5050
|
+
/**
|
|
5051
|
+
* Destroys properties, and events used in a module and disconnect all connections to inputTypes.
|
|
5052
|
+
* @ko ๋ชจ๋์ ์ฌ์ฉํ ์์ฑ, ์ด๋ฒคํธ๋ฅผ ํด์ ํ๋ค. ๋ชจ๋ inputType๊ณผ์ ์ฐ๊ฒฐ์ ๋๋๋ค.
|
|
5053
5053
|
*/
|
|
5054
5054
|
__proto.destroy = function () {
|
|
5055
5055
|
this.disconnect();
|
|
5056
5056
|
this.eventManager.destroy();
|
|
5057
5057
|
};
|
|
5058
|
-
/**
|
|
5059
|
-
* @name VERSION
|
|
5060
|
-
* @desc Version info string
|
|
5061
|
-
* @ko ๋ฒ์ ์ ๋ณด ๋ฌธ์์ด
|
|
5062
|
-
*
|
|
5063
|
-
* @constant
|
|
5064
|
-
* @type {String}
|
|
5065
|
-
* @example
|
|
5066
|
-
* ```js
|
|
5067
|
-
* eg.Axes.VERSION; // ex) 3.3.3
|
|
5068
|
-
* ```
|
|
5058
|
+
/**
|
|
5059
|
+
* @name VERSION
|
|
5060
|
+
* @desc Version info string
|
|
5061
|
+
* @ko ๋ฒ์ ์ ๋ณด ๋ฌธ์์ด
|
|
5062
|
+
*
|
|
5063
|
+
* @constant
|
|
5064
|
+
* @type {String}
|
|
5065
|
+
* @example
|
|
5066
|
+
* ```js
|
|
5067
|
+
* eg.Axes.VERSION; // ex) 3.3.3
|
|
5068
|
+
* ```
|
|
5069
5069
|
*/
|
|
5070
|
-
Axes.VERSION = "3.9.1
|
|
5070
|
+
Axes.VERSION = "3.9.1";
|
|
5071
5071
|
/* eslint-enable */
|
|
5072
|
-
/**
|
|
5073
|
-
* @name TRANSFORM
|
|
5074
|
-
* @desc Returns the transform attribute with CSS vendor prefixes.
|
|
5075
|
-
* @ko CSS vendor prefixes๋ฅผ ๋ถ์ธ transform ์์ฑ์ ๋ฐํํ๋ค.
|
|
5076
|
-
*
|
|
5077
|
-
* @constant
|
|
5078
|
-
* @type {String}
|
|
5079
|
-
* @example
|
|
5080
|
-
* ```js
|
|
5081
|
-
* eg.Axes.TRANSFORM; // "transform" or "webkitTransform"
|
|
5082
|
-
* ```
|
|
5072
|
+
/**
|
|
5073
|
+
* @name TRANSFORM
|
|
5074
|
+
* @desc Returns the transform attribute with CSS vendor prefixes.
|
|
5075
|
+
* @ko CSS vendor prefixes๋ฅผ ๋ถ์ธ transform ์์ฑ์ ๋ฐํํ๋ค.
|
|
5076
|
+
*
|
|
5077
|
+
* @constant
|
|
5078
|
+
* @type {String}
|
|
5079
|
+
* @example
|
|
5080
|
+
* ```js
|
|
5081
|
+
* eg.Axes.TRANSFORM; // "transform" or "webkitTransform"
|
|
5082
|
+
* ```
|
|
5083
5083
|
*/
|
|
5084
5084
|
Axes.TRANSFORM = TRANSFORM;
|
|
5085
|
-
/**
|
|
5086
|
-
* @name DIRECTION_NONE
|
|
5087
|
-
* @constant
|
|
5088
|
-
* @type {Number}
|
|
5085
|
+
/**
|
|
5086
|
+
* @name DIRECTION_NONE
|
|
5087
|
+
* @constant
|
|
5088
|
+
* @type {Number}
|
|
5089
5089
|
*/
|
|
5090
5090
|
Axes.DIRECTION_NONE = DIRECTION_NONE;
|
|
5091
|
-
/**
|
|
5092
|
-
* @name DIRECTION_LEFT
|
|
5093
|
-
* @constant
|
|
5094
|
-
* @type {Number}
|
|
5091
|
+
/**
|
|
5092
|
+
* @name DIRECTION_LEFT
|
|
5093
|
+
* @constant
|
|
5094
|
+
* @type {Number}
|
|
5095
5095
|
*/
|
|
5096
5096
|
Axes.DIRECTION_LEFT = DIRECTION_LEFT;
|
|
5097
|
-
/**
|
|
5098
|
-
* @name DIRECTION_RIGHT
|
|
5099
|
-
* @constant
|
|
5100
|
-
* @type {Number}
|
|
5097
|
+
/**
|
|
5098
|
+
* @name DIRECTION_RIGHT
|
|
5099
|
+
* @constant
|
|
5100
|
+
* @type {Number}
|
|
5101
5101
|
*/
|
|
5102
5102
|
Axes.DIRECTION_RIGHT = DIRECTION_RIGHT;
|
|
5103
|
-
/**
|
|
5104
|
-
* @name DIRECTION_UP
|
|
5105
|
-
* @constant
|
|
5106
|
-
* @type {Number}
|
|
5103
|
+
/**
|
|
5104
|
+
* @name DIRECTION_UP
|
|
5105
|
+
* @constant
|
|
5106
|
+
* @type {Number}
|
|
5107
5107
|
*/
|
|
5108
5108
|
Axes.DIRECTION_UP = DIRECTION_UP;
|
|
5109
|
-
/**
|
|
5110
|
-
* @name DIRECTION_DOWN
|
|
5111
|
-
* @constant
|
|
5112
|
-
* @type {Number}
|
|
5109
|
+
/**
|
|
5110
|
+
* @name DIRECTION_DOWN
|
|
5111
|
+
* @constant
|
|
5112
|
+
* @type {Number}
|
|
5113
5113
|
*/
|
|
5114
5114
|
Axes.DIRECTION_DOWN = DIRECTION_DOWN;
|
|
5115
|
-
/**
|
|
5116
|
-
* @name DIRECTION_HORIZONTAL
|
|
5117
|
-
* @constant
|
|
5118
|
-
* @type {Number}
|
|
5115
|
+
/**
|
|
5116
|
+
* @name DIRECTION_HORIZONTAL
|
|
5117
|
+
* @constant
|
|
5118
|
+
* @type {Number}
|
|
5119
5119
|
*/
|
|
5120
5120
|
Axes.DIRECTION_HORIZONTAL = DIRECTION_HORIZONTAL;
|
|
5121
|
-
/**
|
|
5122
|
-
* @name DIRECTION_VERTICAL
|
|
5123
|
-
* @constant
|
|
5124
|
-
* @type {Number}
|
|
5121
|
+
/**
|
|
5122
|
+
* @name DIRECTION_VERTICAL
|
|
5123
|
+
* @constant
|
|
5124
|
+
* @type {Number}
|
|
5125
5125
|
*/
|
|
5126
5126
|
Axes.DIRECTION_VERTICAL = DIRECTION_VERTICAL;
|
|
5127
|
-
/**
|
|
5128
|
-
* @name DIRECTION_ALL
|
|
5129
|
-
* @constant
|
|
5130
|
-
* @type {Number}
|
|
5127
|
+
/**
|
|
5128
|
+
* @name DIRECTION_ALL
|
|
5129
|
+
* @constant
|
|
5130
|
+
* @type {Number}
|
|
5131
5131
|
*/
|
|
5132
5132
|
Axes.DIRECTION_ALL = DIRECTION_ALL;
|
|
5133
5133
|
__decorate([Computed], Axes.prototype, "holding", null);
|
|
@@ -5135,9 +5135,9 @@ version: 4.11.4-beta.0
|
|
|
5135
5135
|
return Axes;
|
|
5136
5136
|
}(Component);
|
|
5137
5137
|
|
|
5138
|
-
/*
|
|
5139
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
5140
|
-
* egjs projects are licensed under the MIT license
|
|
5138
|
+
/*
|
|
5139
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
5140
|
+
* egjs projects are licensed under the MIT license
|
|
5141
5141
|
*/
|
|
5142
5142
|
// get user's direction
|
|
5143
5143
|
var getDirectionByAngle = function (angle, thresholdAngle) {
|
|
@@ -5147,73 +5147,73 @@ version: 4.11.4-beta.0
|
|
|
5147
5147
|
var toAngle = Math.abs(angle);
|
|
5148
5148
|
return toAngle > thresholdAngle && toAngle < 180 - thresholdAngle ? DIRECTION_VERTICAL : DIRECTION_HORIZONTAL;
|
|
5149
5149
|
};
|
|
5150
|
-
/**
|
|
5151
|
-
* @typedef {Object} PanInputOption The option object of the eg.Axes.PanInput module.
|
|
5152
|
-
* @ko eg.Axes.PanInput ๋ชจ๋์ ์ต์
๊ฐ์ฒด
|
|
5153
|
-
* @param {String[]} [inputType=["touch", "mouse", "pointer"]] Types of input devices
|
|
5154
|
-
* - touch: Touch screen
|
|
5155
|
-
* - mouse: Mouse
|
|
5156
|
-
* - pointer: Mouse and touch <ko>์
๋ ฅ ์ฅ์น ์ข
๋ฅ
|
|
5157
|
-
* - touch: ํฐ์น ์
๋ ฅ ์ฅ์น
|
|
5158
|
-
* - mouse: ๋ง์ฐ์ค
|
|
5159
|
-
* - pointer: ๋ง์ฐ์ค ๋ฐ ํฐ์น</ko>
|
|
5160
|
-
* @param {String[]} [inputKey=["any"]] List of key combinations to allow input
|
|
5161
|
-
* - any: any key
|
|
5162
|
-
* - shift: shift key
|
|
5163
|
-
* - ctrl: ctrl key and pinch gesture on the trackpad
|
|
5164
|
-
* - alt: alt key
|
|
5165
|
-
* - meta: meta key
|
|
5166
|
-
* - none: none of these keys are pressed <ko>์
๋ ฅ์ ํ์ฉํ ํค ์กฐํฉ ๋ชฉ๋ก
|
|
5167
|
-
* - any: ์๋ฌด ํค
|
|
5168
|
-
* - shift: shift ํค
|
|
5169
|
-
* - ctrl: ctrl ํค ๋ฐ ํธ๋ํจ๋์ pinch ์ ์ค์ณ
|
|
5170
|
-
* - alt: alt ํค
|
|
5171
|
-
* - meta: meta ํค
|
|
5172
|
-
* - none: ์๋ฌด ํค๋ ๋๋ฆฌ์ง ์์ ์ํ </ko>
|
|
5173
|
-
* @param {String[]} [inputButton=["left"]] List of buttons to allow input
|
|
5174
|
-
* - left: Left mouse button and normal touch
|
|
5175
|
-
* - middle: Mouse wheel press
|
|
5176
|
-
* - right: Right mouse button <ko>์
๋ ฅ์ ํ์ฉํ ๋ฒํผ ๋ชฉ๋ก
|
|
5177
|
-
* - left: ๋ง์ฐ์ค ์ผ์ชฝ ๋ฒํผ
|
|
5178
|
-
* - middle: ๋ง์ฐ์ค ํ ๋๋ฆผ
|
|
5179
|
-
* - right: ๋ง์ฐ์ค ์ค๋ฅธ์ชฝ ๋ฒํผ </ko>
|
|
5180
|
-
* @param {Number[]} [scale] Coordinate scale that a user can move<ko>์ฌ์ฉ์์ ๋์์ผ๋ก ์ด๋ํ๋ ์ขํ์ ๋ฐฐ์จ</ko>
|
|
5181
|
-
* @param {Number} [scale[0]=1] horizontal axis scale <ko>์ํ์ถ ๋ฐฐ์จ</ko>
|
|
5182
|
-
* @param {Number} [scale[1]=1] vertical axis scale <ko>์์ง์ถ ๋ฐฐ์จ</ko>
|
|
5183
|
-
* @param {Number} [thresholdAngle=45] The threshold value that determines whether user action is horizontal or vertical (0~90) <ko>์ฌ์ฉ์์ ๋์์ด ๊ฐ๋ก ๋ฐฉํฅ์ธ์ง ์ธ๋ก ๋ฐฉํฅ์ธ์ง ํ๋จํ๋ ๊ธฐ์ค ๊ฐ๋(0~90)</ko>
|
|
5184
|
-
* @param {Number} [threshold=0] Minimal pan distance required before recognizing <ko>์ฌ์ฉ์์ Pan ๋์์ ์ธ์ํ๊ธฐ ์ํด์ฐ ์ต์ํ์ ๊ฑฐ๋ฆฌ</ko>
|
|
5185
|
-
* @param {Boolean} [preventClickOnDrag=false] Whether to cancel the {@link https://developer.mozilla.org/en/docs/Web/API/Element/click_event click} event when the user finishes dragging more than 1 pixel <ko>์ฌ์ฉ์๊ฐ 1ํฝ์
์ด์ ๋๋๊ทธ๋ฅผ ๋ง์ณค์ ๋ {@link https://developer.mozilla.org/ko/docs/Web/API/Element/click_event click} ์ด๋ฒคํธ ์ทจ์ ์ฌ๋ถ</ko>
|
|
5186
|
-
* @param {Boolean} [preventDefaultOnDrag=false] Whether to use the {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} when the user starts dragging <ko>์ฌ์ฉ์๊ฐ ๋๋๊ทธ๋ฅผ ์์ํ ๋ {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} ์คํ ์ฌ๋ถ</ko>
|
|
5187
|
-
* @param {Number} [iOSEdgeSwipeThreshold=30] Area (px) that can go to the next page when swiping the right edge in iOS safari <ko>iOS Safari์์ ์ค๋ฅธ์ชฝ ์ฃ์ง๋ฅผ ์ค์์ดํ ํ๋ ๊ฒฝ์ฐ ๋ค์ ํ์ด์ง๋ก ๋์ด๊ฐ ์ ์๋ ์์ญ(px)</ko>
|
|
5188
|
-
* @param {String} [touchAction=null] Value that overrides the element's "touch-action" css property. If set to null, it is automatically set to prevent scrolling in the direction of the connected axis. <ko>์๋ฆฌ๋จผํธ์ "touch-action" CSS ์์ฑ์ ๋ฎ์ด์ฐ๋ ๊ฐ. ๋ง์ฝ null๋ก ์ค์ ๋ ๊ฒฝ์ฐ, ์ฐ๊ฒฐ๋ ์ถ ๋ฐฉํฅ์ผ๋ก์ ์คํฌ๋กค์ ๋ฐฉ์งํ๊ฒ๋ ์๋์ผ๋ก ์ค์ ๋๋ค.</ko>
|
|
5150
|
+
/**
|
|
5151
|
+
* @typedef {Object} PanInputOption The option object of the eg.Axes.PanInput module.
|
|
5152
|
+
* @ko eg.Axes.PanInput ๋ชจ๋์ ์ต์
๊ฐ์ฒด
|
|
5153
|
+
* @param {String[]} [inputType=["touch", "mouse", "pointer"]] Types of input devices
|
|
5154
|
+
* - touch: Touch screen
|
|
5155
|
+
* - mouse: Mouse
|
|
5156
|
+
* - pointer: Mouse and touch <ko>์
๋ ฅ ์ฅ์น ์ข
๋ฅ
|
|
5157
|
+
* - touch: ํฐ์น ์
๋ ฅ ์ฅ์น
|
|
5158
|
+
* - mouse: ๋ง์ฐ์ค
|
|
5159
|
+
* - pointer: ๋ง์ฐ์ค ๋ฐ ํฐ์น</ko>
|
|
5160
|
+
* @param {String[]} [inputKey=["any"]] List of key combinations to allow input
|
|
5161
|
+
* - any: any key
|
|
5162
|
+
* - shift: shift key
|
|
5163
|
+
* - ctrl: ctrl key and pinch gesture on the trackpad
|
|
5164
|
+
* - alt: alt key
|
|
5165
|
+
* - meta: meta key
|
|
5166
|
+
* - none: none of these keys are pressed <ko>์
๋ ฅ์ ํ์ฉํ ํค ์กฐํฉ ๋ชฉ๋ก
|
|
5167
|
+
* - any: ์๋ฌด ํค
|
|
5168
|
+
* - shift: shift ํค
|
|
5169
|
+
* - ctrl: ctrl ํค ๋ฐ ํธ๋ํจ๋์ pinch ์ ์ค์ณ
|
|
5170
|
+
* - alt: alt ํค
|
|
5171
|
+
* - meta: meta ํค
|
|
5172
|
+
* - none: ์๋ฌด ํค๋ ๋๋ฆฌ์ง ์์ ์ํ </ko>
|
|
5173
|
+
* @param {String[]} [inputButton=["left"]] List of buttons to allow input
|
|
5174
|
+
* - left: Left mouse button and normal touch
|
|
5175
|
+
* - middle: Mouse wheel press
|
|
5176
|
+
* - right: Right mouse button <ko>์
๋ ฅ์ ํ์ฉํ ๋ฒํผ ๋ชฉ๋ก
|
|
5177
|
+
* - left: ๋ง์ฐ์ค ์ผ์ชฝ ๋ฒํผ
|
|
5178
|
+
* - middle: ๋ง์ฐ์ค ํ ๋๋ฆผ
|
|
5179
|
+
* - right: ๋ง์ฐ์ค ์ค๋ฅธ์ชฝ ๋ฒํผ </ko>
|
|
5180
|
+
* @param {Number[]} [scale] Coordinate scale that a user can move<ko>์ฌ์ฉ์์ ๋์์ผ๋ก ์ด๋ํ๋ ์ขํ์ ๋ฐฐ์จ</ko>
|
|
5181
|
+
* @param {Number} [scale[0]=1] horizontal axis scale <ko>์ํ์ถ ๋ฐฐ์จ</ko>
|
|
5182
|
+
* @param {Number} [scale[1]=1] vertical axis scale <ko>์์ง์ถ ๋ฐฐ์จ</ko>
|
|
5183
|
+
* @param {Number} [thresholdAngle=45] The threshold value that determines whether user action is horizontal or vertical (0~90) <ko>์ฌ์ฉ์์ ๋์์ด ๊ฐ๋ก ๋ฐฉํฅ์ธ์ง ์ธ๋ก ๋ฐฉํฅ์ธ์ง ํ๋จํ๋ ๊ธฐ์ค ๊ฐ๋(0~90)</ko>
|
|
5184
|
+
* @param {Number} [threshold=0] Minimal pan distance required before recognizing <ko>์ฌ์ฉ์์ Pan ๋์์ ์ธ์ํ๊ธฐ ์ํด์ฐ ์ต์ํ์ ๊ฑฐ๋ฆฌ</ko>
|
|
5185
|
+
* @param {Boolean} [preventClickOnDrag=false] Whether to cancel the {@link https://developer.mozilla.org/en/docs/Web/API/Element/click_event click} event when the user finishes dragging more than 1 pixel <ko>์ฌ์ฉ์๊ฐ 1ํฝ์
์ด์ ๋๋๊ทธ๋ฅผ ๋ง์ณค์ ๋ {@link https://developer.mozilla.org/ko/docs/Web/API/Element/click_event click} ์ด๋ฒคํธ ์ทจ์ ์ฌ๋ถ</ko>
|
|
5186
|
+
* @param {Boolean} [preventDefaultOnDrag=false] Whether to use the {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} when the user starts dragging <ko>์ฌ์ฉ์๊ฐ ๋๋๊ทธ๋ฅผ ์์ํ ๋ {@link https://developer.mozilla.org/ko/docs/Web/API/Event/preventDefault preventDefault} ์คํ ์ฌ๋ถ</ko>
|
|
5187
|
+
* @param {Number} [iOSEdgeSwipeThreshold=30] Area (px) that can go to the next page when swiping the right edge in iOS safari <ko>iOS Safari์์ ์ค๋ฅธ์ชฝ ์ฃ์ง๋ฅผ ์ค์์ดํ ํ๋ ๊ฒฝ์ฐ ๋ค์ ํ์ด์ง๋ก ๋์ด๊ฐ ์ ์๋ ์์ญ(px)</ko>
|
|
5188
|
+
* @param {String} [touchAction=null] Value that overrides the element's "touch-action" css property. If set to null, it is automatically set to prevent scrolling in the direction of the connected axis. <ko>์๋ฆฌ๋จผํธ์ "touch-action" CSS ์์ฑ์ ๋ฎ์ด์ฐ๋ ๊ฐ. ๋ง์ฝ null๋ก ์ค์ ๋ ๊ฒฝ์ฐ, ์ฐ๊ฒฐ๋ ์ถ ๋ฐฉํฅ์ผ๋ก์ ์คํฌ๋กค์ ๋ฐฉ์งํ๊ฒ๋ ์๋์ผ๋ก ์ค์ ๋๋ค.</ko>
|
|
5189
5189
|
**/
|
|
5190
|
-
/**
|
|
5191
|
-
* A module that passes the amount of change to eg.Axes when the mouse or touchscreen is down and moved. use less than two axes.
|
|
5192
|
-
* @ko ๋ง์ฐ์ค๋ ํฐ์น ์คํฌ๋ฆฐ์ ๋๋ฅด๊ณ ์์ง์ผ๋์ ๋ณํ๋์ eg.Axes์ ์ ๋ฌํ๋ ๋ชจ๋. ๋๊ฐ ์ดํ์ ์ถ์ ์ฌ์ฉํ๋ค.
|
|
5193
|
-
*
|
|
5194
|
-
* @example
|
|
5195
|
-
* ```js
|
|
5196
|
-
* const pan = new eg.Axes.PanInput("#area", {
|
|
5197
|
-
* inputType: ["touch"],
|
|
5198
|
-
* scale: [1, 1.3],
|
|
5199
|
-
* });
|
|
5200
|
-
*
|
|
5201
|
-
* // Connect the 'something2' axis to the mouse or touchscreen x position when the mouse or touchscreen is down and moved.
|
|
5202
|
-
* // Connect the 'somethingN' axis to the mouse or touchscreen y position when the mouse or touchscreen is down and moved.
|
|
5203
|
-
* axes.connect(["something2", "somethingN"], pan); // or axes.connect("something2 somethingN", pan);
|
|
5204
|
-
*
|
|
5205
|
-
* // Connect only one 'something1' axis to the mouse or touchscreen x position when the mouse or touchscreen is down and moved.
|
|
5206
|
-
* axes.connect(["something1"], pan); // or axes.connect("something1", pan);
|
|
5207
|
-
*
|
|
5208
|
-
* // Connect only one 'something2' axis to the mouse or touchscreen y position when the mouse or touchscreen is down and moved.
|
|
5209
|
-
* axes.connect(["", "something2"], pan); // or axes.connect(" something2", pan);
|
|
5210
|
-
* ```
|
|
5211
|
-
* @param {String|HTMLElement|Ref<HTMLElement>|jQuery} element An element to use the eg.Axes.PanInput module <ko>eg.Axes.PanInput ๋ชจ๋์ ์ฌ์ฉํ ์๋ฆฌ๋จผํธ</ko>
|
|
5212
|
-
* @param {PanInputOption} [options={}] The option object of the eg.Axes.PanInput module<ko>eg.Axes.PanInput ๋ชจ๋์ ์ต์
๊ฐ์ฒด</ko>
|
|
5190
|
+
/**
|
|
5191
|
+
* A module that passes the amount of change to eg.Axes when the mouse or touchscreen is down and moved. use less than two axes.
|
|
5192
|
+
* @ko ๋ง์ฐ์ค๋ ํฐ์น ์คํฌ๋ฆฐ์ ๋๋ฅด๊ณ ์์ง์ผ๋์ ๋ณํ๋์ eg.Axes์ ์ ๋ฌํ๋ ๋ชจ๋. ๋๊ฐ ์ดํ์ ์ถ์ ์ฌ์ฉํ๋ค.
|
|
5193
|
+
*
|
|
5194
|
+
* @example
|
|
5195
|
+
* ```js
|
|
5196
|
+
* const pan = new eg.Axes.PanInput("#area", {
|
|
5197
|
+
* inputType: ["touch"],
|
|
5198
|
+
* scale: [1, 1.3],
|
|
5199
|
+
* });
|
|
5200
|
+
*
|
|
5201
|
+
* // Connect the 'something2' axis to the mouse or touchscreen x position when the mouse or touchscreen is down and moved.
|
|
5202
|
+
* // Connect the 'somethingN' axis to the mouse or touchscreen y position when the mouse or touchscreen is down and moved.
|
|
5203
|
+
* axes.connect(["something2", "somethingN"], pan); // or axes.connect("something2 somethingN", pan);
|
|
5204
|
+
*
|
|
5205
|
+
* // Connect only one 'something1' axis to the mouse or touchscreen x position when the mouse or touchscreen is down and moved.
|
|
5206
|
+
* axes.connect(["something1"], pan); // or axes.connect("something1", pan);
|
|
5207
|
+
*
|
|
5208
|
+
* // Connect only one 'something2' axis to the mouse or touchscreen y position when the mouse or touchscreen is down and moved.
|
|
5209
|
+
* axes.connect(["", "something2"], pan); // or axes.connect(" something2", pan);
|
|
5210
|
+
* ```
|
|
5211
|
+
* @param {String|HTMLElement|Ref<HTMLElement>|jQuery} element An element to use the eg.Axes.PanInput module <ko>eg.Axes.PanInput ๋ชจ๋์ ์ฌ์ฉํ ์๋ฆฌ๋จผํธ</ko>
|
|
5212
|
+
* @param {PanInputOption} [options={}] The option object of the eg.Axes.PanInput module<ko>eg.Axes.PanInput ๋ชจ๋์ ์ต์
๊ฐ์ฒด</ko>
|
|
5213
5213
|
*/
|
|
5214
5214
|
var PanInput = /*#__PURE__*/function () {
|
|
5215
|
-
/**
|
|
5216
|
-
*
|
|
5215
|
+
/**
|
|
5216
|
+
*
|
|
5217
5217
|
*/
|
|
5218
5218
|
function PanInput(el, options) {
|
|
5219
5219
|
var _this = this;
|
|
@@ -5270,18 +5270,18 @@ version: 4.11.4-beta.0
|
|
|
5270
5270
|
this._direction = DIRECTION_NONE;
|
|
5271
5271
|
return this;
|
|
5272
5272
|
};
|
|
5273
|
-
/**
|
|
5274
|
-
* Destroys elements, properties, and events used in a module.
|
|
5275
|
-
* @ko ๋ชจ๋์ ์ฌ์ฉํ ์๋ฆฌ๋จผํธ์ ์์ฑ, ์ด๋ฒคํธ๋ฅผ ํด์ ํ๋ค.
|
|
5273
|
+
/**
|
|
5274
|
+
* Destroys elements, properties, and events used in a module.
|
|
5275
|
+
* @ko ๋ชจ๋์ ์ฌ์ฉํ ์๋ฆฌ๋จผํธ์ ์์ฑ, ์ด๋ฒคํธ๋ฅผ ํด์ ํ๋ค.
|
|
5276
5276
|
*/
|
|
5277
5277
|
__proto.destroy = function () {
|
|
5278
5278
|
this.disconnect();
|
|
5279
5279
|
this.element = null;
|
|
5280
5280
|
};
|
|
5281
|
-
/**
|
|
5282
|
-
* Enables input devices
|
|
5283
|
-
* @ko ์
๋ ฅ ์ฅ์น๋ฅผ ์ฌ์ฉํ ์ ์๊ฒ ํ๋ค
|
|
5284
|
-
* @return {PanInput} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
5281
|
+
/**
|
|
5282
|
+
* Enables input devices
|
|
5283
|
+
* @ko ์
๋ ฅ ์ฅ์น๋ฅผ ์ฌ์ฉํ ์ ์๊ฒ ํ๋ค
|
|
5284
|
+
* @return {PanInput} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
5285
5285
|
*/
|
|
5286
5286
|
__proto.enable = function () {
|
|
5287
5287
|
if (!this._enabled) {
|
|
@@ -5290,10 +5290,10 @@ version: 4.11.4-beta.0
|
|
|
5290
5290
|
}
|
|
5291
5291
|
return this;
|
|
5292
5292
|
};
|
|
5293
|
-
/**
|
|
5294
|
-
* Disables input devices
|
|
5295
|
-
* @ko ์
๋ ฅ ์ฅ์น๋ฅผ ์ฌ์ฉํ ์ ์๊ฒ ํ๋ค.
|
|
5296
|
-
* @return {PanInput} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
5293
|
+
/**
|
|
5294
|
+
* Disables input devices
|
|
5295
|
+
* @ko ์
๋ ฅ ์ฅ์น๋ฅผ ์ฌ์ฉํ ์ ์๊ฒ ํ๋ค.
|
|
5296
|
+
* @return {PanInput} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
5297
5297
|
*/
|
|
5298
5298
|
__proto.disable = function () {
|
|
5299
5299
|
if (this._enabled) {
|
|
@@ -5304,18 +5304,18 @@ version: 4.11.4-beta.0
|
|
|
5304
5304
|
}
|
|
5305
5305
|
return this;
|
|
5306
5306
|
};
|
|
5307
|
-
/**
|
|
5308
|
-
* Returns whether to use an input device
|
|
5309
|
-
* @ko ์
๋ ฅ ์ฅ์น ์ฌ์ฉ ์ฌ๋ถ๋ฅผ ๋ฐํํ๋ค.
|
|
5310
|
-
* @return {Boolean} Whether to use an input device <ko>์
๋ ฅ์ฅ์น ์ฌ์ฉ์ฌ๋ถ</ko>
|
|
5307
|
+
/**
|
|
5308
|
+
* Returns whether to use an input device
|
|
5309
|
+
* @ko ์
๋ ฅ ์ฅ์น ์ฌ์ฉ ์ฌ๋ถ๋ฅผ ๋ฐํํ๋ค.
|
|
5310
|
+
* @return {Boolean} Whether to use an input device <ko>์
๋ ฅ์ฅ์น ์ฌ์ฉ์ฌ๋ถ</ko>
|
|
5311
5311
|
*/
|
|
5312
5312
|
__proto.isEnabled = function () {
|
|
5313
5313
|
return this._enabled;
|
|
5314
5314
|
};
|
|
5315
|
-
/**
|
|
5316
|
-
* Releases current user input.
|
|
5317
|
-
* @ko ์ฌ์ฉ์์ ์
๋ ฅ์ ๊ฐ์ ๋ก ์ค๋จ์ํจ๋ค.
|
|
5318
|
-
* @return {PanInput} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
5315
|
+
/**
|
|
5316
|
+
* Releases current user input.
|
|
5317
|
+
* @ko ์ฌ์ฉ์์ ์
๋ ฅ์ ๊ฐ์ ๋ก ์ค๋จ์ํจ๋ค.
|
|
5318
|
+
* @return {PanInput} An instance of a module itself <ko>๋ชจ๋ ์์ ์ ์ธ์คํด์ค</ko>
|
|
5319
5319
|
*/
|
|
5320
5320
|
__proto.release = function () {
|
|
5321
5321
|
var activeEvent = this._activeEvent;
|
|
@@ -5488,9 +5488,9 @@ version: 4.11.4-beta.0
|
|
|
5488
5488
|
return PanInput;
|
|
5489
5489
|
}();
|
|
5490
5490
|
|
|
5491
|
-
/*
|
|
5492
|
-
* Copyright (c) 2015 NAVER Corp.
|
|
5493
|
-
* egjs projects are licensed under the MIT license
|
|
5491
|
+
/*
|
|
5492
|
+
* Copyright (c) 2015 NAVER Corp.
|
|
5493
|
+
* egjs projects are licensed under the MIT license
|
|
5494
5494
|
*/
|
|
5495
5495
|
|
|
5496
5496
|
var Axes$1 = Axes;
|
|
@@ -12966,7 +12966,7 @@ version: 4.11.4-beta.0
|
|
|
12966
12966
|
* Flicking.VERSION; // ex) 4.0.0
|
|
12967
12967
|
* ```
|
|
12968
12968
|
*/
|
|
12969
|
-
Flicking.VERSION = "4.11.4
|
|
12969
|
+
Flicking.VERSION = "4.11.4";
|
|
12970
12970
|
return Flicking;
|
|
12971
12971
|
}(Component);
|
|
12972
12972
|
|