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

Method handleXYChanged

packages/fairygui/src/widgets/GImage.ts:179–190  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 }
178
179 protected handleXYChanged(): void {
180 super.handleXYChanged();
181
182 if (this._flip !== EFlipType.None) {
183 if (this.scaleX === -1 && this._image) {
184 this._image.x += this.width;
185 }
186 if (this.scaleY === -1 && this._image) {
187 this._image.y += this.height;
188 }
189 }
190 }
191
192 public getProp(index: number): any {
193 if (index === EObjectPropID.Color) {

Callers 1

flipMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected