@egjs/flicking 4.11.2 → 4.11.3-beta.1
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 +15 -9
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +15 -9
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +15 -9
- 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 +39 -18
- 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/camera/Camera.ts +4 -2
package/dist/flicking.pkgd.js
CHANGED
|
@@ -4,7 +4,7 @@ name: @egjs/flicking
|
|
|
4
4
|
license: MIT
|
|
5
5
|
author: NAVER Corp.
|
|
6
6
|
repository: https://github.com/naver/egjs-flicking
|
|
7
|
-
version: 4.11.
|
|
7
|
+
version: 4.11.3-beta.1
|
|
8
8
|
*/
|
|
9
9
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -12,7 +12,7 @@ version: 4.11.2
|
|
|
12
12
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Flicking = factory());
|
|
13
13
|
})(this, (function () { 'use strict';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/******************************************************************************
|
|
16
16
|
Copyright (c) Microsoft Corporation.
|
|
17
17
|
|
|
18
18
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -26,7 +26,7 @@ version: 4.11.2
|
|
|
26
26
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
27
27
|
PERFORMANCE OF THIS SOFTWARE.
|
|
28
28
|
***************************************************************************** */
|
|
29
|
-
/* global Reflect, Promise */
|
|
29
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
30
30
|
|
|
31
31
|
var extendStatics$3 = function (d, b) {
|
|
32
32
|
extendStatics$3 = Object.setPrototypeOf || {
|
|
@@ -111,7 +111,7 @@ version: 4.11.2
|
|
|
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.2
|
|
|
215
215
|
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$1(arguments[i]));
|
|
216
216
|
return ar;
|
|
217
217
|
}
|
|
218
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
219
|
+
var e = new Error(message);
|
|
220
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
221
|
+
};
|
|
218
222
|
|
|
219
223
|
/*
|
|
220
224
|
Copyright (c) NAVER Corp.
|
|
@@ -222,7 +226,7 @@ version: 4.11.2
|
|
|
222
226
|
license: MIT
|
|
223
227
|
author: NAVER Corp.
|
|
224
228
|
repository: https://github.com/naver/egjs-component
|
|
225
|
-
version: 3.0.
|
|
229
|
+
version: 3.0.4
|
|
226
230
|
*/
|
|
227
231
|
/*! *****************************************************************************
|
|
228
232
|
Copyright (c) Microsoft Corporation.
|
|
@@ -554,6 +558,7 @@ version: 4.11.2
|
|
|
554
558
|
* ```
|
|
555
559
|
*/
|
|
556
560
|
__proto.off = function (eventName, handlerToDetach) {
|
|
561
|
+
var e_1, _a;
|
|
557
562
|
// Detach all event handlers.
|
|
558
563
|
if (isUndefined(eventName)) {
|
|
559
564
|
this._eventHandler = {};
|
|
@@ -575,14 +580,28 @@ version: 4.11.2
|
|
|
575
580
|
// Detach single event handler
|
|
576
581
|
var handlerList = this._eventHandler[eventName];
|
|
577
582
|
if (handlerList) {
|
|
578
|
-
var
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
if (
|
|
583
|
-
|
|
583
|
+
var idx = 0;
|
|
584
|
+
try {
|
|
585
|
+
for (var handlerList_1 = __values(handlerList), handlerList_1_1 = handlerList_1.next(); !handlerList_1_1.done; handlerList_1_1 = handlerList_1.next()) {
|
|
586
|
+
var handlerFunction = handlerList_1_1.value;
|
|
587
|
+
if (handlerFunction === handlerToDetach) {
|
|
588
|
+
handlerList.splice(idx, 1);
|
|
589
|
+
if (handlerList.length <= 0) {
|
|
590
|
+
delete this._eventHandler[eventName];
|
|
591
|
+
}
|
|
592
|
+
break;
|
|
584
593
|
}
|
|
585
|
-
|
|
594
|
+
idx++;
|
|
595
|
+
}
|
|
596
|
+
} catch (e_1_1) {
|
|
597
|
+
e_1 = {
|
|
598
|
+
error: e_1_1
|
|
599
|
+
};
|
|
600
|
+
} finally {
|
|
601
|
+
try {
|
|
602
|
+
if (handlerList_1_1 && !handlerList_1_1.done && (_a = handlerList_1.return)) _a.call(handlerList_1);
|
|
603
|
+
} finally {
|
|
604
|
+
if (e_1) throw e_1.error;
|
|
586
605
|
}
|
|
587
606
|
}
|
|
588
607
|
}
|
|
@@ -597,7 +616,7 @@ version: 4.11.2
|
|
|
597
616
|
* Component.VERSION; // ex) 3.0.0
|
|
598
617
|
* @memberof Component
|
|
599
618
|
*/
|
|
600
|
-
Component.VERSION = "3.0.
|
|
619
|
+
Component.VERSION = "3.0.4";
|
|
601
620
|
return Component;
|
|
602
621
|
}();
|
|
603
622
|
|
|
@@ -8376,11 +8395,13 @@ version: 4.11.2
|
|
|
8376
8395
|
* @return {AnchorPoint | null}
|
|
8377
8396
|
*/
|
|
8378
8397
|
__proto.findActiveAnchor = function () {
|
|
8398
|
+
var _a;
|
|
8379
8399
|
var flicking = getFlickingAttached(this._flicking);
|
|
8380
|
-
var
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8400
|
+
var activePanel = flicking.control.activePanel;
|
|
8401
|
+
if (!activePanel) return null;
|
|
8402
|
+
return (_a = find$1(this._anchors, function (anchor) {
|
|
8403
|
+
return anchor.panel.index === activePanel.index;
|
|
8404
|
+
})) !== null && _a !== void 0 ? _a : this.findNearestAnchor(activePanel.position);
|
|
8384
8405
|
};
|
|
8385
8406
|
/**
|
|
8386
8407
|
* Clamp the given position between camera's range
|
|
@@ -12930,7 +12951,7 @@ version: 4.11.2
|
|
|
12930
12951
|
* Flicking.VERSION; // ex) 4.0.0
|
|
12931
12952
|
* ```
|
|
12932
12953
|
*/
|
|
12933
|
-
Flicking.VERSION = "4.11.
|
|
12954
|
+
Flicking.VERSION = "4.11.3-beta.1";
|
|
12934
12955
|
return Flicking;
|
|
12935
12956
|
}(Component);
|
|
12936
12957
|
|