@egjs/flicking 3.8.3 → 3.9.2-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 +2 -1
- package/declaration/components/AutoResizer.d.ts +12 -0
- package/declaration/types.d.ts +1 -0
- package/dist/flicking.esm.js +99 -23
- package/dist/flicking.esm.js.map +1 -1
- package/dist/flicking.js +99 -23
- 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 +99 -23
- 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/doc/eg.Flicking.html +102 -39
- package/doc/global.html +1 -1
- package/doc/index.html +1 -1
- package/doc/node_modules_@egjs_component_src_Component.ts.html +1 -1
- package/doc/src_Flicking.ts.html +13 -17
- package/doc/src_types.ts.html +2 -1
- package/docs/build/release/3.8.4/dist/flicking.esm.js +5055 -0
- package/docs/build/release/3.8.4/dist/flicking.esm.js.map +1 -0
- package/docs/build/release/3.8.4/dist/flicking.js +5062 -0
- package/docs/build/release/3.8.4/dist/flicking.js.map +1 -0
- package/docs/build/release/3.8.4/dist/flicking.min.js +10 -0
- package/docs/build/release/3.8.4/dist/flicking.min.js.map +1 -0
- package/docs/build/release/3.8.4/dist/flicking.pkgd.js +11391 -0
- package/docs/build/release/3.8.4/dist/flicking.pkgd.js.map +1 -0
- package/docs/build/release/3.8.4/dist/flicking.pkgd.min.js +10 -0
- package/docs/build/release/3.8.4/dist/flicking.pkgd.min.js.map +1 -0
- package/docs/build/release/3.9.0/dist/flicking.esm.js +5124 -0
- package/docs/build/release/3.9.0/dist/flicking.esm.js.map +1 -0
- package/docs/build/release/3.9.0/dist/flicking.js +5131 -0
- package/docs/build/release/3.9.0/dist/flicking.js.map +1 -0
- package/docs/build/release/3.9.0/dist/flicking.min.js +10 -0
- package/docs/build/release/3.9.0/dist/flicking.min.js.map +1 -0
- package/docs/build/release/3.9.0/dist/flicking.pkgd.js +11460 -0
- package/docs/build/release/3.9.0/dist/flicking.pkgd.js.map +1 -0
- package/docs/build/release/3.9.0/dist/flicking.pkgd.min.js +10 -0
- package/docs/build/release/3.9.0/dist/flicking.pkgd.min.js.map +1 -0
- package/docs/build/release/3.9.1/dist/flicking.esm.js +5124 -0
- package/docs/build/release/3.9.1/dist/flicking.esm.js.map +1 -0
- package/docs/build/release/3.9.1/dist/flicking.js +5131 -0
- package/docs/build/release/3.9.1/dist/flicking.js.map +1 -0
- package/docs/build/release/3.9.1/dist/flicking.min.js +10 -0
- package/docs/build/release/3.9.1/dist/flicking.min.js.map +1 -0
- package/docs/build/release/3.9.1/dist/flicking.pkgd.js +11460 -0
- package/docs/build/release/3.9.1/dist/flicking.pkgd.js.map +1 -0
- package/docs/build/release/3.9.1/dist/flicking.pkgd.min.js +10 -0
- package/docs/build/release/3.9.1/dist/flicking.pkgd.min.js.map +1 -0
- package/package.json +8 -12
- package/rollup.config.development.js +26 -0
- package/src/Flicking.ts +12 -16
- package/src/components/AutoResizer.ts +80 -0
- package/src/components/Viewport.ts +14 -6
- package/src/consts.ts +1 -0
- package/src/types.ts +1 -0
- package/src/utils.ts +1 -1
- package/tsconfig.test.json +1 -0
package/doc/eg.Flicking.html
CHANGED
|
@@ -1455,6 +1455,43 @@
|
|
|
1455
1455
|
|
|
1456
1456
|
</li>
|
|
1457
1457
|
|
|
1458
|
+
<li>
|
|
1459
|
+
<!-- parameter name -->
|
|
1460
|
+
<div>
|
|
1461
|
+
<strong>useResizeObserver</strong>
|
|
1462
|
+
|
|
1463
|
+
(default: <code>true</code>)
|
|
1464
|
+
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
<span class="optional">optional</span>
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
</div>
|
|
1475
|
+
<!-- parameter type -->
|
|
1476
|
+
|
|
1477
|
+
<div>Type:
|
|
1478
|
+
<span class="param-type">boolean</span>
|
|
1479
|
+
|
|
1480
|
+
</div>
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
<!-- Description -->
|
|
1484
|
+
<div>
|
|
1485
|
+
|
|
1486
|
+
<div class="description en"><p>Whether to listen <a href="https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver">ResizeObserver</a>'s event instead of Window's <a href="https://developer.mozilla.org/ko/docs/Web/API/Window/resize_event">resize</a> event when using the <code>autoResize</code> option</p></div>
|
|
1487
|
+
<div class="description ko"><p>autoResize 옵션 사용시 <a href="https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver">ResizeObserver</a>의 이벤트를 Window객체의 <a href="https://developer.mozilla.org/ko/docs/Web/API/Window/resize_event">resize</a> 이벤트 대신 수신할지 여부를 설정합니다</p></div>
|
|
1488
|
+
|
|
1489
|
+
</div>
|
|
1490
|
+
|
|
1491
|
+
<!-- Sub parameters -->
|
|
1492
|
+
|
|
1493
|
+
</li>
|
|
1494
|
+
|
|
1458
1495
|
<li>
|
|
1459
1496
|
<!-- parameter name -->
|
|
1460
1497
|
<div>
|
|
@@ -2213,7 +2250,7 @@ eg.Flicking.DIRECTION.NEXT; // "NEXT"</p></code></pre>
|
|
|
2213
2250
|
|
|
2214
2251
|
|
|
2215
2252
|
<div class="tag-source">
|
|
2216
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
2253
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line478">line 478</a>
|
|
2217
2254
|
</div>
|
|
2218
2255
|
|
|
2219
2256
|
</div>
|
|
@@ -2364,7 +2401,7 @@ eg.Flicking.DIRECTION.NEXT; // "NEXT"</p></code></pre>
|
|
|
2364
2401
|
|
|
2365
2402
|
|
|
2366
2403
|
<div class="tag-source">
|
|
2367
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
2404
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line595">line 595</a>
|
|
2368
2405
|
</div>
|
|
2369
2406
|
|
|
2370
2407
|
</div>
|
|
@@ -2529,7 +2566,7 @@ flicking.append("<div>Panel 1</div><div>Panel 2</div&g
|
|
|
2529
2566
|
|
|
2530
2567
|
|
|
2531
2568
|
<div class="tag-source">
|
|
2532
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
2569
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line502">line 502</a>
|
|
2533
2570
|
</div>
|
|
2534
2571
|
|
|
2535
2572
|
</div>
|
|
@@ -2693,7 +2730,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
2693
2730
|
|
|
2694
2731
|
|
|
2695
2732
|
<div class="tag-source">
|
|
2696
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
2733
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line432">line 432</a>
|
|
2697
2734
|
</div>
|
|
2698
2735
|
|
|
2699
2736
|
</div>
|
|
@@ -2810,7 +2847,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
2810
2847
|
|
|
2811
2848
|
|
|
2812
2849
|
<div class="tag-source">
|
|
2813
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
2850
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line421">line 421</a>
|
|
2814
2851
|
</div>
|
|
2815
2852
|
|
|
2816
2853
|
</div>
|
|
@@ -2927,7 +2964,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
2927
2964
|
|
|
2928
2965
|
|
|
2929
2966
|
<div class="tag-source">
|
|
2930
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
2967
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line346">line 346</a>
|
|
2931
2968
|
</div>
|
|
2932
2969
|
|
|
2933
2970
|
</div>
|
|
@@ -3085,7 +3122,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
3085
3122
|
|
|
3086
3123
|
|
|
3087
3124
|
<div class="tag-source">
|
|
3088
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
3125
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line380">line 380</a>
|
|
3089
3126
|
</div>
|
|
3090
3127
|
|
|
3091
3128
|
</div>
|
|
@@ -3202,7 +3239,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
3202
3239
|
|
|
3203
3240
|
|
|
3204
3241
|
<div class="tag-source">
|
|
3205
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
3242
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line319">line 319</a>
|
|
3206
3243
|
</div>
|
|
3207
3244
|
|
|
3208
3245
|
</div>
|
|
@@ -3319,7 +3356,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
3319
3356
|
|
|
3320
3357
|
|
|
3321
3358
|
<div class="tag-source">
|
|
3322
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
3359
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line301">line 301</a>
|
|
3323
3360
|
</div>
|
|
3324
3361
|
|
|
3325
3362
|
</div>
|
|
@@ -3436,7 +3473,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
3436
3473
|
|
|
3437
3474
|
|
|
3438
3475
|
<div class="tag-source">
|
|
3439
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
3476
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line292">line 292</a>
|
|
3440
3477
|
</div>
|
|
3441
3478
|
|
|
3442
3479
|
</div>
|
|
@@ -3553,7 +3590,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
3553
3590
|
|
|
3554
3591
|
|
|
3555
3592
|
<div class="tag-source">
|
|
3556
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
3593
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line390">line 390</a>
|
|
3557
3594
|
</div>
|
|
3558
3595
|
|
|
3559
3596
|
</div>
|
|
@@ -3680,7 +3717,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
3680
3717
|
|
|
3681
3718
|
|
|
3682
3719
|
<div class="tag-source">
|
|
3683
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
3720
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line332">line 332</a>
|
|
3684
3721
|
</div>
|
|
3685
3722
|
|
|
3686
3723
|
</div>
|
|
@@ -3828,7 +3865,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
3828
3865
|
|
|
3829
3866
|
|
|
3830
3867
|
<div class="tag-source">
|
|
3831
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
3868
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line371">line 371</a>
|
|
3832
3869
|
</div>
|
|
3833
3870
|
|
|
3834
3871
|
</div>
|
|
@@ -3945,7 +3982,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
3945
3982
|
|
|
3946
3983
|
|
|
3947
3984
|
<div class="tag-source">
|
|
3948
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
3985
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line310">line 310</a>
|
|
3949
3986
|
</div>
|
|
3950
3987
|
|
|
3951
3988
|
</div>
|
|
@@ -4062,7 +4099,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
4062
4099
|
|
|
4063
4100
|
|
|
4064
4101
|
<div class="tag-source">
|
|
4065
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
4102
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line443">line 443</a>
|
|
4066
4103
|
</div>
|
|
4067
4104
|
|
|
4068
4105
|
</div>
|
|
@@ -4179,7 +4216,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
4179
4216
|
|
|
4180
4217
|
|
|
4181
4218
|
<div class="tag-source">
|
|
4182
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
4219
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line362">line 362</a>
|
|
4183
4220
|
</div>
|
|
4184
4221
|
|
|
4185
4222
|
</div>
|
|
@@ -4462,7 +4499,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
4462
4499
|
|
|
4463
4500
|
|
|
4464
4501
|
<div class="tag-source">
|
|
4465
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
4502
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line412">line 412</a>
|
|
4466
4503
|
</div>
|
|
4467
4504
|
|
|
4468
4505
|
</div>
|
|
@@ -4579,7 +4616,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
4579
4616
|
|
|
4580
4617
|
|
|
4581
4618
|
<div class="tag-source">
|
|
4582
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
4619
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line227">line 227</a>
|
|
4583
4620
|
</div>
|
|
4584
4621
|
|
|
4585
4622
|
</div>
|
|
@@ -4770,7 +4807,7 @@ console.log(flick.moveTo); // null</p></code></pre>
|
|
|
4770
4807
|
|
|
4771
4808
|
|
|
4772
4809
|
<div class="tag-source">
|
|
4773
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
4810
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line206">line 206</a>
|
|
4774
4811
|
</div>
|
|
4775
4812
|
|
|
4776
4813
|
</div>
|
|
@@ -5583,7 +5620,7 @@ some.trigger("hi");
|
|
|
5583
5620
|
|
|
5584
5621
|
|
|
5585
5622
|
<div class="tag-source">
|
|
5586
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
5623
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line569">line 569</a>
|
|
5587
5624
|
</div>
|
|
5588
5625
|
|
|
5589
5626
|
</div>
|
|
@@ -5747,7 +5784,7 @@ flicking.prepend("<div>Panel</div>"); // Prepended at inde
|
|
|
5747
5784
|
|
|
5748
5785
|
|
|
5749
5786
|
<div class="tag-source">
|
|
5750
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
5787
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line186">line 186</a>
|
|
5751
5788
|
</div>
|
|
5752
5789
|
|
|
5753
5790
|
</div>
|
|
@@ -5907,7 +5944,7 @@ flicking.prepend("<div>Panel</div>"); // Prepended at inde
|
|
|
5907
5944
|
|
|
5908
5945
|
|
|
5909
5946
|
<div class="tag-source">
|
|
5910
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
5947
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line644">line 644</a>
|
|
5911
5948
|
</div>
|
|
5912
5949
|
|
|
5913
5950
|
</div>
|
|
@@ -6100,7 +6137,7 @@ flicking.prepend("<div>Panel</div>"); // Prepended at inde
|
|
|
6100
6137
|
|
|
6101
6138
|
|
|
6102
6139
|
<div class="tag-source">
|
|
6103
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
6140
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line489">line 489</a>
|
|
6104
6141
|
</div>
|
|
6105
6142
|
|
|
6106
6143
|
</div>
|
|
@@ -6251,7 +6288,7 @@ flicking.prepend("<div>Panel</div>"); // Prepended at inde
|
|
|
6251
6288
|
|
|
6252
6289
|
|
|
6253
6290
|
<div class="tag-source">
|
|
6254
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
6291
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line629">line 629</a>
|
|
6255
6292
|
</div>
|
|
6256
6293
|
|
|
6257
6294
|
</div>
|
|
@@ -6451,7 +6488,7 @@ flicking.replace(3, ["<div>Panel</div>", "<div>
|
|
|
6451
6488
|
|
|
6452
6489
|
|
|
6453
6490
|
<div class="tag-source">
|
|
6454
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
6491
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line521">line 521</a>
|
|
6455
6492
|
</div>
|
|
6456
6493
|
|
|
6457
6494
|
</div>
|
|
@@ -6568,7 +6605,7 @@ flicking.replace(3, ["<div>Panel</div>", "<div>
|
|
|
6568
6605
|
|
|
6569
6606
|
|
|
6570
6607
|
<div class="tag-source">
|
|
6571
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
6608
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line401">line 401</a>
|
|
6572
6609
|
</div>
|
|
6573
6610
|
|
|
6574
6611
|
</div>
|
|
@@ -6729,7 +6766,7 @@ flicking.replace(3, ["<div>Panel</div>", "<div>
|
|
|
6729
6766
|
|
|
6730
6767
|
|
|
6731
6768
|
<div class="tag-source">
|
|
6732
|
-
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#
|
|
6769
|
+
<a href="src_Flicking.ts.html">Flicking.ts</a>, <a href="src_Flicking.ts.html#line468">line 468</a>
|
|
6733
6770
|
</div>
|
|
6734
6771
|
|
|
6735
6772
|
</div>
|
|
@@ -8990,6 +9027,32 @@ some.on("hi", (e) => {
|
|
|
8990
9027
|
|
|
8991
9028
|
|
|
8992
9029
|
|
|
9030
|
+
<td class="description last">
|
|
9031
|
+
|
|
9032
|
+
|
|
9033
|
+
</td>
|
|
9034
|
+
</tr>
|
|
9035
|
+
|
|
9036
|
+
|
|
9037
|
+
|
|
9038
|
+
<tr>
|
|
9039
|
+
|
|
9040
|
+
<td class="name"><code>useResizeObserver</code></td>
|
|
9041
|
+
|
|
9042
|
+
|
|
9043
|
+
<td class="type">
|
|
9044
|
+
|
|
9045
|
+
|
|
9046
|
+
<span class="param-type">boolean</span>
|
|
9047
|
+
|
|
9048
|
+
|
|
9049
|
+
|
|
9050
|
+
</td>
|
|
9051
|
+
|
|
9052
|
+
|
|
9053
|
+
|
|
9054
|
+
|
|
9055
|
+
|
|
8993
9056
|
<td class="description last">
|
|
8994
9057
|
|
|
8995
9058
|
|
|
@@ -11607,7 +11670,7 @@ panel.update(el => {
|
|
|
11607
11670
|
|
|
11608
11671
|
|
|
11609
11672
|
<div class="tag-source">
|
|
11610
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
11673
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line261">line 261</a>
|
|
11611
11674
|
</div>
|
|
11612
11675
|
|
|
11613
11676
|
</div>
|
|
@@ -11696,7 +11759,7 @@ panel.update(el => {
|
|
|
11696
11759
|
|
|
11697
11760
|
|
|
11698
11761
|
<div class="tag-source">
|
|
11699
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
11762
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line296">line 296</a>
|
|
11700
11763
|
</div>
|
|
11701
11764
|
|
|
11702
11765
|
</div>
|
|
@@ -11785,7 +11848,7 @@ panel.update(el => {
|
|
|
11785
11848
|
|
|
11786
11849
|
|
|
11787
11850
|
<div class="tag-source">
|
|
11788
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
11851
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line233">line 233</a>
|
|
11789
11852
|
</div>
|
|
11790
11853
|
|
|
11791
11854
|
</div>
|
|
@@ -11874,7 +11937,7 @@ panel.update(el => {
|
|
|
11874
11937
|
|
|
11875
11938
|
|
|
11876
11939
|
<div class="tag-source">
|
|
11877
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
11940
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line226">line 226</a>
|
|
11878
11941
|
</div>
|
|
11879
11942
|
|
|
11880
11943
|
</div>
|
|
@@ -11963,7 +12026,7 @@ panel.update(el => {
|
|
|
11963
12026
|
|
|
11964
12027
|
|
|
11965
12028
|
<div class="tag-source">
|
|
11966
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
12029
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line247">line 247</a>
|
|
11967
12030
|
</div>
|
|
11968
12031
|
|
|
11969
12032
|
</div>
|
|
@@ -12052,7 +12115,7 @@ panel.update(el => {
|
|
|
12052
12115
|
|
|
12053
12116
|
|
|
12054
12117
|
<div class="tag-source">
|
|
12055
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
12118
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line254">line 254</a>
|
|
12056
12119
|
</div>
|
|
12057
12120
|
|
|
12058
12121
|
</div>
|
|
@@ -12141,7 +12204,7 @@ panel.update(el => {
|
|
|
12141
12204
|
|
|
12142
12205
|
|
|
12143
12206
|
<div class="tag-source">
|
|
12144
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
12207
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line240">line 240</a>
|
|
12145
12208
|
</div>
|
|
12146
12209
|
|
|
12147
12210
|
</div>
|
|
@@ -12230,7 +12293,7 @@ panel.update(el => {
|
|
|
12230
12293
|
|
|
12231
12294
|
|
|
12232
12295
|
<div class="tag-source">
|
|
12233
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
12296
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line282">line 282</a>
|
|
12234
12297
|
</div>
|
|
12235
12298
|
|
|
12236
12299
|
</div>
|
|
@@ -12319,7 +12382,7 @@ panel.update(el => {
|
|
|
12319
12382
|
|
|
12320
12383
|
|
|
12321
12384
|
<div class="tag-source">
|
|
12322
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
12385
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line268">line 268</a>
|
|
12323
12386
|
</div>
|
|
12324
12387
|
|
|
12325
12388
|
</div>
|
|
@@ -12408,7 +12471,7 @@ panel.update(el => {
|
|
|
12408
12471
|
|
|
12409
12472
|
|
|
12410
12473
|
<div class="tag-source">
|
|
12411
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
12474
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line275">line 275</a>
|
|
12412
12475
|
</div>
|
|
12413
12476
|
|
|
12414
12477
|
</div>
|
|
@@ -12497,7 +12560,7 @@ panel.update(el => {
|
|
|
12497
12560
|
|
|
12498
12561
|
|
|
12499
12562
|
<div class="tag-source">
|
|
12500
|
-
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#
|
|
12563
|
+
<a href="src_types.ts.html">types.ts</a>, <a href="src_types.ts.html#line289">line 289</a>
|
|
12501
12564
|
</div>
|
|
12502
12565
|
|
|
12503
12566
|
</div>
|
|
@@ -12596,7 +12659,7 @@ panel.update(el => {
|
|
|
12596
12659
|
|
|
12597
12660
|
|
|
12598
12661
|
<footer>
|
|
12599
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri
|
|
12662
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri Feb 11 2022 19:50:08 GMT+0900 (Korean Standard Time)
|
|
12600
12663
|
</footer>
|
|
12601
12664
|
</div>
|
|
12602
12665
|
</div>
|
package/doc/global.html
CHANGED
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
|
|
406
406
|
|
|
407
407
|
<footer>
|
|
408
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri
|
|
408
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri Feb 11 2022 19:50:08 GMT+0900 (Korean Standard Time)
|
|
409
409
|
</footer>
|
|
410
410
|
</div>
|
|
411
411
|
</div>
|
package/doc/index.html
CHANGED
|
@@ -491,7 +491,7 @@ THE SOFTWARE.
|
|
|
491
491
|
|
|
492
492
|
|
|
493
493
|
<footer>
|
|
494
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri
|
|
494
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri Feb 11 2022 19:50:08 GMT+0900 (Korean Standard Time)
|
|
495
495
|
</footer>
|
|
496
496
|
</div>
|
|
497
497
|
</div>
|
|
@@ -615,7 +615,7 @@ export default Component;
|
|
|
615
615
|
|
|
616
616
|
|
|
617
617
|
<footer>
|
|
618
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri
|
|
618
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri Feb 11 2022 19:50:08 GMT+0900 (Korean Standard Time)
|
|
619
619
|
</footer>
|
|
620
620
|
</div>
|
|
621
621
|
</div>
|
package/doc/src_Flicking.ts.html
CHANGED
|
@@ -249,8 +249,10 @@
|
|
|
249
249
|
|
|
250
250
|
import Component from "@egjs/component";
|
|
251
251
|
import ImReady from "@egjs/imready";
|
|
252
|
+
import { DiffResult } from "@egjs/list-differ";
|
|
252
253
|
import Viewport from "./components/Viewport";
|
|
253
254
|
import Panel from "./components/Panel";
|
|
255
|
+
import AutoResizer from "./components/AutoResizer";
|
|
254
256
|
|
|
255
257
|
import { merge, getProgress, parseElement, isString, counter, findIndex } from "./utils";
|
|
256
258
|
import { DEFAULT_OPTIONS, EVENTS, DIRECTION, AXES_EVENTS, STATE_TYPE, DEFAULT_MOVE_TYPE_OPTIONS } from "./consts";
|
|
@@ -276,8 +278,6 @@ import {
|
|
|
276
278
|
MoveTypeStringOption,
|
|
277
279
|
ValueOf,
|
|
278
280
|
} from "./types";
|
|
279
|
-
// import { sendEvent } from "./ga/ga";
|
|
280
|
-
import { DiffResult } from "@egjs/list-differ";
|
|
281
281
|
|
|
282
282
|
/**
|
|
283
283
|
* @memberof eg
|
|
@@ -342,6 +342,7 @@ class Flicking extends Component<{
|
|
|
342
342
|
|
|
343
343
|
private wrapper: HTMLElement;
|
|
344
344
|
private viewport: Viewport;
|
|
345
|
+
private autoResizer: AutoResizer;
|
|
345
346
|
private contentsReadyChecker: ImReady | null = null;
|
|
346
347
|
|
|
347
348
|
private eventContext: FlickingContext;
|
|
@@ -379,6 +380,7 @@ class Flicking extends Component<{
|
|
|
379
380
|
* @param {boolean} [options.isConstantSize=false] Whether all panels have a constant size that won't be changed after resize. Enabling this option can increase performance while recalculating panel size.<ko>모든 패널의 크기가 불변인지의 여부. 이 옵션을 'true'로 설정하면 패널 크기 재설정시에 성능을 높일 수 있다.</ko>
|
|
380
381
|
* @param {boolean} [options.renderExternal=false] Whether to use external rendering. It will delegate DOM manipulation and can synchronize the rendered state by calling `sync()` method. You can use this option to use in frameworks like React, Vue, Angular, which has its states and rendering methods.<ko>외부 렌더링을 사용할 지의 여부. 이 옵션을 사용시 렌더링을 외부에 위임할 수 있고, `sync()`를 호출하여 그 상태를 동기화할 수 있다. 이 옵션을 사용하여, React, Vue, Angular 등 자체적인 상태와 렌더링 방법을 갖는 프레임워크에 대응할 수 있다.</ko>
|
|
381
382
|
* @param {boolean} [options.resizeOnContentsReady=false] Whether to resize the Flicking after the image/video elements inside viewport are ready.<br/>Use this property to prevent wrong Flicking layout caused by dynamic image / video sizes.<ko>Flicking 내부의 이미지 / 비디오 엘리먼트들이 전부 로드되었을 때 Flicking의 크기를 재계산하기 위한 옵션.<br/>이미지 / 비디오 크기가 고정 크기가 아닐 경우 사용하여 레이아웃이 잘못되는 것을 방지할 수 있다.</ko>
|
|
383
|
+
* @param {boolean} [options.useResizeObserver=true] Whether to listen {@link https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver ResizeObserver}'s event instead of Window's {@link https://developer.mozilla.org/ko/docs/Web/API/Window/resize_event resize} event when using the `autoResize` option<ko>autoResize 옵션 사용시 {@link https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver ResizeObserver}의 이벤트를 Window객체의 {@link https://developer.mozilla.org/ko/docs/Web/API/Window/resize_event resize} 이벤트 대신 수신할지 여부를 설정합니다</ko>
|
|
382
384
|
* @param {boolean} [options.collectStatistics=true] Whether to collect statistics on how you are using `Flicking`. These statistical data do not contain any personal information and are used only as a basis for the development of a user-friendly product.<ko>어떻게 `Flicking`을 사용하고 있는지에 대한 통계 수집 여부를 나타낸다. 이 통계자료는 개인정보를 포함하고 있지 않으며 오직 사용자 친화적인 제품으로 발전시키기 위한 근거자료로서 활용한다.</ko>
|
|
383
385
|
*/
|
|
384
386
|
constructor(
|
|
@@ -413,16 +415,10 @@ class Flicking extends Component<{
|
|
|
413
415
|
|
|
414
416
|
// Make viewport instance with panel container element
|
|
415
417
|
this.viewport = new Viewport(this, this.options, this.triggerEvent);
|
|
418
|
+
this.autoResizer = new AutoResizer(this);
|
|
419
|
+
|
|
416
420
|
this.listenInput();
|
|
417
421
|
this.listenResize();
|
|
418
|
-
|
|
419
|
-
// if (this.options.collectStatistics) {
|
|
420
|
-
// sendEvent(
|
|
421
|
-
// "usage",
|
|
422
|
-
// "options",
|
|
423
|
-
// options,
|
|
424
|
-
// );
|
|
425
|
-
// }
|
|
426
422
|
}
|
|
427
423
|
|
|
428
424
|
/**
|
|
@@ -750,10 +746,7 @@ class Flicking extends Component<{
|
|
|
750
746
|
public destroy(option: Partial<DestroyOption> = {}): void {
|
|
751
747
|
this.off();
|
|
752
748
|
|
|
753
|
-
|
|
754
|
-
window.removeEventListener("resize", this.resize);
|
|
755
|
-
}
|
|
756
|
-
|
|
749
|
+
this.autoResizer.disable();
|
|
757
750
|
this.viewport.destroy(option);
|
|
758
751
|
this.contentsReadyChecker?.destroy();
|
|
759
752
|
|
|
@@ -1013,7 +1006,10 @@ class Flicking extends Component<{
|
|
|
1013
1006
|
}
|
|
1014
1007
|
panelManager.replacePanels(newPanels, newClones);
|
|
1015
1008
|
|
|
1016
|
-
|
|
1009
|
+
const currentPanelIndex = currentPanel?.getIndex() ?? -1;
|
|
1010
|
+
const currentPanelIsRemoved = findIndex(removed, index => index === currentPanelIndex) >= 0;
|
|
1011
|
+
|
|
1012
|
+
if ((!currentPanel || currentPanelIsRemoved) && newPanels.length > 0) {
|
|
1017
1013
|
viewport.setCurrentPanel(newPanels[0]);
|
|
1018
1014
|
} else if (newPanels.length <= 0) {
|
|
1019
1015
|
viewport.setCurrentPanel(undefined);
|
|
@@ -1113,7 +1109,7 @@ class Flicking extends Component<{
|
|
|
1113
1109
|
const options = this.options;
|
|
1114
1110
|
|
|
1115
1111
|
if (options.autoResize) {
|
|
1116
|
-
|
|
1112
|
+
this.autoResizer.enable();
|
|
1117
1113
|
}
|
|
1118
1114
|
|
|
1119
1115
|
if (options.resizeOnContentsReady) {
|
|
@@ -1253,7 +1249,7 @@ export default Flicking;
|
|
|
1253
1249
|
|
|
1254
1250
|
|
|
1255
1251
|
<footer>
|
|
1256
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri
|
|
1252
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri Feb 11 2022 19:50:08 GMT+0900 (Korean Standard Time)
|
|
1257
1253
|
</footer>
|
|
1258
1254
|
</div>
|
|
1259
1255
|
</div>
|
package/doc/src_types.ts.html
CHANGED
|
@@ -331,6 +331,7 @@ export interface FlickingOptions {
|
|
|
331
331
|
iOSEdgeSwipeThreshold: number;
|
|
332
332
|
resizeOnContentsReady: boolean;
|
|
333
333
|
collectStatistics: boolean;
|
|
334
|
+
useResizeObserver: boolean;
|
|
334
335
|
}
|
|
335
336
|
|
|
336
337
|
export type MoveTypeObjectOption = MoveTypeSnapOption | MoveTypeFreeScrollOption;
|
|
@@ -805,7 +806,7 @@ export type SyncResult = Pick<DiffResult<HTMLElement>, "added" | "changed"
|
|
|
805
806
|
|
|
806
807
|
|
|
807
808
|
<footer>
|
|
808
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri
|
|
809
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 0.3.10</a> on Fri Feb 11 2022 19:50:08 GMT+0900 (Korean Standard Time)
|
|
809
810
|
</footer>
|
|
810
811
|
</div>
|
|
811
812
|
</div>
|