Skip to content

Commit

Permalink
Merge pull request #618 from VisActor/docs/update-comments
Browse files Browse the repository at this point in the history
docs: add comments
  • Loading branch information
xile611 authored Jan 15, 2025
2 parents 97b36a5 + bb5c0c3 commit acd3b3b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/vgrammar-core/src/types/animate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ export type IAnimationConfig = IAnimationTimeline | IAnimationTypeConfig;
* state动画,暂时只支持简单配置
*/
export interface IStateAnimationConfig {
/**
* 状态动画的动画时长
*/
duration?: number;
/**
* 状态动画的缓动函数类型
*/
easing?: EasingType;
}

Expand Down
33 changes: 33 additions & 0 deletions packages/vgrammar-core/src/types/interaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,41 +474,74 @@ export interface FishEyeOptions extends IBaseInteractionOptions {
}

export interface ElementActiveSpec extends ElementActiveOptions {
/**
* 设置交互的类型为 'element-active'
*/
type: 'element-active';
}
export interface ElementSelectSpec extends ElementSelectOptions {
/**
* 设置交互的类型为 'element-select'
*/
type: 'element-select';
}
export interface ElementHighlightSpec extends ElementHighlightOptions {
/**
* 设置交互的类型为 'element-highlight'
*/
type: 'element-highlight';
}
export interface ElementHighlightByKeySpec extends ElementHighlightOptions {
/**
* 设置交互的类型为 'element-highlight-by-key'
*/
type: 'element-highlight-by-key';
}
export interface ElementHighlightByGroupSpec extends ElementHighlightOptions {
/**
* 设置交互的类型为 'element-highlight-by-group'
*/
type: 'element-highlight-by-group';
}
export interface ElementActiveByLegendSpec extends ElementActiveByLegendOptions {
/**
* 设置交互的类型为 'element-active-by-legend'
*/
type: 'element-active-by-legend';
}

export interface ElementHighlightByLegendSpec extends ElementHighlightByLegendOptions {
/**
* 设置交互的类型为'element-highlight-by-legend'
*/
type: 'element-highlight-by-legend';
}

export interface ElementHighlightByNameSpec extends ElementHighlightByNameOptions {
/**
* 设置交互的类型为'element-highlight-by-name'
*/
type: 'element-highlight-by-name';
}

export interface BrushHighlightSpec extends BrushHighlightOptions {
/**
* 设置交互类型为'brush-highlight'
*/
type: 'brush-highlight';
}

export interface BrushActiveSpec extends BrushActiveOptions {
/**
* 设置交互类型为 'brush-active'
*/
type: 'brush-active';
}

export interface BrushFilterSpec extends BrushFilterOptions {
/**
* 设置交互类型为'brush-filter'
*/
type: 'brush-filter';
}

Expand Down

0 comments on commit acd3b3b

Please sign in to comment.