@windrun-huaiin/third-ui 14.3.0 → 14.4.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/dist/fuma/fuma-page-genarator.js +3 -4
- package/dist/fuma/fuma-page-genarator.mjs +3 -4
- package/dist/fuma/mdx/index.d.ts +1 -0
- package/dist/fuma/mdx/index.js +5 -0
- package/dist/fuma/mdx/index.mjs +1 -0
- package/dist/fuma/mdx/toc-clerk-portable.d.ts +19 -0
- package/dist/fuma/mdx/toc-clerk-portable.js +328 -0
- package/dist/fuma/mdx/toc-clerk-portable.mjs +304 -0
- package/dist/main/delayed-img.js +1 -1
- package/dist/main/delayed-img.mjs +1 -1
- package/dist/main/gallery/gallery-mobile-swiper.js +2 -2
- package/dist/main/gallery/gallery-mobile-swiper.mjs +2 -2
- package/dist/main/index.js +1 -0
- package/dist/main/index.mjs +1 -1
- package/dist/main/loading.d.ts +1 -0
- package/dist/main/loading.js +7 -0
- package/dist/main/loading.mjs +7 -1
- package/dist/main/snake-loading-frame.js +3 -3
- package/dist/main/snake-loading-frame.mjs +3 -3
- package/dist/node_modules/.pnpm/{katex@0.16.38 → katex@0.16.43}/node_modules/katex/dist/katex.js +50 -16
- package/dist/node_modules/.pnpm/{katex@0.16.38 → katex@0.16.43}/node_modules/katex/dist/katex.mjs +50 -16
- package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.js +1 -1
- package/dist/node_modules/.pnpm/mermaid@11.12.1/node_modules/mermaid/dist/chunks/mermaid.core/chunk-ABZYJK2D.mjs +1 -1
- package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/swiper-core.js +2 -1
- package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/swiper-core.mjs +2 -1
- package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/swiper-react.js +2 -2
- package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/swiper-react.mjs +2 -2
- package/package.json +1 -1
- package/src/fuma/fuma-page-genarator.tsx +11 -5
- package/src/fuma/mdx/index.ts +1 -0
- package/src/fuma/mdx/toc-clerk-portable.tsx +623 -0
- package/src/main/delayed-img.tsx +0 -1
- package/src/main/loading.tsx +8 -0
- package/src/main/snake-loading-frame.tsx +3 -3
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-animation-frame.js +0 -24
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/utils/use-animation-frame.mjs +0 -22
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-combine-values.js +0 -40
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-combine-values.mjs +0 -38
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-computed.js +0 -22
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-computed.mjs +0 -20
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-motion-value.js +0 -41
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-motion-value.mjs +0 -39
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-transform.js +0 -50
- package/dist/node_modules/.pnpm/framer-motion@12.38.0_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/framer-motion/dist/es/value/use-transform.mjs +0 -48
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/transform.js +0 -16
- package/dist/node_modules/.pnpm/motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/transform.mjs +0 -14
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/modules/pagination.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/modules/pagination.mjs +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/classes-to-selector.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/classes-to-selector.mjs +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/create-element-if-not-defined.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/create-element-if-not-defined.mjs +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/ssr-window.esm.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/ssr-window.esm.mjs +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/update-on-virtual-data.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/update-on-virtual-data.mjs +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/update-swiper.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/update-swiper.mjs +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/utils.js +0 -0
- /package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/utils.mjs +0 -0
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var useIsomorphicEffect = require('../utils/use-isomorphic-effect.js');
|
|
5
|
-
var useMotionValue = require('./use-motion-value.js');
|
|
6
|
-
var frame = require('../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/frame.js');
|
|
7
|
-
|
|
8
|
-
function useCombineMotionValues(values, combineValues) {
|
|
9
|
-
/**
|
|
10
|
-
* Initialise the returned motion value. This remains the same between renders.
|
|
11
|
-
*/
|
|
12
|
-
const value = useMotionValue.useMotionValue(combineValues());
|
|
13
|
-
/**
|
|
14
|
-
* Create a function that will update the template motion value with the latest values.
|
|
15
|
-
* This is pre-bound so whenever a motion value updates it can schedule its
|
|
16
|
-
* execution in Framesync. If it's already been scheduled it won't be fired twice
|
|
17
|
-
* in a single frame.
|
|
18
|
-
*/
|
|
19
|
-
const updateValue = () => value.set(combineValues());
|
|
20
|
-
/**
|
|
21
|
-
* Synchronously update the motion value with the latest values during the render.
|
|
22
|
-
* This ensures that within a React render, the styles applied to the DOM are up-to-date.
|
|
23
|
-
*/
|
|
24
|
-
updateValue();
|
|
25
|
-
/**
|
|
26
|
-
* Subscribe to all motion values found within the template. Whenever any of them change,
|
|
27
|
-
* schedule an update.
|
|
28
|
-
*/
|
|
29
|
-
useIsomorphicEffect.useIsomorphicLayoutEffect(() => {
|
|
30
|
-
const scheduleUpdate = () => frame.frame.preRender(updateValue, false, true);
|
|
31
|
-
const subscriptions = values.map((v) => v.on("change", scheduleUpdate));
|
|
32
|
-
return () => {
|
|
33
|
-
subscriptions.forEach((unsubscribe) => unsubscribe());
|
|
34
|
-
frame.cancelFrame(updateValue);
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
exports.useCombineMotionValues = useCombineMotionValues;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useIsomorphicLayoutEffect } from '../utils/use-isomorphic-effect.mjs';
|
|
3
|
-
import { useMotionValue } from './use-motion-value.mjs';
|
|
4
|
-
import { frame, cancelFrame } from '../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/frameloop/frame.mjs';
|
|
5
|
-
|
|
6
|
-
function useCombineMotionValues(values, combineValues) {
|
|
7
|
-
/**
|
|
8
|
-
* Initialise the returned motion value. This remains the same between renders.
|
|
9
|
-
*/
|
|
10
|
-
const value = useMotionValue(combineValues());
|
|
11
|
-
/**
|
|
12
|
-
* Create a function that will update the template motion value with the latest values.
|
|
13
|
-
* This is pre-bound so whenever a motion value updates it can schedule its
|
|
14
|
-
* execution in Framesync. If it's already been scheduled it won't be fired twice
|
|
15
|
-
* in a single frame.
|
|
16
|
-
*/
|
|
17
|
-
const updateValue = () => value.set(combineValues());
|
|
18
|
-
/**
|
|
19
|
-
* Synchronously update the motion value with the latest values during the render.
|
|
20
|
-
* This ensures that within a React render, the styles applied to the DOM are up-to-date.
|
|
21
|
-
*/
|
|
22
|
-
updateValue();
|
|
23
|
-
/**
|
|
24
|
-
* Subscribe to all motion values found within the template. Whenever any of them change,
|
|
25
|
-
* schedule an update.
|
|
26
|
-
*/
|
|
27
|
-
useIsomorphicLayoutEffect(() => {
|
|
28
|
-
const scheduleUpdate = () => frame.preRender(updateValue, false, true);
|
|
29
|
-
const subscriptions = values.map((v) => v.on("change", scheduleUpdate));
|
|
30
|
-
return () => {
|
|
31
|
-
subscriptions.forEach((unsubscribe) => unsubscribe());
|
|
32
|
-
cancelFrame(updateValue);
|
|
33
|
-
};
|
|
34
|
-
});
|
|
35
|
-
return value;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export { useCombineMotionValues };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var useCombineValues = require('./use-combine-values.js');
|
|
5
|
-
var index = require('../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/index.js');
|
|
6
|
-
|
|
7
|
-
function useComputed(compute) {
|
|
8
|
-
/**
|
|
9
|
-
* Open session of collectMotionValues. Any MotionValue that calls get()
|
|
10
|
-
* will be saved into this array.
|
|
11
|
-
*/
|
|
12
|
-
index.collectMotionValues.current = [];
|
|
13
|
-
compute();
|
|
14
|
-
const value = useCombineValues.useCombineMotionValues(index.collectMotionValues.current, compute);
|
|
15
|
-
/**
|
|
16
|
-
* Synchronously close session of collectMotionValues.
|
|
17
|
-
*/
|
|
18
|
-
index.collectMotionValues.current = undefined;
|
|
19
|
-
return value;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
exports.useComputed = useComputed;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useCombineMotionValues } from './use-combine-values.mjs';
|
|
3
|
-
import { collectMotionValues } from '../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/index.mjs';
|
|
4
|
-
|
|
5
|
-
function useComputed(compute) {
|
|
6
|
-
/**
|
|
7
|
-
* Open session of collectMotionValues. Any MotionValue that calls get()
|
|
8
|
-
* will be saved into this array.
|
|
9
|
-
*/
|
|
10
|
-
collectMotionValues.current = [];
|
|
11
|
-
compute();
|
|
12
|
-
const value = useCombineMotionValues(collectMotionValues.current, compute);
|
|
13
|
-
/**
|
|
14
|
-
* Synchronously close session of collectMotionValues.
|
|
15
|
-
*/
|
|
16
|
-
collectMotionValues.current = undefined;
|
|
17
|
-
return value;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export { useComputed };
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var React = require('react');
|
|
5
|
-
var MotionConfigContext = require('../context/MotionConfigContext.js');
|
|
6
|
-
var useConstant = require('../utils/use-constant.js');
|
|
7
|
-
var index = require('../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/index.js');
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Creates a `MotionValue` to track the state and velocity of a value.
|
|
11
|
-
*
|
|
12
|
-
* Usually, these are created automatically. For advanced use-cases, like use with `useTransform`, you can create `MotionValue`s externally and pass them into the animated component via the `style` prop.
|
|
13
|
-
*
|
|
14
|
-
* ```jsx
|
|
15
|
-
* export const MyComponent = () => {
|
|
16
|
-
* const scale = useMotionValue(1)
|
|
17
|
-
*
|
|
18
|
-
* return <motion.div style={{ scale }} />
|
|
19
|
-
* }
|
|
20
|
-
* ```
|
|
21
|
-
*
|
|
22
|
-
* @param initial - The initial state.
|
|
23
|
-
*
|
|
24
|
-
* @public
|
|
25
|
-
*/
|
|
26
|
-
function useMotionValue(initial) {
|
|
27
|
-
const value = useConstant.useConstant(() => index.motionValue(initial));
|
|
28
|
-
/**
|
|
29
|
-
* If this motion value is being used in static mode, like on
|
|
30
|
-
* the Framer canvas, force components to rerender when the motion
|
|
31
|
-
* value is updated.
|
|
32
|
-
*/
|
|
33
|
-
const { isStatic } = React.useContext(MotionConfigContext.MotionConfigContext);
|
|
34
|
-
if (isStatic) {
|
|
35
|
-
const [, setLatest] = React.useState(initial);
|
|
36
|
-
React.useEffect(() => value.on("change", setLatest), []);
|
|
37
|
-
}
|
|
38
|
-
return value;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
exports.useMotionValue = useMotionValue;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useContext, useState, useEffect } from 'react';
|
|
3
|
-
import { MotionConfigContext } from '../context/MotionConfigContext.mjs';
|
|
4
|
-
import { useConstant } from '../utils/use-constant.mjs';
|
|
5
|
-
import { motionValue } from '../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/value/index.mjs';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Creates a `MotionValue` to track the state and velocity of a value.
|
|
9
|
-
*
|
|
10
|
-
* Usually, these are created automatically. For advanced use-cases, like use with `useTransform`, you can create `MotionValue`s externally and pass them into the animated component via the `style` prop.
|
|
11
|
-
*
|
|
12
|
-
* ```jsx
|
|
13
|
-
* export const MyComponent = () => {
|
|
14
|
-
* const scale = useMotionValue(1)
|
|
15
|
-
*
|
|
16
|
-
* return <motion.div style={{ scale }} />
|
|
17
|
-
* }
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* @param initial - The initial state.
|
|
21
|
-
*
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
24
|
-
function useMotionValue(initial) {
|
|
25
|
-
const value = useConstant(() => motionValue(initial));
|
|
26
|
-
/**
|
|
27
|
-
* If this motion value is being used in static mode, like on
|
|
28
|
-
* the Framer canvas, force components to rerender when the motion
|
|
29
|
-
* value is updated.
|
|
30
|
-
*/
|
|
31
|
-
const { isStatic } = useContext(MotionConfigContext);
|
|
32
|
-
if (isStatic) {
|
|
33
|
-
const [, setLatest] = useState(initial);
|
|
34
|
-
useEffect(() => value.on("change", setLatest), []);
|
|
35
|
-
}
|
|
36
|
-
return value;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export { useMotionValue };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
var useConstant = require('../utils/use-constant.js');
|
|
5
|
-
var useCombineValues = require('./use-combine-values.js');
|
|
6
|
-
var useComputed = require('./use-computed.js');
|
|
7
|
-
var transform = require('../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/transform.js');
|
|
8
|
-
|
|
9
|
-
function useTransform(input, inputRangeOrTransformer, outputRangeOrMap, options) {
|
|
10
|
-
if (typeof input === "function") {
|
|
11
|
-
return useComputed.useComputed(input);
|
|
12
|
-
}
|
|
13
|
-
const outputRange = outputRangeOrMap;
|
|
14
|
-
const transformer = typeof inputRangeOrTransformer === "function"
|
|
15
|
-
? inputRangeOrTransformer
|
|
16
|
-
: transform.transform(inputRangeOrTransformer, outputRange, options);
|
|
17
|
-
const result = Array.isArray(input)
|
|
18
|
-
? useListTransform(input, transformer)
|
|
19
|
-
: useListTransform([input], ([latest]) => transformer(latest));
|
|
20
|
-
const inputAccelerate = !Array.isArray(input)
|
|
21
|
-
? input.accelerate
|
|
22
|
-
: undefined;
|
|
23
|
-
if (inputAccelerate &&
|
|
24
|
-
!inputAccelerate.isTransformed &&
|
|
25
|
-
typeof inputRangeOrTransformer !== "function" &&
|
|
26
|
-
Array.isArray(outputRangeOrMap) &&
|
|
27
|
-
options?.clamp !== false) {
|
|
28
|
-
result.accelerate = {
|
|
29
|
-
...inputAccelerate,
|
|
30
|
-
times: inputRangeOrTransformer,
|
|
31
|
-
keyframes: outputRangeOrMap,
|
|
32
|
-
isTransformed: true,
|
|
33
|
-
...({}),
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
return result;
|
|
37
|
-
}
|
|
38
|
-
function useListTransform(values, transformer) {
|
|
39
|
-
const latest = useConstant.useConstant(() => []);
|
|
40
|
-
return useCombineValues.useCombineMotionValues(values, () => {
|
|
41
|
-
latest.length = 0;
|
|
42
|
-
const numValues = values.length;
|
|
43
|
-
for (let i = 0; i < numValues; i++) {
|
|
44
|
-
latest[i] = values[i].get();
|
|
45
|
-
}
|
|
46
|
-
return transformer(latest);
|
|
47
|
-
});
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
exports.useTransform = useTransform;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { useConstant } from '../utils/use-constant.mjs';
|
|
3
|
-
import { useCombineMotionValues } from './use-combine-values.mjs';
|
|
4
|
-
import { useComputed } from './use-computed.mjs';
|
|
5
|
-
import { transform } from '../../../../../../motion-dom@12.38.0/node_modules/motion-dom/dist/es/utils/transform.mjs';
|
|
6
|
-
|
|
7
|
-
function useTransform(input, inputRangeOrTransformer, outputRangeOrMap, options) {
|
|
8
|
-
if (typeof input === "function") {
|
|
9
|
-
return useComputed(input);
|
|
10
|
-
}
|
|
11
|
-
const outputRange = outputRangeOrMap;
|
|
12
|
-
const transformer = typeof inputRangeOrTransformer === "function"
|
|
13
|
-
? inputRangeOrTransformer
|
|
14
|
-
: transform(inputRangeOrTransformer, outputRange, options);
|
|
15
|
-
const result = Array.isArray(input)
|
|
16
|
-
? useListTransform(input, transformer)
|
|
17
|
-
: useListTransform([input], ([latest]) => transformer(latest));
|
|
18
|
-
const inputAccelerate = !Array.isArray(input)
|
|
19
|
-
? input.accelerate
|
|
20
|
-
: undefined;
|
|
21
|
-
if (inputAccelerate &&
|
|
22
|
-
!inputAccelerate.isTransformed &&
|
|
23
|
-
typeof inputRangeOrTransformer !== "function" &&
|
|
24
|
-
Array.isArray(outputRangeOrMap) &&
|
|
25
|
-
options?.clamp !== false) {
|
|
26
|
-
result.accelerate = {
|
|
27
|
-
...inputAccelerate,
|
|
28
|
-
times: inputRangeOrTransformer,
|
|
29
|
-
keyframes: outputRangeOrMap,
|
|
30
|
-
isTransformed: true,
|
|
31
|
-
...({}),
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
return result;
|
|
35
|
-
}
|
|
36
|
-
function useListTransform(values, transformer) {
|
|
37
|
-
const latest = useConstant(() => []);
|
|
38
|
-
return useCombineMotionValues(values, () => {
|
|
39
|
-
latest.length = 0;
|
|
40
|
-
const numValues = values.length;
|
|
41
|
-
for (let i = 0; i < numValues; i++) {
|
|
42
|
-
latest[i] = values[i].get();
|
|
43
|
-
}
|
|
44
|
-
return transformer(latest);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export { useTransform };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var interpolate = require('./interpolate.js');
|
|
4
|
-
|
|
5
|
-
function transform(...args) {
|
|
6
|
-
const useImmediate = !Array.isArray(args[0]);
|
|
7
|
-
const argOffset = useImmediate ? 0 : -1;
|
|
8
|
-
const inputValue = args[0 + argOffset];
|
|
9
|
-
const inputRange = args[1 + argOffset];
|
|
10
|
-
const outputRange = args[2 + argOffset];
|
|
11
|
-
const options = args[3 + argOffset];
|
|
12
|
-
const interpolator = interpolate.interpolate(inputRange, outputRange, options);
|
|
13
|
-
return useImmediate ? interpolator(inputValue) : interpolator;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
exports.transform = transform;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { interpolate } from './interpolate.mjs';
|
|
2
|
-
|
|
3
|
-
function transform(...args) {
|
|
4
|
-
const useImmediate = !Array.isArray(args[0]);
|
|
5
|
-
const argOffset = useImmediate ? 0 : -1;
|
|
6
|
-
const inputValue = args[0 + argOffset];
|
|
7
|
-
const inputRange = args[1 + argOffset];
|
|
8
|
-
const outputRange = args[2 + argOffset];
|
|
9
|
-
const options = args[3 + argOffset];
|
|
10
|
-
const interpolator = interpolate(inputRange, outputRange, options);
|
|
11
|
-
return useImmediate ? interpolator(inputValue) : interpolator;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export { transform };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/node_modules/.pnpm/{swiper@12.1.2 → swiper@12.1.3}/node_modules/swiper/shared/utils.js
RENAMED
|
File without changes
|
|
File without changes
|