@cardenelabs/cdl 0.40.3 → 0.40.4
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/CHANGELOG.md +21 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +2 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +2 -2
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/src/anim/core/timeline.ts +13 -3
- package/src/anim/core/types.ts +1 -1
- package/src/render.tsx +4 -2
package/dist/index.js
CHANGED
|
@@ -14132,7 +14132,7 @@ function cubicBezier(x1, y1, x2, y2) {
|
|
|
14132
14132
|
return sampleCurveY(solveCurveX(t));
|
|
14133
14133
|
};
|
|
14134
14134
|
}
|
|
14135
|
-
var
|
|
14135
|
+
var easeOut = cubicBezier(0, 0, 0.58, 1);
|
|
14136
14136
|
function clamp01(value) {
|
|
14137
14137
|
if (value < 0) return 0;
|
|
14138
14138
|
if (value > 1) return 1;
|
|
@@ -14177,7 +14177,7 @@ var Timeline = class {
|
|
|
14177
14177
|
throw new Error("Timeline requires at least one phase");
|
|
14178
14178
|
}
|
|
14179
14179
|
this.phases = phases;
|
|
14180
|
-
this.easing = options.easing ??
|
|
14180
|
+
this.easing = options.easing ?? easeOut;
|
|
14181
14181
|
this.loop = options.loop ?? false;
|
|
14182
14182
|
this.autoAdvanceMsOverride = options.autoAdvanceMs;
|
|
14183
14183
|
this.phaseHoldMs = options.phaseHoldMs ?? 0;
|