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

Method setScale

packages/fairygui/src/core/GObject.ts:338–346  ·  view source on GitHub ↗
(sx: number, sy: number)

Source from the content-addressed store, hash-verified

336 }
337
338 public setScale(sx: number, sy: number): void {
339 if (this._scaleX !== sx || this._scaleY !== sy) {
340 this._scaleX = sx;
341 this._scaleY = sy;
342 this.handleScaleChanged();
343 this.applyPivot();
344 this.updateGear(2);
345 }
346 }
347
348 // Skew | 倾斜
349

Callers 11

scaleXMethod · 0.95
scaleYMethod · 0.95
setup_beforeAddMethod · 0.95
handleScaleChangedMethod · 0.45
applyValueMethod · 0.45
applyMethod · 0.45
flipMethod · 0.45
flipMethod · 0.45
updateLayoutMethod · 0.45
setStateMethod · 0.45
_spawnEffectMethod · 0.45

Calls 3

handleScaleChangedMethod · 0.95
applyPivotMethod · 0.95
updateGearMethod · 0.95

Tested by

no test coverage detected