@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.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
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@egjs/component'), require('@egjs/axes'), require('@egjs/imready')) :
|
|
@@ -12,7 +12,7 @@ version: 4.11.3-beta.4
|
|
|
12
12
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Flicking = factory(global.eg.Component, global.eg.Axes, global.eg.ImReady));
|
|
13
13
|
})(this, (function (Component, Axes, ImReady) { 'use strict';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/******************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation.
|
|
17
17
|
|
|
18
18
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -26,7 +26,7 @@ version: 4.11.3-beta.4
|
|
|
26
26
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27
27
|
PERFORMANCE OF THIS SOFTWARE.
|
|
28
28
|
***************************************************************************** */
|
|
29
|
-
/* global Reflect, Promise */
|
|
29
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
30
30
|
|
|
31
31
|
var extendStatics = function (d, b) {
|
|
32
32
|
extendStatics = Object.setPrototypeOf || {
|
|
@@ -111,7 +111,7 @@ version: 4.11.3-beta.4
|
|
|
111
111
|
}
|
|
112
112
|
function step(op) {
|
|
113
113
|
if (f) throw new TypeError("Generator is already executing.");
|
|
114
|
-
while (_) try {
|
|
114
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
115
115
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
116
116
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
117
117
|
switch (op[0]) {
|
|
@@ -215,6 +215,10 @@ version: 4.11.3-beta.4
|
|
|
215
215
|
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(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.
|
|
@@ -2143,7 +2147,7 @@ version: 4.11.3-beta.4
|
|
|
2143
2147
|
});
|
|
2144
2148
|
this._panInput = new Axes.PanInput(flicking.viewport.element, {
|
|
2145
2149
|
inputType: flicking.inputType,
|
|
2146
|
-
threshold:
|
|
2150
|
+
threshold: flicking.dragThreshold,
|
|
2147
2151
|
iOSEdgeSwipeThreshold: flicking.iOSEdgeSwipeThreshold,
|
|
2148
2152
|
preventDefaultOnDrag: flicking.preventDefaultOnDrag,
|
|
2149
2153
|
scale: flicking.horizontal ? [flicking.camera.panelOrder === ORDER.RTL ? 1 : -1, 0] : [0, -1],
|
|
@@ -6101,40 +6105,42 @@ version: 4.11.3-beta.4
|
|
|
6101
6105
|
moveType = _v === void 0 ? "snap" : _v,
|
|
6102
6106
|
_w = _b.threshold,
|
|
6103
6107
|
threshold = _w === void 0 ? 40 : _w,
|
|
6104
|
-
_x = _b.
|
|
6105
|
-
|
|
6106
|
-
_y = _b.
|
|
6107
|
-
|
|
6108
|
-
_z = _b.
|
|
6109
|
-
|
|
6110
|
-
_0 = _b.
|
|
6111
|
-
|
|
6112
|
-
_1 = _b.
|
|
6113
|
-
|
|
6114
|
-
_2 = _b.
|
|
6115
|
-
|
|
6116
|
-
_3 = _b.
|
|
6117
|
-
|
|
6118
|
-
_4 = _b.
|
|
6119
|
-
|
|
6120
|
-
_5 = _b.
|
|
6121
|
-
|
|
6122
|
-
_6 = _b.
|
|
6123
|
-
|
|
6124
|
-
_7 = _b.
|
|
6125
|
-
|
|
6126
|
-
_8 = _b.
|
|
6127
|
-
|
|
6128
|
-
_9 = _b.
|
|
6129
|
-
|
|
6130
|
-
_10 = _b.
|
|
6131
|
-
|
|
6132
|
-
_11 = _b.
|
|
6133
|
-
|
|
6134
|
-
_12 = _b.
|
|
6135
|
-
|
|
6136
|
-
_13 = _b.
|
|
6137
|
-
|
|
6108
|
+
_x = _b.dragThreshold,
|
|
6109
|
+
dragThreshold = _x === void 0 ? 1 : _x,
|
|
6110
|
+
_y = _b.interruptable,
|
|
6111
|
+
interruptable = _y === void 0 ? true : _y,
|
|
6112
|
+
_z = _b.bounce,
|
|
6113
|
+
bounce = _z === void 0 ? "20%" : _z,
|
|
6114
|
+
_0 = _b.iOSEdgeSwipeThreshold,
|
|
6115
|
+
iOSEdgeSwipeThreshold = _0 === void 0 ? 30 : _0,
|
|
6116
|
+
_1 = _b.preventClickOnDrag,
|
|
6117
|
+
preventClickOnDrag = _1 === void 0 ? true : _1,
|
|
6118
|
+
_2 = _b.preventDefaultOnDrag,
|
|
6119
|
+
preventDefaultOnDrag = _2 === void 0 ? false : _2,
|
|
6120
|
+
_3 = _b.disableOnInit,
|
|
6121
|
+
disableOnInit = _3 === void 0 ? false : _3,
|
|
6122
|
+
_4 = _b.changeOnHold,
|
|
6123
|
+
changeOnHold = _4 === void 0 ? false : _4,
|
|
6124
|
+
_5 = _b.renderOnlyVisible,
|
|
6125
|
+
renderOnlyVisible = _5 === void 0 ? false : _5,
|
|
6126
|
+
_6 = _b.virtual,
|
|
6127
|
+
virtual = _6 === void 0 ? null : _6,
|
|
6128
|
+
_7 = _b.autoInit,
|
|
6129
|
+
autoInit = _7 === void 0 ? true : _7,
|
|
6130
|
+
_8 = _b.autoResize,
|
|
6131
|
+
autoResize = _8 === void 0 ? true : _8,
|
|
6132
|
+
_9 = _b.useResizeObserver,
|
|
6133
|
+
useResizeObserver = _9 === void 0 ? true : _9,
|
|
6134
|
+
_10 = _b.resizeDebounce,
|
|
6135
|
+
resizeDebounce = _10 === void 0 ? 0 : _10,
|
|
6136
|
+
_11 = _b.maxResizeDebounce,
|
|
6137
|
+
maxResizeDebounce = _11 === void 0 ? 100 : _11,
|
|
6138
|
+
_12 = _b.useFractionalSize,
|
|
6139
|
+
useFractionalSize = _12 === void 0 ? false : _12,
|
|
6140
|
+
_13 = _b.externalRenderer,
|
|
6141
|
+
externalRenderer = _13 === void 0 ? null : _13,
|
|
6142
|
+
_14 = _b.renderExternal,
|
|
6143
|
+
renderExternal = _14 === void 0 ? null : _14;
|
|
6138
6144
|
var _this = _super.call(this) || this;
|
|
6139
6145
|
// Internal states
|
|
6140
6146
|
_this._initialized = false;
|
|
@@ -6160,6 +6166,7 @@ version: 4.11.3-beta.4
|
|
|
6160
6166
|
_this._inputType = inputType;
|
|
6161
6167
|
_this._moveType = moveType;
|
|
6162
6168
|
_this._threshold = threshold;
|
|
6169
|
+
_this._dragThreshold = dragThreshold;
|
|
6163
6170
|
_this._interruptable = interruptable;
|
|
6164
6171
|
_this._bounce = bounce;
|
|
6165
6172
|
_this._iOSEdgeSwipeThreshold = iOSEdgeSwipeThreshold;
|
|
@@ -6474,7 +6481,7 @@ version: 4.11.3-beta.4
|
|
|
6474
6481
|
Object.defineProperty(__proto, "defaultIndex", {
|
|
6475
6482
|
/**
|
|
6476
6483
|
* Index of the panel to move when Flicking's {@link Flicking#init init()} is called. A zero-based integer
|
|
6477
|
-
* @ko Flicking의 {@link Flicking#init init()}이 호출될 때 이동할 디폴트 패널의 인덱스로, 0부터 시작하는
|
|
6484
|
+
* @ko Flicking의 {@link Flicking#init init()}이 호출될 때 이동할 디폴트 패널의 인덱스로, 0부터 시작하는 정수입니다.
|
|
6478
6485
|
* @type {number}
|
|
6479
6486
|
* @default 0
|
|
6480
6487
|
* @see {@link https://naver.github.io/egjs-flicking/Options#defaultindex defaultIndex ( Options )}
|
|
@@ -6839,7 +6846,7 @@ version: 4.11.3-beta.4
|
|
|
6839
6846
|
Object.defineProperty(__proto, "threshold", {
|
|
6840
6847
|
/**
|
|
6841
6848
|
* Movement threshold to change panel (unit: px). It should be dragged above the threshold to change the current panel.
|
|
6842
|
-
* @ko 패널 변경을 위한 이동 임계값 (단위: px). 주어진 값 이상으로 스크롤해야만 패널 변경이
|
|
6849
|
+
* @ko 패널 변경을 위한 이동 임계값 (단위: px). 주어진 값 이상으로 스크롤해야만 패널 변경이 가능합니다.
|
|
6843
6850
|
* @type {number}
|
|
6844
6851
|
* @default 40
|
|
6845
6852
|
* @see {@link https://naver.github.io/egjs-flicking/Options#threshold Threshold ( Options )}
|
|
@@ -6853,6 +6860,27 @@ version: 4.11.3-beta.4
|
|
|
6853
6860
|
enumerable: false,
|
|
6854
6861
|
configurable: true
|
|
6855
6862
|
});
|
|
6863
|
+
Object.defineProperty(__proto, "dragThreshold", {
|
|
6864
|
+
/**
|
|
6865
|
+
* Minimal distance of user input before recognizing (unit: px). It should be dragged above the dragThreshold to move the panel.
|
|
6866
|
+
* @ko 사용자의 입력을 인식하기 위한 최소한의 거리 (단위: px). 주어진 값 이상으로 스크롤해야만 패널이 움직입니다.
|
|
6867
|
+
* @type {number}
|
|
6868
|
+
* @default 1
|
|
6869
|
+
* @see {@link https://naver.github.io/egjs-flicking/Options#dragThreshold dragThreshold ( Options )}
|
|
6870
|
+
*/
|
|
6871
|
+
get: function () {
|
|
6872
|
+
return this._dragThreshold;
|
|
6873
|
+
},
|
|
6874
|
+
set: function (val) {
|
|
6875
|
+
this._dragThreshold = val;
|
|
6876
|
+
var panInput = this._control.controller.panInput;
|
|
6877
|
+
if (panInput) {
|
|
6878
|
+
panInput.options.threshold = val;
|
|
6879
|
+
}
|
|
6880
|
+
},
|
|
6881
|
+
enumerable: false,
|
|
6882
|
+
configurable: true
|
|
6883
|
+
});
|
|
6856
6884
|
Object.defineProperty(__proto, "interruptable", {
|
|
6857
6885
|
/**
|
|
6858
6886
|
* Set animation to be interruptable by click/touch.
|
|
@@ -7927,7 +7955,7 @@ version: 4.11.3-beta.4
|
|
|
7927
7955
|
* Flicking.VERSION; // ex) 4.0.0
|
|
7928
7956
|
* ```
|
|
7929
7957
|
*/
|
|
7930
|
-
Flicking.VERSION = "4.
|
|
7958
|
+
Flicking.VERSION = "4.12.0-beta.0";
|
|
7931
7959
|
return Flicking;
|
|
7932
7960
|
}(Component);
|
|
7933
7961
|
|