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

Method internalSetPivot

packages/fairygui/src/core/GObject.ts:407–414  ·  view source on GitHub ↗
(xv: number, yv: number, bAsAnchor: boolean)

Source from the content-addressed store, hash-verified

405 }
406
407 protected internalSetPivot(xv: number, yv: number, bAsAnchor: boolean): void {
408 this._pivotX = xv;
409 this._pivotY = yv;
410 this._pivotAsAnchor = bAsAnchor;
411 if (this._pivotAsAnchor) {
412 this.handleXYChanged();
413 }
414 }
415
416 protected updatePivotOffset(): void {
417 if (this._displayObject && (this._pivotX !== 0 || this._pivotY !== 0)) {

Callers

nothing calls this directly

Calls 1

handleXYChangedMethod · 0.95

Tested by

no test coverage detected