@egjs/flicking 4.11.5-beta.3 → 4.11.5-beta.4
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/camera/Camera.d.ts +0 -1
- package/dist/flicking.cjs.js +11 -16
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +11 -16
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +11 -16
- 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 +11 -16
- 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 +1 -10
- package/src/cfc/sync.ts +1 -1
- package/dist/flicking-inline.css +0 -45
- package/dist/flicking-inline.min.css +0 -1
- package/dist/flicking.css +0 -44
- package/dist/flicking.min.css +0 -1
package/dist/flicking.esm.js
CHANGED
|
@@ -4,13 +4,13 @@ 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.5-beta.
|
|
7
|
+
version: 4.11.5-beta.4
|
|
8
8
|
*/
|
|
9
9
|
import Component, { ComponentEvent } from '@egjs/component';
|
|
10
10
|
import Axes, { PanInput } from '@egjs/axes';
|
|
11
11
|
import ImReady from '@egjs/imready';
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
/******************************************************************************
|
|
14
14
|
Copyright (c) Microsoft Corporation.
|
|
15
15
|
|
|
16
16
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -24,7 +24,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
24
24
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
25
25
|
PERFORMANCE OF THIS SOFTWARE.
|
|
26
26
|
***************************************************************************** */
|
|
27
|
-
/* global Reflect, Promise */
|
|
27
|
+
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
28
28
|
|
|
29
29
|
var extendStatics = function (d, b) {
|
|
30
30
|
extendStatics = Object.setPrototypeOf || {
|
|
@@ -109,7 +109,7 @@ function __generator(thisArg, body) {
|
|
|
109
109
|
}
|
|
110
110
|
function step(op) {
|
|
111
111
|
if (f) throw new TypeError("Generator is already executing.");
|
|
112
|
-
while (_) try {
|
|
112
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
113
113
|
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;
|
|
114
114
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
115
115
|
switch (op[0]) {
|
|
@@ -213,6 +213,10 @@ function __spread() {
|
|
|
213
213
|
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i]));
|
|
214
214
|
return ar;
|
|
215
215
|
}
|
|
216
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
217
|
+
var e = new Error(message);
|
|
218
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
219
|
+
};
|
|
216
220
|
|
|
217
221
|
/*
|
|
218
222
|
* Copyright (c) 2015 NAVER Corp.
|
|
@@ -3707,7 +3711,6 @@ var Camera = /*#__PURE__*/function () {
|
|
|
3707
3711
|
var _this = this;
|
|
3708
3712
|
var _b = (_a === void 0 ? {} : _a).align,
|
|
3709
3713
|
align = _b === void 0 ? ALIGN.CENTER : _b;
|
|
3710
|
-
this._lookedOffset = 0;
|
|
3711
3714
|
this._checkTranslateSupport = function () {
|
|
3712
3715
|
var e_1, _a;
|
|
3713
3716
|
var transforms = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"];
|
|
@@ -4067,8 +4070,6 @@ var Camera = /*#__PURE__*/function () {
|
|
|
4067
4070
|
*/
|
|
4068
4071
|
__proto.lookAt = function (pos) {
|
|
4069
4072
|
var _this = this;
|
|
4070
|
-
var prevOffset = this._offset;
|
|
4071
|
-
var isChangedOffset = this._lookedOffset !== prevOffset;
|
|
4072
4073
|
var flicking = getFlickingAttached(this._flicking);
|
|
4073
4074
|
var prevPos = this._position;
|
|
4074
4075
|
this._position = pos;
|
|
@@ -4076,15 +4077,10 @@ var Camera = /*#__PURE__*/function () {
|
|
|
4076
4077
|
this._refreshVisiblePanels();
|
|
4077
4078
|
this._checkNeedPanel();
|
|
4078
4079
|
this._checkReachEnd(prevPos, pos);
|
|
4079
|
-
if (
|
|
4080
|
+
if (toggled) {
|
|
4080
4081
|
void flicking.renderer.render().then(function () {
|
|
4081
4082
|
_this.updateOffset();
|
|
4082
|
-
_this._lookedOffset = _this._offset;
|
|
4083
4083
|
});
|
|
4084
|
-
} else if (isChangedOffset) {
|
|
4085
|
-
// sync offset for renderOnlyVisible on resize
|
|
4086
|
-
this.updateOffset();
|
|
4087
|
-
this._lookedOffset = this._offset;
|
|
4088
4084
|
} else {
|
|
4089
4085
|
this.applyTransform();
|
|
4090
4086
|
}
|
|
@@ -4343,7 +4339,6 @@ var Camera = /*#__PURE__*/function () {
|
|
|
4343
4339
|
};
|
|
4344
4340
|
__proto._resetInternalValues = function () {
|
|
4345
4341
|
this._position = 0;
|
|
4346
|
-
this._lookedOffset = 0;
|
|
4347
4342
|
this._alignPos = 0;
|
|
4348
4343
|
this._offset = 0;
|
|
4349
4344
|
this._circularOffset = 0;
|
|
@@ -7841,7 +7836,7 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
7841
7836
|
* Flicking.VERSION; // ex) 4.0.0
|
|
7842
7837
|
* ```
|
|
7843
7838
|
*/
|
|
7844
|
-
Flicking.VERSION = "4.11.5-beta.
|
|
7839
|
+
Flicking.VERSION = "4.11.5-beta.4";
|
|
7845
7840
|
return Flicking;
|
|
7846
7841
|
}(Component);
|
|
7847
7842
|
|
|
@@ -7967,7 +7962,7 @@ var sync = (function (flicking, diffResult, rendered) {
|
|
|
7967
7962
|
}
|
|
7968
7963
|
});
|
|
7969
7964
|
if (startIdx_1 >= 0) {
|
|
7970
|
-
added.push.apply(added, __spread(batchInsert(renderer, diffResult, addedElements_1, startIdx_1)));
|
|
7965
|
+
added.push.apply(added, __spread(batchInsert(renderer, diffResult, addedElements_1.slice(startIdx_1), startIdx_1)));
|
|
7971
7966
|
}
|
|
7972
7967
|
}
|
|
7973
7968
|
if (diffResult.added.length > 0 || diffResult.removed.length > 0) {
|