@egjs/flicking 4.5.0 → 4.5.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/declaration/control/StrictControl.d.ts +1 -0
- package/dist/flicking.esm.js +19 -3
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +19 -3
- 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 +19 -3
- 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/cfc/withFlickingMethods.ts +2 -1
- package/src/control/StrictControl.ts +10 -0
|
@@ -12,6 +12,7 @@ declare class StrictControl extends Control {
|
|
|
12
12
|
constructor({ count }?: Partial<StrictControlOptions>);
|
|
13
13
|
destroy(): void;
|
|
14
14
|
updateInput(): this;
|
|
15
|
+
moveToPanel(panel: Panel, options: Parameters<Control["moveToPanel"]>[1]): Promise<void>;
|
|
15
16
|
moveToPosition(position: number, duration: number, axesEvent?: OnRelease): Promise<void>;
|
|
16
17
|
setActive: (newActivePanel: Panel, prevActivePanel: Panel | null, isTrusted: boolean) => void;
|
|
17
18
|
private _resetIndexRange;
|
package/dist/flicking.esm.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.5.
|
|
7
|
+
version: 4.5.1
|
|
8
8
|
*/
|
|
9
9
|
import Component, { ComponentEvent } from '@egjs/component';
|
|
10
10
|
import Axes, { PanInput } from '@egjs/axes';
|
|
@@ -3467,6 +3467,21 @@ function (_super) {
|
|
|
3467
3467
|
};
|
|
3468
3468
|
return this;
|
|
3469
3469
|
};
|
|
3470
|
+
|
|
3471
|
+
__proto.moveToPanel = function (panel, options) {
|
|
3472
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3473
|
+
var flicking, camera, controller;
|
|
3474
|
+
return __generator(this, function (_a) {
|
|
3475
|
+
flicking = getFlickingAttached(this._flicking);
|
|
3476
|
+
camera = flicking.camera;
|
|
3477
|
+
controller = this._controller;
|
|
3478
|
+
controller.update(camera.controlParams);
|
|
3479
|
+
return [2
|
|
3480
|
+
/*return*/
|
|
3481
|
+
, _super.prototype.moveToPanel.call(this, panel, options)];
|
|
3482
|
+
});
|
|
3483
|
+
});
|
|
3484
|
+
};
|
|
3470
3485
|
/**
|
|
3471
3486
|
* Move {@link Camera} to the given position
|
|
3472
3487
|
* @ko {@link Camera}를 주어진 좌표로 이동합니다
|
|
@@ -8236,7 +8251,7 @@ function (_super) {
|
|
|
8236
8251
|
*/
|
|
8237
8252
|
|
|
8238
8253
|
|
|
8239
|
-
Flicking.VERSION = "4.5.
|
|
8254
|
+
Flicking.VERSION = "4.5.1";
|
|
8240
8255
|
return Flicking;
|
|
8241
8256
|
}(Component);
|
|
8242
8257
|
|
|
@@ -8285,7 +8300,8 @@ var withFlickingMethods = function (prototype, flickingName) {
|
|
|
8285
8300
|
getterDescriptor.get = function () {
|
|
8286
8301
|
var _a;
|
|
8287
8302
|
|
|
8288
|
-
|
|
8303
|
+
var flicking = this[flickingName];
|
|
8304
|
+
return flicking && ((_a = descriptor.get) === null || _a === void 0 ? void 0 : _a.call(flicking));
|
|
8289
8305
|
};
|
|
8290
8306
|
}
|
|
8291
8307
|
|