(xv: number, yv: number = 0, bAsAnchor: boolean = false)
| 391 | } |
| 392 | |
| 393 | public setPivot(xv: number, yv: number = 0, bAsAnchor: boolean = false): void { |
| 394 | if (this._pivotX !== xv || this._pivotY !== yv || this._pivotAsAnchor !== bAsAnchor) { |
| 395 | this._pivotX = xv; |
| 396 | this._pivotY = yv; |
| 397 | this._pivotAsAnchor = bAsAnchor; |
| 398 | this.updatePivotOffset(); |
| 399 | this.handleXYChanged(); |
| 400 | } |
| 401 | } |
| 402 | |
| 403 | public get pivotAsAnchor(): boolean { |
| 404 | return this._pivotAsAnchor; |
no test coverage detected