Skip to content

Commit

Permalink
fix: fix issue that wrong label bg when rotate (#5462)
Browse files Browse the repository at this point in the history
* fix: fix issue that wrong label bg when rotate

* test: update test snapshots
  • Loading branch information
yvonneyx authored Feb 22, 2024
1 parent 8af3cf0 commit d0f8d52
Show file tree
Hide file tree
Showing 29 changed files with 770 additions and 732 deletions.
13 changes: 13 additions & 0 deletions packages/g6/__tests__/demo/static/shape-label.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,21 @@ export const shapeLabel: StaticTestCase = async (context) => {
},
});

const label5 = new Label({
style: {
text: 'label1 text',
fontSize: 14,
fill: 'black',
x: 150,
y: 50,
backgroundFill: 'pink',
transform: 'rotate(45deg)',
},
});

canvas.appendChild(label1);
canvas.appendChild(label2);
canvas.appendChild(label3);
canvas.appendChild(label4);
canvas.appendChild(label5);
};
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d0f8d52

Please sign in to comment.