This commit is contained in:
szrpf
2023-05-27 22:44:16 +08:00
parent 81ab8086b1
commit 2a9cda65a4
6 changed files with 48 additions and 44 deletions

View File

@@ -287,11 +287,13 @@ var DataBoard = /** @class */ (function (_super) {
return;
if (!this.customLabelStringSplit)
return;
var radian = -this.node.angle * Math.PI / 180;
var cos = Math.cos(radian);
var sin = Math.sin(radian);
this.customLabelNode.x = this.customLabelOffset.x * cos - this.customLabelOffset.y * sin;
this.customLabelNode.y = this.customLabelOffset.x * sin + this.customLabelOffset.y * cos;
if (this.customLabelOffset.x !== 0 || this.customLabelOffset.y !== 0) {
var radian = -this.node.angle * Math.PI / 180;
var cos = Math.cos(radian);
var sin = Math.sin(radian);
this.customLabelNode.x = this.customLabelOffset.x * cos - this.customLabelOffset.y * sin;
this.customLabelNode.y = this.customLabelOffset.x * sin + this.customLabelOffset.y * cos;
}
var str = '';
var strs = this.customLabelStringSplit;
if (!this.monitorComp && this.customComponentName) {

File diff suppressed because one or more lines are too long