@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.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
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('@egjs/component'), require('@egjs/axes'), require('@egjs/imready'), require('@cfcs/core')) :
|
|
@@ -26,7 +26,7 @@ version: 4.14.0
|
|
|
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, SuppressedError, Symbol */
|
|
29
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
30
30
|
|
|
31
31
|
var extendStatics = function (d, b) {
|
|
32
32
|
extendStatics = Object.setPrototypeOf || {
|
|
@@ -96,12 +96,8 @@ version: 4.14.0
|
|
|
96
96
|
f,
|
|
97
97
|
y,
|
|
98
98
|
t,
|
|
99
|
-
g;
|
|
100
|
-
return g = {
|
|
101
|
-
next: verb(0),
|
|
102
|
-
"throw": verb(1),
|
|
103
|
-
"return": verb(2)
|
|
104
|
-
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
99
|
+
g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
100
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
105
101
|
return this;
|
|
106
102
|
}), g;
|
|
107
103
|
function verb(n) {
|
|
@@ -2846,9 +2842,12 @@ version: 4.14.0
|
|
|
2846
2842
|
return __generator(this, function (_a) {
|
|
2847
2843
|
switch (_a.label) {
|
|
2848
2844
|
case 0:
|
|
2845
|
+
if (!flicking.initialized) return [3 /*break*/, 2];
|
|
2849
2846
|
return [4 /*yield*/, flicking.renderer.render()];
|
|
2850
2847
|
case 1:
|
|
2851
2848
|
_a.sent();
|
|
2849
|
+
_a.label = 2;
|
|
2850
|
+
case 2:
|
|
2852
2851
|
return [2 /*return*/];
|
|
2853
2852
|
}
|
|
2854
2853
|
});
|
|
@@ -2861,7 +2860,6 @@ version: 4.14.0
|
|
|
2861
2860
|
});
|
|
2862
2861
|
});
|
|
2863
2862
|
};
|
|
2864
|
-
|
|
2865
2863
|
__proto._getPosition = function (panel, direction) {
|
|
2866
2864
|
if (direction === void 0) {
|
|
2867
2865
|
direction = DIRECTION.NONE;
|
|
@@ -5208,7 +5206,6 @@ version: 4.14.0
|
|
|
5208
5206
|
});
|
|
5209
5207
|
});
|
|
5210
5208
|
};
|
|
5211
|
-
|
|
5212
5209
|
__proto._collectPanels = function () {
|
|
5213
5210
|
var flicking = getFlickingAttached(this._flicking);
|
|
5214
5211
|
var camera = flicking.camera;
|
|
@@ -7944,7 +7941,6 @@ version: 4.14.0
|
|
|
7944
7941
|
if (!this._initialized) {
|
|
7945
7942
|
return [2 /*return*/];
|
|
7946
7943
|
}
|
|
7947
|
-
|
|
7948
7944
|
renderer.updatePanelSize();
|
|
7949
7945
|
camera.updateAlignPos();
|
|
7950
7946
|
camera.updateRange();
|
|
@@ -7958,7 +7954,6 @@ version: 4.14.0
|
|
|
7958
7954
|
if (!this._initialized) {
|
|
7959
7955
|
return [2 /*return*/];
|
|
7960
7956
|
}
|
|
7961
|
-
|
|
7962
7957
|
if (control.animating) ; else {
|
|
7963
7958
|
control.updatePosition(prevProgressInPanel);
|
|
7964
7959
|
control.updateInput();
|
|
@@ -8196,7 +8191,7 @@ version: 4.14.0
|
|
|
8196
8191
|
* Flicking.VERSION; // ex) 4.0.0
|
|
8197
8192
|
* ```
|
|
8198
8193
|
*/
|
|
8199
|
-
Flicking.VERSION = "4.14.
|
|
8194
|
+
Flicking.VERSION = "4.14.1-beta.3";
|
|
8200
8195
|
return Flicking;
|
|
8201
8196
|
}(Component);
|
|
8202
8197
|
|
|
@@ -8693,6 +8688,16 @@ version: 4.14.0
|
|
|
8693
8688
|
}
|
|
8694
8689
|
if (diffResult.added.length > 0 || diffResult.removed.length > 0) {
|
|
8695
8690
|
renderer.updateAfterPanelChange(added, removed);
|
|
8691
|
+
} else if (diffResult.ordered.length > 0) {
|
|
8692
|
+
var camera = flicking.camera;
|
|
8693
|
+
// 순서 변경으로 인한 index 변경 및 range 값 변경
|
|
8694
|
+
camera.updateRange();
|
|
8695
|
+
// index 변경으로 인한 카메라 위치 즉시 변경
|
|
8696
|
+
camera.updateOffset();
|
|
8697
|
+
// 순서 변경으로 인한 anchors 전부 업데이트
|
|
8698
|
+
camera.updateAnchors();
|
|
8699
|
+
// need panel 여부 재확인 필요
|
|
8700
|
+
camera.resetNeedPanelHistory();
|
|
8696
8701
|
}
|
|
8697
8702
|
});
|
|
8698
8703
|
var batchInsert = function (renderer, diffResult, addedElements, startIdx, endIdx) {
|