MCPcopy Create free account
hub / github.com/esengine/esengine / setPivot

Method setPivot

packages/fairygui/src/core/GObject.ts:393–401  ·  view source on GitHub ↗
(xv: number, yv: number = 0, bAsAnchor: boolean = false)

Source from the content-addressed store, hash-verified

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;

Callers 6

pivotXMethod · 0.95
pivotYMethod · 0.95
setup_beforeAddMethod · 0.95
applyValueMethod · 0.80
constructorMethod · 0.80
constructExtensionMethod · 0.80

Calls 2

updatePivotOffsetMethod · 0.95
handleXYChangedMethod · 0.95

Tested by

no test coverage detected