base animation

This commit is contained in:
hamid zarghami
2026-05-12 15:19:44 +03:30
parent 8cfe559fb6
commit 6a8eaab8cb
13 changed files with 548 additions and 122 deletions
+1
View File
@@ -42,6 +42,7 @@ export type {
DocumentSettings,
DisplayStyle,
BackgroundType,
EntranceAnimationType,
} from "./editorStore.types";
type PageBackgroundSettings = Pick<
@@ -1,6 +1,17 @@
import type { ShapeType } from "./shapeStore";
import type { FillType, LinearGradient } from "../utils/gradient";
/** انیمیشن ورود (نمایش) شیء در viewer، مشابه PowerPoint */
export type EntranceAnimationType =
| "none"
| "fade"
| "flyInLeft"
| "flyInRight"
| "flyInTop"
| "flyInBottom"
| "zoomIn"
| "zoomOut";
export type ToolType =
| "select"
| "rectangle"
@@ -70,6 +81,10 @@ export type EditorObject = {
maskId?: string;
maskInvert?: boolean;
groupId?: string;
/** نحوهٔ ظاهر شدن در نمایشگر؛ پیش‌فرض بدون انیمیشن */
entranceAnimation?: EntranceAnimationType;
/** مدت انیمیشن ورود به میلی‌ثانیه (پیش‌فرض ۶۰۰) */
entranceDurationMs?: number;
};
export type PageGuide = {