@egjs/flicking 4.11.5-beta.0 → 4.11.5-beta.2
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/Flicking.d.ts +0 -2
- package/declaration/camera/Camera.d.ts +1 -0
- package/dist/flicking.cjs.js +16 -27
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +16 -27
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +16 -27
- 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 +26 -44
- 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/Flicking.ts +0 -1
- package/src/camera/Camera.ts +9 -1
- package/src/core/AutoResizer.ts +2 -5
- package/src/renderer/Renderer.ts +0 -4
package/dist/flicking.pkgd.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.2
|
|
8
8
|
*/
|
|
9
9
|
(function (global, factory) {
|
|
10
10
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -12,7 +12,7 @@ version: 4.11.5-beta.0
|
|
|
12
12
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Flicking = factory());
|
|
13
13
|
})(this, (function () { 'use strict';
|
|
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 @@ version: 4.11.5-beta.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
|
|
29
|
+
/* global Reflect, Promise */
|
|
30
30
|
|
|
31
31
|
var extendStatics$3 = function (d, b) {
|
|
32
32
|
extendStatics$3 = Object.setPrototypeOf || {
|
|
@@ -111,7 +111,7 @@ version: 4.11.5-beta.0
|
|
|
111
111
|
}
|
|
112
112
|
function step(op) {
|
|
113
113
|
if (f) throw new TypeError("Generator is already executing.");
|
|
114
|
-
while (
|
|
114
|
+
while (_) 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,10 +215,6 @@ version: 4.11.5-beta.0
|
|
|
215
215
|
for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read$1(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
|
-
};
|
|
222
218
|
|
|
223
219
|
/*
|
|
224
220
|
Copyright (c) NAVER Corp.
|
|
@@ -1424,13 +1420,9 @@ version: 4.11.5-beta.0
|
|
|
1424
1420
|
}
|
|
1425
1421
|
if (flicking.useResizeObserver && !!window.ResizeObserver) {
|
|
1426
1422
|
var viewportSizeNot0 = viewport.width !== 0 || viewport.height !== 0;
|
|
1427
|
-
var
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
})).forEach(function (element) {
|
|
1431
|
-
resizeObserver_1.observe(element);
|
|
1432
|
-
});
|
|
1433
|
-
this._resizeObserver = resizeObserver_1;
|
|
1423
|
+
var resizeObserver = viewportSizeNot0 ? new ResizeObserver(this._skipFirstResize) : new ResizeObserver(this._onResize);
|
|
1424
|
+
resizeObserver.observe(flicking.viewport.element);
|
|
1425
|
+
this._resizeObserver = resizeObserver;
|
|
1434
1426
|
} else {
|
|
1435
1427
|
window.addEventListener("resize", this._onResize);
|
|
1436
1428
|
}
|
|
@@ -2663,7 +2655,7 @@ version: 4.11.5-beta.0
|
|
|
2663
2655
|
license: MIT
|
|
2664
2656
|
author: NAVER Corp.
|
|
2665
2657
|
repository: https://github.com/naver/egjs-axes
|
|
2666
|
-
version: 3.9.
|
|
2658
|
+
version: 3.9.0
|
|
2667
2659
|
*/
|
|
2668
2660
|
|
|
2669
2661
|
/*! *****************************************************************************
|
|
@@ -3001,9 +2993,6 @@ version: 4.11.5-beta.0
|
|
|
3001
2993
|
});
|
|
3002
2994
|
Object.keys(newCssProps_1).forEach(function (prop) {
|
|
3003
2995
|
oldCssProps[prop] = element.style[prop];
|
|
3004
|
-
});
|
|
3005
|
-
// Old style props like user-select can be corrupted if you change the style directly in the logic above.
|
|
3006
|
-
Object.keys(newCssProps_1).forEach(function (prop) {
|
|
3007
2996
|
element.style[prop] = newCssProps_1[prop];
|
|
3008
2997
|
});
|
|
3009
2998
|
}
|
|
@@ -5071,7 +5060,7 @@ version: 4.11.5-beta.0
|
|
|
5071
5060
|
* eg.Axes.VERSION; // ex) 3.3.3
|
|
5072
5061
|
* ```
|
|
5073
5062
|
*/
|
|
5074
|
-
Axes.VERSION = "3.9.
|
|
5063
|
+
Axes.VERSION = "3.9.0";
|
|
5075
5064
|
/* eslint-enable */
|
|
5076
5065
|
/**
|
|
5077
5066
|
* @name TRANSFORM
|
|
@@ -5266,11 +5255,15 @@ version: 4.11.5-beta.0
|
|
|
5266
5255
|
this._detachWindowEvent(this._activeEvent);
|
|
5267
5256
|
}
|
|
5268
5257
|
this._attachElementEvent(observer);
|
|
5258
|
+
this._originalCssProps = setCssProps(this.element, this.options, this._direction);
|
|
5269
5259
|
return this;
|
|
5270
5260
|
};
|
|
5271
5261
|
__proto.disconnect = function () {
|
|
5272
5262
|
this._detachElementEvent();
|
|
5273
5263
|
this._detachWindowEvent(this._activeEvent);
|
|
5264
|
+
if (!isCssPropsFromAxes(this._originalCssProps)) {
|
|
5265
|
+
revertCssProps(this.element, this._originalCssProps);
|
|
5266
|
+
}
|
|
5274
5267
|
this._direction = DIRECTION_NONE;
|
|
5275
5268
|
return this;
|
|
5276
5269
|
};
|
|
@@ -5288,10 +5281,7 @@ version: 4.11.5-beta.0
|
|
|
5288
5281
|
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5289
5282
|
*/
|
|
5290
5283
|
__proto.enable = function () {
|
|
5291
|
-
|
|
5292
|
-
this._enabled = true;
|
|
5293
|
-
this._originalCssProps = setCssProps(this.element, this.options, this._direction);
|
|
5294
|
-
}
|
|
5284
|
+
this._enabled = true;
|
|
5295
5285
|
return this;
|
|
5296
5286
|
};
|
|
5297
5287
|
/**
|
|
@@ -5300,12 +5290,7 @@ version: 4.11.5-beta.0
|
|
|
5300
5290
|
* @return {PanInput} An instance of a module itself <ko>모듈 자신의 인스턴스</ko>
|
|
5301
5291
|
*/
|
|
5302
5292
|
__proto.disable = function () {
|
|
5303
|
-
|
|
5304
|
-
this._enabled = false;
|
|
5305
|
-
if (!isCssPropsFromAxes(this._originalCssProps)) {
|
|
5306
|
-
revertCssProps(this.element, this._originalCssProps);
|
|
5307
|
-
}
|
|
5308
|
-
}
|
|
5293
|
+
this._enabled = false;
|
|
5309
5294
|
return this;
|
|
5310
5295
|
};
|
|
5311
5296
|
/**
|
|
@@ -5462,7 +5447,7 @@ version: 4.11.5-beta.0
|
|
|
5462
5447
|
throw new Error("Element to connect input does not exist.");
|
|
5463
5448
|
}
|
|
5464
5449
|
this._observer = observer;
|
|
5465
|
-
this.
|
|
5450
|
+
this._enabled = true;
|
|
5466
5451
|
this._activeEvent = activeEvent;
|
|
5467
5452
|
element.addEventListener("click", this._preventClickWhenDragged, true);
|
|
5468
5453
|
activeEvent.start.forEach(function (event) {
|
|
@@ -5486,7 +5471,7 @@ version: 4.11.5-beta.0
|
|
|
5486
5471
|
element.removeEventListener(event, _this._voidFunction);
|
|
5487
5472
|
});
|
|
5488
5473
|
}
|
|
5489
|
-
this.
|
|
5474
|
+
this._enabled = false;
|
|
5490
5475
|
this._observer = null;
|
|
5491
5476
|
};
|
|
5492
5477
|
return PanInput;
|
|
@@ -8307,6 +8292,8 @@ version: 4.11.5-beta.0
|
|
|
8307
8292
|
*/
|
|
8308
8293
|
__proto.lookAt = function (pos) {
|
|
8309
8294
|
var _this = this;
|
|
8295
|
+
var prevOffset = this._offset;
|
|
8296
|
+
var isChangedOffset = this._lookedOffset !== prevOffset;
|
|
8310
8297
|
var flicking = getFlickingAttached(this._flicking);
|
|
8311
8298
|
var prevPos = this._position;
|
|
8312
8299
|
this._position = pos;
|
|
@@ -8314,10 +8301,15 @@ version: 4.11.5-beta.0
|
|
|
8314
8301
|
this._refreshVisiblePanels();
|
|
8315
8302
|
this._checkNeedPanel();
|
|
8316
8303
|
this._checkReachEnd(prevPos, pos);
|
|
8317
|
-
if (toggled) {
|
|
8304
|
+
if (isChangedOffset || toggled) {
|
|
8318
8305
|
void flicking.renderer.render().then(function () {
|
|
8319
8306
|
_this.updateOffset();
|
|
8307
|
+
_this._lookedOffset = _this._offset;
|
|
8320
8308
|
});
|
|
8309
|
+
} else if (isChangedOffset) {
|
|
8310
|
+
// sync offset for renderOnlyVisible on resize
|
|
8311
|
+
this.updateOffset();
|
|
8312
|
+
this._lookedOffset = this._offset;
|
|
8321
8313
|
} else {
|
|
8322
8314
|
this.applyTransform();
|
|
8323
8315
|
}
|
|
@@ -9884,9 +9876,6 @@ version: 4.11.5-beta.0
|
|
|
9884
9876
|
var activePanel = control.activePanel;
|
|
9885
9877
|
// Update camera & control
|
|
9886
9878
|
this._updateCameraAndControl();
|
|
9887
|
-
if (flicking.autoResize) {
|
|
9888
|
-
flicking.autoResizer.enable();
|
|
9889
|
-
}
|
|
9890
9879
|
void this.render();
|
|
9891
9880
|
if (!flicking.animating) {
|
|
9892
9881
|
if (!activePanel || activePanel.removed) {
|
|
@@ -11302,13 +11291,6 @@ version: 4.11.5-beta.0
|
|
|
11302
11291
|
enumerable: false,
|
|
11303
11292
|
configurable: true
|
|
11304
11293
|
});
|
|
11305
|
-
Object.defineProperty(__proto, "autoResizer", {
|
|
11306
|
-
get: function () {
|
|
11307
|
-
return this._autoResizer;
|
|
11308
|
-
},
|
|
11309
|
-
enumerable: false,
|
|
11310
|
-
configurable: true
|
|
11311
|
-
});
|
|
11312
11294
|
Object.defineProperty(__proto, "initialized", {
|
|
11313
11295
|
// Internal States
|
|
11314
11296
|
/**
|
|
@@ -12980,7 +12962,7 @@ version: 4.11.5-beta.0
|
|
|
12980
12962
|
* Flicking.VERSION; // ex) 4.0.0
|
|
12981
12963
|
* ```
|
|
12982
12964
|
*/
|
|
12983
|
-
Flicking.VERSION = "4.11.5-beta.
|
|
12965
|
+
Flicking.VERSION = "4.11.5-beta.2";
|
|
12984
12966
|
return Flicking;
|
|
12985
12967
|
}(Component);
|
|
12986
12968
|
|