Animation System

Đang mở
#115 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start with the startAnimation helper in src/utils/functions/index.ts and trace how it interacts with the scheduler. The issue describes a proposed graph.animate API with start, stop, state, destroy, bounding box, timing function, and duration options. Define and implement the animation system so animations stay synchronized with the scheduler and render smoothly.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement

Right now we don't have any animation mechanisms, but we do have some kind of animations using the [startAnimation] helper (https://github.com/gravity-ui/graph/blob/main/src/utils/functions/index.ts#L139 ). But it has a critical flaw - it is not synchronized with our scheduler. Because of this, animations may look jerky or slow-motion.

Expected DX

interface Animation {
 start(): void;
 stop(): void;
 state: AnimationState.idle/Pause/playing,
 destroy(): void;
 bbox: THitbox;
}

const animation = graph.animate((animation: Animation) => {
  this.performRender();
}, { timing: TimingFunction.Linear, duration: 5_000, bBox: this });

animation.start();
Ngôn ngữ chính
TypeScript
Star
145
Fork
12
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
43

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của gravity-ui/graph

Tất cả issue của gravity-ui/graph

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.