mirror of
https://github.com/szrpf/DataBoardDemo.git
synced 2025-12-19 10:29:45 +00:00
v2.2
This commit is contained in:
@@ -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
Reference in New Issue
Block a user