Skip to content

Commit

Permalink
chore: rename position to placement
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcc committed Mar 8, 2024
1 parent b70f012 commit 84f5d7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/g6/__tests__/demo/static/element-label-background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const elementLabelBackground: StaticTestCase = async (context) => {
node: {
style: {
labelText: (d: any) => d.id,
labelPosition: 'bottom',
labelPlacement: 'bottom',
labelFill: '#e66465',
labelFontSize: 12,
labelFontStyle: 'italic',
Expand All @@ -56,7 +56,7 @@ export const elementLabelBackground: StaticTestCase = async (context) => {
edge: {
style: {
labelText: (d: any) => d.id,
labelPosition: 'center',
labelPlacement: 'center',
labelTextBaseline: 'top',
labelDy: 5,
labelFontSize: 12,
Expand Down

0 comments on commit 84f5d7f

Please sign in to comment.