Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

fix(animation): title #295

Merged
merged 1 commit into from
Jul 5, 2023
Merged

fix(animation): title #295

merged 1 commit into from
Jul 5, 2023

Conversation

pearmini
Copy link
Member

@pearmini pearmini commented Jul 5, 2023

解决坐标轴更新的时候,title 位置不对的问题,具体的效果等发一个 GUI 的包,在 G2 里面看效果。

// 主要问题是这个 50% 有问题,导致位置更新不对
const before = {
  titleTransform: 'translate(50%, 0) rotate(-90)'
}

// 和上面语义相同,内部计算大小
const after = {
  titleDirection: 'vertical'
}

@pearmini pearmini requested a review from hustcc July 5, 2023 12:07
@pearmini pearmini merged commit 0857e67 into master Jul 5, 2023
@pearmini pearmini deleted the fix/title-animation branch July 5, 2023 12:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants