@egjs/flicking 4.10.3 → 4.10.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.
Files changed (71) hide show
  1. package/CONTRIBUTING.md +5 -4
  2. package/declaration/Flicking.d.ts +236 -236
  3. package/declaration/camera/Camera.d.ts +82 -82
  4. package/declaration/camera/index.d.ts +4 -4
  5. package/declaration/camera/mode/BoundCameraMode.d.ts +13 -13
  6. package/declaration/camera/mode/CameraMode.d.ts +20 -20
  7. package/declaration/camera/mode/CircularCameraMode.d.ts +19 -19
  8. package/declaration/camera/mode/LinearCameraMode.d.ts +9 -9
  9. package/declaration/camera/mode/index.d.ts +6 -6
  10. package/declaration/cfc/getDefaultCameraTransform.d.ts +3 -3
  11. package/declaration/cfc/getRenderingPanels.d.ts +4 -4
  12. package/declaration/cfc/index.d.ts +5 -5
  13. package/declaration/cfc/sync.d.ts +4 -4
  14. package/declaration/cfc/withFlickingMethods.d.ts +2 -2
  15. package/declaration/const/axes.d.ts +8 -8
  16. package/declaration/const/error.d.ts +34 -34
  17. package/declaration/const/external.d.ts +44 -44
  18. package/declaration/control/AxesController.d.ts +44 -44
  19. package/declaration/control/Control.d.ts +44 -44
  20. package/declaration/control/FreeControl.d.ts +14 -14
  21. package/declaration/control/SnapControl.d.ts +16 -16
  22. package/declaration/control/StateMachine.d.ts +14 -14
  23. package/declaration/control/StrictControl.d.ts +20 -20
  24. package/declaration/control/index.d.ts +14 -14
  25. package/declaration/control/states/AnimatingState.d.ts +9 -9
  26. package/declaration/control/states/DisabledState.d.ts +9 -9
  27. package/declaration/control/states/DraggingState.d.ts +8 -8
  28. package/declaration/control/states/HoldingState.d.ts +10 -10
  29. package/declaration/control/states/IdleState.d.ts +9 -9
  30. package/declaration/control/states/State.d.ts +47 -47
  31. package/declaration/core/AnchorPoint.d.ts +15 -15
  32. package/declaration/core/AutoResizer.d.ts +16 -16
  33. package/declaration/core/FlickingError.d.ts +5 -5
  34. package/declaration/core/ResizeWatcher.d.ts +33 -33
  35. package/declaration/core/Viewport.d.ts +25 -25
  36. package/declaration/core/VirtualManager.d.ts +37 -37
  37. package/declaration/core/index.d.ts +6 -6
  38. package/declaration/core/panel/Panel.d.ts +89 -89
  39. package/declaration/core/panel/VirtualPanel.d.ts +19 -19
  40. package/declaration/core/panel/index.d.ts +5 -5
  41. package/declaration/core/panel/provider/ElementProvider.d.ts +8 -8
  42. package/declaration/core/panel/provider/VanillaElementProvider.d.ts +12 -12
  43. package/declaration/core/panel/provider/VirtualElementProvider.d.ts +15 -15
  44. package/declaration/core/panel/provider/index.d.ts +5 -5
  45. package/declaration/index.d.ts +13 -13
  46. package/declaration/index.umd.d.ts +2 -2
  47. package/declaration/renderer/ExternalRenderer.d.ts +7 -7
  48. package/declaration/renderer/Renderer.d.ts +58 -58
  49. package/declaration/renderer/VanillaRenderer.d.ts +10 -10
  50. package/declaration/renderer/index.d.ts +6 -6
  51. package/declaration/renderer/strategy/NormalRenderingStrategy.d.ts +23 -23
  52. package/declaration/renderer/strategy/RenderingStrategy.d.ts +15 -15
  53. package/declaration/renderer/strategy/VirtualRenderingStrategy.d.ts +17 -17
  54. package/declaration/renderer/strategy/index.d.ts +5 -5
  55. package/declaration/type/event.d.ts +88 -88
  56. package/declaration/type/external.d.ts +31 -31
  57. package/declaration/type/internal.d.ts +13 -13
  58. package/declaration/utils.d.ts +45 -45
  59. package/dist/flicking.esm.js +36 -5
  60. package/dist/flicking.esm.js.map +1 -1
  61. package/dist/flicking.js +36 -5
  62. package/dist/flicking.js.map +1 -1
  63. package/dist/flicking.min.js +2 -2
  64. package/dist/flicking.min.js.map +1 -1
  65. package/dist/flicking.pkgd.js +899 -836
  66. package/dist/flicking.pkgd.js.map +1 -1
  67. package/dist/flicking.pkgd.min.js +2 -2
  68. package/dist/flicking.pkgd.min.js.map +1 -1
  69. package/package.json +2 -2
  70. package/src/Flicking.ts +33 -2
  71. package/src/utils.ts +1 -1
@@ -1,88 +1,88 @@
1
- import { OnChange, OnFinish, OnHold, OnRelease } from "@egjs/axes";
2
- import { ComponentEvent } from "@egjs/component";
3
- import Flicking from "../Flicking";
4
- import Panel from "../core/panel/Panel";
5
- import { EVENTS, DIRECTION } from "../const/external";
6
- import { ValueOf } from "../type/internal";
7
- export declare type ReadyEvent<T extends Flicking = Flicking> = ComponentEvent<{}, typeof EVENTS["READY"], T>;
8
- export interface BeforeResizeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["BEFORE_RESIZE"], T> {
9
- width: number;
10
- height: number;
11
- element: HTMLElement;
12
- }
13
- export interface AfterResizeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["AFTER_RESIZE"], T> {
14
- width: number;
15
- height: number;
16
- prev: {
17
- width: number;
18
- height: number;
19
- };
20
- sizeChanged: boolean;
21
- element: HTMLElement;
22
- }
23
- export interface HoldStartEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["HOLD_START"], T> {
24
- axesEvent: OnHold;
25
- }
26
- export interface HoldEndEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["HOLD_END"], T> {
27
- axesEvent: OnRelease;
28
- }
29
- export interface MoveStartEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["MOVE_START"], T> {
30
- isTrusted: boolean;
31
- holding: boolean;
32
- direction: ValueOf<typeof DIRECTION>;
33
- axesEvent: OnChange;
34
- }
35
- export interface MoveEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["MOVE"], T> {
36
- isTrusted: boolean;
37
- holding: boolean;
38
- direction: ValueOf<typeof DIRECTION>;
39
- axesEvent: OnChange;
40
- }
41
- export interface MoveEndEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["MOVE_END"], T> {
42
- isTrusted: boolean;
43
- direction: ValueOf<typeof DIRECTION>;
44
- axesEvent: OnFinish;
45
- }
46
- export interface WillChangeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["WILL_CHANGE"], T> {
47
- index: number;
48
- panel: Panel;
49
- isTrusted: boolean;
50
- direction: ValueOf<typeof DIRECTION>;
51
- }
52
- export interface ChangedEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["CHANGED"], T> {
53
- index: number;
54
- panel: Panel;
55
- prevIndex: number;
56
- prevPanel: Panel | null;
57
- isTrusted: boolean;
58
- direction: ValueOf<typeof DIRECTION>;
59
- }
60
- export interface WillRestoreEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["WILL_RESTORE"], T> {
61
- index: number;
62
- panel: Panel;
63
- isTrusted: boolean;
64
- direction: ValueOf<typeof DIRECTION>;
65
- }
66
- export interface RestoredEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["RESTORED"], T> {
67
- isTrusted: boolean;
68
- }
69
- export interface SelectEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["SELECT"], T> {
70
- index: number;
71
- panel: Panel;
72
- direction: ValueOf<typeof DIRECTION> | null;
73
- }
74
- export interface NeedPanelEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["NEED_PANEL"], T> {
75
- direction: Exclude<ValueOf<typeof DIRECTION>, null>;
76
- }
77
- export interface VisibleChangeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["VISIBLE_CHANGE"], T> {
78
- added: Panel[];
79
- removed: Panel[];
80
- visiblePanels: Panel[];
81
- }
82
- export interface ReachEdgeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["REACH_EDGE"], T> {
83
- direction: ValueOf<typeof DIRECTION>;
84
- }
85
- export interface PanelChangeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["PANEL_CHANGE"], T> {
86
- added: Panel[];
87
- removed: Panel[];
88
- }
1
+ import { OnChange, OnFinish, OnHold, OnRelease } from "@egjs/axes";
2
+ import { ComponentEvent } from "@egjs/component";
3
+ import Flicking from "../Flicking";
4
+ import Panel from "../core/panel/Panel";
5
+ import { EVENTS, DIRECTION } from "../const/external";
6
+ import { ValueOf } from "../type/internal";
7
+ export declare type ReadyEvent<T extends Flicking = Flicking> = ComponentEvent<{}, typeof EVENTS["READY"], T>;
8
+ export interface BeforeResizeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["BEFORE_RESIZE"], T> {
9
+ width: number;
10
+ height: number;
11
+ element: HTMLElement;
12
+ }
13
+ export interface AfterResizeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["AFTER_RESIZE"], T> {
14
+ width: number;
15
+ height: number;
16
+ prev: {
17
+ width: number;
18
+ height: number;
19
+ };
20
+ sizeChanged: boolean;
21
+ element: HTMLElement;
22
+ }
23
+ export interface HoldStartEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["HOLD_START"], T> {
24
+ axesEvent: OnHold;
25
+ }
26
+ export interface HoldEndEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["HOLD_END"], T> {
27
+ axesEvent: OnRelease;
28
+ }
29
+ export interface MoveStartEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["MOVE_START"], T> {
30
+ isTrusted: boolean;
31
+ holding: boolean;
32
+ direction: ValueOf<typeof DIRECTION>;
33
+ axesEvent: OnChange;
34
+ }
35
+ export interface MoveEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["MOVE"], T> {
36
+ isTrusted: boolean;
37
+ holding: boolean;
38
+ direction: ValueOf<typeof DIRECTION>;
39
+ axesEvent: OnChange;
40
+ }
41
+ export interface MoveEndEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["MOVE_END"], T> {
42
+ isTrusted: boolean;
43
+ direction: ValueOf<typeof DIRECTION>;
44
+ axesEvent: OnFinish;
45
+ }
46
+ export interface WillChangeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["WILL_CHANGE"], T> {
47
+ index: number;
48
+ panel: Panel;
49
+ isTrusted: boolean;
50
+ direction: ValueOf<typeof DIRECTION>;
51
+ }
52
+ export interface ChangedEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["CHANGED"], T> {
53
+ index: number;
54
+ panel: Panel;
55
+ prevIndex: number;
56
+ prevPanel: Panel | null;
57
+ isTrusted: boolean;
58
+ direction: ValueOf<typeof DIRECTION>;
59
+ }
60
+ export interface WillRestoreEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["WILL_RESTORE"], T> {
61
+ index: number;
62
+ panel: Panel;
63
+ isTrusted: boolean;
64
+ direction: ValueOf<typeof DIRECTION>;
65
+ }
66
+ export interface RestoredEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["RESTORED"], T> {
67
+ isTrusted: boolean;
68
+ }
69
+ export interface SelectEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["SELECT"], T> {
70
+ index: number;
71
+ panel: Panel;
72
+ direction: ValueOf<typeof DIRECTION> | null;
73
+ }
74
+ export interface NeedPanelEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["NEED_PANEL"], T> {
75
+ direction: Exclude<ValueOf<typeof DIRECTION>, null>;
76
+ }
77
+ export interface VisibleChangeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["VISIBLE_CHANGE"], T> {
78
+ added: Panel[];
79
+ removed: Panel[];
80
+ visiblePanels: Panel[];
81
+ }
82
+ export interface ReachEdgeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["REACH_EDGE"], T> {
83
+ direction: ValueOf<typeof DIRECTION>;
84
+ }
85
+ export interface PanelChangeEvent<T extends Flicking = Flicking> extends ComponentEvent<{}, typeof EVENTS["PANEL_CHANGE"], T> {
86
+ added: Panel[];
87
+ removed: Panel[];
88
+ }
@@ -1,31 +1,31 @@
1
- import Flicking from "../Flicking";
2
- import { SnapControlOptions, FreeControlOptions, StrictControlOptions } from "../control";
3
- import { MOVE_TYPE } from "../const/external";
4
- import { ValueOf } from "../type/internal";
5
- export declare type ElementLike = string | HTMLElement;
6
- export interface Plugin {
7
- init(flicking: Flicking): void;
8
- destroy(): void;
9
- update(flicking: Flicking): void;
10
- }
11
- export interface Status {
12
- index?: number;
13
- position?: {
14
- panel: number;
15
- progressInPanel: number;
16
- };
17
- visibleOffset?: number;
18
- panels: Array<{
19
- index: number;
20
- html?: string;
21
- }>;
22
- }
23
- export declare type MoveTypeOptions<T extends ValueOf<typeof MOVE_TYPE>> = T extends typeof MOVE_TYPE.SNAP ? [T] | [T, Partial<SnapControlOptions>] : T extends typeof MOVE_TYPE.FREE_SCROLL ? [T] | [T, Partial<FreeControlOptions>] : T extends typeof MOVE_TYPE.STRICT ? [T] | [T, Partial<StrictControlOptions>] : [T];
24
- export interface ControlParams {
25
- range: {
26
- min: number;
27
- max: number;
28
- };
29
- position: number;
30
- circular: boolean;
31
- }
1
+ import Flicking from "../Flicking";
2
+ import { SnapControlOptions, FreeControlOptions, StrictControlOptions } from "../control";
3
+ import { MOVE_TYPE } from "../const/external";
4
+ import { ValueOf } from "../type/internal";
5
+ export declare type ElementLike = string | HTMLElement;
6
+ export interface Plugin {
7
+ init(flicking: Flicking): void;
8
+ destroy(): void;
9
+ update(flicking: Flicking): void;
10
+ }
11
+ export interface Status {
12
+ index?: number;
13
+ position?: {
14
+ panel: number;
15
+ progressInPanel: number;
16
+ };
17
+ visibleOffset?: number;
18
+ panels: Array<{
19
+ index: number;
20
+ html?: string;
21
+ }>;
22
+ }
23
+ export declare type MoveTypeOptions<T extends ValueOf<typeof MOVE_TYPE>> = T extends typeof MOVE_TYPE.SNAP ? [T] | [T, Partial<SnapControlOptions>] : T extends typeof MOVE_TYPE.FREE_SCROLL ? [T] | [T, Partial<FreeControlOptions>] : T extends typeof MOVE_TYPE.STRICT ? [T] | [T, Partial<StrictControlOptions>] : [T];
24
+ export interface ControlParams {
25
+ range: {
26
+ min: number;
27
+ max: number;
28
+ };
29
+ position: number;
30
+ circular: boolean;
31
+ }
@@ -1,13 +1,13 @@
1
- export declare type ValueOf<T> = T[keyof T];
2
- export declare type LiteralUnion<T extends U, U = string> = T | (Pick<U, never> & {
3
- _?: never;
4
- });
5
- export interface ArrayLike<T> {
6
- [index: number]: T;
7
- length: number;
8
- }
9
- export declare type Unique<T, U> = Pick<T, Exclude<keyof T, keyof U>>;
10
- export declare type MergeObject<T, U> = {
11
- [K in keyof T & keyof U]: T[K] extends Record<string, unknown> ? U[K] extends Record<string, unknown> ? Merged<T[K], U[K]> : T[K] : T[K];
12
- };
13
- export declare type Merged<From, To> = Unique<From, To> & Unique<To, From> & MergeObject<From, To>;
1
+ export declare type ValueOf<T> = T[keyof T];
2
+ export declare type LiteralUnion<T extends U, U = string> = T | (Pick<U, never> & {
3
+ _?: never;
4
+ });
5
+ export interface ArrayLike<T> {
6
+ [index: number]: T;
7
+ length: number;
8
+ }
9
+ export declare type Unique<T, U> = Pick<T, Exclude<keyof T, keyof U>>;
10
+ export declare type MergeObject<T, U> = {
11
+ [K in keyof T & keyof U]: T[K] extends Record<string, unknown> ? U[K] extends Record<string, unknown> ? Merged<T[K], U[K]> : T[K] : T[K];
12
+ };
13
+ export declare type Merged<From, To> = Unique<From, To> & Unique<To, From> & MergeObject<From, To>;
@@ -1,45 +1,45 @@
1
- import Flicking, { FlickingOptions } from "./Flicking";
2
- import { ALIGN, DIRECTION } from "./const/external";
3
- import { LiteralUnion, Merged, ValueOf } from "./type/internal";
4
- import { ElementLike } from "./type/external";
5
- export declare const merge: <From extends object, To extends object>(target: From, ...sources: To[]) => Merged<From, To>;
6
- export declare const getElement: (el: HTMLElement | string | null, parent?: HTMLElement) => HTMLElement;
7
- export declare const checkExistence: (value: any, nameOnErrMsg: string) => void;
8
- export declare const clamp: (x: number, min: number, max: number) => number;
9
- export declare const getFlickingAttached: (val: Flicking | null) => Flicking;
10
- export declare const toArray: <T>(iterable: ArrayLike<T>) => T[];
11
- export declare const parseAlign: (align: LiteralUnion<ValueOf<typeof ALIGN>> | number, size: number) => number;
12
- export declare const parseBounce: (bounce: FlickingOptions["bounce"], size: number) => number[];
13
- export declare const parseArithmeticSize: (cssValue: number | string, base: number) => number | null;
14
- export declare const parseArithmeticExpression: (cssValue: number | string) => {
15
- percentage: number;
16
- absolute: number;
17
- } | null;
18
- export declare const parseCSSSizeValue: (val: string | number) => string;
19
- export declare const parsePanelAlign: (align: FlickingOptions["align"]) => string | number;
20
- export declare const getDirection: (start: number, end: number) => ValueOf<typeof DIRECTION>;
21
- export declare const parseElement: (element: ElementLike | ElementLike[]) => HTMLElement[];
22
- export declare const getMinusCompensatedIndex: (idx: number, max: number) => number;
23
- export declare const includes: <T>(array: T[], target: any) => target is T;
24
- export declare const isString: (val: any) => val is string;
25
- export declare const circulatePosition: (pos: number, min: number, max: number) => number;
26
- export declare const find: <T>(array: T[], checker: (val: T) => boolean) => T;
27
- export declare const findRight: <T>(array: T[], checker: (val: T) => boolean) => T;
28
- export declare const findIndex: <T>(array: T[], checker: (val: T) => boolean) => number;
29
- export declare const getProgress: (pos: number, prev: number, next: number) => number;
30
- export declare const getStyle: (el: HTMLElement) => CSSStyleDeclaration;
31
- export declare const setSize: (el: HTMLElement, { width, height }: Partial<{
32
- width: number | string;
33
- height: number | string;
34
- }>) => void;
35
- export declare const isBetween: (val: number, min: number, max: number) => boolean;
36
- export declare const circulateIndex: (index: number, max: number) => number;
37
- export declare const range: (end: number) => number[];
38
- export declare const getElementSize: ({ el, horizontal, useFractionalSize, useOffset, style }: {
39
- el: HTMLElement;
40
- horizontal: boolean;
41
- useFractionalSize: boolean;
42
- useOffset: boolean;
43
- style: CSSStyleDeclaration;
44
- }) => number;
45
- export declare const setPrototypeOf: (o: any, proto: object) => any;
1
+ import Flicking, { FlickingOptions } from "./Flicking";
2
+ import { ALIGN, DIRECTION } from "./const/external";
3
+ import { LiteralUnion, Merged, ValueOf } from "./type/internal";
4
+ import { ElementLike } from "./type/external";
5
+ export declare const merge: <From extends object, To extends object>(target: From, ...sources: To[]) => Merged<From, To>;
6
+ export declare const getElement: (el: HTMLElement | string | null, parent?: HTMLElement) => HTMLElement;
7
+ export declare const checkExistence: (value: any, nameOnErrMsg: string) => void;
8
+ export declare const clamp: (x: number, min: number, max: number) => number;
9
+ export declare const getFlickingAttached: (val: Flicking | null) => Flicking;
10
+ export declare const toArray: <T>(iterable: ArrayLike<T>) => T[];
11
+ export declare const parseAlign: (align: LiteralUnion<ValueOf<typeof ALIGN>> | number, size: number) => number;
12
+ export declare const parseBounce: (bounce: FlickingOptions["bounce"], size: number) => number[];
13
+ export declare const parseArithmeticSize: (cssValue: number | string, base: number) => number | null;
14
+ export declare const parseArithmeticExpression: (cssValue: number | string) => {
15
+ percentage: number;
16
+ absolute: number;
17
+ } | null;
18
+ export declare const parseCSSSizeValue: (val: string | number) => string;
19
+ export declare const parsePanelAlign: (align: FlickingOptions["align"]) => string | number;
20
+ export declare const getDirection: (start: number, end: number) => ValueOf<typeof DIRECTION>;
21
+ export declare const parseElement: (element: ElementLike | ElementLike[]) => HTMLElement[];
22
+ export declare const getMinusCompensatedIndex: (idx: number, max: number) => number;
23
+ export declare const includes: <T>(array: T[], target: any) => target is T;
24
+ export declare const isString: (val: any) => val is string;
25
+ export declare const circulatePosition: (pos: number, min: number, max: number) => number;
26
+ export declare const find: <T>(array: T[], checker: (val: T) => boolean) => T;
27
+ export declare const findRight: <T>(array: T[], checker: (val: T) => boolean) => T;
28
+ export declare const findIndex: <T>(array: T[], checker: (val: T) => boolean) => number;
29
+ export declare const getProgress: (pos: number, prev: number, next: number) => number;
30
+ export declare const getStyle: (el: HTMLElement) => CSSStyleDeclaration;
31
+ export declare const setSize: (el: HTMLElement, { width, height }: Partial<{
32
+ width: number | string;
33
+ height: number | string;
34
+ }>) => void;
35
+ export declare const isBetween: (val: number, min: number, max: number) => boolean;
36
+ export declare const circulateIndex: (index: number, max: number) => number;
37
+ export declare const range: (end: number) => number[];
38
+ export declare const getElementSize: ({ el, horizontal, useFractionalSize, useOffset, style }: {
39
+ el: HTMLElement;
40
+ horizontal: boolean;
41
+ useFractionalSize: boolean;
42
+ useOffset: boolean;
43
+ style: CSSStyleDeclaration;
44
+ }) => number;
45
+ export declare const setPrototypeOf: (o: any, proto: object) => any;
@@ -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.3
7
+ version: 4.10.5-beta.0
8
8
  */
9
9
  import Component, { ComponentEvent } from '@egjs/component';
10
10
  import Axes, { PanInput } from '@egjs/axes';
@@ -667,7 +667,7 @@ var circulatePosition = function (pos, min, max) {
667
667
  if (pos < min) {
668
668
  var offset = (min - pos) % size;
669
669
  pos = max - offset;
670
- } else if (pos > max) {
670
+ } else if (pos >= max) {
671
671
  var offset = (pos - max) % size;
672
672
  pos = min + offset;
673
673
  }
@@ -7217,6 +7217,7 @@ function (_super) {
7217
7217
  * @property {ALIGN | string | number} panel The align value for each {@link Panel}s<ko>개개의 {@link Panel}에 적용할 값</ko>
7218
7218
  * @property {ALIGN | string | number} camera The align value for {@link Camera}<ko>{@link Camera}에 적용할 값</ko>
7219
7219
  * @default "center"
7220
+ * @see {@link https://naver.github.io/egjs-flicking/Options#align align ( Options )}
7220
7221
  * @example
7221
7222
  * ```ts
7222
7223
  * const possibleOptions = [
@@ -7257,6 +7258,7 @@ function (_super) {
7257
7258
  * @ko Flicking의 {@link Flicking#init init()}이 호출될 때 이동할 디폴트 패널의 인덱스로, 0부터 시작하는 정수입니다
7258
7259
  * @type {number}
7259
7260
  * @default 0
7261
+ * @see {@link https://naver.github.io/egjs-flicking/Options#defaultindex defaultIndex ( Options )}
7260
7262
  */
7261
7263
  get: function () {
7262
7264
  return this._defaultIndex;
@@ -7273,6 +7275,7 @@ function (_super) {
7273
7275
  * @ko 패널 이동 방향 (true: 가로방향, false: 세로방향)
7274
7276
  * @type {boolean}
7275
7277
  * @default true
7278
+ * @see {@link https://naver.github.io/egjs-flicking/Options#horizontal horizontal ( Options )}
7276
7279
  */
7277
7280
  get: function () {
7278
7281
  return this._horizontal;
@@ -7293,6 +7296,7 @@ function (_super) {
7293
7296
  * @ko 순환 모드를 활성화합니다. 순환 모드에서는 양 끝의 패널이 서로 연결되어 끊김없는 스크롤이 가능합니다.
7294
7297
  * @type {boolean}
7295
7298
  * @default false
7299
+ * @see {@link https://naver.github.io/egjs-flicking/Options#circular circular ( Options )}
7296
7300
  */
7297
7301
  get: function () {
7298
7302
  return this._circular;
@@ -7315,6 +7319,7 @@ function (_super) {
7315
7319
  * @see CIRCULAR_FALLBACK
7316
7320
  * @type {string}
7317
7321
  * @default "linear"
7322
+ * @see {@link https://naver.github.io/egjs-flicking/Options#circularfallback circularFallback ( Options )}
7318
7323
  */
7319
7324
  get: function () {
7320
7325
  return this._circularFallback;
@@ -7330,6 +7335,7 @@ function (_super) {
7330
7335
  * `circular=false`인 경우에만 사용할 수 있습니다
7331
7336
  * @type {boolean}
7332
7337
  * @default false
7338
+ * @see {@link https://naver.github.io/egjs-flicking/Options#bound bound ( Options )}
7333
7339
  */
7334
7340
  get: function () {
7335
7341
  return this._bound;
@@ -7347,6 +7353,7 @@ function (_super) {
7347
7353
  * @ko 이동한 후 뷰포트 엘리먼트의 크기를 현재 패널의 높이와 동일하게 설정합니다. `horizontal=true`인 경우에만 사용할 수 있습니다.
7348
7354
  * @type {boolean}
7349
7355
  * @default false
7356
+ * @see {@link https://naver.github.io/egjs-flicking/Options#adaptive adaptive ( Options )}
7350
7357
  */
7351
7358
  get: function () {
7352
7359
  return this._adaptive;
@@ -7364,6 +7371,7 @@ function (_super) {
7364
7371
  * @ko 한 화면에 보이는 패널의 개수. 이 옵션을 활성화할 경우 패널의 크기를 강제로 재조정합니다
7365
7372
  * @type {number}
7366
7373
  * @default -1
7374
+ * @see {@link https://naver.github.io/egjs-flicking/Options#panelsperview panelsPerView ( Options )}
7367
7375
  */
7368
7376
  get: function () {
7369
7377
  return this._panelsPerView;
@@ -7402,6 +7410,7 @@ function (_super) {
7402
7410
  * 이 동작은 Flicking 내부에 로드 전/후로 크기가 변하는 콘텐츠를 포함하고 있을 때 유용하게 사용하실 수 있습니다.
7403
7411
  * @type {boolean}
7404
7412
  * @default false
7413
+ * @see {@link https://naver.github.io/egjs-flicking/Options#resizeOnContentsReady resizeOnContentsReady ( Options )}
7405
7414
  */
7406
7415
  get: function () {
7407
7416
  return this._resizeOnContentsReady;
@@ -7424,6 +7433,7 @@ function (_super) {
7424
7433
  * 만약 상위 Flicking과 하위 Flicking이 서로 다른 horizontal 옵션을 가지고 있다면 이 옵션을 설정할 필요가 없습니다.
7425
7434
  * @type {boolean}
7426
7435
  * @default false
7436
+ * @see {@link https://naver.github.io/egjs-flicking/Options#nested nested ( Options )}
7427
7437
  */
7428
7438
  get: function () {
7429
7439
  return this._nested;
@@ -7447,6 +7457,7 @@ function (_super) {
7447
7457
  * @ko `needPanel`이벤트가 발생하기 위한 뷰포트 끝으로부터의 최대 거리
7448
7458
  * @type {number}
7449
7459
  * @default 0
7460
+ * @see {@link https://naver.github.io/egjs-flicking/Options#needpanelthreshold needPanelThreshold ( Options )}
7450
7461
  */
7451
7462
  get: function () {
7452
7463
  return this._needPanelThreshold;
@@ -7464,6 +7475,7 @@ function (_super) {
7464
7475
  * @ko 활성화할 경우 초기화시 `ready` 이벤트 이전의 이벤트가 발생하지 않습니다.
7465
7476
  * @type {boolean}
7466
7477
  * @default true
7478
+ * @see {@link https://naver.github.io/egjs-flicking/Options#preventeventsbeforeinit preventEventsBeforeInit ( Options )}
7467
7479
  */
7468
7480
  get: function () {
7469
7481
  return this._preventEventsBeforeInit;
@@ -7482,6 +7494,7 @@ function (_super) {
7482
7494
  * @ko 사용자의 동작으로 가속도가 적용된 패널 이동 애니메이션의 감속도. 값이 높을수록 애니메이션 실행 시간이 짧아집니다
7483
7495
  * @type {number}
7484
7496
  * @default 0.0075
7497
+ * @see {@link https://naver.github.io/egjs-flicking/Options#deceleration deceleration ( Options )}
7485
7498
  */
7486
7499
  get: function () {
7487
7500
  return this._deceleration;
@@ -7505,6 +7518,7 @@ function (_super) {
7505
7518
  * @type {function}
7506
7519
  * @default x => 1 - Math.pow(1 - x, 3)
7507
7520
  * @see Easing Functions Cheat Sheet {@link http://easings.net/} <ko>이징 함수 Cheat Sheet {@link http://easings.net/}</ko>
7521
+ * @see {@link https://naver.github.io/egjs-flicking/Options#easing Easing ( Options )}
7508
7522
  */
7509
7523
  get: function () {
7510
7524
  return this._easing;
@@ -7526,6 +7540,7 @@ function (_super) {
7526
7540
  * @ko 디폴트 애니메이션 재생 시간 (ms)
7527
7541
  * @type {number}
7528
7542
  * @default 500
7543
+ * @see {@link https://naver.github.io/egjs-flicking/Options#duration duration ( Options )}
7529
7544
  */
7530
7545
  get: function () {
7531
7546
  return this._duration;
@@ -7544,8 +7559,9 @@ function (_super) {
7544
7559
  * @ko 활성화할 입력 장치 종류
7545
7560
  * @type {string[]}
7546
7561
  * @default ["touch", "mouse"]
7547
- * @see {@link https://naver.github.io/egjs-axes/release/latest/doc/global.html#PanInputOption Possible values (PanInputOption#inputType)}
7548
- * <ko>{@link https://naver.github.io/egjs-axes/release/latest/doc/global.html#PanInputOption 가능한 값들 (PanInputOption#inputType)}</ko>
7562
+ * @see {@link https://naver.github.io/egjs-axes/Options#paninput-options Possible values (PanInputOption#inputType)}
7563
+ * <ko>{@link https://naver.github.io/egjs-axes/Options#paninput-options 가능한 값들 (PanInputOption#inputType)}</ko>
7564
+ * @see {@link https://naver.github.io/egjs-flicking/Options#inputtype inputType ( Options )}
7549
7565
  */
7550
7566
  get: function () {
7551
7567
  return this._inputType;
@@ -7570,6 +7586,7 @@ function (_super) {
7570
7586
  * 상수 {@link MOVE_TYPE}에 정의된 값들을 이용할 수 있습니다
7571
7587
  * @type {MOVE_TYPE | Pair<string, object>}
7572
7588
  * @default "snap"
7589
+ * @see {@link https://naver.github.io/egjs-flicking/Options#movetype moveType ( Options )}
7573
7590
  * @example
7574
7591
  * |moveType|control|options|
7575
7592
  * |:---:|:---:|:---:|
@@ -7620,6 +7637,7 @@ function (_super) {
7620
7637
  * @ko 패널 변경을 위한 이동 임계값 (단위: px). 주어진 값 이상으로 스크롤해야만 패널 변경이 가능하다.
7621
7638
  * @type {number}
7622
7639
  * @default 40
7640
+ * @see {@link https://naver.github.io/egjs-flicking/Options#threshold Threshold ( Options )}
7623
7641
  */
7624
7642
  get: function () {
7625
7643
  return this._threshold;
@@ -7636,6 +7654,7 @@ function (_super) {
7636
7654
  * @ko 사용자의 클릭/터치로 인해 애니메이션을 도중에 멈출 수 있도록 설정합니다.
7637
7655
  * @type {boolean}
7638
7656
  * @default true
7657
+ * @see {@link https://naver.github.io/egjs-flicking/Options#interruptable Interruptable ( Options )}
7639
7658
  */
7640
7659
  get: function () {
7641
7660
  return this._interruptable;
@@ -7663,6 +7682,7 @@ function (_super) {
7663
7682
  * 이 값을 변경시 {@link Control#updateInput}를 호출해야 합니다.
7664
7683
  * @type {string | number | Array<string | number>}
7665
7684
  * @default "20%"
7685
+ * @see {@link https://naver.github.io/egjs-flicking/Options#bounce bounce ( Options )}
7666
7686
  * @example
7667
7687
  * ```ts
7668
7688
  * const possibleOptions = [
@@ -7700,6 +7720,7 @@ function (_super) {
7700
7720
  * @ko iOS Safari에서 swipe를 통한 뒤로가기/앞으로가기를 활성화하는 오른쪽 끝으로부터의 영역의 크기 (px)
7701
7721
  * @type {number}
7702
7722
  * @default 30
7723
+ * @see {@link https://naver.github.io/egjs-flicking/Options#iosedgeswipethreshold iOSEdgeSwipeThreshold ( Options )}
7703
7724
  */
7704
7725
  get: function () {
7705
7726
  return this._iOSEdgeSwipeThreshold;
@@ -7721,6 +7742,7 @@ function (_super) {
7721
7742
  * @ko 사용자가 뷰포트 영역을 1픽셀이라도 드래그했을 경우 자동으로 {@link https://developer.mozilla.org/ko/docs/Web/API/Element/click_event click} 이벤트를 취소합니다
7722
7743
  * @type {boolean}
7723
7744
  * @default true
7745
+ * @see {@link https://naver.github.io/egjs-flicking/Options#preventclickondrag preventClickOnDrag ( Options )}
7724
7746
  */
7725
7747
  get: function () {
7726
7748
  return this._preventClickOnDrag;
@@ -7747,6 +7769,7 @@ function (_super) {
7747
7769
  * @ko Flicking init시에 {@link Flicking#disableInput disableInput()}을 바로 호출합니다
7748
7770
  * @type {boolean}
7749
7771
  * @default false
7772
+ * @see {@link https://naver.github.io/egjs-flicking/Options#disableoninit disableOnInit ( Options )}
7750
7773
  */
7751
7774
  get: function () {
7752
7775
  return this._disableOnInit;
@@ -7765,6 +7788,7 @@ function (_super) {
7765
7788
  * `willChange`/`willRestore` 이벤트의 `index`값이 새로운 인덱스로 사용될 것입니다.
7766
7789
  * @type {boolean}
7767
7790
  * @default false
7791
+ * @see {@link https://naver.github.io/egjs-flicking/Options#changeonhold changeOnHold ( Options )}
7768
7792
  */
7769
7793
  get: function () {
7770
7794
  return this._changeOnHold;
@@ -7783,6 +7807,7 @@ function (_super) {
7783
7807
  * @ko 보이는 패널만 렌더링할지 여부를 설정합니다. 패널이 많을 경우에 퍼포먼스를 크게 향상시킬 수 있습니다
7784
7808
  * @type {boolean}
7785
7809
  * @default false
7810
+ * @see {@link https://naver.github.io/egjs-flicking/Options#renderonlyvisible renderOnlyVisible ( Options )}
7786
7811
  */
7787
7812
  get: function () {
7788
7813
  return this._renderOnlyVisible;
@@ -7808,6 +7833,7 @@ function (_super) {
7808
7833
  * @property {number} initialPanelCount Initial panel count to render<ko>최초로 렌더링할 패널의 개수</ko>
7809
7834
  * @property {boolean} [cache=false] Whether to cache rendered panel's innerHTML<ko>렌더링된 패널의 innerHTML 정보를 캐시할지 여부</ko>
7810
7835
  * @property {string} [panelClass="flicking-panel"] The class name that will be applied to rendered panel elements<ko>렌더링되는 패널 엘리먼트에 적용될 클래스 이름</ko>
7836
+ * @see {@link https://naver.github.io/egjs-flicking/Options#virtual virtual ( Options )}
7811
7837
  * @example
7812
7838
  * ```ts
7813
7839
  * import Flicking, { VirtualPanel } from "@egjs/flicking";
@@ -7841,6 +7867,7 @@ function (_super) {
7841
7867
  * @ko Flicking 인스턴스를 생성할 때 자동으로 {@link Flicking#init init()}를 호출합니다
7842
7868
  * @type {boolean}
7843
7869
  * @default true
7870
+ * @see {@link https://naver.github.io/egjs-flicking/Options#autoinit autoInit ( Options )}
7844
7871
  * @readonly
7845
7872
  */
7846
7873
  get: function () {
@@ -7878,6 +7905,7 @@ function (_super) {
7878
7905
  * @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} 이벤트 대신 수신할지 여부를 설정합니다
7879
7906
  * @type {boolean}
7880
7907
  * @default true
7908
+ * @see {@link https://naver.github.io/egjs-flicking/Options#useresizeobserver useResizeObserver ( Options )}
7881
7909
  */
7882
7910
  get: function () {
7883
7911
  return this._useResizeObserver;
@@ -7902,6 +7930,7 @@ function (_super) {
7902
7930
  * 이를 통해 `resize`가 너무 많이 호출되는 것을 방지하여 성능을 향상시킬 수 있습니다.
7903
7931
  * @type {number}
7904
7932
  * @default 0
7933
+ * @see {@link https://naver.github.io/egjs-flicking/Options#resizedebounce resizeDebounce ( Options )}
7905
7934
  */
7906
7935
  get: function () {
7907
7936
  return this._resizeDebounce;
@@ -7917,6 +7946,7 @@ function (_super) {
7917
7946
  * 이를 통해, 적어도 (n)ms에 한번은 크기 재계산을 수행하는 것을 보장할 수 있습니다.
7918
7947
  * @type {number}
7919
7948
  * @default 100
7949
+ * @see {@link https://naver.github.io/egjs-flicking/Options#maxresizedebounce maxResizeDebounce ( Options )}
7920
7950
  */
7921
7951
  get: function () {
7922
7952
  return this._maxResizeDebounce;
@@ -7934,6 +7964,7 @@ function (_super) {
7934
7964
  * 모든 크기는 CSS {@link https://developer.mozilla.org/en-US/docs/Web/CSS/transform transform}이 엘리먼트에 적용되기 이전의 크기를 사용할 것입니다.
7935
7965
  * @type {boolean}
7936
7966
  * @default false
7967
+ * @see {@link https://naver.github.io/egjs-flicking/Options#usefractionalsize useFractionalSize ( Options )}
7937
7968
  */
7938
7969
  get: function () {
7939
7970
  return this._useFractionalSize;
@@ -8800,7 +8831,7 @@ function (_super) {
8800
8831
  */
8801
8832
 
8802
8833
 
8803
- Flicking.VERSION = "4.10.3";
8834
+ Flicking.VERSION = "4.10.5-beta.0";
8804
8835
  return Flicking;
8805
8836
  }(Component);
8806
8837