@egjs/flicking 4.10.1 → 4.10.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.
@@ -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.10.1
7
+ version: 4.10.2
8
8
  */
9
9
  (function (global, factory) {
10
10
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -6456,10 +6456,10 @@ version: 4.10.1
6456
6456
  var __proto = AxesController.prototype;
6457
6457
  Object.defineProperty(__proto, "axes", {
6458
6458
  /**
6459
- * An {@link https://naver.github.io/egjs-axes/release/latest/doc/eg.Axes.html Axes} instance
6460
- * @ko {@link https://naver.github.io/egjs-axes/release/latest/doc/eg.Axes.html Axes}의 인스턴스
6461
- * @type {Axes}
6462
- * @see https://naver.github.io/egjs-axes/release/latest/doc/eg.Axes.html
6459
+ * An {@link https://naver.github.io/egjs-axes/docs/api/Axes Axes} instance
6460
+ * @ko {@link https://naver.github.io/egjs-axes/docs/api/Axes Axes}의 인스턴스
6461
+ * @type {Axes | null}
6462
+ * @see https://naver.github.io/egjs-axes/docs/api/Axes
6463
6463
  * @readonly
6464
6464
  */
6465
6465
  get: function () {
@@ -6468,6 +6468,20 @@ version: 4.10.1
6468
6468
  enumerable: false,
6469
6469
  configurable: true
6470
6470
  });
6471
+ Object.defineProperty(__proto, "panInput", {
6472
+ /**
6473
+ * An {@link https://naver.github.io/egjs-axes/docs/api/PanInput PanInput} instance
6474
+ * @ko {@link https://naver.github.io/egjs-axes/docs/api/PanInput PanInput}의 인스턴스
6475
+ * @type {PanInput | null}
6476
+ * @see https://naver.github.io/egjs-axes/docs/api/PanInput
6477
+ * @readonly
6478
+ */
6479
+ get: function () {
6480
+ return this._panInput;
6481
+ },
6482
+ enumerable: false,
6483
+ configurable: true
6484
+ });
6471
6485
  Object.defineProperty(__proto, "stateMachine", {
6472
6486
  /**
6473
6487
  * @internal
@@ -6907,6 +6921,15 @@ version: 4.10.1
6907
6921
  }
6908
6922
  };
6909
6923
 
6924
+ __proto.updateDirection = function () {
6925
+ var flicking = getFlickingAttached(this._flicking);
6926
+ var axes = this._axes;
6927
+ var panInput = this._panInput;
6928
+ axes.disconnect(panInput);
6929
+ axes.connect(flicking.horizontal ? [POSITION_KEY, ""] : ["", POSITION_KEY], panInput);
6930
+ panInput.options.scale = flicking.horizontal ? [-1, 0] : [0, -1];
6931
+ };
6932
+
6910
6933
  __proto._resetInternalValues = function () {
6911
6934
  this._flicking = null;
6912
6935
  this._axes = null;
@@ -7253,6 +7276,16 @@ version: 4.10.1
7253
7276
  }));
7254
7277
  }
7255
7278
  };
7279
+ /**
7280
+ * @internal
7281
+ */
7282
+
7283
+
7284
+ __proto.copy = function (control) {
7285
+ this._flicking = control._flicking;
7286
+ this._activePanel = control._activePanel;
7287
+ this._controller = control._controller;
7288
+ };
7256
7289
 
7257
7290
  __proto._triggerIndexChangeEvent = function (panel, position, axesEvent) {
7258
7291
  var _a;
@@ -9100,13 +9133,9 @@ version: 4.10.1
9100
9133
  this._updateMode();
9101
9134
 
9102
9135
  this._range = this._mode.getRange();
9103
-
9104
- if (this._circularEnabled) {
9105
- panels.forEach(function (panel) {
9106
- return panel.updateCircularToggleDirection();
9107
- });
9108
- }
9109
-
9136
+ panels.forEach(function (panel) {
9137
+ return panel.updateCircularToggleDirection();
9138
+ });
9110
9139
  return this;
9111
9140
  };
9112
9141
  /**
@@ -9343,6 +9372,7 @@ version: 4.10.1
9343
9372
  this._circularEnabled = canSetCircularMode;
9344
9373
  } else {
9345
9374
  this._mode = flicking.bound ? new BoundCameraMode(flicking) : new LinearCameraMode(flicking);
9375
+ this._circularEnabled = false;
9346
9376
  }
9347
9377
  };
9348
9378
 
@@ -11401,6 +11431,8 @@ version: 4.10.1
11401
11431
  // Options Setter
11402
11432
  set: function (val) {
11403
11433
  this._align = val;
11434
+
11435
+ this._updateAlignPos();
11404
11436
  },
11405
11437
  enumerable: false,
11406
11438
  configurable: true
@@ -11695,6 +11727,7 @@ version: 4.10.1
11695
11727
 
11696
11728
  if (!flicking.circularEnabled) {
11697
11729
  this._toggleDirection = DIRECTION.NONE;
11730
+ this._togglePosition = 0;
11698
11731
  this._toggled = false;
11699
11732
  return this;
11700
11733
  }
@@ -12528,6 +12561,7 @@ version: 4.10.1
12528
12561
  this._align = val;
12529
12562
  this._renderer.align = val;
12530
12563
  this._camera.align = val;
12564
+ void this.resize();
12531
12565
  },
12532
12566
  enumerable: false,
12533
12567
  configurable: true
@@ -12560,6 +12594,10 @@ version: 4.10.1
12560
12594
  },
12561
12595
  set: function (val) {
12562
12596
  this._horizontal = val;
12597
+
12598
+ this._control.controller.updateDirection();
12599
+
12600
+ void this.resize();
12563
12601
  },
12564
12602
  enumerable: false,
12565
12603
  configurable: true
@@ -12576,6 +12614,7 @@ version: 4.10.1
12576
12614
  },
12577
12615
  set: function (val) {
12578
12616
  this._circular = val;
12617
+ void this.resize();
12579
12618
  },
12580
12619
  enumerable: false,
12581
12620
  configurable: true
@@ -12612,6 +12651,7 @@ version: 4.10.1
12612
12651
  },
12613
12652
  set: function (val) {
12614
12653
  this._bound = val;
12654
+ void this.resize();
12615
12655
  },
12616
12656
  enumerable: false,
12617
12657
  configurable: true
@@ -12628,6 +12668,7 @@ version: 4.10.1
12628
12668
  },
12629
12669
  set: function (val) {
12630
12670
  this._adaptive = val;
12671
+ void this.resize();
12631
12672
  },
12632
12673
  enumerable: false,
12633
12674
  configurable: true
@@ -12644,6 +12685,7 @@ version: 4.10.1
12644
12685
  },
12645
12686
  set: function (val) {
12646
12687
  this._panelsPerView = val;
12688
+ void this.resize();
12647
12689
  },
12648
12690
  enumerable: false,
12649
12691
  configurable: true
@@ -12662,6 +12704,7 @@ version: 4.10.1
12662
12704
  },
12663
12705
  set: function (val) {
12664
12706
  this._noPanelStyleOverride = val;
12707
+ void this.resize();
12665
12708
  },
12666
12709
  enumerable: false,
12667
12710
  configurable: true
@@ -12680,6 +12723,10 @@ version: 4.10.1
12680
12723
  },
12681
12724
  set: function (val) {
12682
12725
  this._resizeOnContentsReady = val;
12726
+
12727
+ if (val) {
12728
+ this._renderer.checkPanelContentsReady(this._renderer.panels);
12729
+ }
12683
12730
  },
12684
12731
  enumerable: false,
12685
12732
  configurable: true
@@ -12698,6 +12745,11 @@ version: 4.10.1
12698
12745
  },
12699
12746
  set: function (val) {
12700
12747
  this._nested = val;
12748
+ var axes = this._control.controller.axes;
12749
+
12750
+ if (axes) {
12751
+ axes.options.nested = val;
12752
+ }
12701
12753
  },
12702
12754
  enumerable: false,
12703
12755
  configurable: true
@@ -12752,6 +12804,11 @@ version: 4.10.1
12752
12804
  // ANIMATION
12753
12805
  set: function (val) {
12754
12806
  this._deceleration = val;
12807
+ var axes = this._control.controller.axes;
12808
+
12809
+ if (axes) {
12810
+ axes.options.deceleration = val;
12811
+ }
12755
12812
  },
12756
12813
  enumerable: false,
12757
12814
  configurable: true
@@ -12769,6 +12826,11 @@ version: 4.10.1
12769
12826
  },
12770
12827
  set: function (val) {
12771
12828
  this._easing = val;
12829
+ var axes = this._control.controller.axes;
12830
+
12831
+ if (axes) {
12832
+ axes.options.easing = val;
12833
+ }
12772
12834
  },
12773
12835
  enumerable: false,
12774
12836
  configurable: true
@@ -12806,6 +12868,11 @@ version: 4.10.1
12806
12868
  // INPUT
12807
12869
  set: function (val) {
12808
12870
  this._inputType = val;
12871
+ var panInput = this._control.controller.panInput;
12872
+
12873
+ if (panInput) {
12874
+ panInput.options.inputType = val;
12875
+ }
12809
12876
  },
12810
12877
  enumerable: false,
12811
12878
  configurable: true
@@ -12846,6 +12913,18 @@ version: 4.10.1
12846
12913
  },
12847
12914
  set: function (val) {
12848
12915
  this._moveType = val;
12916
+ var prevControl = this._control;
12917
+
12918
+ var newControl = this._createControl();
12919
+
12920
+ var activePanel = prevControl.activePanel;
12921
+ newControl.copy(prevControl);
12922
+ var prevProgressInPanel = activePanel ? this._camera.getProgressInPanel(activePanel) : 0;
12923
+ this._control = newControl;
12924
+
12925
+ this._control.updatePosition(prevProgressInPanel);
12926
+
12927
+ this._control.updateInput();
12849
12928
  },
12850
12929
  enumerable: false,
12851
12930
  configurable: true
@@ -12878,6 +12957,11 @@ version: 4.10.1
12878
12957
  },
12879
12958
  set: function (val) {
12880
12959
  this._interruptable = val;
12960
+ var axes = this._control.controller.axes;
12961
+
12962
+ if (axes) {
12963
+ axes.options.interruptable = val;
12964
+ }
12881
12965
  },
12882
12966
  enumerable: false,
12883
12967
  configurable: true
@@ -12919,6 +13003,8 @@ version: 4.10.1
12919
13003
  },
12920
13004
  set: function (val) {
12921
13005
  this._bounce = val;
13006
+
13007
+ this._control.updateInput();
12922
13008
  },
12923
13009
  enumerable: false,
12924
13010
  configurable: true
@@ -12935,6 +13021,11 @@ version: 4.10.1
12935
13021
  },
12936
13022
  set: function (val) {
12937
13023
  this._iOSEdgeSwipeThreshold = val;
13024
+ var panInput = this._control.controller.panInput;
13025
+
13026
+ if (panInput) {
13027
+ panInput.options.iOSEdgeSwipeThreshold = val;
13028
+ }
12938
13029
  },
12939
13030
  enumerable: false,
12940
13031
  configurable: true
@@ -13014,6 +13105,7 @@ version: 4.10.1
13014
13105
  // PERFORMANCE
13015
13106
  set: function (val) {
13016
13107
  this._renderOnlyVisible = val;
13108
+ void this._renderer.render();
13017
13109
  },
13018
13110
  enumerable: false,
13019
13111
  configurable: true
@@ -14023,7 +14115,7 @@ version: 4.10.1
14023
14115
  */
14024
14116
 
14025
14117
 
14026
- Flicking.VERSION = "4.10.1";
14118
+ Flicking.VERSION = "4.10.2";
14027
14119
  return Flicking;
14028
14120
  }(Component);
14029
14121