refactor: 删除 mutate-animate 库

This commit is contained in:
AncTe committed 2026-10-29 20:35:56 +08:00
1 parent 410e0c2943
commit 67293bf652
11 files changed
+275 -292

No files matched your search

@@ -13,7 +13,7 @@ import {
} from '@motajs/render';
// @ts-expect-error render/use.ts 按 D-54 留在实现层,本文件已移入系统层,按 D-68 暂以标注记录,不反向引用、不解耦
import { transitionedColor } from '../use';
import { linear } from 'mutate-animate';
import { linear } from '@motajs/animate';
import { SetupComponentOptions } from '@motajs/system';
export interface InputProps extends DefaultProps, Partial<TextContentProps> {
@@ -26,7 +26,7 @@ import {
IRenderItem,
ICustomContainer
} from '@motajs/render';
import { hyper, linear, Transition } from 'mutate-animate';
import { cosh, linear, Transition } from '@motajs/animate';
import { clamp } from 'lodash-es';
// @ts-expect-error render/use.ts 按 D-54 留在实现层,本文件已移入系统层,按 D-68 暂以标注记录,不反向引用、不解耦
import { transitioned } from '../use';
@@ -148,7 +148,7 @@ export const Scroll = defineComponent<ScrollProps, {}, string, ScrollSlots>(
const transition = new Transition();
transition.value.scroll = 0;
transition.value.showScroll = 0;
transition.mode(hyper('sin', 'out')).absolute();
transition.mode(cosh('sin', 'out')).absolute();
//#region 滚动操作
@@ -3,7 +3,7 @@ import { logger } from '@motajs/common';
import { computed, defineComponent, onUnmounted, ref } from 'vue';
// @ts-expect-error render/use.ts 按 D-54 留在实现层,本文件已移入系统层,按 D-68 暂以标注记录,不反向引用、不解耦
import { transitioned } from '../use';
import { hyper } from 'mutate-animate';
import { cosh } from '@motajs/animate';
import { debounce } from 'lodash-es';
import { texture } from '../elements';
import { SetupComponentOptions } from '@motajs/system';
@@ -45,7 +45,7 @@ export const Tip = defineComponent<TipProps>((props, { expose }) => {
const font = new Font('normal');
const alpha = transitioned(0, 500, hyper('sin', 'in-out'))!;
const alpha = transitioned(0, 500, cosh())!;
const pad = computed(() => props.pad ?? [4, 4]);
const locHeight = computed(() => props.loc[3] ?? 200);
const hidden = computed(() => alpha.ref.value === 0);
@@ -5,7 +5,7 @@ import {
} from '@user/data-base';
import { IMapDoorRenderer } from './types';
import { IMapRenderer } from '../types';
import { sleep } from 'mutate-animate';
import { sleep } from '@motajs/common';
import { DOOR_ANIMATE_INTERVAL } from '../../shared';
export class MapDoorRenderer implements IMapDoorRenderer {