vevet 3.0.0-beta.8 → 3.0.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/README.md +0 -1
- package/lib/cjs/Application/index.js +4 -4
- package/lib/cjs/Application/index.js.map +1 -1
- package/lib/cjs/components/Ctx2D/index.js +3 -3
- package/lib/cjs/components/Ctx2D/index.js.map +1 -1
- package/lib/cjs/components/CustomCursor/index.js +22 -11
- package/lib/cjs/components/CustomCursor/index.js.map +1 -1
- package/lib/cjs/components/ScrollBar/Bar/index.js +2 -2
- package/lib/cjs/components/ScrollBar/Bar/index.js.map +1 -1
- package/lib/cjs/components/ScrollBar/index.js +1 -1
- package/lib/cjs/components/ScrollBar/index.js.map +1 -1
- package/lib/cjs/components/SmoothScroll/index.js +5 -5
- package/lib/cjs/components/SmoothScroll/index.js.map +1 -1
- package/lib/cjs/components/Timeline/index.js +2 -2
- package/lib/cjs/components/Timeline/index.js.map +1 -1
- package/lib/cjs/utils/scroll/scrollTo.js +1 -1
- package/lib/cjs/utils/scroll/scrollTo.js.map +1 -1
- package/lib/cjs/version.js +1 -1
- package/lib/cjs/version.js.map +1 -1
- package/lib/esm/Application/index.js +4 -4
- package/lib/esm/Application/index.js.map +1 -1
- package/lib/esm/components/Ctx2D/index.js +3 -3
- package/lib/esm/components/Ctx2D/index.js.map +1 -1
- package/lib/esm/components/CustomCursor/index.js +18 -11
- package/lib/esm/components/CustomCursor/index.js.map +1 -1
- package/lib/esm/components/ScrollBar/Bar/index.js +2 -2
- package/lib/esm/components/ScrollBar/Bar/index.js.map +1 -1
- package/lib/esm/components/ScrollBar/index.js +1 -1
- package/lib/esm/components/ScrollBar/index.js.map +1 -1
- package/lib/esm/components/SmoothScroll/index.js +5 -5
- package/lib/esm/components/SmoothScroll/index.js.map +1 -1
- package/lib/esm/components/Timeline/index.js +2 -2
- package/lib/esm/components/Timeline/index.js.map +1 -1
- package/lib/esm/utils/scroll/scrollTo.js +1 -1
- package/lib/esm/utils/scroll/scrollTo.js.map +1 -1
- package/lib/esm/version.js +1 -1
- package/lib/esm/version.js.map +1 -1
- package/lib/styles/components/CustomCursor.scss +1 -1
- package/lib/types/Application/events/PageLoad/index.d.ts +1 -0
- package/lib/types/Application/events/PageLoad/index.d.ts.map +1 -0
- package/lib/types/Application/events/PageLoad/types.d.ts +1 -0
- package/lib/types/Application/events/PageLoad/types.d.ts.map +1 -0
- package/lib/types/Application/events/Viewport/index.d.ts +1 -0
- package/lib/types/Application/events/Viewport/index.d.ts.map +1 -0
- package/lib/types/Application/events/Viewport/types.d.ts +1 -0
- package/lib/types/Application/events/Viewport/types.d.ts.map +1 -0
- package/lib/types/Application/index.d.ts +1 -0
- package/lib/types/Application/index.d.ts.map +1 -0
- package/lib/types/Application/types.d.ts +3 -2
- package/lib/types/Application/types.d.ts.map +1 -0
- package/lib/types/base/Callbacks/index.d.ts +1 -0
- package/lib/types/base/Callbacks/index.d.ts.map +1 -0
- package/lib/types/base/Callbacks/types.d.ts +1 -0
- package/lib/types/base/Callbacks/types.d.ts.map +1 -0
- package/lib/types/base/Component/index.d.ts +1 -0
- package/lib/types/base/Component/index.d.ts.map +1 -0
- package/lib/types/base/Component/types.d.ts +1 -0
- package/lib/types/base/Component/types.d.ts.map +1 -0
- package/lib/types/base/Module/index.d.ts +1 -0
- package/lib/types/base/Module/index.d.ts.map +1 -0
- package/lib/types/base/Module/types.d.ts +1 -0
- package/lib/types/base/Module/types.d.ts.map +1 -0
- package/lib/types/base/MutableProps/index.d.ts +1 -0
- package/lib/types/base/MutableProps/index.d.ts.map +1 -0
- package/lib/types/base/MutableProps/types.d.ts +1 -0
- package/lib/types/base/MutableProps/types.d.ts.map +1 -0
- package/lib/types/base/Plugin/index.d.ts +1 -0
- package/lib/types/base/Plugin/index.d.ts.map +1 -0
- package/lib/types/base/Plugin/types.d.ts +1 -0
- package/lib/types/base/Plugin/types.d.ts.map +1 -0
- package/lib/types/base/index.d.ts +1 -0
- package/lib/types/base/index.d.ts.map +1 -0
- package/lib/types/components/AnimationFrame/index.d.ts +1 -0
- package/lib/types/components/AnimationFrame/index.d.ts.map +1 -0
- package/lib/types/components/AnimationFrame/types.d.ts +1 -0
- package/lib/types/components/AnimationFrame/types.d.ts.map +1 -0
- package/lib/types/components/BaseTimeline/index.d.ts +1 -0
- package/lib/types/components/BaseTimeline/index.d.ts.map +1 -0
- package/lib/types/components/BaseTimeline/types.d.ts +1 -0
- package/lib/types/components/BaseTimeline/types.d.ts.map +1 -0
- package/lib/types/components/Ctx2D/index.d.ts +2 -1
- package/lib/types/components/Ctx2D/index.d.ts.map +1 -0
- package/lib/types/components/Ctx2D/types.d.ts +2 -1
- package/lib/types/components/Ctx2D/types.d.ts.map +1 -0
- package/lib/types/components/Ctx2DPrerender/index.d.ts +3 -2
- package/lib/types/components/Ctx2DPrerender/index.d.ts.map +1 -0
- package/lib/types/components/Ctx2DPrerender/types.d.ts +1 -0
- package/lib/types/components/Ctx2DPrerender/types.d.ts.map +1 -0
- package/lib/types/components/CustomCursor/index.d.ts +6 -1
- package/lib/types/components/CustomCursor/index.d.ts.map +1 -0
- package/lib/types/components/CustomCursor/types.d.ts +2 -1
- package/lib/types/components/CustomCursor/types.d.ts.map +1 -0
- package/lib/types/components/DraggerBase/index.d.ts +1 -0
- package/lib/types/components/DraggerBase/index.d.ts.map +1 -0
- package/lib/types/components/DraggerBase/types.d.ts +1 -0
- package/lib/types/components/DraggerBase/types.d.ts.map +1 -0
- package/lib/types/components/DraggerDirection/index.d.ts +1 -0
- package/lib/types/components/DraggerDirection/index.d.ts.map +1 -0
- package/lib/types/components/DraggerDirection/types.d.ts +1 -0
- package/lib/types/components/DraggerDirection/types.d.ts.map +1 -0
- package/lib/types/components/DraggerMove/index.d.ts +1 -0
- package/lib/types/components/DraggerMove/index.d.ts.map +1 -0
- package/lib/types/components/DraggerMove/types.d.ts +1 -0
- package/lib/types/components/DraggerMove/types.d.ts.map +1 -0
- package/lib/types/components/Preloader/index.d.ts +1 -0
- package/lib/types/components/Preloader/index.d.ts.map +1 -0
- package/lib/types/components/Preloader/types.d.ts +1 -0
- package/lib/types/components/Preloader/types.d.ts.map +1 -0
- package/lib/types/components/ProgressPreloader/index.d.ts +1 -0
- package/lib/types/components/ProgressPreloader/index.d.ts.map +1 -0
- package/lib/types/components/ProgressPreloader/types.d.ts +1 -0
- package/lib/types/components/ProgressPreloader/types.d.ts.map +1 -0
- package/lib/types/components/ProgressPreloader/utils/preloadCustomElement.d.ts +1 -0
- package/lib/types/components/ProgressPreloader/utils/preloadCustomElement.d.ts.map +1 -0
- package/lib/types/components/ProgressPreloader/utils/preloadImage.d.ts +1 -0
- package/lib/types/components/ProgressPreloader/utils/preloadImage.d.ts.map +1 -0
- package/lib/types/components/ProgressPreloader/utils/preloadVideo.d.ts +1 -0
- package/lib/types/components/ProgressPreloader/utils/preloadVideo.d.ts.map +1 -0
- package/lib/types/components/ScrollBar/Bar/index.d.ts +1 -0
- package/lib/types/components/ScrollBar/Bar/index.d.ts.map +1 -0
- package/lib/types/components/ScrollBar/Bar/types.d.ts +2 -1
- package/lib/types/components/ScrollBar/Bar/types.d.ts.map +1 -0
- package/lib/types/components/ScrollBar/index.d.ts +2 -1
- package/lib/types/components/ScrollBar/index.d.ts.map +1 -0
- package/lib/types/components/ScrollBar/types.d.ts +2 -1
- package/lib/types/components/ScrollBar/types.d.ts.map +1 -0
- package/lib/types/components/ScrollView/index.d.ts +1 -0
- package/lib/types/components/ScrollView/index.d.ts.map +1 -0
- package/lib/types/components/ScrollView/types.d.ts +1 -0
- package/lib/types/components/ScrollView/types.d.ts.map +1 -0
- package/lib/types/components/SectionScrollProgress/index.d.ts +1 -0
- package/lib/types/components/SectionScrollProgress/index.d.ts.map +1 -0
- package/lib/types/components/SectionScrollProgress/types.d.ts +1 -0
- package/lib/types/components/SectionScrollProgress/types.d.ts.map +1 -0
- package/lib/types/components/SmoothScroll/AnimatonFrame.d.ts +1 -0
- package/lib/types/components/SmoothScroll/AnimatonFrame.d.ts.map +1 -0
- package/lib/types/components/SmoothScroll/Elements.d.ts +1 -0
- package/lib/types/components/SmoothScroll/Elements.d.ts.map +1 -0
- package/lib/types/components/SmoothScroll/index.d.ts +3 -2
- package/lib/types/components/SmoothScroll/index.d.ts.map +1 -0
- package/lib/types/components/SmoothScroll/types.d.ts +3 -2
- package/lib/types/components/SmoothScroll/types.d.ts.map +1 -0
- package/lib/types/components/SmoothScrollDragPlugin/index.d.ts +1 -0
- package/lib/types/components/SmoothScrollDragPlugin/index.d.ts.map +1 -0
- package/lib/types/components/SmoothScrollDragPlugin/types.d.ts +1 -0
- package/lib/types/components/SmoothScrollDragPlugin/types.d.ts.map +1 -0
- package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts +1 -0
- package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts.map +1 -0
- package/lib/types/components/SmoothScrollKeyboardPlugin/types.d.ts +1 -0
- package/lib/types/components/SmoothScrollKeyboardPlugin/types.d.ts.map +1 -0
- package/lib/types/components/SplitText/index.d.ts +1 -0
- package/lib/types/components/SplitText/index.d.ts.map +1 -0
- package/lib/types/components/SplitText/types.d.ts +1 -0
- package/lib/types/components/SplitText/types.d.ts.map +1 -0
- package/lib/types/components/Timeline/index.d.ts +2 -1
- package/lib/types/components/Timeline/index.d.ts.map +1 -0
- package/lib/types/components/Timeline/types.d.ts +2 -1
- package/lib/types/components/Timeline/types.d.ts.map +1 -0
- package/lib/types/components/index.d.ts +1 -0
- package/lib/types/components/index.d.ts.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/types/general.d.ts +1 -0
- package/lib/types/types/general.d.ts.map +1 -0
- package/lib/types/types/utility.d.ts +1 -0
- package/lib/types/types/utility.d.ts.map +1 -0
- package/lib/types/utils/common/index.d.ts +1 -0
- package/lib/types/utils/common/index.d.ts.map +1 -0
- package/lib/types/utils/common/mergeWithoutArrays.d.ts +1 -0
- package/lib/types/utils/common/mergeWithoutArrays.d.ts.map +1 -0
- package/lib/types/utils/common/normalizedTimeoutCallback.d.ts +1 -0
- package/lib/types/utils/common/normalizedTimeoutCallback.d.ts.map +1 -0
- package/lib/types/utils/common/objectKeys.d.ts +1 -0
- package/lib/types/utils/common/objectKeys.d.ts.map +1 -0
- package/lib/types/utils/common/pickObjectProps.d.ts +1 -0
- package/lib/types/utils/common/pickObjectProps.d.ts.map +1 -0
- package/lib/types/utils/common/times.d.ts +1 -0
- package/lib/types/utils/common/times.d.ts.map +1 -0
- package/lib/types/utils/common/uid.d.ts +1 -0
- package/lib/types/utils/common/uid.d.ts.map +1 -0
- package/lib/types/utils/image/index.d.ts +1 -0
- package/lib/types/utils/image/index.d.ts.map +1 -0
- package/lib/types/utils/image/load.d.ts +1 -0
- package/lib/types/utils/image/load.d.ts.map +1 -0
- package/lib/types/utils/image/pathsToProps.d.ts +1 -0
- package/lib/types/utils/image/pathsToProps.d.ts.map +1 -0
- package/lib/types/utils/image/sizesToSrcSet.d.ts +1 -0
- package/lib/types/utils/image/sizesToSrcSet.d.ts.map +1 -0
- package/lib/types/utils/index.d.ts +1 -0
- package/lib/types/utils/index.d.ts.map +1 -0
- package/lib/types/utils/internal/fetchWebpSupport.d.ts +1 -0
- package/lib/types/utils/internal/fetchWebpSupport.d.ts.map +1 -0
- package/lib/types/utils/internal/getDeviceInfo.d.ts +1 -0
- package/lib/types/utils/internal/getDeviceInfo.d.ts.map +1 -0
- package/lib/types/utils/listeners/index.d.ts +1 -0
- package/lib/types/utils/listeners/index.d.ts.map +1 -0
- package/lib/types/utils/listeners/isIntersectionObserverSupported.d.ts +1 -0
- package/lib/types/utils/listeners/isIntersectionObserverSupported.d.ts.map +1 -0
- package/lib/types/utils/listeners/onResize.d.ts +1 -0
- package/lib/types/utils/listeners/onResize.d.ts.map +1 -0
- package/lib/types/utils/math/clamp.d.ts +1 -0
- package/lib/types/utils/math/clamp.d.ts.map +1 -0
- package/lib/types/utils/math/clampScope.d.ts +1 -0
- package/lib/types/utils/math/clampScope.d.ts.map +1 -0
- package/lib/types/utils/math/easing.d.ts +1 -0
- package/lib/types/utils/math/easing.d.ts.map +1 -0
- package/lib/types/utils/math/inScope.d.ts +1 -0
- package/lib/types/utils/math/inScope.d.ts.map +1 -0
- package/lib/types/utils/math/index.d.ts +1 -0
- package/lib/types/utils/math/index.d.ts.map +1 -0
- package/lib/types/utils/math/lerp.d.ts +1 -0
- package/lib/types/utils/math/lerp.d.ts.map +1 -0
- package/lib/types/utils/math/normalizeNestedScope.d.ts +1 -0
- package/lib/types/utils/math/normalizeNestedScope.d.ts.map +1 -0
- package/lib/types/utils/math/scoped.d.ts +1 -0
- package/lib/types/utils/math/scoped.d.ts.map +1 -0
- package/lib/types/utils/math/spreadScope.d.ts +1 -0
- package/lib/types/utils/math/spreadScope.d.ts.map +1 -0
- package/lib/types/utils/math/wrap.d.ts +1 -0
- package/lib/types/utils/math/wrap.d.ts.map +1 -0
- package/lib/types/utils/scroll/getScrollValues.d.ts +1 -0
- package/lib/types/utils/scroll/getScrollValues.d.ts.map +1 -0
- package/lib/types/utils/scroll/index.d.ts +1 -0
- package/lib/types/utils/scroll/index.d.ts.map +1 -0
- package/lib/types/utils/scroll/normalizeWheel.d.ts +1 -0
- package/lib/types/utils/scroll/normalizeWheel.d.ts.map +1 -0
- package/lib/types/utils/scroll/onScroll.d.ts +1 -0
- package/lib/types/utils/scroll/onScroll.d.ts.map +1 -0
- package/lib/types/utils/scroll/scrollTo.d.ts +1 -0
- package/lib/types/utils/scroll/scrollTo.d.ts.map +1 -0
- package/lib/types/utils/scroll/scrollToElement.d.ts +1 -0
- package/lib/types/utils/scroll/scrollToElement.d.ts.map +1 -0
- package/lib/types/version.d.ts +2 -1
- package/lib/types/version.d.ts.map +1 -0
- package/lib/types/vevet.d.ts +1 -0
- package/lib/types/vevet.d.ts.map +1 -0
- package/package.json +2 -2
- package/src/Application/index.ts +4 -4
- package/src/Application/types.ts +2 -2
- package/src/components/Ctx2D/index.ts +3 -3
- package/src/components/Ctx2D/types.ts +1 -1
- package/src/components/CustomCursor/index.ts +22 -13
- package/src/components/CustomCursor/types.ts +1 -1
- package/src/components/ScrollBar/Bar/index.ts +2 -2
- package/src/components/ScrollBar/Bar/types.ts +1 -1
- package/src/components/ScrollBar/index.ts +1 -1
- package/src/components/ScrollBar/types.ts +1 -1
- package/src/components/SmoothScroll/index.ts +6 -6
- package/src/components/SmoothScroll/stories/WithHorizontal.tsx +1 -1
- package/src/components/SmoothScroll/types.ts +2 -2
- package/src/components/Timeline/index.ts +2 -2
- package/src/components/Timeline/types.ts +1 -1
- package/src/styles/components/CustomCursor.scss +1 -1
- package/src/utils/scroll/scrollTo.ts +1 -1
- package/src/version.ts +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B;;GAEG;AACH,qBAAa,QAAQ,CACnB,WAAW,SAAS,SAAS,CAAC,YAAY,GAAG,SAAS,CAAC,YAAY,EACnE,eAAe,SAAS,SAAS,CAAC,gBAAgB,GAAG,SAAS,CAAC,gBAAgB,EAC/E,cAAc,SAAS,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAC5E,SAAQ,YAAY,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC;IAClE,SAAS,CAAC,gBAAgB;;;;;;;IAQ1B,0BAA0B;IAC1B,OAAO,CAAC,eAAe,CAAC,CAAS;IAEjC,6DAA6D;IAC7D,OAAO,CAAC,uBAAuB,CAAS;IAExC,0BAA0B;IAC1B,IAAI,SAAS,YAEZ;IAED,2BAA2B;IAC3B,OAAO,CAAC,WAAW,CAAU;IAE7B,2BAA2B;IAC3B,IAAI,UAAU,YAEb;IAED,yBAAyB;IACzB,OAAO,CAAC,SAAS,CAAU;IAE3B,yBAAyB;IACzB,IAAI,QAAQ,YAEX;gBAEW,YAAY,CAAC,EAAE,WAAW,GAAG,eAAe,EAAE,OAAO,UAAO;IAcxE,wBAAwB;IACjB,IAAI;IAcX,uBAAuB;IAChB,OAAO;IAcd,sBAAsB;IACf,KAAK;IAaZ,qBAAqB;IACd,KAAK;IASZ,sBAAsB;IACtB,OAAO,CAAC,QAAQ;IAoChB,yBAAyB;IACzB,SAAS,CAAC,qBAAqB;IAkB/B,2BAA2B;IAC3B,SAAS,CAAC,QAAQ;CAKnB"}
|
|
@@ -5,7 +5,7 @@ export declare namespace NTimeline {
|
|
|
5
5
|
* Destroy the timeline on animation end
|
|
6
6
|
* @default false
|
|
7
7
|
*/
|
|
8
|
-
|
|
8
|
+
shouldDestroyOnEnd?: boolean;
|
|
9
9
|
}
|
|
10
10
|
interface IChangeableProps extends NBaseTimeline.IChangeableProps {
|
|
11
11
|
/**
|
|
@@ -19,3 +19,4 @@ export declare namespace NTimeline {
|
|
|
19
19
|
end: undefined;
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,yBAAiB,SAAS,CAAC;IACzB,UAAiB,YAAa,SAAQ,aAAa,CAAC,YAAY;QAC9D;;;WAGG;QACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B;IAED,UAAiB,gBAAiB,SAAQ,aAAa,CAAC,gBAAgB;QACtE;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,eAAgB,SAAQ,aAAa,CAAC,eAAe;QACpE,KAAK,EAAE,SAAS,CAAC;QACjB,GAAG,EAAE,SAAS,CAAC;KAChB;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,SAAS,CAAC;AAExB,cAAc,eAAe,CAAC;AAE9B,cAAc,QAAQ,CAAC;AAEvB,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../src/types/general.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;CAC1C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/types/utility.ts"],"names":[],"mappings":"AAAA,UAAU,WAAW;IACnB,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,MAAM,UAAU,GAC1B,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,IAAI,CAAC;AAET,MAAM,CAAC,OAAO,MAAM,QAAQ,GACxB,UAAU,GACV,QAAQ,GACR,IAAI,GACJ,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,WAAW,CAAC;AAEhB,OAAO,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,QAAQ,GAC9C,WAAW,CAAC,CAAC,CAAC,GACd,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAC/B,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,GACvC,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GACvC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,GAC/C,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,GAC3C,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACtB,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GACrB,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,CAAC,GAC9B,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAC7B,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAC1B,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GACzB,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAC1B,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GACzB,CAAC,SAAS,EAAE,GACZ;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC,GACD,WAAW,CAAC,CAAC,CAAC,CAAC;AAEnB,MAAM,CAAC,OAAO,MAAM,mBAAmB,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
|
|
@@ -7,3 +7,4 @@
|
|
|
7
7
|
* mergeWithoutArrays({ a: 1, b: 2 }, { b: 3, c: 4 }); // => { a: 1, b: 3, c: 4 }
|
|
8
8
|
*/
|
|
9
9
|
export declare function mergeWithoutArrays<A extends Record<string, any>, B extends Record<string, any>>(object: A, source: B): A & B;
|
|
10
|
+
//# sourceMappingURL=mergeWithoutArrays.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mergeWithoutArrays.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/mergeWithoutArrays.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAQ7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizedTimeoutCallback.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/normalizedTimeoutCallback.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM;;EAgB1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"objectKeys.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/objectKeys.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAEpD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pickObjectProps.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/pickObjectProps.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,MAAM,CAAC,EACjB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAQlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"times.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/times.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,CAAC,EACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAC7C,KAAK,EAAE,MAAM,GACZ,CAAC,EAAE,CAUL"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uid.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/uid.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,GAAG,CAAC,MAAM,SAAO,UAIhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/image/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../src/utils/image/load.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAC;AAOvC,KAAK,eAAe,GAAG;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,GAAG,gBAAgB,EACjC,KAAK,CAAC,EAAE,eAAe,iCAgExB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pathsToProps.d.ts","sourceRoot":"","sources":["../../../../src/utils/image/pathsToProps.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB,CAClC,CAAC,SAAS,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE,CAC9C,SAAQ,WAAW;IACnB,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,SAAS,CAAC,EAAE,CAAC,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,mBAAmB;;;EAyBxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sizesToSrcSet.d.ts","sourceRoot":"","sources":["../../../../src/utils/image/sizesToSrcSet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,UAYxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetchWebpSupport.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/fetchWebpSupport.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAC;AAEvC,wBAAgB,gBAAgB,yBAiB/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDeviceInfo.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/getDeviceInfo.ts"],"names":[],"mappings":"AAGA,wBAAgB,aAAa;;;;EAa5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/listeners/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"isIntersectionObserverSupported.d.ts","sourceRoot":"","sources":["../../../../src/utils/listeners/isIntersectionObserverSupported.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,+BAA+B,YAU9C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onResize.d.ts","sourceRoot":"","sources":["../../../../src/utils/listeners/onResize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAG9D,MAAM,MAAM,eAAe,GAAG,MAAM,SAAS,CAAC,eAAe,CAAC;AAE9D,MAAM,WAAW,cAAc;IAC7B,yBAAyB;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,KAAK,CAAC;IACtC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,6BAA6B;IAC7B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,2CAA2C;IAC3C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gCAAgC;IAChC,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EAAE,YAAY,EACtB,OAAO,EACP,cAAsB,EACtB,aAAqB,EACrB,cAAkB,GACnB,EAAE,cAAc,GAAG,SAAS,CAwD5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clamp.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/clamp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,WAAS,UAShD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clampScope.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/clampScope.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,EACb,SAAS,WAAS,EAClB,SAAS,WAAS,UAGnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"easing.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/easing.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,cAGa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inScope.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/inScope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,WAAS,WAEvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lerp.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/lerp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,iBAAiB,SAAQ,UAU1B"}
|
|
@@ -7,3 +7,4 @@
|
|
|
7
7
|
* normalizeNestedScope([0.2, 0.9], [0.1, 0.8]); // => [0.24, 0.73]
|
|
8
8
|
*/
|
|
9
9
|
export declare function normalizeNestedScope(innerScope: [number, number] | number[], globalScope: [number, number] | number[]): [number, number];
|
|
10
|
+
//# sourceMappingURL=normalizeNestedScope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeNestedScope.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/normalizeNestedScope.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,EACvC,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,GACvC,CAAC,MAAM,EAAE,MAAM,CAAC,CAOlB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scoped.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/scoped.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,WAAS,UAItD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spreadScope.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/spreadScope.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAc1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wrap.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/wrap.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAO3D"}
|
|
@@ -11,3 +11,4 @@ export interface IGetScrollValues {
|
|
|
11
11
|
* getScrollValues(window); // => { scrollTop: 0, scrollLeft: 0 }
|
|
12
12
|
*/
|
|
13
13
|
export declare function getScrollValues(selector?: Window | Element | IScrollLike | undefined): IGetScrollValues | undefined;
|
|
14
|
+
//# sourceMappingURL=getScrollValues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getScrollValues.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/getScrollValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,GAAE,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,SAAkB,GAC5D,gBAAgB,GAAG,SAAS,CAe9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"normalizeWheel.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/normalizeWheel.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU;;;;;EAE/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onScroll.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/onScroll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,KAAK,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAaD,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,SAAiB,GAClB,EAAE,cAAc,GAAG,UAAU,CAyE7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollTo.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/scrollTo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI9C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;IAC3C;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;CACpD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAkB,EAClB,GAAO,EACP,IAAQ,EACR,QAAQ,EAAE,YAAkB,GAC7B,EAAE,cAAc,iBAuChB"}
|
|
@@ -34,3 +34,4 @@ export interface IScrollToElementProps extends IScrollToProps {
|
|
|
34
34
|
* .catch(() => {});
|
|
35
35
|
*/
|
|
36
36
|
export declare function scrollToElement({ container, element: elementProp, top, left, ...props }: IScrollToElementProps): Promise<void>;
|
|
37
|
+
//# sourceMappingURL=scrollToElement.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrollToElement.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/scrollToElement.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAY,MAAM,YAAY,CAAC;AAEtD,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D;;OAEG;IACH,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,eAAe,CAAC,EAC9B,SAAkB,EAClB,OAAO,EAAE,WAAW,EACpB,GAAO,EACP,IAAQ,EACR,GAAG,KAAK,EACT,EAAE,qBAAqB,iBAgCvB"}
|
package/lib/types/version.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,OAAO,UAAU,CAAC;AACxB,eAAe,OAAO,CAAC"}
|
package/lib/types/vevet.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vevet.d.ts","sourceRoot":"","sources":["../../src/vevet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAEhC,eAAO,MAAM,KAAK,aAC4D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vevet",
|
|
3
|
-
"version": "3.0.0
|
|
3
|
+
"version": "3.0.0",
|
|
4
4
|
"description": "Vevet - a JavaScript library of ready-made solutions and helpers",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"storybook": "storybook dev -p 6006",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build:docs": "typedoc --out build/docs ./src --theme default --hideGenerator",
|
|
18
18
|
"version": "node ./config/version.js && git add ./src/version.ts && git commit -m \"Update version\"",
|
|
19
19
|
"deploy": "gh-pages -d build",
|
|
20
|
-
"prepublishOnly": "run-s version lint build"
|
|
20
|
+
"prepublishOnly": "run-s version lint build deploy"
|
|
21
21
|
},
|
|
22
22
|
"main": "./lib/cjs/index.js",
|
|
23
23
|
"types": "./lib/types/index.d.ts",
|
package/src/Application/index.ts
CHANGED
|
@@ -26,13 +26,13 @@ export class Application {
|
|
|
26
26
|
/** Default properties */
|
|
27
27
|
get defaultProps(): NApplication.IProps {
|
|
28
28
|
return {
|
|
29
|
-
|
|
29
|
+
shouldPrintVersion: true,
|
|
30
30
|
tablet: 1199,
|
|
31
31
|
phone: 899,
|
|
32
32
|
prefix: 'v-',
|
|
33
33
|
easing: [0.25, 0.1, 0.25, 1],
|
|
34
34
|
resizeDebounce: 16,
|
|
35
|
-
|
|
35
|
+
shouldCheckWebpSupport: true,
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -165,7 +165,7 @@ export class Application {
|
|
|
165
165
|
html.classList.toggle(`${prefix}desktop`, this._isDesktop);
|
|
166
166
|
|
|
167
167
|
// check webp support
|
|
168
|
-
if (this.props.
|
|
168
|
+
if (this.props.shouldCheckWebpSupport) {
|
|
169
169
|
fetchWebpSupport()
|
|
170
170
|
.then(() => {
|
|
171
171
|
this._isWebpSupported = true;
|
|
@@ -198,7 +198,7 @@ export class Application {
|
|
|
198
198
|
|
|
199
199
|
/** Output current version */
|
|
200
200
|
private _printVersion() {
|
|
201
|
-
if (!this.props.
|
|
201
|
+
if (!this.props.shouldPrintVersion) {
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
204
|
|
package/src/Application/types.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { EasingType } from 'easing-progress';
|
|
|
2
2
|
|
|
3
3
|
export namespace NApplication {
|
|
4
4
|
export interface IProps {
|
|
5
|
-
|
|
5
|
+
shouldPrintVersion: boolean;
|
|
6
6
|
/**
|
|
7
7
|
* Tablet identification max width
|
|
8
8
|
* @default 1199
|
|
@@ -32,6 +32,6 @@ export namespace NApplication {
|
|
|
32
32
|
* Check if the browser supports WebP
|
|
33
33
|
* @default false
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
shouldCheckWebpSupport: boolean;
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -18,7 +18,7 @@ export class Ctx2D<
|
|
|
18
18
|
return {
|
|
19
19
|
...super._getDefaultProps(),
|
|
20
20
|
container: false,
|
|
21
|
-
|
|
21
|
+
shouldAppend: true,
|
|
22
22
|
hasInitialResize: true,
|
|
23
23
|
hasResize: false,
|
|
24
24
|
viewportTarget: 'any',
|
|
@@ -92,7 +92,7 @@ export class Ctx2D<
|
|
|
92
92
|
constructor(initialProps?: StaticProps & ChangeableProps, canInit = true) {
|
|
93
93
|
super(initialProps, false);
|
|
94
94
|
|
|
95
|
-
const {
|
|
95
|
+
const { shouldAppend, container } = this.props;
|
|
96
96
|
|
|
97
97
|
// set default values
|
|
98
98
|
this._width = 0;
|
|
@@ -108,7 +108,7 @@ export class Ctx2D<
|
|
|
108
108
|
this._canvas.style.height = '100%';
|
|
109
109
|
|
|
110
110
|
// append canvas
|
|
111
|
-
if (
|
|
111
|
+
if (shouldAppend && container instanceof Element) {
|
|
112
112
|
container.append(this._canvas);
|
|
113
113
|
|
|
114
114
|
this.addDestroyableAction(() => this.canvas.remove());
|
|
@@ -24,7 +24,7 @@ export class CustomCursor<
|
|
|
24
24
|
height: 36,
|
|
25
25
|
lerp: 0.2,
|
|
26
26
|
isFpsNormalized: true,
|
|
27
|
-
|
|
27
|
+
shouldAutoStop: true,
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
|
|
@@ -46,7 +46,7 @@ export class CustomCursor<
|
|
|
46
46
|
/** DOM parent for the cursor element */
|
|
47
47
|
get domContainer(): HTMLElement {
|
|
48
48
|
if (this.container instanceof Window) {
|
|
49
|
-
return this.app.
|
|
49
|
+
return this.app.body;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
return this.container as HTMLElement;
|
|
@@ -145,8 +145,9 @@ export class CustomCursor<
|
|
|
145
145
|
this._isContainerWindow = container instanceof Window;
|
|
146
146
|
|
|
147
147
|
// set default vars
|
|
148
|
-
|
|
149
|
-
this.
|
|
148
|
+
const { width, height } = this.props;
|
|
149
|
+
this._coords = { x: 0, y: 0, width, height };
|
|
150
|
+
this._targetCoords = { x: 0, y: 0, width, height };
|
|
150
151
|
|
|
151
152
|
if (canInit) {
|
|
152
153
|
this.init();
|
|
@@ -356,20 +357,28 @@ export class CustomCursor<
|
|
|
356
357
|
return { remove };
|
|
357
358
|
}
|
|
358
359
|
|
|
360
|
+
/**
|
|
361
|
+
* If all coordinates are interpolated
|
|
362
|
+
*/
|
|
363
|
+
public get isCoordsInterpolated() {
|
|
364
|
+
const { coords, targetCoords } = this;
|
|
365
|
+
|
|
366
|
+
return (
|
|
367
|
+
coords.x === targetCoords.x &&
|
|
368
|
+
coords.y === targetCoords.y &&
|
|
369
|
+
coords.width === targetCoords.width &&
|
|
370
|
+
coords.height === targetCoords.height
|
|
371
|
+
);
|
|
372
|
+
}
|
|
373
|
+
|
|
359
374
|
/** Render the scene */
|
|
360
375
|
public render() {
|
|
361
|
-
const { props
|
|
376
|
+
const { props } = this;
|
|
362
377
|
|
|
363
378
|
this._calculateCoords();
|
|
364
379
|
const realCoords = this._renderElements();
|
|
365
380
|
|
|
366
|
-
if (
|
|
367
|
-
props.isAutoStop &&
|
|
368
|
-
coords.x === targetCoords.x &&
|
|
369
|
-
coords.y === targetCoords.y &&
|
|
370
|
-
coords.width === targetCoords.width &&
|
|
371
|
-
coords.height === targetCoords.height
|
|
372
|
-
) {
|
|
381
|
+
if (props.shouldAutoStop && this.isCoordsInterpolated) {
|
|
373
382
|
this._animationFrame.pause();
|
|
374
383
|
}
|
|
375
384
|
|
|
@@ -433,6 +442,6 @@ export class CustomCursor<
|
|
|
433
442
|
this.outerElement.classList.add(this.className('-disabled'));
|
|
434
443
|
this.innerElement.classList.add(this.className('-disabled'));
|
|
435
444
|
|
|
436
|
-
this._animationFrame.
|
|
445
|
+
this._animationFrame.pause();
|
|
437
446
|
}
|
|
438
447
|
}
|