Skip to content

Commit 3b646d6

Browse files
committed
chore: add note of changes in base mark
1 parent c62d9b5 commit 3b646d6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/vchart/src/mark/base/base-mark.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1554,6 +1554,7 @@ export class BaseMark<T extends ICommonSpec> extends GrammarItem implements IMar
15541554
const attrsByGroup = noGroupEncode ? null : this._runGroupEncoder(this._encoderOfState?.group);
15551555
graphics.forEach((g, index) => {
15561556
let attrs = this._runEncoderOfGraphic(this._encoderOfState?.update, g);
1557+
// 此时需要将最终的正确的样式设置给graphic,这样后续的动画目标属性才会正确,否则会动画样式只有默认状态的样式
15571558
g.currentStates?.forEach((_state: string) => {
15581559
const stateAttr = this._runGroupEncoder(this._encoderOfState?.[_state])?.[g.context.groupKey];
15591560
attrs = {

0 commit comments

Comments
 (0)