@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.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.11.5-beta.
|
|
7
|
+
version: 4.11.5-beta.4
|
|
8
8
|
*/
|
|
9
9
|
'use strict';
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ var Component = require('@egjs/component');
|
|
|
12
12
|
var Axes = require('@egjs/axes');
|
|
13
13
|
var ImReady = require('@egjs/imready');
|
|
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 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
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 = function (d, b) {
|
|
32
32
|
extendStatics = Object.setPrototypeOf || {
|
|
@@ -111,7 +111,7 @@ function __generator(thisArg, body) {
|
|
|
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 @@ function __spread() {
|
|
|
215
215
|
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(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) 2015 NAVER Corp.
|
|
@@ -3709,7 +3713,6 @@ var Camera = /*#__PURE__*/function () {
|
|
|
3709
3713
|
var _this = this;
|
|
3710
3714
|
var _b = (_a === void 0 ? {} : _a).align,
|
|
3711
3715
|
align = _b === void 0 ? ALIGN.CENTER : _b;
|
|
3712
|
-
this._lookedOffset = 0;
|
|
3713
3716
|
this._checkTranslateSupport = function () {
|
|
3714
3717
|
var e_1, _a;
|
|
3715
3718
|
var transforms = ["webkitTransform", "msTransform", "MozTransform", "OTransform", "transform"];
|
|
@@ -4069,8 +4072,6 @@ var Camera = /*#__PURE__*/function () {
|
|
|
4069
4072
|
*/
|
|
4070
4073
|
__proto.lookAt = function (pos) {
|
|
4071
4074
|
var _this = this;
|
|
4072
|
-
var prevOffset = this._offset;
|
|
4073
|
-
var isChangedOffset = this._lookedOffset !== prevOffset;
|
|
4074
4075
|
var flicking = getFlickingAttached(this._flicking);
|
|
4075
4076
|
var prevPos = this._position;
|
|
4076
4077
|
this._position = pos;
|
|
@@ -4078,15 +4079,10 @@ var Camera = /*#__PURE__*/function () {
|
|
|
4078
4079
|
this._refreshVisiblePanels();
|
|
4079
4080
|
this._checkNeedPanel();
|
|
4080
4081
|
this._checkReachEnd(prevPos, pos);
|
|
4081
|
-
if (
|
|
4082
|
+
if (toggled) {
|
|
4082
4083
|
void flicking.renderer.render().then(function () {
|
|
4083
4084
|
_this.updateOffset();
|
|
4084
|
-
_this._lookedOffset = _this._offset;
|
|
4085
4085
|
});
|
|
4086
|
-
} else if (isChangedOffset) {
|
|
4087
|
-
// sync offset for renderOnlyVisible on resize
|
|
4088
|
-
this.updateOffset();
|
|
4089
|
-
this._lookedOffset = this._offset;
|
|
4090
4086
|
} else {
|
|
4091
4087
|
this.applyTransform();
|
|
4092
4088
|
}
|
|
@@ -4345,7 +4341,6 @@ var Camera = /*#__PURE__*/function () {
|
|
|
4345
4341
|
};
|
|
4346
4342
|
__proto._resetInternalValues = function () {
|
|
4347
4343
|
this._position = 0;
|
|
4348
|
-
this._lookedOffset = 0;
|
|
4349
4344
|
this._alignPos = 0;
|
|
4350
4345
|
this._offset = 0;
|
|
4351
4346
|
this._circularOffset = 0;
|
|
@@ -7843,7 +7838,7 @@ var Flicking = /*#__PURE__*/function (_super) {
|
|
|
7843
7838
|
* Flicking.VERSION; // ex) 4.0.0
|
|
7844
7839
|
* ```
|
|
7845
7840
|
*/
|
|
7846
|
-
Flicking.VERSION = "4.11.5-beta.
|
|
7841
|
+
Flicking.VERSION = "4.11.5-beta.4";
|
|
7847
7842
|
return Flicking;
|
|
7848
7843
|
}(Component);
|
|
7849
7844
|
|
|
@@ -7969,7 +7964,7 @@ var sync = (function (flicking, diffResult, rendered) {
|
|
|
7969
7964
|
}
|
|
7970
7965
|
});
|
|
7971
7966
|
if (startIdx_1 >= 0) {
|
|
7972
|
-
added.push.apply(added, __spread(batchInsert(renderer, diffResult, addedElements_1, startIdx_1)));
|
|
7967
|
+
added.push.apply(added, __spread(batchInsert(renderer, diffResult, addedElements_1.slice(startIdx_1), startIdx_1)));
|
|
7973
7968
|
}
|
|
7974
7969
|
}
|
|
7975
7970
|
if (diffResult.added.length > 0 || diffResult.removed.length > 0) {
|