@egjs/flicking 4.11.4-beta.0 → 4.11.5-beta.0
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 +242 -240
- package/declaration/camera/Camera.d.ts +89 -89
- package/declaration/camera/index.d.ts +4 -4
- package/declaration/camera/mode/BoundCameraMode.d.ts +13 -13
- package/declaration/camera/mode/CameraMode.d.ts +20 -20
- package/declaration/camera/mode/CircularCameraMode.d.ts +19 -19
- package/declaration/camera/mode/LinearCameraMode.d.ts +9 -9
- package/declaration/camera/mode/index.d.ts +6 -6
- package/declaration/cfc/getDefaultCameraTransform.d.ts +3 -3
- package/declaration/cfc/getRenderingPanels.d.ts +4 -4
- package/declaration/cfc/index.d.ts +5 -5
- package/declaration/cfc/sync.d.ts +4 -4
- package/declaration/cfc/withFlickingMethods.d.ts +2 -2
- package/declaration/const/axes.d.ts +8 -8
- package/declaration/const/error.d.ts +34 -34
- package/declaration/const/external.d.ts +48 -48
- package/declaration/control/AxesController.d.ts +44 -44
- package/declaration/control/Control.d.ts +45 -45
- package/declaration/control/FreeControl.d.ts +14 -14
- package/declaration/control/SnapControl.d.ts +16 -16
- package/declaration/control/StateMachine.d.ts +14 -14
- package/declaration/control/StrictControl.d.ts +20 -20
- package/declaration/control/index.d.ts +14 -14
- package/declaration/control/states/AnimatingState.d.ts +9 -9
- package/declaration/control/states/DisabledState.d.ts +9 -9
- package/declaration/control/states/DraggingState.d.ts +8 -8
- package/declaration/control/states/HoldingState.d.ts +10 -10
- package/declaration/control/states/IdleState.d.ts +9 -9
- package/declaration/control/states/State.d.ts +47 -47
- package/declaration/core/AnchorPoint.d.ts +15 -15
- package/declaration/core/AutoResizer.d.ts +16 -16
- package/declaration/core/FlickingError.d.ts +5 -5
- package/declaration/core/ResizeWatcher.d.ts +33 -33
- package/declaration/core/Viewport.d.ts +25 -25
- package/declaration/core/VirtualManager.d.ts +37 -37
- package/declaration/core/index.d.ts +6 -6
- package/declaration/core/panel/Panel.d.ts +89 -89
- package/declaration/core/panel/VirtualPanel.d.ts +19 -19
- package/declaration/core/panel/index.d.ts +5 -5
- package/declaration/core/panel/provider/ElementProvider.d.ts +8 -8
- package/declaration/core/panel/provider/VanillaElementProvider.d.ts +12 -12
- package/declaration/core/panel/provider/VirtualElementProvider.d.ts +15 -15
- package/declaration/core/panel/provider/index.d.ts +5 -5
- package/declaration/index.cjs.d.ts +3 -3
- package/declaration/index.d.ts +13 -13
- package/declaration/index.umd.d.ts +2 -2
- package/declaration/renderer/ExternalRenderer.d.ts +7 -7
- package/declaration/renderer/Renderer.d.ts +59 -59
- package/declaration/renderer/VanillaRenderer.d.ts +10 -10
- package/declaration/renderer/index.d.ts +6 -6
- package/declaration/renderer/strategy/NormalRenderingStrategy.d.ts +23 -23
- package/declaration/renderer/strategy/RenderingStrategy.d.ts +15 -15
- package/declaration/renderer/strategy/VirtualRenderingStrategy.d.ts +17 -17
- package/declaration/renderer/strategy/index.d.ts +5 -5
- package/declaration/type/event.d.ts +88 -88
- package/declaration/type/external.d.ts +31 -31
- package/declaration/type/internal.d.ts +13 -13
- package/declaration/utils.d.ts +45 -45
- package/dist/flicking.cjs.js +19 -5
- package/dist/flicking.cjs.js.map +1 -1
- package/dist/flicking.esm.js +19 -5
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +19 -5
- 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 +769 -755
- 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 +2 -2
- package/src/Flicking.ts +1 -0
- package/src/core/AutoResizer.ts +5 -2
- package/src/renderer/Renderer.ts +4 -0
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.11.
|
|
7
|
+
version: 4.11.5-beta.0
|
|
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')) :
|
|
@@ -1017,9 +1017,13 @@ version: 4.11.4-beta.0
|
|
|
1017
1017
|
}
|
|
1018
1018
|
if (flicking.useResizeObserver && !!window.ResizeObserver) {
|
|
1019
1019
|
var viewportSizeNot0 = viewport.width !== 0 || viewport.height !== 0;
|
|
1020
|
-
var
|
|
1021
|
-
|
|
1022
|
-
|
|
1020
|
+
var resizeObserver_1 = viewportSizeNot0 ? new ResizeObserver(this._skipFirstResize) : new ResizeObserver(this._onResize);
|
|
1021
|
+
__spread([flicking.viewport.element], flicking.camera.element ? [flicking.camera.element] : [], flicking.panels.map(function (panel) {
|
|
1022
|
+
return panel.element;
|
|
1023
|
+
})).forEach(function (element) {
|
|
1024
|
+
resizeObserver_1.observe(element);
|
|
1025
|
+
});
|
|
1026
|
+
this._resizeObserver = resizeObserver_1;
|
|
1023
1027
|
} else {
|
|
1024
1028
|
window.addEventListener("resize", this._onResize);
|
|
1025
1029
|
}
|
|
@@ -4845,6 +4849,9 @@ version: 4.11.4-beta.0
|
|
|
4845
4849
|
var activePanel = control.activePanel;
|
|
4846
4850
|
// Update camera & control
|
|
4847
4851
|
this._updateCameraAndControl();
|
|
4852
|
+
if (flicking.autoResize) {
|
|
4853
|
+
flicking.autoResizer.enable();
|
|
4854
|
+
}
|
|
4848
4855
|
void this.render();
|
|
4849
4856
|
if (!flicking.animating) {
|
|
4850
4857
|
if (!activePanel || activePanel.removed) {
|
|
@@ -6260,6 +6267,13 @@ version: 4.11.4-beta.0
|
|
|
6260
6267
|
enumerable: false,
|
|
6261
6268
|
configurable: true
|
|
6262
6269
|
});
|
|
6270
|
+
Object.defineProperty(__proto, "autoResizer", {
|
|
6271
|
+
get: function () {
|
|
6272
|
+
return this._autoResizer;
|
|
6273
|
+
},
|
|
6274
|
+
enumerable: false,
|
|
6275
|
+
configurable: true
|
|
6276
|
+
});
|
|
6263
6277
|
Object.defineProperty(__proto, "initialized", {
|
|
6264
6278
|
// Internal States
|
|
6265
6279
|
/**
|
|
@@ -7931,7 +7945,7 @@ version: 4.11.4-beta.0
|
|
|
7931
7945
|
* Flicking.VERSION; // ex) 4.0.0
|
|
7932
7946
|
* ```
|
|
7933
7947
|
*/
|
|
7934
|
-
Flicking.VERSION = "4.11.
|
|
7948
|
+
Flicking.VERSION = "4.11.5-beta.0";
|
|
7935
7949
|
return Flicking;
|
|
7936
7950
|
}(Component);
|
|
7937
7951
|
|