@egjs/flicking
Advanced tools
Comparing version 4.10.1 to 4.10.2
@@ -1,2 +0,2 @@ | ||
import Axes, { OnRelease } from "@egjs/axes"; | ||
import Axes, { PanInput, OnRelease } from "@egjs/axes"; | ||
import Flicking from "../Flicking"; | ||
@@ -13,2 +13,3 @@ import { ControlParams } from "../type/external"; | ||
get axes(): Axes; | ||
get panInput(): PanInput; | ||
get stateMachine(): StateMachine; | ||
@@ -38,2 +39,3 @@ get state(): import("./states/State").default; | ||
animateTo(position: number, duration: number, axesEvent?: OnRelease): Promise<void>; | ||
updateDirection(): void; | ||
private _resetInternalValues; | ||
@@ -40,0 +42,0 @@ private _onAxesHold; |
@@ -34,2 +34,3 @@ import { OnRelease } from "@egjs/axes"; | ||
setActive(newActivePanel: Panel, prevActivePanel: Panel | null, isTrusted: boolean): void; | ||
copy(control: Control): void; | ||
protected _triggerIndexChangeEvent(panel: Panel, position: number, axesEvent?: OnRelease): void; | ||
@@ -36,0 +37,0 @@ protected _animateToPosition({ position, duration, newActivePanel, axesEvent }: { |
{ | ||
"name": "@egjs/flicking", | ||
"version": "4.10.1", | ||
"version": "4.10.2", | ||
"description": "Everyday 30 million people experience. It's reliable, flexible and extendable carousel.", | ||
@@ -5,0 +5,0 @@ "main": "dist/flicking.js", |
@@ -453,5 +453,3 @@ /* | ||
if (this._circularEnabled) { | ||
panels.forEach(panel => panel.updateCircularToggleDirection()); | ||
} | ||
panels.forEach(panel => panel.updateCircularToggleDirection()); | ||
@@ -709,2 +707,3 @@ return this; | ||
: new LinearCameraMode(flicking); | ||
this._circularEnabled = false; | ||
} | ||
@@ -711,0 +710,0 @@ } |
@@ -31,6 +31,6 @@ /* | ||
/** | ||
* An {@link https://naver.github.io/egjs-axes/release/latest/doc/eg.Axes.html Axes} instance | ||
* @ko {@link https://naver.github.io/egjs-axes/release/latest/doc/eg.Axes.html Axes}의 인스턴스 | ||
* @type {Axes} | ||
* @see https://naver.github.io/egjs-axes/release/latest/doc/eg.Axes.html | ||
* An {@link https://naver.github.io/egjs-axes/docs/api/Axes Axes} instance | ||
* @ko {@link https://naver.github.io/egjs-axes/docs/api/Axes Axes}의 인스턴스 | ||
* @type {Axes | null} | ||
* @see https://naver.github.io/egjs-axes/docs/api/Axes | ||
* @readonly | ||
@@ -40,2 +40,10 @@ */ | ||
/** | ||
* An {@link https://naver.github.io/egjs-axes/docs/api/PanInput PanInput} instance | ||
* @ko {@link https://naver.github.io/egjs-axes/docs/api/PanInput PanInput}의 인스턴스 | ||
* @type {PanInput | null} | ||
* @see https://naver.github.io/egjs-axes/docs/api/PanInput | ||
* @readonly | ||
*/ | ||
public get panInput() { return this._panInput; } | ||
/** | ||
* @internal | ||
@@ -406,2 +414,13 @@ */ | ||
public updateDirection() { | ||
const flicking = getFlickingAttached(this._flicking); | ||
const axes = this._axes!; | ||
const panInput = this._panInput!; | ||
axes.disconnect(panInput); | ||
axes.connect(flicking.horizontal ? [AXES.POSITION_KEY, ""] : ["", AXES.POSITION_KEY], panInput); | ||
panInput.options.scale = flicking.horizontal ? [-1, 0] : [0, -1]; | ||
} | ||
private _resetInternalValues() { | ||
@@ -408,0 +427,0 @@ this._flicking = null; |
@@ -339,2 +339,11 @@ /* | ||
/** | ||
* @internal | ||
*/ | ||
public copy(control: Control) { | ||
this._flicking = control._flicking; | ||
this._activePanel = control._activePanel; | ||
this._controller = control._controller; | ||
} | ||
protected _triggerIndexChangeEvent(panel: Panel, position: number, axesEvent?: OnRelease) { | ||
@@ -341,0 +350,0 @@ const flicking = getFlickingAttached(this._flicking); |
@@ -257,3 +257,6 @@ /* | ||
// Options Setter | ||
public set align(val: PanelOptions["align"]) { this._align = val; } | ||
public set align(val: PanelOptions["align"]) { | ||
this._align = val; | ||
this._updateAlignPos(); | ||
} | ||
@@ -573,2 +576,3 @@ /** | ||
this._toggleDirection = DIRECTION.NONE; | ||
this._togglePosition = 0; | ||
this._toggled = false; | ||
@@ -575,0 +579,0 @@ return this; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4141958
38659