@egjs/flicking 4.14.0 → 4.14.1-beta.3
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/dist/flicking.cjs.js +18 -13
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +18 -13
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +18 -13
- 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 +69 -64
- 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/cfc/sync.ts +10 -0
- package/src/control/Control.ts +3 -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.14.
|
|
7
|
+
version: 4.14.1-beta.3
|
|
8
8
|
*/
|
|
9
9
|
'use strict';
|
|
10
10
|
|
|
@@ -27,7 +27,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
27
27
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
28
28
|
PERFORMANCE OF THIS SOFTWARE.
|
|
29
29
|
***************************************************************************** */
|
|
30
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
30
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
31
31
|
|
|
32
32
|
var extendStatics = function (d, b) {
|
|
33
33
|
extendStatics = Object.setPrototypeOf || {
|
|
@@ -97,12 +97,8 @@ function __generator(thisArg, body) {
|
|
|
97
97
|
f,
|
|
98
98
|
y,
|
|
99
99
|
t,
|
|
100
|
-
g;
|
|
101
|
-
return g = {
|
|
102
|
-
next: verb(0),
|
|
103
|
-
"throw": verb(1),
|
|
104
|
-
"return": verb(2)
|
|
105
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
100
|
+
g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
101
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
106
102
|
return this;
|
|
107
103
|
}), g;
|
|
108
104
|
function verb(n) {
|
|
@@ -2799,9 +2795,12 @@ var Control = /*#__PURE__*/function () {
|
|
|
2799
2795
|
return __generator(this, function (_a) {
|
|
2800
2796
|
switch (_a.label) {
|
|
2801
2797
|
case 0:
|
|
2798
|
+
if (!flicking.initialized) return [3 /*break*/, 2];
|
|
2802
2799
|
return [4 /*yield*/, flicking.renderer.render()];
|
|
2803
2800
|
case 1:
|
|
2804
2801
|
_a.sent();
|
|
2802
|
+
_a.label = 2;
|
|
2803
|
+
case 2:
|
|
2805
2804
|
return [2 /*return*/];
|
|
2806
2805
|
}
|
|
2807
2806
|
});
|
|
@@ -2814,7 +2813,6 @@ var Control = /*#__PURE__*/function () {
|
|
|
2814
2813
|
});
|
|
2815
2814
|
});
|
|
2816
2815
|
};
|
|
2817
|
-
|
|
2818
2816
|
__proto._getPosition = function (panel, direction) {
|
|
2819
2817
|
if (direction === void 0) {
|
|
2820
2818
|
direction = DIRECTION.NONE;
|
|
@@ -5127,7 +5125,6 @@ var VanillaRenderer = /*#__PURE__*/function (_super) {
|
|
|
5127
5125
|
});
|
|
5128
5126
|
});
|
|
5129
5127
|
};
|
|
5130
|
-
|
|
5131
5128
|
__proto._collectPanels = function () {
|
|
5132
5129
|
var flicking = getFlickingAttached(this._flicking);
|
|
5133
5130
|
var camera = flicking.camera;
|
|
@@ -7849,7 +7846,6 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
7849
7846
|
if (!this._initialized) {
|
|
7850
7847
|
return [2 /*return*/];
|
|
7851
7848
|
}
|
|
7852
|
-
|
|
7853
7849
|
renderer.updatePanelSize();
|
|
7854
7850
|
camera.updateAlignPos();
|
|
7855
7851
|
camera.updateRange();
|
|
@@ -7863,7 +7859,6 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
7863
7859
|
if (!this._initialized) {
|
|
7864
7860
|
return [2 /*return*/];
|
|
7865
7861
|
}
|
|
7866
|
-
|
|
7867
7862
|
if (control.animating) ; else {
|
|
7868
7863
|
control.updatePosition(prevProgressInPanel);
|
|
7869
7864
|
control.updateInput();
|
|
@@ -8101,7 +8096,7 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
8101
8096
|
* Flicking.VERSION; // ex) 4.0.0
|
|
8102
8097
|
* ```
|
|
8103
8098
|
*/
|
|
8104
|
-
Flicking.VERSION = "4.14.
|
|
8099
|
+
Flicking.VERSION = "4.14.1-beta.3";
|
|
8105
8100
|
return Flicking;
|
|
8106
8101
|
}(Component);
|
|
8107
8102
|
|
|
@@ -8575,6 +8570,16 @@ var sync = (function (flicking, diffResult, rendered) {
|
|
|
8575
8570
|
}
|
|
8576
8571
|
if (diffResult.added.length > 0 || diffResult.removed.length > 0) {
|
|
8577
8572
|
renderer.updateAfterPanelChange(added, removed);
|
|
8573
|
+
} else if (diffResult.ordered.length > 0) {
|
|
8574
|
+
var camera = flicking.camera;
|
|
8575
|
+
// 순서 변경으로 인한 index 변경 및 range 값 변경
|
|
8576
|
+
camera.updateRange();
|
|
8577
|
+
// index 변경으로 인한 카메라 위치 즉시 변경
|
|
8578
|
+
camera.updateOffset();
|
|
8579
|
+
// 순서 변경으로 인한 anchors 전부 업데이트
|
|
8580
|
+
camera.updateAnchors();
|
|
8581
|
+
// need panel 여부 재확인 필요
|
|
8582
|
+
camera.resetNeedPanelHistory();
|
|
8578
8583
|
}
|
|
8579
8584
|
});
|
|
8580
8585
|
var batchInsert = function (renderer, diffResult, addedElements, startIdx, endIdx) {
|