@egjs/flicking 4.11.3-beta.4 → 4.12.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declaration/Flicking.d.ts +244 -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 +70 -42
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +70 -42
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +70 -42
- 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 +70 -42
- 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 +1 -1
- package/src/Flicking.ts +24 -2
- package/src/control/AxesController.ts +1 -1
package/dist/flicking.cjs.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.
|
|
7
|
+
version: 4.12.0-beta.0
|
|
8
8
|
*/
|
|
9
9
|
'use strict';
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ var Component = require('@egjs/component');
|
|
|
12
12
|
var Axes = require('@egjs/axes');
|
|
13
13
|
var ImReady = require('@egjs/imready');
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/******************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation.
|
|
17
17
|
|
|
18
18
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -26,7 +26,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
26
26
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27
27
|
PERFORMANCE OF THIS SOFTWARE.
|
|
28
28
|
***************************************************************************** */
|
|
29
|
-
/* global Reflect, Promise */
|
|
29
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
30
30
|
|
|
31
31
|
var extendStatics = function (d, b) {
|
|
32
32
|
extendStatics = Object.setPrototypeOf || {
|
|
@@ -111,7 +111,7 @@ function __generator(thisArg, body) {
|
|
|
111
111
|
}
|
|
112
112
|
function step(op) {
|
|
113
113
|
if (f) throw new TypeError("Generator is already executing.");
|
|
114
|
-
while (_) try {
|
|
114
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
115
115
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
116
116
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
117
117
|
switch (op[0]) {
|
|
@@ -215,6 +215,10 @@ function __spread() {
|
|
|
215
215
|
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
216
216
|
return ar;
|
|
217
217
|
}
|
|
218
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
219
|
+
var e = new Error(message);
|
|
220
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
221
|
+
};
|
|
218
222
|
|
|
219
223
|
/*
|
|
220
224
|
* Copyright (c) 2015 NAVER Corp.
|
|
@@ -2098,7 +2102,7 @@ var AxesController = /*#__PURE__*/function () {
|
|
|
2098
2102
|
});
|
|
2099
2103
|
this._panInput = new Axes.PanInput(flicking.viewport.element, {
|
|
2100
2104
|
inputType: flicking.inputType,
|
|
2101
|
-
threshold:
|
|
2105
|
+
threshold: flicking.dragThreshold,
|
|
2102
2106
|
iOSEdgeSwipeThreshold: flicking.iOSEdgeSwipeThreshold,
|
|
2103
2107
|
preventDefaultOnDrag: flicking.preventDefaultOnDrag,
|
|
2104
2108
|
scale: flicking.horizontal ? [flicking.camera.panelOrder === ORDER.RTL ? 1 : -1, 0] : [0, -1],
|
|
@@ -6008,40 +6012,42 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
6008
6012
|
moveType = _v === void 0 ? "snap" : _v,
|
|
6009
6013
|
_w = _b.threshold,
|
|
6010
6014
|
threshold = _w === void 0 ? 40 : _w,
|
|
6011
|
-
_x = _b.
|
|
6012
|
-
|
|
6013
|
-
_y = _b.
|
|
6014
|
-
|
|
6015
|
-
_z = _b.
|
|
6016
|
-
|
|
6017
|
-
_0 = _b.
|
|
6018
|
-
|
|
6019
|
-
_1 = _b.
|
|
6020
|
-
|
|
6021
|
-
_2 = _b.
|
|
6022
|
-
|
|
6023
|
-
_3 = _b.
|
|
6024
|
-
|
|
6025
|
-
_4 = _b.
|
|
6026
|
-
|
|
6027
|
-
_5 = _b.
|
|
6028
|
-
|
|
6029
|
-
_6 = _b.
|
|
6030
|
-
|
|
6031
|
-
_7 = _b.
|
|
6032
|
-
|
|
6033
|
-
_8 = _b.
|
|
6034
|
-
|
|
6035
|
-
_9 = _b.
|
|
6036
|
-
|
|
6037
|
-
_10 = _b.
|
|
6038
|
-
|
|
6039
|
-
_11 = _b.
|
|
6040
|
-
|
|
6041
|
-
_12 = _b.
|
|
6042
|
-
|
|
6043
|
-
_13 = _b.
|
|
6044
|
-
|
|
6015
|
+
_x = _b.dragThreshold,
|
|
6016
|
+
dragThreshold = _x === void 0 ? 1 : _x,
|
|
6017
|
+
_y = _b.interruptable,
|
|
6018
|
+
interruptable = _y === void 0 ? true : _y,
|
|
6019
|
+
_z = _b.bounce,
|
|
6020
|
+
bounce = _z === void 0 ? "20%" : _z,
|
|
6021
|
+
_0 = _b.iOSEdgeSwipeThreshold,
|
|
6022
|
+
iOSEdgeSwipeThreshold = _0 === void 0 ? 30 : _0,
|
|
6023
|
+
_1 = _b.preventClickOnDrag,
|
|
6024
|
+
preventClickOnDrag = _1 === void 0 ? true : _1,
|
|
6025
|
+
_2 = _b.preventDefaultOnDrag,
|
|
6026
|
+
preventDefaultOnDrag = _2 === void 0 ? false : _2,
|
|
6027
|
+
_3 = _b.disableOnInit,
|
|
6028
|
+
disableOnInit = _3 === void 0 ? false : _3,
|
|
6029
|
+
_4 = _b.changeOnHold,
|
|
6030
|
+
changeOnHold = _4 === void 0 ? false : _4,
|
|
6031
|
+
_5 = _b.renderOnlyVisible,
|
|
6032
|
+
renderOnlyVisible = _5 === void 0 ? false : _5,
|
|
6033
|
+
_6 = _b.virtual,
|
|
6034
|
+
virtual = _6 === void 0 ? null : _6,
|
|
6035
|
+
_7 = _b.autoInit,
|
|
6036
|
+
autoInit = _7 === void 0 ? true : _7,
|
|
6037
|
+
_8 = _b.autoResize,
|
|
6038
|
+
autoResize = _8 === void 0 ? true : _8,
|
|
6039
|
+
_9 = _b.useResizeObserver,
|
|
6040
|
+
useResizeObserver = _9 === void 0 ? true : _9,
|
|
6041
|
+
_10 = _b.resizeDebounce,
|
|
6042
|
+
resizeDebounce = _10 === void 0 ? 0 : _10,
|
|
6043
|
+
_11 = _b.maxResizeDebounce,
|
|
6044
|
+
maxResizeDebounce = _11 === void 0 ? 100 : _11,
|
|
6045
|
+
_12 = _b.useFractionalSize,
|
|
6046
|
+
useFractionalSize = _12 === void 0 ? false : _12,
|
|
6047
|
+
_13 = _b.externalRenderer,
|
|
6048
|
+
externalRenderer = _13 === void 0 ? null : _13,
|
|
6049
|
+
_14 = _b.renderExternal,
|
|
6050
|
+
renderExternal = _14 === void 0 ? null : _14;
|
|
6045
6051
|
var _this = _super.call(this) || this;
|
|
6046
6052
|
// Internal states
|
|
6047
6053
|
_this._initialized = false;
|
|
@@ -6067,6 +6073,7 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
6067
6073
|
_this._inputType = inputType;
|
|
6068
6074
|
_this._moveType = moveType;
|
|
6069
6075
|
_this._threshold = threshold;
|
|
6076
|
+
_this._dragThreshold = dragThreshold;
|
|
6070
6077
|
_this._interruptable = interruptable;
|
|
6071
6078
|
_this._bounce = bounce;
|
|
6072
6079
|
_this._iOSEdgeSwipeThreshold = iOSEdgeSwipeThreshold;
|
|
@@ -6381,7 +6388,7 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
6381
6388
|
Object.defineProperty(__proto, "defaultIndex", {
|
|
6382
6389
|
/**
|
|
6383
6390
|
* Index of the panel to move when Flicking's {@link Flicking#init init()} is called. A zero-based integer
|
|
6384
|
-
* @ko Flicking의 {@link Flicking#init init()}이 호출될 때 이동할 디폴트 패널의 인덱스로, 0부터 시작하는
|
|
6391
|
+
* @ko Flicking의 {@link Flicking#init init()}이 호출될 때 이동할 디폴트 패널의 인덱스로, 0부터 시작하는 정수입니다.
|
|
6385
6392
|
* @type {number}
|
|
6386
6393
|
* @default 0
|
|
6387
6394
|
* @see {@link https://naver.github.io/egjs-flicking/Options#defaultindex defaultIndex ( Options )}
|
|
@@ -6746,7 +6753,7 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
6746
6753
|
Object.defineProperty(__proto, "threshold", {
|
|
6747
6754
|
/**
|
|
6748
6755
|
* Movement threshold to change panel (unit: px). It should be dragged above the threshold to change the current panel.
|
|
6749
|
-
* @ko 패널 변경을 위한 이동 임계값 (단위: px). 주어진 값 이상으로 스크롤해야만 패널 변경이
|
|
6756
|
+
* @ko 패널 변경을 위한 이동 임계값 (단위: px). 주어진 값 이상으로 스크롤해야만 패널 변경이 가능합니다.
|
|
6750
6757
|
* @type {number}
|
|
6751
6758
|
* @default 40
|
|
6752
6759
|
* @see {@link https://naver.github.io/egjs-flicking/Options#threshold Threshold ( Options )}
|
|
@@ -6760,6 +6767,27 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
6760
6767
|
enumerable: false,
|
|
6761
6768
|
configurable: true
|
|
6762
6769
|
});
|
|
6770
|
+
Object.defineProperty(__proto, "dragThreshold", {
|
|
6771
|
+
/**
|
|
6772
|
+
* Minimal distance of user input before recognizing (unit: px). It should be dragged above the dragThreshold to move the panel.
|
|
6773
|
+
* @ko 사용자의 입력을 인식하기 위한 최소한의 거리 (단위: px). 주어진 값 이상으로 스크롤해야만 패널이 움직입니다.
|
|
6774
|
+
* @type {number}
|
|
6775
|
+
* @default 1
|
|
6776
|
+
* @see {@link https://naver.github.io/egjs-flicking/Options#dragThreshold dragThreshold ( Options )}
|
|
6777
|
+
*/
|
|
6778
|
+
get: function () {
|
|
6779
|
+
return this._dragThreshold;
|
|
6780
|
+
},
|
|
6781
|
+
set: function (val) {
|
|
6782
|
+
this._dragThreshold = val;
|
|
6783
|
+
var panInput = this._control.controller.panInput;
|
|
6784
|
+
if (panInput) {
|
|
6785
|
+
panInput.options.threshold = val;
|
|
6786
|
+
}
|
|
6787
|
+
},
|
|
6788
|
+
enumerable: false,
|
|
6789
|
+
configurable: true
|
|
6790
|
+
});
|
|
6763
6791
|
Object.defineProperty(__proto, "interruptable", {
|
|
6764
6792
|
/**
|
|
6765
6793
|
* Set animation to be interruptable by click/touch.
|
|
@@ -7834,7 +7862,7 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
7834
7862
|
* Flicking.VERSION; // ex) 4.0.0
|
|
7835
7863
|
* ```
|
|
7836
7864
|
*/
|
|
7837
|
-
Flicking.VERSION = "4.
|
|
7865
|
+
Flicking.VERSION = "4.12.0-beta.0";
|
|
7838
7866
|
return Flicking;
|
|
7839
7867
|
}(Component);
|
|
7840
7868
|
|