@egjs/flicking 4.14.1-beta.0 → 4.14.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/dist/flicking.cjs.js +15 -13
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +15 -13
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +15 -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 +48 -61
- 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/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.1
|
|
7
|
+
version: 4.14.1
|
|
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) {
|
|
@@ -2817,7 +2813,6 @@ var Control = /*#__PURE__*/function () {
|
|
|
2817
2813
|
});
|
|
2818
2814
|
});
|
|
2819
2815
|
};
|
|
2820
|
-
|
|
2821
2816
|
__proto._getPosition = function (panel, direction) {
|
|
2822
2817
|
if (direction === void 0) {
|
|
2823
2818
|
direction = DIRECTION.NONE;
|
|
@@ -5130,7 +5125,6 @@ var VanillaRenderer = /*#__PURE__*/function (_super) {
|
|
|
5130
5125
|
});
|
|
5131
5126
|
});
|
|
5132
5127
|
};
|
|
5133
|
-
|
|
5134
5128
|
__proto._collectPanels = function () {
|
|
5135
5129
|
var flicking = getFlickingAttached(this._flicking);
|
|
5136
5130
|
var camera = flicking.camera;
|
|
@@ -7852,7 +7846,6 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
7852
7846
|
if (!this._initialized) {
|
|
7853
7847
|
return [2 /*return*/];
|
|
7854
7848
|
}
|
|
7855
|
-
|
|
7856
7849
|
renderer.updatePanelSize();
|
|
7857
7850
|
camera.updateAlignPos();
|
|
7858
7851
|
camera.updateRange();
|
|
@@ -7866,7 +7859,6 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
7866
7859
|
if (!this._initialized) {
|
|
7867
7860
|
return [2 /*return*/];
|
|
7868
7861
|
}
|
|
7869
|
-
|
|
7870
7862
|
if (control.animating) ; else {
|
|
7871
7863
|
control.updatePosition(prevProgressInPanel);
|
|
7872
7864
|
control.updateInput();
|
|
@@ -8104,7 +8096,7 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
8104
8096
|
* Flicking.VERSION; // ex) 4.0.0
|
|
8105
8097
|
* ```
|
|
8106
8098
|
*/
|
|
8107
|
-
Flicking.VERSION = "4.14.1
|
|
8099
|
+
Flicking.VERSION = "4.14.1";
|
|
8108
8100
|
return Flicking;
|
|
8109
8101
|
}(Component);
|
|
8110
8102
|
|
|
@@ -8578,6 +8570,16 @@ var sync = (function (flicking, diffResult, rendered) {
|
|
|
8578
8570
|
}
|
|
8579
8571
|
if (diffResult.added.length > 0 || diffResult.removed.length > 0) {
|
|
8580
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();
|
|
8581
8583
|
}
|
|
8582
8584
|
});
|
|
8583
8585
|
var batchInsert = function (renderer, diffResult, addedElements, startIdx, endIdx) {
|